/* ============================================
   SKYGATE WHOLESALE — B2B STOREFRONT
   OpenCart-matching dark header design
   ============================================ */

:root {
    --s-primary: #4FC3F7;
    --s-primary-dark: #0288D1;
    --s-primary-light: #E1F5FE;
    --s-accent: #F59E0B;
    --s-bg: #FFFFFF;
    --s-bg-alt: #F5F5F5;
    --s-bg-dark: #333333;
    --s-bg-darker: #222222;
    --s-text: #333333;
    --s-text-light: #666666;
    --s-text-muted: #999999;
    --s-border: #E0E0E0;
    --s-border-light: #EEEEEE;
    --s-success: #4CAF50;
    --s-danger: #F44336;
    --s-warning: #FF9800;
    --s-radius: 0px;
    --s-radius-sm: 3px;
    --s-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --s-shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --s-header-height: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.store-body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--s-bg);
    color: var(--s-text);
    line-height: 1.5;
    font-size: 14px;
}
a { color: var(--s-text); text-decoration: none; }
a:hover { color: var(--s-primary-dark); }
img { max-width: 100%; height: auto; }

/* ---- CONTAINER (matches OpenCart: max-width 95%) ---- */
.container { max-width: 95%; margin: 0 auto; padding: 0 15px; }

/* ---- TOP PROMOTIONAL BANNER ---- */
.store-top-banner {
    display: block;
    width: 100%;
    line-height: 0;
    background: #1a1a2e;
}
.store-top-banner img,
.store-top-banner video {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- ANNOUNCEMENT BAR ---- */
.store-announcement {
    background: var(--s-primary-dark);
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- TOP BAR (matches OpenCart: #f7f7f7, 42px height, 15px Open Sans) ---- */
.store-topbar {
    background: #f7f7f7;
    border-bottom: 1px solid rgba(129, 129, 120, 0.2);
    font-size: 15px;
    font-weight: 500;
    padding: 0;
    height: 42px;
    display: flex;
    align-items: center;
    color: #798080;
}
.store-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}
.store-topbar-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.store-topbar-social a {
    color: #798080;
    font-size: 15px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.store-topbar-social a:hover { color: var(--s-primary-dark); }
.store-topbar-social a svg { width: 16px; height: 16px; }
.store-topbar-links {
    display: flex;
    gap: 0;
    align-items: center;
}
.store-topbar-links a,
.store-topbar-links span {
    color: #798080;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
    border-left: 1px solid rgba(129, 129, 120, 0.2);
}
.store-topbar-links a:first-child,
.store-topbar-links span:first-child { border-left: none; }
.store-topbar-links a:hover { color: var(--s-primary-dark); }

/* ---- HEADER (matches OpenCart: white bg, 105px height) ---- */
.store-header {
    background: #fff;
    padding: 15px 0;
    min-height: 105px;
    display: flex;
    align-items: center;
}
.store-header .container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
}
.store-logo { flex-shrink: 0; }
.store-logo img { max-height: 150px; width: auto; border-radius: 12px; }
.store-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #00BCD4;
    white-space: nowrap;
    line-height: 1.1;
}

/* Search (matches OpenCart: fills available space, 46px tall) */
.store-search {
    flex: 1;
    position: relative;
}
.store-search form {
    display: flex;
}
.store-search input {
    flex: 1;
    padding: 12px 15px;
    height: 46px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 15px;
    outline: none;
    border-radius: 0;
}
.store-search input:focus { border-color: #999; }
.store-search button {
    width: 46px;
    height: 46px;
    border: 1px solid #333;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.store-search button:hover { background: #555; }

/* Search Results Dropdown */
.store-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--s-border);
    box-shadow: var(--s-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}
.store-search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--s-border-light);
    cursor: pointer;
    color: var(--s-text);
}
.search-result-item:hover { background: var(--s-bg-alt); }
.search-result-item img { width: 40px; height: 40px; object-fit: contain; }
.search-result-info { flex: 1; }
.search-result-name { font-size: 13px; font-weight: 500; }
.search-result-brand { font-size: 11px; color: var(--s-text-muted); }
.search-result-price { font-weight: 600; color: var(--s-text); font-size: 13px; }
.search-result-price .price-old { text-decoration: line-through; color: #999; font-weight: 400; font-size: 11px; margin-right: 4px; }
.search-result-price .price-sale { color: #e74c3c; font-weight: 700; font-size: 13px; }

/* Header Right Actions */
.store-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}
.header-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--s-text);
}
.header-action-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-action-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.header-action-text {
    line-height: 1.3;
}
.header-action-text strong {
    display: block;
    font-size: 13px;
}
.header-action-text small {
    font-size: 11px;
    color: var(--s-text-muted);
}

