/* =============================================
   SHOP — Minimalist E-Commerce Styles
   Inspired by clean/minimalist e-commerce design
   ============================================= */

:root {
    --shop-primary:    #1c1917;
    --shop-accent:     #b8864e;
    --shop-accent-alt: #c9a96e;
    --shop-light-bg:   #faf9f7;
    --shop-border:     #e8e2d8;
    --shop-text-muted: #9a8e82;
    --shop-card-radius: 6px;
    --shop-transition: 0.22s ease;
}

/* ── Page Header ── */
.shop-page-header {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line, #ecece8);
    margin-bottom: 48px;
}
.shop-page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--ink, #1a1a1a);
}
.shop-page-desc {
    color: var(--ink-3, #6b6b6b);
    margin-top: 8px;
    font-size: 15px;
    max-width: 600px;
}
.shop-breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
}
.shop-breadcrumb .breadcrumb-item a { color: var(--ink-4, #9a9a9a); text-decoration: none; }
.shop-breadcrumb .breadcrumb-item a:hover { color: var(--ink, #1a1a1a); }
.shop-breadcrumb .breadcrumb-item.active { color: var(--ink-3, #6b6b6b); }

/* ── Section Titles ── */
.shop-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

/* ── Categories Grid ── */
.shop-categories-section { padding: 40px 0; }
.shop-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.shop-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--shop-card-radius);
    overflow: hidden;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition);
}
.shop-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.shop-category-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--shop-light-bg);
}
.shop-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.shop-category-card:hover .shop-category-image img { transform: scale(1.05); }
.shop-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}
.shop-category-info {
    padding: 16px 0 8px;
}
.shop-category-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
}
.shop-category-count { font-size: 13px; color: var(--shop-text-muted); }

/* ── Products Grid ── */
.shop-featured-section { padding: 40px 0 60px; }
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 20px;
}

/* ── Product Card ── */
.shop-product-card {
    display: flex;
    flex-direction: column;
}
.shop-product-image-link { display: block; text-decoration: none; }
.shop-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--shop-light-bg);
    border-radius: var(--shop-card-radius);
    margin-bottom: 12px;
}
.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.shop-product-card:hover .shop-product-image img { transform: scale(1.04); }
.shop-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ccc;
}
.shop-product-badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--shop-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.shop-product-info { flex: 1; display: flex; flex-direction: column; }
.shop-product-category { font-size: 11px; color: var(--shop-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.shop-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shop-primary);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}
.shop-product-name:hover { color: var(--shop-accent); }
.shop-product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.shop-product-price { font-size: 1rem; font-weight: 700; }
.shop-product-old-price { font-size: 0.85rem; color: var(--shop-text-muted); text-decoration: line-through; }
.shop-add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--shop-primary);
    color: #fff;
    border: none;
    border-radius: var(--shop-card-radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background var(--shop-transition), transform var(--shop-transition);
    text-transform: uppercase;
}
.shop-add-to-cart-btn:hover { background: #333; transform: translateY(-1px); }
.shop-add-to-cart-btn.adding { opacity: 0.7; }
.shop-add-to-cart-btn.added { background: #28a745; }

/* ── Shop Layout (category page) ── */
.shop-layout { padding-bottom: 60px; }
.shop-sidebar { padding-top: 0; }
.shop-sidebar-section { margin-bottom: 32px; }
.shop-sidebar-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
/* ── Sidebar category accordion ── */
.shop-category-list { list-style: none; padding: 0; margin: 0; }
.shop-cat-item { border-bottom: 1px solid var(--shop-border); }
.shop-cat-item:last-child { border-bottom: none; }

.shop-cat-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.shop-cat-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    color: var(--shop-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--shop-transition);
}
.shop-cat-link:hover { color: var(--shop-accent); }
.shop-cat-item.active   > .shop-cat-row .shop-cat-link,
.shop-cat-item.ancestor > .shop-cat-row .shop-cat-link {
    color: var(--shop-accent);
    font-weight: 600;
}

.shop-cat-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px 2px 4px 6px;
    color: var(--shop-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color var(--shop-transition);
}
.shop-cat-toggle i {
    display: block;
    font-size: 12px;
    transition: transform 0.2s ease;
}
.shop-cat-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.shop-cat-toggle:hover { color: var(--shop-accent); }

.shop-cat-children {
    list-style: none;
    padding: 2px 0 8px 12px;
    margin: 0;
    border-left: 2px solid var(--shop-border);
    margin-left: 6px;
}
.shop-cat-children li { border: none; }
.shop-cat-child-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    color: var(--shop-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--shop-transition);
}
.shop-cat-child-link:hover,
.shop-cat-children li.active .shop-cat-child-link {
    color: var(--shop-accent);
    font-weight: 600;
}
.shop-cat-count { font-size: 12px; color: var(--shop-text-muted); }

