:root {
    --gold: #c8a54f;
    --gold-bright: #f0d37b;
    --gold-soft: #efe3bf;
    --ink: #121212;
    --ivory: #f6f6f4;
    --muted: #5f6063;
    --line: rgba(159, 160, 167, 0.22);
    --shadow: 0 18px 40px rgba(173, 176, 186, 0.24);
    --shadow-strong: 0 28px 65px rgba(178, 182, 191, 0.28);
    --shadow-soft: 0 12px 26px rgba(192, 196, 205, 0.28);
    --champagne: #f3e5c8;
    --onyx: #0f0d0a;
    --glass: rgba(255, 255, 255, 0.84);
    --panel-edge: 10px;
    --panel-edge-large: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(140deg, rgba(200, 165, 79, 0.16) 0%, transparent 24%),
        linear-gradient(40deg, rgba(200, 165, 79, 0.14) 0%, transparent 22%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(232, 234, 238, 0.88) 48%, rgba(248, 248, 246, 0.98) 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background:
        linear-gradient(130deg, transparent 11%, rgba(200, 165, 79, 0.45) 12%, transparent 13%) 0 0 / 24rem 24rem,
        linear-gradient(50deg, transparent 11%, rgba(200, 165, 79, 0.24) 12%, transparent 13%) 0 0 / 28rem 28rem;
}

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

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

main > section,
main > .section-block,
main > .product-hero,
main > .page-header,
main > .maison-strip,
main > .section-grid,
main > article {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.shell,
.admin-shell {
    min-height: 100vh;
}

.shell {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.shell::before,
.shell::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 26rem;
    height: 26rem;
    border-radius: 0;
    pointer-events: none;
    z-index: 0;
    filter: blur(18px);
    opacity: 0.42;
}

.shell::before {
    top: 6rem;
    left: -8rem;
    background: radial-gradient(circle, rgba(228, 195, 127, 0.16), transparent 70%);
    animation: auraFloat 14s ease-in-out infinite;
}

.shell::after {
    right: -7rem;
    bottom: 4rem;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.18), transparent 70%);
    animation: auraFloat 17s ease-in-out infinite reverse;
}

main,
.topbar,
.footer {
    position: relative;
    z-index: 1;
}

.topbar,
.footer,
.page-header,
.hero,
.section-grid {
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    position: sticky;
    top: 0.8rem;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: var(--glass);
    border: 1px solid rgba(200, 165, 79, 0.26);
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    animation: fadeRise 0.9s ease both;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 45%, rgba(228, 195, 127, 0.12) 80%, transparent);
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-wide {
    width: clamp(13rem, 21vw, 18rem);
    height: auto;
    object-fit: contain;
}

.nav,
.admin-nav,
.footer-meta,
.chip-group,
.actions,
.checkbox-row,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav {
    align-items: center;
    flex-wrap: nowrap;
}

.nav a,
.admin-nav a,
.text-link {
    color: var(--muted);
}

.nav-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-search {
    display: inline-flex;
    align-items: center;
    min-width: 14rem;
    border: 1px solid rgba(200, 165, 79, 0.24);
    background: rgba(255, 255, 255, 0.84);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.72rem 0.85rem;
    font: inherit;
    color: var(--ink);
}

.nav-search input:focus {
    outline: none;
}

.nav-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid rgba(200, 165, 79, 0.18);
    background: transparent;
    color: var(--muted);
    padding: 0.72rem 0.85rem;
    cursor: pointer;
}

.nav-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.nav-link-cart {
    position: relative;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.nav a.is-current {
    color: var(--ink);
    position: relative;
}

.nav a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav a:hover,
.admin-nav a:hover,
.text-link:hover {
    color: var(--gold);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-dropdown__toggle:hover {
    color: var(--gold);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    display: none;
    padding: 1rem;
    border-radius: 0;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid rgba(200, 165, 79, 0.32);
    box-shadow: var(--shadow-strong);
    transform-origin: top center;
}

.nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
    gap: 0.7rem;
    animation: revealMenu 0.25s ease;
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid rgba(200, 165, 79, 0.34);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0;
    padding: 0.8rem;
}

.menu-button span {
    display: block;
    width: 1.2rem;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero,
.configurator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    padding: 2rem 0 3rem;
}

.hero-copy,
.hero-card,
.panel,
.viewer-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 243, 246, 0.96));
    border: 1px solid rgba(200, 165, 79, 0.26);
    border-radius: var(--panel-edge);
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.hero-copy,
.hero-card,
.panel,
.viewer-card,
.footer {
    padding: 1.5rem;
}

.hero-copy::before,
.hero-card::before,
.panel::before,
.viewer-card::before,
.product-card::before,
.footer::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -40%;
    width: 40%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
    transform: rotate(18deg) translateX(-160%);
    pointer-events: none;
}