/* Cart Button */
.store-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--s-text);
    cursor: pointer;
    position: relative;
}
.store-cart-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.store-cart-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--s-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.store-cart-info {
    line-height: 1.3;
    font-size: 13px;
}
.store-cart-info strong { display: block; }

/* ---- NAVIGATION BAR (matches OpenCart: #212529, 52px, 14px/600) ---- */
.store-nav {
    background: #212529;
    position: relative;
    z-index: 999;
}
.store-nav .container {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: visible;
    max-width: 100%;
    padding: 0 10px;
    justify-content: center;
}
.store-nav-item {
    position: relative;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.store-nav-item:hover {
    background: #444;
    color: #fff;
}
.store-nav-item.has-dropdown::after {
    content: '\25BE';
    font-size: 10px;
    opacity: 0.7;
}

/* Mega Menu — matches OpenCart: 1000px fixed, 4-col flex, left-aligned to nav item */
.store-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 1000px;
    background: #fff;
    border: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 20px 20px;
    z-index: 9999;
    overflow-x: hidden;
}
.store-mega-menu .mega-menu-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
    width: calc(100% + 24px);
}
.store-mega-menu .mega-menu-col {
    width: 25%;
    padding: 12px;
    box-sizing: border-box;
}
.store-nav-item:hover > .store-mega-menu { display: block; }
.mega-menu-group {
    margin-bottom: 14px;
}
.mega-menu-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    text-transform: uppercase;
}
.mega-menu-group h4 a { color: #333; text-decoration: none; text-transform: uppercase; font-weight: 700; }
.mega-menu-group h4 a:hover { color: var(--s-primary-dark); }
.mega-menu-group a {
    display: block;
    padding: 3px 0;
    font-size: 14px;
    color: #333;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: none;
    line-height: 1.4;
}
.mega-menu-group a:hover { color: var(--s-primary-dark); }

/* Simple Dropdown for 2-level categories */
.store-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-width: 280px;
    background: #fff;
    border: 1px solid var(--s-border);
    box-shadow: var(--s-shadow-lg);
    padding: 5px 0;
    z-index: 999;
}
.store-nav-item:hover > .store-dropdown-menu { display: block; }
.store-dropdown-menu a {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--s-text);
    text-decoration: none;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}
.store-dropdown-menu a:hover {
    background: var(--s-bg-alt);
    color: var(--s-primary-dark);
}

/* ---- Hamburger Toggle (hidden on desktop) ---- */
.store-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.store-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- MARQUEE BAR ---- */
.store-marquee {
    background: var(--s-primary-light);
    padding: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--s-primary-dark);
    font-weight: 500;
}

/* ---- HERO BANNER SLIDER ---- */
.store-banner-slider {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 200px;
    background: var(--s-bg-alt);
}
.banner-slide {
    display: none;
    width: 100%;
}
.banner-slide.active { display: block; }
.banner-slide img,
.banner-slide video { width: 100%; height: auto; display: block; }
.banner-slide a { display: block; }
.banner-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.2);
}
.banner-dot.active { background: #fff; }
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.banner-arrow:hover { background: rgba(0,0,0,0.7); }
.banner-arrow.prev { left: 10px; }
.banner-arrow.next { right: 10px; }

/* Homepage Banner Layout (main + side, 3fr/1fr matches OpenCart 75%/25%) */
.home-banners {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
    margin: 0 0 15px 0;
}
.home-banners.no-side { grid-template-columns: 1fr; gap: 0; }
.home-banners-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.home-banners-side a {
    display: block;
    overflow: hidden;
}
.home-banners-side img,
.home-banners-side video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.home-banners-side a:hover img,
.home-banners-side a:hover video { transform: scale(1.02); }

/* Sub-Marquee 3-Column Banners (with rotation support) */
.sub-marquee-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}
.sub-marquee-banner {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.sub-marquee-item { display: none; }
.sub-marquee-item.active { display: block; }
.sub-marquee-banner img,
.sub-marquee-banner video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.sub-marquee-banner:hover img,
.sub-marquee-banner:hover video { transform: scale(1.02); }

/* ---- SECTION HEADERS (matches OpenCart: centered, 22px, uppercase) ---- */
.store-section {
    margin: 30px 0;
}
.store-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--s-border);
}
.store-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #242424;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.store-section-link {
    font-size: 13px;
    color: var(--s-primary-dark);
    font-weight: 500;
}
.store-section-link:hover { text-decoration: underline; }