.shop-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 0; color: var(--shop-text-muted); text-align: center; }
.shop-empty svg { color: var(--ink-4); flex-shrink: 0; }
.shop-empty p { margin: 0; }

/* ── Product Detail ── */
.shop-product-detail { padding: 32px 0 60px; }
.shop-gallery-main {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--shop-light-bg);
    border-radius: var(--shop-card-radius);
    margin-bottom: 12px;
}
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.shop-gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; color: #ccc; }
.shop-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: var(--shop-card-radius);
    overflow: hidden;
    padding: 0;
    background: var(--shop-light-bg);
    cursor: pointer;
    transition: border-color var(--shop-transition);
}
.shop-gallery-thumb.active { border-color: var(--shop-primary); }
.shop-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.shop-product-info-panel { padding-top: 8px; }
.shop-product-detail-category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--shop-text-muted); margin-bottom: 12px; }
.shop-product-detail-title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; margin-bottom: 16px; }
.shop-product-detail-short-desc { color: #555; line-height: 1.7; margin-bottom: 24px; }
.shop-product-detail-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.shop-product-detail-price { font-size: 1.75rem; font-weight: 700; }
.shop-product-detail-old-price { font-size: 1rem; color: var(--shop-text-muted); text-decoration: line-through; }
.shop-product-detail-discount { font-size: 0.875rem; font-weight: 700; color: var(--shop-accent); }
.shop-product-sku { font-size: 13px; color: var(--shop-text-muted); margin-bottom: 24px; }
.shop-product-sku span { color: var(--shop-primary); }

.shop-product-add-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.shop-qty-selector { display: flex; align-items: center; border: 1px solid var(--shop-border); border-radius: var(--shop-card-radius); }
.shop-qty-btn {
    width: 40px; height: 44px;
    background: none; border: none;
    font-size: 18px; cursor: pointer;
    color: var(--shop-primary);
    transition: background var(--shop-transition);
    display: flex; align-items: center; justify-content: center;
}
.shop-qty-btn:hover { background: var(--shop-light-bg); }
.shop-qty-input { width: 52px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--shop-border); border-right: 1px solid var(--shop-border); font-size: 15px; font-weight: 600; outline: none; }
.shop-qty-input::-webkit-inner-spin-button,
.shop-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.shop-detail-add-btn {
    flex: 1;
    padding: 12px 24px;
    background: var(--shop-primary);
    color: #fff;
    border: none;
    border-radius: var(--shop-card-radius);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background var(--shop-transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.shop-detail-add-btn:hover { background: #333; }

.shop-stock-info { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.shop-stock-info.in-stock { color: #28a745; }
.shop-stock-info.out-of-stock { color: var(--shop-accent); }

.shop-product-description { border-top: 1px solid var(--shop-border); padding-top: 40px; }
.shop-product-description h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.shop-product-description-content { line-height: 1.8; color: #444; }
.shop-related { border-top: 1px solid var(--shop-border); padding-top: 48px; }

/* ── Buttons ── */
.shop-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--shop-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--shop-card-radius);
    border: none;
    cursor: pointer;
    transition: background var(--shop-transition);
    text-align: center;
}
.shop-btn-primary:hover { background: #333; color: #fff; }
.shop-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--shop-primary);
    border: 1px solid var(--shop-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--shop-card-radius);
    cursor: pointer;
    transition: all var(--shop-transition);
}
.shop-btn-outline:hover { background: var(--shop-primary); color: #fff; }

/* ── Cart ── */
.shop-cart-page { padding-bottom: 60px; }
.shop-cart-items { display: flex; flex-direction: column; gap: 0; }
.shop-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--shop-border);
}
.shop-cart-item-image { width: 80px; height: 80px; border-radius: var(--shop-card-radius); overflow: hidden; background: var(--shop-light-bg); }
.shop-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #ccc; }
.shop-cart-item-name { font-weight: 600; font-size: 14px; color: var(--shop-primary); text-decoration: none; display: block; margin-bottom: 4px; }
.shop-cart-item-name:hover { color: var(--shop-accent); }
.shop-cart-item-price { font-size: 13px; color: var(--shop-text-muted); }
.shop-cart-item-subtotal { font-weight: 700; font-size: 15px; min-width: 90px; text-align: right; }
.shop-cart-item-remove {
    background: none; border: none;
    color: var(--shop-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color var(--shop-transition);
}
.shop-cart-item-remove:hover { color: var(--shop-accent); }
.shop-cart-actions { display: flex; gap: 12px; }

.shop-cart-summary {
    background: var(--shop-light-bg);
    border-radius: var(--shop-card-radius);
    padding: 28px;
    position: sticky;
    top: 80px;
}
.shop-cart-summary-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.shop-cart-summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--shop-border); font-size: 14px; }
.shop-cart-summary-total { font-weight: 700; font-size: 16px; border-bottom: none; }

/* ── Checkout ── */
.shop-checkout-page { padding-bottom: 60px; }
.shop-checkout-section { }
.shop-checkout-section-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--shop-border); }

