/* ===== RESET & VARIABLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --forest: #1a3a2a;
    --forest-deep: #0f2a1c;
    --sage: #7d9b76;
    --sage-light: #b5c9af;
    --sage-mist: #dde8d8;
    --cream: #f8f7f2;
    --warm-white: #fefdfb;
    --charcoal: #1c1c1c;
    --muted-rose: #c4907c;
    --stone: #a69e94;
    --border: #e5e2db;
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Outfit', sans-serif;
    --sidebar-width: 280px;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--warm-white);
    color: var(--charcoal);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--forest);
    color: var(--cream);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    transition: transform 0.4s ease, opacity 0.4s ease;
    position: relative;
    z-index: 1001;
    max-width: 100vw;
    overflow: hidden;
}
.announcement-bar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* ===== TOP NAV ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: var(--nav-height);
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    transition: all 0.35s ease;
    max-width: 100vw;
    overflow: hidden;
}
.top-nav.scrolled {
    background: rgba(254,253,251,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.nav-left { display: flex; align-items: center; gap: 2rem; flex: 1; }
.nav-back {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--stone);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}
.nav-back:hover { color: var(--forest); }
.nav-back svg { width: 14px; height: 14px; }

.nav-center { flex: 0 0 auto; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-top { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; color: var(--forest); }
.logo-bottom { font-family: var(--font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage); margin-top: 1px; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; flex: 1; justify-content: flex-end; }

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--forest);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Cart button in nav */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    position: relative;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.cart-btn:hover { border-color: var(--forest); }
.cart-btn svg { width: 16px; height: 16px; }
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: var(--cream);
    font-size: 0.62rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count.bump { transform: scale(1.35); }

/* Mobile toggle */
.mobile-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--forest);
    letter-spacing: 0.04em;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
}

/* ===== LAYOUT ===== */
.store-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background: var(--warm-white);
    scrollbar-width: thin;
    scrollbar-color: var(--sage-light) transparent;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 50;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 2px; }

.sidebar-section { padding: 0 1.75rem; margin-bottom: 2rem; }
.sidebar-section:not(:last-child) { border-bottom: 1px solid var(--border); padding-bottom: 2rem; }

.sidebar-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.2rem;
}

/* Category nav items */
.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    margin: 0 -0.75rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 2px solid transparent;
    position: relative;
}
.cat-item:hover { background: var(--cream); color: var(--forest); }
.cat-item.active {
    background: var(--sage-mist);
    color: var(--forest);
    font-weight: 500;
    border-left-color: var(--forest);
}
.cat-count {
    font-size: 0.72rem;
    color: var(--stone);
    font-weight: 400;
    background: var(--cream);
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
}
.cat-item.active .cat-count { background: rgba(26,58,42,0.1); color: var(--forest); }

/* Price range */
.price-options { display: flex; flex-direction: column; gap: 0.3rem; }
.price-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.86rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: color 0.2s;
}
.price-option:hover { color: var(--forest); }

.price-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.price-option.active .price-check {
    background: var(--forest);
    border-color: var(--forest);
}
.price-check-inner {
    width: 8px;
    height: 8px;
    background: var(--cream);
    transform: scale(0);
    transition: transform 0.2s ease;
}
.price-option.active .price-check-inner { transform: scale(1); }

/* Sort */
.sort-options { display: flex; flex-direction: column; gap: 0.3rem; }
.sort-option {
    padding: 0.45rem 0.75rem;
    margin: 0 -0.75rem;
    font-size: 0.86rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}
.sort-option:hover { color: var(--forest); background: var(--cream); }
.sort-option.active { color: var(--forest); font-weight: 500; border-left-color: var(--sage); }

/* ===== MAIN CONTENT ===== */
.store-main {
    flex: 1;
    padding: 2rem 2.5rem 4rem;
    min-width: 0;
}

/* Store header */
.store-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.store-header-left h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--forest);
    line-height: 1.15;
}
.store-header-left h1 em { font-style: italic; color: var(--sage); }
.result-count {
    font-size: 0.82rem;
    color: var(--stone);
    margin-top: 0.4rem;
}

/* Active filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--forest);
    background: var(--sage-mist);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tag:hover { background: var(--sage-light); }
.filter-tag svg { width: 12px; height: 12px; }

.clear-filters {
    font-size: 0.76rem;
    color: var(--stone);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.clear-filters:hover { color: var(--forest); }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Product Card */
