/*
Theme Name:   Salo District
Theme URI:    https://salodistrict.goagl.in
Description:  Tema hijo de Astra para Salo District — ropa femenina con envío a todo Chile. Paleta del logo: crema, arena y dorado; el dorado de marca solo decora, el texto va en tinta.
Author:       VendeWEB.cl
Template:     astra
Version:      1.0.0
Text Domain:  salodistrict
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --sd-crema:   #f6f0e7;  /* fondo general, el beige del logo */
  --sd-arena:   #ece2d3;
  --sd-linea:   #ddd1bf;
  --sd-tinta:   #1f1a16;
  --sd-gris:    #6b6259;
  --sd-oro:     #b8955a;  /* dorado del logo: filetes y detalles, nunca texto sobre claro */
  --sd-oro-txt: #7a5c2a;  /* dorado quemado para texto sobre crema (5,4:1) */
  --sd-blanco:  #fffdf9;
  --sd-serif:   "Cormorant Garamond", "Times New Roman", serif;
  --sd-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --sd-ancho:   1240px;
  --sd-lado:    clamp(16px, 4vw, 40px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body.sd { background: var(--sd-crema); }
body.sd .site, body.sd .site-content, body.sd #content { background: transparent; }
html, body.sd { overflow-x: clip; }
/* El brillo se mueve con background-position: con transform/inset negativo Safari lo contaba como ancho y la página se corría */
/* capas más grandes que la pantalla y sin repetir: al moverse no aparecen costuras en los bordes */
@keyframes sd-brillo {
  0%, 100% { background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%; }
  50%      { background-position: 20% 65%, 80% 35%, 35% 25%, 70% 75%; }
}
body.sd::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 32% at 12% 18%, rgba(214,176,110,.42), transparent 70%),
    radial-gradient(34% 30% at 88% 30%, rgba(228,184,160,.42), transparent 70%),
    radial-gradient(40% 36% at 70% 88%, rgba(196,158,92,.34), transparent 70%),
    radial-gradient(30% 28% at 20% 80%, rgba(236,210,172,.50), transparent 70%);
  background-size: 140% 140%; background-repeat: no-repeat;
  animation: sd-brillo 26s ease-in-out infinite;
}
body.sd::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body.sd::before { animation: none; } }
body.sd {
  /* los acentos de Astra (pestañas, enlaces activos) pasan a tinta */
  --ast-global-color-0: #1f1a16;
  --ast-global-color-1: #3a322b;
  color: var(--sd-tinta);
  font-family: var(--sd-sans);
  font-size: 16px;
  line-height: 1.6;
}
body.sd h1, body.sd h2, body.sd h3, body.sd .entry-title, body.sd .product_title {
  font-family: var(--sd-serif);
  font-weight: 600;
  color: var(--sd-tinta);
  letter-spacing: 0;
  line-height: 1.15;
}
body.sd a { color: var(--sd-tinta); }
body.sd a:hover { color: var(--sd-oro-txt); }
body.sd :focus-visible { outline: 2px solid var(--sd-oro-txt); outline-offset: 2px; }
.sd-sin-scroll { overflow: hidden; }
.sd-oculto { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.sd-btn, body.sd .sd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--sd-tinta); color: var(--sd-crema);
  border: 1px solid var(--sd-tinta); border-radius: 999px;
  font: 500 15px/1 var(--sd-sans); letter-spacing: .02em; text-decoration: none;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.sd-btn:hover, body.sd .sd-btn:hover { background: #3a322b; color: var(--sd-crema); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(31,26,22,.5); }
.sd-btn--linea, body.sd .sd-btn--linea { background: transparent; color: var(--sd-tinta); }
.sd-btn--linea:hover, body.sd .sd-btn--linea:hover { background: var(--sd-tinta); color: var(--sd-crema); }

/* ==========================================================================
   3. Cabecera
   ========================================================================== */
.sd-aviso {
  background: var(--sd-tinta); color: var(--sd-crema);
  text-align: center; font-size: 13px; padding: 8px var(--sd-lado);
}
.sd-aviso a, body.sd .sd-aviso a { color: var(--sd-crema); text-decoration: underline; text-underline-offset: 2px; }
.sd-aviso a:hover, body.sd .sd-aviso a:hover { color: #fff; }
.sd-cab {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,240,231,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--sd-linea); transition: box-shadow .3s;
}
.sd-cab.is-bajo { box-shadow: 0 8px 30px rgba(31,26,22,.08); }
.admin-bar .sd-cab { top: 32px; }
.sd-cab__in {
  max-width: var(--sd-ancho); margin: 0 auto; padding: 10px var(--sd-lado);
  display: flex; align-items: center; gap: 32px;
}
.sd-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.sd-logo__salo { font: 500 30px/1 var(--sd-serif); letter-spacing: .08em; color: var(--sd-tinta); }
.sd-logo__district {
  font: 500 10px/1 var(--sd-sans); letter-spacing: .42em; color: var(--sd-oro-txt);
  margin-top: 5px; padding: 0 0 0 .42em;
  display: flex; align-items: center; gap: 6px;
}
.sd-logo__district::before, .sd-logo__district::after { content: ""; width: 14px; height: 1px; background: var(--sd-oro); }

.sd-nav { flex: 1; }
.sd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; justify-content: center; }
.sd-nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.sd-nav a:hover { border-color: var(--sd-oro); color: var(--sd-tinta) !important; }
.sd-nav__cerrar, .sd-cab__menu { display: none; background: none; border: 0; padding: 6px; color: var(--sd-tinta); cursor: pointer; }
.sd-cab__acciones { display: flex; gap: 14px; align-items: center; }
.sd-cab__acciones a { display: inline-flex; text-decoration: none; position: relative; }
.sd-carro__n {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--sd-tinta); color: var(--sd-crema); border-radius: 9px;
  font-size: 11px; line-height: 18px; text-align: center;
}

