:root {
    --ink: #171513;
    --muted: #6e6860;
    --paper: #f7f4ee;
    --panel: #fff;
    --line: rgba(23, 21, 19, .13);
    --teal: #246f70;
    --copper: #b46d43;
    --gold: #d9b46f;
    --shadow: 0 24px 70px rgba(20, 17, 13, .16);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.modal-open { overflow: hidden; }
body::selection {
    color: #fff;
    background: var(--teal);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
button, input, select, textarea { max-width: 100%; }
:focus-visible {
    outline: 3px solid rgba(180, 109, 67, .75);
    outline-offset: 3px;
}

.section-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
    position: fixed;
    z-index: 10;
    inset: 18px 24px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px 12px 18px;
    color: #fff;
    background: rgba(17, 16, 15, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 13px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 820; }
.mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--ink);
    background: linear-gradient(135deg, #f4dfb0, #c97746 58%, #6bb3ad);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.mark.brand-logo {
    width: 46px;
    height: 46px;
    overflow: hidden;
    color: transparent;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.mark.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
nav { display: flex; align-items: center; gap: 4px; }
nav a, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 760;
}
nav a { color: rgba(255, 255, 255, .78); }
nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.button {
    color: #fff;
    background: var(--teal);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(36, 111, 112, .22);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(36, 111, 112, .28);
}
.button.secondary, .cart-button { color: var(--ink); background: #fff; border-color: var(--line); }
.button.full { width: 100%; }
.cart-button { gap: 8px; }
.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    color: #fff;
    background: var(--copper);
    border-radius: 999px;
    font-size: 12px;
}
#accueil {
    position: relative;
}
.promo-banner {
    position: absolute;
    z-index: 4;
    inset: 98px 0 auto;
    padding: 0;
    background: transparent;
    pointer-events: none;
}
.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, #246f70, #b46d43);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    box-shadow: 0 18px 46px rgba(20, 17, 13, .16);
    text-align: center;
    pointer-events: auto;
}
.promo-banner b {
    padding: 3px 8px;
    color: var(--ink);
    background: #fff;
    border-radius: 4px;
}
.promo-banner small {
    color: rgba(255, 255, 255, .82);
    font-weight: 720;
}
.hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 128px 0 54px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(12, 11, 10, .92), rgba(12, 11, 10, .62) 42%, rgba(12, 11, 10, .08)),
        linear-gradient(180deg, rgba(12, 11, 10, .16), rgba(12, 11, 10, .65)),
        url("../assets/hero-atelier-3d.png") center / cover no-repeat;
    isolation: isolate;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(12, 11, 10, .42));
    z-index: -1;
}
.hero-inner {
    position: relative;
}
.hero-copy { width: min(710px, 100%); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #f1d6a5;
    font-size: 13px;
    font-weight: 820;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1 {
    margin-bottom: 18px;
    max-width: 820px;
    font-size: clamp(48px, 8vw, 106px);
    line-height: .88;
}
.hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(820px, 100%);
    margin-top: 64px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .18);
}
.stat {
    padding: 18px;
    background: rgba(18, 16, 14, .5);
    backdrop-filter: blur(14px);
    transition: background .22s var(--ease), transform .22s var(--ease);
}
.stat:hover { background: rgba(18, 16, 14, .72); transform: translateY(-2px); }
.stat strong { display: block; color: #fff; font-size: 27px; }
.stat span { color: rgba(255, 255, 255, .7); font-size: 13px; }
section { padding: 92px 0; }
.surface { background: #fff; }
.surface, .shop {
    position: relative;
}
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 430px);
    align-items: end;
    gap: 32px;
    margin-bottom: 34px;
}
h2 { margin-bottom: 0; font-size: clamp(34px, 5vw, 62px); line-height: .96; }
.section-head p, .muted { color: var(--muted); line-height: 1.7; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.service {
    min-height: 220px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.service:hover {
    transform: translateY(-6px);
    border-color: rgba(36, 111, 112, .28);
    box-shadow: 0 22px 50px rgba(31, 28, 24, .08);
}
.service-icon { display: block; margin-bottom: 28px; color: var(--copper); font-weight: 900; }
.service h3, .shop-item h3, .contact-panel h3 { margin-bottom: 10px; font-size: 22px; }
.atelier-band {
    background: #f3efe8;
}
.atelier-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}
.atelier-layout > div:first-child {
    position: sticky;
    top: 118px;
}
.atelier-layout h2 {
    margin-bottom: 18px;
}
.atelier-steps {
    display: grid;
    gap: 14px;
}
.atelier-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 44px rgba(31, 28, 24, .07);
}
.atelier-step strong {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: var(--teal);
    border-radius: 6px;
    font-weight: 900;
}
.atelier-step h3 {
    grid-column: 2;
    margin-bottom: 6px;
}
.atelier-step p {
    grid-column: 2;
}
.material-guide {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 247, 243, .92)),
        radial-gradient(circle at 16% 22%, rgba(36, 111, 112, .12), transparent 32%);
}
.material-layout {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.material-intro,
.material-cards article {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(21, 23, 26, .08);
    box-shadow: 0 18px 55px rgba(20, 26, 31, .08);
}
.material-intro {
    position: sticky;
    top: 110px;
    padding: 24px;
}
.material-intro h3,
.material-cards h3 {
    margin-bottom: 8px;
}
.material-intro p:last-child,
.material-cards p:last-child {
    margin-bottom: 0;
}
.material-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.material-cards article {
    padding: 20px;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.material-cards article:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 65px rgba(20, 26, 31, .12);
}
.material-cards span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: #19594b;
    background: #e1f3ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.shop { color: #fff; background: var(--ink); }
.shop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.shop .section-inner {
    position: relative;
}
.shop .section-head p { color: rgba(255, 255, 255, .68); }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 360px));
    justify-content: start;
    gap: 18px;
}
.shop-grid-1,
.shop-grid-2,
.shop-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 360px));
}
.shop-item, .contact-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 16px 50px rgba(31, 28, 24, .08);
}
.shop-item {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    color: var(--ink);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.shop-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}
.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd5c8; }
.media img { height: 100%; object-fit: cover; transition: transform .65s var(--ease), filter .65s var(--ease); }
.shop-card-gallery img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s var(--ease), transform .65s var(--ease), filter .65s var(--ease);
}
.shop-card-gallery img.active { opacity: 1; }
.shop-item:hover img { transform: scale(1.06); filter: saturate(1.06) contrast(1.02); }
.product-photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 6px 9px;
    color: #fff;
    background: rgba(20, 26, 31, .72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 760;
}
.shop-content { display: grid; gap: 14px; padding: 22px; }
.item-category { margin-bottom: 0; color: var(--teal); font-size: 13px; font-weight: 820; }
.quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-specs span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--muted);
    background: #f3efe8;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 760;
}
.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.price { font-size: 22px; font-weight: 860; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-panel { padding: 26px; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.contact-panel:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(31, 28, 24, .1); }
.contact-panel .button { margin-top: 12px; }
.contact-email-line,
.contact-direct {
    display: grid;
    gap: 5px;
    margin: 14px 0;
    padding: 12px;
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.contact-email-line span,
.contact-direct span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.contact-email-line a,
.contact-direct a {
    color: var(--teal);
    font-weight: 860;
    overflow-wrap: anywhere;
}
.cart-drawer {
    position: fixed;
    z-index: 20;
    inset: 0 0 0 auto;
    width: min(430px, 100%);
    padding: 22px;
    color: var(--ink);
    background: #fff;
    box-shadow: -28px 0 70px rgba(0, 0, 0, .24);
    transform: translateX(105%);
    transition: transform .34s var(--ease), box-shadow .34s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer.pulse { box-shadow: -28px 0 90px rgba(36, 111, 112, .38); }
.cart-head, .cart-line, .cart-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 30px; }
.cart-lines { display: grid; gap: 12px; max-height: max(180px, calc(100vh - 390px)); overflow: auto; padding: 18px 0; }
.cart-line { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-line-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.cart-line-thumb.empty {
    display: block;
}
.cart-line-info {
    flex: 1 1 auto;
    min-width: 0;
}
.cart-line strong { display: block; margin-bottom: 5px; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: #f5f1ea;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    transition: transform .18s var(--ease), background .18s var(--ease);
}
.icon-button:hover { transform: translateY(-1px); background: #ebe4d8; }
.icon-button.danger {
    color: #9d3131;
}
.icon-button.danger:hover {
    color: #fff;
    background: #b54343;
    border-color: #b54343;
}
.cart-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 760; }
.cart-final-total { font-size: 20px; font-weight: 860; }
.cart-discount-line { color: #246f70; }
.cart-form { margin-top: 18px; }
.cart-discount {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px;
    background: #faf8f4;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.cart-discount label { color: var(--ink); }
.cart-discount-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}
.cart-discount-control input { min-height: 44px; text-transform: uppercase; }
.cart-discount-control .button,
.cart-discount-control .icon-button { min-height: 44px; }
.cart-discount .field-help { min-height: 18px; }
.product-modal {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease);
}
.product-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 10, .68);
    backdrop-filter: blur(10px);
}
.product-dialog {
    position: relative;
    width: min(1060px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 34px 120px rgba(0, 0, 0, .38);
    transform: translateY(18px) scale(.98);
    transition: transform .28s var(--ease);
}
.product-modal.open .product-dialog {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
}
.product-dialog-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr);
}
.product-dialog-media {
    position: relative;
    min-height: 100%;
    background: #ddd5c8;
}
.product-dialog-media img {
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(20, 26, 31, .72);
    border: 0;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-arrow:hover { background: rgba(20, 26, 31, .9); }
.gallery-counter {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #fff;
    background: rgba(20, 26, 31, .72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 820;
}
.product-thumbs {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.product-thumbs button {
    width: 58px;
    height: 48px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    cursor: pointer;
    opacity: .74;
}
.product-thumbs button.active,
.product-thumbs button:hover {
    border-color: var(--teal);
    opacity: 1;
}
.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-dialog-content {
    display: grid;
    gap: 18px;
    padding: 34px;
}
.product-dialog-content h2 {
    margin-bottom: -6px;
    font-size: clamp(32px, 4vw, 54px);
}
.product-modal-price {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    padding: 0 16px;
    color: #fff;
    background: var(--teal);
    border-radius: 6px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
    box-shadow: 0 16px 32px rgba(36, 111, 112, .22);
}
.product-reference {
    width: fit-content;
    margin: -8px 0 0;
    padding: 7px 10px;
    color: var(--muted);
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 820;
}
.product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.product-facts div {
    padding: 14px;
    background: #f7f4ee;
    border: 1px solid var(--line);
}
.product-facts span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 820;
    text-transform: uppercase;
}
.product-facts strong {
    font-size: 20px;
}
.small-text {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
}
.product-note {
    padding: 16px;
    background: #fffaf2;
    border: 1px solid rgba(180, 109, 67, .28);
}
.product-note strong {
    display: block;
    margin-bottom: 6px;
}
.dimension-card {
    display: grid;
    grid-template-columns: minmax(170px, .48fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px;
    background: #f8f5ef;
    border: 1px solid var(--line);
}
.dimension-card h3 { margin-bottom: 8px; }
.measurement-list {
    display: grid;
    gap: 10px;
}
.measurement-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--line);
}
.measurement-row span:not(.measure-icon) {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.measurement-row strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
}
.measure-icon {
    position: relative;
    display: inline-block;
    width: 74px;
    height: 28px;
}
.measure-icon::before,
.measure-icon::after {
    content: "";
    position: absolute;
}
.measure-icon::before {
    background: var(--teal);
    border-radius: 999px;
}
.measure-icon::after {
    border: solid var(--teal);
}
.measure-length::before {
    left: 5px;
    right: 5px;
    top: 13px;
    height: 3px;
}
.measure-length::after {
    left: 0;
    right: 0;
    top: 8px;
    height: 12px;
    border-width: 0 2px;
}
.measure-width::before {
    left: 13px;
    right: 13px;
    top: 13px;
    height: 3px;
    transform: skewX(-28deg);
}
.measure-width::after {
    left: 8px;
    right: 8px;
    top: 8px;
    height: 12px;
    border-width: 0 2px;
    transform: skewX(-28deg);
}
.measure-height::before {
    left: 35px;
    top: 3px;
    bottom: 3px;
    width: 3px;
}
.measure-height::after {
    left: 29px;
    top: 0;
    width: 12px;
    height: 100%;
    border-width: 2px 0;
}
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
footer { padding: 36px 0; color: rgba(255, 255, 255, .62); background: #11100f; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
footer a { color: #fff; font-weight: 760; }

.page-shell {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 72px;
}
.simple-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 46px;
}
.simple-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 {
    max-width: 820px;
    margin-bottom: 12px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .95;
}
.eyebrow.dark { color: var(--copper); }
.panel {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(20, 17, 13, .1);
    min-width: 0;
}
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr);
    gap: 22px;
    align-items: start;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
}
.field-with-help {
    display: grid;
    gap: 7px;
    align-content: start;
}
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    color: var(--ink);
    background: #faf8f4;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}
