/* ===================================
   KIYANI TRADERS - PROFESSIONAL THEME
   Agricultural E-Commerce Marketplace
   =================================== */

:root {
    --primary: #2D6A4F;
    --primary-dark: #1B4332;
    --primary-light: #40916C;
    --primary-color: #2D6A4F;
    --secondary: #27AE60;
    --secondary-light: #2ECC71;
    --secondary-color: #27AE60;
    --accent: #E67E22;
    --accent-light: #F39C12;
    --accent-color: #D4A017;
    --deal: #1E3A8A;
    --deal-light: #2563EB;
    --success: #27AE60;
    --gold: #F59E0B;
    --dark: #1B4332;
    --dark-navy: #1B4332;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #F0F7F2;
    --bg-white: #ffffff;
    --bg-light: #F0F7F2;
    --border: #D1D5DB;
    --border-color: #D1D5DB;
    --light-green: #2ECC71;
    --error: #DC2626;
    --error-light: #FEF2F2;
    --error-border: #FECACA;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --warning-border: #FDE68A;
    --info: #2563EB;
    --info-light: #EFF6FF;
    --info-border: #BFDBFE;
    --success-light: #F0FDF4;
    --success-border: #BBF7D0;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
    --shadow-deal: 0 4px 20px rgba(255,107,53,0.15);
    --shadow-focus: 0 0 0 3px rgba(39,174,96,0.25);

    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --font: 'Segoe UI', system-ui, -apple-system, -blinkMacSystemFont, sans-serif;
    --nav-height: 80px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.875rem;
    --text-md: 0.9375rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.875rem;
    --text-5xl: 2.25rem;

    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: var(--leading-normal); font-size: var(--text-base); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, h5, h6 { line-height: var(--leading-tight); font-weight: 700; }
p { line-height: var(--leading-relaxed); }

.skip-link:focus { left: 0 !important; top: 0 !important; width: auto; height: auto; overflow: visible; }

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===================================
   ANNOUNCEMENT BAR
   =================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    letter-spacing: 0.2px;
}
.announcement-bar .scroll-text {
    display: inline-block;
    animation: scrollAnnouncement 25s linear infinite;
}
@keyframes scrollAnnouncement {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    height: var(--nav-height);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 0;
    flex-shrink: 1;
}
.logo-icon {
    width: 52px; height: 52px;
    min-width: 52px; min-height: 52px;
    max-width: 52px; max-height: 52px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon img {
    width: 52px; height: 52px;
    min-width: 52px; min-height: 52px;
    max-width: 52px; max-height: 52px;
    object-fit: contain; display: block;
}
.logo-target { position: relative; width: 100%; height: 100%; display: none; }
.target-circle { display: none; }
.target-circle-1 { display: none; }
.target-circle-2 { display: none; }
.target-circle-3 { display: none; }
.target-leaf { display: none; }
.nav-logo-text {
    display: flex; flex-direction: column;
    min-width: 0; white-space: nowrap; overflow: hidden;
    line-height: 1;
}
.nav-logo-text .brand {
    font-size: 32px !important; font-weight: 800; color: #fff;
    letter-spacing: 0.3px; line-height: 1.15;
    white-space: nowrap; display: block;
}
.nav-logo-text .tagline {
    font-size: 16px !important; font-weight: 500;
    color: rgba(255,255,255,0.85); letter-spacing: 0.8px;
    line-height: 1.2; margin-top: 4px;
    white-space: nowrap; display: block;
}
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: rgba(255,255,255,0.9); font-weight: 500; font-size: var(--text-sm); padding: 6px 2px; position: relative; transition: var(--transition); letter-spacing: 0.1px; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--gold); border-radius: 2px; }
.cart-nav { position: relative; }
.cart-nav .nav-link { position: relative; }
.cart-badge {
    position: absolute; top: -8px; right: -10px;
    background: var(--accent); color: #fff;
    width: 20px; height: 20px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: bold; z-index: 10;
}
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; margin: 4px 0; transition: var(--transition); }

/* User menu in products */
.user-menu { position: relative; }
.user-info { display: flex; align-items: center; gap: 8px; cursor: pointer; color: white; font-size: 0.85rem; }
.user-info i { font-size: 1.3rem; }
.user-email { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; background: white; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); min-width: 180px; display: none; overflow: hidden; z-index: 100;
}
.user-info:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 12px 15px; color: var(--text); font-size: 0.85rem; transition: var(--transition); }
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item i { margin-right: 8px; color: var(--primary); }