.product-card {
    opacity: 0;
    transform: translateY(24px);
    animation: cardReveal 0.6s ease forwards;
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }
.product-card:nth-child(5) { animation-delay: 0.24s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.36s; }
.product-card:nth-child(8) { animation-delay: 0.42s; }
.product-card:nth-child(9) { animation-delay: 0.48s; }

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--border);
    margin-bottom: 0.9rem;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
@media (hover: hover) {
    .product-card:hover .product-image img { transform: scale(1.04); }
}

.product-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--forest);
    color: var(--cream);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
}
.product-badge.popular { background: var(--muted-rose); }
.product-badge.sale { background: #b85c4a; }

/* Add to Cart overlay on hover */
.add-to-cart-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}
@media (hover: hover) {
    .product-card:hover .add-to-cart-overlay { transform: translateY(0); pointer-events: auto; }
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--forest);
    color: var(--cream);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.25s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.add-to-cart-btn:hover { background: var(--charcoal); }
.add-to-cart-btn svg { width: 14px; height: 14px; }
.add-to-cart-btn.added {
    background: var(--sage);
    pointer-events: none;
}

/* Mobile add-to-cart (always visible) */
.add-to-cart-mobile {
    display: none;
    margin-top: auto;
    padding-top: 0.5rem;
    position: relative;
    z-index: 2;
}
.add-to-cart-mobile .add-to-cart-btn {
    font-size: 0.72rem;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.product-info h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.product-maker {
    font-size: 0.78rem;
    color: var(--stone);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price-row { display: flex; align-items: center; gap: 0.5rem; }
.product-price { font-size: 0.92rem; font-weight: 500; color: var(--charcoal); }

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--forest);
    margin-bottom: 0.5rem;
}
.empty-state p { font-size: 0.9rem; color: var(--stone); margin-bottom: 1.5rem; }
.empty-state button {
    padding: 0.75rem 2rem;
    background: var(--forest);
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: background 0.3s;
}
.empty-state button:hover { background: var(--charcoal); }

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 28, 0.45);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--warm-white);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -8px 0 40px rgba(0,0,0,0.08);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--forest);
    font-weight: 400;
}
.cart-drawer-header h3 span { font-family: var(--font-body); font-size: 0.82rem; color: var(--stone); font-weight: 400; }
.cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cart-close:hover { background: var(--cream); }
.cart-close svg { width: 18px; height: 18px; color: var(--charcoal); }

/* Free shipping progress */
.shipping-progress {
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.shipping-msg {
    font-size: 0.78rem;
    color: var(--stone);
    margin-bottom: 0.5rem;
    text-align: center;
}
.shipping-msg strong { color: var(--forest); font-weight: 600; }
.shipping-msg.complete { color: var(--sage); }
.shipping-bar {
    height: 3px;
    background: var(--border);
    overflow: hidden;
}
.shipping-bar-fill {
    height: 100%;
    background: var(--sage);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0%;
}

/* Cart items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--sage-light) transparent;
}
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 2px; }

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    animation: cartItemIn 0.35s ease;
}
@keyframes cartItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 72px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--border);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--forest);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-maker { font-size: 0.72rem; color: var(--stone); margin-bottom: 0.65rem; }

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
}
.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--charcoal);
    transition: all 0.2s;
}
.qty-btn:hover { background: var(--cream); }
.qty-value {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart-item-price { font-size: 0.88rem; font-weight: 500; color: var(--charcoal); }

.cart-item-remove {
    font-size: 0.7rem;
    color: var(--stone);
    text-decoration: underline;
    margin-top: 0.4rem;
    transition: color 0.2s;
}
.cart-item-remove:hover { color: #b85c4a; }

/* Cart empty */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.35; }
.cart-empty h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--forest);
    margin-bottom: 0.4rem;
}
.cart-empty p { font-size: 0.85rem; color: var(--stone); }

/* Cart footer */
.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.75rem 1.5rem;
    flex-shrink: 0;
    background: var(--warm-white);
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.cart-subtotal-label { font-size: 0.88rem; color: var(--charcoal); }
.cart-subtotal-price { font-size: 1.15rem; font-weight: 600; color: var(--forest); }
.cart-note { font-size: 0.74rem; color: var(--stone); margin-bottom: 1.1rem; }