select { appearance: none; }
textarea { min-height: 180px; resize: vertical; }
.span-2 { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: 12px; font-weight: 620; }
.coupon-field {
    padding: 14px;
    background: #fbfcfa;
    border: 1px solid rgba(21, 23, 26, .12);
    border-radius: 8px;
}
.coupon-field.has-error {
    background: #fff7f7;
    border-color: rgba(143, 43, 43, .34);
}
.coupon-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.coupon-control input {
    text-transform: uppercase;
}
.coupon-control .button {
    min-height: 48px;
    white-space: nowrap;
}
.error-text {
    color: #8f2b2b;
    font-weight: 760;
}
.discount-rule-summary {
    margin: 0;
    padding: 10px 12px;
    color: #2a6462;
    background: #eef7f5;
    border: 1px solid rgba(42, 100, 98, .18);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 760;
}
.dimension-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 14px;
    align-items: stretch;
}
.dimension-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.admin-size-preview {
    display: grid;
    gap: 8px;
    align-content: center;
    min-height: 150px;
    padding: 12px;
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.admin-size-preview span {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 820;
    box-shadow: 0 8px 18px rgba(20, 17, 13, .08);
}
.admin-size-preview .measure-icon {
    transform: scale(.82);
    transform-origin: left center;
}
.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.notice {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 6px;
    font-weight: 720;
}
.notice.ok { color: #19594b; background: #dff3eb; }
.notice.error { color: #7b2525; background: #f7dddd; }
.notice.warning { color: #6d4b12; background: #fff0ce; }
.notification-stack {
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 36px));
    pointer-events: none;
}
.notification-stack .notice {
    position: relative;
    margin: 0;
    padding-right: 46px;
    border: 1px solid rgba(21, 23, 26, .1);
    box-shadow: 0 18px 50px rgba(20, 26, 31, .18);
    animation: toastIn .22s var(--ease) both;
    pointer-events: auto;
}
.notification-stack .notice.is-leaving {
    animation: toastOut .18s var(--ease) both;
}
.notice-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    opacity: .72;
}
.notice-close:hover {
    opacity: 1;
}
.scroll-top-button {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1150;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #fff;
    background: var(--teal);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    box-shadow: 0 16px 38px rgba(20, 26, 31, .22);
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.scroll-top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(20, 26, 31, .28);
}
.scroll-top-button[hidden] {
    display: none;
}
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}
.side-panel h2 {
    margin-bottom: 14px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}