@media (max-width: 921px) {
  .sd-cab__in { gap: 12px; justify-content: space-between; }
  .sd-cab__menu { display: inline-flex; }
  .sd-cab .sd-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .sd-logo__salo { font-size: 26px; }
  .sd-cab__in { position: relative; }
  .sd-solo-escritorio { display: none !important; }
  .sd-nav {
    position: fixed; inset: 0; z-index: 100; background: rgba(31,26,22,.45);
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .sd-nav.is-abierto { visibility: visible; opacity: 1; }
  .sd-nav ul {
    flex-direction: column; gap: 0; justify-content: flex-start;
    background: var(--sd-crema); width: min(84vw, 340px); height: 100%; padding: 72px 28px 28px;
    transform: translateX(-100%); transition: transform .25s;
  }
  .sd-nav.is-abierto ul { transform: none; }
  .sd-nav li a { display: block; font: 600 24px/1.2 var(--sd-serif); padding: 14px 0; border-bottom: 1px solid var(--sd-linea); }
  .sd-nav__cerrar { display: inline-flex; position: absolute; top: 16px; left: calc(min(84vw, 340px) - 52px); z-index: 2; }
}
@media (max-width: 782px) { .admin-bar .sd-cab { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sd-cab { top: 0; } }

/* ==========================================================================
   4. Portada
   ========================================================================== */
.home.sd .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.home.sd #primary { margin: 0; padding: 0; width: 100%; }
.sd-portada > section:not(.sd-hero):not(.sd-reels):not(.sd-banner):not(.sd-comprar) {
  max-width: var(--sd-ancho); margin: 0 auto; padding-left: var(--sd-lado); padding-right: var(--sd-lado);
}

/* Animaciones: entrada del hero y revelado al hacer scroll */
@keyframes sd-sube { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sd-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.sd-anim { opacity: 0; animation: sd-sube .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
.sd-js .sd-revela { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.sd-js .sd-revela.is-visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sd-anim, .sd-js .sd-revela { opacity: 1; transform: none; animation: none; transition: none; }
  .sd-hero__fondo img { animation: none !important; }
  .sd-cinta__pista { animation: none !important; }
}

/* Hero a pantalla completa */
.sd-hero { position: relative; min-height: clamp(340px, 48vh, 500px); display: flex; align-items: center; overflow: hidden; background: var(--sd-arena); }
.sd-hero__fondo, .sd-hero__fondo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-hero__fondo img { object-fit: cover; object-position: 70% 8%; animation: sd-zoom 6s cubic-bezier(.2,.7,.2,1) forwards; }
.sd-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(246,240,231,.92) 0%, rgba(246,240,231,.72) 32%, rgba(246,240,231,0) 58%);
}
.sd-hero__texto {
  position: relative; z-index: 2; width: 100%; max-width: var(--sd-ancho); margin: 0 auto;
  padding: 36px var(--sd-lado);
}
.sd-hero h1 { font-size: clamp(34px, 3.8vw, 54px); margin: 0 0 12px; max-width: 18ch; }
.sd-hero p { font-size: 17px; color: #4d443b; margin: 0 0 20px; max-width: 36ch; }
.sd-hero__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.sd-btn--claro, body.sd .sd-btn--claro { background: rgba(255,253,249,.7); color: var(--sd-tinta); border-color: rgba(31,26,22,.35); backdrop-filter: blur(6px); }
.sd-btn--claro:hover, body.sd .sd-btn--claro:hover { background: var(--sd-blanco); color: var(--sd-tinta); }

/* Cinta en movimiento */
@keyframes sd-cinta { to { transform: translateX(-50%); } }
.sd-cinta { background: var(--sd-tinta); color: var(--sd-crema); overflow: hidden; padding: 10px 0; }
.sd-cinta__pista { display: flex; width: max-content; gap: 28px; align-items: center; animation: sd-cinta 32s linear infinite; }
.sd-cinta span { font: 500 18px/1 var(--sd-serif); white-space: nowrap; }
.sd-cinta i { font-style: normal; color: var(--sd-oro); font-size: 12px; }

/* Categorías en arco (como los arcos de las fotos de campaña) */
.sd-cats-sec { padding-top: clamp(22px, 3vw, 36px); padding-bottom: clamp(20px, 3vw, 36px); text-align: center; }
.sd-cats-sec > h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 clamp(14px, 2vw, 22px); }
.sd-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 40px); align-items: start; max-width: 860px; margin: 0 auto; }
.sd-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.sd-cat:nth-child(2) { margin-top: clamp(0px, 3vw, 32px); }
.sd-cat__arco {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 10px;
  border-radius: 999px 999px 22px 22px; isolation: isolate;
}
.sd-cat__arco::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--sd-oro);
  border-radius: inherit; transform: translate(12px, 12px); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.sd-cat__arco picture { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; box-shadow: 0 24px 50px -24px rgba(60,40,20,.45); }
