/* ==================================================
   LegacyCrafted – Design System
   ================================================== */

:root {
    /* Colors */
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-border: #e5e2dc;
    --color-primary: #1a1a1a;
    --color-accent: #8b7355;
    --color-sale: #c45c26;

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;

    /* Layout */
    --container: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-4);
}
.section {
    padding: var(--space-7) 0;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-5);
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: #333;
}
.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.main-nav {
    display: flex;
    gap: var(--space-5);
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.cart-link {
    font-weight: 500;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f5f2ed 0%, #e8e2d9 100%);
    padding: var(--space-8) 0;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
    line-height: 1.15;
}
.hero p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto var(--space-5);
}
.hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
}
.category-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}
.category-card h3 {
    padding: var(--space-3);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-5);
}
.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #f0ede8;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.product-info {
    padding: var(--space-3) var(--space-3) var(--space-4);
}
.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}
.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.sale-price {
    color: var(--color-sale);
    font-weight: 600;
}
.original-price {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}
.price {
    font-weight: 600;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    text-align: center;
}
.why-item h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
}
.why-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* CTA */
.cta-section {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: var(--space-7) 0;
}
.cta-section h2 {
    font-size: 1.85rem;
    margin-bottom: var(--space-3);
}
.cta-section p {
    opacity: 0.85;
    margin-bottom: var(--space-5);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-outline {
    border-color: #fff;
    color: #fff;
}
.cta-section .btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Footer */
.site-footer {
    background: #111;
    color: #ccc;
    padding: var(--space-7) 0 var(--space-4);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}
.footer-brand h3 {
    color: #fff;
    margin-bottom: var(--space-2);
}
.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-links a {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
    color: #999;
    transition: var(--transition);
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: var(--space-4);
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .hero {
        padding: var(--space-6) 0;
    }
    .section {
        padding: var(--space-6) 0;
    }
}
/* Placeholders */
.placeholder-image {
    width: 100%;
    height: 180px;
    background: #e8e2d9;
}
.placeholder-product {
    width: 100%;
    height: 100%;
    background: #e8e2d9;
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Slightly safer container */
.container {
    width: 100%;
    max-width: min(var(--container), 100%);
    margin: 0 auto;
    padding: 0 var(--space-4);
}
.section-light {
    background: #fff;
}
.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-5) 0;
}

.empty-state p {
    margin-bottom: var(--space-3);
}
/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.breadcrumb a:hover {
    color: var(--color-text);
}
.breadcrumb-separator {
    margin: 0 0.4rem;
}

/* Category header */
.category-header {
    margin-bottom: 2rem;
}
.category-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.category-description {
    color: var(--color-text-muted);
    max-width: 600px;
}

