@font-face {
    font-family: 'YekanBakh';
    src: url('/fonts/YekanBakh-Regular.woff2') format('woff2'),
         url('/fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/fonts/YekanBakh-Bold.woff2') format('woff2'),
         url('/fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/fonts/YekanBakh-Black.woff2') format('woff2'),
         url('/fonts/YekanBakh-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Storefront inherits Stitch Heritage Modernism tokens from design-kit.css.
   Do not reintroduce dark-gold (#0e0e0e / #c9a84c) here. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    overflow-x: hidden;
    overflow-x: clip;
    direction: rtl;
}

body {
    font-family: var(--font-body, 'Vazirmatn', 'YekanBakh', Tahoma, sans-serif);
    background-color: var(--background);
    background-image: 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='%231c39bb' fill-opacity='0.03'%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");
    color: var(--on-surface);
    direction: rtl;
    line-height: var(--lh-body, 1.6);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;
    font-size: var(--fs-body-md, 16px);
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utility bar */
.utility-bar {
    background: var(--surface-container-low);
    border-bottom: 1px solid rgba(197, 197, 214, 0.35);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}
.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.utility-slogan {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.utility-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.utility-actions a,
.utility-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    min-height: 36px;
}
.utility-actions a:hover,
.utility-link:hover { color: var(--secondary); }
.utility-user-name {
    color: var(--primary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Header — Stitch frosted glass (Heritage Modernism) */
.site-header {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 197, 214, 0.25);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    border: none;
    border-radius: 0;
    padding: 14px 0;
    background: transparent;
    min-width: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-inner:focus-within {
    border-color: transparent;
    box-shadow: none;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 56px;
}
.logo-icon {
    width: 48px;
    height: auto;
}
.logo-text {
    font-size: var(--fs-headline-md);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    font-family: var(--font-display);
}
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--surface-container-lowest);
    min-width: 0;
}
.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    color: var(--on-surface);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    direction: rtl;
    text-align: right;
    min-height: 44px;
    min-width: 0;
    width: 100%;
    box-shadow: none !important;
}
.search-form input::placeholder { color: var(--outline); }
.search-form button {
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--gold);
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--on-surface);
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: background 0.2s;
}
.menu-toggle.stitch-icon-btn {
    padding: 0;
    min-width: 0;
    min-height: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    color: var(--on-primary);
}
.menu-toggle .menu-toggle-icon {
    display: block;
}
.menu-toggle.is-open .menu-toggle-icon {
    opacity: 0.65;
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}
.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 16px;
}
.menu-toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease;
    transform-origin: center;
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop navigation — Stitch gold underline */
.main-nav {
    background: transparent;
    padding: 0;
    position: relative;
    top: auto;
    z-index: 90;
    border-bottom: 1px solid rgba(197, 197, 214, 0.2);
}
.main-nav ul {
    display: flex;
    gap: 0;
    padding: 0;
    white-space: nowrap;
}
.main-nav a {
    display: block;
    padding: 14px 4px;
    font-size: var(--fs-label-md);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    color: var(--on-surface-variant);
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* Mobile drawer (off-canvas, RTL from right) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 27, 35, 0.45);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 950;
    background: rgba(251, 248, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(184, 148, 63, 0.45);
    box-shadow: -12px 0 40px rgba(28, 57, 187, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
    overflow: hidden;
}
.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--outline-variant);
    flex-shrink: 0;
}
.mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    min-width: 0;
}
.mobile-drawer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.mobile-drawer-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-drawer-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gold);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.mobile-drawer-close:hover,
.mobile-drawer-close:focus-visible {
    background: var(--primary-fixed);
    outline: none;
}
.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}
.mobile-drawer-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--outline-variant);
    border-right: 3px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a:focus-visible {
    color: var(--gold);
    background: rgba(28, 57, 187, 0.08);
    border-right-color: var(--gold);
    outline: none;
}
.mobile-drawer-actions {
    flex-shrink: 0;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface-container);
}
.mobile-drawer-action {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}
.mobile-drawer-action:hover,
.mobile-drawer-action:focus-visible {
    color: var(--gold);
    background: rgba(28, 57, 187, 0.08);
    outline: none;
}
.mobile-drawer-action img {
    width: 20px;
    height: 20px;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Align with stitch-topnav breakpoint (900px) — 769px left a dead zone with no nav */
@media (min-width: 900px) {
    .nav-overlay,
    .mobile-drawer,
    .menu-toggle {
        display: none !important;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero slider — Stitch Heritage Modernism light gallery */
.hero-slider {
    margin: 0 0 28px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: min(70vh, 560px);
    min-height: 360px;
    max-width: none;
    width: 100%;
    border: none;
    box-shadow: none;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 10s ease;
}
.hero-slide.active .hero-img { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(244, 242, 254, 0.92) 0%,
        rgba(251, 248, 255, 0.55) 40%,
        rgba(222, 224, 255, 0.45) 100%
    );
}
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, var(--fs-display-lg));
    font-weight: 800;
    line-height: var(--lh-display-lg);
    letter-spacing: var(--tracking-display);
    color: var(--on-surface);
    -webkit-text-fill-color: unset;
    background: none;
    filter: none;
}
.hero-content h1 span {
    color: var(--primary);
    -webkit-text-fill-color: unset;
    background: none;
}
.mobile-only { display: none; }
.desktop-only { display: block; }
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(28, 57, 187, 0.25);
    border: 1px solid rgba(28, 57, 187, 0.35);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-dot.active {
    background: var(--gold);
    border-color: var(--gold-light);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(28, 57, 187, 0.35);
}