/* Homepage Section Tabs (e.g., WATERPIPE / HANDPIPE / SOFT GLASS) */
.section-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.section-tab-btn {
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border: none;
    background: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'Open Sans', sans-serif;
}
.section-tab-btn:hover { color: #000; }
.section-tab-btn.active {
    color: #000;
    border-bottom-color: #333;
    font-weight: 600;
}
.section-tab-content {
    display: none;
}
.section-tab-content.active {
    display: block;
}

/* ---- PRODUCT CAROUSEL (horizontal scroll with arrows) ---- */
.product-carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 15px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}
.carousel-track .product-card {
    flex: 0 0 calc(20% - 12px);
    min-width: calc(20% - 12px);
}
.carousel-arrow-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 0;
}
.carousel-arrow-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-arrow-btn.carousel-prev { left: 0; }
.carousel-arrow-btn.carousel-next { right: 0; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #999;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #333;
    border-color: #333;
}

/* Full-width Marquee Banner (with rotation support) */
.homepage-banner-marquee {
    margin: 20px 0;
    line-height: 0;
    position: relative;
    overflow: hidden;
}
.marquee-slide { display: none; }
.marquee-slide.active { display: block; }
.homepage-banner-marquee a {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.homepage-banner-marquee img,
.homepage-banner-marquee video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.homepage-banner-marquee a:hover img,
.homepage-banner-marquee a:hover video { transform: scale(1.01); }

/* Homepage Banner Rows (between product sections) */
.homepage-banner-row {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}
.homepage-banner-row.cols-2 {
    grid-template-columns: 1fr 1fr;
}
.homepage-banner-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.homepage-banner-item {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.homepage-banner-item img,
.homepage-banner-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.homepage-banner-item:hover img,
.homepage-banner-item:hover video { transform: scale(1.02); }

/* Legacy Section Tabs */
.store-section-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--s-border);
}
.store-section-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--s-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.store-section-tab:hover { color: var(--s-text); }
.store-section-tab.active {
    color: var(--s-text);
    border-bottom-color: var(--s-text);
}

/* ---- PRODUCT GRID ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--s-border-light);
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.product-card:hover {
    box-shadow: var(--s-shadow-lg);
}
.product-card-image {
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 10px;
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-new { background: var(--s-success); }
.badge-sale { background: var(--s-danger); }
.badge-outofstock { background: var(--s-text-muted); }
.badge-discount {
    background: var(--s-danger);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}
/* When both out-of-stock and discount badge appear, stack discount below */
.badge-outofstock + .badge-discount {
    top: 34px;
}