.shop-radio-group .form-check {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color var(--shop-transition), background var(--shop-transition);
}
.shop-radio-group .form-check:has(input:checked) {
    border-color: var(--shop-primary);
    background: rgba(26,26,26,0.03);
}
.shop-radio-group .form-check-input { margin-right: 12px; }
.shop-radio-group .form-check-label { font-size: 14px; font-weight: 500; cursor: pointer; margin: 0; }

.shop-checkout-summary {
    background: var(--shop-light-bg);
    border-radius: var(--shop-card-radius);
    padding: 28px;
    position: sticky;
    top: 80px;
}
.shop-checkout-items { margin-bottom: 20px; }
.shop-checkout-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--shop-border);
}
.shop-checkout-item-img { position: relative; }
.shop-checkout-item-img img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--shop-card-radius); }
.shop-checkout-no-img { width: 56px; height: 56px; background: #e8e8e8; border-radius: var(--shop-card-radius); display: flex; align-items: center; justify-content: center; color: #ccc; }
.shop-checkout-item-qty {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.shop-checkout-item-name { font-size: 13px; font-weight: 500; line-height: 1.4; }
.shop-checkout-item-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.shop-checkout-totals { }
.shop-checkout-total-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--shop-border); font-size: 14px; }
.shop-checkout-grand-total { font-weight: 700; font-size: 16px; border-bottom: none; }
.shop-checkout-agreement { font-size: 12px; color: var(--shop-text-muted); text-align: center; }

/* ── Order Success ── */
.shop-success-page { padding: 60px 0; }
.shop-success-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.shop-success-icon { font-size: 72px; color: #28a745; margin-bottom: 24px; }
.shop-success-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.shop-success-number { font-size: 1.1rem; color: var(--shop-text-muted); margin-bottom: 8px; }
.shop-success-desc { color: var(--shop-text-muted); margin-bottom: 32px; }
.shop-success-info {
    background: var(--shop-light-bg);
    border-radius: var(--shop-card-radius);
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}
.shop-success-info h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 12px; color: var(--shop-text-muted); }
.shop-success-info p { margin: 0 0 6px; font-size: 14px; }
.shop-success-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.shop-success-table td { padding: 10px 0; border-bottom: 1px solid var(--shop-border); }
.shop-success-total-row td { font-weight: 700; font-size: 15px; border-bottom: none; padding-top: 16px; }
.shop-success-actions { }

