/* 
 * Sohail Rice Mills - Primary CSS Stylesheet
 * Custom Premium Styling System with Light/Dark Themes & Glassmorphism
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary-green: #0B6A3A;
    --primary-green-rgb: 11, 106, 58;
    --accent-gold: #E3A813;
    --accent-gold-rgb: 227, 168, 19;
    --white: #FFFFFF;
    
    /* Light Theme Variables */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAF8;
    --bg-tertiary: #EEF3F0;
    --text-primary: #181D1A;
    --text-secondary: #525C57;
    --border-color: rgba(11, 106, 58, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --table-header-bg: #EAF2EE;
    
    /* Transitions & Border Radius */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-primary: #101412;
    --bg-secondary: #171D1A;
    --bg-tertiary: #202723;
    --text-primary: #ECEFED;
    --text-secondary: #90A097;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(16, 20, 18, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --card-bg: #171D1A;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --table-header-bg: #1B2420;
}

/* Global Reset & Typography */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: var(--radius-sm);
    border: 3px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Common Layout Elements */
section {
    padding: 100px 0;
    position: relative;
}

.bg-secondary-custom {
    background-color: var(--bg-secondary);
}

.text-gold {
    color: var(--accent-gold);
}

.text-green {
    color: var(--primary-green);
}

.btn-custom {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-custom:hover {
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.btn-custom:hover::before {
    top: 0;
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-green);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

[data-theme="dark"] .btn-outline-custom {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

[data-theme="dark"] .btn-outline-custom:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* Glassmorphism Styling */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

/* ============================================
   TOP INFO BAR
   ============================================ */
.topbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 7px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1041;
}

.topbar i { color: var(--primary-green); }

.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    margin-left: 5px;
    transition: var(--transition-smooth);
}
.topbar-social:hover {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-2px);
}
[data-theme="dark"] .topbar-social:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    border-bottom: 1px solid var(--glass-border);
}

.py-header {
    padding-top: 14px;
    padding-bottom: 14px;
    transition: padding 0.3s ease;
}
.site-header.scrolled .py-header {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ── Logo ── */
.srm-brand { text-decoration: none; }

.srm-logo {
    height: 48px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}
.site-header.scrolled .srm-logo { height: 36px; }

.brand-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    transition: color 0.3s ease;
}
.brand-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
}
.site-header.scrolled .brand-main { color: var(--text-primary); }

/* ── Desktop Nav container ── */
.srm-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    /* Needed so mega panel can absolutely position to it */
    position: static;
}

/* ── Individual nav link ── */
.srm-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 8px 13px;
    border-radius: 6px;
    position: relative;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}
.srm-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 2px;
}
.srm-link:hover,
.srm-link.srm-active {
    color: var(--accent-gold);
}
.srm-link:hover::after,
.srm-link.srm-active::after {
    transform: scaleX(1);
}
/* On scroll — use themed colours */
.site-header.scrolled .srm-link {
    color: var(--text-primary);
}
.site-header.scrolled .srm-link:hover,
.site-header.scrolled .srm-link.srm-active {
    color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.06);
}
.site-header.scrolled .srm-link::after { background: var(--primary-green); }

[data-theme="dark"] .site-header.scrolled .srm-link:hover,
[data-theme="dark"] .site-header.scrolled .srm-link.srm-active {
    color: var(--accent-gold);
    background: rgba(var(--accent-gold-rgb), 0.06);
}
[data-theme="dark"] .site-header.scrolled .srm-link::after { background: var(--accent-gold); }