.checkout-btn {
    width: 100%;
    padding: 0.95rem;
    background: var(--forest);
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.checkout-btn:hover { background: var(--charcoal); transform: translateY(-1px); }
.checkout-btn svg { width: 16px; height: 16px; }

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--stone);
    text-decoration: underline;
    transition: color 0.2s;
}
.continue-shopping:hover { color: var(--forest); }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--forest);
    color: var(--cream);
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(26,58,42,0.2);
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== MOBILE SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,28,28,0.4);
    z-index: 49;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.open { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 900px) {
    .mobile-sidebar-toggle { display: flex; }
    .nav-link.desktop-only { display: none; }
    .nav-back { display: none; }

    .top-nav {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    .nav-left { flex: 0 0 auto; gap: 0; }
    .nav-center { flex: 1 1 auto; min-width: 0; }
    .nav-right { flex: 0 0 auto; }

    .logo-top { font-size: 1.2rem; }
    .logo-bottom { font-size: 0.58rem; letter-spacing: 0.2em; }

    .cart-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.78rem;
        gap: 0.35rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 60;
        box-shadow: 4px 0 30px rgba(0,0,0,0.1);
        padding-top: calc(var(--nav-height) + 1rem);
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar-overlay { display: block; pointer-events: none; }
    .sidebar-overlay.open { pointer-events: all; }

    .store-main { padding: 1.5rem 1rem 3rem; }
    .store-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

    .add-to-cart-overlay { display: none; }
    .add-to-cart-mobile { display: block; }

    .announcement-bar {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .product-info {
        min-width: 0;
    }
    .product-info h4 {
        font-size: 0.85rem;
    }
    .product-maker { font-size: 0.7rem; }
    .product-price { font-size: 0.82rem; }

    .top-nav { padding: 0 0.6rem; }
    .store-header-left h1 { font-size: 1.5rem; }
    .store-main { padding: 1.25rem 0.75rem 3rem; }

    .cart-drawer { width: 100vw; max-width: 100vw; }

    .mobile-sidebar-toggle {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ===== PANNABLE PRODUCT IMAGE (wide images like Botanical Print Set) ===== */
.product-card--pannable .product-image {
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.product-card--pannable .product-image img {
    object-fit: cover;
    object-position: center center;
    transition: object-position 0.15s ease-out, transform 0.5s ease;
}

/* Override hover zoom — panning IS the interaction */
@media (hover: hover) {
    .product-card--pannable:hover .product-image img {
        transform: none;
    }
}

/* Pan hint overlay */
.pan-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--forest);
    color: var(--cream);
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.pan-hint-icon {
    font-size: 0.85rem;
    display: inline-block;
    animation: hintNudge 2s ease-in-out infinite;
}

@keyframes hintNudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
}

/* Hide hint once user interacts */
.product-card--pannable.is-panning .pan-hint {
    opacity: 0;
    transform: translateY(4px);
}

/* Mobile gyro permission prompt */
.pan-gyro-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(26, 58, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--cream);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pan-gyro-prompt.visible {
    opacity: 1;
    pointer-events: all;
}

.pan-gyro-prompt-icon {
    font-size: 1.5rem;
    animation: tiltHint 1.5s ease-in-out infinite;
}

@keyframes tiltHint {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(-12deg); }
    60% { transform: rotate(12deg); }
}

/* Auto-pan fallback for mobile when gyro unavailable */
.product-card--pannable.auto-pan .product-image img {
    animation: productAutoPan 8s ease-in-out infinite alternate;
}

@keyframes productAutoPan {
    0%   { object-position: 20% center; }
    100% { object-position: 80% center; }
}

/* ===== SNAPPYWEB DEMO BADGE ===== */
.snappyweb-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: linear-gradient(135deg, #1E88E5 0%, #26C6DA 100%);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(30, 136, 229, 0.4), 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, max-width 0.3s ease, padding 0.25s ease;
    overflow: hidden;
    max-width: 48px;
    cursor: pointer;
}

.snappyweb-badge:hover {
    max-width: 200px;
    padding: 10px 18px 10px 10px;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(30, 136, 229, 0.5), 0 4px 10px rgba(0,0,0,0.2);
}

.snappyweb-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.snappyweb-badge__icon svg {
    width: 15px;
    height: 15px;
}

.snappyweb-badge__text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
}

.snappyweb-badge:hover .snappyweb-badge__text {
    opacity: 1;
    transform: translateX(0);
}

.snappyweb-badge__label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.snappyweb-badge__name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Mobile: always show expanded state */
@media (max-width: 768px) {
    .snappyweb-badge {
        bottom: 16px;
        right: 16px;
        max-width: 200px;
        padding: 10px 18px 10px 10px;
    }

    .snappyweb-badge__text {
        opacity: 1;
        transform: translateX(0);
    }
}