.sd-cat__arco img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sd-cat:hover .sd-cat__arco img { transform: scale(1.07); }
.sd-cat:hover .sd-cat__arco::before { transform: translate(-10px, -10px); }
.sd-cat__nombre { font: 600 clamp(26px, 2.6vw, 34px)/1 var(--sd-serif); color: var(--sd-tinta); }
.sd-cat__ver { font-size: 14px; color: var(--sd-gris); position: relative; padding-bottom: 3px; }
.sd-cat__ver::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sd-oro); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.sd-cat:hover .sd-cat__ver::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .sd-cats { gap: 10px; }
  .sd-cat:nth-child(2) { margin-top: 0; }
  .sd-cat__arco { margin-bottom: 6px; }
  .sd-cat__arco::before { transform: translate(4px, 4px); }
  .sd-cat__nombre { font-size: 19px; }
  .sd-cat__ver { font-size: 12px; }
}

.sd-seccion { padding-top: clamp(14px, 2vw, 24px); padding-bottom: clamp(28px, 4vw, 48px); }
.sd-seccion__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sd-seccion__cab h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.sd-seccion__cab a { font-size: 15px; border-bottom: 1px solid var(--sd-oro); text-decoration: none; }

/* Reels */
.sd-reels { background: var(--sd-tinta); color: var(--sd-crema); padding: clamp(28px, 4vw, 48px) 0; }
.sd-reels__cab {
  max-width: var(--sd-ancho); margin: 0 auto 16px; padding: 0 var(--sd-lado);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.sd-reels__cab h2, body.sd .sd-reels__cab h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 4px; }
