/* KromeWeb — Studio theme (Antek-inspired marketplace).
   Modern retail confidence: density without clutter, deep brand purple in
   deliberate slabs (not gradients), magenta as sole sale signal. Pairs
   Outfit (display) + DM Sans (body), tabular-nums on prices.

   Scoped under `.theme-studio` — applies only when ThemeResolver emits
   that class on `.kw-site`. Shared `.fk-*` primitives in web-base.css
   are NOT overridden globally; per-theme tweaks land under `.theme-studio`. */

.theme-studio {
    /* Brand tokens — opt out of the timid pastel default. */
    --studio-purple: #3D1B7A;
    --studio-purple-deep: #2A1056;
    --studio-purple-soft: #EFEAF5;
    --studio-magenta: #DB1471;
    --studio-ink: #1A1A1A;
    --studio-paper: #FFFFFF;
    --studio-paper-warm: #FAF8F4;
    --studio-border: #E5E1EC;
    --studio-success: #1F8A3E;

    /* Override shared --kw-* tokens for this theme. */
    --kw-dark: #1A1A1A;
    --kw-light: #FFFFFF;
    --kw-accent: #3D1B7A;
    --kw-accent-deep: #2A1056;
    --kw-accent-soft: #7B5FBA;
    --kw-text: #1A1A1A;
    --kw-text-muted: #6E6873;
    --kw-border-strong: #E5E1EC;
    --kw-border: rgba(26, 26, 26, 0.08);
    --kw-font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --kw-max-width: 1320px;
}

/* Body type uses DM Sans; headings switch to Outfit. */
.theme-studio body,
.theme-studio { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; }
.theme-studio h1, .theme-studio h2, .theme-studio h3,
.theme-studio h4, .theme-studio h5, .theme-studio h6 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* ── Shared primitive overrides (under .theme-studio scope) ─────── */
.theme-studio .fk-btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    padding: 1rem 1.75rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.theme-studio .fk-btn-accent {
    background: var(--studio-purple, #3D1B7A);
    color: #fff;
}
.theme-studio .fk-btn-accent:hover {
    background: var(--studio-purple-deep, #2A1056);
    color: #fff;
    transform: translateY(-1px);
}
.theme-studio .fk-btn-dark {
    background: var(--studio-ink, #1A1A1A);
    color: #fff;
}
.theme-studio .fk-btn-dark:hover {
    background: var(--studio-magenta, #DB1471);
    color: #fff;
}
.theme-studio .fk-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.theme-studio .fk-btn-outline:hover {
    background: #fff;
    color: var(--studio-purple-deep, #2A1056);
}

/* Section eyebrow ("FEATURED" / "SHOP BY CATEGORY") — retail confidence. */
.theme-studio .fk-section-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--studio-purple, #3D1B7A);
    margin-bottom: 1rem;
}
.theme-studio .fk-section-title::before {
    content: "";
    display: inline-block;
    width: 24px; height: 2px;
    background: var(--studio-magenta, #DB1471);
    vertical-align: middle;
    margin-right: 0.75rem;
}

.theme-studio .fk-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* ── Hero block ─────────────────────────────────────────────────── */
.theme-studio .kw-block-hero-banner,
.theme-studio .fk-hero {
    position: relative;
    min-height: 540px;
    background: var(--studio-purple-deep, #2A1056);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex; align-items: center;
}
.theme-studio .fk-hero::before {
    /* Solid color slab with a subtle diagonal pinstripe at 4% — texture
       without sliding into the gradient-on-white trap. */
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.035) 0 1px,
            transparent 1px 14px);
    pointer-events: none;
}
.theme-studio .fk-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(95deg,
        rgba(42, 16, 86, 0.92) 0%,
        rgba(42, 16, 86, 0.65) 55%,
        rgba(42, 16, 86, 0.35) 100%);
}
.theme-studio .fk-hero-content {
    position: relative; z-index: 1;
    max-width: var(--kw-max-width); margin: 0 auto;
    padding: 5rem 2rem;
    color: #fff;
    width: 100%;
}
.theme-studio .fk-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5.2vw, 4.5rem);
    margin-bottom: 1.25rem;
    max-width: 18ch;
}
.theme-studio .fk-hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 2.5rem;
    max-width: 52ch;
    line-height: 1.6;
}