/* Homepage category masonry */
.home-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 24px;
    margin-bottom: 64px;
    width: 100%;
    max-width: 100%;
}
.home-cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s ease,
                border-color 0.35s ease;
}
.home-cat-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}
.home-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: transform 0.7s ease, opacity 0.4s ease;
}
.home-cat-card:hover img {
    transform: scale(1.08);
    opacity: 1;
}
.home-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47, 48, 56, 0.82) 0%, rgba(47, 48, 56, 0.25) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
}
.home-cat-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.home-cat-card:hover .home-cat-name { color: var(--gold-light); }
.home-cat-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    margin-top: auto;
    line-height: 1.5;
    padding-bottom: 4px;
    opacity: 0.85;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.home-cat-card:hover .home-cat-desc {
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 1025px) {
    .home-cat-card.cat-tall { grid-row: 1 / 3; grid-column: 1; }
    .home-cat-card.cat-tall-right { grid-row: 1 / 3; grid-column: 4; }
    .home-cat-card.cat-wide { grid-column: 3; grid-row: 1; }
    .home-cat-card.cat-normal:nth-child(2) { grid-column: 2; grid-row: 1; }
    .home-cat-card.cat-normal:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
    .home-cat-card.cat-normal:nth-child(6) { grid-column: 2; grid-row: 2; }
    .home-cat-card.cat-normal:nth-child(7) { grid-column: 2; grid-row: 2; }
    .home-cat-card.cat-normal:nth-child(8) { grid-column: 3; grid-row: 2; }
}

/* Section headers — Stitch gallery rhythm */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 64px 0 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(197, 197, 214, 0.35);
    flex-wrap: wrap;
}
.section-line {
    display: none;
}
.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-headline-lg);
    font-weight: 700;
    line-height: var(--lh-headline-lg);
    color: var(--on-surface);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
    text-align: right;
}
.section-eyebrow {
    display: block;
    text-align: right;
    color: var(--secondary);
    font-size: var(--fs-label-md);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    margin-bottom: -48px;
    margin-top: 48px;
    text-transform: uppercase;
}

