@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #020617;
  --color-secondary: #334155;
  --color-cta: #0369A1;
  --color-background: #F8FAFC;
  --color-text: #020617;
  --color-muted: #64748b;
  --color-border: #E2E8F0;
  
  --color-brand-yellow: #FFE500; /* New Yellow as requested */
  --color-brand-black: #000000;

  /* B2B Colors */
  --b2b-color: #047857;

  /* Spacing Tokens */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

  /* Fonts */
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-body); background-color: var(--color-background); color: var(--color-text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-md); letter-spacing: -0.01em; }
p { margin-bottom: var(--space-md); color: var(--color-secondary); }
a { color: var(--color-cta); text-decoration: none; transition: all 200ms ease; cursor: pointer; }
a:hover { opacity: 0.8; }
ul { list-style: none; }

.premium-container { max-width: 1360px; margin: 0 auto; padding: 0 var(--space-md); }

/* Modifiers */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--color-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.mt-4 { margin-top: var(--space-md); }
.mt-8 { margin-top: var(--space-xl); }
.mt-12 { margin-top: var(--space-2xl); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-8 { margin-bottom: var(--space-xl); }

/* Flex/Grid */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-sm); }
.gap-4 { gap: var(--space-md); }
.gap-6 { gap: var(--space-lg); }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Header Elements */
header { background: white; border-bottom: none; }
.header-main { padding: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu-container { background: var(--color-primary); border-bottom: 3px solid var(--color-brand-black); }

/* Buttons */
.btn-primary, .btn-outline, .btn-large, .btn-banner, .promo-banner .btn-banner, .btn-action, .btn-edit, .btn-delete { height: 46px !important; padding: 0 24px !important; border-radius: 6px !important; font-family: var(--font-heading) !important; font-size: 0.9rem !important; font-weight: 600 !important; line-height: 1 !important; transition: all 200ms ease; cursor: pointer; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 5px; text-decoration: none; border: 2px solid transparent; box-sizing: border-box !important; }
.btn-primary { background: var(--color-brand-black); color: var(--color-brand-yellow); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Cards */
.card { background: #ffffff; border-radius: 8px; padding: var(--space-lg); box-shadow: var(--shadow-md); transition: all 200ms ease; border: 1px solid var(--color-border); }

/* Marquee Animation */
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; background: white; border-bottom: 1px solid var(--color-border); padding: 20px 0; display: flex; }
.marquee-track { display: flex; animation: marquee 20s linear infinite; gap: 80px; align-items: center; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track img { height: 40px; opacity: 0.6; filter: grayscale(100%); transition: 0.3s; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0%); }

/* Product Carousel */
.product-group { position: relative; margin-bottom: 3rem; }
.carousel-viewport { overflow: hidden; width: 100%; padding: 10px 0; }
.carousel-track { display: flex; gap: var(--space-md); transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel-item { min-width: calc((100% - (var(--space-md) * 4)) / 5); max-width: calc((100% - (var(--space-md) * 4)) / 5); }

/* Product Card */
.product-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); transition: all 200ms ease; cursor: pointer; background: white; border-radius: 8px; overflow: hidden; height: 100%; }
.product-card:hover { border-color: var(--color-cta); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-img-wrapper { background: #fbfbfb; padding: var(--space-md); text-align: center; border-bottom: 1px solid var(--color-border); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.card-content { padding: var(--space-md); display: flex; flex-direction: column; flex-grow: 1; }
.product-brand { font-size: 0.75rem; color: var(--color-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.product-title { font-size: 0.95rem; color: var(--color-primary); font-weight: 600; line-height: 1.3; margin-bottom: var(--space-sm); flex-grow: 1;}
.price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.price span { font-size: 0.75rem; color: var(--color-muted); font-weight: 400; }
.b2b-price { color: var(--b2b-color); }

/* Trust Badges 4 Column */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-3xl); }
.trust-badge-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--color-border); background: white; border-radius: 8px; transition: all 200ms ease; }
.trust-badge-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.trust-badge-card i { font-size: 2.5rem; color: var(--color-primary); }
.trust-badge-card div strong { display: block; font-size: 1rem; color: var(--color-primary); margin-bottom: 4px; }
.trust-badge-card div p { font-size: 0.85rem; color: var(--color-secondary); margin: 0; line-height: 1.4; }

/* Banners */
.two-banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); margin-bottom: var(--space-3xl); }
.promo-banner { background: var(--color-primary); color: white; border-radius: 8px; padding: 2rem; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; }
.promo-banner.accent { background: var(--color-brand-yellow); color: var(--color-primary); }
.promo-banner h3 { font-size: 2rem; color: inherit; margin-bottom: 0.5rem; }
.promo-banner p { color: inherit; opacity: 0.8; font-size: 1.1rem; }
.promo-banner .btn-banner { background: white; color: var(--color-primary); border: none; }
.promo-banner.accent .btn-banner { background: var(--color-primary); color: white; border: none; }