.hero-copy::after,
.hero-card::after,
.panel::after,
.viewer-card::after,
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(200, 165, 79, 0.25), transparent 10%) top left / 4rem 4rem no-repeat,
        linear-gradient(-45deg, rgba(200, 165, 79, 0.2), transparent 10%) top right / 4rem 4rem no-repeat,
        linear-gradient(45deg, rgba(200, 165, 79, 0.18), transparent 10%) bottom left / 4rem 4rem no-repeat,
        linear-gradient(-135deg, rgba(200, 165, 79, 0.22), transparent 10%) bottom right / 4rem 4rem no-repeat;
}

.hero-copy:hover::before,
.hero-card:hover::before,
.panel:hover::before,
.viewer-card:hover::before,
.product-card:hover::before,
.footer:hover::before {
    animation: sheenSweep 1.2s ease;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
}

h1,
h2 {
    margin: 0 0 1rem;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.95;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.lead,
.panel p,
.footer p,
.summary-box p,
.viewer-placeholder small {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.button,
.chip {
    border: 0;
    border-radius: 0;
    padding: 0.9rem 1.2rem;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.button:hover,
.chip:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    color: var(--ink);
    border: 1px solid rgba(200, 165, 79, 0.45);
    box-shadow: 0 14px 30px rgba(193, 197, 207, 0.28);
}

.button.secondary,
.chip {
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    border: 1px solid rgba(200, 165, 79, 0.24);
}

.button.danger {
    background: #4d1f1f;
    color: #fff;
}

.button.secondary:hover,
.chip:hover {
    background: rgba(201, 164, 92, 0.24);
}

.chip.is-active {
    background: var(--ink);
    color: #fff;
}

.stat-grid,
.section-grid {
    display: grid;
    gap: 1rem;
}

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

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

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

.stat-grid article,
.summary-box {
    border: 1px solid rgba(200, 165, 79, 0.22);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 238, 242, 0.92));
    padding: 1rem;
}

.stat-grid strong {
    display: block;
    font-size: 2rem;
    font-family: "Cormorant Garamond", serif;
}

.feature-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.page-header {
    padding: 2rem 0 1rem;
}

.section-block {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto 2rem;
}

.section-head {
    margin-bottom: 1rem;
}

.empty-state,
.info-card {
    display: grid;
    gap: 0.8rem;
}

.product-grid,
.gallery-grid {
    display: grid;
    gap: 1rem;
}

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

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

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--panel-edge);
    border: 1px solid rgba(200, 165, 79, 0.16);
    background: #fff;
}

.product-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 241, 245, 0.96));
    border: 1px solid rgba(200, 165, 79, 0.22);
    border-radius: var(--panel-edge);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeRise 0.8s ease both;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 120px rgba(29, 23, 14, 0.18);
}

.product-card > img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #fff;
    filter: saturate(0.94) contrast(1.02);
}

.product-card__body {
    padding: 1.25rem;
}

.product-card__body h3 {
    margin: 0.35rem 0 0.5rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.product-card__body p,
.product-card__category {
    color: var(--muted);
}

.product-card__footer,
.summary-row,
.actions-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.product-hero,
.cart-layout,
.checkout-layout {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    display: grid;
    gap: 1.5rem;
}

.product-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
}

.configurator-stage {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 243, 247, 0.88));
}

.configurator-stage::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 36%),
        linear-gradient(180deg, rgba(200, 165, 79, 0.04), rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.configurator-stage::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(200, 165, 79, 0.1), transparent 68%);
    filter: blur(10px);
    animation: auraFloat 10s ease-in-out infinite;
    pointer-events: none;
}

.configurator-stage model-viewer {
    display: block;
    filter: saturate(1.16) contrast(1.08);
}

.viewer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.viewer-badges span {
    padding: 0.55rem 0.8rem;
    border-radius: 0;
    border: 1px solid rgba(201, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-size: 0.92rem;
}

.product-viewer,
.product-panel {
    align-self: start;
}

.cart-layout,
.checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
}

.product-form,
.admin-form,
.checkout-summary,
.cart-items {
    display: grid;
    gap: 1rem;
}

.config-group {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 0;
    border: 1px solid rgba(200, 165, 79, 0.18);
    background: rgba(255, 255, 255, 0.74);
}

.config-group__header {
    display: grid;
    gap: 0.2rem;
}

.config-group__header span {
    font-weight: 700;
}

.config-group__header small {
    color: var(--muted);
}

.config-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.config-swatch,
.config-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 0;
    border: 1px solid rgba(200, 165, 79, 0.22);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.config-swatch:hover,
.config-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 164, 92, 0.4);
    box-shadow: 0 14px 34px rgba(54, 41, 20, 0.1);
}