/* Toolbar */
.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.product-count {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sort-form label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.sort-form select {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 0.9rem;
}
/* Product Page */
.product-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.product-gallery .main-image {
    background: #f0ede8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f0ede8;
    cursor: pointer;
}

.thumb.active {
    border-color: var(--color-primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-summary .badge-featured {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.product-price-block .sale-price {
    color: var(--color-sale);
    font-weight: 700;
}

.product-price-block .original-price {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 1rem;
}

.availability {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.product-short-desc {
    margin-bottom: 1.75rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.product-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.product-description {
    line-height: 1.7;
    color: var(--color-text);
    max-width: 720px;
}

@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.form-errors p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
.contact-container {
    max-width: 720px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-muted);
}
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


.form-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.form-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-container {
    max-width: 800px;
}

.about-hero {
    margin: 2rem 0 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-hero .placeholder-image {
    height: 280px;
}

.about-content {
    line-height: 1.75;
}

.about-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.about-why {
    margin: 3rem 0;
}

.about-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.about-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
/* ==================================================
   Product Gallery V1.0 – Modern Amazon-style
   ================================================== */

.product-gallery {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-gallery.has-thumbs {
    /* left thumbs + main */
}

/* Vertical thumbnail strip (desktop) */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f0ede8;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    border-color: #ccc;
}

.gallery-thumb.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

/* Main image area */
.gallery-main {
    position: relative;
    flex: 1;
    background: #f0ede8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    max-height: 560px;
    cursor: zoom-in;
}

.gallery-main .main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
    background: #f5f2ed;
}

.gallery-main .main-img.is-fading {
    opacity: 0.4;
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-main:hover .zoom-hint {
    opacity: 1;
}

/* Mobile layout */
@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column-reverse; /* main first, then thumbs */
        gap: 0.75rem;
    }

    .gallery-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        width: 100%;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }

    .gallery-main {
        width: 100%;
        max-height: none;
        aspect-ratio: 1;
    }

    .zoom-hint {
        opacity: 1; /* always visible on mobile */
    }
}

/* ==================================================
   Zoom Overlay
   ================================================== */

.zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.zoom-overlay[hidden] {
    display: none;
}

.zoom-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.zoom-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    z-index: 10;
}

.zoom-close:hover {
    opacity: 1;
}

.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 10;
}

.zoom-nav:hover {
    background: rgba(255,255,255,0.25);
}

.zoom-prev { left: 1.25rem; }
.zoom-next { right: 1.25rem; }

@media (max-width: 600px) {
    .zoom-nav {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }
    .zoom-prev { left: 0.5rem; }
    .zoom-next { right: 0.5rem; }
}

/* ==================================================
   Footer V1.0 – Premium
   ================================================== */

.site-footer {
    background: #111;
    color: #ccc;
    padding: var(--space-7) 0 var(--space-4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    color: #c4a77d;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.footer-desc {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    color: #999;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.footer-contact-item:hover {
    color: #fff;
}

.contact-icon {
    font-size: 1rem;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.footer-credit {
    color: #666;
    transition: color 0.2s ease;
}

.footer-credit:hover {
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .footer-desc {
        max-width: none;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================================================
   Floating WhatsApp Button
   ================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float svg {
    display: block;
}

/* Tooltip – desktop only */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* ==================================================
   Page Banner Slideshow (Area / Category headers)
   ================================================== */
.page-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    margin-bottom: var(--space-5);
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: #1a1a1a;
}

.page-banner-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    transform: scale(1.04);
}

.page-banner-slide.is-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.1s ease-in-out, transform 8s ease-out;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.88) 0%,
        rgba(10, 10, 10, 0.55) 45%,
        rgba(10, 10, 10, 0.35) 100%
    );
    pointer-events: none;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-6) 0 var(--space-5);
    color: #fff;
}

.page-banner .breadcrumb {
    margin-bottom: 1rem;
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.page-banner .breadcrumb a:hover {
    color: #fff;
}

.page-banner .breadcrumb-separator,
.page-banner .breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.55);
}

.page-banner .category-header {
    margin-bottom: 0;
}

.page-banner .category-header h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.page-banner .category-description {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.page-banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.45rem;
}

.page-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.page-banner-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 640px) {
    .page-banner {
        min-height: 220px;
        border-radius: 0;
    }
    .page-banner-content {
        padding: var(--space-5) 0 var(--space-4);
    }
}

/* ==================================================
   Shop Page
   ================================================== */
.shop-page-header {
    margin-bottom: var(--space-6);
}
.shop-page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.shop-page-header p {
    color: var(--color-text-muted);
    max-width: 520px;
}

.shop-section {
    margin-bottom: var(--space-7);
}
.shop-section-title {
    text-align: left;
    margin-bottom: var(--space-4);
    font-size: 1.35rem;
}

/* Category list blocks */
.shop-category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-category-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shop-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.shop-category-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* Force small thumbs even if older CSS is cached */
.shop-category-block .shop-category-thumb,
.shop-category-identity img.shop-category-thumb {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
    display: block;
}
.shop-category-thumb-placeholder {
    width: 56px !important;
    height: 56px !important;
    background: #eceae6;
    border: 1px dashed var(--color-border);
    flex-shrink: 0;
}

.shop-category-meta h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    line-height: 1.3;
}
.shop-category-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.shop-category-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-secondary {
    background: #2a2a2a;
    color: #fff;
    border: none;
}
.btn-secondary:hover {
    background: #444;
}
.btn-secondary.is-open {
    background: var(--color-accent);
}

.shop-category-panel {
    border-top: 1px solid var(--color-border);
    padding: 1.25rem;
    background: #fcfbf9;
}

.shop-preview-grid {
    margin-bottom: 0;
}

.shop-more-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.shop-more-note a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 640px) {
    .shop-category-head {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-category-actions {
        justify-content: flex-start;
    }
}