/* ── Cart Counter (navbar) ── */
.cart-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.cart-count {
    background: var(--shop-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* ── Form ── */
.shop-checkout-form .form-control,
.shop-checkout-form .form-select {
    border-color: var(--shop-border);
    border-radius: var(--shop-card-radius);
    padding: 12px 14px;
    font-size: 14px;
}
.shop-checkout-form .form-control:focus,
.shop-checkout-form .form-select:focus {
    border-color: var(--shop-primary);
    box-shadow: none;
}
.shop-checkout-form label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .shop-cart-item {
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto;
    }
    .shop-cart-item-image { grid-row: 1 / 3; }
    .shop-cart-item-subtotal { text-align: left; }
    .shop-cart-item-remove { grid-column: 3; grid-row: 1; }

    .shop-product-add-row { flex-direction: column; }
    .shop-detail-add-btn { width: 100%; }
}

/* ══════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────── */
.home-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, #1c1917 0%, #2e2319 55%, #3a2a1a 100%);
    overflow: hidden;
    color: #fff;
}

/* Subtle warm texture pattern */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(184,134,78,.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(184,134,78,.10) 0%, transparent 45%);
    pointer-events: none;
}

/* Decorative right panel */
.home-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42%;
    background: rgba(255,255,255,.03);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
    max-width: 620px;
}

.home-hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--shop-accent);
    margin-bottom: 20px;
}

.home-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 20px;
}

.home-hero-sub {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.65);
    margin-bottom: 36px;
    max-width: 480px;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--shop-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-radius: var(--shop-card-radius);
    border: none;
    cursor: pointer;
    transition: background var(--shop-transition), transform var(--shop-transition);
}
.home-btn-primary:hover {
    background: #9a6d37;
    color: #fff;
    transform: translateY(-2px);
}

.home-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--shop-card-radius);
    border: 1px solid rgba(255,255,255,.25);
    transition: background var(--shop-transition), border-color var(--shop-transition), color var(--shop-transition);
}
.home-btn-ghost:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

/* Floating badge */
.home-hero-badge {
    position: absolute;
    right: 8%;
    bottom: 48px;
    z-index: 2;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    color: #fff;
    min-width: 140px;
}
.home-hero-badge-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--shop-accent);
    line-height: 1;
}
.home-hero-badge-text {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Categories strip ─────────────────────────────── */
.home-cats {
    padding: 56px 0;
    background: var(--shop-light-bg);
    border-bottom: 1px solid var(--shop-border);
}

.home-cats-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

.home-cats-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.home-cats-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--shop-transition), color var(--shop-transition);
}
.home-cats-all:hover { gap: 8px; color: #9a6d37; }

.home-cats-track-wrap {
    position: relative;
}

.home-cats-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.home-cats-track::-webkit-scrollbar { display: none; }

.home-cat-item {
    flex: 0 0 auto;
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--shop-primary);
    scroll-snap-align: start;
    transition: transform var(--shop-transition);
}
.home-cat-item:hover { transform: translateY(-4px); color: var(--shop-primary); }

.home-cat-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--shop-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
}
.home-cat-item:hover .home-cat-img {
    border-color: var(--shop-accent);
    box-shadow: 0 4px 16px rgba(184,134,78,.25);
}
.home-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.home-cat-item:hover .home-cat-img img { transform: scale(1.08); }

.home-cat-icon {
    font-size: 2rem;
    color: var(--shop-text-muted);
}

.home-cat-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.home-cat-sub {
    font-size: 11px;
    color: var(--shop-text-muted);
    margin-top: 3px;
    text-align: center;
}

