/* ==========================================================================
   v40d · "Maison" layer — lighter, warmer, more feminine luxury. LOOK ONLY (no markup, no features removed).
   Loads after every other stylesheet (also bundled into assets/dist). Remove `require 'maison.php'` in functions.php to go back.
   ========================================================================== */
:root{
  --ms-ink:#1f1c18;--ms-mute:#8a8378;--ms-line:#e7e1d6;--ms-bg:#faf8f4;--ms-tile:#f3f1ec;
  --ms-rose:#8c3a45;          /* sale price / discount text: deep rosewood */
  --ms-champ:#b8956a;         /* champagne: small details only */
  --ms-shadow:0 6px 18px -10px rgba(31,28,24,.35);
}

/* ---------- 1 · header & bottom bar: solid (no see-through ghost text when scrolling) ---------- */
.ng-head,.ng-head.lm-head{background:var(--ms-bg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.ng-bottom,.ng-bottom.lm-bottom{background:var(--ms-bg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* cart icon: no black counter box — a small champagne dot shows that the bag has items */
.lm-head .ng-hcart{position:relative}
.lm-head .ng-hcart .cnt,.ng-hcart .cnt{top:9px!important;right:7px!important;width:8px!important;min-width:8px!important;height:8px!important;padding:0!important;
  border-radius:50%!important;background:var(--ms-champ)!important;box-shadow:0 0 0 2px var(--ms-bg)!important;color:transparent!important;font-size:0!important;overflow:hidden}
.lm-head .ng-hcart .cnt[hidden],.ng-hcart .cnt[hidden]{display:none!important}

/* ---------- 2 · product cards ---------- */
.ng-grid{gap:30px 14px}
@media(min-width:860px){.ng-grid{gap:48px 24px}}
.ng-card .pic{background:var(--ms-tile)}

/* discount: small ivory label with rosewood text instead of a brown block */
.ng-card .tag,.ng-card .tag.off{top:10px!important;left:10px!important;padding:5px 8px!important;background:rgba(255,255,255,.94)!important;color:var(--ms-rose)!important;
  font:600 11px/1 var(--bm-sans)!important;letter-spacing:.04em!important;box-shadow:none!important;border-radius:0!important}

/* favourite: soft white circle so it reads on any photo */
.ng-card .pic button.ng-heart.ng-heart{top:8px!important;right:8px!important;width:36px!important;height:36px!important;border-radius:50%!important;background:rgba(255,255,255,.9)!important;
  box-shadow:var(--ms-shadow)!important;color:var(--ms-ink)!important}
.ng-card .ng-heart svg{width:17px!important;height:17px!important}
.ng-card .ng-heart.on{color:var(--ms-rose)!important}

/* quick view (eye): only on computers, on hover — phones keep a clean picture (tap = product page) */
.ng-card .pic button.ng-eye.ng-eye{top:52px!important;right:8px!important;width:36px!important;height:36px!important;border-radius:50%!important;background:rgba(255,255,255,.9)!important;box-shadow:var(--ms-shadow)!important}
@media (hover:none),(max-width:859.98px){.ng-card .ng-eye{display:none!important}}
@media (hover:hover) and (min-width:860px){.ng-card .ng-eye{opacity:0;transition:opacity .2s}.ng-card:hover .ng-eye,.ng-card .ng-eye:focus-visible{opacity:1}}

/* add to bag: light round button on the photo — no black background */
@supports (container-type:inline-size){
  .ng-card .body button.ng-addbtn:not(.off){right:10px!important;top:calc(100cqw*1.04 - 50px)!important;width:40px!important;height:40px!important;border-radius:50%!important;
    border:0!important;background:rgba(255,255,255,.94)!important;color:var(--ms-ink)!important;box-shadow:var(--ms-shadow)!important;transition:transform .15s,background .2s,color .2s}
  .ng-card .ng-addbtn:not(.off):hover{background:var(--ms-champ)!important;color:#fff!important}
  .ng-card .ng-addbtn:not(.off):active{transform:scale(.92)}
  .ng-card .ng-addbtn:not(.off) svg{width:19px!important;height:19px!important;stroke-width:1.6}
}

/* text block: calm, 2-line titles so every card lines up */
.ng-card .body{padding-top:12px!important;gap:5px!important}
.ng-card .body h3{font:400 13.5px/1.38 var(--bm-sans)!important;color:var(--ms-ink)}
.ng-card .body h3 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ng-card .ng-price{gap:0 8px!important;align-items:baseline;order:0}
.ng-card .ng-price strong{font:600 15px/1.2 var(--bm-sans)!important;color:var(--ms-ink)!important;letter-spacing:.01em}
.ng-card .ng-price:has(s) strong{color:var(--ms-rose)!important}
.ng-card .ng-price s{font:400 12.5px/1.2 var(--bm-sans)!important;color:var(--ms-mute)!important}
.ng-card .rate{margin:0!important;display:flex;align-items:center;gap:5px;font-size:11px;line-height:1}
.ng-card .rate .stars{font-size:11px;letter-spacing:1px;color:var(--ms-champ)!important}
.ng-card .rate small{font:400 11px var(--bm-sans);color:var(--ms-mute)}
.ng-cdots{gap:7px!important;margin-top:4px}
.ng-cdots .cd{width:13px!important;height:13px!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.ng-cdots .more{font:400 11.5px var(--bm-sans);color:var(--ms-mute)}
.ng-card .left{font:500 11.5px var(--bm-sans)!important;color:var(--ms-rose)!important}

/* ---------- 3 · faster feel: content shows immediately (no fade-in delays on cards, galleries, panels) ---------- */
.lx-js .lx-reveal,.lx2-js .lx2-rv{opacity:1!important;transform:none!important;transition:none!important}
.ng-grid>.ng-card{animation:none!important}

/* ---------- 4 · less clutter on phones ---------- */
@media(max-width:859.98px){.lx-top{display:none!important}}   /* the bottom bar already gives quick access; no button over the products */
.lx2-progress{display:none!important}                          /* thin reading line at the very top */
.lx-top.lx-top.lx-top{width:42px;height:42px;border-radius:50%!important;background:#fff!important;border:0!important;box-shadow:var(--ms-shadow)}

/* ---------- 5 · section titles & links ---------- */
.bm-title .bm-all{font:500 12px var(--bm-sans);letter-spacing:.08em;text-transform:uppercase}
.lm-bottom .on::after{background:var(--ms-champ)!important}

/* ---------- 6 · never wider than the screen (v40e) ----------
   Any element that sticks out (e.g. a full-bleed product rail with negative margins) made mobile Chrome zoom the
   whole page out, leaving a blank strip on the right. `clip` cuts the overflow without creating a scroll box,
   so the sticky header keeps working. Older browsers keep the existing body{overflow-x:hidden}. */
@supports (overflow:clip){html,body{overflow-x:clip}}
img,video,svg{max-width:100%}

/* ---------- 7 · product page: "En tu carrito · Ver carrito" no longer pushes the buttons off screen (v40f) ----------
   The long label was forced onto one line and the column grew to fit it (434px on a 390px phone). */
.ng-main.ng-prod-page .ng-info,.ng-main.ng-prod-page #ngBuyForm,.ng-main.ng-prod-page .lx3-cta{min-width:0;max-width:100%}
.ng-main.ng-prod-page .lx3-cta>button{min-width:0}
.ng-main.ng-prod-page .lx3-cta>button span{min-width:0}
.ng-main.ng-prod-page .lx3-cta>button span,.pdp-sticky .ng-btn span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15;text-align:center}
.pdp-sticky .ng-btn{min-width:0}
.pdp-sticky .ng-btn span{min-width:0}

/* ---------- 8 · "Seguir" (account page / empty orders) was dark text on a dark button (v40h) ----------
   An old layer paints .lm-btn with var(--gold) + dark text; the v37 look turned --gold into near-black. */
.lm-btn{background:var(--ms-ink)!important;color:#fff!important;border:0!important}
.lm-btn span,.lm-btn svg{color:inherit!important}
.lm-btn:hover{background:var(--ms-champ)!important;color:#fff!important}