.sd-reels__cab p { color: #b9ad9e; margin: 0; }
.sd-reels__flechas { display: flex; gap: 8px; flex-shrink: 0; }
.sd-flecha, body.sd .sd-flecha {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; font: 400 26px/1 var(--sd-sans); cursor: pointer;
  display: grid; place-items: center; padding: 0 0 3px; transition: background .2s, color .2s, opacity .2s;
}
.sd-flecha:hover:not(:disabled), body.sd .sd-flecha:hover:not(:disabled) { background: var(--sd-crema); color: var(--sd-tinta); }
.sd-flecha:disabled { opacity: .3; cursor: default; }
/* La fila queda dentro del ancho del sitio: antes se salía por la derecha y en computador no se podía mover */
.sd-reels__fila {
  width: min(calc(100% - 2 * var(--sd-lado)), calc(var(--sd-ancho) - 2 * var(--sd-lado))); margin: 0 auto;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
  padding: 0; border-radius: 18px;
}
@media (max-width: 1000px) { .sd-reels__fila { grid-auto-columns: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 600px) {
  .sd-reels__fila { grid-auto-columns: 46%; gap: 10px; }
  .sd-reels__flechas { display: none; }
}
.sd-reels__fila::-webkit-scrollbar { display: none; }
.sd-reel { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; scroll-snap-align: start; background: #2c2620; border-radius: 18px; text-decoration: none; }
.sd-reel video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.sd-reel:hover video { transform: scale(1.04); }
.sd-reel__info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; display: grid; gap: 2px;
}
.sd-reel__nombre { font-size: 14px; line-height: 1.3; }
.sd-reel__precio, .sd-reel__precio .amount, body.sd .sd-reel__precio .amount { font-weight: 500; color: #fff !important; }

/* Banner de colección (fondo fijo en escritorio) */
.sd-banner {
  position: relative; min-height: 400px; display: flex; align-items: center;
  background: var(--sd-arena) var(--bg) center / cover no-repeat;
}
@media (min-width: 1024px) and (hover: hover) { .sd-banner { background-attachment: fixed; } }
.sd-banner__texto {
  width: 100%; max-width: var(--sd-ancho); margin: 0 auto; padding: 36px var(--sd-lado);
}
.sd-banner__texto > * { max-width: 30ch; }
.sd-banner__texto h2 { max-width: 16ch; }
.sd-banner h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 10px; }
.sd-banner p { font-size: 17px; color: #4d443b; margin: 0 0 18px; }

/* Cómo comprar sobre satín */
.sd-comprar { position: relative; background: var(--sd-arena) var(--bg) center / cover; padding: clamp(28px, 4vw, 48px) 0; }
.sd-comprar::before { content: ""; position: absolute; inset: 0; background: rgba(246,240,231,.55); }
.sd-comprar__in { position: relative; max-width: var(--sd-ancho); margin: 0 auto; padding: 0 var(--sd-lado); }
.sd-comprar h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; }
.sd-comprar ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sd-comprar li {
  background: rgba(255,253,249,.78); backdrop-filter: blur(8px); padding: 18px 20px; color: var(--sd-gris);
  border: 1px solid rgba(255,255,255,.6); border-radius: 20px;
}
.sd-comprar li span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--sd-oro); color: var(--sd-oro-txt); font: 600 18px/1 var(--sd-serif); margin-bottom: 12px;
}
.sd-comprar strong { display: block; color: var(--sd-tinta); font-weight: 500; font-size: 17px; margin-bottom: 4px; }

