/*
Theme Name: CDBC V4
Theme URI: https://cdbc.store
Author: CDBC Studio
Description: A professional, hand-crafted WooCommerce theme for CDBC — featuring a dynamic hero slider, bento-grid homepage, and polished e-commerce pages.
Version: 1.1.0
Requires PHP: 8.0
Text Domain: cdbc-v4
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --c-bg: #F4F1EC;
    --c-surface: #FFFFFF;
    --c-surface-alt: #F9F8F6;
    --c-text: #111111;
    --c-text-muted: #6B6B6B;
    --c-accent: #C9A96E;
    --c-accent-hover: #B0905A;
    --c-border: #E5E2DD;
    --c-border-light: rgba(0, 0, 0, 0.06);
    --c-success: #2D8A4E;
    --c-error: #D93025;

    --f-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
    --f-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --f-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --f-md: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    --f-lg: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    --f-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
    --f-2xl: clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem);
    --f-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --f-hero: clamp(2.5rem, 2rem + 2.5vw, 4rem);

    --s-2xs: 2px;
    --s-xs: 4px;
    --s-sm: 8px;
    --s-md: 16px;
    --s-lg: 24px;
    --s-xl: 32px;
    --s-2xl: 48px;
    --s-3xl: 64px;
    --s-4xl: 96px;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 9999px;

    --ease: 0.25s ease;
    --ease-out: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --slide: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    --wrap: 1380px;
    --header-h: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--f-base);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--c-accent);
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--s-lg);
    width: 100%;
}

/* Screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border-light);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    font-size: var(--f-xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.logo span {
    color: var(--c-accent);
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    gap: var(--s-xl);
}

.nav-desktop a {
    font-size: var(--f-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text);
    position: relative;
    padding: var(--s-xs) 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-accent);
    transition: width var(--ease);
}

.nav-desktop a:hover {
    color: var(--c-text);
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background var(--ease);
    color: var(--c-text);
}

.icon-link:hover {
    background: var(--c-surface-alt);
    color: var(--c-text);
}

.icon-link svg {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--c-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--s-sm);
    color: var(--c-text);
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
}

/* Mobile Panel */
.mobile-panel {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--c-bg);
    z-index: 999;
    padding: var(--s-2xl) var(--s-lg);
    transform: translateX(-100%);
    transition: transform var(--ease-out);
    overflow-y: auto;
}

.mobile-panel.is-open {
    transform: translateX(0);
}

.mobile-panel ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-xl);
}

.mobile-panel a {
    font-size: var(--f-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ============================================
   HERO BENTO GRID
   ============================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--s-md);
    margin: var(--s-lg) 0;
    min-height: 560px;
}

/* Hero Slider Container */
.hero-slider {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--c-border);
}

/* Slider Track */
.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: var(--slide);
}

/* Individual Slide */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--s-2xl) var(--s-xl);
    text-align: center;
}

/* Slide Background — USES background-image, NOT <img> */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark gradient overlay so text is readable */
.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.0) 70%);
    z-index: 1;
}

/* Content Layer */
.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-md);
}

/* Category Badge */
.slide-badge {
    background: var(--c-accent);
    color: white;
    padding: 6px 18px;
    border-radius: var(--r-pill);
    font-size: var(--f-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Slide Title */
.slide-title {
    font-size: var(--f-hero);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Slide Price */
.slide-price {
    font-size: var(--f-xl);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* CTA Button */
.slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-sm);
    background: #FFFFFF;
    color: var(--c-text);
    padding: 16px 42px;
    border-radius: var(--r-pill);
    font-size: var(--f-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform var(--ease), box-shadow var(--ease);
    max-width: 280px;
    width: 100%;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--c-text);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease);
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-md);
}

.slider-arrow.prev {
    left: var(--s-md);
}

.slider-arrow.next {
    right: var(--s-md);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: var(--s-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--s-sm);
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--ease);
    padding: 0;
}

.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: var(--r-pill);
}

/* Category Cards (right side) */
.hero-categories {
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.cat-card {
    flex: 1;
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: var(--s-xl) var(--s-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: var(--shadow-xs);
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--c-text);
}

.cat-card:hover .cat-arrow {
    background: var(--c-text);
    color: white;
    border-color: var(--c-text);
}

.cat-card h2 {
    font-size: var(--f-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-xs);
}

.cat-card p {
    color: var(--c-text-muted);
    font-size: var(--f-sm);
    line-height: 1.5;
    max-width: 260px;
}

.cat-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--ease);
}