.config-swatch.is-active,
.config-chip.is-active {
    background: linear-gradient(135deg, rgba(201, 164, 92, 0.18), rgba(255, 255, 255, 0.96));
    border-color: rgba(201, 164, 92, 0.7);
    box-shadow: 0 18px 42px rgba(54, 41, 20, 0.15);
}

.config-swatch__dot,
.config-swatch__gem {
    flex: 0 0 auto;
    display: inline-block;
}

.config-swatch__dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.config-swatch__gem {
    width: 1.25rem;
    height: 1.25rem;
    transform: rotate(45deg);
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.configurator-summary {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 240, 244, 0.9));
    border: 1px solid rgba(200, 165, 79, 0.2);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.product-form label,
.admin-form label,
.auth-form label {
    display: grid;
    gap: 0.45rem;
}

.product-form input,
.product-form select,
.product-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.auth-form input,
.checkout-layout input,
.checkout-layout textarea {
    width: 100%;
    border: 1px solid rgba(200, 165, 79, 0.18);
    border-radius: 0;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1rem 0;
}

.price-block strong {
    font-size: 2rem;
    font-family: "Cormorant Garamond", serif;
}

.price-block span {
    color: var(--muted);
    text-decoration: line-through;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.cart-item img,
.table-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.cart-item__body h2 {
    margin-bottom: 0.25rem;
}

.summary-row {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.summary-row.total {
    font-size: 1.1rem;
}

.flash {
    width: min(1160px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 1rem 1.2rem;
    border-radius: 0;
    border: 1px solid rgba(200, 165, 79, 0.22);
}

.flash-success {
    background: rgba(76, 175, 80, 0.12);
}

.flash-error {
    background: rgba(176, 0, 32, 0.09);
}

.viewer-placeholder {
    min-height: 420px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(201, 164, 92, 0.6);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(201, 164, 92, 0.14), rgba(255, 255, 255, 0.7));
    text-align: center;
}

.viewer-placeholder span {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
}

.admin-body {
    background: #fbf8f1;
}

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

.admin-sidebar {
    min-height: 100vh;
    border-right: 1px solid var(--line);
    background: #fffdf9;
    padding: 1.5rem;
}

.brand-admin {
    margin-bottom: 2rem;
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
}

.brand-admin img {
    width: min(100%, 7.5rem);
    height: auto;
    display: block;
}

.brand-admin span {
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav {
    flex-direction: column;
}

.table-note {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-main {
    padding: 2rem;
}

.admin-header {
    margin-bottom: 1rem;
}

.form-panel {
    max-width: 420px;
}

.wide-panel {
    max-width: none;
}

.form-grid,
.repeatable-grid,
.stats-row {
    display: grid;
    gap: 1rem;
}

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

.inline-password-form {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.inline-password-form input {
    width: 100%;
    border: 1px solid rgba(200, 165, 79, 0.18);
    border-radius: 0;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
}

.admin-access-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.admin-access-list,
.admin-access-create {
    min-width: 0;
}

.admin-access-create {
    position: sticky;
    top: 2rem;
}

.admin-user-list {
    display: grid;
    gap: 1rem;
}

.admin-user-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.admin-user-card__top {
    display: grid;
    gap: 0.75rem;
}

.admin-user-card__identity {
    display: grid;
    gap: 0.2rem;
}

.admin-user-card__identity span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.admin-user-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(200, 165, 79, 0.22);
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-form label.checkbox-row {
    display: flex;
    align-items: center;
}

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

.repeatable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.repeatable-card {
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1rem;
    background: #fff;
    display: grid;
    gap: 0.75rem;
}

.stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

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

.admin-table th,
.admin-table td {
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose {
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.page-rich {
    display: grid;
    gap: 1rem;
}

.faq-rich {
    gap: 1.25rem;
}

.faq-rich article {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 164, 92, 0.18);
}

.contact-rich ul {
    margin-block: 1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.5rem;
}

.auth-form input {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(200, 165, 79, 0.28);
    margin-bottom: 1.5rem;
    background:
        linear-gradient(180deg, rgba(249, 250, 252, 0.96), rgba(230, 233, 239, 0.96));
    color: var(--ink);
    border-radius: 0;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.footer p,
.footer a,
.footer span {
    color: rgba(54, 56, 61, 0.78);
}

.footer strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
}

.footer-brand {
    max-width: 28rem;
}

.footer-brand__logos {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.footer-brand__square {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
    border-radius: 0;
    padding: 0.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 234, 211, 0.92));
    border: 1px solid rgba(228, 195, 127, 0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-columns > div {
    display: grid;
    gap: 0.45rem;
}

.footer-label {
    color: var(--champagne) !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: rgba(92, 71, 39, 0.92);
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy {
    padding: 2.6rem;
    animation: fadeRise 0.8s ease both;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 242, 246, 0.9)),
        url('/assets/images/banner2.jpg') center/cover no-repeat;
}

.hero-card {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    padding: 1rem;
    animation: fadeRise 1s ease both;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 242, 246, 0.92)),
        url('/assets/images/banner4.jpg') center/cover no-repeat;
}

.hero-card__media {
    position: relative;
    min-height: 360px;
    border-radius: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.16)),
        url('/assets/images/banner1.jpg') center/cover no-repeat;
}

.hero-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.8), transparent 28%),
        linear-gradient(180deg, transparent 0%, rgba(30,21,10,0.08) 100%);
    pointer-events: none;
}