/* ── Caret icon in mega triggers ── */
.srm-caret {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

/* ── Mega wrap — the hover zone ── */
.srm-mega-wrap {
    position: relative; /* mega panel positions to this */
}
.srm-mega-wrap:hover .srm-caret,
.srm-mega-wrap:focus-within .srm-caret {
    transform: rotate(180deg);
}

/* ── Mega Panel ── */
.srm-mega {
    position: fixed; /* fixed so it's always visible even inside overflow:hidden parents */
    top: auto; /* we'll use JS to set top dynamically, OR use the header's bottom */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1029;
    padding: 0;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    /* Visual style */
    background: var(--glass-bg);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-top: 2px solid var(--primary-green);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
/* Dark mode override */
[data-theme="dark"] .srm-mega {
    border-top-color: var(--accent-gold);
}

/* Show on hover/focus */
.srm-mega-wrap:hover .srm-mega,
.srm-mega-wrap:focus-within .srm-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.srm-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Mega headings */
.srm-mega-head {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary-green);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .srm-mega-head { color: var(--accent-gold); }

/* Mega link list */
.srm-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.srm-mega-list li { margin-bottom: 3px; }
.srm-mega-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.srm-mega-list a i {
    color: var(--primary-green);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
[data-theme="dark"] .srm-mega-list a i { color: var(--accent-gold); }
.srm-mega-list a:hover {
    background: rgba(var(--primary-green-rgb), 0.08);
    color: var(--primary-green);
    padding-left: 16px;
}
[data-theme="dark"] .srm-mega-list a:hover {
    background: rgba(var(--accent-gold-rgb), 0.08);
    color: var(--accent-gold);
}
.srm-mega-list a:hover i { transform: translateX(4px); }

/* Mega promo card */
.srm-mega-promo {
    background: rgba(var(--primary-green-rgb), 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    height: 100%;
}
[data-theme="dark"] .srm-mega-promo { background: rgba(var(--accent-gold-rgb), 0.05); }

/* Mega brand bag thumbnails in Brands panel */
.srm-mega-bag-thumb {
    display: block;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.srm-mega-bag-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--primary-green);
}
.srm-mega-bag-thumb img {
    width: 100%;
    height: 55px;
    object-fit: contain;
}

/* ── Theme Toggle Button ── */
.srm-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.site-header.scrolled .srm-theme-btn {
    border-color: var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.srm-theme-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #111;
    transform: rotate(18deg) scale(1.1);
}

/* ── CTA Button ── */
.srm-cta-btn {
    font-size: 0.88rem;
    padding: 9px 20px;
    white-space: nowrap;
}

/* ── Hamburger button ── */
.srm-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.srm-hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* Open state */
.srm-hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.srm-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.srm-hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ── Mobile Nav Drawer ── */
.srm-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 90vw);
    height: 100vh;
    background: #0d1f14;
    z-index: 1050;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255,255,255,0.07);
}
.srm-mobile-nav.open { right: 0; }

/* Overlay */
.srm-mobile-nav::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.srm-mobile-nav.open::before { opacity: 1; pointer-events: auto; }

.srm-mobile-inner {
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.srm-mob-link {
    display: block;
    padding: 13px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}
.srm-mob-link:hover,
.srm-mob-link.srm-mob-active {
    background: rgba(255,255,255,0.07);
    color: var(--accent-gold);
}

/* Mobile accordion group */
.srm-mob-group { display: flex; flex-direction: column; }

.srm-mob-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}
.srm-mob-toggle:hover { background: rgba(255,255,255,0.07); color: var(--accent-gold); }
.srm-mob-toggle[aria-expanded="true"] { color: var(--accent-gold); }

.srm-mob-caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.srm-mob-toggle[aria-expanded="true"] .srm-mob-caret { transform: rotate(180deg); }

.srm-mob-sub {
    list-style: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    display: none;
    border-left: 2px solid rgba(var(--accent-gold-rgb), 0.4);
    margin-left: 16px;
}
.srm-mob-sub.open { display: block; }
.srm-mob-sub li a {
    display: block;
    padding: 9px 12px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.srm-mob-sub li a:hover { color: var(--accent-gold); background: rgba(255,255,255,0.05); }

/* Close button inside drawer */
.srm-mob-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.srm-mob-close:hover { background: rgba(255,255,255,0.15); }

/* Mobile: always show header solid */
@media (max-width: 991.98px) {
    .site-header {
        background: rgba(8,25,15,0.96) !important;
        backdrop-filter: blur(12px);
    }
    .brand-main { color: #fff !important; }
}

.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 6px;
    transition: var(--transition-smooth);
}

.topbar-social:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

[data-theme="dark"] .topbar-social:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* ============================================
   SITE HEADER — fixed, glass-on-scroll
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    transition: var(--transition-smooth);
    /* Starts fully transparent */
    background: transparent;
}

/* Offset body content so it starts below topbar + header height */
body {
    /* header ~80px + topbar ~37px on desktop */
    padding-top: 0;
}

/* When page has scrolled, apply glassmorphism panel */
.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    border-bottom: 1px solid var(--glass-border);
}

.site-header .navbar {
    padding: 18px 0;
    transition: padding var(--transition-smooth);
}

.site-header.scrolled .navbar {
    padding: 10px 0;
}

/* ============================================
   BRAND / LOGO
   ============================================ */
.logo-img {
    height: 50px;
    transition: height var(--transition-smooth);
}