.form-layout.equal {
    grid-template-columns: 1fr 1fr;
}
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 22px;
    align-items: start;
}
.paypal-panel {
    overflow: visible;
}
#paypal-button-container {
    width: min(100%, 420px);
    min-height: 520px;
    margin-top: 18px;
    overflow: visible;
}
#paypal-button-container iframe {
    max-width: 100%;
}
.account-summary,
.order-head,
.summary-line,
.total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.account-summary {
    margin-bottom: 24px;
}
.orders-section h2 {
    margin-bottom: 18px;
}
.confirmation-heading h1 {
    max-width: 920px;
}
.confirmation-panel {
    display: grid;
    gap: 18px;
}
.confirmation-next-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.confirmation-next-steps p {
    margin: 0;
    padding: 12px;
    background: #eef7f4;
    border: 1px solid #c9dfda;
    border-radius: 6px;
}
.confirmation-next-steps strong {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    color: #fff;
    background: var(--teal);
    border-radius: 50%;
    font-size: 12px;
}
.confirmation-next-steps span {
    color: var(--ink);
    font-weight: 800;
}
.confirmation-facts {
    display: grid;
    gap: 10px;
}
.confirmation-facts p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.confirmation-facts span {
    color: var(--muted);
    font-weight: 760;
}
.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.orders {
    display: grid;
    gap: 14px;
}
.order-card {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(20, 17, 13, .1);
}
.order-card h3 {
    margin-bottom: 6px;
}
.order-lines {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.order-lines p {
    margin-bottom: 6px;
}
.account-order-line {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.account-order-line strong {
    display: block;
    margin-bottom: 3px;
}
.account-order-line > a {
    display: block;
    width: 62px;
}
.account-order-line img {
    width: 62px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #ddd5c8;
}
.account-order-line:not(:has(img)) {
    grid-template-columns: 1fr;
}
.order-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}
.timeline-step {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 88px;
    padding: 12px;
    color: var(--muted);
    background: #f8f5ef;
    border: 1px solid var(--line);
}
.timeline-step span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.timeline-step strong {
    font-size: 13px;
}
.timeline-step.active {
    color: var(--ink);
    border-color: rgba(36, 111, 112, .35);
    background: #edf4f1;
}
.timeline-step.active span {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}
.summary {
    display: grid;
    gap: 13px;
}
.summary-line {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.discount-line {
    color: #19594b;
}
.total-line {
    padding-top: 8px;
    font-size: 24px;
    font-weight: 860;
}
.stacked-section {
    margin-bottom: 28px;
}
.no-margin {
    margin-bottom: 0;
}
.admin-shell {
    width: min(1320px, calc(100% - 36px));
}
.admin-shell > .simple-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -30px -18px 28px;
    padding: 14px 18px;
    background: rgba(247, 244, 238, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.narrow-panel {
    width: min(620px, 100%);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.metric-card {
    position: relative;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
}
.metric-card.has-alert {
    border-color: rgba(180, 109, 67, .45);
    box-shadow: 0 14px 40px rgba(180, 109, 67, .12);
}
.metric-card strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}
.metric-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}
.metric-card[data-tooltip]::after {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: block;
    padding: 10px 12px;
    color: #fff;
    background: rgba(21, 23, 26, .94);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(20, 17, 13, .18);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease;
    white-space: pre-line;
}
.metric-card[data-tooltip]:hover::after,
.metric-card[data-tooltip]:focus-within::after {
    opacity: 1;
    transform: translateY(0);
}
.dashboard-todo {
    margin-bottom: 18px;
}
.dashboard-todo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dashboard-todo-grid article {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    background: #f9fbfa;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.dashboard-todo-grid h3 {
    margin: 0 0 4px;
    font-size: 14px;
}
.todo-line {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.todo-line:hover {
    border-color: rgba(36, 111, 112, .45);
    box-shadow: 0 10px 24px rgba(36, 111, 112, .08);
}
.todo-line strong,
.todo-line span {
    overflow-wrap: anywhere;
}
.todo-line span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}
@media (max-width: 760px) {
    .dashboard-todo-grid,
    .confirmation-next-steps {
        grid-template-columns: 1fr;
    }
}
.activity-strip {
    margin-bottom: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
}
.compact-title {
    margin-bottom: 10px;
}
.compact-title h2 {
    font-size: 18px;
}
.activity-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.activity-item {
    min-width: 0;
    padding: 10px;
    background: #f8f5ef;
    border: 1px solid var(--line);
}
.activity-item summary {
    display: grid;
    gap: 3px;
    cursor: pointer;
    list-style: none;
}
.activity-item summary::-webkit-details-marker {
    display: none;
}
.activity-item summary strong,
.activity-item summary span,
.activity-item summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-item summary strong {
    font-size: 13px;
}
.activity-item summary span,
.activity-item summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.activity-detail {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.activity-detail p {
    display: grid;
    gap: 2px;
    margin: 0;
}
.activity-detail p span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.activity-detail p strong {
    overflow-wrap: anywhere;
    font-size: 12px;
}
.activity-detail pre {
    overflow: auto;
    max-height: 150px;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
    white-space: pre-wrap;
}
.admin-nav-stack {
    position: sticky;
    top: 69px;
    z-index: 25;
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    background: rgba(247, 244, 238, .95);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(20, 17, 13, .08);
    backdrop-filter: blur(18px);
}
.admin-tabs,
.admin-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}
.admin-tabs a,
.admin-subtabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--muted);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 820;
}
.admin-tabs a {
    background: #e9e4da;
}
.admin-subtabs {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.admin-subtabs a {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
    background: #fff;
}
.tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    color: #fff;
    background: var(--copper);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}