.cat-arrow svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   PRODUCT SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--s-xl);
}

.section-header h2 {
    font-size: var(--f-2xl);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-link {
    font-size: var(--f-sm);
    font-weight: 600;
    color: var(--c-text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-link:hover {
    color: var(--c-accent);
}

.product-section {
    margin-top: var(--s-3xl);
}

/* ============================================
   WOOCOMMERCE: PRODUCT CARDS
   ============================================ */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--s-lg) !important;
    margin: 0 !important;
    padding: 0 !important;
}

li.product {
    background: var(--c-surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease-out);
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

li.product img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin: 0 !important;
    background: var(--c-surface-alt);
    transition: transform var(--ease);
}

li.product:hover img {
    transform: scale(1.03);
}

.woocommerce-loop-product__title {
    font-size: var(--f-md) !important;
    font-weight: 700 !important;
    color: var(--c-text) !important;
    padding: var(--s-md) var(--s-md) var(--s-xs) !important;
    margin: 0 !important;
}

li.product .price {
    font-size: var(--f-sm) !important;
    font-weight: 500 !important;
    color: var(--c-text-muted) !important;
    padding: 0 var(--s-md) !important;
    margin: 0 !important;
}

/* Add to Cart / Select Options */
.button.add_to_cart_button,
.button.product_type_variable,
a.added_to_cart {
    display: block;
    background: var(--c-text) !important;
    color: var(--c-surface) !important;
    border: none !important;
    border-radius: var(--r-pill) !important;
    padding: 12px var(--s-md) !important;
    margin: var(--s-md) !important;
    font-weight: 700 !important;
    font-size: var(--f-sm) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-align: center;
    cursor: pointer;
    transition: background var(--ease) !important;
}

.button.add_to_cart_button:hover,
.button.product_type_variable:hover {
    background: var(--c-accent) !important;
}

a.added_to_cart {
    background: var(--c-success) !important;
    margin-top: 0 !important;
}

/* Hide add-to-cart button on homepage product cards */
.product-section .button.add_to_cart_button,
.product-section .button.product_type_variable,
.product-section a.added_to_cart {
    display: none !important;
}

/* Star Ratings */
.star-rating {
    margin: var(--s-xs) var(--s-md) !important;
}

/* ============================================
   WOOCOMMERCE: SHOP / ARCHIVE PAGE
   ============================================ */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: var(--s-2xl);
    padding-top: var(--s-xl);
}

.woocommerce-products-header__title {
    font-size: var(--f-3xl);
    font-weight: 800;
    text-transform: uppercase;
}

.woocommerce-result-count,
.woocommerce-ordering {
    font-size: var(--f-sm);
    color: var(--c-text-muted);
}

.woocommerce-ordering select {
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
}

/* Pagination */
.woocommerce-pagination {
    margin-top: var(--s-3xl);
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: var(--s-sm);
}

.woocommerce-pagination li a,
.woocommerce-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: var(--f-sm);
    border: 1px solid var(--c-border);
    transition: all var(--ease);
}

.woocommerce-pagination li span.current {
    background: var(--c-text);
    color: white;
    border-color: var(--c-text);
}

/* ============================================
   WOOCOMMERCE: SINGLE PRODUCT
   ============================================ */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--s-3xl);
    align-items: start;
    padding: var(--s-xl) 0 var(--s-3xl);
}

.product-gallery {
    overflow: hidden;
    border-radius: var(--r-lg);
}

.product-gallery img {
    border-radius: var(--r-lg);
    width: 100%;
    height: auto;
}

/* Horizontal scroll for product gallery thumbnails only */
.product-gallery .flex-control-thumbs {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--s-sm);
    flex-wrap: nowrap !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: var(--s-sm) 0;
}

.product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery .flex-control-thumbs li {
    flex: 0 0 72px;
    min-width: 72px;
    scroll-snap-align: start;
}

.product-gallery .flex-control-thumbs li img {
    border-radius: var(--r-md);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--ease);
}

.product-gallery .flex-control-thumbs li img.flex-active,
.product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border: 2px solid var(--c-accent);
}

.product-summary {
    position: relative;
}

.summary-inner {
    position: sticky;
    top: calc(var(--header-h) + var(--s-lg));
}

h1.product_title {
    font-size: var(--f-3xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--s-sm);
}

.single-product .price {
    font-size: var(--f-xl) !important;
    color: var(--c-text) !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin-bottom: var(--s-lg) !important;
}