.site-header.scrolled .logo-img {
    height: 38px;
}

.brand-name-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 1px;
    transition: color var(--transition-smooth);
}

.brand-name-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
    transition: color var(--transition-smooth);
}

/* On scroll — brand name inherits themed colour */
.site-header.scrolled .brand-name-main {
    color: var(--text-primary);
}

/* ============================================
   NAV LINKS — white on transparent, themed on scroll
   ============================================ */
.srm-nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    color: rgba(255,255,255,0.92) !important;   /* white on hero */
    position: relative;
    transition: color var(--transition-smooth);
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border: none;
}

.srm-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
    border-radius: 2px;
}

.srm-nav-link:hover,
.srm-nav-link.active {
    color: var(--accent-gold) !important;
}

.srm-nav-link:hover::after,
.srm-nav-link.active::after {
    transform: scaleX(1);
}

/* After scroll — switch to green/gold themed colours */
.site-header.scrolled .srm-nav-link {
    color: var(--text-primary) !important;
}

.site-header.scrolled .srm-nav-link:hover,
.site-header.scrolled .srm-nav-link.active {
    color: var(--primary-green) !important;
}

.site-header.scrolled .srm-nav-link::after {
    background: var(--primary-green);
}

[data-theme="dark"] .site-header.scrolled .srm-nav-link:hover,
[data-theme="dark"] .site-header.scrolled .srm-nav-link.active {
    color: var(--accent-gold) !important;
}

[data-theme="dark"] .site-header.scrolled .srm-nav-link::after {
    background: var(--accent-gold);
}

/* ============================================
   MOBILE COLLAPSE MENU
   ============================================ */
@media (max-width: 991.98px) {
    .site-header {
        background: rgba(10, 30, 20, 0.97) !important;
        backdrop-filter: blur(10px);
    }

    .brand-name-main {
        color: #fff;
    }

    .navbar-collapse {
        background: rgba(10, 30, 20, 0.98);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 16px 8px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-top: 8px;
    }

    .srm-nav-link {
        color: rgba(255,255,255,0.88) !important;
        display: block;
        padding: 12px 16px !important;
        border-radius: var(--radius-sm);
    }

    .srm-nav-link:hover,
    .srm-nav-link.active {
        background: rgba(255,255,255,0.06);
        color: var(--accent-gold) !important;
    }

    /* Mobile mega panel — show inline as accordion */
    .mega-panel {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(255,255,255,0.04) !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 12px 8px !important;
        border-radius: var(--radius-sm) !important;
        margin: 4px 0 8px 8px !important;
        display: none; /* JS toggles */
    }

    .mega-item.open .mega-panel {
        display: block;
    }

    .mega-panel .mega-heading {
        font-size: 0.8rem;
        padding: 6px 0 4px;
    }

    .mega-links a {
        color: rgba(255,255,255,0.7) !important;
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }

    .mega-promo-card {
        display: none; /* hide promo card on mobile to save space */
    }
}

/* ============================================
   MEGA MENU PANEL — desktop full-width drop
   ============================================ */
.mega-item {
    position: static !important; /* so mega-panel can stretch full header width */
}

.mega-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 32px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 2px solid var(--primary-green);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    z-index: 999;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.mega-item:hover .mega-panel,
.mega-item:focus-within .mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-heading {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-green);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .mega-heading {
    color: var(--accent-gold);
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 4px;
}

.mega-links a {
    display: block;
    padding: 8px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.mega-links a i {
    color: var(--primary-green);
    transition: transform var(--transition-smooth);
}

[data-theme="dark"] .mega-links a i {
    color: var(--accent-gold);
}

.mega-links a:hover {
    background: rgba(var(--primary-green-rgb), 0.07);
    color: var(--primary-green);
    padding-left: 16px;
}

[data-theme="dark"] .mega-links a:hover {
    background: rgba(var(--accent-gold-rgb), 0.07);
    color: var(--accent-gold);
}

.mega-links a:hover i {
    transform: translateX(3px);
}

.mega-promo-card {
    background: rgba(var(--primary-green-rgb), 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 100%;
}

[data-theme="dark"] .mega-promo-card {
    background: rgba(var(--accent-gold-rgb), 0.04);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: var(--transition-smooth);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.site-header.scrolled .theme-toggle-btn {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    transform: rotate(20deg) scale(1.1);
}

/* CTA button in header */
.btn-header-cta {
    font-size: 0.9rem;
    padding: 10px 22px;
}

/* Hero Section & Swiper */
.hero-swiper {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 20, 18, 0.85) 30%, rgba(16, 20, 18, 0.4) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

/* Ken Burns Zoom Effect */
.swiper-slide-active .hero-slide-bg {
    animation: kenburns 12s ease-out forwards;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
}

@keyframes kenburns {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    background: rgba(var(--primary-green-rgb), 0.3) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth) !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-green) !important;
    border-color: var(--accent-gold);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.25rem !important;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5 !important;
    width: 12px !important;
    height: 12px !important;
    transition: var(--transition-smooth) !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--accent-gold) !important;
    width: 30px !important;
    border-radius: 10px !important;
}

