/* ==========================================================
   L'affaire shop: what WordPress and WooCommerce need on top of the
   prototype's stylesheet (laffaire.css, which is never edited by hand).
   Every rule here is either WooCommerce markup the prototype never had,
   or a listed deviation.
   No !important anywhere: WooCommerce's own CSS is not loaded at all.
   ========================================================== */

/* ---- product photos ----------------------------------------------------
   The prototype's photos were pre-tinted to the page beige (#F3ECE0). The
   client's catalogue photos are shot on pure white (sampled: rgb 255,255,255
   at every corner). Multiplying them onto the beige surface gives exactly the
   prototype's tint (white x F3ECE0 = F3ECE0) and leaves the cloth untouched.
   Editorial photos (theme assets) are not product shots and are excluded. */
.card__media img,
.zoom img,
.pdp__thumbs img,
.ditem__img img,
.citem__img img,
.co-item__img img,
.sticky-buy__img img,
.cat__img img,
.chipc__img img:not([src*="/assets/img/"]),
#lbImg{mix-blend-mode:multiply}
.zoom,.pdp__thumbs button,.cat__img{background:var(--paper)}

/* ---- page transition: the incoming page starts covered, then lifts.
   site.js lifts it; if the script never runs, this animation does. ---- */
.is-arriving .curtain{transform:scaleY(1);transform-origin:top;animation:laf-lift .65s cubic-bezier(.65,0,.35,1) 1.2s forwards}
@keyframes laf-lift{to{transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){.is-arriving .curtain{display:none}}
/* The home loader is removed by site.js after its intro (~1.7s). If the script
   never runs, it must not cover the page forever: fade it out regardless. */
.loader:not(.is-done){animation:laf-loader-out .5s ease 3.5s forwards}
@keyframes laf-loader-out{to{opacity:0;visibility:hidden}}

/* ---- states the prototype never needed ---- */
.is-busy{opacity:.5;pointer-events:none;transition:opacity .3s var(--ease)}
.btn[disabled],.btn:disabled{opacity:.45;cursor:not-allowed}
.qty button[disabled]{opacity:.3;cursor:not-allowed;background:none}
.afchip a{width:20px;height:20px;border-radius:50%;display:grid;place-items:center}
.afchip a:hover{background:var(--paper-3)}
.empty{grid-column:1/-1;padding:var(--s7) 0;text-align:center}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- notices: WooCommerce prints three shapes, one of them a <ul>.
   One component, colour is never the only signal (master §4.2c). ---- */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice{
  list-style:none;margin:0 0 var(--s3);padding:14px 18px;border-radius:2px;
  background:var(--paper);box-shadow:inset 0 0 0 1px var(--paper-3);
  font-size:var(--t-sm);line-height:1.5;color:var(--ink);display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.woocommerce-error{box-shadow:inset 0 0 0 1.5px var(--sindoor);flex-direction:column;align-items:flex-start}
.woocommerce-error li{list-style:none}
.woocommerce-message{box-shadow:inset 0 0 0 1px #2F6B3F}
.woocommerce-message .button,.woocommerce-info .button{font-size:var(--t-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-decoration:underline;text-underline-offset:3px;order:2}
.woocommerce-NoticeGroup{margin-bottom:var(--s4)}
.view > .woocommerce-message,.view > .woocommerce-info,.view > .woocommerce-error,.woocommerce-notices-wrapper:not(:empty){max-width:var(--maxw);margin-inline:auto}
.woocommerce-notices-wrapper:empty{display:none}

/* ---- cart ---- */
.srow__rm{font-size:var(--t-xs);color:var(--ink-2);text-decoration:underline;text-underline-offset:2px;margin-left:6px}

/* ---- checkout: three fieldsets became two + Woo's payment block ----
   In the prototype all three steps are sibling <fieldset>s, so the payment
   step is :last-of-type and the delivery step keeps its rule. Woo renders the
   payment step inside its own re-rendered #payment block, so the delivery
   fieldset becomes :last-of-type and would lose it. Restore it explicitly. */
.co__form > .fsec[data-sec="1"]{border-bottom:1px solid var(--paper-3);margin-bottom:var(--s6);padding-bottom:var(--s6)}
#payment .fsec{border-bottom:0;margin-bottom:var(--s4);padding-bottom:0}
.wc_payment_method + .wc_payment_method{margin-top:10px}
.opt-box{padding:12px 4px 4px;font-size:var(--t-sm);color:var(--ink-2)}
.opt-box p{margin:0}
.opt__marks img{height:18px;width:auto}
.co__secure{margin-top:16px;font-size:var(--t-xs);color:var(--ink-2);display:flex;gap:8px;align-items:center}
.form-row.woocommerce-invalid input,.form-row.woocommerce-invalid select{box-shadow:inset 0 0 0 1.5px var(--sindoor)}
.co__place .woocommerce-terms-and-conditions-wrapper{margin-bottom:var(--s3);font-size:var(--t-sm)}
#place_order{position:relative}
.blockUI.blockOverlay{background:var(--paper)}

/* ---- thank you: bank details printed by the bank-transfer gateway ---- */
.woocommerce-bacs-bank-details{margin-top:var(--s5)}
.woocommerce-bacs-bank-details h2,.woocommerce-bacs-bank-details h3{font-family:var(--serif);font-weight:400;text-transform:uppercase;font-size:var(--t-xl);margin-bottom:var(--s2)}
.woocommerce-bacs-bank-details ul{list-style:none;display:grid;gap:4px;font-size:var(--t-sm)}

/* ---- plain pages: account, policies, 404 ----
   (.laf-page, never .page: WordPress puts a "page" class on <body> of every
   page, so a .page rule pads the whole body. Found on the cart, 10 Oct.)
   No hero, so a solid header and real clearance under it (master §4.2). */
.laf-page{padding-block:var(--s5) var(--sec)}
.laf-page .crumbs{margin-bottom:var(--s4)}
.page__title{font-size:var(--t-4xl);margin-bottom:var(--s5)}
.post-body{max-width:72ch;font-size:var(--t-md);color:var(--ink-2)}
.post-body > * + *{margin-top:var(--s2)}
.post-body h2,.post-body h3{font-family:var(--serif);font-weight:400;text-transform:uppercase;color:var(--ink);margin-top:var(--s5)}
.post-body h2{font-size:var(--t-2xl)}
.post-body h3{font-size:var(--t-xl)}
.post-body ul,.post-body ol{padding-left:1.2em}
.post-body a{text-decoration:underline;text-underline-offset:3px}

/* My Account: WooCommerce's markup, in the prototype's form language */
.woocommerce-account .post-body{max-width:none}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:var(--s5)}
.woocommerce-MyAccount-navigation a{display:inline-flex;height:36px;align-items:center;padding:0 16px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--paper-3);font-size:var(--t-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;color:var(--ink)}
.woocommerce-MyAccount-navigation .is-active a{background:var(--ink);color:var(--paper);box-shadow:none}
.woocommerce-account form .form-row,.woocommerce-ResetPassword .form-row{display:flex;flex-direction:column;gap:6px;margin-bottom:var(--s2)}
.woocommerce-account form label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.woocommerce-account input.input-text,.woocommerce-account select,.woocommerce-account textarea{width:100%;height:52px;padding:0 16px;background:var(--paper);border:0;border-radius:2px;box-shadow:inset 0 0 0 1px var(--paper-3);font:inherit;color:var(--ink)}
.woocommerce-account input.input-text:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ink)}
.woocommerce-account .button,.woocommerce-account button[type="submit"]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 28px;border-radius:999px;background:var(--sindoor);color:var(--on-dark);font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;margin-top:var(--s2)}
.woocommerce-account .woocommerce-form-login__rememberme{flex-direction:row;align-items:center;gap:8px;text-transform:none;letter-spacing:0;font-size:var(--t-sm)}
.woocommerce-account .shop_table{width:100%;border-collapse:collapse;font-size:var(--t-sm)}
.woocommerce-account .shop_table th,.woocommerce-account .shop_table td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--paper-3)}
.woocommerce-account .shop_table th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);font-weight:600}
.woocommerce-Addresses{display:grid;gap:var(--s4);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.woocommerce-account .post-body h2{margin-top:var(--s4)}

/* Appointment band: the parallax moves the image ±12% of ITS height (1.24x the band), so the
   prototype's -12% inset left a strip at the top (end of scroll) and bottom (start) that showed
   the page through the veil as a grey bar (Harsh, 12 Oct 2026). 16% covers 0.12 x (1 + 2 x 0.16). */
.band__media{inset:-16% 0}
/* Same overshoot on the Svasti copper photo (parallax -10 = ±12% of the frame, the image only had
   +20% to give, so a 17px strip opened at its foot). 130% tall, centred: margin -12% of the width = -15% of the height. */
.svasti__hero img{height:130%;margin-top:-12%}

/* Logged in, WordPress's admin bar sits on top of the page (Harsh, 12 Oct 2026). The prototype already
   offsets every fixed and sticky part (header, mega menu, drawers, search, checkout header, sticky
   columns) by --dev-h, the height of its design bar, so the admin bar takes that slot. WordPress itself
   pushes the in-flow page down with html{margin-top}. Below 600px core lets the bar scroll away, which
   would leave a gap over the fixed header: keep it fixed there too. */
body.admin-bar { --dev-h: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar { --dev-h: 46px; }
	#wpadminbar { position: fixed; }
}

/* The client's choices (12 Oct 2026, chosen in the Preview pill, now built in). Sentence case for this
   file's capitals, the same rule bin/sync-design.py adds to laffaire.css. */
:is(.woocommerce-message .button,.woocommerce-info .button,.woocommerce-bacs-bank-details h2,.woocommerce-bacs-bank-details h3,.post-body h2,.post-body h3,.woocommerce-MyAccount-navigation a,.woocommerce-account form label,.woocommerce-account .button,.woocommerce-account button[type="submit"],.woocommerce-account .shop_table th){text-transform:none!important;letter-spacing:.01em!important}
/* The appointment band's backdrop: silk from the 2015 PSDs instead of the placeholder photo, with a
   lighter veil because the texture is already deep (projects/laffaire/brand-site-v2, src/from-psd/bg). */
.band::before{background:rgba(30,16,12,.28)}
.band__media img{object-position:50% 50%}
/* The shop grid's two editorial tiles use PSD textures instead of photos (inc/woo.php laf_edit_tile).
   Saffron: centre its ink swirl in the tall tile, and a deeper veil so the copy reads on the bright ground. */
.edit-tile[data-edit="stoles"] img{object-position:73% 50%}
.edit-tile[data-edit="stoles"]::before{background:linear-gradient(0deg,rgba(46,20,17,.86),rgba(46,20,17,.5) 45%,rgba(46,20,17,0) 80%)}
/* The section gap before the footer belongs to the last rail that SHOWS. The prototype gives it to
   .prail:last-child, which on a product page is "Recently viewed", hidden until there is a history, so
   "You may also like" sat flush on the footer (Harsh, 12 Oct 2026). */
.prail:not([hidden]):not(:has(~ .prail:not([hidden]))){padding-bottom:var(--sec)}
/* Small labels (product details, store details, order details) were taupe at 12px: 2.4:1 on the warm page,
   readable only while they were spaced capitals. In sentence case they need the body-copy colour (5.4:1);
   the product details' labels also match their values' size (Mukul, 13 Oct 2026: "text is a little hard to read"). */
.spec dt,.store__dl dt,.infobox dt{color:var(--ink-2)}
.spec dt{font-size:var(--t-sm);padding-top:12px}

/* Hero texture (Harsh, 17 Oct 2026): the photo is now a red Kanjeevaram weave (hero-weave.webp), busier and redder than the
   design's portrait. A deeper shade keeps the cream words and the red button readable on it. */
.hero__shade{background:rgba(40,16,12,.52)}
.hero__shade::after{height:70%;background:linear-gradient(0deg,rgba(30,12,9,.78),rgba(30,12,9,0))}
.hero__media img{object-position:50% 50%}
/* Hero, 17 Nov 2026 (Harsh): the Kirti campaign photo at about 85% of the screen height (70% read too short, Harsh). The photo is already dark, so the
   flat shade is lighter than the weave's; the bottom gradient stays for the headline. */
.hero{height:85svh;min-height:600px}
.hero .hero__shade{background:rgba(40,16,12,.12)}
.hero .hero__shade::after{height:50%;background:linear-gradient(0deg,rgba(30,12,9,.62),rgba(30,12,9,0))}
.hero .hero__media img{object-position:50% 72%}
.hero .hero__title{font-size:clamp(2.25rem,1rem + 3.2vw,4.25rem)}  /* sized for the shorter hero, so the photo shows */

/* The All page in two sections (client, 18 Oct 2026): a heading row spanning the grid before each one. */
.sechead{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--s2) var(--s4);padding-top:var(--s4);border-top:1px solid var(--line)}
.sechead:first-child{padding-top:0;border-top:0}
.sechead__t{font-family:var(--serif);font-weight:400;font-size:var(--t-2xl);line-height:1.1;margin:0}
.sechead__n{color:var(--ink-2);font-size:var(--t-sm)}
.sechead__all{margin-left:auto}
.secfoot{grid-column:1/-1;display:flex;justify-content:center;padding-bottom:var(--s4)}