/* Product carousel */
.product-carousel-wrap {
    position: relative;
    margin-bottom: 16px;
}
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 4px 16px;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: border-color 0.35s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--on-primary);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}
.carousel-prev { right: -12px; }
.carousel-next { left: -12px; }

/* Woodmart-style product hover */
.product-card.wd-hover .product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 2;
}
.product-card.wd-hover:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.action-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    padding: 0;
}
.action-btn:hover { transform: scale(1.08); background: var(--primary-container); }
.action-btn:active { transform: scale(0.96); }
.action-btn img { width: 20px; height: 20px; object-fit: contain; }
.action-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Artist showcase */
.artist-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.artist-showcase-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: border-color 0.3s;
}
.artist-showcase-card:hover { border-color: var(--gold-border); }
.artist-showcase-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}
.artist-showcase-info h3 { font-size: 0.95rem; margin-bottom: 4px; display: inline; }
.artist-showcase-info span { font-size: 0.8rem; color: var(--on-surface-variant); display: block; }
.verified-icon { display: inline; vertical-align: middle; margin-inline-end: 4px; }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--surface-container-low), var(--primary-fixed));
    border: 1px solid rgba(28, 57, 187, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 48px 0;
    box-shadow: var(--shadow-md);
}
.cta-banner h2 { color: var(--gold); font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { color: var(--on-surface-variant); margin-bottom: 24px; }

/* Utility icons */
.utility-actions img, .utility-actions .icon { width: 18px; height: 18px; opacity: 0.8; }
.utility-actions a:hover img { opacity: 1; }

/* Category grid (other pages) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
    margin-bottom: 40px;
}
.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}
.category-card:hover { transform: scale(1.02); }
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47, 48, 56, 0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
}
.category-card .cat-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.category-card .cat-desc {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    margin-top: auto;
    padding-bottom: 8px;
    line-height: 1.4;
}
.category-card.tall { grid-row: span 2; }
.category-card.wide { grid-column: span 2; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}

/* Catalog filters — RTL dark panel */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
}
.catalog-filters {
    background: var(--surface-container-lowest);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: 88px;
    box-shadow: var(--shadow-sm);
}
.catalog-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--outline-variant);
}
.catalog-filters-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--gold-light);
}
.catalog-filters-reset {
    font-size: 0.85rem;
    color: var(--outline);
    text-decoration: none;
}
.catalog-filters-reset:hover { color: var(--gold); }
.catalog-filter-group {
    margin-bottom: 14px;
}
.catalog-filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}
.catalog-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.catalog-filters .form-control {
    background-color: var(--surface-container-low);
    border-color: var(--outline-variant);
    color: var(--on-surface);
}
.catalog-filters select.form-control,
.catalog-filters select {
    color: var(--on-surface);
    background-color: var(--surface-container-low);
}
.catalog-filters select option,
.catalog-filters select optgroup {
    color: var(--on-surface);
    background-color: var(--surface-container-lowest);
}
.catalog-filters-submit {
    width: 100%;
    margin-top: 8px;
}
.catalog-main .filter-bar { justify-content: flex-start; }

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-filters {
        position: static;
    }
}

.page-desc {
    text-align: center;
    color: var(--on-surface-variant);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.35s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}
.product-card:hover {
    border-color: rgba(28, 57, 187, 0.15);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-card .img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--surface-container);
}
.product-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(47, 48, 56, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}
.product-stock-badge.out { background: rgba(180, 40, 40, 0.9); }
.product-stock-badge.preorder { background: rgba(120, 90, 40, 0.9); }
.notif-badge {
    position: absolute;
    top: -4px;
    left: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: 0.65rem;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover img { transform: scale(1.05); }
.product-card .info {
    padding: 16px;
}
.product-card .artist-name {
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.25s ease;
}
.product-card:hover h3 { color: var(--gold-light); }
.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}
.product-card .category-tag {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--gold);
    background: rgba(28, 57, 187, 0.1);
    border: 1px solid rgba(28, 57, 187, 0.18);
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Buttons — keep design-kit Stitch shapes; local spacing tweaks */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-label);
    font-size: var(--fs-label-md);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    min-height: 44px;
}
.btn-gold {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}
.btn-gold:hover {
    background: var(--primary-container);
    color: var(--on-primary);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
}
.btn-outline:hover {
    background: rgba(159, 64, 45, 0.05);
    color: var(--secondary);
}
.view-all {
    text-align: center;
    margin: 20px 0 40px;
}

