:root {
    --bg: #060606;
    --bg-soft: #101010;
    --surface: rgba(18, 18, 18, 0.78);
    --surface-strong: rgba(10, 10, 10, 0.94);
    --surface-light: #f8f8f8;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.28);
    --text: #f5f5f5;
    --text-muted: #bbbbbb;
    --text-dark: #111111;
    --gold: #dcdcdc;
    --gold-strong: #ffffff;
    --success: #4dbb96;
    --danger: #ff8d8d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.2);
    --radius: 24px;
    --radius-sm: 16px;
    --container: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(180deg, #040404 0%, #0d0d0d 48%, #050505 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.2;
    pointer-events: none;
}

body[data-theme="light"] {
    --bg: #f1f1f1;
    --bg-soft: #e6e6e6;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(248, 248, 248, 0.96);
    --surface-light: #ffffff;
    --line: rgba(16, 16, 16, 0.08);
    --line-strong: rgba(16, 16, 16, 0.18);
    --text: #101010;
    --text-muted: #575757;
    --text-dark: #101010;
    --gold: #161616;
    --gold-strong: #000000;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.07);
    background:
        radial-gradient(circle at top left, rgba(0, 0, 0, 0.08), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(0, 0, 0, 0.05), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f3f3f3 48%, #ebebeb 100%);
}

body[data-theme="light"]::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 14px 16px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(213, 176, 107, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

span.field-validation-error,
.validation-summary {
    color: var(--danger);
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.container {
    width: var(--container);
    margin: 0 auto;
    max-width: 100%;
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.26;
    pointer-events: none;
}

.ambient-one {
    width: 280px;
    height: 280px;
    left: -70px;
    top: 120px;
    background: rgba(255, 255, 255, 0.16);
}

.ambient-two {
    width: 320px;
    height: 320px;
    right: -60px;
    top: 30%;
    background: rgba(87, 53, 31, 0.28);
}

.site-main,
.site-footer,
.site-header,
.admin-shell {
    position: relative;
    z-index: 1;
}

.eyebrow,
.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold-strong);
}

.eyebrow::before,
.footer-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.95;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.7rem;
}

p {
    color: var(--text-muted);
    line-height: 1.75;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(18px);
    background: rgba(6, 6, 6, 0.54);
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header--scrolled {
    background: rgba(6, 6, 6, 0.9);
    border-bottom-color: var(--line);
}

.site-header--hidden {
    transform: translateY(-100%);
}

.header-shell,
.footer-grid,
.stats-grid,
.product-grid,
.category-grid,
.catalog-layout,
.checkout-layout,
.cart-layout,
.editorial-grid,
.product-detail-layout,
.admin-grid,
.admin-metrics,
.admin-form__grid,
.form-grid {
    display: grid;
    gap: 24px;
}

.header-shell {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 86px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
}

.brand-mark strong {
    display: block;
    font-size: 1.15rem;
}

.brand-mark small {
    color: var(--text-muted);
    display: block;
}

.brand-mark__crest {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(128, 128, 128, 0.92));
    color: #111111;
    font-weight: 800;
}

.site-nav,
.header-actions,
.hero-slide__actions,
.chip-row,
.product-card__actions,
.cart-item__actions,
.detail-meta,
.success-card__actions,
.panel-heading,
.table-actions,
.form-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.site-nav {
    justify-content: center;
    flex-wrap: wrap;
}

.site-nav a,
.admin-nav a {
    color: var(--text-muted);
    transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.admin-nav a:hover {
    color: var(--text);
}

.cart-pill,
.user-chip,
.filter-chip,
.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.cart-pill strong {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-strong);
}

.solid-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.solid-button {
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
    color: #111111;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(255, 255, 255, 0.14);
}

.solid-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.solid-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.solid-button--full {
    width: 100%;
}

.ghost-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.text-button {
    color: var(--danger);
    padding-inline: 0;
}

.hero-slider {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
}

.hero-slider__track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.03);
    background-size: cover;
    background-position: center;
    transition: opacity 900ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 7, 5, 0.86) 18%, rgba(9, 7, 5, 0.48) 55%, rgba(9, 7, 5, 0.75) 100%),
        linear-gradient(180deg, rgba(9, 7, 5, 0.12) 0%, rgba(9, 7, 5, 0.88) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 170px;
    padding-bottom: 110px;
}