/* Arrow buttons */
.home-cats-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--shop-border);
    background: var(--shop-light-bg);
    color: var(--shop-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    transition: background var(--shop-transition), box-shadow var(--shop-transition);
    z-index: 2;
}
.home-cats-arrow:hover { background: var(--shop-primary); color: #fff; box-shadow: var(--shadow-md); }
.home-cats-arrow--prev { left: -20px; }
.home-cats-arrow--next { right: -20px; }

@media (max-width: 767.98px) {
    .home-cats-arrow { display: none; }
}

/* ── Features / Delivery ──────────────────────────── */
.home-features {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid var(--shop-border);
    border-bottom: 1px solid var(--shop-border);
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.home-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 36px 8px 0;
    border-right: 1px solid var(--shop-border);
}
.home-feature:last-child {
    border-right: none;
    padding-right: 0;
}
.home-feature + .home-feature {
    padding-left: 36px;
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #faf5ec;
    border: 1px solid #ecdcbf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--shop-accent);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.home-feature-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--shop-primary);
}

.home-feature-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--shop-text-muted);
    margin: 0;
}

/* ── Hero responsive ─────────────────────────────── */
@media (max-width: 991.98px) {
    .home-hero { min-height: 480px; }
    .home-hero-badge { display: none; }
    .home-hero::after { display: none; }
    .home-hero-title { font-size: 2.4rem; }

    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }
    .home-feature:nth-child(2) { border-right: none; }
    .home-feature:nth-child(3) { border-right: 1px solid var(--shop-border); }
    .home-feature:nth-child(n+3) { padding-top: 32px; border-top: 1px solid var(--shop-border); }
    .home-feature:nth-child(2n) { padding-right: 0; }
    .home-feature:nth-child(2n+1) { padding-left: 0; }
}

@media (max-width: 575.98px) {
    .home-hero { min-height: 420px; }
    .home-hero-title { font-size: 2rem; }
    .home-hero-sub { font-size: 14px; }
    .home-btn-primary, .home-btn-ghost { padding: 12px 22px; font-size: 13px; }

    .home-cats { padding: 40px 0; }
    .home-cat-img { width: 80px; height: 80px; }
    .home-cat-item { width: 108px; }

    .home-features { padding: 44px 0; }
    .home-features-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .home-feature {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 0;
        border-right: none;
        border-bottom: 1px solid var(--shop-border);
    }
    .home-feature:last-child { border-bottom: none; }
    .home-feature + .home-feature { padding-left: 0; border-top: none; }
    .home-feature-icon { margin-bottom: 0; flex-shrink: 0; }
}

/* ── Hot Offers / Featured ────────────────────────── */
.home-featured {
    padding: 72px 0;
    background: var(--shop-light-bg);
}

.home-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.home-section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--shop-accent);
    margin-bottom: 6px;
}

.home-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--shop-primary);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}

.home-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--shop-primary);
    border: 1.5px solid var(--shop-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--shop-card-radius);
    transition: background var(--shop-transition), color var(--shop-transition);
}
.home-btn-outline:hover {
    background: var(--shop-primary);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .home-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .home-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .home-featured { padding: 48px 0; }
    .home-section-title { font-size: 1.3rem; }
}
@media (max-width: 479.98px) {
    .home-products-grid { grid-template-columns: 1fr; }
}

/* ── Specs table ─────────────────────────────────────── */
.shop-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.shop-specs-table tr {
    border-bottom: 1px solid #f0ede8;
}
.shop-specs-table th {
    width: 45%;
    padding: .55rem .75rem;
    font-weight: 500;
    color: #57534e;
    background: #faf9f7;
    text-align: left;
}
.shop-specs-table td {
    padding: .55rem .75rem;
    color: #1c1917;
}

