/* KromeWeb — Field theme (Rentexa-inspired industrial).
   Construction-site signage meets Off-White lookbook. Archivo Black
   headlines, JetBrains Mono telemetry-style data, slanted clip-path
   dividers, near-black panels with electric-violet stripes, live-status
   indicator in the utility strap.

   Anti-Lens in temperament: zero serifs, hard 2px borders, dashed rules,
   slanted edges instead of rounded corners, monospaced tabular prices.

   Scoped under `.theme-field`. */

.theme-field {
    /* Brand tokens. */
    --field-ink: #0A0A0A;
    --field-purple: #3D1B7A;
    --field-purple-deep: #2A1056;
    --field-violet: #7B5FBA;
    --field-paper: #F2F0EC;
    --field-paper-deep: #1A1A1A;
    --field-stripe: #DBC8FA;
    --field-live: #4ADE80;

    /* Override shared --kw-* tokens. */
    --kw-dark: #0A0A0A;
    --kw-light: #F2F0EC;
    --kw-accent: #3D1B7A;
    --kw-accent-deep: #2A1056;
    --kw-accent-soft: #7B5FBA;
    --kw-text: #0A0A0A;
    --kw-text-muted: #4A4A4A;
    --kw-border-strong: #0A0A0A;
    --kw-border: rgba(10, 10, 10, 0.15);
    --kw-font: 'Archivo', system-ui, -apple-system, sans-serif;
    --kw-max-width: 1320px;
}