.hero-slide__content p {
    max-width: 620px;
    font-size: 1.08rem;
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 2;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
}

.hero-slider__dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
}

.stats-strip {
    margin-top: -58px;
    padding-bottom: 30px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.editorial-card,
.product-card,
.category-card,
.filter-card,
.summary-card,
.payment-card,
.auth-card,
.auth-hero,
.success-card,
.admin-panel,
.metric-card,
.form-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 30px;
}

.stat-card strong {
    display: block;
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 10px;
}

.marquee-band {
    border-block: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.marquee-track {
    display: flex;
    gap: 44px;
    white-space: nowrap;
    padding: 18px 0;
    min-width: max-content;
    color: var(--gold-strong);
    animation: marquee 22s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-35%);
    }
}

.section-block,
.page-hero {
    padding: 84px 0;
}

.section-block--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
}

.page-hero {
    padding-top: 120px;
    padding-bottom: 44px;
}

.page-hero--compact h1 {
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    margin-top: 14px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.editorial-grid,
.catalog-layout,
.checkout-layout,
.cart-layout,
.product-detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-copy p {
    max-width: 620px;
}

.feature-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    color: var(--text);
}

.editorial-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.editorial-card__panel {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.editorial-card__panel span {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-strong);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
    border-color: var(--line-strong);
}

.product-card__media {
    position: relative;
    aspect-ratio: 0.85;
    overflow: hidden;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.06);
}

.product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 6, 5, 0.82);
    border: 1px solid var(--line);
    color: var(--gold-strong);
    font-size: 0.85rem;
}

.product-card__body {
    padding: 22px;
}

.product-card__brand {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-strong);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
}

.product-card__body p {
    min-height: 84px;
}

.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}

.price-stack {
    display: grid;
    gap: 4px;
}

.price-stack strong {
    font-size: 1.2rem;
    color: var(--text);
}

.price-stack small {
    text-decoration: line-through;
    color: rgba(200, 187, 169, 0.72);
}