.sd-ig { padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(20px, 3vw, 32px); }
.sd-ig a {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 18px; border: 1px solid var(--sd-linea); text-decoration: none; text-align: left;
  border-radius: 24px; background: rgba(255,253,249,.5);
}
.sd-ig img { border-radius: 50%; width: 64px; height: 64px; }
.sd-ig strong { font-weight: 500; }

@media (max-width: 760px) {
  .sd-hero { min-height: 0; display: block; background: var(--sd-crema); }
  .sd-hero__fondo { position: relative; display: block; height: auto; aspect-ratio: 5 / 4; overflow: hidden; }
  .sd-hero__fondo img { position: absolute; object-position: center 18%; }
  .sd-hero::after { display: none; }
  .sd-hero__texto { position: relative; padding-top: 16px; padding-bottom: 18px; }
  .sd-hero h1 { max-width: none; font-size: 27px; margin-bottom: 8px; }
  .sd-hero p { font-size: 15px; margin-bottom: 14px; }
  .sd-hero .sd-btn { min-height: 44px; }
  .sd-hero__botones .sd-btn { flex: 1 1 140px; }
  .sd-banner { min-height: 340px; background-position: 88% center; align-items: flex-start; }
  .sd-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,240,231,.85) 30%, rgba(246,240,231,0) 70%); }
  .sd-banner__texto { position: relative; padding-top: 36px; }
  .sd-comprar ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. Grilla de productos
   ========================================================================== */
body.sd ul.products li.product {
  text-align: left; padding: 8px 8px 12px !important; border-radius: 20px;
  background: rgba(255,253,249,.55); border: 1px solid rgba(255,255,255,.7);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, background .45s;
}
body.sd ul.products li.product:hover { transform: translateY(-6px); background: rgba(255,253,249,.9); box-shadow: 0 26px 50px -28px rgba(60,40,20,.45); }
body.sd ul.products li.product .astra-shop-thumbnail-wrap { position: relative; overflow: hidden; border-radius: 16px; }
body.sd ul.products li.product img { aspect-ratio: 2 / 3; object-fit: cover; margin: 0 !important; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
body.sd ul.products li.product .sd-foto-2 {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease, transform .8s;
}
body.sd ul.products li.product:hover .sd-foto-2 { opacity: 1; }
body.sd ul.products li.product:hover img { transform: scale(1.04); }
.sd-nuevo {
  position: absolute; top: 12px; left: 12px; z-index: 3; background: rgba(255,253,249,.85); backdrop-filter: blur(6px); color: var(--sd-tinta);
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
}
body.sd ul.products li.product .astra-shop-summary-wrap { padding: 14px 6px 0; }
body.sd ul.products li.product .ast-woo-product-category { display: none; }
body.sd ul.products li.product .woocommerce-loop-product__title {
  font: 400 15px/1.4 var(--sd-sans) !important; color: var(--sd-tinta); margin: 0 0 4px;
}
body.sd ul.products li.product .price { color: var(--sd-tinta) !important; font-weight: 500; font-size: 16px; margin-bottom: 6px; }
body.sd ul.products li.product .button,
body.sd.woocommerce ul.products li.product a.button,
body.sd .woocommerce ul.products li.product a.button {
  background: transparent !important; color: var(--sd-tinta) !important;
  border: 1px solid rgba(31,26,22,.4) !important; border-radius: 999px !important;
  font: 500 13px/1 var(--sd-sans) !important; padding: 11px 18px !important; margin-top: 10px;
}
body.sd ul.products li.product .button:hover,
body.sd.woocommerce ul.products li.product a.button:hover,
body.sd .woocommerce ul.products li.product a.button:hover,
body.sd ul.products li.product:hover .button { background: var(--sd-tinta) !important; color: var(--sd-crema) !important; border-color: var(--sd-tinta) !important; }
body.sd ul.products li.product .added_to_cart { display: block; font-size: 13px; margin-top: 6px; }

.sd-muestras { display: flex; gap: 8px; margin: 2px 0 0; min-height: 22px; padding: 2px; }
.sd-muestra {
  width: 18px; height: 18px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: 1px solid transparent; outline-offset: 2px;
}
.sd-muestra.is-actual, .sd-muestra:hover { outline-color: var(--sd-tinta); }

/* Insignia de oferta */
body.sd .onsale, body.sd.woocommerce span.onsale {
  background: var(--sd-tinta) !important; color: var(--sd-crema) !important;
  border-radius: 999px !important; min-height: 0; min-width: 0; line-height: 1; padding: 6px 10px; font-size: 12px;
}

/* ==========================================================================
   6. Tienda, categoría y ficha
   ========================================================================== */
body.sd.woocommerce .woocommerce-products-header__title { font-size: clamp(34px, 4vw, 48px); }
body.sd .woocommerce-breadcrumb { font-size: 13px; color: var(--sd-gris); }
body.sd .term-description { color: var(--sd-gris); }
body.sd .woocommerce-ordering select, body.sd select, body.sd input[type=text], body.sd input[type=email],
body.sd input[type=tel], body.sd input[type=password], body.sd textarea {
  background: var(--sd-blanco); border: 1px solid var(--sd-linea); border-radius: 12px; color: var(--sd-tinta);
}

body.sd.single-product div.product .woocommerce-product-gallery { background: transparent; }
body.sd.single-product div.product .woocommerce-product-gallery__image img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 20px; }
body.sd.single-product .flex-control-thumbs img { border-radius: 10px; }
body.sd.single-product .flex-control-thumbs { display: flex !important; gap: 8px; margin-top: 8px !important; }
body.sd.single-product .flex-control-thumbs li { width: 72px !important; }
body.sd.single-product .product_title { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 8px; }
body.sd.single-product div.product .summary .price { color: var(--sd-tinta) !important; font-size: 22px; font-weight: 500; }
body.sd.single-product .woocommerce-product-details__short-description { color: var(--sd-gris); }

