/* Sézane demo — vitrine style */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wdth,wght@62.5..100,400..700&family=Figtree:wght@400..700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --page: #fffcf8;
    --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(--page);
    color: var(--ink);
    font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Header — set like sezane.com: 80px bar, logo left, nav inline, tools right */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--page);
    font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
}
.site-header-row {
    max-width: 1376px;
    height: 80px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.logo { display: inline-flex; line-height: 0; flex: none; }
.logo img { display: block; width: 117px; height: auto; }

nav.main-nav {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #121212;
}
nav.main-nav a { white-space: nowrap; text-underline-offset: 4px; }
nav.main-nav a:hover { text-decoration: underline; }

.header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #121212;
}
.cart-toggle {
    position: relative;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #121212;
    line-height: 0;
}
.cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 50%;
    background: #121212;
    color: #fff;
    font-size: 9px;
    line-height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 1100px) {
    nav.main-nav { display: none; }
    .header-tools span { display: none; }
}

.breadcrumb {
    max-width: 1346px;
    margin: 4px auto 12px;
    padding: 0 16px;
    font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #121212;
}
.breadcrumb span { text-decoration: underline; text-underline-offset: 4px; color: #555; }
@media (max-width: 1000px) { .breadcrumb { padding: 0 16px; } }

/* Listing — set like sezane.com/collection/denim */
.sub-nav {
    max-width: 1376px; margin: 0 auto; padding: 22px 16px 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
    font-family: 'EB Garamond', 'Times New Roman', serif; font-size: 13px; letter-spacing: 1.5px; color: #121212;
}
.sub-nav .italic { font-style: italic; }
.sub-nav .gold { color: #b2832c; }
.sub-nav .current { text-decoration: underline; text-underline-offset: 4px; }

.listing-head { position: relative; max-width: 1342px; margin: 0 auto; padding: 22px 16px 0; text-align: center; }
.listing-head h1 {
    font-family: 'Noto Serif Display', 'Didot', serif; font-variation-settings: 'wdth' 76; font-weight: 600; font-size: 54px; line-height: 60px;
    letter-spacing: 1.5px; text-transform: uppercase; margin: 0;
}
.filters {
    position: absolute; right: 16px; bottom: -36px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    text-decoration: underline; text-underline-offset: 4px;
}

.listing { max-width: 1342px; margin: 0 auto; padding: 56px 16px 60px; }
.model-block { margin-bottom: 40px; }
.model-row, .listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 26px; }
.listing-grid { margin-top: 40px; }
.listing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.listing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.listing-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 40px 16px; }
.model-intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.model-intro h2 {
    font-family: 'Noto Serif Display', 'Didot', serif; font-variation-settings: 'wdth' 76; font-weight: 500; font-size: 32px; line-height: 44px;
    letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 12px;
}
.model-intro.wide { padding: 40px 24px 36px; }
.model-intro p { font-family: 'EB Garamond', 'Times New Roman', serif; font-size: 14px; letter-spacing: 1.5px; margin: 0; }