.price-stack--large strong {
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.stock-pill.in-stock {
    color: var(--success);
}

.stock-pill.out-stock {
    color: var(--danger);
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
    padding: 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: auto -50px -50px auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.category-card__label {
    font-size: 1.3rem;
    font-family: "Cormorant Garamond", serif;
}

.filter-card,
.summary-card,
.checkout-form,
.auth-card,
.auth-hero,
.admin-panel,
.form-card {
    padding: 24px;
}

.filter-form,
.checkout-form,
.admin-form,
.auth-card {
    display: grid;
    gap: 16px;
}

.catalog-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
}

.filter-chip {
    transition: border-color 180ms ease, background 180ms ease;
}

.filter-chip.is-active {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.chip-row {
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.empty-state,
.narrow-copy {
    max-width: 700px;
}

.product-gallery {
    display: grid;
    gap: 16px;
}

.product-gallery__main {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.product-gallery__main img {
    width: 100%;
    min-height: 620px;
    object-fit: cover;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-gallery__thumbs img {
    border-radius: 18px;
    border: 1px solid transparent;
    cursor: pointer;
    opacity: 0.82;
    transition: opacity 180ms ease, border-color 180ms ease;
}

.product-gallery__thumbs img:hover,
.product-gallery__thumbs img.is-active {
    opacity: 1;
    border-color: var(--gold);
}

.product-detail {
    display: grid;
    gap: 18px;
    align-content: start;
}

.detail-meta {
    flex-wrap: wrap;
    color: var(--text-muted);
}

.detail-cart-form {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: end;
}

.payment-card {
    padding: 22px;
}

.cart-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.cart-item img {
    width: 140px;
    height: 160px;
    object-fit: cover;
    border-radius: 18px;
}

.cart-item__content {
    display: grid;
    gap: 10px;
}

.cart-item__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-form input {
    width: 90px;
}

.cart-item__total {
    font-size: 1.08rem;
}

.summary-card {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 108px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
}

.summary-row--total {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--text);
}

.summary-note {
    font-size: 0.94rem;
}

.checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid__full {
    grid-column: 1 / -1;
}

.payment-choice-grid {
    display: grid;
    gap: 14px;
}

.payment-choice {
    display: flex;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.payment-choice input {
    width: auto;
    margin-top: 3px;
}

.payment-choice strong,
.payment-choice small {
    display: block;
}

.auth-shell {
    width: var(--container);
    margin: 0 auto;
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    padding: 70px 0;
}

.auth-hero,
.auth-card {
    min-height: 520px;
}

.auth-hero {
    display: grid;
    align-content: center;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        url("/uploads/slides/auth-showroom.svg") center/cover;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 6, 5, 0.18), rgba(8, 6, 5, 0.84));
}

.auth-hero > * {
    position: relative;
    z-index: 1;
}

.auth-card {
    display: grid;
    align-content: center;
}

.auth-card__footer {
    margin: 0;
    text-align: center;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.checkbox-row input {
    width: auto;
}

.success-card {
    padding: 40px;
    max-width: 760px;
}

.success-card__actions {
    flex-wrap: wrap;
    margin-top: 16px;
}

.site-footer {
    padding: 34px 0 50px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    grid-template-columns: 1.35fr repeat(4, minmax(0, 0.78fr));
}

.footer-grid h4 {
    margin-bottom: 16px;
}

.footer-grid a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.toast {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -14px);
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.92);
    border: 1px solid var(--line-strong);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 30;
}

.toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    background: linear-gradient(180deg, #070605 0%, #0f0b08 100%);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    padding: 28px 20px;
    border-right: 1px solid var(--line);
    background: rgba(9, 7, 6, 0.88);
    backdrop-filter: blur(12px);
}

.brand-mark--admin {
    margin-bottom: 30px;
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.admin-nav a:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.admin-content {
    padding: 24px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-main {
    display: grid;
    gap: 24px;
}

.admin-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    padding: 22px;
}

.metric-card span {
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.metric-card strong {
    font-size: 1.8rem;
}

.admin-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-heading {
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.admin-table td small {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-product-cell img {
    width: 58px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
}

.table-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.top-product-list,
.detail-list {
    display: grid;
    gap: 14px;
}

.top-product-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.top-product-item span,
.top-product-item small {
    color: var(--text-muted);
}

.admin-form {
    display: grid;
    gap: 22px;
}

.admin-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card h2 {
    margin-bottom: 18px;
}

.form-card--wide {
    grid-column: 1 / -1;
}

.form-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .product-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-layout,
    .checkout-layout,
    .cart-layout,
    .auth-shell,
    .product-detail-layout,
    .editorial-grid,
    .admin-grid--two,
    .admin-metrics,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .header-shell {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        padding: 14px 0;
    }

    .site-nav,
    .header-actions,
    .hero-slide__actions,
    .cart-item__actions,
    .panel-heading,
    .form-actions,
    .admin-topbar {
        flex-wrap: wrap;
    }

    .hero-slide__content {
        padding-top: 150px;
    }

    .stats-grid,
    .product-grid,
    .category-grid,
    .form-grid,
    .admin-form__grid,
    .admin-nav {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item img {
        width: 100%;
        height: 220px;
    }

    .detail-cart-form {
        grid-template-columns: 1fr;
    }

    .product-gallery__main img {
        min-height: 420px;
    }

    .auth-shell {
        padding-top: 40px;
    }
}

/* TF Keramiek production polish */
.ambient {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
}

.brand-mark__logo {
    width: min(260px, 48vw);
    height: auto;
    display: block;
}

.brand-mark--admin .brand-mark__logo {
    width: 220px;
}

.footer-logo {
    width: min(260px, 100%);
    margin-bottom: 18px;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #111111;
    border-radius: 999px;
}

.nav-dropdown,
.account-menu {
    position: relative;
}

.nav-dropdown__menu,
.account-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.account-menu__panel {
    left: auto;
    right: 0;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.account-menu:hover .account-menu__panel,
.account-menu:focus-within .account-menu__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown__menu a,
.account-menu__panel a,
.account-menu__panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
    font-weight: 700;
}

.nav-dropdown__menu a:hover,
.account-menu__panel a:hover,
.account-menu__panel button:hover {
    background: rgba(17, 17, 17, 0.06);
}

.contact-layout,
.contact-stack {
    display: grid;
    gap: 24px;
    align-items: start;
}

.contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.contact-stack {
    grid-template-columns: 1fr;
}

.contact-form,
.contact-card,
.contact-map {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.contact-form,
.contact-card {
    padding: 26px;
}

.contact-card--feature {
    padding: 32px;
}

.contact-card h2 {
    margin-bottom: 18px;
}

.contact-detail-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.contact-detail-list div {
    display: grid;
    grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.contact-detail-list div:first-child {
    border-top: 0;
}

.contact-detail-list dt {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-detail-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.contact-detail-list a {
    color: inherit;
}

.contact-card__note {
    margin: 18px 0 0;
    color: var(--text-muted);
}

.contact-info {
    display: grid;
    gap: 18px;
}

.contact-map-block {
    display: grid;
    gap: 18px;
}

.contact-map {
    overflow: hidden;
    min-height: 320px;
}

.contact-map--wide {
    min-height: 460px;
}

.contact-map iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.contact-map--wide iframe {
    height: 460px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.image-preview-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
}

.image-preview-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.form-card__nested {
    margin: 16px 0 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.product-gallery__main img {
    transition: transform 220ms ease;
}

.product-gallery__main:hover img {
    transform: scale(1.18);
}

@media (max-width: 1180px) {
    .nav-toggle {
        display: inline-flex;
        grid-row: 1;
        justify-self: end;
    }

    .header-shell {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-nav,
    .header-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-header.is-nav-open .site-nav,
    .site-header.is-nav-open .header-actions {
        display: flex;
    }

    .nav-dropdown__menu,
    .account-menu__panel {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        margin-top: 8px;
    }
}

@media (max-width: 900px) {
    .contact-layout,
    .image-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .contact-card--feature,
    .contact-card {
        padding: 22px;
    }

    .contact-detail-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .contact-map--wide,
    .contact-map--wide iframe {
        min-height: 380px;
        height: 380px;
    }
}

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

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

body[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .site-header--scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.topbar-shell {
    min-height: 42px;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.header-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-search input {
    min-width: 220px;
    padding: 12px 14px;
}

.header-search button {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-badges span,
.verified-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-strong);
    font-size: 0.82rem;
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 12px;
    z-index: 60;
}

.floating-toast {
    min-width: 260px;
    max-width: 340px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(8, 8, 8, 0.94);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.floating-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-toast.is-error {
    border-color: rgba(255, 138, 115, 0.45);
}

.product-card {
    position: relative;
}

.product-card__toolbar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-card__pill,
.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(6, 6, 6, 0.72);
    color: var(--text);
}

.product-card__pill {
    padding: 8px 12px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.product-card__pill--danger {
    color: var(--danger);
}

.favorite-button {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

.favorite-button.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--gold);
    color: var(--gold-strong);
}

.favorite-button--large {
    width: 52px;
    height: 52px;
}

.trust-strip {
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.trust-card {
    padding: 22px;
}

.trust-card strong {
    display: block;
    margin-bottom: 10px;
}

.trust-card--compact {
    padding: 18px;
    box-shadow: none;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.review-card,
.review-list__item,
.saved-address-card,
.address-card,
.address-summary-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 22px;
}

.review-stars {
    color: var(--gold-strong);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.review-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.catalog-count {
    margin: 0;
    white-space: nowrap;
}

.detail-header,
.review-inline,
.keyword-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.trust-grid--detail {
    grid-template-columns: 1fr;
}

.review-section {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 24px;
}

.review-summary-card,
.review-form {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 24px;
}

.review-summary-score {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0;
}

.review-summary-score strong {
    font-size: 3rem;
}

.rating-breakdown {
    display: grid;
    gap: 12px;
}

.rating-breakdown__row {
    display: grid;
    grid-template-columns: 96px 1fr 40px;
    gap: 12px;
    align-items: center;
}

.rating-breakdown__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.rating-breakdown__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.review-content,
.review-list {
    display: grid;
    gap: 20px;
}

.saved-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.saved-address-card {
    text-align: left;
    display: grid;
    gap: 8px;
}

.saved-address-card.is-active {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.shipping-highlight__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.shipping-highlight__card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 28px;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.account-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
}

.account-content {
    display: grid;
    gap: 24px;
}

.address-card,
.address-summary-card {
    margin-bottom: 16px;
}

.address-summary-card strong,
.address-card strong {
    display: block;
    margin-bottom: 8px;
}

.legal-page {
    padding-top: 120px;
}

.legal-page .narrow-copy {
    display: grid;
    gap: 16px;
}

.legal-page h2 {
    margin-top: 16px;
}

.legal-page ul {
    margin: 0;
    padding-left: 22px;
}

.legal-page li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.admin-login-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #070605 0%, #100c09 100%);
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 1100px) {
    .trust-grid,
    .review-grid,
    .review-section,
    .saved-address-grid,
    .shipping-highlight__grid,
    .account-layout,
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .topbar-shell,
    .catalog-toolbar {
        justify-content: flex-start;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        min-width: 0;
        flex: 1;
    }
}

.site-body {
    --bg: #f6f5f2;
    --bg-soft: #ece9e3;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --surface-light: #ffffff;
    --line: rgba(17, 17, 17, 0.09);
    --line-strong: rgba(17, 17, 17, 0.18);
    --text: #141414;
    --text-muted: #626262;
    --text-dark: #141414;
    --gold: #474747;
    --gold-strong: #141414;
    --success: #0f8b5d;
    --danger: #c45247;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.08);
    background:
        radial-gradient(circle at top left, rgba(0, 0, 0, 0.04), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(0, 0, 0, 0.035), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #f7f6f3 48%, #efede7 100%);
}

.site-body::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    opacity: 0.18;
}

.site-body input,
.site-body select,
.site-body textarea {
    background: #ffffff;
    color: var(--text);
}

.site-body input:focus,
.site-body select:focus,
.site-body textarea:focus {
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.topbar,
.theme-toggle {
    display: none !important;
}

.site-header {
    position: relative;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-header--scrolled,
.site-header--hidden {
    transform: none;
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
}

.header-shell {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    min-height: 88px;
}

.brand-mark__crest {
    background: linear-gradient(135deg, #1d1d1d, #5b5b5b);
    color: #ffffff;
}

.site-nav {
    gap: 24px;
}

.site-nav a {
    font-weight: 600;
}

.header-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

.header-search {
    flex: 1 1 240px;
    max-width: 320px;
}

.header-search input {
    min-width: 0;
}

.header-search button,
.solid-button {
    background: linear-gradient(135deg, #121212, #4a4a4a);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.14);
}

.ghost-button,
.cart-pill,
.filter-chip,
.stock-pill,
.footer-badges span,
.verified-pill {
    background: rgba(255, 255, 255, 0.9);
}

.site-main,
.hero-slider,
.hero-slide,
.section-block,
.page-hero,
.trust-strip,
.stats-strip,
.marquee-band {
    position: relative;
    z-index: 1;
}

.trust-strip,
.stats-strip {
    margin-top: 0;
}

.trust-strip {
    z-index: 1;
}

.page-hero {
    padding-top: 68px;
}

.legal-page {
    padding-top: 68px;
}

.section-heading {
    flex-wrap: wrap;
    align-items: flex-start;
}

.section-heading > div,
.catalog-content,
.review-content,
.product-detail,
.product-detail-layout > *,
.catalog-layout > *,
.filter-card,
.filter-form,
.filter-form input,
.filter-form select {
    min-width: 0;
}

.stats-grid,
.product-grid,
.category-grid,
.review-grid,
.footer-grid {
    align-items: stretch;
}

.footer-grid {
    grid-template-columns: 1.35fr repeat(4, minmax(0, 0.78fr));
}

.marquee-band,
.section-block--soft {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.015), rgba(17, 17, 17, 0.035));
}

.stat-card,
.editorial-card,
.product-card,
.category-card,
.filter-card,
.summary-card,
.payment-card,
.auth-card,
.auth-hero,
.success-card,
.admin-panel,
.metric-card,
.form-card,
.review-card,
.review-list__item,
.saved-address-card,
.address-card,
.address-summary-card,
.review-summary-card,
.review-form,
.shipping-highlight__card,
.trust-card,
.editorial-card__panel {
    background: #ffffff;
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card__media {
    flex-shrink: 0;
}

.product-card__body {
    display: grid;
    gap: 16px;
    align-content: start;
    height: 100%;
}

.product-card__body p {
    min-height: 0;
    margin: 0;
}

.product-card__meta,
.product-card__actions,
.catalog-toolbar {
    align-items: center;
}

.product-card__actions {
    margin-top: auto;
    flex-wrap: wrap;
}

.product-card__pill,
.favorite-button,
.product-card__badge,
.floating-toast,
.toast {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    border-color: var(--line-strong);
}

.favorite-button.is-active {
    background: rgba(17, 17, 17, 0.08);
}

.floating-toast,
.toast {
    box-shadow: var(--shadow-soft);
}

.catalog-count,
.review-meta {
    color: var(--text-muted);
}

.admin-login-body {
    background: linear-gradient(180deg, #ffffff 0%, #f2f0eb 100%);
}

.hero-slide__content {
    max-width: 760px;
    padding-top: 120px;
    padding-bottom: 88px;
}

.hero-slide__content p {
    max-width: 640px;
}

@media (max-width: 1180px) {
    .header-shell {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 16px;
        padding: 18px 0;
    }

    .site-nav,
    .header-actions {
        justify-content: flex-start;
    }

    .header-search {
        max-width: none;
        width: 100%;
    }

    .footer-grid,
    .review-grid,
    .stats-grid,
    .product-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    :root {
        --container: calc(100vw - 32px);
    }

    .site-nav {
        width: 100%;
        gap: 14px;
    }

    .header-actions {
        width: 100%;
        gap: 12px;
    }

    .page-hero,
    .legal-page {
        padding-top: 44px;
    }

    .hero-slide__content {
        padding-top: 96px;
        padding-bottom: 72px;
    }

    .section-heading,
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid,
    .review-grid,
    .stats-grid,
    .product-grid,
    .category-grid,
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .page-hero p {
        max-width: min(100%, 330px);
        overflow-wrap: anywhere;
    }
}

/* Final simplification pass */
.site-header {
    position: static;
    top: auto;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.06);
    font-weight: 700;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.header-search {
    flex: 1 1 240px;
    max-width: 320px;
}

.cart-pill,
.ghost-button,
.solid-button,
.header-search button {
    min-height: 46px;
}

.hero-banner {
    padding: 28px 0 12px;
}

.hero-banner__frame {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-banner__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
}

.homepage-banner-preview {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.homepage-banner-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
}

.trust-strip {
    margin-top: 0;
    padding: 16px 0 8px;
}

.stats-strip,
.marquee-band {
    display: none;
}

.panel-subtitle,
.auth-card__intro {
    margin: 6px 0 0;
    color: #6f655b;
}

.admin-body,
.admin-login-body {
    background: linear-gradient(180deg, #fbfaf7 0%, #f3efe9 100%);
    color: #171717;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    background: transparent;
}

.admin-sidebar {
    padding: 28px 20px;
    border-right: 1px solid #e7e0d7;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid #e7e0d7;
    background: #ffffff;
    color: #252525;
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.05);
    font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.admin-content {
    min-width: 0;
    padding: 24px 28px 36px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid #e7e0d7;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.admin-panel,
.metric-card,
.form-card,
.auth-card,
.auth-hero {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e7e0d7;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
    color: #171717;
}

.metric-card strong,
.auth-card h2,
.auth-hero h1,
.admin-topbar h1 {
    color: #111111;
}

.metric-card span,
.admin-table th,
.admin-table td small,
.validation-summary,
.checkbox-row,
.form-card p,
.admin-panel p {
    color: #6f655b;
}

.admin-table tbody tr:hover {
    background: rgba(17, 17, 17, 0.025);
}

.admin-product-cell img {
    border: 1px solid #ece3d9;
    background: #f7f4ef;
}

.admin-body .ghost-button,
.admin-login-body .ghost-button {
    background: #ffffff;
    border-color: #d9d1c7;
    color: #111111;
}

.admin-body .ghost-button:hover,
.admin-login-body .ghost-button:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.admin-login-body .auth-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    padding: 40px 0;
}

.admin-login-body .auth-hero {
    min-height: 0;
    background: linear-gradient(135deg, #f6f1e8 0%, #ffffff 100%);
}

.admin-login-body .auth-hero::before {
    display: none;
}

.admin-login-body .auth-card {
    min-height: 0;
    align-content: start;
}

.admin-login-body .auth-card input,
.admin-login-body .auth-card select,
.admin-login-body .auth-card textarea,
.admin-body input,
.admin-body select,
.admin-body textarea {
    background: #ffffff;
    color: #171717;
    border-color: #ddd5cb;
}

.validation-summary {
    border: 1px solid #eadfce;
    border-radius: 18px;
    background: #fffaf3;
    padding: 14px 16px;
}

@media (max-width: 1180px) {
    .header-shell {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .site-nav,
    .header-actions {
        justify-content: flex-start;
    }

    .header-search {
        max-width: none;
        width: 100%;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e7e0d7;
    }

    .admin-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .site-nav,
    .header-actions {
        width: 100%;
    }

    .site-nav a,
    .cart-pill,
    .ghost-button,
    .solid-button {
        width: auto;
    }

    .hero-banner {
        padding-top: 18px;
    }

    .hero-banner__frame {
        border-radius: 24px;
    }

    .hero-banner__image {
        aspect-ratio: 5 / 4;
    }

    .admin-content {
        padding: 18px 16px 28px;
    }

    .admin-topbar {
        flex-wrap: wrap;
        padding: 18px;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }
}

/* Production header alignment */
.nav-dropdown__menu,
.account-menu__panel {
    display: none !important;
}

.footer-admin-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    opacity: 0.72;
}

.footer-admin-link:hover {
    opacity: 1;
    color: var(--text);
}

@media (min-width: 1121px) {
    .nav-toggle {
        display: none !important;
    }

    .header-shell {
        grid-template-columns: minmax(180px, 260px) minmax(420px, 1fr) minmax(280px, auto);
        justify-items: stretch;
    }

    .site-nav {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }

    .site-nav a {
        min-height: 44px;
        padding-inline: 16px;
    }

    .header-actions {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .header-search {
        flex: 0 1 240px;
        max-width: 260px;
    }
}

@media (max-width: 1120px) {
    .header-shell {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
    }

    .nav-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-nav,
    .header-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-header.is-nav-open .site-nav,
    .site-header.is-nav-open .header-actions {
        display: flex;
    }

    .site-header.is-nav-open .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-header.is-nav-open .site-nav a {
        width: 100%;
        justify-content: center;
    }

    .site-header.is-nav-open .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header.is-nav-open .header-search {
        max-width: none;
        width: 100%;
    }
}

/* TF Keramiek professional storefront system */
.site-body {
    --bg: #f5f5f5;
    --bg-soft: #f5f5f5;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-light: #ffffff;
    --line: rgba(17, 17, 17, 0.1);
    --line-strong: rgba(17, 17, 17, 0.22);
    --text: #111111;
    --text-muted: #5d5d5d;
    --text-dark: #111111;
    --gold: #2e2e2e;
    --gold-strong: #111111;
    --shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
    --shadow-soft: 0 8px 18px rgba(17, 17, 17, 0.07);
    --radius: 8px;
    --radius-sm: 6px;
    background: #f5f5f5;
}

.site-body::before {
    display: none;
}

.reveal {
    opacity: 1;
    transform: none;
}

.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    backdrop-filter: none;
}

.header-shell {
    grid-template-columns: minmax(210px, 250px) minmax(340px, 1fr) minmax(420px, auto);
    gap: 18px;
    min-height: 78px;
    padding: 10px 0;
}

.brand-mark {
    gap: 8px;
    justify-self: start;
    min-width: 0;
}

.brand-mark__logo {
    width: 46px;
    height: 46px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-header .brand-mark__logo--header {
    width: min(172px, 44vw);
    height: auto;
    max-height: 52px;
    border: 0;
    border-radius: 0;
}

.brand-mark--admin .brand-mark__logo {
    width: 44px;
}

.brand-mark__text {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.brand-mark__text strong {
    color: #111111;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark__text small {
    color: #5d5d5d;
    font-size: 0.76rem;
    letter-spacing: 0;
}

.site-nav {
    gap: 22px;
}

.site-nav a {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #2e2e2e;
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: transparent;
    color: #111111;
    transform: none;
}

.site-nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.header-actions {
    gap: 10px;
}

.header-search {
    display: flex;
    flex: 0 1 360px;
    max-width: 420px;
    min-width: 300px;
}

.header-search input {
    min-width: 0;
    border-radius: 8px 0 0 8px;
    border-color: #dcdcdc;
    background: #ffffff;
    padding: 12px 14px;
}

.header-search button {
    min-height: 44px;
    border-radius: 0 8px 8px 0;
    background: #111111;
    color: #ffffff;
    padding: 0 16px;
    font-weight: 800;
}

.cart-pill,
.ghost-button,
.solid-button,
.filter-chip,
.stock-pill,
.footer-badges span {
    border-radius: 8px;
}

.cart-pill,
.ghost-button,
.solid-button {
    min-height: 44px;
    padding: 0 14px;
}

.solid-button,
.header-search button {
    background: #111111;
    box-shadow: none;
}

.solid-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: none;
}

.stat-card,
.editorial-card,
.product-card,
.category-card,
.filter-card,
.summary-card,
.payment-card,
.auth-card,
.auth-hero,
.success-card,
.admin-panel,
.metric-card,
.form-card,
.review-card,
.review-list__item,
.saved-address-card,
.address-card,
.address-summary-card,
.review-summary-card,
.review-form,
.shipping-highlight__card,
.trust-card,
.editorial-card__panel,
.hero-banner__frame {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

.admin-body,
.admin-login-body {
    background: #f5f5f5;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.media-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #ffffff;
}

.media-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.admin-sidebar,
.admin-topbar,
.admin-panel,
.metric-card,
.form-card,
.auth-card,
.auth-hero {
    border-color: #e7e7e7;
}

.panel-subtitle,
.auth-card__intro,
.metric-card span,
.admin-table th,
.admin-table td small,
.form-card p,
.admin-panel p {
    color: #5d5d5d;
}

@media (min-width: 1121px) {
    .header-shell {
        grid-template-columns: minmax(210px, 250px) minmax(340px, 1fr) minmax(420px, auto);
    }

    .site-nav {
        gap: 22px;
    }

    .site-nav a {
        min-height: 0;
        padding-inline: 0;
    }

    .header-search {
        flex: 0 1 360px;
        max-width: 420px;
    }
}

@media (max-width: 1120px) {
    .header-shell {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        position: relative;
        padding-right: 58px;
    }

    .brand-mark__logo {
        width: 42px;
        height: 42px;
    }

    .nav-toggle {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 18px;
        background: #111111;
        border-color: #111111;
    }

    .nav-toggle span {
        background: #ffffff;
    }

    .site-header.is-nav-open .site-nav {
        align-items: flex-start;
    }

    .site-header.is-nav-open .site-nav a {
        width: auto;
        min-height: 36px;
    }

    .site-header.is-nav-open .header-search {
        min-width: 0;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    :root {
        --container: calc(100vw - 32px);
    }

    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero p {
        max-width: min(100%, 330px);
        overflow-wrap: anywhere;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1121px) and (max-width: 1399px) {
    .header-shell {
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
        row-gap: 12px;
    }

    .site-nav {
        justify-content: flex-end;
        gap: 18px;
    }

    .header-actions {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: minmax(320px, 1fr) auto auto auto;
        width: 100%;
    }

    .header-search {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

@media (min-width: 1400px) {
    .header-shell {
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
        row-gap: 12px;
    }

    .site-nav {
        justify-content: flex-end;
    }

    .header-actions {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: minmax(260px, 1fr) auto auto auto;
        width: 100%;
    }

    .header-search {
        flex: none;
        width: 100%;
        max-width: none;
    }
}