/* Footer */
footer { background: #020617; color: #cbd5e1; padding: 4rem 0 2rem 0; font-size: 0.9rem; }
footer h4 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; }
footer ul li { margin-bottom: 0.75rem; }
footer ul li a { color: #94a3b8; }
footer ul li a:hover { color: var(--color-brand-yellow); }
footer .social-icons a { font-size: 1.5rem; color: white; margin-right: 15px; }
footer .social-icons a:hover { color: var(--color-brand-yellow); }

/* B2B Dynamic Mode */
.b2b-active .b2b-only { display: block !important; }
.b2b-active .b2c-only { display: none !important; }
.b2b-active .b2b-flex { display: flex !important; }
.b2b-only, .b2b-flex { display: none; }

/* Category Layout */
.breadcrumb { font-size: 0.9rem; margin-bottom: var(--space-xl); display: flex; align-items: center; gap: 8px; color: var(--color-muted); }
.breadcrumb a { color: var(--color-primary); font-weight: 600; }
.breadcrumb i { font-size: 0.8rem; }

.category-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-xl); margin-bottom: var(--space-3xl); }
.filter-sidebar { background: white; border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-lg); height: fit-content; }
.filter-sidebar h3 { font-size: 1.2rem; border-bottom: 2px solid var(--color-background); padding-bottom: 10px; margin-bottom: 15px; }
.filter-group { margin-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-md); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group-title { font-weight: 700; color: var(--color-primary); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.filter-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--color-secondary); cursor: pointer; }
.filter-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--color-primary); }

.category-header { display: flex; justify-content: space-between; align-items: center; background: white; border: 1px solid var(--color-border); border-radius: 8px; padding: 15px 20px; margin-bottom: var(--space-lg); }
.category-select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 4px; font-family: var(--font-body); color: var(--color-primary); outline: none; cursor: pointer; }

/* Product Details Layout */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.product-gallery { background: white; border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-xl); text-align: center; }
.product-gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: var(--space-md); }
.gallery-thumbs { display: flex; gap: 10px; justify-content: center; }
.gallery-thumbs img { width: 80px; height: 80px; border: 1px solid var(--color-border); border-radius: 4px; cursor: pointer; padding: 4px; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--color-cta); }

.product-info-panel { padding-top: var(--space-md); }
.product-info-panel h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: var(--space-sm); }
.product-meta { display: flex; gap: var(--space-lg); color: var(--color-muted); font-size: 0.9rem; margin-bottom: var(--space-lg); border-bottom: 1px dashed var(--color-border); padding-bottom: 15px; }

.price-block { background: #f8fafc; padding: var(--space-lg); border-radius: 8px; border: 1px solid var(--color-border); margin-bottom: var(--space-lg); }
.price-block .main-price { font-size: 2.5rem; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); display: flex; align-items: baseline; gap: 4px;}
.price-block .main-price span { font-size: 1rem; color: var(--color-muted); font-weight: 400; }
.b2b-price-badge { background: var(--b2b-color); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; margin-bottom: 10px; display: inline-block; }

