/* ====================== */
/* Modern Navigation Bar  */
/* ====================== */

.modern-navbar {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

/* Container for very wide screens */
@media (min-width: 1600px) {
    .navbar-container {
        max-width: 1600px;
    }
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 70px;
    gap: 2rem;
}

/* Brand Section */
.navbar-brand {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 1rem;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(46, 93, 80, 0.2);
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.brand-icon i {
    color: white;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #f8f9fa;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2E5D50;
    background: rgba(46, 93, 80, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(46, 93, 80, 0.1);
}

.nav-link.active {
    color: #2E5D50;
    background: rgba(46, 93, 80, 0.1);
    font-weight: 600;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

/* Enhanced hover effects for specific nav items */
.nav-link:hover i {
    transform: scale(1.1);
}

.cart-nav:hover i {
    color: #2d5a3d;
}

.liked-nav:hover i {
    color: #e74c3c;
}

/* Actions Section */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modern Search */
.search-wrapper {
    position: relative;
}

.modern-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #2E5D50;
    background: white;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #2E5D50;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #3B7263;
    transform: translateY(-50%) scale(1.05);
}

/* Cart Button */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.35);
}

.cart-btn i {
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ====================== */
/* Modern Footer          */
/* ====================== */

.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2E5D50;
}

.footer-logo i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-tagline {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #2E5D50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #2E5D50;
    transform: translateX(4px);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #2E5D50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 93, 80, 0.4);
    border-color: #2E5D50;
}

.sustainability-note {
    color: #a0aec0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sustainability-note i {
    color: #2E5D50;
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-made-with i {
    color: #e74c3c;
    font-size: 0.8rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ====================== */
/* Responsive Design      */
/* ====================== */

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
        height: 60px;
    }
    
    .navbar-brand::after {
        display: none;
    }
    
    .navbar-brand {
        margin-right: 0;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 0;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 1rem;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
        position: relative;
    }

    /* Mobile badge positioning */
    .nav-badge {
        position: absolute;
        top: 0.5rem;
        right: 0.75rem;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 12px;
    }

    /* Mobile search wrapper */
    .search-wrapper {
        width: 100%;
        margin: 0.5rem 0;
    }

    .search-wrapper .modern-search {
        width: 100%;
    }

    .search-input {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        padding-right: 2.5rem;
    }

    .search-btn {
        width: 32px;
        height: 32px;
        right: 0.4rem;
    }

    /* Remove navbar-actions since search is now in nav */
    .navbar-actions {
        display: none;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) {
    .navbar-container {
        max-width: 100%;
        padding: 0 1.75rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .brand-icon {
        width: 30px;
        height: 30px;
        margin-right: 0.4rem;
    }
}

/* Medium screens and tablets */
@media (max-width: 768px) {
    .search-input {
        width: 200px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        padding-right: 2.5rem;
    }

    .search-btn {
        width: 32px;
        height: 32px;
        right: 0.4rem;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.75rem;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .search-input {
        width: 160px;
    }

    .footer-container {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* ====================== */
/* Legacy Support         */
/* ====================== */

/* Keep some legacy classes for backward compatibility */
.main-header {
    display: none; /* Hide old header */
}

.main-footer {
    display: none; /* Hide old footer */
}

/* Filters & Categories (from original) */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn, .category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.filter-btn:hover, .category-btn:hover {
    background: rgba(46, 93, 80, 0.05);
    border-color: #2E5D50;
    color: #2E5D50;
}

.filter-btn.active, .category-btn.active {
    background: #2E5D50;
    color: white;
    border-color: #2E5D50;
}

.category-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center; 
    margin-top: 2rem;
    gap: 1rem;
}

/* Cart Item Styles */
.cart-item-variants {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* Hide page titles */
.page-title {
    display: none;
}

/* Input number styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ====================== */
/* Messages System        */
/* ====================== */

.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    transform: translateX(100%);
    animation: slideInMessage 0.4s ease forwards;
    transition: opacity 0.3s ease;
}

.message i:first-child {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-success {
    border-left: 4px solid #2E5D50;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
}

.message-success i:first-child {
    color: #2E5D50;
}

.message-error {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.message-error i:first-child {
    color: #e74c3c;
}

.message-warning {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.message-warning i:first-child {
    color: #f39c12;
}

.message-info {
    border-left: 4px solid #3498db;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.message-info i:first-child {
    color: #3498db;
}

.message-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4a5568;
}

@keyframes slideInMessage {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ====================== */
/* Account Page Styles    */
/* ====================== */

.account-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.account-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.account-sidebar h2 {
    color: #2E5D50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-nav a {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #4a5568;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.account-nav a:hover {
    background: rgba(46, 93, 80, 0.05);
    color: #2E5D50;
}

.account-nav a.active {
    background: #2E5D50;
    color: white;
}

.account-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.account-content h1 {
    color: #2E5D50;
    margin-bottom: 0.5rem;
}

.account-content p {
    color: #666;
    margin-bottom: 2rem;
}

.account-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.account-section:last-child {
    border-bottom: none;
}

.account-section h2 {
    color: #2E5D50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.action-card:hover {
    background: rgba(46, 93, 80, 0.05);
    color: #2E5D50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 93, 80, 0.1);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2E5D50;
}

.action-card span {
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .account-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .account-sidebar {
        order: 2;
    }
    
    .account-content {
        order: 1;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}