/* style.css */
:root {
    --color-bg: #f5f6f8;
    /* very light grey page background */
    --color-white: #ffffff;
    --color-text-dark: #333333;
    --color-text-muted: #777777;
    --color-green: #3ab54a;
    /* vibrant green */
    --color-blue: #2e58a6;
    /* classic trust blue */
    --color-red: #e74c3c;
    /* for price or sale */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    /* Subtle premium shadow */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
    height: 60px;
    /* Refined size */
    width: auto;
    object-fit: contain;
}

/* Center Nav */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-green);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-green);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Category Pills */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #eaeaea;
    transition: var(--transition);
    color: var(--color-text-dark);
    background-color: var(--color-white);
}

.nav-pill svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
    transition: var(--transition);
}

.nav-pill-trees:hover,
.nav-pill-trees.active {
    border-color: var(--color-green);
    background-color: #f3faf4;
    color: var(--color-green);
}

.nav-pill-trees:hover svg,
.nav-pill-trees.active svg {
    stroke: var(--color-green);
}

.nav-pill-pots:hover,
.nav-pill-pots.active {
    border-color: var(--color-blue);
    background-color: #f0f4fc;
    color: var(--color-blue);
}

.nav-pill-pots:hover svg,
.nav-pill-pots.active svg {
    stroke: var(--color-blue);
}

/* Header Actions Right */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-text-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.action-icon svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    display: block;
    stroke-width: 1.5;
}

.action-icon:hover {
    background-color: #f5f6f8;
    color: var(--color-green);
}

.action-icon-cart {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.language-selector {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-dark);
    padding: 8px 12px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition);
}

.language-selector:hover {
    background-color: #f5f6f8;
}

.language-selector img {
    width: 20px;
    margin-right: 6px;
}

.header-search-row {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0 16px;
    background: var(--color-white);
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.05); /* Soft shadow for depth */
}

.header-search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    max-width: 600px;
    margin: 0 auto;
}

.header-search-shell {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    border: 2px solid #e2e8f0;
    background: var(--color-white);
    border-radius: 999px;
    padding: 4px 4px 4px 8px;
    transition: var(--transition);
}

.header-search-shell:focus-within {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(46, 88, 166, 0.1);
}

.header-search-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f7488;
    background: #f0f4f7;
    flex-shrink: 0;
}

.header-search-icon svg {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    display: block;
    stroke-width: 2;
}

.header-search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 15px;
    outline: none;
    color: var(--color-text-dark);
}

.header-search-input::placeholder {
    color: #9cb0c1;
}

.header-search-submit {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    background: var(--color-blue);
    color: var(--color-white);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.header-search-submit:hover {
    background: #1a3d80;
}

.header-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.header-search-scope {
    font-size: 12px;
    color: #5e6f7f;
}

.header-search-clear {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-blue);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 600px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-green {
    background-color: var(--color-green);
    color: var(--color-white);
}

.btn-green:hover {
    background-color: #2e963c;
}

.btn-blue {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn-blue:hover {
    background-color: #1a3d80;
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */
.section-header {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    display: inline-block;
    position: relative;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    width: 50%;
    height: 2px;
    background-color: var(--color-blue);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -20px;
    width: 50%;
    height: 2px;
    background-color: var(--color-green);
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    flex: 1;
    max-width: 380px;
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.category-title {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   PRODUCT CARDS (NEW ARRIVALS / BEST SELLERS)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: #ddd;
}

.product-image {
    margin-bottom: 15px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    width: auto;
}

.product-cat-pill {
    display: inline-block;
    background-color: #e8f5e9;
    /* Light green */
    color: var(--color-green);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--border-radius-pill);
    margin-bottom: 8px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   MID BANNER
   ========================================================================== */
.promo-banner {
    margin: 60px auto;
    position: relative;
    height: 120px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 50px;
    background-color: #113a20;
    /* Dark green fallback */
    background-image: url('../images/promo-bg.png');
    background-size: cover;
    background-position: center;
}

.promo-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.promo-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.promo-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-content p {
    font-size: 16px;
    font-weight: 400;
}

/* ==========================================================================
   BEST SELLER SECTION
   ========================================================================== */
.best-seller-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.best-seller-promo {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
    background-color: #444;
    background-image: url('../images/best-seller-bg.jpg');
    background-size: cover;
    background-position: center;
}

.best-seller-promo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
}

.best-seller-text {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    color: var(--color-white);
}

.best-seller-text h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.best-seller-text p {
    font-size: 18px;
    font-weight: 400;
}

.best-seller-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.breadcrumb {
    margin: 20px 0;
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb span {
    margin: 0 5px;
}

.product-detail-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
}

/* Gallery */
.product-gallery-main {
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    max-height: 100%;
}

.product-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.option-value-card {
    border: 1px solid #ddd;
    padding: 10px;
    min-width: 90px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
}

.option-value-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    border-radius: 6px;
    background: #f3f3f3;
}

.option-value-label {
    font-size: 14px;
    line-height: 1.3;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.product-thumb {
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-sm);
    padding: 5px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--color-white);
}

.product-thumb.active {
    border-color: var(--color-blue);
}

.product-thumb img {
    max-height: 100%;
}

/* Info */
.product-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.wishlist-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #72aae4;
    margin-bottom: 20px;
}