.admin-tabs a:hover,
.admin-subtabs a:hover {
    color: var(--ink);
    background: #fff;
}
.admin-tabs a.active {
    color: #fff;
    background: var(--teal);
}
.admin-subtabs a:hover {
    background: #f0ebe2;
}
.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .74fr);
    gap: 18px;
    align-items: start;
}
.editor-panel {
    position: sticky;
    top: 166px;
}
.admin-shell section[id] {
    scroll-margin-top: 170px;
}
.anchor-target {
    display: block;
    scroll-margin-top: 170px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.section-title h2 {
    margin-bottom: 0;
}
.section-block {
    margin-top: 18px;
}
.archive-block {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.admin-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.admin-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    min-width: 0;
}
.item-admin-row {
    grid-template-columns: 72px minmax(0, 1fr) 92px 82px;
    grid-template-areas:
        "thumb info status price"
        "thumb actions actions actions";
}
.message-admin-row {
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1fr) minmax(170px, .45fr);
    align-items: start;
}
.message-admin-row.unread {
    border-color: rgba(180, 109, 67, .45);
    background: #fffaf2;
    box-shadow: 0 12px 34px rgba(180, 109, 67, .1);
}
.message-reply-details {
    margin-top: 12px;
}
.message-reply-details .mail-form {
    width: min(100%, 360px);
}
.admin-row.archived {
    background: #f8f5ef;
}
.order-admin-row {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, .9fr) minmax(230px, auto);
    grid-template-areas:
        "meta customer actions"
        "items items items";
    gap: 18px 22px;
    align-items: start;
    padding: 18px;
}
.order-admin-meta { grid-area: meta; }
.order-admin-items { grid-area: items; }
.order-admin-customer { grid-area: customer; }
.order-admin-row > .row-actions { grid-area: actions; }
.order-admin-meta,
.order-admin-items,
.order-admin-customer,
.order-admin-row > .row-actions {
    min-width: 0;
}
.order-admin-meta h3 {
    overflow-wrap: anywhere;
}
.order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.order-total-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.order-total-strip span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
}
.order-admin-customer {
    display: grid;
    align-content: start;
    gap: 4px;
}
.mail-details {
    margin-top: 10px;
}
.mail-details summary {
    width: fit-content;
    min-height: 34px;
    padding: 8px 11px;
    color: var(--ink);
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 820;
    list-style: none;
}
.mail-details summary::-webkit-details-marker {
    display: none;
}
.mail-details summary::after {
    content: "+";
    margin-left: 8px;
    color: var(--copper);
}
.mail-details[open] summary::after {
    content: "-";
}
.mail-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: #fbfaf7;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.mail-form textarea {
    min-height: 120px;
    resize: vertical;
}
.customer-admin-row {
    grid-template-columns: minmax(220px, .75fr) minmax(150px, .38fr) minmax(0, 1fr);
    align-items: start;
}
.discount-admin-row {
    grid-template-columns: minmax(190px, .7fr) minmax(150px, .42fr) minmax(220px, .7fr) auto;
    align-items: start;
}
.admin-edit-details {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.admin-edit-details summary {
    width: fit-content;
    min-height: 34px;
    padding: 8px 11px;
    color: var(--ink);
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 820;
    list-style: none;
}
.admin-edit-details summary::-webkit-details-marker {
    display: none;
}
.admin-edit-details summary::after {
    content: "+";
    margin-left: 8px;
    color: var(--copper);
}
.admin-edit-details[open] summary::after {
    content: "-";
}
.discount-edit-form,
.customer-edit-form {
    margin-top: 12px;
}
.customer-actions {
    grid-column: 1 / -1;
}
.admin-thumb {
    width: 76px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ddd5c8;
    border-radius: 6px;
}
.item-admin-row .admin-thumb {
    grid-area: thumb;
    width: 72px;
}
.item-admin-row > div:first-of-type {
    grid-area: info;
    min-width: 0;
}
.item-admin-row > .admin-tag {
    grid-area: status;
}
.item-admin-row > strong {
    grid-area: price;
    white-space: nowrap;
}
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.admin-photo-grid figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 4 / 3;
    background: #ddd5c8;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.admin-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: #c9382f;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.admin-photo-delete:hover {
    background: #9f241e;
}
.admin-photo-position {
    position: absolute;
    left: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    color: #fff;
    background: rgba(20, 26, 31, .72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 820;
}
.admin-photo-move {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.admin-photo-move form {
    margin: 0;
}
.admin-photo-move button {
    width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.admin-photo-move button:hover {
    background: #fff;
}
.image-upload-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.image-upload-preview figure {
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.image-upload-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ddd5c8;
}
.image-upload-preview figcaption {
    padding: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}
.admin-row h3 {
    margin-bottom: 5px;
}
.admin-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 9px;
    color: var(--teal);
    background: rgba(36, 111, 112, .1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 820;
}
.admin-tag.pause {
    color: #7a5a18;
    background: #f5e8c6;
}
.admin-tag.deleted {
    color: #7b2525;
    background: #f7dddd;
}
.admin-tag.alert {
    color: #8a4b17;
    background: #fde9c9;
}
.admin-tag.read {
    color: #56615c;
    background: #e7ece8;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.order-admin-row > .row-actions {
    display: grid;
    gap: 8px;
    justify-items: stretch;
}
.order-admin-row > .row-actions .button,
.order-admin-row > .row-actions select {
    width: 100%;
}
.order-admin-row > .row-actions .button {
    justify-content: center;
}
.row-actions form {
    margin: 0;
}
.item-status-actions {
    grid-area: actions;
    justify-content: flex-start;
}
.item-status-actions form {
    margin: 0;
}
.message-read-form {
    margin-top: 12px;
}
.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) minmax(170px, .6fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8f5ef;
    border: 1px solid var(--line);
}
.admin-filter-bar.compact-filter {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}
.admin-filter-bar.article-filter-bar {
    grid-template-columns: minmax(190px, .9fr) minmax(180px, .7fr) auto;
}
.admin-filter-bar label {
    margin-bottom: 0;
}
.admin-tag.production {
    margin-left: 6px;
    background: #edf4f1;
    color: var(--teal);
}
.production-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 220px;
}
.production-form select {
    min-height: 36px;
    padding: 8px 10px;
}
.print-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.print-file-list strong {
    flex-basis: 100%;
    font-size: 13px;
}
.inline-file-link {
    width: fit-content;
    margin-top: 8px;
}
.article-sales {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.article-sales strong {
    font-size: 13px;
}
.admin-order-lines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 8px;
    margin-top: 10px;
}
.admin-order-line {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.admin-order-line img {
    width: 112px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
    background: #ddd5c8;
}
.admin-order-line > a {
    display: block;
    width: 112px;
}
.admin-order-line:not(:has(img)) {
    grid-template-columns: 1fr;
}
.admin-order-line strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}
.admin-order-file {
    width: fit-content;
    margin-top: 7px;
    min-height: 34px;
    padding-inline: 10px;
}
.customer-orders-mini,
.customer-order-items {
    display: grid;
    gap: 8px;
}
.customer-order-line {
    display: grid;
    gap: 6px;
    padding: 10px;
    background: #f8f5ef;
    border: 1px solid var(--line);
}
.customer-order-items {
    gap: 3px;
}
.compact {
    min-height: 36px;
    padding-inline: 12px;
}
.danger {
    color: #fff;
    background: #a44343;
}
.button.status-enable {
    color: #fff;
    background: #19705a;
    border-color: #19705a;
    box-shadow: 0 12px 28px rgba(25, 112, 90, .22);
}
.button.status-enable:hover {
    background: #145f4c;
    box-shadow: 0 18px 36px rgba(25, 112, 90, .28);
}
.button.status-pause {
    color: #5a3d08;
    background: #fff2c6;
    border-color: #e6c870;
    box-shadow: 0 12px 28px rgba(150, 104, 20, .14);
}
.button.status-pause:hover {
    color: #432c04;
    background: #ffe59a;
    box-shadow: 0 18px 36px rgba(150, 104, 20, .2);
}
.pre-wrap {
    white-space: pre-wrap;
}
.settings-panel {
    margin-bottom: 18px;
}
.settings-form textarea {
    min-height: 92px;
}
.settings-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.settings-status-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #f8f5ef;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.settings-status-card h3 {
    margin: 0;
    font-size: 18px;
}
.settings-status-card p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.settings-status-card p span {
    color: var(--muted);
    font-weight: 750;
}
.settings-status-card p strong {
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 1250px) {
    .admin-shell {
        width: min(100% - 28px, 1180px);
    }
    .admin-layout {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr);
        gap: 14px;
    }
    .panel {
        padding: 20px;
    }
    .item-admin-row {
        grid-template-columns: 64px minmax(0, 1fr) 84px;
        grid-template-areas:
            "thumb info price"
            "thumb status status"
            "actions actions actions";
    }
    .item-admin-row .admin-thumb {
        width: 64px;
    }
    .item-status-actions .button {
        min-height: 34px;
        padding-inline: 10px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .topbar { position: absolute; inset: 12px 12px auto; align-items: flex-start; flex-wrap: wrap; }
    nav { order: 3; width: 100%; flex-wrap: wrap; }
    .promo-banner { top: 142px; }
    .promo-banner-inner { align-items: stretch; flex-direction: column; gap: 8px; }
    .hero { min-height: 760px; padding-top: 112px; }
    .stats, .section-head, .service-grid, .shop-grid, .contact-grid, .atelier-layout, .material-layout, .material-cards, .form-layout, .form-layout.equal, .form-grid, .checkout-layout, .admin-layout, .item-admin-row, .message-admin-row, .order-admin-row, .customer-admin-row, .discount-admin-row, .admin-filter-bar, .admin-filter-bar.compact-filter, .settings-status-grid { grid-template-columns: 1fr; }
    section { padding: 68px 0; }
    .atelier-layout > div:first-child { position: static; }
    .material-intro { position: static; }
    .span-2 { grid-column: auto; }
    .simple-topbar { display: grid; }
    .account-summary, .order-head, .summary-line, .total-line { align-items: flex-start; flex-direction: column; }
    .confirmation-facts p { align-items: flex-start; flex-direction: column; gap: 4px; }
    .notification-stack {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
    }
    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-list { grid-template-columns: 1fr; }
    .admin-shell > .simple-topbar,
    .admin-nav-stack {
        position: static;
        margin: 0 0 18px;
    }
    .admin-nav-stack {
        box-shadow: none;
    }
    .editor-panel { position: static; }
    .admin-shell section[id] { scroll-margin-top: 20px; }
    .row-actions { justify-content: flex-start; }
    .production-form { justify-content: flex-start; width: 100%; }
    .order-admin-row {
        grid-template-areas:
            "meta"
            "items"
            "customer"
            "actions";
        gap: 14px;
    }
    .order-admin-row > .row-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .order-admin-row > .row-actions .button,
    .order-admin-row > .row-actions form,
    .order-admin-row > .row-actions select {
        width: 100%;
    }
    .order-admin-row > .row-actions .button {
        justify-content: center;
    }
    .product-dialog-grid, .dimension-card, .product-facts { grid-template-columns: 1fr; }
    .product-dialog-media img { min-height: 280px; max-height: 380px; }
    .dimension-editor, .dimension-fields { grid-template-columns: 1fr; }
    .admin-size-preview { min-height: 170px; }
    .item-admin-row {
        grid-template-areas:
            "thumb"
            "info"
            "status"
            "price"
            "actions";
    }
    .settings-status-card p {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .settings-status-card p strong {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .admin-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .product-thumbs {
        gap: 6px;
    }

    .product-thumbs button {
        width: 48px;
        height: 40px;
    }
}
@media (min-width: 901px) and (max-width: 1240px) {
    .order-admin-row {
        grid-template-columns: minmax(240px, 1fr) minmax(220px, .85fr);
        grid-template-areas:
            "meta customer"
            "items items"
            "actions actions";
    }
    .order-admin-row > .row-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .section-inner { width: min(100% - 36px, 1180px); }
    .hero { min-height: 720px; }
    .stats { margin-top: 42px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    nav a, .button { min-height: 44px; }
    .topbar { gap: 10px; }
    .cart-drawer { padding: 18px; }
    .cart-lines { max-height: max(160px, calc(100vh - 430px)); }
    .cart-discount-control { grid-template-columns: minmax(0, 1fr) 44px; }
    .cart-discount-control .button {
        grid-column: 1 / -1;
        order: 3;
    }
    .admin-order-line {
        grid-template-columns: 86px minmax(0, 1fr);
    }
    .admin-order-line img {
        width: 86px;
    }
    .order-total-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .product-modal { padding: 12px; }
    .product-dialog-content { padding: 22px; }
    .atelier-step { grid-template-columns: 1fr; }
    .atelier-step h3, .atelier-step p { grid-column: 1; }
    .order-timeline { grid-template-columns: 1fr 1fr; }
    .timeline-step { min-height: 74px; }
    .measurement-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .measurement-row strong {
        grid-column: 2;
        font-size: 20px;
    }
    .measure-icon {
        width: 58px;
    }
}
@media (min-width: 901px) and (max-width: 1180px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 360px));
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Modern visual refresh */
:root {
    --ink: #15171a;
    --muted: #667085;
    --paper: #f3f5f2;
    --panel: #ffffff;
    --line: rgba(21, 23, 26, .1);
    --teal: #157a7f;
    --teal-dark: #0f5559;
    --copper: #c36a3d;
    --gold: #e1b762;
    --blue: #315f86;
    --soft: #eef3ef;
    --shadow: 0 22px 70px rgba(20, 26, 31, .12);
}

body {
    background:
        linear-gradient(180deg, #f7f8f5 0%, var(--paper) 42%, #eef2ef 100%);
    text-rendering: geometricPrecision;
}

h1, h2, h3 {
    letter-spacing: 0;
}

.section-inner {
    width: min(1200px, calc(100% - 56px));
}

.topbar,
.simple-topbar {
    border-radius: 8px;
}

.topbar {
    inset: 18px 24px auto;
    padding: 10px 12px 10px 14px;
    color: #f9fafb;
    background: rgba(18, 23, 26, .78);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 18px 54px rgba(11, 18, 22, .22);
}

.brand {
    letter-spacing: 0;
}

.mark {
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--copper));
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 12px 28px rgba(21, 122, 127, .2);
}

.mark.brand-logo {
    width: 46px;
    height: 46px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

nav a,
.button {
    border-radius: 8px;
    font-weight: 800;
}

.button {
    background: var(--teal);
    box-shadow: 0 12px 28px rgba(21, 122, 127, .2);
}

.button:hover {
    background: var(--teal-dark);
    box-shadow: 0 18px 38px rgba(21, 122, 127, .26);
}

.button.secondary,
.cart-button {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border-color: rgba(21, 23, 26, .1);
    box-shadow: 0 10px 24px rgba(20, 26, 31, .08);
}

.button.secondary:hover,
.cart-button:hover {
    background: #fff;
}

.danger {
    background: #b04444;
}

.hero {
    min-height: 90vh;
    padding: 136px 0 58px;
    background:
        linear-gradient(90deg, rgba(10, 17, 20, .92), rgba(10, 17, 20, .58) 48%, rgba(10, 17, 20, .16)),
        linear-gradient(180deg, rgba(10, 17, 20, .05), rgba(10, 17, 20, .66)),
        url("../assets/hero-atelier-3d.png") center / cover no-repeat;
}

.hero::after {
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(10, 17, 20, .54));
}

.hero-copy {
    width: min(760px, 100%);
}

h1 {
    max-width: 900px;
    font-size: clamp(48px, 7.2vw, 98px);
    line-height: .92;
}

.hero p {
    color: rgba(255, 255, 255, .82);
}

.eyebrow {
    color: #f5d38c;
    letter-spacing: .08em;
}

.eyebrow.dark {
    color: var(--copper);
}

.stats {
    gap: 10px;
    margin-top: 58px;
    background: transparent;
    border: 0;
}

.stat {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(12, 18, 20, .46);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

.stat strong {
    font-size: 25px;
}

.promo-banner-inner {
    border-radius: 8px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
}

section {
    padding: 88px 0;
}

.surface {
    background: #fbfcfa;
}

h2 {
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1;
}

.section-head {
    gap: 40px;
    margin-bottom: 38px;
}

.section-head p,
.muted {
    color: var(--muted);
}

.service-grid {
    gap: 14px;
    border: 0;
}

.service,
.shop-item,
.contact-panel,
.panel,
.order-card,
.metric-card,
.activity-strip,
.admin-row,
.settings-status-card {
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 56px rgba(20, 26, 31, .08);
}

.service {
    border: 1px solid var(--line);
}

.service:hover,
.contact-panel:hover,
.shop-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    color: var(--blue);
}

.atelier-band {
    background: #eef3ef;
}

.atelier-step {
    border-radius: 8px;
    box-shadow: 0 16px 46px rgba(20, 26, 31, .08);
}

.atelier-step strong {
    background: var(--blue);
    border-radius: 8px;
}

.shop {
    background: #11171a;
}

.shop::before {
    opacity: .64;
    background:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
}

.shop-item {
    overflow: hidden;
}

.media {
    background: #dce2df;
}

.shop-content {
    gap: 13px;
    padding: 20px;
}

.item-category {
    color: var(--blue);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.quick-specs span {
    color: #475467;
    background: #f2f5f2;
    border-color: rgba(21, 23, 26, .08);
}

.price-row {
    gap: 10px;
}

.price {
    color: var(--ink);
}

.contact-panel,
.contact-email-line,
.contact-direct,
.cart-discount,
.product-reference,
.product-facts div,
.dimension-card,
.timeline-step,
.admin-filter-bar,
.admin-order-line,
.customer-order-line,
.activity-item,
.mail-form {
    background: #f7faf7;
    border-color: var(--line);
    border-radius: 8px;
}

.cart-drawer {
    background: #fbfcfa;
    box-shadow: -30px 0 80px rgba(11, 18, 22, .22);
}

.icon-button {
    border-radius: 8px;
    background: #eef3ef;
}

.product-dialog {
    border-radius: 8px;
    box-shadow: 0 34px 120px rgba(5, 12, 16, .36);
}

.product-modal-price {
    background: var(--teal);
    border-radius: 8px;
}

.product-note {
    background: #fff7ec;
    border-color: rgba(195, 106, 61, .24);
    border-radius: 8px;
}

.page-shell {
    width: min(1120px, calc(100% - 42px));
}

.simple-topbar {
    padding: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    box-shadow: 0 14px 44px rgba(20, 26, 31, .07);
    backdrop-filter: blur(18px);
}

.page-heading h1 {
    font-size: clamp(42px, 6vw, 74px);
}

.panel {
    background: rgba(255, 255, 255, .88);
}

input,
select,
textarea {
    min-height: 48px;
    background: #fbfcfa;
    border-color: rgba(21, 23, 26, .12);
    border-radius: 8px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(21, 122, 127, .46);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 122, 127, .1);
    outline: none;
}

.notice {
    border-radius: 8px;
}

.notice.ok {
    color: #116149;
    background: #def5ec;
}

.notice.error {
    color: #8f2b2b;
    background: #fde4e4;
}

.order-card {
    background: rgba(255, 255, 255, .9);
}

.timeline-step.active {
    background: #e8f4f2;
    border-color: rgba(21, 122, 127, .26);
}

.timeline-step.active span,
.admin-tabs a.active {
    background: var(--teal);
}

.discount-line {
    color: #116149;
}

.admin-shell {
    width: min(1380px, calc(100% - 38px));
}

.admin-shell > .simple-topbar {
    background: rgba(247, 249, 246, .88);
    box-shadow: 0 12px 36px rgba(20, 26, 31, .07);
}

.admin-nav-stack {
    background: rgba(255, 255, 255, .8);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(20, 26, 31, .08);
}

.admin-tabs a {
    background: #eef1ed;
}

.admin-subtabs a {
    background: #fff;
}

.admin-tabs a:hover,
.admin-subtabs a:hover {
    background: #f7faf7;
}

.metric-card {
    background: rgba(255, 255, 255, .9);
}

.metric-card strong {
    color: var(--teal-dark);
}

.admin-row {
    background: rgba(255, 255, 255, .92);
}

.admin-row.archived {
    background: #f1f4f1;
}

.message-admin-row.unread {
    background: #fff8ee;
}

.admin-tag {
    color: var(--teal-dark);
    background: rgba(21, 122, 127, .1);
}

.admin-tag.production {
    color: var(--blue);
    background: rgba(49, 95, 134, .11);
}

.admin-tag.alert,
.admin-tag.pause {
    color: #875314;
    background: #fff1d5;
}

.admin-tag.deleted {
    color: #9b2f2f;
    background: #fde4e4;
}

.admin-tag.read {
    color: #53615b;
    background: #e8eeea;
}

.compact {
    min-height: 38px;
}

.discount-rule-summary {
    color: var(--teal-dark);
    background: #e8f4f2;
    border-color: rgba(21, 122, 127, .2);
}

.settings-status-card {
    background: #f7faf7;
}

footer {
    background: #11171a;
}

@media (max-width: 900px) {
    .section-inner {
        width: min(100% - 36px, 1200px);
    }

    .topbar {
        border-radius: 8px;
    }

    .hero {
        min-height: 760px;
    }
}

/* Stronger visual direction */
body {
    background:
        radial-gradient(circle at 8% 4%, rgba(21, 122, 127, .12), transparent 30%),
        radial-gradient(circle at 92% 14%, rgba(195, 106, 61, .12), transparent 28%),
        linear-gradient(180deg, #f8faf7 0%, #eef3ef 100%);
}

.topbar {
    border-radius: 999px;
}

.hero {
    min-height: 94vh;
    align-items: center;
    padding: 128px 0 46px;
    background:
        linear-gradient(90deg, rgba(8, 15, 18, .94), rgba(8, 15, 18, .72) 44%, rgba(8, 15, 18, .22)),
        radial-gradient(circle at 78% 22%, rgba(21, 122, 127, .58), transparent 28%),
        radial-gradient(circle at 84% 68%, rgba(195, 106, 61, .46), transparent 24%),
        url("../assets/hero-atelier-3d.png") center / cover no-repeat;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, .7fr);
    gap: 46px;
    align-items: center;
}

.hero-copy {
    width: 100%;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(54px, 7.8vw, 112px);
    line-height: .88;
}

.hero p {
    max-width: 700px;
    font-size: clamp(18px, 1.7vw, 24px);
}

.hero-actions {
    gap: 14px;
    margin-top: 34px;
}

.hero-actions .button {
    min-height: 50px;
    padding-inline: 20px;
}

.hero-showcase {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}

.hero-showcase::before {
    content: "";
    position: absolute;
    inset: -22px -18px auto auto;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    transform: rotate(10deg);
}

.showcase-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 118px;
    padding: 12px;
    color: #fff;
    background: rgba(9, 15, 18, .74);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.showcase-card-main {
    grid-template-columns: 1fr;
    min-height: 290px;
    align-items: end;
    overflow: hidden;
}

.showcase-card img {
    width: 96px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #dce2df;
}

.showcase-card-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .78;
}