/* Footer */
.site-footer {
    background: var(--surface-container-lowest);
    border-top: 1px solid rgba(197, 197, 214, 0.35);
    padding: 64px 0 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-col {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
}
.footer-col.footer-brand {
    border-color: transparent;
}
.footer-logo {
    width: 64px;
    height: auto;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}
.footer-col h4 {
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
}
.footer-col p {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li:last-child {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    flex-shrink: 0;
}
.social-links a:hover {
    background: var(--primary-container);
    border-color: var(--primary-container);
}
.social-links a img {
    width: 20px;
    height: 20px;
    display: block;
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--outline);
    font-size: 0.85rem;
}

/* Cart page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.cart-table th, .cart-table td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid var(--outline-variant);
}
.cart-table th { color: var(--gold); }
.cart-total {
    text-align: end;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 20px 0;
}
.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.cart-actions .btn,
.cart-actions form {
    margin: 0;
}
.cart-actions form .btn {
    width: 100%;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--on-surface-variant);
}
.empty-state h2 { margin-bottom: 12px; color: var(--on-surface); }

/* Product detail — Stitch gallery presentation */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}
.product-detail .gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail .main-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(28, 57, 187, 0.2);
    background: var(--surface-container);
    box-shadow: var(--shadow-lg);
}
.product-detail .main-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-container);
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-thumb.active,
.product-thumb:hover {
    border-color: var(--gold);
}
.product-detail .product-media {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--surface-container-low);
    border: 1px solid var(--gold-border);
}
.product-detail .product-media-video video {
    display: block;
    width: 100%;
    max-height: 360px;
    border-radius: var(--radius-sm);
    background: var(--surface-container-high);
}
.product-detail .product-media-audio audio {
    display: block;
    width: 100%;
    direction: ltr;
}
.product-detail .detail-info h1 {
    font-family: var(--font-display);
    font-size: var(--fs-headline-lg);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--on-surface);
}
.product-detail .detail-price {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    margin: 16px 0;
}
.product-detail .detail-desc {
    color: var(--on-surface-variant);
    margin: 16px 0;
    line-height: 1.8;
}

/* Alert / toast */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    background: var(--primary-fixed);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
}
.alert-success {
    background: rgba(131, 251, 165, 0.25);
    border-color: var(--tertiary-fixed-dim);
    color: var(--on-tertiary-fixed-variant);
}
.alert-error {
    background: var(--error-container);
    border-color: var(--error);
    color: var(--on-error-container);
}
.alert-info {
    background: var(--primary-fixed);
    border-color: var(--primary-fixed-dim);
    color: var(--on-primary-fixed);
}
.flash-messages .toast-flash {
    animation: flash-in 0.35s ease;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--outline);
}
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-current { color: var(--on-surface-variant); }
.breadcrumb-sep { margin: 0 2px; opacity: 0.7; }

/* Error pages */
.error-page .error-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}
.error-page .error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.error-request-id {
    font-size: 0.85rem;
    color: var(--outline);
    margin-top: 12px;
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--on-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: var(--shadow-md);
}
.scroll-top.visible { display: flex; }