.wishlist-link svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.product-price-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-red);
    /* Using a reddish color as shown */
    margin-bottom: 15px;
}

.stock-badge {
    display: inline-block;
    background-color: #e8f5e9;
    color: var(--color-green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 30px;
}

/* Options */
.option-group {
    margin-bottom: 25px;
}

.option-label-wrapper {
    border: 1px solid #eaeaea;
    padding: 8px 15px;
    margin-bottom: 15px;
}

.option-group-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.option-required {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 4px;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-choice {
    cursor: pointer;
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-chip {
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 13px;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.option-chip:hover {
    border-color: #aaa;
}

.option-chip.active {
    border-color: var(--color-blue);
    background-color: #f0f4fc;
    color: var(--color-blue);
}

.option-swatch {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 2px;
}

.option-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-swatch.active {
    border-color: var(--color-blue);
}

.purchase-alert {
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.purchase-alert-success {
    background: #d5f5e3;
    border: 1px solid #abebc6;
    color: #1e8449;
}

.purchase-alert-error {
    background: #fadbd8;
    border: 1px solid #f1948a;
    color: #c0392b;
}

/* Purchase Controls */
.purchase-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: none;
    background-color: #f1f1f1;
    border-radius: var(--border-radius-pill);
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 15px;
    outline: none;
}

.btn-add-cart,
.btn-buy-now {
    padding: 10px 30px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-white);
    background-color: var(--color-blue);
    border: none;
    transition: var(--transition);
}

.btn-buy-now {
    width: 100%;
    display: block;
}

.btn-add-cart:hover,
.btn-buy-now:hover {
    background-color: #1a3d80;
}

.product-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    margin-top: 20px;
}

/* Tabs */
.tabs-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 80px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eaeaea;
}

.tab-btn {
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--color-text-dark);
}

.tab-content {
    padding: 40px 30px;
    font-size: 15px;
    color: var(--color-text-dark);
    line-height: 1.8;
}

/* ==========================================================================
   LISTING PAGE — ARTIFICIAL TREES (Runner-inspired layout)
   ========================================================================== */

/* Page title band */
.listing-title-band {
    background-color: var(--color-white);
    border-bottom: 1px solid #eaeaea;
    padding: 22px 0 18px;
    margin-bottom: 0;
}