.showcase-card-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(6, 12, 14, .86));
}

.showcase-card div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
}

.showcase-card span {
    color: #f5d38c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.showcase-card strong {
    font-size: 18px;
    line-height: 1.15;
}

.stats {
    width: 100%;
    margin-top: 34px;
}

.stat {
    min-height: 108px;
    padding: 20px;
}

.surface {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

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

.service {
    min-height: 260px;
    padding: 32px;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
}

.atelier-band {
    background:
        linear-gradient(135deg, #102024, #163b3f 54%, #223f4f);
    color: #fff;
}

.atelier-band .muted {
    color: rgba(255, 255, 255, .72);
}

.atelier-band .eyebrow.dark {
    color: #f5d38c;
}

.atelier-step {
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
}

.shop {
    color: var(--ink);
    background:
        linear-gradient(180deg, #f8faf7 0%, #eef3ef 100%);
}

.shop::before {
    opacity: .7;
    background:
        linear-gradient(rgba(21, 23, 26, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 23, 26, .045) 1px, transparent 1px);
}

.shop .section-head p {
    color: var(--muted);
}

.shop-grid {
    gap: 22px;
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -12px 0 26px;
}

.shop-filters button {
    min-height: 38px;
    padding: 0 14px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.shop-filters button:hover,
.shop-filters button.active {
    color: #fff;
    background: var(--teal);
    transform: translateY(-1px);
}

.shop-item {
    background: #fff;
    border: 1px solid rgba(21, 23, 26, .08);
    box-shadow: 0 22px 70px rgba(20, 26, 31, .1);
}

.shop-item:hover {
    box-shadow: 0 30px 90px rgba(20, 26, 31, .16);
}

.media {
    position: relative;
    aspect-ratio: 5 / 4;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(17, 23, 26, .78);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.shop-content {
    padding: 24px;
}

.price-row .button {
    flex: 1 1 112px;
}

.price {
    flex-basis: 100%;
    font-size: 26px;
}

.contact-grid {
    gap: 26px;
}

.contact-panel {
    padding: 32px;
}

.product-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -8px;
}

.product-modal-badges span {
    min-height: 30px;
    padding: 7px 10px;
    color: var(--teal-dark);
    background: #e8f4f2;
    border: 1px solid rgba(21, 122, 127, .16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.product-actions {
    position: sticky;
    bottom: -34px;
    z-index: 2;
    margin: 0 -34px -34px;
    padding: 16px 34px;
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.product-actions .button {
    min-height: 48px;
}

@media (max-width: 900px) {
    .topbar {
        border-radius: 8px;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-showcase {
        max-width: 560px;
    }

    .showcase-card-main {
        min-height: 230px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(46px, 16vw, 68px);
    }

    .showcase-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .showcase-card img {
        width: 78px;
    }
}

/* Contact page aligned with the new storefront */
.contact-shell {
    width: min(1220px, calc(100% - 42px));
}

.contact-shell .simple-topbar {
    margin-bottom: 24px;
}

.contact-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .48fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 26px;
    padding: 54px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 17, 20, .96), rgba(18, 52, 57, .9)),
        url("../assets/hero-atelier-3d.png") center / cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(11, 18, 22, .18);
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 20%, rgba(21, 122, 127, .45), transparent 30%),
        radial-gradient(circle at 88% 78%, rgba(195, 106, 61, .36), transparent 24%);
    pointer-events: none;
}

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

.contact-hero .eyebrow.dark {
    color: #f5d38c;
}

.contact-hero h1 {
    max-width: 780px;
    color: #fff;
}

.contact-hero .muted {
    max-width: 700px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.contact-hero-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    backdrop-filter: blur(16px);
}

.contact-hero-card span {
    color: #f5d38c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-hero-card strong {
    font-size: 24px;
    line-height: 1.12;
}

.contact-hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

.contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .42fr);
    gap: 26px;
}

.contact-form-panel,
.contact-side-panel {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 80px rgba(20, 26, 31, .1);
}

.contact-form-panel {
    padding: 30px;
}

.contact-form-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-form-head span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
    font-weight: 900;
}

.contact-form-head h2 {
    margin-bottom: 4px;
    font-size: clamp(24px, 3vw, 34px);
}

.contact-form-panel textarea {
    min-height: 210px;
}

.contact-form-panel .button[type="submit"] {
    width: 100%;
    min-height: 52px;
}

.contact-side-panel {
    position: sticky;
    top: 108px;
    align-self: start;
    overflow: hidden;
    padding: 0;
}

.contact-side-panel h2,
.contact-side-panel .contact-direct,
.contact-side-panel .contact-checklist,
.contact-side-panel > p {
    margin-inline: 24px;
}

.contact-side-panel h2 {
    margin-top: 24px;
}

.contact-side-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dce2df;
}