.sd-color { margin: 4px 0 18px; }
.sd-color__label { display: block; font-size: 14px; margin-bottom: 8px; }
.sd-color__label strong { font-weight: 500; }
.sd-color .sd-muestra { width: 26px; height: 26px; }

body.sd.single-product table.variations { margin-bottom: 8px; }
body.sd.single-product table.variations th.label, body.sd.single-product table.variations td.label { display: block; padding: 0 0 8px; font-weight: 400; font-size: 14px; }
body.sd.single-product table.variations td.value { display: block; padding: 0; position: relative; }
body.sd.single-product table.variations tr { display: block; margin-bottom: 8px; }
.sd-tallas { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-talla, body.sd .sd-talla {
  min-width: 52px; height: 44px; padding: 0 12px; cursor: pointer;
  background: var(--sd-blanco); color: var(--sd-tinta);
  border: 1px solid var(--sd-linea); border-radius: 12px; font: 500 14px/1 var(--sd-sans); transition: all .2s;
}
.sd-talla:hover, body.sd .sd-talla:hover { border-color: var(--sd-tinta); background: var(--sd-blanco); color: var(--sd-tinta); }
.sd-talla.is-activa, body.sd .sd-talla.is-activa { background: var(--sd-tinta); color: var(--sd-crema); border-color: var(--sd-tinta); }
body.sd .reset_variations { font-size: 13px; margin-top: 8px; display: inline-block; }

body.sd.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
body.sd.single-product div.product form.cart.variations_form { display: block; }
body.sd.single-product .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
body.sd.single-product div.product form.cart .quantity .qty { height: 50px; border-radius: 999px; }
body.sd.single-product div.product form.cart .single_add_to_cart_button,
body.sd .woocommerce a.button.alt, body.sd .woocommerce button.button.alt,
body.sd .woocommerce #respond input#submit.alt, body.sd .woocommerce input.button.alt,
body.sd.woocommerce button.button.alt, body.sd.woocommerce a.button.alt,
body.sd .wc-block-components-button:not(.is-link), body.sd .wp-element-button {
  background: var(--sd-tinta) !important; color: var(--sd-crema) !important;
  border: 1px solid var(--sd-tinta) !important; border-radius: 999px !important;
  font: 500 15px/1 var(--sd-sans) !important; min-height: 50px; padding: 0 32px !important;
}
body.sd.single-product div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; }
body.sd.single-product div.product form.cart .single_add_to_cart_button.disabled { opacity: .45; }
body.sd .woocommerce a.button, body.sd .woocommerce button.button, body.sd.woocommerce a.button, body.sd.woocommerce button.button {
  border-radius: 2px;
}