.woocommerce-product-details__short-description {
    color: var(--c-text-muted);
    font-size: var(--f-base);
    line-height: 1.7;
    margin-bottom: var(--s-xl);
}

/* Variations */
.variations td {
    padding: var(--s-sm) 0;
    display: block;
}

.variations label {
    font-weight: 600;
    font-size: var(--f-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--s-xs);
    display: block;
}

.variations select {
    width: 100%;
    padding: 12px var(--s-md);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    font-size: var(--f-base);
}

/* Quantity */
.quantity input[type="number"] {
    width: 80px !important;
    padding: 14px !important;
    border: 1.5px solid var(--c-border) !important;
    border-radius: var(--r-md) !important;
    text-align: center;
    font-size: var(--f-base) !important;
    font-weight: 600;
}

/* Single Add to Cart */
form.cart {
    display: flex;
    gap: var(--s-sm);
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: var(--s-xl);
}

.single_add_to_cart_button {
    flex: 1;
    background: var(--c-text) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--r-pill) !important;
    padding: 16px var(--s-xl) !important;
    font-weight: 700 !important;
    font-size: var(--f-base) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    transition: all var(--ease) !important;
}

.single_add_to_cart_button:hover {
    background: var(--c-accent) !important;
    transform: translateY(-1px);
}

/* Trust Badges */
.trust-badges {
    margin-top: var(--s-xl);
    padding-top: var(--s-lg);
    border-top: 1px solid var(--c-border);
    display: flex;
    gap: var(--s-lg);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    color: var(--c-text-muted);
    font-size: var(--f-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Tabs / After Summary */
.product-tabs-area {
    margin-top: var(--s-3xl);
    padding-top: var(--s-2xl);
    border-top: 1px solid var(--c-border);
}

.woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: var(--s-xl);
    border-bottom: 2px solid var(--c-border);
    margin-bottom: var(--s-xl) !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: var(--s-md) 0;
    font-weight: 600;
    font-size: var(--f-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--c-text);
    border-bottom-color: var(--c-text);
}

/* Related Products */
.related.products h2,
.upsells.products h2 {
    font-size: var(--f-2xl);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: var(--s-xl);
}

/* Hide add-to-cart button on related products */
.related.products .button.add_to_cart_button,
.related.products .button.product_type_variable,
.related.products a.added_to_cart,
.upsells.products .button.add_to_cart_button,
.upsells.products .button.product_type_variable,
.upsells.products a.added_to_cart {
    display: none !important;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--s-3xl) var(--s-lg);
}

.page-content h1 {
    font-size: var(--f-3xl);
    font-weight: 800;
    margin-bottom: var(--s-xl);
}

.page-content p {
    margin-bottom: var(--s-lg);
    line-height: 1.8;
    color: var(--c-text-muted);
}

.page-content h2,
.page-content h3 {
    margin-top: var(--s-2xl);
    margin-bottom: var(--s-md);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: var(--s-4xl) var(--s-lg);
}

.error-404 h1 {
    font-size: var(--f-hero);
    font-weight: 800;
    margin-bottom: var(--s-md);
}

.error-404 p {
    font-size: var(--f-lg);
    color: var(--c-text-muted);
    margin-bottom: var(--s-2xl);
}

.error-404 .btn-home {
    display: inline-flex;
    align-items: center;
    gap: var(--s-sm);
    background: var(--c-text);
    color: white;
    padding: 16px 40px;
    border-radius: var(--r-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--f-sm);
    transition: all var(--ease);
}

.error-404 .btn-home:hover {
    background: var(--c-accent);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    margin-top: var(--s-4xl);
    padding: var(--s-3xl) 0 var(--s-2xl);
    background: var(--c-surface-alt);
    border-top: 1px solid var(--c-border);
}

.footer-inner {
    text-align: center;
}

.footer-insta {
    display: inline-flex;
    align-items: center;
    gap: var(--s-sm);
    font-size: var(--f-sm);
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: var(--s-lg);
    transition: color var(--ease);
}

.footer-insta:hover {
    color: var(--c-accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--s-2xl);
    margin-bottom: var(--s-xl);
}

.footer-links a {
    font-size: var(--f-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-muted);
}

.footer-links a:hover {
    color: var(--c-text);
}

.footer-copy {
    font-size: var(--f-xs);
    color: var(--c-text-muted);
}

/* ============================================
   WOOCOMMERCE: NOTICES
   ============================================ */