.contact-side-image img {
    height: 100%;
    object-fit: cover;
}

.contact-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block: 14px;
}

.contact-checklist span {
    min-height: 38px;
    padding: 10px;
    color: var(--teal-dark);
    background: #e8f4f2;
    border: 1px solid rgba(21, 122, 127, .16);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 820;
}

.contact-side-panel > p:last-child {
    margin-bottom: 24px;
}

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

    .contact-hero {
        padding: 34px 24px;
    }

    .contact-side-panel {
        position: static;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .topbar nav {
        display: none;
        order: 4;
        width: 100%;
        padding: 10px;
        background: rgba(8, 15, 18, .92);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 8px;
    }

    .topbar nav.open {
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar nav a {
        justify-content: flex-start;
        min-height: 46px;
        color: #fff;
    }
}

@media (max-width: 560px) {
    .contact-shell {
        width: min(100% - 28px, 1220px);
    }

    .contact-form-panel {
        padding: 22px;
    }

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

    .product-actions {
        bottom: -22px;
        margin: 0 -22px -22px;
        padding: 14px 22px;
    }
}

[hidden] {
    display: none !important;
}

/* Full-site cohesion pass */
.internal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 26px;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 17, 20, .96), rgba(18, 52, 57, .9)),
        url("../assets/hero-atelier-3d.png") center / cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(11, 18, 22, .16);
}