.listing-breadcrumb {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.listing-breadcrumb a {
    color: var(--color-text-muted);
}

.listing-breadcrumb a:hover {
    color: var(--color-blue);
}

.listing-breadcrumb-sep {
    margin: 0 6px;
}

.listing-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.listing-product-count {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Two-column layout: sidebar + main */
.listing-layout {
    display: flex;
    gap: 28px;
    padding: 28px 0 60px;
    align-items: flex-start;
}

/* --------- SIDEBAR --------- */
.listing-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-section {
    background-color: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.sidebar-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    background-color: #fafafa;
    border-bottom: 1px solid #eaeaea;
    user-select: none;
}

.sidebar-section-title:hover {
    background-color: #f0f4ff;
}

.sidebar-toggle-icon {
    font-size: 11px;
    color: var(--color-text-muted);
}

.sidebar-section-body {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.sidebar-section-body--collapsed {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    font-size: 13px;
    color: var(--color-text-dark);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.filter-option:hover {
    background-color: #f0f4ff;
    color: var(--color-blue);
}

.filter-option--active {
    color: var(--color-green);
    font-weight: 600;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--color-blue);
    cursor: pointer;
}

.price-range-display {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.price-range-slider {
    width: 100%;
    accent-color: var(--color-blue);
    margin-bottom: 6px;
}

.filter-placeholder-note {
    font-size: 11px;
    color: #bbb;
    font-style: italic;
}

/* --------- MAIN CONTENT area --------- */
.listing-main {
    flex: 1;
    min-width: 0;
}

/* Top control bar */
.listing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 10px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.listing-topbar-left {
    font-size: 13px;
    color: var(--color-text-muted);
}

.listing-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-search-banner {
    background: #f6faf7;
    border: 1px solid #deebe1;
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.listing-search-banner h2 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #204231;
}

.listing-search-banner p {
    margin: 0;
    font-size: 13px;
    color: #5f6f7d;
}

.listing-search-clear {
    border: 1px solid #c8d8e8;
    color: var(--color-blue);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sort-label {
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.sort-select {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--color-blue);
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    color: #aaa;
    transition: var(--transition);
}

.view-btn--active,
.view-btn:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background-color: #f0f4ff;
}

/* --------- LISTING PRODUCT GRID --------- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* List view variant */
.listing-grid--list {
    grid-template-columns: 1fr;
}

.listing-grid--list .listing-product-card {
    display: flex;
    flex-direction: row;
}

.listing-grid--list .product-image {
    width: 140px;
    flex-shrink: 0;
    height: 140px;
    margin-bottom: 0;
    margin-right: 0;
}

.listing-grid--list .listing-card-body {
    padding: 20px;
    text-align: left;
}

/* Individual listing card enhancements */
.listing-product-card {
    position: relative;
    transition: var(--transition);
}

.listing-product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.listing-product-card .product-image {
    height: 220px;
}

.listing-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.listing-card-body {
    padding: 10px 5px 5px;
}

.listing-product-title {
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.listing-card-cta {
    font-size: 12px;
    color: var(--color-blue);
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: var(--transition);
}

.listing-product-card:hover .listing-card-cta {
    opacity: 1;
}

/* Stock badges on listing cards */
.listing-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--border-radius-pill);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.listing-stock-badge--in {
    background-color: #e8f5e9;
    color: var(--color-green);
}

.listing-stock-badge--out {
    background-color: #fce4ec;
    color: #c62828;
}

/* Empty state */
.listing-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
    font-size: 16px;
}

.listing-empty p {
    margin-bottom: 24px;
}

/* Mini footer */
.site-footer-mini {
    background-color: var(--color-white);
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Larger option swatches on product page for visibility */
.option-swatch {
    width: 56px !important;
    height: 56px !important;
    border-radius: var(--border-radius-sm) !important;
    overflow: hidden;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-page {
    padding-top: 28px;
    padding-bottom: 60px;
}

.cart-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.cart-page-title {
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-text-dark);
}

.cart-alert {
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.cart-alert-success {
    background: #d5f5e3;
    border: 1px solid #abebc6;
    color: #1e8449;
}

.cart-alert-error {
    background: #fadbd8;
    border: 1px solid #f1948a;
    color: #c0392b;
}

.cart-empty {
    background: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 40px 28px;
    text-align: center;
}

.cart-empty h2 {
    margin-bottom: 10px;
}

.cart-empty p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    background: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border: 1px solid #efefef;
    border-radius: var(--border-radius-sm);
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.cart-item-title a:hover {
    color: var(--color-blue);
}

.cart-item-options {
    margin-bottom: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.cart-item-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    margin-bottom: 12px;
}

.cart-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-qty-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.cart-qty-form input[type="number"] {
    width: 80px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    padding: 7px 8px;
}

.cart-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.cart-btn-remove,
.cart-btn-clear {
    background: #ecf0f1;
    color: #34495e;
    padding: 8px 14px;
    font-size: 13px;
}

.cart-btn-remove:hover,
.cart-btn-clear:hover {
    background: #dfe6e9;
}

.cart-clear-form {
    display: flex;
    justify-content: flex-end;
}

.cart-summary {
    background: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 18px 16px;
    position: sticky;
    top: 120px;
}

.cart-summary h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.cart-summary-total {
    border-top: 1px solid #ededed;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 16px;
}

.cart-checkout-disabled {
    width: 100%;
    opacity: 0.75;
    margin-top: 12px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.cart-summary-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout-page {
    padding-top: 30px;
    padding-bottom: 64px;
}

.checkout-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.checkout-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4d7a60;
    font-weight: 700;
    margin-bottom: 6px;
}

.checkout-page-title {
    font-size: 32px;
    line-height: 1.2;
}

.checkout-alert {
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 16px;
    font-size: 14px;
}

.checkout-alert-success {
    background: #d5f5e3;
    border: 1px solid #abebc6;
    color: #1e8449;
}

.checkout-alert-error {
    background: #fadbd8;
    border: 1px solid #f1948a;
    color: #c0392b;
}

.checkout-empty {
    background: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 48px 28px;
    text-align: center;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.checkout-form-wrap,
.checkout-summary {
    background: var(--color-white);
    border: 1px solid #edf1f5;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(28, 47, 66, 0.04);
}

.checkout-section-head {
    margin-bottom: 20px;
}

.checkout-section-head h2 {
    margin-bottom: 6px;
    font-size: 20px;
    color: var(--color-text-dark);
}

.checkout-section-head p {
    margin: 0;
    font-size: 14px;
    color: #667788;
    line-height: 1.6;
}

.checkout-section-head-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.checkout-item-pill {
    border: 1px solid #d2deeb;
    background: #f1f6fb;
    color: #385879;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-field-full textarea {
    min-height: 110px;
}

.checkout-field label {
    font-size: 14px;
    color: #3b4b5a;
    font-weight: 600;
}

.checkout-field input,
.checkout-field textarea {
    border: 1px solid #d3dde7;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
    background: #fdfefe;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--color-blue);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(46, 88, 166, 0.12);
}

.checkout-field-error {
    font-size: 13px;
    color: #c0392b;
    margin-top: 4px;
}

.checkout-actions {
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid #f0f4f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.checkout-back-link {
    font-size: 14px;
    color: #556677;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-back-link:hover {
    color: var(--color-blue);
}

.checkout-submit-btn {
    width: fit-content;
    min-width: 200px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    letter-spacing: 0.02em;
    border: none;
    background: var(--color-blue);
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.checkout-submit-btn:hover {
    background: #1a3d80;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.checkout-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-line {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 12px 16px;
    border: 1px solid #ebf0f4;
    border-radius: 12px;
    padding: 12px;
    background: #fafcfe;
    transition: var(--transition);
}

.checkout-line:hover {
    border-color: #d2deeb;
    background: #fff;
    box-shadow: 0 4px 12px rgba(28, 47, 66, 0.03);
}

.checkout-line-media {
    width: 80px;
    height: 80px;
    border: 1px solid #e4ebf1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.checkout-line-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-line-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-line-body h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.checkout-line-options {
    margin: 0 0 6px 14px;
    list-style: disc;
    color: var(--color-text-muted);
    font-size: 12px;
}

.checkout-line-meta {
    font-size: 13px;
    color: #667788;
}

.checkout-line-subtotal {
    align-self: center;
    color: var(--color-text-dark);
    font-weight: 700;
    white-space: nowrap;
    font-size: 15px;
}

.checkout-total-box {
    border: 1px solid #e4eaef;
    border-radius: 12px;
    padding: 16px;
    background: #fbfdff;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 10px;
    color: #4b5d6e;
}

.checkout-total-main {
    border-top: 2px dashed #e6edf3;
    padding-top: 14px;
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 18px;
    color: var(--color-text-dark);
}

/* ==========================================================================
   ORDER SUCCESS
   ========================================================================== */
.order-success-page {
    padding-top: 32px;
    padding-bottom: 64px;
}

.order-success-card {
    background: var(--color-white);
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius-md);
    padding: 24px;
}

.order-success-card h1 {
    margin-bottom: 8px;
}

.order-success-card>p {
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.order-success-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.order-success-meta div {
    background: #f8fafc;
    border: 1px solid #ecf0f4;
    border-radius: var(--border-radius-sm);
    padding: 10px;
}

.order-success-meta span {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.order-success-meta strong {
    font-size: 13px;
}

.order-success-block {
    margin-bottom: 16px;
}

.order-success-block h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.order-success-block p {
    font-size: 14px;
    margin-bottom: 6px;
}

.order-success-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-success-item {
    border: 1px solid #efefef;
    border-radius: var(--border-radius-sm);
    padding: 12px;
}

.order-success-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.order-success-item ul {
    margin: 0 0 4px 14px;
    list-style: disc;
    font-size: 12px;
    color: var(--color-text-muted);
}

.order-success-item p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.order-success-line-subtotal {
    font-weight: 700;
    color: var(--color-text-dark) !important;
}

.order-success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-seller-container {
        grid-template-columns: 1fr;
    }

    .best-seller-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    /* Listing page: sidebar stacks above grid */
    .listing-layout {
        flex-direction: column;
    }

    .listing-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .sidebar-section {
        flex: 1;
        min-width: 200px;
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-field-grid {
        grid-template-columns: 1fr;
    }

    .order-success-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .categories-grid {
        flex-direction: column;
    }

    .best-seller-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .main-nav ul {
        display: none;
    }

    /* Mobile menu needed later */

    /* Listing: single column on mobile */
    .listing-sidebar {
        flex-direction: column;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .cart-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }

    .checkout-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-line {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .checkout-line-media {
        width: 74px;
        height: 74px;
    }

    .checkout-line-subtotal {
        grid-column: 1 / -1;
        justify-self: flex-end;
    }

    .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-back-link {
        text-align: center;
    }

    .checkout-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .order-success-meta {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.site-footer {
    background-color: #113a20;
    /* Deep forest green */
    color: var(--color-white);
    padding-top: 60px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.brand-col .footer-desc {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-white);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul a {
    color: #ccc;
    transition: var(--transition);
    font-size: 15px;
}

.links-col ul a:hover {
    color: var(--color-green);
    padding-left: 5px;
}

.newsletter-col p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.footer-newsletter-form {
    display: flex;
    gap: 10px;
}

.footer-newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.footer-newsletter-form button {
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #0b2615;
    /* Darker green shade for bottom bar */
    padding: 20px 0;
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOBILE OPTIMIZATION (APP-LIKE UX)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- HEADER & NAVIGATION --- */
    .header-container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--color-text-dark);
        padding: 5px;
        cursor: pointer;
    }

    .mobile-menu-toggle svg {
        width: 28px;
        height: 28px;
        stroke-width: 2;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 40px;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        padding: 60px 20px 20px;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-drawer.active {
        transform: translateX(0);
    }

    .menu-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
        color: var(--color-text-dark);
        display: block !important;
    }

    .menu-close-btn svg {
        width: 28px;
        height: 28px;
        stroke-width: 2;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 18px 0;
        font-size: 18px;
    }

    .nav-pill {
        display: flex;
        width: 100%;
        margin: 15px 0;
        padding: 14px 20px;
        justify-content: center;
        font-size: 16px;
    }

    .header-actions {
        gap: 8px;
    }

    .action-icon {
        width: 36px;
        height: 36px;
    }

    .language-selector {
        display: none;
        /* Hide language on very tight mobile headers to save space */
    }

    .header-search-row {
        margin-top: 10px;
        padding-top: 10px;
    }

    .header-search-form {
        width: 100%;
        gap: 6px;
    }

    .header-search-shell {
        grid-template-columns: 30px 1fr auto;
        gap: 6px;
        padding: 5px;
    }

    .header-search-icon {
        width: 30px;
        height: 30px;
    }

    .header-search-icon svg {
        width: 15px;
        height: 15px;
    }

    .header-search-input {
        padding: 9px 2px;
        font-size: 13px;
    }

    .header-search-submit {
        padding: 9px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .header-search-meta {
        padding: 0 4px;
    }

    /* --- HOMEPAGE SPECIFICS --- */
    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: 24px;
    }

    /* 2-Column Responsive Grid for Products */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 12px;
    }

    .categories-grid {
        flex-direction: column;
    }

    .best-seller-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .best-seller-promo {
        height: 200px;
    }

    .best-seller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .promo-banner {
        padding-left: 20px;
        height: 140px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .promo-content h3 {
        font-size: 20px;
    }

    .promo-content p {
        font-size: 14px;
    }

    /* --- CATALOG / LISTING SPECIFICS --- */
    .listing-layout {
        display: block;
        /* Remove grid for mobile */
    }

    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        gap: 6px;
        background: var(--color-white);
        border: 1px solid #ddd;
        padding: 8px 14px;
        border-radius: var(--border-radius-pill);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .listing-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .listing-search-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-search-clear {
        width: 100%;
        text-align: center;
    }

    .listing-topbar-left,
    .listing-topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .listing-count-text {
        font-size: 13px;
    }

    /* Off-Canvas Sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .listing-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        /* Or bottom: 0; width: 100%; height: 80vh; for a bottom sheet */
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        padding: 0;
        overflow-y: auto;
        display: block !important;
    }

    .listing-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header-mobile {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: #fdfdfd;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .sidebar-header-mobile h3 {
        margin: 0;
        font-size: 18px;
    }

    .sidebar-close-btn {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: var(--color-text-dark);
        cursor: pointer;
    }

    .sidebar-section {
        padding: 20px;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* View toggle is less relevant on mobile, maybe hide or shrink */
    .view-toggle {
        display: none;
    }

    /* --- SINGLE PRODUCT PAGE SPECIFICS --- */
    .product-detail-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
        box-shadow: none;
        /* Flatten on mobile */
        border-bottom: 1px solid #eee;
        margin-bottom: 80px;
        /* Space for sticky bar */
    }

    .product-gallery-main {
        height: 300px;
        padding: 10px;
    }

    .product-thumbnails {
        overflow-x: auto;
        /* Scroll strip */
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .product-thumbnails::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .product-thumb {
        flex-shrink: 0;
        scroll-snap-align: start;
        width: 80px;
        height: 80px;
    }

    .product-info h1 {
        font-size: 22px;
        line-height: 1.25;
    }

    .product-price-large {
        font-size: 20px;
    }

    .option-swatch {
        width: 44px;
        /* Minimum mobile tap target */
        height: 44px;
        padding: 3px;
    }

    .option-chip {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }

    .purchase-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 15px 20px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .quantity-selector {
        width: auto;
    }

    .quantity-selector input {
        width: 30px;
        /* Compress */
    }

    .btn-add-cart,
    .btn-buy-now {
        flex: 1;
        padding: 14px 10px;
        font-size: 15px;
    }

    /* Tabs */
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        border-bottom: 1px solid #eee;
        scrollbar-width: none;
    }

    .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 15px 20px;
    }
}

/* ==========================================================================
   HOMEPAGE WHATSAPP FLOATING BUTTON
   ========================================================================== */
.gm-wa-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 68px;
    height: 68px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gm-wa-fab:hover {
    animation: gm-wa-jump 0.52s ease;
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.gm-wa-fab__icon {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    display: block;
    flex: 0 0 34px;
    color: #ffffff;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gm-wa-fab {
        right: 14px;
        bottom: 14px;
        width: 60px;
        height: 60px;
    }

    .gm-wa-fab__icon {
        width: 30px;
        height: 30px;
        max-width: 30px;
        max-height: 30px;
        flex-basis: 30px;
    }
}

@keyframes gm-wa-jump {
    0% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-9px) scale(1.06);
    }
    65% {
        transform: translateY(-3px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
