/* ═══════════════════════════════════════════════════════════
   ORÉVALIE · système de design global
   Chargé après main.css. Les variables viennent de snippets/head-config.liquid
   (Paramètres du thème dans le dashboard) : rien n'est figé ici.
   ═══════════════════════════════════════════════════════════ */

:root{
  --accent:var(--brand-blue);
  --tint:var(--tint-default);
  --product-line:var(--product-line-default);
}

html{ scroll-padding-top:calc(var(--header-h) + 5px); }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-family);
  line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased;
}
body *{ line-height:inherit; }
h1,h2,h3,h4,h5,h6{ font-weight:var(--heading-weight); letter-spacing:var(--heading-tracking); line-height:var(--heading-lh); }
h1,h2,h3,h4,h5,h6,p{ margin:0; }
p{ color:var(--muted); }
em{ font-family:var(--serif); font-style:normal; font-weight:400; }
a{ color:inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--hover);
  outline-offset:5px;
}
img{ max-width:100%; }
svg{ stroke-linecap:round; stroke-linejoin:round; }

/* Contenu principal : largeur et marges */
yc-section{
  padding-inline:var(--pad);
  color:var(--ink);
}
yc-section:not([data-full]){ max-width:var(--container-max); margin-inline:auto; }
yc-section > *:not(:last-child){ margin-block-end:40px; }
@media (max-width:768px){
  yc-section{ padding-inline:var(--pad-mobile); }
}
@media (min-width:1650px){
  yc-header, .announcement{ padding-inline:max(var(--pad), calc((100vw - 1480px) / 2)); }
}

/* Grille générique Origins → colonnes réglables */
.items-grid{
  grid-template-columns:repeat(var(--grid-cols), minmax(0, 1fr));
  gap:var(--catalog-row-gap) var(--grid-gap);
}
@media (max-width:1100px){
  .items-grid, .items-grid:has(> :nth-child(4)){
    grid-template-columns:repeat(var(--grid-cols-tablet), minmax(0, 1fr)) !important;
    gap:var(--catalog-row-gap) var(--grid-gap-tablet);
  }
}
@media (max-width:760px){
  .items-grid, .items-grid:has(> :nth-child(4)){
    grid-template-columns:repeat(var(--grid-cols-mobile), minmax(0, 1fr)) !important;
    gap:var(--catalog-row-gap-mobile) var(--grid-gap-mobile-x);
  }
}

/* ── Boutons Origins → boutons ORÉVALIE ──
   Style (plein / contour / doux), couleurs et survol : Paramètres du thème › Orévalie · Boutons et champs */
button.primary, .yc-btn.primary{
  background:var(--btn-fill);
  color:var(--btn-fg);
  border:1px solid var(--btn-bd);
  min-height:var(--btn-min-h);
  padding:var(--btn-pad-y) var(--btn-pad-x);
  font-size:var(--btn-size);
  font-weight:500;
  letter-spacing:var(--btn-tracking);
  text-transform:var(--btn-transform);
  gap:var(--btn-gap);
  border-radius:var(--button-border-radius);
  transition:background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
button.primary:hover:not(:disabled), .yc-btn.primary:hover:not(:disabled){
  opacity:1;
  background:var(--btn-fill-h);
  color:var(--btn-fg-h);
  border-color:var(--btn-bd-h);
  transform:translateY(var(--btn-lift));
  box-shadow:var(--btn-shadow-h);
}
button.primary:disabled, .yc-btn.primary:disabled{ opacity:.5; }
button.secondary, .yc-btn.secondary{
  color:var(--ink);
  border:1px solid var(--line);
  min-height:var(--btn-min-h);
  font-size:var(--btn-size);
  letter-spacing:var(--btn-tracking);
  text-transform:var(--btn-transform);
  border-radius:var(--button-border-radius);
  background:transparent;
  transition:background-color .22s ease, color .22s ease, border-color .22s ease;
}
button.secondary:hover:not(:disabled), .yc-btn.secondary:hover:not(:disabled){
  color:var(--ink);
  background:var(--sand);
  border-color:var(--ink);
}
@media (max-width:760px){
  button.primary, .yc-btn.primary, button.secondary, .yc-btn.secondary{
    min-height:var(--btn-min-h-mobile);
    font-size:var(--btn-size-mobile);
    gap:var(--btn-gap-mobile);
  }
}
button.icon, .yc-btn.icon{ border-color:var(--line); }

/* ── Champs de formulaire ──
   Style (encadré / souligné / fond doux), couleurs, focus et étiquettes : mêmes réglages du thème */
select, textarea, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=search]):not([type=hidden]):not([type=range]):not([type=color]){
  padding:var(--input-pad-y) var(--input-pad-x);
  border:solid var(--input-bc-eff);
  border-width:var(--input-bw);
  border-radius:var(--input-radius-eff);
  font-size:var(--input-size);
  background-color:var(--input-bg-on);
  color:var(--input-ink);
  transition:border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
select::placeholder, textarea::placeholder, input::placeholder{ color:var(--input-ph); opacity:1; }
select:hover, textarea:hover, input:not([type=checkbox]):not([type=radio]):not([type=file]):hover{ border-color:color-mix(in srgb, var(--input-focus) 45%, var(--input-bc-eff)); }
select:focus, textarea:focus, input:focus{
  border-color:var(--input-focus);
  background-color:var(--input-bg-f);
  box-shadow:var(--input-ring);
  outline:0;
}
:root[data-form="underline"] select:focus, :root[data-form="underline"] textarea:focus, :root[data-form="underline"] input:focus{ box-shadow:0 1px 0 0 var(--input-focus); }
input[type=checkbox], input[type=radio], input[type=range]{ accent-color:var(--btn-bg); }
label{ color:var(--label-color); }
.field > label, .form-field > label, form .field label{
  font-size:var(--label-size);
  letter-spacing:var(--label-tracking);
  text-transform:var(--label-transform);
  font-weight:var(--label-weight);
  color:var(--label-color);
}
@media (max-width:768px){
  select, textarea, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=search]):not([type=hidden]){
    font-size:var(--input-size-mobile);
  }
}