.product-card .thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream-dark); }
.product-card .thumb > a { display: block; height: 100%; }
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb img.alt { opacity: 0; transition: opacity 0.25s ease; }
.product-card:hover .thumb img.alt { opacity: 1; }
.quick-add {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 8px; background: #fffcf8; border: 1px solid #e1e1e1; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; pointer-events: auto; }
.quick-add p { margin: 2px 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #121212; }
.quick-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 3px; margin-bottom: 2px; }
.quick-sizes button {
    min-width: 34px; height: 30px; padding: 0 6px; background: none; border: 1px solid transparent; cursor: pointer;
    font-family: 'Figtree', Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: #121212;
}
.quick-sizes button:hover { border-color: #121212; }
@media (hover: none) { .quick-add { display: none; } }

.caption {
    display: grid; grid-template-columns: 1fr auto; padding: 10px 8px 0;
    font-family: 'EB Garamond', 'Times New Roman', serif; font-size: 13px; line-height: 18.2px; letter-spacing: 1.5px; color: #121212;
}
.caption .name { text-transform: uppercase; }
.caption .colour { color: #555; }
.caption .price { grid-column: 1 / -1; }

@media (max-width: 760px) {
    .model-row, .listing-grid, .listing-grid.cols-3, .listing-grid.cols-4, .listing-grid.cols-5 { grid-template-columns: 1fr 1fr; gap: 28px 10px; }
    .model-intro { grid-column: 1 / -1; padding: 10px 0; }
    .listing-head h1 { font-size: 34px; }
}

/* 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 — set like sezane.com: gallery + thumbnail column on the left, one 520px column on the right */
.pdp {
    --serif: 'EB Garamond', 'Times New Roman', serif;
    --display: 'Noto Serif Display', 'Didot', serif;
    --gothic: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
    --ink2: #121212;
    --grey: #555;
    --box: #e1e1e1;
    max-width: 1346px;
    margin: 0 auto;
    padding: 0 16px 110px;
    display: grid;
    grid-template-columns: minmax(0, 703px) minmax(0, 521px);
    justify-content: space-between;
    gap: 60px;
    color: var(--ink2);
}
@media (max-width: 1000px) { .pdp { grid-template-columns: 1fr; gap: 32px; padding: 0 16px 80px; } }

.pdp-gallery { display: grid; grid-template-columns: minmax(0, 582px) 94px; gap: 27px; align-items: start; }
.pdp-gallery.single { grid-template-columns: minmax(0, 1fr); }
.pdp-gallery.single .gal-thumbs, .pdp-gallery.single .gal-arrow { display: none; }
.gal-main { position: relative; }
.gal-main img { width: 100%; aspect-ratio: 582 / 816; object-fit: cover; background: var(--cream-dark); }
.gal-arrow {
    position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px;
    background: none; border: 0; cursor: pointer;
}
.gal-arrow::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
    border-left: 1.5px solid var(--ink2); border-bottom: 1.5px solid var(--ink2);
}
.gal-prev { left: 18px; }
.gal-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.gal-next { right: 18px; }
.gal-next::before { transform: translate(-70%, -50%) rotate(-135deg); }

.gal-thumbs { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gal-track {
    display: flex; flex-direction: column; gap: 20px;
    max-height: 776px; overflow-y: auto; scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 94px; }
.gal-thumb img { width: 100%; aspect-ratio: 1080 / 1514; object-fit: cover; }
.gal-thumb.active { border-color: var(--ink2); }
.gal-scroll { position: relative; width: 24px; height: 18px; background: none; border: 0; cursor: pointer; }
.gal-scroll::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
    border-left: 1.5px solid var(--ink2); border-top: 1.5px solid var(--ink2);
}
.gal-up::before { transform: translate(-50%, -25%) rotate(45deg); }
.gal-down::before { transform: translate(-50%, -75%) rotate(-135deg); }

.pdp-info { padding-top: 0; }
.pdp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pdp-head h1 {
    font-family: var(--display); font-variation-settings: 'wdth' 76; font-weight: 600; font-size: 32px; line-height: 44px;
    letter-spacing: 1.5px; text-transform: uppercase; margin: 0;
}
.pdp-head .wish { flex: none; margin-top: 6px; color: var(--ink2); }
.pdp-sub {
    font-family: var(--display); font-variation-settings: 'wdth' 76; font-weight: 600; font-size: 19.5px; letter-spacing: 1.5px;
    line-height: 28px; text-transform: uppercase; color: var(--grey); margin: 0 0 27px;
}
.pdp-sub .dash { margin: 0 10px; }

.pdp-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 40px; }
.pdp-tabs span { font-size: 12px; }
.pdp-tab {
    font-family: var(--gothic); font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; background: none; border: 0; padding: 0 0 2px; cursor: pointer; color: var(--ink2);
}
.pdp-tab.active { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pdp-panel { display: none; font-family: var(--serif); font-size: 14px; line-height: 24.5px; letter-spacing: 1.5px; padding: 0 0 0 16px; }
.pdp-panel.active { display: block; }
.pdp-panel p { margin: 0 0 8px; }
.pdp-panel b { font-weight: 600; }
.pdp-panel .bullets { list-style: none; margin: 0; padding: 0; }
.pdp-panel .bullets li::before { content: "- "; }

.certifs { display: flex; justify-content: space-between; margin: 28px 0 32px; }
.certif { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink2); }
.certif svg { width: 26px; height: 26px; }
.certif span { font-family: var(--serif); font-size: 12px; line-height: 16.8px; letter-spacing: 1.5px; max-width: 150px; }

.size-grid { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 28px; }
.size-btn {
    min-width: 45px; height: 45px; padding: 0 8px; background: transparent; border: 1px solid var(--box);
    font-family: var(--gothic); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; color: var(--ink2); cursor: pointer;
}
.size-btn:hover { border-color: #9a968f; }
.size-btn.active { border-color: var(--ink2); }

.size-hint { font-family: var(--serif); font-size: 14px; line-height: 19.6px; letter-spacing: 1.5px; margin: 2px 0 16px; }


#kleep-container { min-height: 22px; }

/* 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: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    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: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
}

button.addToCart {
    width: 100%;
    height: 50px;
    background: var(--ink2);
    color: #fff;
    border: 0;
    font-family: var(--gothic);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}
button.addToCart:hover { background: #333; }
.delivery { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: 1.5px; margin: 18px 0 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: 'EB Garamond', 'Times New Roman', 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: 'EB Garamond', 'Times New Roman', 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; }

/* Colour dropdown like sezane.com (one entry per colorway of the model, opens upwards) */
.color-select { position: relative; }
.color-current, .color-option {
    display: flex; align-items: center; gap: 28px;
    padding: 2px; border: 1px solid var(--box); background: var(--page);
    font-family: var(--gothic); font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--ink2);
}
.color-current img, .color-option img { width: 53px; height: 74px; object-fit: cover; }
.color-select summary { list-style: none; cursor: pointer; }
.color-select summary::-webkit-details-marker { display: none; }
.color-select .chevron {
    margin-left: auto; margin-right: 20px; width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink2); border-bottom: 1.5px solid var(--ink2);
    transform: translateY(-2px) rotate(45deg);
}
.color-select[open] .chevron { transform: translateY(2px) rotate(-135deg); }
.color-options {
    position: absolute; left: 0; right: 0; bottom: 100%; z-index: 20;
    display: flex; flex-direction: column;
}
.color-option { border-bottom: none; }
.color-option:hover { background: #f6f2ec; }
.color-option.active { display: none; }

/* Kleep drawer (iframe from drawer.kleep.ai): panel slides in/out like the cart drawer, backdrop fades (see pdp.js) */
#kleep-backdrop {
    position: fixed; inset: 0; z-index: 2147483646; background: rgba(0, 0, 0, 0.46);
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
#kleep-backdrop.show { opacity: 1; }
.kleep-wrapper .kleep-iframe { opacity: 0; transition: opacity 0.35s ease; }
.kleep-wrapper.k-open .kleep-iframe { opacity: 1; }
@keyframes kleep-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes kleep-slide-out { from { transform: none; } to { transform: translateX(480px); } }
.kleep-wrapper.k-closing .kleep-iframe { animation: kleep-fade-out 0.35s ease forwards; }
@media (min-width: 1024px) {
    .kleep-wrapper .kleep-iframe {
        opacity: 1;
        clip-path: inset(0 0 0 calc(100% - 480px));
        transform: translateX(480px);
        transition: transform 0.35s cubic-bezier(.22, .61, .36, 1);
    }
    .kleep-wrapper.k-open .kleep-iframe { transform: none; }
    .kleep-wrapper.k-closing .kleep-iframe { animation: kleep-slide-out 0.35s cubic-bezier(.22, .61, .36, 1) forwards; }
}

/* "Added to cart" popup under the bag icon */
.site-header-row { position: relative; }
.cart-pop {
    position: absolute; right: 16px; top: 72px; z-index: 60; width: 340px;
    padding: 18px; background: #fffcf8; border: 1px solid #e1e1e1; box-shadow: 0 8px 24px rgba(0,0,0,.06);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    font-family: 'EB Garamond', 'Times New Roman', serif; font-size: 13px; letter-spacing: 1px; color: #121212; text-align: left;
}
.cart-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.cart-pop p { margin: 0 0 2px; }
.cart-pop-title { font-family: 'Figtree', Arial, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px !important; }
.cart-pop-item { display: flex; gap: 14px; margin-bottom: 16px; }
.cart-pop-item img { width: 64px; height: 90px; object-fit: cover; }
.cart-pop-name { text-transform: uppercase; }
.cart-pop-btn {
    width: 100%; height: 42px; background: #121212; color: #fff; border: 0; cursor: pointer;
    font-family: 'Figtree', Arial, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.pdp-panel .panel-title { font-weight: 600; margin-top: 4px; }
.pdp-panel .panel-title ~ .panel-title { margin-top: 18px; }

/* Length (Standard / Long) for the models that also exist in a tall version */
.length-select {
    display: flex; align-items: center; gap: 14px; margin: 24px 0 0;
    font-family: var(--gothic); font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--ink2);
}
.length-select span { margin-right: 14px; }
.length-btn { height: 45px; line-height: 45px; padding: 0 16px; border: 1px solid var(--box); color: var(--ink2); text-decoration: none; }
.length-btn:hover { border-color: #9a968f; }
.length-btn.active { border-color: var(--ink2); }
.length-hint { font-family: var(--serif); font-size: 14px; line-height: 19.6px; letter-spacing: 1.5px; margin: 10px 0 0; }