.theme-field,
.theme-field body {
    font-family: 'Archivo', system-ui, sans-serif;
    background: var(--field-paper, #F2F0EC);
    color: var(--field-ink, #0A0A0A);
}
.theme-field h1, .theme-field h2, .theme-field h3,
.theme-field h4, .theme-field h5, .theme-field h6 {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-weight: 900;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    line-height: 0.98;
}
.theme-field h1 { letter-spacing: -0.03em; }

/* ── Shared primitive overrides ─────────────────────────────────── */
.theme-field .fk-btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.8125rem;
    padding: 1rem 1.75rem;
    border: 2px solid var(--field-ink, #0A0A0A);
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.theme-field .fk-btn-accent {
    background: var(--field-purple, #3D1B7A);
    color: #fff;
    border-color: var(--field-purple, #3D1B7A);
    /* Slanted right edge — industrial signage. */
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 2rem;
}
.theme-field .fk-btn-accent:hover {
    background: var(--field-violet, #7B5FBA);
    border-color: var(--field-violet, #7B5FBA);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--field-ink, #0A0A0A);
}
.theme-field .fk-btn-dark {
    background: var(--field-ink, #0A0A0A);
    color: #fff;
}
.theme-field .fk-btn-dark:hover {
    background: var(--field-purple, #3D1B7A);
    color: #fff;
}
.theme-field .fk-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.theme-field .fk-btn-outline:hover {
    background: #fff;
    color: var(--field-ink, #0A0A0A);
}

/* Section eyebrow — monospace tag with numeric prefix.
   The "POPULAR RIGHT NOW" eyebrow becomes "// 01 — POPULAR RIGHT NOW". */
.theme-field .fk-section-title {
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--field-purple, #3D1B7A);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--field-ink, #0A0A0A);
    margin-bottom: 2rem;
    width: fit-content;
}
.theme-field .fk-section-title::before {
    content: "// ";
    color: var(--field-violet, #7B5FBA);
}
.theme-field .fk-section-title-light {
    color: var(--field-stripe, #DBC8FA);
    border-bottom-color: var(--field-violet, #7B5FBA);
}

.theme-field .fk-section { padding: 4.5rem 0; }
.theme-field .fk-section-dark {
    background: var(--field-ink, #0A0A0A);
    color: #fff;
}
.theme-field .fk-section-dark h2,
.theme-field .fk-section-dark h3,
.theme-field .fk-section-dark p { color: #fff; }

/* ── Products grid — tighter rows, more contrast ────────────────── */
.theme-field .fk-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ── Hero — dark slab + violet stripe + Archivo Black headline ──── */
.theme-field .kw-block-hero-banner,
.theme-field .fk-hero {
    position: relative;
    min-height: 78vh;
    background: var(--field-ink, #0A0A0A);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex; align-items: center;
}
.theme-field .fk-hero::before {
    /* Electric violet stripe down the left edge — the signature mark. */
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 12px;
    background: var(--field-violet, #7B5FBA);
    z-index: 2;
}
.theme-field .fk-hero::after {
    /* Diagonal stripe overlay at very low alpha — construction tape texture. */
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(123, 95, 186, 0.07) 0 14px,
        transparent 14px 40px
    );
    pointer-events: none;
}
.theme-field .fk-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(95deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.55) 60%,
        rgba(10, 10, 10, 0.3) 100%);
}
.theme-field .fk-hero-content {
    position: relative; z-index: 3;
    max-width: var(--kw-max-width); margin: 0 auto;
    padding: 5rem 2rem 5rem 3.5rem;
    color: #fff;
    width: 100%;
}
.theme-field .fk-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6.5vw, 6rem);
    line-height: 0.92;
    max-width: 14ch;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.theme-field .fk-hero h1 .stripe {
    color: var(--field-violet, #7B5FBA);
}
.theme-field .fk-hero-subtitle {
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--field-stripe, #DBC8FA);
    max-width: 56ch;
    margin-bottom: 2.5rem;
    line-height: 1.65;
    text-transform: uppercase;
}

/* ── Collections (category grid) ────────────────────────────────── */
.theme-field .fk-collections-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
}
.theme-field .fk-collection-card {
    background: #fff;
    border: 2px solid var(--field-ink, #0A0A0A);
    aspect-ratio: 4 / 3;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}
.theme-field .fk-collection-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 0 var(--field-violet, #7B5FBA);
}
.theme-field .fk-collection-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.05) 50%,
        transparent 100%);
}
.theme-field .fk-collection-name {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Testimonials — utility-card style ──────────────────────────── */
.theme-field .fk-testimonials {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.theme-field .fk-testimonial {
    background: #fff;
    border: 2px solid var(--field-ink, #0A0A0A);
    padding: 1.5rem;
    position: relative;
}
.theme-field .fk-testimonial::before {
    /* Top-left corner notch — printed certificate cue. */
    content: "";
    position: absolute;
    top: -2px; left: -2px;
    width: 24px; height: 24px;
    background: var(--field-violet, #7B5FBA);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.theme-field .fk-testimonial p {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--field-ink, #0A0A0A);
    margin-bottom: 0.875rem;
}
.theme-field .fk-testimonial footer {
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--field-purple, #3D1B7A);
    font-style: normal;
}

/* ── CTA banner ─────────────────────────────────────────────────── */
.theme-field .fk-cta {
    background: var(--field-ink, #0A0A0A);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}
.theme-field .fk-cta::before,
.theme-field .fk-cta::after {
    /* Slanted divider strips above and below the section — industrial signage. */
    content: "";
    position: absolute; left: 0; right: 0;
    height: 10px;
    background:
        repeating-linear-gradient(
            45deg,
            var(--field-violet, #7B5FBA) 0 12px,
            var(--field-ink, #0A0A0A) 12px 24px);
}
.theme-field .fk-cta::before { top: 0; }
.theme-field .fk-cta::after { bottom: 0; }
.theme-field .fk-cta h2 { color: #fff; }
.theme-field .fk-cta-buttons {
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2rem;
}

/* ── Article pages ──────────────────────────────────────────────── */
.kw-site.theme-field:has(.kw-page--article) .field-header {
    box-shadow: 0 2px 0 0 var(--field-ink, #0A0A0A);
}
.theme-field .kw-page--article {
    background: var(--field-paper, #F2F0EC);
    --kw-font-display: 'Archivo Black', 'Archivo', sans-serif;
}
.theme-field .kw-article .kw-block-heading {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}
.theme-field .kw-article h1.kw-block-heading::after {
    background: var(--field-violet, #7B5FBA);
    width: 5rem; height: 4px;
}
.theme-field .kw-article .kw-heading-eyebrow {
    color: var(--field-purple, #3D1B7A);
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
}
.theme-field .kw-article .kw-block-richtext h2,
.theme-field .kw-article .kw-block-richtext h3 {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.theme-field .kw-article .kw-block-richtext ul > li::before {
    background: var(--field-violet, #7B5FBA);
    width: 8px; height: 8px;
    transform: none;
    border-radius: 0;
}

/* ── Forms — boxed with mono labels ─────────────────────────────── */
.theme-field input[type="text"],
.theme-field input[type="email"],
.theme-field input[type="tel"],
.theme-field input[type="date"],
.theme-field textarea,
.theme-field select {
    border: 2px solid var(--field-ink, #0A0A0A);
    border-radius: 0;
    padding: 0.875rem 1rem;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 0.9375rem;
    background: #fff;
    color: var(--field-ink, #0A0A0A);
    transition: border-color 0.18s ease;
    width: 100%;
}
.theme-field input:focus,
.theme-field textarea:focus,
.theme-field select:focus {
    border-color: var(--field-violet, #7B5FBA);
    outline: none;
    box-shadow: 4px 4px 0 0 var(--field-violet, #7B5FBA);
}
.theme-field label {
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--field-purple, #3D1B7A);
    display: block;
    margin-bottom: 0.5rem;
}
.theme-field label::before {
    content: "▸ ";
    color: var(--field-violet, #7B5FBA);
}

/* ── Cart + Checkout chrome ─────────────────────────────────────── */
.theme-field .cart-page,
.theme-field .checkout-page {
    background: var(--field-paper, #F2F0EC);
    padding: 4rem 0;
}
.theme-field .cart-item {
    background: #fff;
    border: 2px solid var(--field-ink, #0A0A0A);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}
.theme-field .cart-summary,
.theme-field .checkout-summary {
    background: var(--field-ink, #0A0A0A);
    color: #fff;
    padding: 2rem;
}
.theme-field .cart-total,
.theme-field .checkout-total {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-weight: 900;
    color: var(--field-violet, #7B5FBA);
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

/* ── Product detail ─────────────────────────────────────────────── */
.theme-field .kw-block-product-detail .product-price {
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    font-weight: 700;
    color: var(--field-ink, #0A0A0A);
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.theme-field .kw-block-product-detail .product-spec-row {
    border-bottom: 1px dashed var(--field-ink, #0A0A0A);
    padding: 0.75rem 0;
    font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.875rem;
    display: flex; justify-content: space-between;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .theme-field .fk-section { padding: 3rem 0; }
    .theme-field .fk-hero-content { padding: 3.5rem 1.25rem 3.5rem 2rem; }
    .theme-field .fk-cta { padding: 3.5rem 1.25rem; }
    .theme-field .fk-cta::before, .theme-field .fk-cta::after { height: 6px; }
}