/* ── Fil d'Ariane ── */
.breadcrumb{ font-size:11px; color:var(--muted); padding:24px 0; }
.breadcrumb ol{ gap:12px; }
.breadcrumb ol li{ gap:12px; --faded-link-color:var(--muted); }
.breadcrumb ol li a{ font-size:11px; color:var(--muted); }
.breadcrumb ol li a:hover{ text-decoration:underline; }
.breadcrumb ol li a[aria-current]{ color:var(--ink); }
.breadcrumb ol li svg{ width:10px; height:10px; }
@media (max-width:760px){
  .breadcrumb{ padding:18px 0; }
  .breadcrumb ol, .breadcrumb ol li{ gap:9px; }
  .breadcrumb ol li a{ font-size:9px; }
}

/* ── Carte produit ── */
.product-card{
  position:relative;
  min-width:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink);
}
.product-card .img-link{
  position:relative;
  display:block;
  overflow:hidden;
  background:var(--media-bg);
  aspect-ratio:var(--card-ratio);
  border-radius:var(--product-card-border-radius);
  border-bottom:var(--card-accent-border) solid var(--accent);
  height:auto;
}
.product-card .img-link img, .product-card[data-style] .img-link img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0;
  transition:transform .6s;
  pointer-events:none;
}
.product-card:hover .img-link img{ transform:scale(var(--card-zoom)); }
.product-card .img-link .card-placeholder{ height:100%; background:var(--media-bg); }
.product-card[data-style$=standard] .img-link, .product-card[data-style$=standard] img{ height:auto; }
.product-card[data-style$=standard] .img-link img{ height:100%; }
.product-card[data-style$=compact]::before{ display:none; }
.product-card[data-style$=compact] .info{
  position:static;
  margin:0;
  width:auto;
  inset:auto;
}
.product-card .badge{
  position:absolute;
  inset-block-start:13px;
  background:var(--tint, var(--badge-bg-color));
  color:var(--accent, var(--badge-text-color));
  padding:6px 10px;
  border-radius:0;
  font-size:var(--badge-size);
  letter-spacing:.1em;
  text-transform:uppercase;
  pointer-events:none;
  line-height:1.4;
}
.product-card .badge[data-position$=left]{ inset-inline-start:13px; }
.product-card .badge[data-position$=right]{ inset-inline-end:13px; }
.product-card[data-accent] .badge{ background:var(--tint); color:var(--accent); }
.product-card:not([data-accent]) .badge{ background:var(--badge-bg-color); color:var(--badge-text-color); }
.product-card .badge span{ max-width:none; }
.product-card .heart{
  position:absolute;
  inset-inline-end:8px;
  inset-block-start:7px;
  z-index:2;
  width:35px;
  height:35px;
  padding:0;
  border-radius:50%;
  background:#ffffffd9;
  border:0;
  color:var(--ink);
}
.product-card .heart svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:var(--icon-stroke); }
.product-card .heart[aria-pressed=true]{ color:var(--accent); }
.product-card .heart[aria-pressed=true] svg{ fill:var(--accent); }
.product-card .info{
  padding:0;
  display:block;
  background:transparent;
  color:var(--ink);
  border-radius:0;
}
.product-card .card-meta{
  font-size:var(--card-meta);
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--accent);
  margin-top:19px;
  line-height:1.5;
}
.product-card .card-meta::before{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
  margin-inline-end:7px;
  vertical-align:1px;
}
.product-card .card-title{
  display:block;
  margin:5px 0;
}
.product-card .card-title .price{ display:block; margin-top:4px; }
@media (min-width:1101px){
  .product-card .card-title{ display:var(--card-title-layout,block); justify-content:space-between; gap:10px; align-items:baseline; }
  .product-card .card-title .price{ margin-top:var(--card-price-gap,4px); }
}
.product-card .info .title{
  font-size:var(--card-title);
  font-weight:450;
  line-height:1.35;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  color:var(--ink);
  justify-self:auto;
  min-width:0;
}
.product-card .info .title:hover{ text-decoration:none; }
.product-card .info .price{
  display:block;
  font-size:var(--card-price);
  white-space:nowrap;
  color:var(--ink);
  justify-self:auto;
}
.product-card .info .price .current{ font-size:inherit; font-weight:400; }
.product-card .info .price .compare-at{ font-size:inherit; margin-inline-start:6px; opacity:.55; text-decoration:line-through; }
.product-card .card-description{
  font-size:var(--card-desc);
  line-height:1.5;
  min-height:18px;
  color:var(--muted);
}
/* Ligne « Ajouter au panier » */
.product-card .info button.secondary,
.product-card .info .yc-btn.secondary,
.product-card .info .product-quick-view button.secondary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:0;
  font-size:var(--card-add);
  letter-spacing:0;
  text-align:left;
  background:transparent;
  color:var(--ink);
  border:0;
  border-top:1px solid var(--product-line);
  border-radius:0;
  padding:12px 0;
  margin-top:16px;
}
.product-card .info button.secondary:hover:not(:disabled),
.product-card .info .yc-btn.secondary:hover:not(:disabled){
  background:transparent;
  color:var(--accent);
  border-color:var(--product-line);
}
.product-card .info button.secondary .card-add-icon,
.product-card .info .card-add svg{
  width:18px;
  height:18px;
  stroke:var(--accent);
  fill:none;
  stroke-width:var(--icon-stroke);
}
@media (min-width:761px) and (max-width:1100px){
  .product-card .info .title{ font-size:var(--card-title-tablet,15px); }
}
@media (max-width:760px){
  .product-card .img-link{ aspect-ratio:var(--card-ratio); }
  .product-card .badge{ inset-block-start:9px; font-size:var(--badge-size-mobile); padding:5px 7px; }
  .product-card .badge[data-position$=left]{ inset-inline-start:8px; }
  .product-card .badge[data-position$=right]{ inset-inline-end:8px; }
  .product-card .heart{ width:28px; height:28px; inset-inline-end:5px; inset-block-start:6px; }
  .product-card .heart svg{ width:16px; height:16px; }
  .product-card .card-meta{ font-size:var(--card-meta-mobile); margin-top:14px; }
  .product-card .info .title{ font-size:var(--card-title-mobile); }
  .product-card[data-title-one] .info .title{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.3; }
  .product-card .info .price{ font-size:var(--card-price-mobile); }
  .product-card .card-description{ font-size:var(--card-desc-mobile); min-height:30px; }
  .product-card .info button.secondary, .product-card .info .yc-btn.secondary{
    font-size:var(--card-add-mobile);
    padding:10px 0;
    margin-top:11px;
  }
  .product-card .info button.secondary .card-add-icon{ width:16px; height:16px; }
}