.internal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 18%, rgba(21, 122, 127, .42), transparent 28%),
        radial-gradient(circle at 90% 76%, rgba(195, 106, 61, .34), transparent 24%);
}

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

.internal-hero .eyebrow.dark {
    color: #f5d38c;
}

.internal-hero h1,
.internal-hero .muted {
    color: #fff;
}

.internal-hero .muted {
    max-width: 720px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.internal-hero-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    backdrop-filter: blur(16px);
}

.internal-hero-card span {
    color: #f5d38c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-hero-card strong {
    font-size: 28px;
    line-height: 1.1;
}

.internal-hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    line-height: 1.55;
}

.success-card {
    background: rgba(21, 122, 127, .26);
}

.trust-band {
    padding: 76px 0;
    background: #fff;
}

.trust-layout {
    display: grid;
    grid-template-columns: minmax(260px, .52fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.trust-layout h2 {
    max-width: 560px;
}

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

.trust-grid article {
    min-height: 180px;
    padding: 22px;
    background: #f7faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 56px rgba(20, 26, 31, .08);
}

.trust-grid strong {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 20px;
}

.trust-grid span {
    color: var(--muted);
    line-height: 1.6;
}

.auth-panel,
.checkout-main-panel,
.checkout-summary-panel,
.confirmation-panel {
    border: 1px solid rgba(21, 23, 26, .08);
    box-shadow: 0 24px 80px rgba(20, 26, 31, .1);
}

.highlighted-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(232, 244, 242, .72));
}

.auth-panel h2,
.checkout-main-panel h2,
.checkout-summary-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(24px, 3vw, 36px);
}

.account-summary {
    padding: 28px;
    background:
        linear-gradient(135deg, #ffffff, #e8f4f2);
}

.orders-section h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.order-card {
    border-radius: 8px;
}

.order-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.checkout-layout {
    gap: 26px;
}

.checkout-summary-panel {
    position: sticky;
    top: 108px;
    align-self: start;
}

.summary-line {
    align-items: flex-start;
    padding: 12px 0;
}

.summary-line span {
    color: var(--muted);
    line-height: 1.45;
}
.summary-line-with-thumb {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
}
.summary-thumb {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: cover;
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.total-line {
    margin-top: 4px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
}

.confirmation-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(232, 244, 242, .76));
}

.confirmation-facts p {
    padding: 14px 0;
}

.admin-login-hero {
    width: min(860px, 100%);
    grid-template-columns: 1fr;
}

.admin-shell .internal-hero {
    padding: 28px 32px;
}

.admin-page-heading h1 {
    font-size: clamp(34px, 5vw, 64px);
}

.admin-hero-card strong {
    font-size: 24px;
}

.admin-nav-stack {
    border: 1px solid rgba(21, 23, 26, .08);
}

.metrics-grid {
    gap: 12px;
}

.metric-card {
    min-height: 104px;
    padding: 18px;
}

.metric-card strong {
    font-size: 30px;
}

.activity-strip,
.section-block,
.settings-panel {
    border-radius: 8px;
}

.admin-row {
    padding: 14px;
}

.admin-filter-bar {
    border-radius: 8px;
}

.discount-usage-history {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: #f7faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.discount-usage-history > strong {
    font-size: 13px;
}

.discount-usage-history p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.discount-usage-history span {
    overflow-wrap: anywhere;
    font-weight: 760;
}

.discount-usage-history small {
    color: var(--muted);
    text-align: right;
}

@media (max-width: 900px) {
    .internal-hero,
    .trust-layout,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .internal-hero {
        padding: 32px 24px;
    }

    .checkout-summary-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .internal-hero-card strong {
        font-size: 23px;
    }

    .trust-grid article {
        min-height: 0;
    }
}

/* Final mobile corrections: keep later desktop rules from leaking into phone layouts */
@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden;
    }

    .section-inner,
    .page-shell,
    .contact-shell,
    .admin-shell {
        width: min(100% - 28px, 720px);
    }

    .topbar {
        position: fixed;
        inset: 10px 10px auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px auto;
        align-items: center;
        gap: 8px;
        padding: 8px;
        border-radius: 8px;
    }

    .brand {
        min-width: 0;
    }

    .brand > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 0;
        border-radius: 8px;
    }

    .menu-toggle span {
        width: 18px;
        height: 2px;
        transition: transform .18s var(--ease), opacity .18s var(--ease);
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .cart-button {
        min-height: 44px;
        padding-inline: 10px;
        border-radius: 8px;
        font-size: 0;
    }

    .cart-button::before {
        content: "Panier";
        font-size: 13px;
    }

    .topbar nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        margin-top: 4px;
        padding: 8px;
        background: rgba(8, 15, 18, .96);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 8px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
    }

    .topbar nav.open {
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar nav a {
        justify-content: flex-start;
        min-height: 46px;
        color: #fff;
        border-radius: 7px;
    }

    .promo-banner {
        inset: 78px 14px auto;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 42px;
    }

    .hero-stage,
    .stats,
    .section-head,
    .service-grid,
    .trust-layout,
    .trust-grid,
    .atelier-layout,
    .material-layout,
    .material-cards,
    .shop-grid,
    .contact-grid,
    .form-layout,
    .form-layout.equal,
    .form-grid,
    .checkout-layout,
    .admin-layout,
    .metrics-grid,
    .activity-list,
    .settings-status-grid,
    .product-dialog-grid,
    .dimension-card,
    .product-facts {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: clamp(44px, 14vw, 66px);
        line-height: .94;
    }

    .hero p,
    .contact-hero .muted,
    .internal-hero .muted {
        font-size: 16px;
    }

    h2 {
        font-size: clamp(30px, 10vw, 42px);
        line-height: 1.05;
    }

    section {
        padding: 58px 0;
    }

    .surface,
    .trust-band,
    .atelier-band,
    .shop {
        overflow: hidden;
    }

    .service,
    .trust-grid article,
    .atelier-step,
    .contact-panel {
        min-height: 0;
        padding: 22px;
    }

    .service-icon {
        margin-bottom: 18px;
    }

    .atelier-layout > div:first-child {
        position: static;
    }

    .shop-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        margin-bottom: 18px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .shop-filters::-webkit-scrollbar {
        display: none;
    }

    .shop-filters button {
        flex: 0 0 auto;
    }

    .showcase-card-main {
        min-height: 220px;
    }

    .product-dialog {
        max-height: calc(100vh - 24px);
    }

    .product-dialog-media img {
        min-height: 260px;
        max-height: 320px;
    }

    .admin-shell > .simple-topbar,
    .admin-nav-stack,
    .checkout-summary-panel,
    .contact-side-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .section-inner,
    .page-shell,
    .contact-shell,
    .admin-shell {
        width: min(100% - 22px, 720px);
    }

    .topbar {
        inset: 8px;
    }

    .mark {
        width: 32px;
        height: 32px;
    }

    .mark.brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand {
        gap: 8px;
        font-size: 14px;
    }

    .hero {
        padding-top: 104px;
    }

    .hero-actions,
    .product-actions,
    .confirmation-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .product-actions .button,
    .confirmation-actions .button {
        width: 100%;
    }

    .section-head {
        gap: 16px;
    }

    .shop-content {
        padding: 20px;
    }

    .price-row .button {
        flex-basis: 100%;
    }
}