/* ===== Reviews & ratings ===== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--gold);
    line-height: 1;
}
.star-rating .star-empty { color: var(--outline-variant); }
.star-rating .star-half { opacity: 0.55; }
.star-rating-sm { font-size: 0.95rem; }
.star-rating-md { font-size: 1.15rem; }
.star-rating .star-value {
    margin-inline-start: 6px;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
}
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
}
.review-count { color: var(--on-surface-variant); font-size: 0.85rem; }
.review-count.muted, .muted { color: var(--outline); }
.artist-rating-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.artist-rating-badge.muted .artist-rating-label { color: var(--outline); }
.artist-rating-label {
    color: var(--on-surface-variant);
    font-size: 0.85rem;
}
.artist-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
}

.reviews-section { margin: 48px 0 24px; }
.reviews-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}
.review-card:hover { border-color: var(--gold-border); }
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.review-author { color: var(--text); }
.review-date { color: var(--outline); font-size: 0.8rem; white-space: nowrap; }
.review-title {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin: 8px 0 4px;
}
.review-comment {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 6px 0 0;
    white-space: pre-wrap;
}
.badge-verified {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--primary-fixed);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
    margin-inline-start: 6px;
}
.review-form-wrap {
    background: var(--bg-card);
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 22px;
    position: sticky;
    top: 88px;
}
.review-form-wrap h3 {
    color: var(--gold);
    margin: 0 0 16px;
    font-size: 1.1rem;
}
.review-form .form-label { margin-top: 12px; }
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin: 4px 0 8px;
}
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label {
    font-size: 1.6rem;
    color: var(--outline-variant);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--gold);
}
.star-input label:hover { transform: scale(1.08); }

@media (max-width: 899px) {
    .reviews-layout { grid-template-columns: 1fr; }
    .review-form-wrap { position: static; }
}

@media (max-width: 768px) {
    .reviews-layout { grid-template-columns: 1fr; }
    .review-form-wrap { position: static; }
}

/* Responsive — storefront */
@media (max-width: 1024px) {
    .home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 12px;
    }
    .home-cat-card,
    .home-cat-card.cat-tall,
    .home-cat-card.cat-tall-right,
    .home-cat-card.cat-wide,
    .home-cat-card.cat-normal {
        grid-row: auto !important;
        grid-column: auto !important;
        aspect-ratio: 4 / 3;
        min-height: 0;
        height: auto;
    }
    .home-cat-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .category-card.tall, .category-card.wide {
        grid-row: auto;
        grid-column: auto;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .utility-bar { padding: 6px 0; font-size: 0.8rem; }
    .utility-bar .container { justify-content: flex-end; }
    .utility-slogan { display: none; }
    .utility-actions {
        gap: 4px;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .utility-actions::-webkit-scrollbar { display: none; }
    .utility-link {
        padding: 4px 8px;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }
    .utility-label:not(.utility-label-cart) { display: none; }
    .utility-label-cart {
        font-size: 0.75rem;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .utility-user-name {
        display: none;
    }
    .utility-logout {
        padding: 4px 10px;
        border: 1px solid var(--outline-variant);
        border-radius: 999px;
        font-size: 0.75rem;
    }

    .site-header { padding: 10px 0; }
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
        border-radius: var(--radius-md);
    }
    .logo { min-width: 48px; }
    .logo-icon { width: 44px; }
    .search-form {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
    .search-form input {
        padding: 10px 14px;
        font-size: 16px; /* prevent iOS zoom */
    }
    .search-form button { padding: 10px 14px; }

    .container { padding: 0 14px; }
    .home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 32px;
        margin-top: 4px;
    }
    .home-cat-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        border-radius: var(--radius-lg);
    }
    .home-cat-card:hover {
        transform: none;
        box-shadow: none;
    }
    .home-cat-overlay { padding: 12px; }
    .home-cat-name { font-size: 1rem; }
    .home-cat-desc {
        font-size: 0.65rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-slider {
        width: calc(100% - 24px);
        max-width: 100%;
        height: 220px;
        margin: 12px auto 16px;
        border-radius: 18px;
        overflow: hidden;
        box-sizing: border-box;
    }
    .section-header { margin: 32px 0 20px; gap: 10px; }
    .section-title { font-size: 1.2rem; }
    .section-line { width: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 14px; }
    .footer-col { padding: 18px; }
    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .hero-content { padding: 20px; }
    .hero-content h1 { font-size: 1.25rem; }
    .carousel-btn { display: none; }
    .product-carousel .product-card { flex: 0 0 200px; }
    .cta-banner { padding: 28px 16px; margin: 32px 0; border-radius: 18px; }
    .cta-banner h2 { font-size: 1.25rem; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card.wd-hover:not(.mp-card) .product-actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        bottom: 8px;
    }
    .product-card.mp-card.wd-hover .product-actions {
        opacity: 1;
        transform: none;
        bottom: auto;
        top: 10px;
        left: auto;
        inset-inline-end: 10px;
    }
    .artist-showcase { grid-template-columns: 1fr; gap: 12px; }

    .cart-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }
    .cart-table th,
    .cart-table td { padding: 8px; }
    .cart-total { font-size: 1.1rem; }
    .page-content { padding: 20px 14px; }

    .btn {
        min-height: 44px;
        padding: 10px 18px;
    }
}