/* ── Quantité ── */
yc-quantity-control{ border:1px solid var(--line); border-radius:var(--input-border-radius); }

/* ── États vides ── */
.empty .title{ font-family:var(--font-family); font-weight:var(--heading-weight); }
.empty .icon{ color:var(--line); }

/* ── Modales / toasts ── */
.toast, yc-toast .toast{ border-radius:var(--toast-border-radius); }
yc-modal-content{ --modal-border-radius:var(--modal-border-radius); }
yc-overlay{ --overlay-background:#10253d66; }

/* ── En-têtes de section Origins (produits associés, collections, colonnes…) ── */
yc-section yc-section-head{ margin-bottom:40px; gap:15px; }
yc-section yc-section-head h2{
  font-size:clamp(var(--section-title-min), var(--section-title-vw), var(--section-title-max));
  font-weight:var(--heading-weight);
  letter-spacing:var(--heading-tracking);
  line-height:var(--heading-lh);
}
yc-section yc-section-head p{ font-size:14px; color:var(--muted); }
yc-section .items-grid > li{ min-width:0; }
@media (max-width:760px){
  yc-section yc-section-head{ margin-bottom:28px; }
  yc-section yc-section-head h2{ font-size:var(--section-title-mobile); }
  yc-section yc-section-head p{ font-size:13px; }
}

/* ── Page en carte arrondie sur fond clair (web) · réglages : Orévalie › Page en carte arrondie ── */
@media (min-width:1025px){
  body[data-ov-card]{ background:var(--ov-card-bg, #f2f2f2); padding:0 var(--ov-card-gap, 12px) var(--ov-card-gap, 12px); }
  body[data-ov-card] .ov-card{ background:var(--paper,#fff); border-radius:var(--ov-card-radius, 30px); overflow:clip; margin-top:var(--ov-card-gap, 12px); position:relative; }
}