.hero-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transform: scale(1.04);
    animation: levitate 7s ease-in-out infinite;
}

.hero-card__content {
    padding: 0.35rem 0.75rem 0;
}

.hero-card__label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
}

.hero-card__content p {
    margin: 0;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.hero-note span {
    padding: 0.55rem 0.8rem;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(200, 165, 79, 0.18);
    color: var(--muted);
    font-size: 0.92rem;
}

.maison-strip {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.maison-strip p {
    margin: 0;
    text-align: center;
    color: rgba(52, 39, 22, 0.86);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    line-height: 1.08;
}

.maison-strip__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.65), transparent);
}

.category-card {
    position: relative;
    min-height: 240px;
    padding-top: 2rem;
    animation: fadeRise 0.85s ease both;
}

.category-card strong,
.category-card h2 {
    display: block;
    margin-bottom: 0.7rem;
}

.category-card__index {
    display: inline-block;
    margin-bottom: 1rem;
    color: rgba(201, 164, 92, 0.9);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.1rem;
    line-height: 1;
}

.editorial-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 239, 243, 0.92)),
        url('/assets/images/banner3.jpg') center/cover no-repeat;
}

.editorial-panel:last-child {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 239, 243, 0.94)),
        url('/assets/images/banner4.jpg') center/cover no-repeat;
}

.maison-story__copy {
    max-width: 52rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 239, 243, 0.94)),
        url('/assets/images/banner1.jpg') center/cover no-repeat;
}

.editorial-panel::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.18), transparent 70%);
}

.page-header {
    padding: 2.6rem 0 1.2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200, 165, 79, 0.24);
    border-radius: 0;
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 239, 243, 0.92)),
        url('/assets/images/banner2.jpg') center/cover no-repeat;
    padding-inline: 2rem;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(130deg, transparent 10%, rgba(200, 165, 79, 0.32) 10.4%, transparent 11%) 0 0 / 18rem 18rem,
        linear-gradient(40deg, transparent 10%, rgba(200, 165, 79, 0.18) 10.4%, transparent 11%) 0 0 / 20rem 20rem;
}

.page-header .lead {
    max-width: 44rem;
}

code {
    background: rgba(23, 23, 23, 0.06);
    border-radius: 8px;
    padding: 0.15rem 0.4rem;
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes levitate {
    0%,
    100% {
        transform: translateY(0) scale(1.04);
    }

    50% {
        transform: translateY(-10px) scale(1.06);
    }
}

@keyframes auraFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -16px, 0);
    }
}

@keyframes sheenSweep {
    from {
        transform: rotate(18deg) translateX(-160%);
    }

    to {
        transform: rotate(18deg) translateX(420%);
    }
}

@keyframes revealMenu {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .hero,
    .configurator-grid,
    .admin-shell,
    .admin-access-layout,
    .product-hero,
    .cart-layout,
    .checkout-layout,
    .product-grid,
    .gallery-grid,
    .stats-row,
    .section-grid.two-up,
    .section-grid.three-up,
    .form-grid,
    .repeatable-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        border-radius: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand {
        min-width: 0;
    }

    .brand-wide {
        display: block;
        width: min(100%, 13rem);
        max-width: 100%;
    }

    .maison-strip {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        width: 100%;
    }

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

    .nav {
        display: none;
        width: 100%;
        flex-wrap: wrap;
        grid-column: 1 / -1;
    }

    .nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-search {
        width: 100%;
        min-width: 0;
    }

    .nav-dropdown__menu {
        position: static;
        transform: none;
        display: none;
        margin-top: 0.75rem;
        width: 100%;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid;
        animation: none;
    }

    .menu-button {
        display: inline-flex;
        justify-self: end;
        flex-shrink: 0;
    }

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

    .admin-access-create {
        position: static;
    }

    .inline-password-form {
        grid-template-columns: 1fr;
    }

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

}

@media (min-width: 961px) {
    .product-hero--detail .product-viewer {
        position: sticky;
        top: 7.5rem;
    }
}
