/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --header-height: 72px;
    --header-padding: 0.45rem 0.75rem;
    --nav-gap: 1rem;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    overflow-x: hidden;
    /* reserve space for fixed header so sections are not covered */
    padding-top: var(--header-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #0f1b1b 0%, #1a2f2f 50%, #245454 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99999; /* ensure header is on top of all overlays */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    height: var(--header-height);
}

/* Safety: force header visible if other elements attempt to hide it */
.header { display: block !important; visibility: visible !important; }

/* Hard override: if some script or extension manipulates header visibility via transform/opacity
   this ensures header stays fixed and interactive. Use sparingly; remove once debugged. */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.header * { visibility: visible !important; }


.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* logo | nav | actions */
    align-items: center;
    padding: var(--header-padding);
    gap: var(--nav-gap);
    height: 100%;
}

/* place grid children explicitly for predictable alignment */
.logo { justify-self: start; }
.nav { justify-self: center; }
.header-actions { justify-self: end; }


/* Logo positioned at top left */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem; /* slightly larger for better readability */
    font-weight: bold;
    color: white;
    /* remove auto margin so layout uses space-between */
    margin-right: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-link { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit }
.logo-img { width:48px; height:36px; object-fit:contain; border-radius:6px }
.logo-text { font-weight:700; color:#fff }

.logo-img {
    width: 44px; /* increased logo size */
    height: 34px;
    margin-right: 10px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo span {
    color: white;
    line-height: 1;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem; /* tighter padding */
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.nav-list a:hover {
    color: #022c22;
    background: linear-gradient(135deg, #065f46, #059669);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
    flex: 0 1 auto; /* allow it to shrink if needed */
}

/* Admin topbar styles (shared by admin, orders, users pages) */
:root{
    --admin-accent:#0b5d8a;
    --admin-accent-2:#0f9d58;
    --admin-muted:#6b7280;
    --admin-card:#ffffff;
    --admin-border:#e6e9ee;
    --admin-bg:#f4f6f8;
    --admin-text:#0f1724;
}
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:18px auto 14px;
    max-width:1200px;
    padding:0 20px;
}
.brand{font-weight:700;color:var(--admin-accent);font-size:1.15rem}
.topnav{display:flex;gap:10px;align-items:center}
.topnav .nav-link{padding:8px 12px;border-radius:8px;color:var(--admin-text);cursor:pointer;font-weight:600;text-decoration:none}
.topnav .nav-link.active{background:linear-gradient(90deg, rgba(11,93,138,0.06), rgba(15,157,88,0.03));color:var(--admin-accent)}
.topbar-right{display:flex;gap:12px;align-items:center}
.topbar .search{padding:8px 12px;border-radius:10px;border:1px solid var(--admin-border);min-width:160px}
.topbar .avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(180deg,var(--admin-accent),var(--admin-accent-2));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}

/* Make admin topbar responsive and consistent with header */
@media(max-width:1199px){.topnav{display:none}}


.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1 1 260px; /* flexible and shrinkable */
    min-width: 160px;
    max-width: 520px;
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 95, 70, 0.5);
}

.search-box input {
    border: none;
    background: none;
    position: relative;
    /* remove incorrect large margins/heights that broke layout */
    margin: 0;
    height: auto;
    overflow: visible;
    color: #fff;
    min-width: 80px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Admin / utility button styles (modern, accessible) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .18s cubic-bezier(.2,.9,.2,1);
    user-select: none;
}
.btn:focus{outline:3px solid rgba(6,95,70,0.12);outline-offset:2px}
.btn:active{transform:translateY(1px)}