/* ── Category grid ──────────────────────────────────────────────── */
.theme-studio .fk-collections-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
}
.theme-studio .fk-collection-card {
    background: var(--studio-purple-soft, #EFEAF5);
    border: 1px solid var(--studio-border, #E5E1EC);
    aspect-ratio: 4 / 3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.theme-studio .fk-collection-card:hover {
    transform: translateY(-3px);
    border-color: var(--studio-purple, #3D1B7A);
    box-shadow: 0 12px 24px -16px rgba(61, 27, 122, 0.4);
}
.theme-studio .fk-collection-name {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--studio-purple-deep, #2A1056);
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 700;
}

/* ── Featured products / news grid section spacing ──────────────── */
.theme-studio .fk-section { padding: 4rem 0; }
.theme-studio .fk-section-dark {
    background: var(--studio-ink, #1A1A1A);
    color: #fff;
}
.theme-studio .fk-section-dark h2,
.theme-studio .fk-section-dark h3 { color: #fff; }
.theme-studio .fk-section-dark .fk-section-title {
    color: var(--studio-magenta, #DB1471);
}

/* ── Testimonials ───────────────────────────────────────────────── */
.theme-studio .fk-testimonials {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.theme-studio .fk-testimonial {
    background: #fff;
    border: 1px solid var(--studio-border, #E5E1EC);
    border-left: 4px solid var(--studio-magenta, #DB1471);
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}
.theme-studio .fk-testimonial p {
    color: var(--studio-ink, #1A1A1A);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.theme-studio .fk-testimonial footer {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.75rem;
    color: var(--studio-purple, #3D1B7A);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── CTA banner (cta-banner block) ──────────────────────────────── */
.theme-studio .fk-cta {
    background: var(--studio-purple, #3D1B7A);
    color: #fff;
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.theme-studio .fk-cta::before {
    /* Repeating purple pinstripe over the solid slab. */
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            transparent 1px 18px);
    pointer-events: none;
}
.theme-studio .fk-cta h2 { color: #fff; }
.theme-studio .fk-cta-buttons {
    position: relative; z-index: 1;
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}

/* ── Article-page header lock — keep header opaque against white. */
.kw-site.theme-studio:has(.kw-page--article) .studio-header {
    box-shadow: 0 1px 0 0 var(--studio-border, #E5E1EC);
}
.theme-studio .kw-page--article .kw-heading-eyebrow { color: var(--studio-magenta, #DB1471); }
.theme-studio .kw-page--article h1.kw-block-heading::after {
    background: var(--studio-purple, #3D1B7A);
    width: 4rem; height: 3px;
}

/* ── Forms (contact / checkout) ─────────────────────────────────── */
.theme-studio input[type="text"],
.theme-studio input[type="email"],
.theme-studio input[type="tel"],
.theme-studio input[type="date"],
.theme-studio textarea,
.theme-studio select {
    border: 2px solid var(--studio-border, #E5E1EC);
    border-radius: 0;
    padding: 0.75rem 0.875rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9375rem;
    background: #fff;
    color: var(--studio-ink, #1A1A1A);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}
.theme-studio input:focus,
.theme-studio textarea:focus,
.theme-studio select:focus {
    border-color: var(--studio-purple, #3D1B7A);
    box-shadow: 4px 4px 0 0 var(--studio-purple, #3D1B7A);
    outline: none;
}

/* ── Cart + Checkout page chrome ────────────────────────────────── */
.theme-studio .cart-page,
.theme-studio .checkout-page {
    background: var(--studio-paper-warm, #FAF8F4);
    padding: 3rem 0;
}
.theme-studio .cart-summary,
.theme-studio .checkout-summary {
    background: #fff;
    border: 1px solid var(--studio-border, #E5E1EC);
    padding: 1.5rem;
}
.theme-studio .cart-item {
    border-bottom: 1px solid var(--studio-border, #E5E1EC);
    padding: 1rem 0;
}
.theme-studio .cart-total,
.theme-studio .checkout-total {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    color: var(--studio-purple-deep, #2A1056);
    font-variant-numeric: tabular-nums;
}

/* ── Product detail page accents ────────────────────────────────── */
.theme-studio .kw-block-product-detail .product-price {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    color: var(--studio-purple-deep, #2A1056);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.theme-studio .kw-block-product-detail .product-spec-row {
    border-bottom: 1px solid var(--studio-border, #E5E1EC);
    padding: 0.625rem 0;
}

/* ── Responsive — studio-specific patterns ──────────────────────── */
@media (max-width: 900px) {
    .theme-studio .fk-section { padding: 2.5rem 0; }
    .theme-studio .fk-hero-content { padding: 3.5rem 1.25rem; }
    .theme-studio .fk-cta { padding: 3rem 1.25rem; }
}