.sd-ficha-ayuda { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sd-linea); font-size: 14px; color: var(--sd-gris); }
.sd-ficha-ayuda p { margin: 0 0 6px; }
body.sd.single-product .product_meta { display: none; }
body.sd .woocommerce-tabs ul.tabs li a { font-family: var(--sd-sans); font-weight: 500; }
body.sd section.related > h2, body.sd section.upsells > h2 { font-size: 32px; }

/* Envío por pagar: WooCommerce lo rotula «Gratis» porque el costo es 0 en la web */
body.sd .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
body.sd .wc-block-components-totals-shipping .wc-block-components-totals-item__value { font-size: 0; }
body.sd .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label::after,
body.sd .wc-block-components-totals-shipping .wc-block-components-totals-item__value::after { content: "Por pagar"; font-size: 14px; font-weight: 500; }

/* Avisos de WooCommerce */
body.sd .woocommerce-message, body.sd .woocommerce-info { border-top-color: var(--sd-oro); background: var(--sd-blanco); }
body.sd .woocommerce-message::before, body.sd .woocommerce-info::before { color: var(--sd-oro-txt); }

/* ==========================================================================
   7. Páginas
   ========================================================================== */
body.sd.page:not(.home):not(.woocommerce-page) .entry-content { max-width: 760px; }
body.sd.page:not(.home) .entry-title { font-size: clamp(34px, 4vw, 46px); }
body.sd.ast-separate-container .ast-article-single, body.sd.ast-separate-container .ast-article-post,
body.sd.ast-separate-container #primary, body.sd.ast-separate-container .site-main > .ast-row { background: transparent; }

/* ==========================================================================
   8. Pie
   ========================================================================== */
.sd-pie { background: var(--sd-tinta); color: #d8cfc3; font-size: 15px; }
.sd-pie__in {
  max-width: var(--sd-ancho); margin: 0 auto; padding: 48px var(--sd-lado) 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.sd-pie h2 { font: 500 14px/1.2 var(--sd-sans) !important; color: #fff !important; margin: 0 0 14px; }
.sd-pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-pie a, body.sd .sd-pie a { color: #d8cfc3; text-decoration: none; }
.sd-pie a:hover, body.sd .sd-pie a:hover { color: #fff; }
.sd-pie p { margin: 0; max-width: 32ch; }
.sd-logo--pie { align-items: flex-start; margin-bottom: 14px; }
.sd-logo--pie .sd-logo__salo { color: #fff; }
.sd-logo--pie .sd-logo__district { color: var(--sd-oro); padding-left: 0; }
.sd-pie__ig { display: inline-flex; align-items: center; gap: 8px; }
.sd-pie__base {
  border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 13px;
  padding: 16px var(--sd-lado); color: #a99f92;
}
.sd-pie__base a, body.sd .sd-pie__base a { color: #d8cfc3; text-decoration: underline; }
@media (max-width: 760px) {
  .sd-pie__in { grid-template-columns: 1fr 1fr; }
  .sd-pie__marca { grid-column: 1 / -1; }
}

/* Carro y checkout en bloques: Astra les da márgenes negativos (alignwide) y en celular tocan el borde */
body.sd .wp-block-woocommerce-checkout, body.sd .wp-block-woocommerce-cart { margin-left: 0 !important; margin-right: 0 !important; max-width: 100%; }

/* Botón «volver arriba» de Astra con la forma del resto */
body.sd #ast-scroll-top { border-radius: 999px; background: var(--sd-tinta); color: var(--sd-crema); width: 44px; height: 44px; line-height: 44px; }