/* The announcement strip is in the page flow (36px), and the design's .view padding counted it again: a 36px empty band under
   the header on every page but Home (Harsh, 18 Oct 2026, "why is there this extra space"). The strip already pushes the page
   down; the padding only needs the header. Home keeps 0 (its hero sits under the header); checkout keeps its own rule. */
.view:not(.view--home){padding-top:calc(var(--header-h) + var(--dev-h))}

/* Select Citywalk's shopfront: the card shows 89% of the photo's width; anchored left so the whole L'AFFAIRE on the glass
   shows and the tree of life still fits at the right (client, 19 Oct 2026: "the L is cut"). */
.store__img img[src*="saket-front"]{object-position:0 50%}

/* No box behind the pieces (client, 19 Oct 2026; Harsh: "don't make the white product card, allow the page background").
   The photos are now cut out (migration/cutouts.py), so the card has no fill, no frame and no blend: the page shows through,
   the whole piece shows (contain, never cropped), and its colours are true (the old multiply tinted them to the beige). */
.card,.card:hover,.card:focus-within{border-color:transparent;background:transparent}
.card__box{border-bottom:0}
.card__media,.catalog .card__media,.prail .card__media,.svasti .card__media{background:transparent;border-radius:0}
.card__media .img-a,.card__media .img-b{object-fit:contain}
.card__info{padding:12px 2px 6px}
.card__media img,.zoom img,.pdp__thumbs img,.ditem__img img,.citem__img img,.co-item__img img,.sticky-buy__img img{mix-blend-mode:normal}
.zoom,.pdp__thumbs button,.ditem__img,.citem__img,.co-item__img,.sticky-buy__img{background:transparent;outline:0}
.zoom img{object-fit:contain}
/* the hidden "Add to bag" button sat just below the photo and its shadow showed as a line once the card lost its fill: it
   now fades out with its slide, and back in on hover or focus */
.card__add{opacity:0;transition:transform .6s var(--ease),opacity .35s var(--ease)}
.card:hover .card__add,.card:focus-within .card__add{opacity:1}