.product-card-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-card-brand {
    font-size: 11px;
    color: var(--s-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-meta {
    font-size: 11px;
    color: var(--s-text-muted, #888);
    line-height: 1.3;
}
.product-card-price {
    font-size: 18px;
    font-weight: 500;
    color: #232323;
    margin-top: auto;
    padding-top: 6px;
}
.product-card-price .price-old {
    text-decoration: line-through;
    color: var(--s-text-muted);
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}
.product-card-price .price-sale {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
}
.product-card-price.login-to-view {
    font-size: 12px;
    font-weight: 500;
    color: var(--s-accent);
}

.product-card-actions {
    padding: 0;
}
.product-card-actions .btn-add-cart {
    width: 100%;
    padding: 0;
    height: 38px;
    border: none;
    background: #212529;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
.product-card-actions .btn-add-cart:hover { background: #444; }
.product-card-actions .btn-add-cart:disabled { background: #999; cursor: not-allowed; }

/* Product Carousel (horizontal scroll) */
.product-carousel-wrap {
    position: relative;
    overflow: hidden;
}
.product-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card {
    flex: 0 0 calc(20% - 12px);
    min-width: 200px;
    scroll-snap-align: start;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
}
.carousel-arrow:hover { background: rgba(0,0,0,0.8); }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

/* Category Banner Blocks */
.category-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}
.category-banner-block {
    overflow: hidden;
    display: block;
}
.category-banner-block img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.category-banner-block:hover img { transform: scale(1.02); }

/* ---- CATALOG PAGE ---- */
.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin: 20px 0;
}
.catalog-sidebar {
    background: #fff;
    border: 1px solid var(--s-border-light);
}
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 15px;
    background: var(--s-bg-alt);
    border-bottom: 1px solid var(--s-border-light);
    text-transform: uppercase;
}
.sidebar-links a {
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    color: var(--s-text-light);
    border-bottom: 1px solid var(--s-border-light);
    transition: background 0.15s;
}
.sidebar-links a:hover { background: var(--s-bg-alt); color: var(--s-text); }
.sidebar-links a.active {
    background: var(--s-bg-alt);
    color: var(--s-primary-dark);
    font-weight: 600;
}
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: var(--s-bg-alt);
    border: 1px solid var(--s-border-light);
    flex-wrap: wrap;
    gap: 10px;
}
.catalog-toolbar select, .catalog-toolbar input {
    padding: 6px 10px;
    border: 1px solid var(--s-border);
    font-size: 13px;
    background: #fff;
    border-radius: 0;
}
.catalog-results-info { font-size: 13px; color: var(--s-text-muted); }

/* ---- BREADCRUMB ---- */
.store-breadcrumb {
    padding: 12px 0;
    font-size: 12px;
    color: var(--s-text-muted);
    border-bottom: 1px solid var(--s-border-light);
    margin-bottom: 10px;
}
.store-breadcrumb a { color: var(--s-text-light); }
.store-breadcrumb a:hover { color: var(--s-primary-dark); }
.store-breadcrumb span { margin: 0 5px; }

/* ---- PAGINATION ---- */
.store-pagination {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 20px 0;
}
.store-pagination button {
    padding: 7px 13px;
    border: 1px solid var(--s-border);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: var(--s-text);
    transition: background 0.15s;
}
.store-pagination button:hover { background: var(--s-bg-alt); }
.store-pagination button.active {
    background: var(--s-bg-dark);
    color: #fff;
    border-color: var(--s-bg-dark);
}
.store-pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- PRODUCT DETAIL ---- */
.product-detail {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;
    margin: 20px 0;
}
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}
.product-detail-image {
    background: #fff;
    border: 1px solid var(--s-border-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    max-height: 450px;
}
.product-detail-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-thumbnails {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    align-items: center;
}
.product-thumbnails::-webkit-scrollbar { height: 4px; }
.product-thumbnails::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.thumb-separator {
    font-size: 9px;
    color: #999;
    padding: 0 2px;
    white-space: nowrap;
    align-self: center;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    border-left: 2px solid #ddd;
    padding-left: 4px;
    margin-left: 2px;
    max-height: 55px;
    overflow: hidden;
    line-height: 1.1;
    flex-shrink: 0;
}
.pd-gallery-reset {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #b3956a;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}
.pd-gallery-reset:hover { text-decoration: underline; }
.product-thumb {
    width: 60px;
    min-width: 60px;
    height: 60px;
    border: 1px solid var(--s-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.product-thumb:hover,
.product-thumb.active { border-color: var(--s-primary-dark); }
.product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--s-text);
    line-height: 1.3;
    margin: 0;
}
/* Reviews row */
.pd-reviews-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.pd-stars { font-size: 16px; letter-spacing: 2px; color: #f5a623; }
.pd-reviews-text { font-size: 13px; color: #666; }
/* Meta table — Brand / Product Code / Availability */
.pd-meta-table { display: flex; flex-direction: column; }
.pd-meta-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}
.pd-meta-label {
    min-width: 200px;
    font-weight: 700;
    color: #333;
}
.pd-meta-value {
    color: #333;
    font-weight: 400;
}
.product-detail-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--s-text);
    padding: 10px 0;
    border-top: 1px solid var(--s-border-light);
    border-bottom: 1px solid var(--s-border-light);
}
.product-detail-price .price-old {
    text-decoration: line-through;
    color: var(--s-text-muted);
    font-weight: 400;
    font-size: 18px;
    margin-right: 8px;
}
.product-detail-price .price-sale {
    color: #e74c3c;
    font-weight: 700;
    font-size: 24px;
}
.product-detail-price.login-to-view {
    font-size: 16px;
    font-weight: 500;
    color: var(--s-accent);
}
.product-detail-stock {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}
.stock-in { background: #E8F5E9; color: #2E7D32; }
.stock-out { background: #FFEBEE; color: #C62828; }
.stock-low { background: #FFF3E0; color: #E65100; }

/* Option Selector */
.product-option-group {
    margin: 10px 0;
}
.product-option-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--s-text);
}
.product-option-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--s-border);
    font-size: 14px;
    background: #fff;
}

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--s-border);
    width: fit-content;
}
.qty-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--s-bg-alt);
    font-size: 16px;
    cursor: pointer;
    color: var(--s-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-selector button:hover { background: var(--s-border); }
.qty-selector input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--s-border);
    border-right: 1px solid var(--s-border);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-cart-lg {
    padding: 12px 30px;
    background: var(--s-bg-dark);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-add-cart-lg:hover { background: #444; }
.btn-add-cart-lg:disabled { background: #999; cursor: not-allowed; }

/* Variant Options Table — OpenCart-matching style */
.variant-search { margin-bottom: 10px; }
.variant-search input {
    width: 100%; padding: 8px 12px; border: 1px solid #ddd;
    font-size: 14px; background: #fff; font-family: inherit;
}
.variant-search input:focus { outline: none; border-color: #999; }
.variant-table-wrap { }
.vt-type-label {
    font-size: 15px; font-weight: 700; text-transform: uppercase; color: #333;
    margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #b3956a;
    letter-spacing: 0.5px;
}
.vt-type-label:first-child { margin-top: 0; }
.variant-options-table {
    width: auto; border-collapse: separate; border-spacing: 3px 3px;
    font-weight: 600; text-transform: uppercase; font-size: 14px;
}
.variant-options-table th {
    background: #fff; color: #b3956a; padding: 10px 12px;
    text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase; border-bottom: 1px solid #e0e0e0;
}
.variant-options-table th.vt-stock { width: 100px; }
.variant-options-table th.vt-qty { width: 70px; }
.variant-options-table th.vt-price { width: 90px; text-align: left; }
.variant-options-table td {
    padding: 10px 12px; border-bottom: 1px solid #eee;
    vertical-align: middle; background: #fff;
}
.variant-options-table tr:hover td { background: #f8f8f8; }
.vt-row.vt-selected td { background: #fff8e1; border-bottom-color: #f0d070; }
.vt-row.vt-selected:hover td { background: #fff3cd; }
td.vt-stock { font-weight: 600; color: #333; }
.vt-qty-input {
    width: 50px; padding: 5px 8px; text-align: center; border: 1px solid #ccc;
    font-size: 14px; font-family: inherit; font-weight: 600;
}
.vt-qty-input:focus { outline: none; border-color: #999; }
.vt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
td.vt-price { text-align: left; font-weight: 600; color: #333; }
td.vt-price .price-old { text-decoration: line-through; color: #999; font-weight: 400; font-size: 13px; margin-right: 4px; }
td.vt-price .price-sale { color: #e74c3c; font-weight: 700; }
td.vt-option { font-weight: 600; text-transform: uppercase; color: #333; }
.variant-add-cart-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; margin-top: 12px; gap: 12px;
}
.variant-add-cart-bar span { font-size: 13px; color: #666; font-weight: 500; }
.variant-add-cart-bar .btn-add-cart-lg { padding: 10px 24px; }

/* Product Description Tabs */
.product-tabs {
    margin-top: 30px;
    border: 1px solid var(--s-border-light);
}
.product-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--s-border-light);
    background: var(--s-bg-alt);
}
.product-tab-btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--s-text-light);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-transform: uppercase;
}
.product-tab-btn:hover { color: var(--s-text); }
.product-tab-btn.active {
    color: var(--s-text);
    background: #fff;
    border-bottom-color: var(--s-text);
}
.product-tab-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--s-text-light);
}

/* ---- CART PAGE ---- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid var(--s-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--s-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--s-border-light);
    vertical-align: middle;
}
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-img { width: 60px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--s-border-light); }
.cart-item-name { font-weight: 500; font-size: 14px; }
.cart-item-brand { font-size: 12px; color: var(--s-text-muted); }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--s-danger);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}
.cart-summary {
    max-width: 400px;
    margin-left: auto;
    margin-top: 20px;
    background: var(--s-bg-alt);
    border: 1px solid var(--s-border-light);
    padding: 20px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.cart-summary-row.total {
    border-top: 2px solid var(--s-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    gap: 12px;
}

/* ---- CHECKOUT ---- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    margin: 20px 0;
}
.checkout-section {
    background: #fff;
    border: 1px solid var(--s-border-light);
    padding: 20px;
    margin-bottom: 20px;
}
.checkout-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--s-border-light);
    text-transform: uppercase;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--s-text-light);
    margin-bottom: 4px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--s-border);
    font-size: 14px;
    background: #fff;
    border-radius: 0;
}
.form-group input:focus, .form-group select:focus {
    border-color: #999;
    outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--s-bg-dark); color: #fff; }
.btn-primary:hover { background: #444; color: #fff; }
.btn-secondary { background: var(--s-bg-alt); color: var(--s-text); border: 1px solid var(--s-border); }
.btn-secondary:hover { background: var(--s-border); }
.btn-success { background: var(--s-success); color: #fff; }
.btn-danger { background: var(--s-danger); color: #fff; }
.btn-lg { padding: 12px 30px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ---- ACCOUNT DASHBOARD ---- */
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin: 20px 0;
}
.account-sidebar {
    background: #fff;
    border: 1px solid var(--s-border-light);
}
.account-sidebar-title {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    background: var(--s-bg-alt);
    border-bottom: 1px solid var(--s-border-light);
}
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--s-text);
    cursor: pointer;
    border-bottom: 1px solid var(--s-border-light);
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.account-nav-item:hover { background: var(--s-bg-alt); }
.account-nav-item.active {
    background: var(--s-bg-alt);
    border-left-color: var(--s-primary-dark);
    color: var(--s-primary-dark);
    font-weight: 600;
}
.account-panel { display: none; }
.account-panel.active { display: block; }

/* ---- ORDER LIST ---- */
.order-list-item {
    background: #fff;
    border: 1px solid var(--s-border-light);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s;
}
.order-list-item:hover { border-color: var(--s-text-muted); }
.order-status {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}
.status-draft { background: #FFF3E0; color: #E65100; }
.status-picking, .status-ready { background: #E3F2FD; color: #1565C0; }
.status-invoiced { background: #EDE7F6; color: #4527A0; }
.status-posted { background: #E8F5E9; color: #2E7D32; }
.status-voided { background: #FFEBEE; color: #C62828; }

/* ---- LOGIN PAGE ---- */
.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
}
.login-panel, .register-panel {
    background: #fff;
    border: 1px solid var(--s-border-light);
    padding: 30px;
}
.login-panel h2, .register-panel h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--s-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--s-border-light);
}

/* ---- FOOTER (matches OpenCart: #212529) ---- */
.store-footer {
    background: #212529;
    color: #eaeaea;
    padding: 55px 0 0;
    margin-top: 40px;
}
.store-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-section h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-section a {
    display: block;
    color: #aaa;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-section a:hover { color: #fff; }
.footer-section p { font-size: 13px; line-height: 1.8; color: #aaa; }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #555;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    padding: 0;
    transition: background 0.2s;
}
.footer-social a:hover { background: var(--s-primary-dark); color: #fff; }
.footer-bottom {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #888;
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.whatsapp-btn:hover { background: #1DA851; color: #fff; }
.whatsapp-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ---- TOAST ---- */
.store-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.store-toast {
    background: #fff;
    border: 1px solid var(--s-border);
    padding: 12px 20px;
    box-shadow: var(--s-shadow-lg);
    font-size: 14px;
    animation: slideIn 0.3s ease;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.store-toast.success { border-left: 4px solid var(--s-success); }
.store-toast.error { border-left: 4px solid var(--s-danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--s-text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-text { font-size: 18px; margin-bottom: 8px; }
.empty-state-sub { font-size: 14px; margin-bottom: 20px; }

/* ---- LOADING ---- */
.store-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--s-text-muted);
    gap: 8px;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--s-border);
    border-top-color: var(--s-text);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .store-footer .container { grid-template-columns: repeat(3, 1fr); }
    .home-banners { grid-template-columns: 1fr; }
    .home-banners-side { flex-direction: row; }
    .sub-marquee-banners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { display: none; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .carousel-track .product-card { flex: 0 0 calc(33.333% - 10px); min-width: calc(33.333% - 10px); }
}
@media (max-width: 768px) {
    .store-header .container { flex-wrap: wrap; }
    .store-search { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 10px; }
    .header-action-item .header-action-text { display: none; }
    .login-layout { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .store-footer .container { grid-template-columns: 1fr 1fr; }
    .store-topbar-social { display: none; }
    .category-banners { grid-template-columns: 1fr; }
    .sub-marquee-banners { grid-template-columns: 1fr; }
    .homepage-banner-row.cols-2,
    .homepage-banner-row.cols-3 { grid-template-columns: 1fr; }
    .section-tabs { flex-wrap: wrap; gap: 10px; }
    .section-tab-btn { font-size: 13px; }
    .store-topbar { height: auto; padding: 6px 0; font-size: 12px; }

    /* Center logo on mobile */
    .store-logo { order: 2; flex-basis: 100%; text-align: center; margin: 8px 0; }
    .store-header-actions { order: 1; margin-left: auto; }

    /* Responsive carousel: 2 per row */
    .carousel-track .product-card { flex: 0 0 calc(50% - 8px); min-width: calc(50% - 8px); }

    /* Hamburger menu */
    .store-nav-toggle { display: flex; }
    .store-nav { position: relative; display: flex; align-items: center; }
    .store-nav .container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #212529;
        flex-direction: column;
        flex-wrap: nowrap;
        white-space: normal;
        z-index: 999;
        padding: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    .store-nav.mobile-open .container { display: flex; }
    .store-nav-item {
        padding: 12px 20px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    .store-nav-item.has-dropdown::after { margin-left: auto; }

    /* Disable hover dropdowns on mobile — use tap via .mobile-expanded */
    .store-nav-item:hover > .store-mega-menu,
    .store-nav-item:hover > .store-dropdown-menu { display: none; }
    .store-nav-item.mobile-expanded > .store-mega-menu,
    .store-nav-item.mobile-expanded > .store-dropdown-menu { display: block; }

    /* Mobile mega menu / dropdown overrides */
    .store-mega-menu {
        position: static;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none;
        padding: 0 10px 10px;
        background: #2a2e33;
    }
    .store-mega-menu .mega-menu-col { width: 100%; }
    .store-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        min-width: unset;
        max-width: unset;
        background: #2a2e33;
    }
    .store-dropdown-menu a { color: #ccc; padding: 8px 20px; }
    .store-dropdown-menu a:hover { background: #383d42; color: #fff; }

    /* Hamburger ☰ → ✕ animation */
    .store-nav.mobile-open .store-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .store-nav.mobile-open .store-nav-toggle span:nth-child(2) { opacity: 0; }
    .store-nav.mobile-open .store-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .store-footer .container { grid-template-columns: 1fr; }
    .store-topbar-links a { padding: 0 8px; font-size: 11px; }
}

/* ============================================
   CONTENT PAGES (About, Privacy, Terms, etc.)
   ============================================ */
.content-page {
    max-width: 960px;
    margin: 24px auto 0;
}
.content-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--s-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--s-border);
}
.content-page-body {
    line-height: 1.8;
    font-size: 15px;
    color: var(--s-text);
}
.content-page-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--s-text);
}
.content-page-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 8px;
    color: var(--s-text);
}
.content-page-body p {
    margin-bottom: 12px;
}
.content-page-body ul, .content-page-body ol {
    margin: 10px 0 16px 20px;
}
.content-page-body li {
    margin-bottom: 6px;
}
.content-page-body a {
    color: var(--s-primary-dark);
    text-decoration: underline;
}
.content-page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.content-page-body table th,
.content-page-body table td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--s-border);
}
.content-page-body table th {
    background: var(--s-bg-alt);
    font-weight: 600;
}

/* Contact Info Grid (used in Contact Us page content) */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0 30px;
}
.contact-card {
    background: var(--s-bg-alt);
    padding: 24px;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
}
.contact-card h3 {
    font-size: 16px !important;
    font-weight: 700;
    margin: 0 0 10px !important;
    color: var(--s-text);
}
.contact-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.contact-card a {
    color: var(--s-primary-dark);
    text-decoration: none;
}
.contact-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--s-border);
}
.contact-form-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}
.contact-form-group {
    display: flex;
    flex-direction: column;
}
.contact-form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--s-text);
}
.contact-form-group label .req {
    color: var(--s-danger);
}
.contact-input {
    padding: 10px 14px;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
    width: 100%;
}
.contact-input:focus {
    outline: none;
    border-color: var(--s-primary-dark);
}
textarea.contact-input {
    resize: vertical;
    min-height: 100px;
}
.contact-submit-btn {
    background: #212529;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s;
}
.contact-submit-btn:hover {
    background: #333;
}
.contact-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Map Section */
.contact-map-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--s-border);
}
.contact-map-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}
.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 1px solid var(--s-border);
}