.btn-primary{
    background: linear-gradient(135deg,var(--admin-accent-2),var(--admin-accent));
    color: #fff;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(6,95,70,0.12);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(6,95,70,0.16)}

.btn-ghost{
    background: transparent;
    color: var(--admin-accent);
    border-color: rgba(11,93,138,0.12);
    background: rgba(11,93,138,0.03);
}
.btn-ghost:hover{background:rgba(11,93,138,0.04);transform:translateY(-1px)}

.btn-danger{
    background: linear-gradient(180deg,#ef5252,#d93636);
    color:#fff;border-color:rgba(0,0,0,0.06);
}
.btn-danger:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(217,57,57,0.18)}

.btn-icon{padding:.4rem .55rem;border-radius:6px;font-size:.9rem}
.btn-icon svg{width:16px;height:16px}

/* small unobtrusive square buttons for Edit/Delete in tables */
.tiny-btn{padding:6px 8px;border-radius:6px;font-size:12px;border:1px solid rgba(15,23,36,0.06);background:#ffffff;color:var(--admin-accent);min-width:64px;text-align:center}
.tiny-btn:hover{background:linear-gradient(90deg, rgba(11,93,138,0.06), rgba(15,157,88,0.03));transform:translateY(-1px);box-shadow:0 6px 12px rgba(11,93,138,0.06)}
.tiny-btn:focus{outline:2px solid rgba(11,93,138,0.12);outline-offset:2px}

/* Danger overrides keep the red visual */
.tiny-btn.btn-danger{background:linear-gradient(180deg,#ffebe9,#ffd4d4);color:#9b1f1f;border-color:rgba(217,57,57,0.08);box-shadow:none}
.tiny-btn.btn-danger:hover{background:linear-gradient(180deg,#ffdfe0,#ffc8c8)}

/* make table action cells a little more spacious */
td .tiny-btn{margin-right:6px}

.search-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
}

.cart-icon, .user-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: #e2e8f0;
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex-shrink: 0; /* don't let icons shrink too small */
}

/* Header user display box (small green pill) */
.user-box{
    background: linear-gradient(90deg,#059669,#047857);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    font-size: 0.85rem;
    line-height: 1;
}
.user-box .user-line1{font-weight:700}
.user-box .user-line2{font-size:0.75rem;opacity:0.95}

@media(max-width:480px){
    .user-box{padding:6px 8px;font-size:0.75rem}
    .user-box .user-line2{display:none}
}

.cart-icon:hover, .user-icon:hover {
    color: #022c22;
    background: linear-gradient(135deg, #065f46, #059669);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.3);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #065f46, #059669);
    color: #022c22;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.4);
    border: 2px solid #022c22;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    margin-top: 0;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #022c22 0%, #065f46 50%, #4a5568 100%);
    z-index: 0; /* keep hero below header */
}

.slide-background { z-index: 0; }
.slide-content { z-index: 1; position: relative; }

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    width: 600%; /* 100% * 6 slides */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 16.666%; /* 100% / 6 slides */
    height: 100%;
    position: relative;
}

.slide-background {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    background: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive rules: make layout adapt across common breakpoints */
/* Mobile-first adjustments already handled; add tablet and desktop tweaks */

/* Utility responsive container */
.container { padding: 0 16px; }

/* Mobile menu toggle - hidden by default on desktop; shown inside mobile media query */
.mobile-menu-toggle {
    display: none; /* default: hidden on desktop */
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
}
.mobile-menu-toggle:focus{outline:3px solid rgba(6,95,70,0.12)}

/* Desktop default - nav visible */
@media (max-width: 1199px) {
    .header { height: 64px; }
    .header-content { padding: 0.4rem 0.6rem; grid-template-columns: auto 1fr auto; }
    .logo { font-size: 1.0rem; }
    .logo-img { width: 36px; height: 26px; }

    /* reduce header height on small screens via CSS variable */
    :root { --header-height: 64px; }

    .logo { font-size: 1.05rem; }
    .logo-img { width: 38px; height: 28px; }

    /* mobile: show hamburger toggle */
    .mobile-menu-toggle { display: inline-flex; }

    .nav-list {
        position: fixed;
        top: 72px;
        right: 0;
        width: 260px;
        height: calc(100% - 72px);
        background: linear-gradient(180deg, rgba(6,95,70,0.98), rgba(3,38,29,0.98));
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 1500;
        display: flex;
        box-shadow: 0 12px 40px rgba(2,12,10,0.6);
    }

    .nav-list a { color: #e6fffb; padding: 0.75rem 1rem; border-radius: 8px; }

    /* support both .mobile-open (CSS) and .active (JS) class names */
    .nav-list.mobile-open, .nav-list.active {
        transform: translateX(0);
    }
}

/* keep nav-list.active visible when explicitly toggled (applies globally) */
.nav-list.active { transform: translateX(0) !important; }

    /* Make header actions compress gracefully */
    .header-actions { gap: 0.5rem; }

    /* Make search box compact on small screens */
    .search-box { display: none; }

    /* Hero slider smaller on phones */
    .hero-slider { height: 320px; margin-top: 64px; }
    .slide-content h1 { font-size: 1.6rem; }
    .slide-content p { font-size: .95rem; }

    /* Category grid responsive */
    .category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Product grid responsive */
    .product-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px; }

    /* Product card adaptations for small screens */
    .product-card { display: flex; flex-direction: column; gap: 12px; }
    .product-image { height: 180px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
    .product-image img.product-image-file { width:100%; height:100%; object-fit:cover; }
    .product-info { padding: 0 6px 12px; }
    .product-name { font-size: 1.05rem; }


/* Small phones */
@media (min-width: 1200px) {
    .nav-list {
        display: flex !important;
        position: static !important;
        transform: none !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: 9999 !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1.2rem !important;
    }
    .mobile-menu-toggle { display: none !important; }
}
    .header { height: 92px; }


/* Desktop explicit nav layout: ensure a horizontal row and hide hamburger */
@media (min-width: 1200px) {
    .nav-list {
        display: flex !important;
        position: static !important;
        transform: none !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: 9999 !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1.2rem !important;
    }
    .mobile-menu-toggle { display: none !important; }
}

/* GLOBAL RESPONSIVE HELPERS */
img, video, svg { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
.table-scroll { width: 100%; overflow: auto; }
input, select, textarea, button { max-width: 100%; box-sizing: border-box; }

/* Footer responsiveness */
.footer .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-items:start; }
.footer .footer-bottom { text-align: center; padding-top: 18px; }

/* Make forms stack nicely on small screens */
@media(max-width:640px){
    .contact-content, .about-content { display:block; }
    .contact-form input, .contact-form textarea { width: 100%; }
}

/* Prevent fixed header from covering anchored sections */
section { scroll-margin-top: 110px; }


/* Categories Section */
.categories {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories h2 {
    font-size: 2.8rem;
    color: #022c22;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #065f46, #059669);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(45, 55, 72, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #065f46, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(45, 55, 72, 0.2);
    border-color: #065f46;
}

.category-featured {
    background: linear-gradient(135deg, #065f46 0%, #4a5568 100%);
    color: white;
    border: none;
}

.category-featured .category-content h3,
.category-featured .category-content p {
    color: white;
}

.category-featured .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #065f46, #4a5568);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.3);
}

.category-featured .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

.category-icon i {
    font-size: 2.2rem;
    color: white;
    z-index: 1;
    position: relative;
}

.category-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-content p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-count {
    display: inline-block;
    background: #059669;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.products h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.8rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #059669, #f39c12);
    border-radius: 2px;
}

/* .filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 4rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.4s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #059669;
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.filter-btn.active {
    background: #059669;
    color: white;
    border-color: #059669;
}*/

/* Product Cards - Modern Design */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1400px;

/* Scrollable grids (apply .grid-scroll to a wrapper) */
.grid-scroll{
    max-height: 780px;
    overflow:auto;
    padding-right:8px; /* give room for scrollbar */
}
.grid-scroll::-webkit-scrollbar{width:10px}
.grid-scroll::-webkit-scrollbar-thumb{background:rgba(6,95,70,0.2);border-radius:6px}
.grid-scroll .product-card{margin-bottom:10px}
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 27, 27, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15, 27, 27, 0.12);
    border-color: rgba(6, 95, 70, 0.3);
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(6, 95, 70, 0.08) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-icon {
    font-size: 4.5rem;
    color: #64748b;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.product-card:hover .product-icon {
    color: #065f46;
    transform: scale(1.1);
}

/* Product Image Styling - Fixed */
.product-card img,
.product-image img {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* For products without actual images (using icons/emojis) */
.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

/* Ensure proper sizing for actual product images */
.product-image-file {
    width: 85%;
    height: auto;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 6px;
}

/* Alternative styling for better product image display */
.product-card .product-image {
    background: white;
    border: 1px solid #f1f5f9;
    padding: 15px;
}

/* Fix for Jotun page product images */
.jotun-products-grid .product-card img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    margin: 10px auto;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.product-name {
    margin: 0;
    color: #0f1b1b;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #065f46;
}

.product-description {
    color: #64748b;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Product Category Tag */
.product-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 95, 70, 0.08);
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 0.6rem; /* horizontal padding kept, height fixed */
    border-radius: 999px; /* pill */
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0.5rem auto; /* center horizontally within card */
    min-width: 96px;
    max-width: 140px;
    height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: center;
}

/* Slightly smaller badge on very small screens */
@media (max-width: 420px) {
    .product-category { min-width: 72px; max-width: 110px; height: 26px; font-size: 0.7rem; }
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.4);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1b1b;
    margin: 0;
}

.add-to-cart {
    background: linear-gradient(135deg, #065f46, #059669);
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.2);
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #022c22, #065f46);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* See All Button */
.see-all-container {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.see-all-btn {
    background: linear-gradient(135deg, #059669 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.see-all-btn:hover::before {
    left: 100%;
}

.see-all-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.see-all-btn i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
}

.see-all-btn.expanded i {
    transform: rotate(180deg);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.about-content {
    text-align: center;
}

.about-text h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.feature i {
    color: #059669;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #059669;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #059669;
}

.submit-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #f39c12;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #059669;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #059669;
}

.newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
}

.newsletter button {
    background: #059669;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.8;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.cart-total {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checkout-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #f39c12;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #065f46;
}

/* Products Controls */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-container label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.sort-container select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-container select:focus {
    outline: none;
    border-color: #059669;
}

/* Controls styling */
.controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-control label {
    font-weight: 500;
    color: #374151;
}

.sort-control select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-control select:focus {
    outline: none;
    border-color: #059669;
}

/* Enhanced breadcrumb styling */
.breadcrumb-nav {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #059669;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #065f46;
}

.breadcrumb span {
    color: #6b7280;
    font-weight: 500;
}

/* Product grid enhancements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Hero Section - New Styles */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #022c22 0%, #065f46 50%, #4a5568 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    background: #059669;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    background: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Testimonials Section - New Styles */
.testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    color: #2c3e50;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

/* Blog Section - New Styles */
.blog {
    padding: 80px 0;
}

.blog h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    background: #059669;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #f39c12;
}

/* FAQ Section - New Styles */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    color: #555;
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
    padding: 1rem 1.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Cart Page Styles */
.cart-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 80px;
}

.cart-page-header h1 {
    font-size: 2.5rem;
    margin-top: 15px;
}

.cart-page-header h1 i {
    margin-right: 15px;
    opacity: 0.9;
}

.cart-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.cart-items-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-header-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #e9ecef;
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.3s ease;
}

.cart-item-row:hover {
    background-color: #f8f9fa;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.product-details p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-tag {
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.price {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.quantity-controls input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px;
    font-size: 0.9rem;
}

.item-total {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.continue-shopping-btn, .clear-cart-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.continue-shopping-btn {
    background: #28a745;
    color: white;
}

.continue-shopping-btn:hover {
    background: #218838;
}

.clear-cart-btn {
    background: #6c757d;
    color: white;
}

.clear-cart-btn:hover {
    background: #5a6268;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #495057;
}

.summary-row.total-row {
    font-size: 1.2rem;
    padding-top: 15px;
    color: #2c3e50;
}

.cart-summary hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 20px 0;
}

.checkout-section {
    margin-top: 30px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #65b060 0%, #0e742b 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(101, 207, 133, 0.3);
}

.checkout-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.secure-checkout {
    text-align: center;
    color: #28a745;
    font-size: 0.9rem;
    margin: 0;
}

.secure-checkout i {
    margin-right: 5px;
}

.payment-methods {
    margin-top: 25px;
    text-align: center;
}

.payment-methods h4 {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icons i {
    font-size: 1.8rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #495057;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 25px;
}

.empty-cart-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart-content p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.start-shopping-btn {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    color: #022c22;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

/* Recommended Products */
.recommended-products {
    padding: 60px 0;
    background: white;
}

.recommended-products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Active cart icon */
.cart-icon.active {
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    padding: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-header-row, .cart-item-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-header-row {
        display: none;
    }
    
    .cart-item-row {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 15px;
        border: none;
    }
    
    .cart-col-product, .cart-col-price, .cart-col-quantity, .cart-col-total, .cart-col-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .cart-col-product::before { content: "Product:"; font-weight: bold; }
    .cart-col-price::before { content: "Price:"; font-weight: bold; }
    .cart-col-quantity::before { content: "Quantity:"; font-weight: bold; }
    .cart-col-total::before { content: "Total:"; font-weight: bold; }
    .cart-col-action::before { content: "Remove:"; font-weight: bold; }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-summary {
        position: static;
    }
}

     /* Keep mobile toggle visible on small screens; nav-list layout is handled
         in the primary mobile block above which positions it as an overlay panel.
         The toggle is enabled inside that block; no global display rule here. */
    .search-box { flex: 1 1 100%; order: 3; margin-top: 8px; }
    .header-actions { width: 100%; justify-content: flex-end; gap: 0.5rem; }


@media (min-width: 1400px) {
    .container { max-width: 1400px; }
    .header-content { padding: 0.6rem 1rem; }
    .search-box { max-width: 640px; }
}

/* Responsive smaller header */
@media (max-width: 480px) {
    .header { height: 56px; }
    .header-content { padding: 0.3rem 0; gap: 0.6rem; }
    .search-box input { width: 120px; }
    .user-box { min-width: 96px; padding: 6px 8px; }
}

/* Category Page Styles */
.category-hero {
    background: linear-gradient(135deg, #0f1b1b 0%, #1a2f2f 50%, #245454 100%);
    color: white;
    padding: 120px 0 60px;
}

.breadcrumb {
    margin-bottom: 30px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    opacity: 0.7;
}

.category-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.category-icon-large {
    font-size: 4rem;
    opacity: 0.9;
}

.category-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.stat i {
    opacity: 0.8;
}

.category-products {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

.sort-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-filter select:focus {
    outline: none;
    border-color: #667eea;
}

.no-products {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 60px 20px;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.quick-view-content {
    background: white;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

.close-quick-view {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.close-quick-view:hover {
    color: #059669;
}

.quick-view-body {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.quick-view-image {
    flex: 1;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-image-large {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.quick-view-info {
    flex: 1;
    padding: 20px 0;
}

.quick-view-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.quick-view-info .product-rating {
    margin-bottom: 15px;
}

.quick-view-info .product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #059669;
    margin-bottom: 15px;
}

.quick-view-info .product-category {
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.quick-view-info .product-description {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    z-index: 2500;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

.cart-notification i {
    margin-right: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Category Page Mobile Styles */
@media (max-width: 768px) {
    .category-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .category-icon-large {
        font-size: 3rem;
    }
    
    .category-info h1 {
        font-size: 2rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .quick-view-body {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    
    .quick-view-content {
        width: 95%;
        margin: 20px;
    }
}

/* ================================
   CHECKOUT PAGE STYLES
================================ */

/* Checkout Hero Section */
.checkout-hero {
    background: linear-gradient(135deg, #0f1b1b 0%, #1a2f2f 50%, #245454 100%);
    color: white;
    padding: 40px 0;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.checkout-header h1 i {
    color: #059669;
    margin-right: 10px;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Defensive: constrain unexpected overlays/panels so they don't cover the page */
/* This will keep notifications, quick-view and any temporary panels reasonable in size
   and ensure modal content has a white background by default. Remove or adjust if
   you intentionally want a large panel. */
.quick-view-modal, .cart-modal, .cart-notification, .notification, .site-drawer {
    box-sizing: border-box;
}
.quick-view-modal .quick-view-content {
    background: #fff !important;
    max-width: 920px !important;
    width: calc(100% - 40px) !important;
    max-height: 88vh !important;
    border-radius: 12px !important;
    overflow: auto !important;
}
.cart-notification, .notification {
    max-width: 360px !important;
    max-height: 220px !important;
    overflow: auto !important;
    border-radius: 12px !important;
}
/* defensive rule for any panel accidentally set to full height/width with a gradient */
[class*="panel"], [class*="drawer"], .side-panel {
    max-width: 420px !important;
    max-height: 92vh !important;
    overflow: auto !important;
}

.security-badge {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.security-badge i {
    margin-right: 8px;
}

/* Checkout Progress */
.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-circle.completed {
    background: #059669;
    color: #022c22;
}

.step-circle.active {
    background: #059669;
    color: #022c22;
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.5);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

.progress-line.completed {
    background: #059669;
}

/* Checkout Content */
.checkout-content {
    padding: 60px 0;
    background: #f8fafc;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    color: #022c22;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-section h2 i {
    color: #059669;
    margin-right: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.field-error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #059669;
    border-color: #059669;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #022c22;
    font-weight: bold;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 30px;
}

.payment-method {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: white;
}

.payment-method input[type="radio"]:checked + .payment-option {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.payment-option i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #065f46;
}

.payment-option span {
    flex: 1;
    font-weight: 600;
    color: #022c22;
}

.card-icons {
    display: flex;
    gap: 10px;
}

.card-icons i {
    font-size: 1.2rem;
    color: #4a5568;
}

/* Payment Fields */
.payment-fields {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.card-security,
.cvv-help {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    cursor: help;
}

.form-group {
    position: relative;
}

.paypal-info,
.bank-info {
    text-align: center;
    color: #4a5568;
}

.bank-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: left;
}

.bank-details h4 {
    color: #022c22;
    margin-bottom: 10px;
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    color: #022c22;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

.place-order-btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.place-order-btn i {
    margin-right: 10px;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.summary-card h2 {
    color: #022c22;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.summary-card h2 i {
    color: #059669;
    margin-right: 10px;
}

/* Summary Items */
.summary-items {
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    color: #022c22;
    font-size: 1rem;
    margin-bottom: 5px;
}

.item-details p {
    color: #4a5568;
    font-size: 0.9rem;
}

.item-price {
    color: #022c22;
    font-weight: 700;
    font-size: 1.1rem;
}

.security-features ul {
    list-style: none;
    padding: 0;
}

.security-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.security-features li i {
    color: #065f46;
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Money Back Guarantee */
.guarantee {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.guarantee i {
    font-size: 2rem;
    margin-right: 15px;
    color: #6ee7b7;
}

.guarantee h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.guarantee p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Jotun Page Specific Styles */

.hero-search {
    margin-top: 20px;
}
.jotun-breadcrumb {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.jotun-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.jotun-breadcrumb .breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #6b7280;
}

.jotun-breadcrumb .breadcrumb a {
    color: #059669;
    text-decoration: none;
}

.jotun-breadcrumb .breadcrumb span {
    color: #6b7280;
    font-weight: 500;
}

/* Jotun Hero Section */
.jotun-hero {
    background: white;
    padding: 3rem 0;
    text-align: center;
}

.jotun-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.jotun-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 1rem;
    font-family: serif;
}

.jotun-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height:  1.6;
}


.jotun-search {
    position: relative;
    max-width: 500px;
    margin: 2rem auto 0;
}

.jotun-search input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.jotun-search input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.jotun-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
}

/* Jotun Filter Section */
.jotun-filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.jotun-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0 1rem;
}

.jotun-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
    text-decoration: none;
}

.jotun-filter-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.jotun-filter-btn.active {
    color: #059669;
}

.filter-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.jotun-filter-btn:hover .filter-icon {
    transform: scale(1.05);
    background: #e2e8f0;
}

.jotun-filter-btn.active .filter-icon {
    background: #059669;
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.filter-icon i {
    font-size: 1.8rem;
}

.jotun-filter-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
}

.jotun-filter-btn.active span {
    color: #059669;
}

/* Products Section Adjustments */
.products-section {
    background: #f8fafc;
    padding: 2rem 0;
    min-height: 60vh;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-control label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.sort-control select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-control select:focus {
    outline: none;
    border-color: #059669;
}

.products-count {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #059669;
}

.product-image {
    height: 200px;
    width: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.product-content {
    flex: 1;
}

.product-category {
    background: #059669;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.product-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
}

.add-to-cart {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: #065f46;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .jotun-filters {
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .filter-icon {
        width: 60px;
        height: 60px;
    }
    
    .filter-icon i {
        font-size: 1.4rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .jotun-filter-btn {
        min-width: 80px;
        padding: 0.5rem;
    }
    
    .jotun-filter-btn span {
        font-size: 0.8rem;
    }
}

/* Auth pages (login/register) */
.auth-container {
    max-width: 420px;
    margin: 120px auto 60px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.auth-container h2 {
    margin-bottom: 1rem;
    color: #0f1b1b;
}
.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.auth-container input {
    padding: 0.9rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
}
.auth-container button {
    background: linear-gradient(135deg,#059669,#065f46);
    color: white;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
}
.auth-container p { text-align: center; margin-top: 1rem; }

/* Auth messages */
.auth-message { padding: 0.6rem 0.8rem; border-radius: 6px; margin-top: 0.5rem; font-size: 0.95rem; }
.auth-message.success { background: #e6ffef; color: #065f46; border: 1px solid #b7f1d4; }
.auth-message.error { background: #ffecec; color: #b42318; border: 1px solid #f5c2c2; }

/* Header user menu */
.user-menu { display: flex; align-items: center; gap: 0.75rem; color: white; }
.user-name { font-weight: 700; color: #e2e8f0; }
.user-menu-actions { display: flex; gap: 0.5rem; align-items: center; }
.user-menu-actions a { color: #e2e8f0; text-decoration: none; padding: 0.4rem 0.6rem; border-radius: 6px; background: rgba(255,255,255,0.04); }
.user-menu-actions a:hover { background: rgba(255,255,255,0.08); }

/* Compact stacked user box in header (right) */
.user-box {
    background: linear-gradient(135deg,#065f46,#059669);
    color: #e9fbe9;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: right;
    min-width: 120px;
    box-shadow: 0 6px 18px rgba(6,95,70,0.18);
}
.user-box .user-line1 {
    display: block;
    font-weight: 800;
    line-height: 1;
}
.user-box .user-line2 {
    display: block;
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1;
}

/* tighten header spacing for search/cart/auth */
.header .search-box input { width: 300px; }
.header .cart-icon { margin-left: 12px; }
.header .user-icon, #authArea { margin-left: 12px; }