/* Mobile header reset: keep the menu in normal page flow instead of floating over content */
@media (max-width: 900px) {
    .topbar {
        position: sticky !important;
        top: 8px;
        inset: auto !important;
        width: min(100% - 16px, 720px);
        margin: 8px auto 0;
        grid-template-columns: minmax(0, 1fr) 44px auto;
        background: rgba(13, 20, 23, .94);
    }

    .topbar nav {
        position: static;
        margin-top: 6px;
    }

    #accueil {
        scroll-margin-top: 78px;
    }

    .hero {
        display: block;
        min-height: 0 !important;
        padding: 30px 0 46px !important;
        align-items: start;
    }

    .hero-stage {
        align-items: start;
        gap: 24px;
    }

    .hero-showcase {
        max-width: none;
    }

    .stats {
        margin-top: 22px;
    }

    .promo-banner {
        position: static;
        margin: 12px auto 0;
        width: min(100% - 28px, 720px);
    }

    .promo-banner-inner {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .topbar {
        width: min(100% - 12px, 720px);
        margin-top: 6px;
        grid-template-columns: minmax(0, 1fr) 42px auto;
        gap: 6px;
        padding: 7px;
    }

    .menu-toggle {
        width: 42px;
        min-height: 42px;
    }

    .cart-button {
        min-height: 42px;
        padding-inline: 9px;
    }

    .hero {
        padding-top: 24px !important;
    }

    #accueil {
        scroll-margin-top: 72px;
    }
}

/* Feature finishing pass */
.cart-backdrop {
    position: fixed;
    z-index: 19;
    inset: 0;
    background: rgba(5, 12, 16, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease);
}

body.cart-open .cart-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
}

.cart-form {
    align-self: end;
}

.checkout-reassurance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.checkout-reassurance span {
    min-height: 48px;
    padding: 14px;
    color: var(--teal-dark);
    background: #e8f4f2;
    border: 1px solid rgba(21, 122, 127, .16);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
}

.product-page-shell {
    width: min(1180px, calc(100% - 42px));
}

.product-page-hero {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 0;
}

.product-page-media,
.product-page-content {
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(20, 26, 31, .1);
}

.product-page-media { position: relative; }

.product-page-media img {
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.product-page-media .article-thumbs {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.product-page-media .article-thumbs img {
    min-height: 0;
}

.product-page-content {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 34px;
}

.product-page-content h1 {
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;
}

.product-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.product-page-actions .button {
    min-height: 50px;
}

.article-purchase-options {
    margin-top: 8px;
}

.article-cart-notice {
    margin: 0;
    padding: 12px 14px;
    color: #19594b;
    background: #dff3eb;
    border: 1px solid rgba(25, 89, 75, .18);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 760;
}

@media (max-width: 900px) {
    .checkout-reassurance,
    .product-page-hero {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: min(100%, 390px);
    }

    .cart-lines {
        max-height: none;
    }

    .product-page-media img {
        min-height: 320px;
        max-height: 420px;
    }
}

@media (max-width: 560px) {
    .checkout-reassurance {
        gap: 8px;
    }

    .coupon-control {
        grid-template-columns: 1fr;
    }

    .coupon-control .button {
        width: 100%;
    }

    .product-page-shell {
        width: min(100% - 22px, 1180px);
    }

    .product-page-content {
        padding: 22px;
    }

    .product-page-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Boutique and product detail refinements */
.shop-tools {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    margin: -8px 0 28px;
    padding: 14px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(21, 23, 26, .08);
    border-radius: 8px;
    box-shadow: 0 18px 56px rgba(20, 26, 31, .08);
}

.shop-search {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.shop-search input {
    min-height: 44px;
    padding: 0 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 720;
    text-transform: none;
}

.shop-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.shop-filter-group > span {
    flex: 0 0 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.shop-filter-group button {
    min-height: 36px;
    padding: 0 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.shop-filter-group button.active,
.shop-filter-group button:hover {
    color: #fff;
    background: var(--teal);
    border-color: transparent;
}

.card-reassurance {
    display: grid;
    gap: 7px;
    padding: 12px;
    background: #f6faf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.card-reassurance span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
}

.color-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.color-chip-list span {
    padding: 6px 10px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.article-colors {
    margin-top: 14px;
}

.shop-empty {
    margin: 22px 0 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.article-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.article-detail-grid article {
    padding: 16px;
    background: #f7faf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.article-detail-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-detail-grid strong {
    display: block;
    color: var(--ink);
    line-height: 1.25;
}

.article-detail-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.product-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f7faf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-options label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.product-options input,
.product-options select,
.product-options textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-transform: none;
}

.product-options textarea {
    min-height: 78px;
    resize: vertical;
}

.product-options .span-2 {
    grid-column: 1 / -1;
}

.faq-band {
    padding: 72px 0;
    background: #f7faf8;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, .46fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 44px rgba(20, 26, 31, .07);
}

.faq-list summary {
    cursor: pointer;
    padding: 17px 18px;
    color: var(--ink);
    font-weight: 850;
}

.faq-list p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.6;
}

.legal-panel {
    display: grid;
    gap: 18px;
    line-height: 1.65;
}

.legal-panel h2 {
    margin: 0;
    font-size: 24px;
}

.legal-panel p {
    margin: 0;
    color: var(--muted);
}

.order-status-note {
    margin: 14px 0 0;
}

@media (max-width: 900px) {
    .shop-tools {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .shop-tools {
        padding: 12px;
    }

    .shop-filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .shop-filter-group > span {
        flex: 0 0 auto;
        align-self: center;
        margin-right: 2px;
    }

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

    .product-options {
        grid-template-columns: 1fr;
    }
}

/* Mobile storefront polish: keep the desktop hero rich, but make the phone
   version compact enough to read without the showcase cards crowding it. */
@media (max-width: 760px) {
    .topbar {
        width: min(100% - 12px, 720px);
        min-height: 64px;
        grid-template-columns: minmax(0, 1fr) 42px auto !important;
        gap: 7px;
        padding: 7px 8px;
        border-radius: 8px;
    }

    .brand {
        min-width: 0;
        font-size: 17px;
    }

    .brand > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mark.brand-logo {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .menu-toggle {
        width: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        font-size: 0;
        border-radius: 7px;
    }

    .menu-toggle span {
        width: 18px;
        height: 2px;
    }

    .cart-button {
        min-height: 42px;
        padding: 0 10px;
        gap: 7px;
        font-size: 14px;
        border-radius: 7px;
    }

    .cart-count {
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
    }

    .hero {
        padding: 24px 0 34px !important;
        background:
            linear-gradient(90deg, rgba(8, 15, 18, .95), rgba(8, 15, 18, .72)),
            radial-gradient(circle at 72% 18%, rgba(21, 122, 127, .42), transparent 28%),
            url("../assets/hero-atelier-3d.png") 58% center / cover no-repeat;
    }

    .hero-stage {
        display: block;
    }

    .hero-copy {
        max-width: 100%;
    }

    .eyebrow {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.4;
        letter-spacing: .08em;
    }

    .eyebrow::before {
        width: 28px;
    }

    .hero h1 {
        margin-bottom: 18px;
        font-size: clamp(42px, 13vw, 58px);
        line-height: .94;
    }

    .hero p {
        max-width: 34rem;
        font-size: 17px;
        line-height: 1.55;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 24px;
    }

    .hero-actions .button {
        min-height: 48px;
        padding-inline: 14px;
        font-size: 15px;
    }

    .hero-showcase {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        margin-top: 28px;
    }

    .stat {
        min-height: 82px;
        padding: 12px;
    }

    .stat strong {
        font-size: 18px;
        line-height: 1.08;
    }

    .stat span {
        font-size: 11px;
        line-height: 1.25;
    }
}

@media (max-width: 430px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) 40px auto !important;
        gap: 6px;
        padding: 6px;
    }

    .brand {
        font-size: 15px;
    }

    .mark.brand-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .menu-toggle {
        width: 40px;
        min-height: 40px;
    }

    .cart-button {
        min-height: 40px;
        padding-inline: 8px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 52px);
    }

    .stats {
        grid-template-columns: 1fr !important;
    }

    .stat {
        min-height: 0;
        padding: 12px 14px;
    }
}