.certification-notice { background: rgba(3, 105, 161, 0.05); border-left: 4px solid var(--color-cta); padding: 15px; margin-bottom: var(--space-md); border-radius: 0 4px 4px 0; color: var(--color-cta); display: flex; gap: 12px; }

.action-block { display: flex; gap: var(--space-md); margin-bottom: var(--space-xl); }
.qty-input { width: 80px; text-align: center; font-size: 1.2rem; border: 1px solid var(--color-border); border-radius: 6px; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; width: 100%; display: flex; justify-content: center; }

.info-list { list-style: none; padding: 0; margin-bottom: var(--space-xl); }
.info-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--color-secondary); }
.info-list i { color: var(--color-brand-yellow); background: var(--color-brand-black); border-radius: 50%; padding: 4px; font-size: 1rem; }

.tabs { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: var(--space-lg); }
.tab-btn { padding: 15px 25px; font-weight: 700; border: none; background: transparent; color: var(--color-muted); cursor: pointer; font-family: var(--font-heading); font-size: 1.1rem; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Dashboard Layout */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-2xl); margin-bottom: var(--space-3xl); }
.dash-sidebar { background: var(--color-primary); border-radius: 8px; padding: var(--space-lg) 0; color: white; height: fit-content; overflow: hidden; }
.dash-sidebar h3 { color: var(--color-brand-yellow); font-size: 0.9rem; padding: 0 var(--space-lg); margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 1px; }
.dash-nav { padding: 0; margin: 0; }
.dash-nav li { margin-bottom: 5px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px var(--space-lg); color: #cbd5e1; font-weight: 600; border-left: 4px solid transparent; font-size: 0.9rem;}
.dash-nav a:hover, .dash-nav a.active { background: rgba(255, 255, 255, 0.05); color: white; border-left-color: var(--color-brand-yellow); }
.dash-nav a i { font-size: 1.2rem; color: var(--color-brand-yellow); opacity: 0.8;}
.dash-nav a:hover i, .dash-nav a.active i { opacity: 1; }

.dash-content { padding: 0; min-width: 0; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.stat-card { background: white; padding: var(--space-xl); border-radius: 8px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 20px;}
.stat-card .icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem;}
.stat-card.primary .icon { background: rgba(3, 105, 161, 0.1); color: var(--color-cta); }
.stat-card.success .icon { background: rgba(4, 120, 87, 0.1); color: var(--b2b-color); }
.stat-card.warning .icon { background: rgba(255, 229, 0, 0.2); color: #b45309; }
.stat-card div span { color: var(--color-muted); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 4px;}
.stat-card div strong { color: var(--color-primary); font-size: 2rem; font-family: var(--font-heading); line-height: 1;}

.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.data-table th { background: #f8fafc; padding: 15px; text-align: left; font-size: 0.85rem; color: var(--color-muted); border-bottom: 1px solid var(--color-border); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
.data-table td { padding: 15px; border-bottom: 1px solid var(--color-border); color: var(--color-primary); font-size: 1rem; }
.data-table tr:hover td { background: #f1f5f9; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #b45309; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.badge-success { background: #d1fae5; color: #047857; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.badge-info { background: #e0f2fe; color: #0369a1; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.badge-danger { background: #fee2e2; color: #b91c1c; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; }

/* Admin Global Elements */
.form-input { width: 100%; padding: 12px 15px; border: 1px solid var(--color-border); border-radius: 6px; font-family: var(--font-body); font-size: 1rem; outline: none; transition: 0.2s ease; background: white; margin-top:5px; }
.form-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05); }
.form-label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: var(--color-primary); margin-top:15px; }

/* Pagination Component */
.pagination { display: inline-flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination .page-item { display: inline-flex; }
.pagination .page-link { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: 0.2s ease; background: white; }
.pagination .page-link:hover { border-color: var(--color-secondary); background: #f8fafc; }
.pagination .page-item.active .page-link { background: var(--color-primary); color: var(--color-brand-yellow); border-color: var(--color-primary); }
.pagination .page-item.disabled .page-link { color: #94a3b8; pointer-events: none; background: #f8fafc; border-color: #f1f5f9; }

/* Header User Dropdown */
.user-account-dropdown { position: relative; }
.user-account-dropdown:hover .user-dropdown-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-menu { position: absolute; top: 100%; right: 0; background: white; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); width: 240px; margin-top: 15px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100; }
.user-dropdown-menu::before { content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px; background: transparent; }
.user-dropdown-menu ul { padding: 8px; }
.user-dropdown-menu li a { display: flex; align-items: center; gap: 8px; padding: 10px 15px; color: var(--color-primary); font-weight: 500; font-size: 0.9rem; text-decoration: none; border-radius: 8px; transition: 0.2s; }
.user-dropdown-menu li a:hover { background: #f8fafc; color: var(--color-cta); }
.user-dropdown-menu li a i { font-size: 1.1rem; color: var(--color-muted); transition: 0.2s; }
.user-dropdown-menu li a:hover i { color: var(--color-cta); }

/* Offcanvas Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -5px 0 35px rgba(0,0,0,0.15);
    transition: 0.4s cubic-bezier(0.82, 0.085, 0.395, 0.895);
    display: flex;
    flex-direction: column;
}

.offcanvas-cart.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--color-background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-background);
}

.cart-header h3 { margin: 0; font-size: 1.25rem; color: var(--color-primary); }

.cart-close {
    background: white;
    border: 1px solid var(--color-border);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-secondary);
    transition: 0.2s;
}

.cart-close:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.cart-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

/* Admin Tabs */
.admin-tabs { display: inline-flex; gap: 5px; background: white; padding: 5px; border-radius: 10px; border: 1px solid var(--color-border); box-shadow: 0 2px 5px rgba(0,0,0,0.02); margin-bottom: 20px; }
.admin-tab { padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease; color: #64748b; display: flex; align-items: center; gap: 8px; }
.admin-tab:hover { color: var(--color-primary); }
.admin-tab.active { background: var(--color-primary); color: white; }
.admin-tab.active i { color: var(--color-brand-yellow); }
.admin-tab .tab-badge { background: #e2e8f0; color: #475569; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; transition: all 0.2s; margin-left: 5px; }
.admin-tab.active .tab-badge { background: rgba(255,255,255,0.2); color: white; }

/* ==========================================================================
   Mobile Responsiveness and Navigation Overrides
   ========================================================================== */

/* Bottom Sticky Mobile Menu */
.bottom-mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}
.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    text-align: center;
    transition: color 0.2s;
}
.mobile-menu-item i {
    font-size: 1.35rem;
    color: #0f172a;
}
.mobile-menu-item:hover, .mobile-menu-item:active {
    color: var(--color-primary, #0f172a);
}

@media (max-width: 992px) {
    .trust-row { grid-template-columns: repeat(2, 1fr) !important; }
    .category-layout { grid-template-columns: 1fr !important; }
    .filter-sidebar { display: none !important; }
    .dashboard-layout { grid-template-columns: 1fr !important; }
    .dash-sidebar { margin-bottom: 20px; }
    .carousel-item {
        min-width: calc((100% - (var(--space-md) * 2)) / 3) !important;
        max-width: calc((100% - (var(--space-md) * 2)) / 3) !important;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 72px !important;
        padding-bottom: 70px !important;
    }
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    }
    .header-top { display: none !important; }
    .header-main { display: none !important; }
    .header-mobile {
        display: block !important;
    }
    .nav-menu-container { display: none !important; }
    .bottom-mobile-menu { display: flex !important; }
    .two-banners { grid-template-columns: 1fr !important; }
    .product-layout { grid-template-columns: 1fr !important; }
    
    .grid-cols-4, .grid-cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-bottom-flex {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .contact-main-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-main-grid > div:first-child {
        border-right: none !important;
        border-bottom: 1px solid var(--color-border) !important;
    }
    .contact-form-row {
        grid-template-columns: 1fr !important;
    }
    .contact-info-panel, .contact-form-panel {
        padding: 1.5rem 1rem !important;
    }
    .offcanvas-cart {
        width: 100vw !important;
        right: -100vw !important;
        z-index: 100000 !important;
    }
    .offcanvas-cart.active {
        right: 0 !important;
    }
    .cart-overlay {
        z-index: 99999 !important;
    }
    .checkout-gateway-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 1rem !important;
    }
    .checkout-gateway-main {
        padding-top: 6rem !important;
    }
    .checkout-gateway-title {
        font-size: 1.6rem !important;
    }
    .checkout-gateway-main i.ph-shopping-bag {
        display: none !important;
    }
    .card-icon-wrap {
        display: none !important;
    }
    /* Dashboard Mobile Overrides */
    .dashboard-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .dash-content {
        min-width: 0 !important;
        width: 100% !important;
    }
    .stat-card {
        padding: 16px !important;
        gap: 15px !important;
    }
    .stat-card .icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.6rem !important;
    }
    .stat-card div strong {
        font-size: 1.5rem !important;
    }
    .order-card-info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .address-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .dash-sidebar {
        width: 100% !important;
        margin-bottom: 24px !important;
        padding-bottom: 0 !important;
        padding-top: 12px !important;
    }
    .dash-sidebar h3 {
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 12px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .dash-sidebar.menu-open {
        padding-bottom: 15px !important;
    }
    .dash-sidebar.menu-open h3 {
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        margin-bottom: 10px !important;
        padding-bottom: 15px !important;
    }
    .dash-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .dash-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .dash-header > div {
        width: 100% !important;
    }
    .dash-header button, .dash-header a.btn-primary, .dash-header a#print-btn {
        width: 100% !important;
        display: inline-flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .data-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .modal-grid-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .order-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .status-tracker-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding-left: 20px !important;
    }
    .status-tracker-container > div[style*="absolute"] {
        display: none !important;
    }
    .status-tracker-container > div:not([style*="absolute"]) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        width: 100% !important;
        gap: 15px !important;
    }
    .status-tracker-container > div:not([style*="absolute"]) > div {
        margin: 0 !important;
        box-shadow: none !important;
    }

    .carousel-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        transform: none !important;
        width: 100% !important;
    }
    .carousel-item {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .carousel-item:nth-child(n+11) {
        display: none !important;
    }

    /* Category Mobile Fixes */
    .category-header, .filter-sidebar {
        display: none !important;
    }
    .mobile-category-accordion-box {
        display: block !important;
    }
    .mobile-filter-btn {
        display: flex !important;
    }

    /* Product Review & Similar Mobile Fixes */
    .product-reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .similar-products-grid .product-card:nth-child(n+7) {
        display: none !important;
    }

    /* Product Page Sticky Bottom Action Bar */
    .product-page-body .bottom-mobile-menu {
        display: none !important;
    }
    .product-page-body .product-sticky-bar {
        display: flex !important;
    }
    .product-page-body {
        padding-bottom: 80px !important;
    }

    /* About Us Mobile Fixes */
    .intro-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 30px !important;
    }
    .value-chain-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .about-brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 576px) {
    .trust-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .checkout-form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .checkout-payment-methods {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .checkout-summary-products {
        display: none !important;
    }
    .checkout-summary-col {
        display: none !important;
    }
    .checkout-mobile-action-card {
        display: block !important;
    }
}

/* Havasis Intro Side-by-Side Section */
.havasis-intro-section {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 24px;
    margin: 50px auto 80px auto;
    max-width: 1200px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 4px solid #fbbf24;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 991px) {
    .havasis-intro-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 24px;
    }
}

.havasis-intro-img-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    height: 380px;
    position: relative;
}

@media (max-width: 991px) {
    .havasis-intro-img-container {
        height: 280px;
    }
}

.havasis-intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.havasis-intro-section:hover .havasis-intro-img {
    transform: scale(1.03);
}