/* ---- Product Reviews ---- */
.pd-write-review-link {
    color: #337ab7;
    text-decoration: none;
    cursor: pointer;
}
.pd-write-review-link:hover {
    text-decoration: underline;
}

/* Review items list */
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--s-border-light);
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-stars {
    color: #f5a623;
    font-size: 16px;
    letter-spacing: 1px;
}
.review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--s-text);
}
.review-date {
    font-size: 12px;
    color: var(--s-text-muted);
    margin-left: auto;
}
.review-body {
    font-size: 14px;
    color: var(--s-text-light);
    line-height: 1.6;
}

/* Review form */
.review-form-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--s-border);
}
.review-form-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--s-text);
}
.review-form-group {
    margin-bottom: 16px;
}
.review-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.review-form-group label .req {
    color: #e74c3c;
}
.review-input {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--s-text);
    transition: border-color 0.2s;
}
.review-input:focus {
    outline: none;
    border-color: var(--s-primary-dark);
}
textarea.review-input {
    resize: vertical;
    min-height: 80px;
}

/* Star rating input */
.star-rating-input {
    display: flex;
    gap: 4px;
}
.star-rate {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}
.star-rate:hover,
.star-rate.active {
    color: #f5a623;
}
.star-rating-input:hover .star-rate {
    color: #ccc;
}
.star-rating-input .star-rate:hover,
.star-rating-input .star-rate:hover ~ .star-rate {
    color: #ccc;
}
.star-rating-input:hover .star-rate:hover,
.star-rating-input:hover .star-rate:hover ~ .star-rate {
    color: #ccc;
}
/* Forward hover: highlight stars up to hovered one */
.star-rating-input:hover .star-rate {
    color: #ccc;
}

/* Submit button */
.review-submit-btn {
    background: #212529;
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s;
}
.review-submit-btn:hover {
    background: #333;
}
.review-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-form-row { grid-template-columns: 1fr; }
    .review-input { max-width: 100%; }
    .review-header { flex-wrap: wrap; gap: 6px; }
    .review-date { margin-left: 0; }
}

/* ── Food Industry Template Overrides ───────────────── */
.food-template .store-nav-item {
    font-size: 16px;
    padding: 14px 12px;
}