/* Search in nav */
.search-bar { flex: 1; max-width: 350px; margin: 0 15px; position: relative; }
.search-bar .search-input {
    width: 100%; padding: 8px 35px 8px 15px; border: none; border-radius: 20px;
    font-size: 0.85rem; background: rgba(255,255,255,0.2); color: white; transition: var(--transition);
}
.search-bar .search-input::placeholder { color: rgba(255,255,255,0.6); }
.search-bar .search-input:focus { background: rgba(255,255,255,0.3); outline: none; }
.search-bar i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    padding: 0;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 420px;
    padding-top: 50px;
    padding-bottom: 50px;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 480px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-trust span {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-trust span i {
    color: var(--gold);
    font-size: 0.9rem;
}
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-image img {
    width: 100%;
    max-width: 480px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    padding: 12px 28px; border: none; border-radius: var(--radius); font-size: var(--text-base);
    font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition); text-align: center; font-family: inherit;
    letter-spacing: 0.2px; position: relative; overflow: hidden;
    line-height: 1.4;
}
.btn-primary { background: linear-gradient(135deg, var(--secondary), #21a355); color: #fff; box-shadow: 0 2px 8px rgba(39,174,96,0.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39,174,96,0.35); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(39,174,96,0.25); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }
.btn-deal { background: var(--deal); color: #fff; }
.btn-deal:hover { background: var(--deal-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,58,138,0.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(230,126,34,0.3); }
.btn-small { padding: 8px 18px; font-size: var(--text-sm); border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: var(--text-xs); border-radius: var(--radius); }
.btn-block { width: 100%; display: flex; }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(37,211,102,0.35); }

/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
    text-align: center; font-size: var(--text-4xl); color: var(--primary); margin-bottom: 12px;
    position: relative; font-weight: 700; letter-spacing: -0.3px;
}
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section-header h2 { font-size: var(--text-3xl); color: var(--primary); font-weight: 700; letter-spacing: -0.2px; }
.section-header .view-all { color: var(--primary); font-weight: 600; font-size: var(--text-sm); transition: var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.section-header .view-all:hover { color: var(--primary-dark); transform: translateX(2px); }

/* ===================================
   BRAND STRIPS
   =================================== */
.brand-strip {
    background: white; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.brand-strip-inner {
    display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px;
}
.brand-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 20px;
    border-radius: 30px; background: var(--bg); transition: var(--transition); cursor: pointer;
}
.brand-item:hover { background: var(--secondary); color: white; transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-item i { font-size: 1.3rem; color: var(--secondary); }
.brand-item:hover i { color: white; }
.brand-item span { font-weight: 600; font-size: 0.85rem; }

/* ===================================
   FLASH DEALS SECTION
   =================================== */
.flash-deals {
    background: var(--bg-white);
    padding: 30px 0;
    border-top: 1px solid var(--border);
}
.deal-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; flex-wrap: wrap; }
.deal-header h2 { color: var(--deal); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.deal-header h2 i { color: var(--deal); }
.deal-timer { display: flex; align-items: center; gap: 6px; background: var(--dark-navy); color: white; padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 2px 10px rgba(17,24,39,0.2); }
.deal-timer .time-unit { background: rgba(255,255,255,0.12); padding: 3px 8px; border-radius: 6px; min-width: 28px; text-align: center; font-size: 0.9rem; }
.deal-timer .time-unit.hours, .deal-timer .time-unit.minutes, .deal-timer .time-unit.seconds { font-variant-numeric: tabular-nums; }
.deal-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }

/* ===================================
   PRODUCT CARDS (Temu-style)
   =================================== */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(39,174,96,0.15);
}
.product-card:hover::before {
    transform: scaleX(1);
}
.product-card .product-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.product-card .product-actions {
    position: relative;
}
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-card .product-image::after { content: ''; position: absolute; inset: 0; background: rgba(45,106,79,0); transition: background 0.3s ease; }
.product-card .product-image:hover::after { background: rgba(45,106,79,0.08); }
.product-card .product-image .view-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.8); background: rgba(255,255,255,0.9); color: #2D6A4F; padding: 8px 18px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; opacity: 0; transition: all 0.3s ease; pointer-events: none; }
.product-card .product-image:hover .view-overlay { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Badges */
.product-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--secondary); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.product-discount {
    position: absolute; top: 10px; right: 10px;
    background: var(--deal); color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(30,58,138,0.3);
}
.product-organic {
    position: absolute; top: 10px; left: 10px;
    background: var(--success); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.product-brand-tag {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(17,24,39,0.8); color: #fff;
    padding: 3px 12px; border-radius: 20px; font-size: 0.7rem;
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Offer badge variations */
.offer-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.offer-badge.ai-pick { background: linear-gradient(135deg, #2D6A4F, #40916C); color: #fff; }
.offer-badge.perfect-match { background: linear-gradient(135deg, #27AE60, #2ECC71); color: #fff; }
.offer-badge.trending { background: linear-gradient(135deg, #FF6B35, #FF8C5A); color: #fff; }
.offer-badge.premium { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #1F2937; }
.offer-badge.price-drop { background: linear-gradient(135deg, #E67E22, #F39C12); color: #fff; }
.offer-badge.cart-match { background: linear-gradient(135deg, #1B4332, #2D6A4F); color: #fff; }
.offer-badge.viewed { background: linear-gradient(135deg, #2D6A4F, #40916C); color: #fff; }
.offer-badge.you-may-like { background: linear-gradient(135deg, #27AE60, #2ECC71); color: #fff; }

.product-info { padding: 16px 18px; flex: 1; }
.product-info .product-name { font-size: var(--text-md); font-weight: 600; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-info .product-usage { font-size: var(--text-xs); color: var(--text-light); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.product-info .product-usage i { color: var(--success); margin-right: 4px; }

.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.product-rating .stars { color: var(--gold); font-size: var(--text-xs); letter-spacing: 1px; }
.product-rating .rating-count { color: var(--text-muted); font-size: var(--text-xs); }

.product-price-section { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.product-price-section .current-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1; }
.product-price-section .original-price { font-size: var(--text-sm); color: var(--text-muted); text-decoration: line-through; }

.product-stock { font-size: var(--text-xs); margin-bottom: 12px; font-weight: 500; }
.stock-in { color: var(--success); }
.stock-low { color: var(--accent); font-weight: 600; }
.stock-out { color: var(--error); font-weight: 600; }

.product-actions { padding: 0 18px 18px; display: flex; gap: 8px; flex-shrink: 0; margin-top: auto; }
.add-to-cart-btn {
    flex: 1; padding: 11px 10px; border: none; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); color: #fff; font-weight: 600; font-size: var(--text-xs);
    cursor: pointer; transition: var(--transition); font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    position: relative; overflow: hidden;
    box-shadow: 0 2px 8px rgba(39,174,96,0.2);
    letter-spacing: 0.2px;
}
.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}
.add-to-cart-btn:hover::before {
    left: 100%;
}
.add-to-cart-btn:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,106,79,0.3); }
.add-to-cart-btn:active { transform: scale(0.97); }
.add-to-cart-btn:disabled { background: #9CA3AF; cursor: not-allowed; transform: none; box-shadow: none; }
.add-to-cart-btn.secondary { background: var(--primary); }
.add-to-cart-btn.secondary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(27,67,50,0.3); }

/* Deal Card Special */
.deal-card { position: relative; }
.deal-card.flash-sale::before {
    content: '⚡ FLASH DEAL'; position: absolute; top: -1px; left: -1px; right: -1px;
    background: linear-gradient(90deg, var(--deal), var(--deal-light)); color: #fff; text-align: center;
    padding: 5px; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; z-index: 2;
}
.deal-card .product-image { height: 180px; }
.deal-card .product-discount { background: var(--deal); box-shadow: 0 2px 8px rgba(30,58,138,0.4); }
.deal-ribbon {
    position: absolute; top: 12px; left: -34px; transform: rotate(-45deg); color: #fff;
    padding: 5px 38px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
    z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,0.2); text-transform: uppercase;
}
.deal-save { display: block; font-size: 0.7rem; font-weight: 700; color: var(--success); }

.deal-offer-text { font-size: 0.7rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.deal-offer-text i { margin-right: 4px; }
.time-box { background: var(--deal); color: #fff; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.time-box span { font-variant-numeric: tabular-nums; }

/* ===================================
   CATEGORIES SECTION
   =================================== */
.categories-section { padding: 48px 0; background: white; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.category-card {
    text-align: center; padding: 22px 12px; border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #f0f7f2, #fff); transition: var(--transition); cursor: pointer;
    border: 1px solid rgba(39,174,96,0.08);
}
.category-card:hover { background: linear-gradient(145deg, var(--secondary), var(--secondary-light)); color: white; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(39,174,96,0.25); border-color: var(--secondary); }
.category-card i {
    font-size: 1.8rem; color: var(--secondary); margin-bottom: 12px;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    background: rgba(39,174,96,0.1); border-radius: 50%; margin-left: auto; margin-right: auto;
    transition: var(--transition);
}
.category-card:hover i { color: white; background: rgba(255,255,255,0.2); transform: scale(1.1); }
.category-card span { font-weight: 600; font-size: var(--text-sm); display: block; }

/* ===================================
   SHOP BY BRAND (CHIPS)
   =================================== */
.brands-section { padding: 48px 0; background: #fafdfb; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: #fff; border: 1px solid rgba(39,174,96,0.18);
    font-weight: 600; font-size: var(--text-sm); color: #1f2933;
    text-decoration: none; transition: var(--transition);
}
.brand-chip .brand-chip-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--brand-color, var(--secondary)); flex-shrink: 0;
}
.brand-chip:hover {
    background: var(--secondary); border-color: var(--secondary); color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(39,174,96,0.25);
}
.brand-chip:hover .brand-chip-dot { background: #fff; }

/* ===================================
   PRODUCTS GRID
   =================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.products-section { padding: 40px 0; }
.featured-products { padding: 40px 0; }
.featured-products h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 30px; }

/* Filter Section */
.filter-container { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-box { display: flex; align-items: center; gap: 8px; }
.filter-box label { font-weight: 600; font-size: var(--text-sm); color: var(--text); white-space: nowrap; }
.filter-select {
    padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius);
    font-size: var(--text-sm); background: #fff; cursor: pointer; font-family: inherit;
    transition: var(--transition); min-width: 140px;
}
.filter-select:focus { border-color: var(--secondary); outline: none; box-shadow: var(--shadow-focus); }
.reset-btn {
    padding: 10px 18px; border: 2px solid var(--border); border-radius: var(--radius);
    background: #fff; cursor: pointer; font-size: var(--text-sm); transition: var(--transition); font-family: inherit; font-weight: 500;
}
.reset-btn:hover { background: var(--bg); border-color: var(--text-light); }

/* Brand Filter Pills */
.brand-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.brand-pill {
    padding: 6px 16px; border-radius: 20px; border: 2px solid var(--border);
    background: white; cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: var(--transition);
}
.brand-pill:hover { border-color: var(--secondary); color: var(--secondary); }
.brand-pill.active { background: var(--secondary); color: white; border-color: var(--secondary); }

/* ===================================
   FEATURED PRODUCTS SECTION (Index page)
   =================================== */
.intro { padding: 60px 0; background: white; }
.intro h2 { text-align: center; font-size: var(--text-4xl); color: var(--primary); margin-bottom: 40px; font-weight: 700; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.intro-card {
    background: var(--bg); padding: 32px 24px; border-radius: var(--radius-lg);
    text-align: center; transition: var(--transition); border: 1px solid transparent;
}
.intro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(39,174,96,0.15); }
.intro-card:hover .card-icon { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(39,174,96,0.3)); }
.card-icon { font-size: 2.2rem; color: var(--secondary); margin-bottom: 16px; transition: var(--transition); }
.intro-card h3 { color: var(--primary); margin-bottom: 10px; font-size: var(--text-xl); font-weight: 700; }
.intro-card p { color: var(--text-light); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* ===================================
   FARMER TIPS
   =================================== */
.farmer-tips { padding: 60px 0; background: var(--bg); }
.farmer-tips h2 { text-align: center; font-size: var(--text-4xl); color: var(--primary); margin-bottom: 40px; font-weight: 700; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tip-card { background: #fff; padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center; border: 1px solid rgba(0,0,0,0.03); }
.tip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tip-icon { font-size: 2.2rem; color: var(--secondary); margin-bottom: 16px; }
.tip-card h3 { color: var(--primary); margin-bottom: 10px; font-size: var(--text-xl); font-weight: 700; }
.tip-card p { color: var(--text-light); font-size: var(--text-sm); margin-bottom: 16px; line-height: var(--leading-relaxed); }
.read-more { color: var(--secondary); font-weight: 600; font-size: var(--text-sm); transition: var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { color: var(--primary); transform: translateX(2px); }

/* ===================================
   FAQ SECTION
   =================================== */
.faq { padding: 60px 0; background: white; }
.faq h2 { text-align: center; font-size: var(--text-4xl); color: var(--primary); margin-bottom: 40px; font-weight: 700; }
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item { margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: var(--transition); }
.faq-item:hover { border-color: rgba(39,174,96,0.3); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: var(--bg); cursor: pointer; font-weight: 600;
    color: var(--primary); transition: var(--transition); font-size: var(--text-md);
    gap: 12px;
}
.faq-question:hover { background: #e8f5e9; }
.faq-question i { transition: transform 0.3s ease; flex-shrink: 0; font-size: 0.8rem; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; color: var(--text-light); font-size: var(--text-sm); transition: max-height 0.3s ease, padding 0.3s ease; line-height: var(--leading-relaxed); }
.faq-item.active .faq-answer { max-height: 300px; padding: 16px 20px; }
.faq-item.active .faq-question { background: var(--primary); color: #fff; }
.faq-item.active .faq-question:hover { background: var(--primary-dark); }

/* ===================================
   SAFETY SECTION
   =================================== */
.safety-section { padding: 60px 0; background: var(--bg); }
.safety-section h2 { text-align: center; font-size: var(--text-4xl); color: var(--primary); margin-bottom: 40px; font-weight: 700; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.safety-card { background: #fff; padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); transition: var(--transition); }
.safety-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.safety-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 16px; }
.safety-card h3 { color: var(--primary); margin-bottom: 14px; font-size: var(--text-xl); font-weight: 700; }
.safety-card ul { list-style: none; }
.safety-card li { color: var(--text-light); margin-bottom: 10px; padding-left: 24px; position: relative; font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.safety-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: linear-gradient(180deg, #1B4332, #143328); color: rgba(255,255,255,0.9); padding: 60px 0 25px;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section h4 { margin-bottom: 20px; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; color: #fff; }
.footer-section p, .footer-section li { margin-bottom: 10px; font-size: var(--text-sm); opacity: 0.85; line-height: var(--leading-relaxed); }
.footer-section a { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-section a:hover { color: var(--secondary-light); }
.social-links { display: flex; gap: 12px; font-size: 1.2rem; }
.social-links a {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); border-radius: 50%; transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: var(--text-xs); opacity: 0.7; }

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; text-align: center; padding: 48px 24px;
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.3px; }
.page-header p { font-size: var(--text-lg); opacity: 0.9; line-height: var(--leading-relaxed); }

/* ===================================
   ABOUT PAGE
   =================================== */
.about-section { padding: 60px 0; background: white; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 15px; line-height: 1.7; }
.about-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.mission-vision { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; padding: 60px 0; background: var(--bg); }
.mission-card { background: #fff; padding: 35px; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); border-top: 3px solid var(--secondary); }
.mission-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.card-header i { font-size: 2rem; color: var(--secondary); }
.card-header h3 { color: var(--primary); font-size: 1.2rem; }
.mission-card p { color: var(--text-light); line-height: 1.7; }

.core-values { padding: 60px 0; background: white; }
.core-values h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.value-item { background: var(--bg); padding: 30px; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); }
.value-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.value-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 12px; }
.value-item h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.value-item p { color: var(--text-light); font-size: 0.9rem; }

.why-choose { padding: 60px 0; background: var(--bg); }
.why-choose h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.benefit-item { background: #fff; padding: 25px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); border-left: 4px solid var(--secondary); }
.benefit-number { display: inline-flex; width: 40px; height: 40px; background: var(--secondary); color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 10px; }
.benefit-item h3 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.benefit-item p { color: var(--text-light); font-size: 0.9rem; }

.statistics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 50px 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; }
.stat-item { padding: 20px; }
.stat-number { font-size: 2rem; font-weight: bold; margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; opacity: 0.9; }

.team-section { padding: 60px 0; background: white; }
.team-section h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 25px; }
.team-member { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: var(--transition); border: 1px solid var(--border); }
.team-member:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.team-member img { width: 100%; height: 200px; object-fit: cover; }
.team-member h3 { color: var(--primary); margin: 15px 0 5px; font-size: 1.1rem; }
.team-member .role { color: var(--secondary); font-size: 0.85rem; font-weight: 600; }
.team-member .bio { padding: 10px 15px 15px; color: var(--text-light); font-size: 0.85rem; }

.certifications { padding: 60px 0; background: var(--bg); }
.certifications h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.cert-item { background: #fff; padding: 30px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.cert-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cert-item i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 10px; }
.cert-item p { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ===================================
   SERVICES PAGE
   =================================== */
.services-overview { padding: 50px 0; }
.services-grid-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.service-card-large { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); border-left: 4px solid var(--secondary); }
.service-card-large:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.service-icon { font-size: 2.2rem; color: var(--secondary); margin-bottom: 12px; }
.service-card-large h3 { color: var(--primary); margin-bottom: 12px; font-size: 1.15rem; }
.service-card-large p { color: var(--text-light); margin-bottom: 15px; font-size: 0.9rem; }
.service-features { background: var(--bg); padding: 18px; border-radius: var(--radius); margin-bottom: 15px; }
.service-features ul { list-style: none; }
.service-features li { color: var(--text-light); padding: 6px 0; padding-left: 22px; position: relative; font-size: 0.85rem; }
.service-features li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }

.service-process { padding: 60px 0; background: var(--bg); }
.service-process h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.process-timeline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.process-step { flex: 1; min-width: 130px; text-align: center; background: #fff; padding: 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.step-number { display: inline-flex; width: 40px; height: 40px; background: var(--secondary); color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 10px; }
.process-step h3 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.process-step p { color: var(--text-light); font-size: 0.8rem; }
.process-arrow { display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--secondary); }

.service-pricing { padding: 60px 0; }
.service-pricing h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.pricing-card { background: #fff; padding: 35px 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; position: relative; border-top: 3px solid var(--border); transition: var(--transition); }
.pricing-card.featured { border-top-color: var(--secondary); transform: scale(1.03); box-shadow: 0 10px 30px rgba(39,174,96,0.2); }
.pricing-card:hover { box-shadow: var(--shadow-hover); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; padding: 4px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.pricing-card h3 { color: var(--primary); margin-bottom: 10px; margin-top: 5px; }
.pricing-card .price { font-size: 1.8rem; color: var(--secondary); font-weight: bold; margin: 12px 0; }
.pricing-card > p { color: var(--text-light); margin-bottom: 20px; font-size: 0.85rem; }
.pricing-card ul { list-style: none; margin-bottom: 20px; text-align: left; }
.pricing-card li { color: var(--text-light); padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.85rem; }

.consultation-form-section { padding: 60px 0; background: var(--bg); }
.consultation-form-section h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
.consultation-form-section > p { text-align: center; color: var(--text-light); margin-bottom: 35px; }
.consultation-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.option-card { background: #fff; padding: 30px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.option-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.option-icon { font-size: 2.2rem; color: var(--secondary); margin-bottom: 12px; }
.option-card h3 { color: var(--primary); margin-bottom: 8px; }
.option-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 15px; }
.consultation-instructions { max-width: 600px; margin: 0 auto; background: #fff; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.consultation-instructions h3 { color: var(--primary); margin-bottom: 15px; }
.consultation-instructions ol { padding-left: 20px; }
.consultation-instructions li { color: var(--text-light); margin-bottom: 8px; font-size: 0.9rem; }

.testimonials { padding: 60px 0; background: white; }
.testimonials h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.testimonial-card { background: var(--bg); padding: 25px; border-radius: var(--radius-lg); border-top: 3px solid var(--secondary); }
.rating { color: var(--gold); margin-bottom: 10px; }
.testimonial-card p { color: var(--text-light); margin-bottom: 10px; font-style: italic; font-size: 0.9rem; }
.author { color: var(--primary); font-weight: 600; font-style: normal !important; font-size: 0.85rem; }

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-info-section { padding: 50px 0; }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.contact-info-card { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.info-icon { font-size: 2.2rem; color: var(--secondary); margin-bottom: 12px; }
.contact-info-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.contact-info-card p { color: var(--text-light); font-size: 0.9rem; }
.contact-info-card .small { font-size: 0.8rem; margin-top: 8px; color: var(--text-muted); }

.contact-main { padding: 60px 0; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.map-container { background: #fff; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.map-container h2 { color: var(--primary); margin-bottom: 15px; font-size: 1.3rem; }

.quick-contact { padding: 50px 0; }
.quick-contact h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.quick-option { background: #fff; padding: 30px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.quick-option:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.option-icon { font-size: 2.2rem; color: var(--secondary); margin-bottom: 10px; }
.quick-option h3 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.quick-option p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 12px; }

.faq-contact { padding: 60px 0; background: var(--bg); }
.faq-contact h2 { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 40px; }
.faq-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.faq-contact-item { background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-contact-item h3 { color: var(--primary); margin-bottom: 10px; font-size: 1rem; }
.faq-contact-item p { color: var(--text-light); font-size: 0.85rem; }

/* ===================================
   SHOPPING CART STYLES
   =================================== */
.cart-section { padding: 40px 0; background: var(--bg); min-height: 400px; }
.cart-container { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.cart-items-container { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cart-items-container h2 { color: var(--primary); margin-bottom: 20px; font-size: var(--text-2xl); border-bottom: 2px solid var(--border); padding-bottom: 14px; font-weight: 700; }
.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto auto auto; gap: 15px; align-items: center; padding: 14px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.cart-item:hover { border-color: rgba(39,174,96,0.2); }
.cart-item-image { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details h3 { color: var(--text); font-size: var(--text-sm); margin-bottom: 4px; font-weight: 600; }
.cart-item-details .item-price { color: var(--secondary); font-weight: 600; font-size: var(--text-sm); }
.cart-item-quantity { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty-btn { background: #f8f9fa; border: none; width: 34px; height: 34px; cursor: pointer; color: var(--primary); transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.qty-btn:hover { background: var(--secondary); color: #fff; }
.cart-item-quantity input { width: 45px; text-align: center; border: none; background: #fff; font-size: var(--text-base); font-weight: 600; }
.cart-item-quantity input:focus { outline: none; }
.cart-item-total { text-align: right; color: var(--primary); font-weight: 700; font-size: var(--text-lg); min-width: 70px; }
.cart-item-remove { display: flex; justify-content: center; }
.btn-delete { background: #fff; border: 1px solid #ddd; color: var(--error); padding: 6px 10px; border-radius: var(--radius); cursor: pointer; transition: var(--transition-fast); }
.btn-delete:hover { background: var(--error); color: #fff; border-color: var(--error); }

.cart-summary { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: 90px; }
.cart-summary h2 { color: var(--primary); margin-bottom: 20px; font-size: var(--text-2xl); border-bottom: 2px solid var(--border); padding-bottom: 14px; font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-light); font-size: var(--text-sm); }
.summary-row.total { border-top: 2px solid var(--border); padding-top: 14px; margin-top: 14px; font-size: var(--text-xl); font-weight: 700; color: var(--primary); }

/* Free Shipping Progress */
.free-shipping-bar { background: var(--bg); padding: 14px; border-radius: var(--radius); margin-bottom: 16px; }
.free-shipping-bar p { font-size: var(--text-sm); color: var(--text-light); margin-bottom: 8px; }
.shipping-progress { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.shipping-progress .progress-fill { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--secondary-light)); border-radius: 10px; transition: width 0.6s ease; }

.empty-cart { text-align: center; padding: 60px 24px; }
.empty-cart i { font-size: 3.5rem; color: var(--border); margin-bottom: 20px; opacity: 0.6; }
.empty-cart h3 { color: var(--text); margin-bottom: 8px; font-size: var(--text-xl); font-weight: 600; }
.empty-cart p { color: var(--text-light); margin-bottom: 24px; font-size: var(--text-sm); }

/* Cart Activity */
.cart-activity-section { padding: 30px 0; border-top: 1px solid var(--border); }
.cart-activity-section h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; }
.cart-activity-list { max-height: 300px; overflow-y: auto; }
.activity-entry { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.activity-entry:last-child { border-bottom: none; }

/* ===================================
   SIDEBAR CART (Products page)
   =================================== */
.container-full { display: grid; grid-template-columns: 1fr; min-height: 80vh; }
.sidebar-cart {
    position: fixed; top: 0; left: -320px; width: 320px; height: 100vh; z-index: 2000;
    background: white; padding: 20px;
    overflow-y: auto; display: flex; flex-direction: column;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
}
.sidebar-cart.active { left: 0; }
.sidebar-cart .cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sidebar-cart .cart-header h3 { color: var(--primary); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); }
.cart-items-sidebar { flex: 1; overflow-y: auto; }
.cart-item-sidebar { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item-sidebar .item-image { width: 50px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.cart-item-sidebar .item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-sidebar .item-details { flex: 1; min-width: 0; }
.cart-item-sidebar .item-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-sidebar .item-price { font-size: 0.75rem; color: var(--secondary); font-weight: 600; }
.cart-item-sidebar .item-controls { display: flex; align-items: center; gap: 4px; }
.cart-item-sidebar .item-controls button { width: 24px; height: 24px; border: 1px solid var(--border); background: white; border-radius: 3px; cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cart-item-sidebar .item-controls button:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.cart-item-sidebar .item-controls span { font-size: 0.8rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-sidebar .item-controls .remove-btn { color: var(--accent); }
.cart-item-sidebar .item-controls .remove-btn:hover { background: var(--accent); color: white; }
.cart-summary-sidebar { padding-top: 15px; border-top: 1px solid var(--border); margin-top: auto; }
.cart-summary-sidebar .summary-row { font-size: 0.8rem; margin-bottom: 8px; }
.cart-summary-sidebar .summary-row.total { font-size: 0.95rem; }
.checkout-btn, .clear-cart-btn { width: 100%; padding: 10px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.85rem; margin-top: 8px; transition: var(--transition); font-family: inherit; }
.checkout-btn { background: var(--secondary); color: white; }
.checkout-btn:hover { background: var(--secondary-light); }
.checkout-btn:disabled { background: #ccc; cursor: not-allowed; }
.clear-cart-btn { background: var(--bg); color: var(--accent); border: 1px solid var(--border); }
.clear-cart-btn:hover { background: var(--accent); color: white; }
.main-content { min-width: 0; }

.cart-toggle-btn {
    display: none; position: fixed; bottom: 80px; right: 20px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; background: var(--secondary);
    color: white; border: none; font-size: 1.3rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(39,174,96,0.4); transition: var(--transition);
}
.cart-toggle-btn:hover { transform: scale(1.1); }
.cart-toggle-btn .cart-badge { position: absolute; top: -4px; right: -4px; }

/* ===================================
   SOCIAL PROOF NOTIFICATION
   =================================== */
.social-proof {
    position: fixed; bottom: 20px; left: 20px; z-index: 9999;
    background: white; border-radius: var(--radius-lg); padding: 12px 18px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2); display: none;
    align-items: center; gap: 12px; max-width: 340px;
    animation: slideUp 0.5s ease; border-left: 4px solid var(--secondary);
}
.social-proof.show { display: flex; }
.social-proof .proof-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--secondary); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.social-proof .proof-text { font-size: 0.8rem; color: var(--text); }
.social-proof .proof-text strong { color: var(--primary); }
.social-proof .proof-text small { display: block; color: var(--text-muted); font-size: 0.7rem; margin-top: 2px; }

/* ===================================
   DEAL POPUP MODAL
   =================================== */
.deal-popup-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6);
    z-index: 10000; display: none; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}
.deal-popup-overlay.show { display: flex; }
.deal-popup {
    background: white; border-radius: var(--radius-xl); padding: 35px;
    max-width: 420px; width: 90%; text-align: center; position: relative;
    animation: popIn 0.4s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh; overflow-y: auto;
}
.deal-popup .popup-close {
    position: absolute; top: 12px; right: 15px; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text-light); transition: var(--transition);
}
.deal-popup .popup-close:hover { color: var(--accent); }
.deal-popup .popup-icon { font-size: 3rem; margin-bottom: 15px; }
.deal-popup h2 { color: var(--accent); font-size: 1.5rem; margin-bottom: 8px; }
.deal-popup p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.deal-popup .popup-product { margin: 15px 0; }
.deal-popup .popup-product img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.deal-popup .popup-product h3 { color: var(--primary); font-size: 1rem; margin-bottom: 5px; }
.deal-popup .popup-product .popup-price { color: var(--accent); font-weight: 700; font-size: 1.5rem; }
.deal-popup .popup-product .popup-original { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; margin-left: 8px; }
.deal-popup .popup-timer { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.deal-popup .popup-timer .timer-unit { background: var(--dark); color: white; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: 1.1rem; min-width: 45px; }
.deal-popup .popup-timer .timer-label { font-size: 0.65rem; display: block; opacity: 0.7; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================================
   LOGIN PAGE
   =================================== */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 20px; }
.login-box { background: white; border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 40px; width: 100%; max-width: 400px; animation: slideUp 0.5s ease; }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h1 { color: var(--primary); margin-bottom: 8px; font-size: 1.6rem; font-weight: 700; }
.login-header p { color: var(--text-light); font-size: var(--text-sm); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .form-group { display: flex; flex-direction: column; }
.login-form .form-group label { color: var(--text); font-weight: 600; margin-bottom: 6px; font-size: var(--text-sm); }
.login-form .form-group input { padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-size: var(--text-base); transition: var(--transition); font-family: inherit; }
.login-form .form-group input:focus { outline: none; border-color: var(--secondary); box-shadow: var(--shadow-focus); }
.login-btn { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 13px; border: none; border-radius: var(--radius); font-size: var(--text-lg); font-weight: 600; cursor: pointer; transition: var(--transition); margin-top: 5px; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42,77,46,0.3); }
.gmail-login { display: flex; align-items: center; justify-content: center; gap: 10px; background: #EA4335; color: white; padding: 13px; border: none; border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: var(--transition); }
.gmail-login:hover { background: #d32f2f; transform: translateY(-2px); }
.divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--text-light); font-size: var(--text-xs); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.guest-login { background: transparent; color: var(--secondary); padding: 13px; border: 2px solid var(--secondary); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: var(--transition); }
.guest-login:hover { background: var(--secondary); color: white; }
.error-message { background: var(--error-light); color: var(--error); padding: 12px 14px; border-radius: var(--radius); font-size: var(--text-sm); display: none; margin-bottom: 12px; border-left: 4px solid var(--error); line-height: var(--leading-normal); }
.success-message { background: var(--success-light); color: #166534; padding: 12px 14px; border-radius: var(--radius); font-size: var(--text-sm); display: none; margin-bottom: 12px; border-left: 4px solid var(--success); line-height: var(--leading-normal); }

/* ===================================
   ORDERS PAGE
   =================================== */
.orders-container { max-width: 900px; margin: 40px auto; padding: 24px; }
.orders-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.orders-header h2 { color: var(--primary); font-size: var(--text-3xl); font-weight: 700; }
.order-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow-md); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--bg); }
.order-id { font-weight: 700; color: var(--primary); font-size: var(--text-md); }
.order-date { color: var(--text-muted); font-size: var(--text-xs); }
.order-status { padding: 4px 14px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }
.status-pending { background: var(--warning-light); color: var(--warning); }
.status-confirmed { background: var(--info-light); color: var(--info); }
.order-items { margin-bottom: 14px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.order-item:last-child { border-bottom: none; }
.order-item .item-image { width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.order-item .item-image img { width: 100%; height: 100%; object-fit: cover; }
.order-item .item-name { flex: 1; font-weight: 600; font-size: var(--text-sm); }
.order-item .item-qty { color: var(--text-light); font-size: var(--text-xs); }
.order-item .item-price { font-weight: 600; color: var(--secondary); font-size: var(--text-sm); }
.order-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.order-total { font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.order-total-amount { color: var(--accent); }

/* ===================================
   ADMIN DASHBOARD
   =================================== */
.admin-container { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: var(--bg); }
.admin-sidebar { background: var(--primary-dark); color: white; padding: 20px; position: fixed; width: 220px; height: 100vh; overflow-y: auto; }
.admin-sidebar h2 { margin-bottom: 25px; font-size: 1.2rem; border-bottom: 2px solid var(--secondary); padding-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.admin-sidebar ul { list-style: none; }
.admin-sidebar li { margin-bottom: 5px; }
.admin-sidebar a { color: rgba(255,255,255,0.85); text-decoration: none; display: block; padding: 10px 12px; border-radius: 6px; transition: var(--transition); font-size: 0.85rem; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.1); color: white; }
.admin-sidebar a i { margin-right: 8px; width: 18px; }
.admin-content { margin-left: 220px; padding: 25px; }
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.content-header h1 { color: var(--primary); font-size: 1.5rem; }

.tabs { display: flex; gap: 8px; margin-bottom: 25px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.tab-btn { padding: 10px 18px; background: transparent; border: none; border-bottom: 3px solid transparent; color: var(--text); cursor: pointer; font-weight: 600; transition: var(--transition); font-size: 0.85rem; }
.tab-btn.active { border-bottom-color: var(--secondary); color: var(--secondary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 25px; }
.stat-card { background: white; padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.stat-card .stat-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 8px; }
.stat-card .stat-number { font-size: 1.6rem; font-weight: bold; color: var(--primary); }
.stat-card .stat-label { color: var(--text-light); font-size: 0.75rem; }

.table-wrapper { background: white; border-radius: var(--radius-lg); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { background: var(--primary); color: white; padding: 12px 15px; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 10px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover { background: var(--bg); }

.action-btn { background: var(--secondary); color: white; padding: 5px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 0.75rem; transition: var(--transition); }
.action-btn:hover { background: var(--primary); }
.export-btn { background: var(--secondary); color: white; padding: 8px 16px; border: none; border-radius: 5px; cursor: pointer; transition: var(--transition); font-size: 0.8rem; }
.export-btn:hover { background: var(--primary); }
.export-btn.danger { background: #d9534f; }
.export-btn.danger:hover { background: #c9302c; }

.filter-box { background: white; padding: 12px; border-radius: var(--radius); margin-bottom: 15px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-box input, .filter-box select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.8rem; }

.badge-add { background: #d1e7dd; color: #0f5132; padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-remove { background: #f8d7da; color: #842029; padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-update { background: #cfe2ff; color: #084298; padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.badge-order { background: #fff3cd; color: #664d03; padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; display: inline-block; }

.payment-proof-img { max-width: 100px; max-height: 60px; border-radius: 4px; object-fit: cover; cursor: pointer; }

/* Admin Form Styles */
.admin-form { background: white; padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); max-width: 600px; }
.admin-form .form-group { margin-bottom: 16px; }
.admin-form .form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); font-size: var(--text-sm); }
.admin-form .form-group input, .admin-form .form-group select, .admin-form .form-group textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius); font-size: var(--text-sm); font-family: inherit; transition: var(--transition); }
.admin-form .form-group input:focus, .admin-form .form-group select:focus, .admin-form .form-group textarea:focus { outline: none; border-color: var(--secondary); box-shadow: var(--shadow-focus); }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form h3 { color: var(--primary); margin-bottom: 16px; font-size: var(--text-xl); font-weight: 700; }

/* Low Stock Alert */
.low-stock-row { background: #fff3cd !important; }
.low-stock-row td:first-child { border-left: 3px solid var(--deal); }
.out-of-stock-row { background: #f8d7da !important; }
.out-of-stock-row td:first-child { border-left: 3px solid var(--accent); }

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .container-full { grid-template-columns: 1fr; }
    .sidebar-cart { width: 300px; left: -300px; }
    .cart-toggle-btn { display: flex; align-items: center; justify-content: center; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; padding-bottom: 40px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-image img { max-width: 300px; height: 220px; }
    .hero-buttons { justify-content: center; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .admin-container { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; width: 100%; height: auto; }
    .admin-content { margin-left: 0; }
    .search-bar { display: none; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu { position: absolute; left: -100%; top: var(--nav-height); flex-direction: column; background: var(--primary); width: 100%; text-align: center; transition: 0.3s; padding: 15px 0; gap: 0; z-index: 999; }
    .nav-menu.active { left: 0; }
    .nav-item { padding: 12px 0; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.95rem; }
    .cart-container { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 60px 1fr auto; gap: 10px; min-width: 0; }
    .cart-item-total { grid-column: 2/3; text-align: left; }
    .cart-item-remove { grid-column: 3/4; }
    .product-info .product-name { font-size: 0.85rem; }
    .section-title { font-size: 1.4rem; }
    .pricing-card.featured { transform: none; }
    .process-timeline { flex-direction: column; }
    .process-arrow { display: none; }
    .page-header h1 { font-size: 1.5rem; }
    .footer-content { grid-template-columns: 1fr; }
    .deal-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .product-card .product-image { height: 150px; }
    .product-discount { font-size: 0.65rem; padding: 2px 6px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { font-size: 0.8rem; }
    .nav-logo-text .brand { font-size: 22px !important; }
    .nav-logo-text .tagline { font-size: 12px !important; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .deal-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-info { padding: 10px; }
    .product-info .product-name { font-size: 0.75rem; }
    .product-price-section .current-price { font-size: 1rem; }
    .add-to-cart-btn { font-size: 0.75rem; padding: 8px; }
    .product-rating .stars { font-size: 0.65rem; }
    .filter-container { flex-direction: column; }
    .filter-select { width: 100%; }
    .deal-header { flex-direction: column; }
    .social-proof { left: 10px; right: 10px; max-width: none; }
    .statistics { grid-template-columns: 1fr 1fr; }
    .hero-trust { justify-content: center; gap: 12px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

/* ===================================
   PREMIUM LOADING SCREEN
   =================================== */
.loading-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo {
    text-align: center; margin-bottom: 24px;
    animation: fadeIn 0.4s ease;
}
.loading-logo img { display: block; margin: 0 auto 16px auto; }
.loading-logo .loading-brand { font-size: 32px; font-weight: 800; color: white; letter-spacing: 0.3px; display: block; }
.loading-logo .loading-tagline { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0.6px; display: block; margin-top: 6px; }
.loading-spinner {
    width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #2ECC71; border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================
   HERO FLOATING DECORATIONS
   =================================== */
.hero .floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.hero .floating-circle:nth-child(1) {
    width: 200px; height: 200px; top: -60px; right: 10%;
    animation: floatUp 8s ease-in-out infinite;
}
.hero .floating-circle:nth-child(2) {
    width: 120px; height: 120px; bottom: 10%; left: 5%;
    animation: floatUp 6s ease-in-out infinite reverse;
}
.hero .floating-circle:nth-child(3) {
    width: 80px; height: 80px; top: 30%; right: 30%;
    animation: floatUp 10s ease-in-out infinite 2s;
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.hero {
    animation: heroGradient 12s ease infinite;
    background-size: 200% 200%;
}
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 0; color: white;
}
.stats-grid-premium {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    text-align: center;
}
.stat-item-premium {
    position: relative;
    padding: 15px 10px;
}
.stat-item-premium:not(:last-child)::after {
    content: '';
    position: absolute; right: 0; top: 15%; height: 70%; width: 1px;
    background: rgba(255,255,255,0.15);
}
.stat-item-premium h3 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 5px;
    color: #2ECC71;
}
.stat-item-premium p {
    font-size: 0.9rem; opacity: 0.8;
}
@media (max-width: 768px) {
    .stats-grid-premium { grid-template-columns: 1fr 1fr; }
    .stat-item-premium:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
    .stats-grid-premium { grid-template-columns: 1fr; }
    .stat-item-premium::after { display: none; }
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials-section {
    padding: 60px 0; background: white;
}
.testimonials-section .section-header {
    margin-bottom: 30px;
}
.testimonial-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.testimonial-card-home {
    background: linear-gradient(135deg, #f8fffe, #f0f7f2); padding: 28px; border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary); position: relative;
    transition: var(--transition);
}
.testimonial-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary);
}
.testimonial-card-home .stars { color: var(--gold); margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-card-home p {
    color: var(--text-light); font-style: italic; margin-bottom: 15px; line-height: 1.6;
}
.testimonial-card-home .author {
    font-weight: 700; color: var(--primary); font-size: 0.9rem;
}
.testimonial-card-home .author-location {
    color: var(--text-muted); font-size: 0.8rem;
}
.testimonial-card-home .verified-badge {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--secondary); font-size: 0.75rem; font-weight: 600; margin-left: 8px;
}

/* ===================================
   TRUST BADGES IN HERO
   =================================== */
.trust-badges {
    display: flex; gap: 20px; margin-top: 25px; flex-wrap: wrap;
}
.trust-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); padding: 8px 16px;
    border-radius: 25px; font-size: 0.8rem; color: white;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.trust-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.trust-badge i { color: #2ECC71; }

/* ===================================
   BRAND STRIP UPGRADES
   =================================== */
.brand-item i {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(39,174,96,0.1); transition: var(--transition);
}
.brand-item:hover i {
    background: rgba(255,255,255,0.2); color: white;
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 100%; height: 220px; border-radius: 16px; }
}

/* ===================================
    PRODUCT CARD PREMIUM UPGRADES
   =================================== */
.product-card .product-image .product-brand-tag {
    transition: var(--transition);
}
.product-card:hover .product-brand-tag {
    background: rgba(17,24,39,0.95);
}

/* Image Optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}
.product-card img,
.cart-item-image img,
.order-item img,
.inline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Skeleton placeholder for images */
.skeleton-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Page load animation */
.page-content { animation: fadeInUp 0.4s ease-out; }
/* Smooth card loading */
.product-card { animation: fadeInUp 0.4s ease-out backwards; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.10s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.20s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
/* Add-to-cart quick feedback */
.add-to-cart-btn:active { transform: scale(0.95); }
/* Focus visible for accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
/* Global input/select/textarea focus */
input:focus, select:focus, textarea:focus { outline: none; }
/* Consistent form inputs across all pages */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="url"], input[type="search"], select, textarea {
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus,
input[type="number"]:focus, input[type="url"]:focus, input[type="search"]:focus, select:focus, textarea:focus {
    border-color: var(--secondary);
    box-shadow: var(--shadow-focus);
}
/* Toast notification improvements */
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-info { background: var(--info); }
.toast-deal { background: var(--deal); }
/* Consistent section spacing */
section + section { margin-top: 0; }
/* Button icon alignment */
.btn i { font-size: 0.9em; }
/* Better scrollbar for sidebars and modals */
.sidebar-cart::-webkit-scrollbar,
.cart-items-sidebar::-webkit-scrollbar,
.modal-body::-webkit-scrollbar { width: 4px; }
.sidebar-cart::-webkit-scrollbar-thumb,
.cart-items-sidebar::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* Selection color */
::selection { background: rgba(39,174,96,0.2); color: var(--text); }
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher-item { margin-left: auto !important; }
.lang-switcher {
    display: inline-flex;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.lang-switch-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1.3;
}
.lang-switch-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-switch-btn.active {
    background: var(--accent-color, #D4A017);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(212,160,23,0.3);
}

/* Bilingual heading subtitle */
.bi-subtitle {
    display: block;
    font-size: 0.55em;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    direction: rtl;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}
.section-title .bi-subtitle,
.hero-content h1 .bi-subtitle {
    color: inherit;
    opacity: 0.6;
}

/* Mobile language switcher */
@media (max-width: 768px) {
    .lang-switcher-item {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .lang-switcher {
        display: inline-flex;
        width: auto;
    }
    .lang-switch-btn { padding: 8px 20px; font-size: 0.85rem; }
}