/* Inner page banner offset — compensate for fixed header + topbar */
.inner-page-banner {
    padding-top: 120px !important;
    padding-bottom: 60px !important;
}

/* Stats Counter Section */
.counter-box {
    text-align: center;
    padding: 30px;
    transition: var(--transition-smooth);
}

.counter-box:hover {
    transform: translateY(-10px);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 5px;
}

[data-theme="dark"] .counter-number {
    color: var(--accent-gold);
}

/* Info Cards & Products */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(var(--primary-green-rgb), 0.12);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background-color: var(--bg-tertiary);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-spec-table {
    font-size: 0.875rem;
    margin-top: 15px;
    margin-bottom: 20px;
}

.product-spec-table tr {
    border-bottom: 1px dashed var(--border-color);
}

.product-spec-table td {
    padding: 6px 0;
    color: var(--text-secondary);
}

.product-spec-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Interactive Timeline for Milling Process */
.process-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--bg-primary);
    border: 4px solid var(--primary-green);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .timeline-container::after {
    border-color: var(--accent-gold);
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 30px;
    position: relative;
    border-radius: var(--radius-md);
}

.timeline-container:hover::after {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .process-timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container::after {
        left: 19px;
        right: auto;
    }
    .timeline-right {
        left: 0%;
    }
}

/* Testimonials section */
.testimonial-swiper {
    padding: 40px 10px 60px 10px !important;
}

.testimonial-card {
    padding: 40px;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(var(--accent-gold-rgb), 0.2);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto 10px auto;
    border: 3px solid var(--primary-green);
}

/* Gallery Portfolio Styles */
.gallery-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin: 5px;
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

[data-theme="dark"] .gallery-filter-btn.active, [data-theme="dark"] .gallery-filter-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

/* Image Blur load placeholders */
.blur-placeholder {
    filter: blur(10px);
    transition: filter 0.6s ease-out;
}

.blur-placeholder.loaded {
    filter: blur(0);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 106, 58, 0.9) 0%, rgba(11, 106, 58, 0.2) 80%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: var(--transition-smooth);
    z-index: 2;
}

[data-theme="dark"] .gallery-item-overlay {
    background: linear-gradient(to top, rgba(16, 20, 18, 0.95) 0%, rgba(16, 20, 18, 0.3) 80%);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.gallery-item-category {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    transition-delay: 0.05s;
}

.gallery-item:hover .gallery-item-title,
.gallery-item:hover .gallery-item-category {
    transform: translateY(0);
}

/* Pagination UI */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 5px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.pagination-btn.active, .pagination-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

[data-theme="dark"] .pagination-btn.active, [data-theme="dark"] .pagination-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* Contact Info & Forms */
.contact-info-card {
    padding: 30px;
    height: 100%;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--primary-green-rgb), 0.1);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-info-item:hover .contact-icon-box {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotateY(180deg);
}

.contact-map-wrapper {
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

[data-theme="dark"] .contact-map-wrapper iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(10%) contrast(90%);
}

.form-control, .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-green-rgb), 0.15);
}

[data-theme="dark"] .form-control:focus, [data-theme="dark"] .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-gold-rgb), 0.15);
}

/* Spinner & Toast Alerts */
.spinner-border-custom {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    100% { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1060;
}

.custom-toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    margin-top: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.custom-toast.success {
    background-color: var(--primary-green);
    color: var(--white);
}

.custom-toast.error {
    background-color: #DC3545;
    color: var(--white);
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 5px 0;
}

.footer-link:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--accent-gold);
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.social-icon-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
}

[data-theme="dark"] .social-icon-btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Certifications Logo Display */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

.cert-card {
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: var(--transition-smooth);
}

.cert-card:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.cert-card i {
    font-size: 2.2rem;
    color: var(--primary-green);
}