@media (max-width: 430px) {
    .product-carousel .product-card { flex: 0 0 180px; }
    .hero-slider {
        height: 200px;
        width: calc(100% - 20px);
        margin: 10px auto 14px;
        border-radius: var(--radius-lg);
    }
    .home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .home-cat-card { border-radius: 14px; }
    .home-cat-desc { display: none; }
    .utility-label-cart { max-width: 96px; }
}

@media (max-width: 390px) {
    .header-inner { padding: 8px 10px; }
    .home-cat-name { font-size: 0.92rem; }
}

@media (max-width: 375px) {
    .product-grid { grid-template-columns: 1fr; }
    .home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .category-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.1rem; }
    .hero-slider { height: 180px; }
    .product-carousel .product-card { flex: 0 0 160px; }
    .mobile-drawer { width: min(300px, 92vw); }
    .cart-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-drawer,
    .nav-overlay,
    .menu-toggle-bars span,
    .hero-slide {
        transition: none !important;
    }
}

/* Wishlist heart */
.wishlist-btn { color: var(--on-primary); }
.wishlist-btn.is-active { background: #e74c3c; color: #fff; }
.wishlist-btn svg { display: block; }
.wishlist-detail-btn.is-active { border-color: #e74c3c; color: #e74c3c; }
.product-card-wrap { position: relative; }

/* ===== Stitch Heritage Modernism — home additions ===== */
.stitch-hero .hero-content {
    justify-content: flex-start;
    text-align: right;
    padding: clamp(24px, 6vw, 64px);
    max-width: var(--container-max);
    margin: 0 auto;
    left: 0;
    right: 0;
}
.hero-copy {
    max-width: 640px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-full);
    background: rgba(159, 64, 45, 0.1);
    color: var(--secondary);
    font-size: var(--fs-label-md);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    backdrop-filter: blur(12px);
}
.hero-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    animation: stitch-pulse 1.6s ease-in-out infinite;
}
@keyframes stitch-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.section-sub {
    color: var(--on-surface-variant);
    font-size: var(--fs-body-md);
    margin: 6px 0 0;
    line-height: 1.6;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: var(--fs-label-md);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    white-space: nowrap;
    transition: color 0.25s;
}
.section-link:hover { color: var(--secondary); }
.art-card-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.art-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.logo {
    flex-direction: row;
    gap: 10px;
}
.logo-brand-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .logo-brand-text { display: none; }
    .stitch-hero .hero-content {
        align-items: flex-end;
        padding-bottom: 48px;
    }
    .hero-actions .btn { flex: 1 1 auto; }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-slider {
        height: min(72vh, 480px);
        min-height: 320px;
        width: 100%;
        margin: 0 0 20px;
        border-radius: 0;
    }
}

