/* Sézane demo — vitrine style */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
    --cream: #faf7f2;
    --cream-dark: #f0e9dd;
    --ink: #211d19;
    --taupe: #9a8c78;
    --taupe-light: #cabfae;
    --line: #e6dfd1;
    --white: #fffefb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 26px 24px 18px;
    text-align: center;
}

.site-header-row { position: relative; }

.cart-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    color: var(--ink);
}
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: inline-flex;
    line-height: 0;
}
.logo img { display: block; height: auto; }

nav.main-nav {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    font-weight: 400;
    text-transform: uppercase;
    color: #4a453e;
}

nav.main-nav a { position: relative; padding: 4px 0; }
nav.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
nav.main-nav a:hover { color: var(--ink); }

.breadcrumb {
    max-width: 1240px;
    margin: 22px auto 0;
    padding: 0 32px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--taupe);
}
.breadcrumb a:hover { color: var(--ink); }

/* Hero */
.hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 32px 0;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 64px;
}
.hero-media {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--cream-dark);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.hero-content { color: var(--ink); }
.hero-content .eyebrow { letter-spacing: 0.26em; text-transform: uppercase; font-size: 11px; color: var(--taupe); }
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(34px, 4.2vw, 54px);
    margin: 16px 0 22px;
    line-height: 1.15;
}
.hero-content p.lede {
    font-size: 14.5px;
    line-height: 1.75;
    color: #4a453e;
    max-width: 40ch;
    margin: 0 0 32px;
}
.hero-content .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ink);
    transition: gap 0.25s ease;
}
.hero-content .cta:hover { gap: 12px; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 0; }
    .hero-media { aspect-ratio: 4/3; order: -1; }
    .hero-content { text-align: center; }
    .hero-content p.lede { margin-left: auto; margin-right: auto; }
}

/* Section titles */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    margin: 88px 0 10px;
}
.section-sub {
    text-align: center;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 48px;
}

/* Product grid */
.product-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px 26px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; padding-left: 20px; padding-right: 20px; } }

.product-card { display: block; }
.product-card .thumb {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--cream-dark);
    overflow: hidden;
    margin-bottom: 16px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.22,.61,.36,1); }
.product-card:hover .thumb img { transform: scale(1.045); }
.product-card .badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,254,251,0.92);
    font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 9px; color: var(--taupe);
}
.product-card .model { font-family: 'Playfair Display', serif; font-size: 16px; margin: 0 0 3px; letter-spacing: 0.01em; }
.product-card .variant { font-size: 11.5px; color: var(--taupe); margin: 0 0 7px; }
.product-card .price { font-size: 13px; letter-spacing: 0.03em; }

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--line);
    background: var(--cream-dark);
    padding: 56px 24px 34px;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: 0.05em;
    color: var(--taupe);
}
footer.site-footer .logo { margin-bottom: 18px; }
footer.site-footer .links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; }
footer.site-footer .links a:hover { color: var(--ink); }
footer.site-footer .disclosure { margin-top: 6px; opacity: 0.75; font-size: 10px; }

/* PDP */
.pdp {
    max-width: 1240px;
    margin: 36px auto 0;
    padding: 0 32px 110px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
}
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 32px; padding-left: 20px; padding-right: 20px; } }

.pdp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdp-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--cream-dark); }
.pdp-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 3/3.65; }

.pdp-info { padding-top: 6px; }
.pdp-info .eyebrow { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); }
.pdp-info h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 32px;
    margin: 8px 0 12px;
    line-height: 1.2;
}
.pdp-info .price { font-size: 17px; margin-bottom: 28px; letter-spacing: 0.02em; }
.pdp-info .desc { font-size: 14px; line-height: 1.75; color: #4a453e; margin-bottom: 32px; max-width: 46ch; }

.equiv-note {
    border-left: 2px solid var(--taupe-light);
    color: #6b5f4a;
    font-size: 12px;
    line-height: 1.65;
    padding: 2px 0 2px 16px;
    margin-bottom: 30px;
    max-width: 46ch;
}
.equiv-note b { display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; color: var(--taupe); font-weight: 500; }

.field-label {
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe);
    display: block; margin-bottom: 10px;
}
.field-row { margin-bottom: 26px; }
.field-cols { display: flex; gap: 20px; flex-wrap: wrap; }
.field-cols .field-row { flex: 1; min-width: 160px; }

select.pdp-select {
    width: 100%;
    max-width: 260px;
    padding: 13px 16px;
    border: 1px solid var(--ink);
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.04em;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23211d19'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
select.pdp-select:hover { border-color: #55503f; }
select.pdp-select:focus { outline: none; box-shadow: 0 0 0 1px var(--ink); }

#kleep-container { margin: -10px 0 28px; min-height: 42px; }

/* Kleep, set like the product page's size advice row ("CONSEIL TAILLE — VOIR
   LE GUIDE DES TAILLES"): small tracked capitals, the action underlined. */
#kleep-container .kleep-button,
#kleep-container .kleep-texts,
#kleep-container .kleep-custom {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}
#kleep-container .kleep-button .kleep-underline,
#kleep-container .kleep-cta .kleep-underline {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    cursor: pointer;
}
#kleep-container .kleep-underline svg {
    width: 12px;
    height: 12px;
    color: var(--ink);
}
#kleep-container .kleep-underline span,
#kleep-container .kleep-underline span * {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}
#kleep-container .kleep-underline > span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
#kleep-container .kleep-personal-fit {
    --kleep-pf-ink: var(--ink);
    --kleep-pf-muted: var(--taupe);
    --kleep-pf-font: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
}

button.addToCart {
    width: 100%;
    max-width: 360px;
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    padding: 16px 20px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, letter-spacing 0.25s ease;
}
button.addToCart:hover { background: #3a352d; letter-spacing: 0.18em; }

.pdp-meta {
    margin-top: 38px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    font-size: 12px;
    line-height: 1.9;
    color: #55503f;
    max-width: 46ch;
}
.pdp-meta dt { color: var(--taupe); text-transform: uppercase; letter-spacing: 0.08em; font-size: 9.5px; margin-top: 12px; }
.pdp-meta dd { margin: 0; }

/* Cart drawer */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(32, 29, 25, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 90;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(400px, 100vw);
    background: var(--white);
    box-shadow: -8px 0 32px rgba(32, 29, 25, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
    z-index: 95;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}
.cart-drawer-header button {
    background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}

.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { color: var(--taupe); font-size: 13px; padding: 24px 0; }

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}
.cart-item img { width: 64px; height: 85px; object-fit: cover; background: var(--cream-dark); }
.cart-item-name { font-family: 'Playfair Display', serif; font-size: 14px; margin: 0 0 4px; }
.cart-item-meta { font-size: 11.5px; color: var(--taupe); margin: 0 0 6px; }
.cart-item-price { font-size: 12.5px; margin: 0; }
.cart-item-remove {
    background: none; border: 0; font-size: 18px; color: var(--taupe); cursor: pointer; padding: 0 2px;
}
.cart-item-remove:hover { color: var(--ink); }

.cart-drawer-footer { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.cart-subtotal-row {
    display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 16px; letter-spacing: 0.02em;
}
.cart-checkout {
    width: 100%;
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    padding: 15px 20px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}
.cart-checkout:hover { background: #3a352d; }