[data-theme="dark"] .cert-card i {
    color: var(--accent-gold);
}

/* ============================================
   PAGE OFFSET — inner pages need top padding
   because header is fixed
   ============================================ */
.pt-page {
    /* topbar (~37px) + header (~76px) + a little breathing room */
    padding-top: 130px !important;
}

/* ============================================
   BRAND CARDS
   ============================================ */
.brand-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}
.brand-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(var(--primary-green-rgb), 0.14);
}

.brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.brand-img-wrap {
    background: var(--bg-tertiary);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-bottom: 1px solid var(--border-color);
}
.brand-img-main {
    max-height: 175px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}
.brand-card:hover .brand-img-main {
    transform: scale(1.07) translateY(-4px);
}

.brand-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.brand-variety {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
[data-theme="dark"] .brand-variety { color: var(--accent-gold); }

.brand-desc {
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}

.brand-meta { border-top: 1px dashed var(--border-color); padding-top: 12px; }
.brand-meta-row {}
.brand-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.brand-size-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(var(--primary-green-rgb), 0.08);
    color: var(--primary-green);
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-green-rgb), 0.15);
}
[data-theme="dark"] .brand-size-tag {
    background: rgba(var(--accent-gold-rgb), 0.08);
    color: var(--accent-gold);
    border-color: rgba(var(--accent-gold-rgb), 0.2);
}

/* ── Packaging type icon ── */
.pack-type-card {
    transition: var(--transition-smooth);
}
.pack-type-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-green);
}
.pack-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-green-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-green);
    transition: var(--transition-smooth);
}
[data-theme="dark"] .pack-type-icon {
    background: rgba(var(--accent-gold-rgb), 0.1);
    color: var(--accent-gold);
}
.pack-type-card:hover .pack-type-icon {
    background: var(--primary-green);
    color: #fff;
    transform: rotate(10deg);
}

/* ── Private label bag grid ── */
.private-label-bag-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    aspect-ratio: 1;
}
.private-label-bag-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-color);
}
.private-label-bag-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

/* ============================================
   PRODUCT VARIETY PAGE — GRAIN GALLERY
   ============================================ */
.product-variety-row {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    background: var(--card-bg);
}

/* Left grain image panel */
.product-grain-gallery {
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    min-height: 400px;
}

.product-grain-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.product-grain-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    min-height: 300px;
}
.product-variety-row:hover .product-grain-img {
    transform: scale(1.06);
}

/* AGL badge overlay */
.grain-agl-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(11, 106, 58, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}
.grain-agl-badge span {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}
.grain-agl-badge strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Supplementary grain thumbnails */
.product-grain-thumbs {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.product-grain-thumb {
    flex: 1;
    height: 100px;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}
.product-grain-thumb:last-child { border-right: none; }
.product-grain-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-grain-thumb:hover img { transform: scale(1.08); }

/* Right details panel */
.product-detail-panel {
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Specifications grid */
.product-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}
.spec-item:hover {
    border-color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.04);
}
.spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--primary-green-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-green);
    flex-shrink: 0;
}
[data-theme="dark"] .spec-icon {
    background: rgba(var(--accent-gold-rgb), 0.1);
    color: var(--accent-gold);
}
.spec-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 4px;
}
.spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Export Grade badge */
.product-grade-badge {
    background: rgba(var(--accent-gold-rgb), 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(var(--accent-gold-rgb), 0.25);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
}

/* Certification chips */
.cert-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.07);
    border: 1px solid rgba(var(--primary-green-rgb), 0.15);
    border-radius: 20px;
    padding: 4px 10px;
}
[data-theme="dark"] .cert-chip {
    color: var(--accent-gold);
    background: rgba(var(--accent-gold-rgb), 0.07);
    border-color: rgba(var(--accent-gold-rgb), 0.2);
}

/* Product category icon */
.product-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--primary-green-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-green);
    flex-shrink: 0;
}
[data-theme="dark"] .product-cat-icon {
    background: rgba(var(--accent-gold-rgb), 0.1);
    color: var(--accent-gold);
}

/* Responsive: stack on mobile */
@media (max-width: 991.98px) {
    .product-specs-grid { grid-template-columns: 1fr 1fr; }
    .product-grain-main { min-height: 240px; }
    .product-grain-img  { min-height: 240px; }
    .product-grain-thumb { height: 70px; }
}
@media (max-width: 575.98px) {
    .product-specs-grid { grid-template-columns: 1fr; }
}