/* ── Product option selectors ─────────────────────────────────────────────── */
.shop-option-group {
    margin-bottom: 1rem;
}
.shop-option-label {
    font-size: .85rem;
    font-weight: 600;
    color: #57534e;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}
.shop-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.shop-option-btn {
    padding: .35rem .85rem;
    border: 1.5px solid #d6d3ce;
    background: #fff;
    color: #1c1917;
    font-size: .875rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.shop-option-btn:hover {
    border-color: #b8864e;
}
.shop-option-btn.selected {
    border-color: #1c1917;
    background: #1c1917;
    color: #fff;
}
/* Color swatch buttons */
.shop-option-btn.shop-option-color {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 2.5px solid #e5e3df;
}
.shop-option-btn.shop-option-color.selected {
    border-color: #1c1917;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1c1917;
}

/* ── Search ──────────────────────────────────────────────────────────────── */
.shop-search-form {}
.shop-search-input-group { max-width: 680px; }
.shop-search-input {
    border-radius: 6px 0 0 6px !important;
    border: 1.5px solid #d6d3ce;
    font-size: 1rem;
    padding: .65rem 1rem;
}
.shop-search-input:focus { border-color: #b8864e; box-shadow: none; }
.shop-search-btn {
    background: #1c1917;
    color: #fff;
    border-radius: 0 6px 6px 0 !important;
    border: none;
    padding: .65rem 1.4rem;
    font-size: .95rem;
    white-space: nowrap;
}
.shop-search-btn:hover { background: #b8864e; color: #fff; }

/* Navbar search bar (dropdown under header) */
.navbar-search-bar {
    background: #f8f6f2;
    border-top: 1px solid #e5e3df;
    padding: .6rem 0;
}
.navbar-search-bar-form {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.navbar-search-bar-form .form-control {
    border: 1.5px solid #d6d3ce;
    border-radius: 6px;
    font-size: .95rem;
    padding: .45rem .9rem;
}
.navbar-search-bar-form .form-control:focus { border-color: #b8864e; box-shadow: none; }
.navbar-search-close { color: #6b7280; padding: .3rem .5rem; }
.navbar-search-close:hover { color: #1c1917; }
.navbar-search-btn {
    background: #fff;
    border: 1.5px solid #1c1917;
    color: #1c1917;
    border-radius: 6px;
    padding: .45rem .9rem;
    font-size: .9rem;
}
.navbar-search-btn:hover { background: #1c1917; color: #fff; }

/* Navbar search icon button */
.navbar-search-btn-icon,
.navbar-search-btn {
    cursor: pointer;
}
button.navbar-search-btn {
    background: transparent;
    border: none;
    padding: .25rem .4rem;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
}
button.navbar-search-btn:hover { color: #b8864e; }

/* ══════════════════════════════════════════════════
   SHOP INDEX — catalog overview page
══════════════════════════════════════════════════ */

.catalog-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* ── Categories Grid ── */
.catalog-cats-section {
    padding: 0 0 64px;
}

.catalog-section-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
    color: var(--ink, #1a1a1a);
}

.catalog-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.catalog-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-soft, #f8f8f6);
    border: 1px solid var(--line, #ecece8);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.catalog-cat-card:hover {
    border-color: var(--accent, #f26a1f);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -8px rgba(26,26,26,.12);
    color: inherit;
    text-decoration: none;
}

.catalog-cat-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-sunk, #f4f4f2);
}

.catalog-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.catalog-cat-card:hover .catalog-cat-image img {
    transform: scale(1.04);
}

.catalog-cat-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--line-strong, #dcdbd5);
}

.catalog-cat-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
}

.catalog-cat-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #1a1a1a);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 3px;
}

.catalog-cat-meta {
    display: block;
    font-size: 12px;
    color: var(--ink-4, #9a9a9a);
    margin-bottom: 10px;
}

.catalog-cat-subs {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catalog-cat-subs li {
    font-size: 12px;
    color: var(--ink-3, #6b6b6b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-cat-subs-more {
    color: var(--ink-4, #9a9a9a) !important;
    font-style: italic;
}

.catalog-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent, #f26a1f);
    margin-top: auto;
    padding-top: 8px;
}

/* ── Featured section ── */
.catalog-featured-section {
    padding: 56px 0 64px;
    border-top: 1px solid var(--line, #ecece8);
}

.catalog-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

/* ── Features / Why us ── */
.catalog-features-section {
    border-top: 1px solid var(--line, #ecece8);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .catalog-cats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .catalog-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .catalog-featured-header { flex-direction: column; align-items: flex-start; }
    .catalog-cats-section { padding-bottom: 48px; }
    .catalog-featured-section { padding: 40px 0 48px; }
}

@media (max-width: 480px) {
    .catalog-cats-grid { gap: 10px; }
    .catalog-cat-body { padding: 12px 14px 16px; }
    .catalog-cat-name { font-size: 14px; }
}