/* =============================================================================
   Content Box Slots — جعبه‌های محتوا
   Matches Heritage Modernism light palette (Persian Blue / Terracotta / cream)
   ============================================================================= */

.cb-slot {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
}

/* Base card */
.cb-card {
    flex: 1 1 280px;
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: box-shadow var(--transition), border-color var(--transition);
    position: relative;
}
.cb-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(28, 57, 187, 0.25);
}

/* Type accents via left/right border strip */
.cb-card--ad   { border-right: 4px solid var(--accent-terracotta); }
.cb-card--news { border-right: 4px solid var(--primary-container); }
.cb-card--birthday { border-right: 4px solid var(--accent-gold); }
.cb-card--announcement { border-right: 4px solid var(--primary); }

/* Card image thumbnail */
.cb-card-img {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}
.cb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card body */
.cb-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex: 1;
}
.cb-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.cb-card-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}
.cb-card-content {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
}
.cb-card-content p { margin: 0; }
.cb-card-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-container);
    text-decoration: none;
    transition: color var(--transition);
}
.cb-card-link:hover { color: var(--primary); text-decoration: underline; }

/* Image-only card — desktop + mobile sources via <picture> */
.cb-card--image {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
}
.cb-responsive-picture {
    display: block;
    width: 100%;
}
.cb-responsive-picture img,
.cb-card--image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}
@media (min-width: 768px) {
    .cb-responsive-picture img,
    .cb-card--image img {
        aspect-ratio: 21 / 9;
    }
}
.cb-card-img .cb-responsive-picture,
.cb-card-img .cb-responsive-picture img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}
.cb-image-link { display: block; width: 100%; }
.cb-image-caption {
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--on-surface-variant);
    text-align: center;
}

/* HTML card */
.cb-card--html {
    padding: 20px 24px;
    flex-direction: column;
    color: var(--on-surface);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Above-footer strip: full-width single row */
.cb-slot--above-footer {
    padding: 0;
    gap: 0;
}
.cb-slot--above-footer .cb-card {
    flex: 1 1 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--outline-variant);
    border-bottom: none;
    padding: 16px var(--margin-mobile);
    background: var(--surface-container-low);
}
@media (min-width: 1024px) {
    .cb-slot--above-footer .cb-card { padding: 16px var(--margin-desktop); }
}

/* Products banner slot: horizontal full-width */
.cb-slot--products-banner { padding: 0 0 24px; }
.cb-slot--products-banner .cb-card {
    flex: 1 1 100%;
    min-height: 80px;
    background: linear-gradient(135deg, var(--surface-container-low) 0%, var(--primary-fixed) 100%);
    border-color: var(--primary-fixed-dim);
}

@media (max-width: 640px) {
    .cb-card { flex-direction: column; }
    .cb-card-img { width: 100%; height: 140px; }
    .cb-card-img img { height: 100%; }
}

/* =============================================================================
   Artist ad slots — تبلیغات هنرمندان
   ============================================================================= */

.artist-ad-slot {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px var(--margin-mobile, 16px) 20px;
}

.artist-ad-link {
    display: block;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    border: 1px solid var(--outline-variant, #ddd5b8);
    background: var(--surface-container-lowest, #fff);
    transition: box-shadow var(--transition, 0.2s ease), border-color var(--transition, 0.2s ease);
}

.artist-ad-link:hover {
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.08));
    border-color: rgba(28, 57, 187, 0.28);
}

.artist-ad-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    aspect-ratio: 1200 / 320;
}

.artist-ad-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--on-surface-variant, #5c4f36);
}

.artist-ad-label {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent-terracotta, #c45c26);
}

.artist-ad-artist { font-weight: 600; color: var(--on-surface, #1a1208); }
.artist-ad-title { opacity: 0.85; }

@media (min-width: 1024px) {
    .artist-ad-slot { padding-left: var(--margin-desktop, 48px); padding-right: var(--margin-desktop, 48px); }
    .artist-ad-img { max-height: 320px; }
}