.woocommerce-message,
.woocommerce-info {
    background: var(--c-surface) !important;
    border: 1px solid var(--c-border) !important;
    border-left: 4px solid var(--c-accent) !important;
    border-radius: var(--r-md) !important;
    padding: var(--s-md) var(--s-lg) !important;
    color: var(--c-text) !important;
    font-size: var(--f-sm);
}

.woocommerce-error {
    background: var(--c-surface) !important;
    border: 1px solid var(--c-error) !important;
    border-left: 4px solid var(--c-error) !important;
    border-radius: var(--r-md) !important;
    padding: var(--s-md) var(--s-lg) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 320px;
    }

    .single-product-layout {
        grid-template-columns: 1fr 360px;
    }

    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 var(--s-sm);
    }

    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-panel {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--s-sm);
        margin: var(--s-sm) 0;
        min-height: auto;
    }

    .hero-slider {
        min-height: 420px;
    }

    .slide {
        padding: var(--s-lg) var(--s-lg) var(--s-xl);
    }

    .slide-title {
        font-size: var(--f-xl);
    }

    .slide-price {
        font-size: var(--f-sm);
    }

    .slide-btn {
        padding: 10px 24px;
        font-size: var(--f-xs);
    }

    .slide-content {
        gap: var(--s-xs);
    }

    .hero-categories {
        flex-direction: row;
    }

    .cat-card {
        padding: var(--s-lg) var(--s-md);
    }

    .cat-card p {
        display: none;
    }

    .single-product-layout {
        grid-template-columns: 1fr;
        gap: var(--s-xl);
    }

    .summary-inner {
        position: static;
    }

    /* Horizontal scroll strip for product sections */
    .product-section ul.products {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--s-sm) !important;
        padding-bottom: var(--s-sm) !important;
        scroll-padding-left: var(--s-sm);
    }

    /* Hide scrollbar but keep functionality */
    .product-section ul.products::-webkit-scrollbar {
        display: none;
    }

    .product-section ul.products {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Compact card sizing — ~3.5 visible at once */
    .product-section li.product {
        flex: 0 0 130px !important;
        min-width: 130px;
        scroll-snap-align: start;
        border-radius: var(--r-md);
    }

    .product-section li.product img {
        aspect-ratio: 1/1;
        border-radius: var(--r-md) var(--r-md) 0 0;
    }

    .product-section .woocommerce-loop-product__title {
        font-size: 0.75rem !important;
        padding: var(--s-sm) var(--s-sm) 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-section li.product .price {
        font-size: 0.7rem !important;
        padding: 0 var(--s-sm) !important;
    }

    /* Smaller button on mobile product cards */
    .product-section .button.add_to_cart_button,
    .product-section .button.product_type_variable {
        padding: 8px var(--s-sm) !important;
        margin: var(--s-sm) !important;
        font-size: 0.65rem !important;
        border-radius: var(--r-md) !important;
    }

    /* Shop/archive pages: 2-col grid from left */
    .woocommerce.archive ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--s-sm) !important;
    }

    /* Hide SELECT OPTIONS on shop/archive pages */
    .woocommerce.archive .button.add_to_cart_button,
    .woocommerce.archive .button.product_type_variable {
        display: none !important;
    }

    /* Related products: same horizontal scroll as homepage */
    .related.products ul.products,
    .upsells.products ul.products {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--s-sm) !important;
        padding-bottom: var(--s-sm) !important;
    }

    .related.products ul.products::-webkit-scrollbar,
    .upsells.products ul.products::-webkit-scrollbar {
        display: none;
    }

    .related.products ul.products { -ms-overflow-style: none; scrollbar-width: none; }
    .upsells.products ul.products { -ms-overflow-style: none; scrollbar-width: none; }

    .related.products li.product,
    .upsells.products li.product {
        flex: 0 0 130px !important;
        min-width: 130px;
        scroll-snap-align: start;
        border-radius: var(--r-md);
    }

    .related.products .woocommerce-loop-product__title,
    .upsells.products .woocommerce-loop-product__title {
        font-size: 0.75rem !important;
        padding: var(--s-sm) var(--s-sm) 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .related.products li.product .price,
    .upsells.products li.product .price {
        font-size: 0.7rem !important;
        padding: 0 var(--s-sm) !important;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--s-lg);
    }

    .trust-badges {
        flex-direction: column;
        gap: var(--s-md);
    }
}

@media (max-width: 480px) {
    .hero-categories {
        flex-direction: column;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    /* Even smaller cards on very small screens — still ~3 visible */
    .product-section li.product {
        flex: 0 0 120px !important;
        min-width: 120px;
    }
}