/**
 * Tienda pública — referencia visual premium (oro / negro / arena)
 * Variables usan colores de BD (.bg-primario / .bg-secundario) como base cuando existan.
 */
:root {
  --sf-gold: #a67c32;
  --sf-gold-light: #c59d5f;
  --sf-gold-muted: rgba(197, 157, 95, 0.18);
  --sf-black: #1a1a1a;
  --sf-text: #2a2a2a;
  --sf-muted: #6c757d;
  --sf-bg: #f9f9f7;
  --sf-cream: #f9f6f1;
  --sf-white: #ffffff;
  --sf-border: #e8e4dc;
  --sf-radius: 6px;
  --sf-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --sf-font-sans: "DM Sans", system-ui, sans-serif;
  --sf-font-serif: "Cormorant Garamond", "Newsreader", Georgia, serif;
  --sf-font-script: "Great Vibes", cursive;
}

body.storefront {
  background-color: var(--sf-bg);
  color: var(--sf-text);
  font-family: var(--sf-font-sans);
  font-size: 15px;
  line-height: 1.5;
}

/* No forzar fuente en <i> de Font Awesome (rompe ::before / glifos) */
body.storefront *:not(i[class*="fa-"]):not(i[class^="fa"]) {
  font-family: inherit;
}

body.storefront h1,
body.storefront h2,
body.storefront h3,
body.storefront h4,
body.storefront h5,
body.storefront .sf-heading {
  font-family: var(--sf-font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sf-black);
}

/* ——— Top bar ——— */
.sf-topbar {
  width: 100%;
  max-width: 100%;
  background: var(--sf-black);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.sf-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.sf-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.sf-topbar-item i {
  color: var(--sf-gold-light);
  font-size: 13px;
}

body.storefront .sf-topbar-item .sf-inline-icon.sf-topbar-svg {
  line-height: 0;
  flex-shrink: 0;
}

body.storefront .sf-topbar-item .sf-inline-icon.sf-topbar-svg svg {
  width: 14px;
  height: 14px;
  color: var(--sf-gold-light);
  stroke: currentColor;
}

@media (max-width: 767.98px) {
  .sf-topbar {
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 6px 0;
  }

  .sf-topbar-inner {
    gap: 0.4rem 1rem;
    justify-content: center;
  }

  .sf-topbar-item {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .sf-topbar-item span {
    font-size: 9px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    max-width: 28vw;
  }

  .sf-topbar-item i {
    font-size: 11px;
    flex-shrink: 0;
  }
}

/* ——— Header / Navbar ——— */
.sf-header-main {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
}

.sf-nav-wrap {
  width: 100%;
  max-width: 100%;
  background: var(--sf-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Sin navbar-light: evita que reglas de AdminLTE/Bootstrap mezclen estilos de toggler con otros botones del nav */
.sf-navbar-theme {
  background-color: var(--sf-white);
}

body.storefront .sf-navbar-theme .navbar-toggler {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background-color: #fff;
}

body.storefront .sf-navbar-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.sf-nav-shell {
  max-width: 100%;
}

body.storefront .sf-nav-wrap .sf-brand-mark {
  background: linear-gradient(160deg, #12100c 0%, #050403 100%) !important;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  min-height: 42px;
  min-width: 42px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

body.storefront .sf-nav-wrap .navbar-brand.sf-brand {
  flex-shrink: 0;
  max-width: min(200px, 40vw);
  margin-right: 0.75rem !important;
}

.sf-brand-img {
  height: auto;
  max-height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.sf-brand-fallback {
  font-size: 0.95rem;
  color: #f5f0e6 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0.25rem;
}

.sf-nav-menu-scroll {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 767.98px) {
  body.storefront #sfNavCollapse .sf-nav-menu-scroll {
    margin-top: 0.5rem !important;
    margin-bottom: 0.35rem !important;
  }

  body.storefront #sfNavCollapse .sf-utilities {
    padding-top: 0.5rem !important;
    margin-top: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .sf-nav-wrap.navbar-expand-md .navbar-collapse.sf-nav-collapse {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }

  /* El menú ocupa solo el hueco entre logo y utilidades: sin width:max-content ni scroll en el body */
  .sf-nav-menu-scroll {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100%;
    overflow-x: visible !important;
    overflow-y: visible !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

.sf-nav-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
}

@media (min-width: 768px) {
  .sf-nav-menu {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.05rem 0.12rem;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

body.storefront .sf-nav-wrap .sf-nav-toolbar {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

body.storefront .sf-nav-wrap .sf-nav-link {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

.sf-nav-link {
  color: var(--sf-black) !important;
  font-size: clamp(9px, 0.45vw + 8px, 11px);
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: var(--sf-radius);
  transition: color 0.2s, box-shadow 0.2s;
}

@media (min-width: 1200px) {
  .sf-nav-link {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
  }
}

.sf-nav-link:hover {
  color: var(--sf-gold) !important;
}

.sf-nav-link.sf-active {
  color: var(--sf-gold) !important;
  box-shadow: inset 0 -2px 0 0 var(--sf-gold);
}

.sf-utilities {
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sf-utilities {
    flex-direction: row !important;
    align-items: center !important;
  }
}

@media (min-width: 768px) {
  .sf-nav-toolbar {
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-width: 0;
  }

  .sf-nav-toolbar .navbar-brand {
    margin-right: 0.75rem !important;
  }
}

@media (min-width: 768px) {
  .sf-nav-collapse .sf-utilities {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .sf-nav-collapse {
    margin-top: 0 !important;
  }

  .sf-nav-menu-scroll {
    padding-top: 0 !important;
  }
}

.sf-sucursal-select {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .sf-sucursal-select {
    max-width: 175px;
    margin-bottom: 0 !important;
    margin-right: 0.5rem !important;
  }
}

.sf-sucursal-select .input-group-text {
  background: var(--sf-bg);
  border-color: var(--sf-border);
  color: var(--sf-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.45rem;
}

.sf-sucursal-select .custom-select {
  border-color: var(--sf-border);
  font-size: 12px;
  padding: 0.28rem 1.65rem 0.28rem 0.45rem;
  height: calc(1.5rem + 2px);
}

.sf-search-form .form-control {
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius) 0 0 var(--sf-radius);
  font-size: 13px;
  min-width: 0;
  padding: 0.28rem 0.5rem;
  height: calc(1.5rem + 2px);
}

@media (min-width: 768px) {
  .sf-search-form {
    flex: 0 0 auto !important;
    width: 190px;
    min-width: 150px;
    max-width: 210px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .sf-search-form {
    width: 150px;
    min-width: 120px;
    max-width: 175px;
  }

  .sf-sucursal-select {
    max-width: 145px !important;
  }
}

/* Botón búsqueda: sin clase .btn para no heredar estilos raros del tema; máxima especificidad vs AdminLTE */
body.storefront .sf-nav-wrap .input-group-append .sf-search-submit,
body.storefront .sf-nav-wrap button.sf-search-submit {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  border-radius: 0 var(--sf-radius) var(--sf-radius) 0 !important;
  border: 1px solid var(--sf-gold) !important;
  background-color: var(--sf-gold) !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: auto !important;
  color: #fff !important;
  min-width: 38px;
  height: calc(1.5rem + 2px);
  padding: 0 0.5rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: none !important;
}

body.storefront .sf-nav-wrap .sf-search-submit:hover,
body.storefront .sf-nav-wrap .sf-search-submit:focus {
  background-color: #9a7209 !important;
  background-image: none !important;
  border-color: #9a7209 !important;
  color: #fff !important;
  outline: none;
}

body.storefront .sf-nav-wrap .sf-search-submit::before,
body.storefront .sf-nav-wrap .sf-search-submit::after {
  content: none !important;
  display: none !important;
}

body.storefront .sf-nav-wrap .sf-search-svg {
  display: block !important;
  flex-shrink: 0;
  color: #fff;
  fill: currentColor;
}

.sf-navbar-toggler {
  padding: 0.4rem 0.55rem;
}

.sf-navbar-toggler .navbar-toggler-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.sf-legacy-cat-bar {
  display: none !important;
}

/* ——— Hero: panel crema + imagen (primera impresión) ——— */
.sf-hero-wrap {
  position: relative;
}

.sf-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(36vh, 300px);
  background: var(--sf-cream);
}

@media (min-width: 768px) {
  .sf-hero-split {
    grid-template-columns: minmax(240px, 0.92fr) minmax(280px, 1.08fr);
    min-height: min(48vh, 420px);
  }
}

.sf-hero-copy--panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1rem 1.35rem;
  text-align: left;
  order: 2;
}

@media (min-width: 768px) {
  .sf-hero-copy--panel {
    order: 0;
    padding: clamp(1rem, 2.5vw, 1.65rem) clamp(1rem, 2.5vw, 2rem);
  }
}

.sf-hero-visual {
  position: relative;
  min-height: min(32vh, 260px);
  order: 1;
  background: #141210;
}

@media (min-width: 768px) {
  .sf-hero-visual {
    order: 1;
    min-height: 0;
    align-self: stretch;
  }
}

.sf-hero-visual--empty {
  min-height: min(28vh, 240px);
  background:
    linear-gradient(115deg, rgba(26, 26, 26, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(197, 157, 95, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #1a1815 0%, #0d0c0a 100%);
}

@media (min-width: 768px) {
  .sf-hero-visual--empty {
    min-height: 0;
  }
}

.sf-hero-copy .sf-hero-kicker {
  font-family: var(--sf-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-gold-light);
  margin-bottom: 0.4rem;
}

.sf-hero-title--split {
  font-family: var(--sf-font-serif);
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  font-weight: 600;
  color: var(--sf-black);
  line-height: 1.1;
  margin: 0 0 0.55rem;
  max-width: 16ch;
}

.sf-hero-title-line {
  display: block;
}

.sf-hero-title-line--strong {
  font-weight: 700;
}

.sf-hero-accent {
  font-family: var(--sf-font-script);
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  font-weight: 400;
  color: var(--sf-gold-light);
  font-style: normal;
  line-height: 0.95;
  margin-left: 0.08em;
}

.sf-hero-lede {
  font-family: var(--sf-font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--sf-muted);
  max-width: 38ch;
  margin: 0 0 0.85rem;
}

.sf-hero-copy .sf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  background: var(--sf-black);
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.sf-hero-copy .sf-hero-cta:hover {
  background: #2a2a2a;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.sf-hero-cta-arrow {
  font-size: 1.1em;
  font-weight: 400;
  opacity: 0.9;
}

.sf-hero-copy .sf-hero-indicators {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1;
  margin: 0.75rem 0 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  list-style: none;
  display: flex !important;
  justify-content: flex-start !important;
}

.sf-hero-copy .sf-hero-indicators li {
  box-sizing: border-box !important;
  width: 8px !important;
  height: 8px !important;
  min-height: 8px;
  border-radius: 50% !important;
  margin: 0 6px 0 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  background-color: rgba(26, 26, 26, 0.22) !important;
  background-clip: border-box !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  opacity: 1 !important;
  cursor: pointer;
  flex: 0 0 8px !important;
  transition: background 0.2s, transform 0.2s;
}

.sf-hero-copy .sf-hero-indicators li.active {
  background-color: var(--sf-gold-light) !important;
  opacity: 1 !important;
  transform: scale(1.12);
}

/* Franja confianza: tarjeta blanca flotante, 4 columnas, divisores */
.sf-trust-floating-wrap {
  position: relative;
  z-index: 2;
  margin-top: -1.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
}

@media (min-width: 768px) {
  .sf-trust-floating-wrap {
    margin-top: -1.65rem;
    margin-bottom: 1rem;
  }
}

.sf-trust-floating {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--sf-white);
  border-radius: 14px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

@media (min-width: 576px) {
  .sf-trust-floating {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

.sf-trust-floating__item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

@media (min-width: 576px) {
  .sf-trust-floating__item {
    padding: 1.1rem 0.85rem 1.15rem 1.1rem;
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .sf-trust-floating__item {
    padding: 1.15rem 1.15rem 1.2rem 1.35rem;
  }
}

/* Divisores verticales (no llegan al borde de la tarjeta) */
@media (min-width: 576px) {
  .sf-trust-floating__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
  }
}

@media (max-width: 575.98px) {
  .sf-trust-floating__item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }
}

.sf-trust-floating__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  color: #a67c52;
  font-size: 1.35rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .sf-trust-floating__icon {
    font-size: 1.45rem;
    width: 2.4rem;
  }
}

.sf-trust-floating__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  text-align: left;
}

.sf-trust-floating__title {
  font-family: var(--sf-font-serif);
  font-size: clamp(0.88rem, 1.1vw + 0.65rem, 1.05rem);
  font-weight: 600;
  color: var(--sf-black);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.sf-trust-floating__sub {
  font-family: var(--sf-font-serif);
  font-size: clamp(0.78rem, 0.5vw + 0.62rem, 0.9rem);
  font-weight: 400;
  color: var(--sf-muted);
  line-height: 1.3;
}

/* Franja promocional bajo hero (3 tarjetas oscuras) */
.sf-promo-strip {
  padding: 1.1rem 0 1.25rem;
  background: linear-gradient(180deg, #f7f4ee 0%, #ebe4d8 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-promo-strip__row {
  align-items: stretch;
}

.sf-promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(155deg, #161411 0%, #0a0908 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sf-promo-card__visual {
  margin-bottom: 0.2rem;
}

.sf-promo-card__glyph {
  display: inline-flex;
  line-height: 0;
}

.sf-promo-card__glyph svg {
  width: 36px;
  height: 36px;
  color: #c9a227;
  stroke: currentColor;
}

.sf-promo-card__glyph--wa svg {
  width: 34px;
  height: 34px;
  fill: #c9a227;
  stroke: none;
  color: #c9a227;
}

.sf-promo-card__title {
  font-family: var(--sf-font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: #faf7f2;
  margin: 0.25rem 0 0.25rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sf-promo-card__lead {
  font-family: var(--sf-font-sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.65rem;
  flex: 1 1 auto;
}

.sf-promo-card__hl {
  color: #f0e6d2;
  font-weight: 600;
}

.sf-promo-card__form {
  width: 100%;
  margin-top: auto;
}

.sf-promo-card__input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  padding: 0.4rem 0.65rem;
  margin-bottom: 0.45rem;
}

.sf-promo-card__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.sf-promo-card__input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sf-gold-light);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.sf-promo-card__btn {
  font-family: var(--sf-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sf-promo-card__btn--gold {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1204;
}

.sf-promo-card__btn--gold:hover {
  background: linear-gradient(135deg, #e4c04a, #9a7209);
  color: #0d0d0d;
}

.sf-promo-card__btn--outline {
  background: transparent;
  color: #f5ebd8;
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.sf-promo-card__btn--outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #fff;
  border-color: var(--sf-gold-light);
}

/* Carrusel productos home */
.sf-home-rail {
  position: relative;
  margin-bottom: 3rem;
}

.sf-home-rail .sf-rail-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sf-home-rail .sf-rail-track .col-snap {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
}

.sf-home-rail .sf-rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-black);
  box-shadow: var(--sf-shadow);
  display: none;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .sf-home-rail .sf-rail-nav {
    display: flex;
  }
}

.sf-home-rail .sf-rail-prev {
  left: -0.25rem;
}

.sf-home-rail .sf-rail-next {
  right: -0.25rem;
}

/* ——— Hero / carousel (panel derecho) ——— */
.sf-hero-visual .sf-hero.carousel {
  height: 100%;
  min-height: min(32vh, 260px);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .sf-hero-visual .sf-hero.carousel {
    min-height: 0;
    position: absolute;
    inset: 0;
  }
}

.sf-hero-visual .carousel-inner,
.sf-hero-visual .carousel-item {
  height: 100%;
  min-height: min(32vh, 260px);
}

@media (min-width: 768px) {
  .sf-hero-visual .carousel-inner,
  .sf-hero-visual .carousel-item {
    min-height: 0;
  }
}

.sf-hero-slide-img {
  height: 100%;
  min-height: min(32vh, 260px);
  width: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.03) saturate(0.96);
}

@media (min-width: 768px) {
  .sf-hero-slide-img {
    min-height: 0;
  }
}

.sf-hero-visual .carousel-control-prev-icon,
.sf-hero-visual .carousel-control-next-icon {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* ——— Secciones inicio ——— */
.sf-section-head {
  margin-bottom: 1.1rem;
  text-align: left;
}

.sf-section-kicker {
  display: block;
  font-family: var(--sf-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sf-gold);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.sf-section-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  margin: 0;
}

body.storefront #sf-destacados {
  margin-top: 1.75rem !important;
  margin-bottom: 1.75rem !important;
}

.sf-category-grid .sf-category-card-link:focus {
  outline: 2px solid var(--sf-gold);
  outline-offset: 3px;
}

.sf-category-grid .category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sf-shadow);
  border: 1px solid var(--sf-border);
}

.sf-category-grid .category-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: auto;
  width: 100%;
  display: block;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.sf-category-grid .category-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.sf-category-grid .category-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 1.25rem 1.4rem;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    transparent 100%
  );
  transition: transform 0.25s ease;
}

.sf-category-grid .category-card:hover .category-info {
  transform: translateY(-2px);
}

/* Anula color global body.storefront h3 sobre las tarjetas */
body.storefront .sf-category-grid .category-info h3.title {
  font-family: var(--sf-font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  padding: 0;
  background: none;
  border-radius: 0;
  color: #fff !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 16px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.storefront .sf-category-grid .category-info .sf-category-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  font-family: var(--sf-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-gold-light) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

body.storefront .sf-category-grid .category-info .sf-category-more svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.sf-visit-section {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--sf-shadow);
}

.sf-visit-section h2 {
  font-size: 1.35rem;
}

/* ——— Categoría / listado ——— */
.sf-breadcrumb {
  font-size: 13px;
  color: var(--sf-muted);
  letter-spacing: 0.02em;
}

.sf-breadcrumb a {
  color: var(--sf-muted);
}

.sf-breadcrumb a:hover {
  color: var(--sf-gold);
}

.sf-breadcrumb strong {
  color: var(--sf-black);
  font-weight: 600;
}

.sf-cat-hero {
  background: linear-gradient(135deg, #faf8f4 0%, #f0ebe3 100%);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sf-cat-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 768px) {
  .sf-cat-hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 220px;
  }
}

.sf-cat-hero-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sf-cat-hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.sf-cat-hero-text p {
  color: var(--sf-muted);
  margin: 0;
  font-size: 15px;
}

.sf-cat-hero-media {
  min-height: 200px;
}

.sf-cat-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.sf-filter-sidebar {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sf-shadow);
}

.sf-filter-sidebar h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-family: var(--sf-font-sans);
}

.sf-size-filter-btn,
.size-filter-btn {
  width: 48px;
  height: 42px;
  font-weight: 600;
  font-size: 14px;
  color: var(--sf-black) !important;
  background-color: var(--sf-white) !important;
  border: 1px solid var(--sf-border) !important;
  border-radius: var(--sf-radius) !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.sf-size-filter-btn:hover,
.size-filter-btn:hover {
  border-color: var(--sf-gold) !important;
  color: var(--sf-gold) !important;
  transform: none;
}

.sf-size-filter-btn.active,
.size-filter-btn.active {
  background-color: var(--sf-black) !important;
  color: #fff !important;
  border-color: var(--sf-black) !important;
}

.btn.sf-btn-filter-toggle {
  background: var(--sf-gold);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--sf-radius);
  padding: 0.5rem 1.25rem;
}

.btn.sf-btn-filter-toggle:hover {
  background: #9a7209;
  color: #fff;
}

.apply-filter-btn {
  background: var(--sf-gold) !important;
  border-color: var(--sf-gold) !important;
  color: #fff !important;
}

.apply-filter-btn:hover {
  background: #9a7209 !important;
  border-color: #9a7209 !important;
}

/* ——— Tarjetas producto ——— */
.sf-product-grid .sf-product-card {
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.sf-product-grid .sf-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.sf-product-card .sf-product-media {
  position: relative;
  height: 220px;
  background: #f3f1ed;
}

.sf-product-card .sf-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sf-product-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1.2;
}

.sf-product-badge--gold {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1204;
}

.sf-product-badge--dark {
  background: var(--sf-black);
  color: #fff;
}

.sf-product-badge--outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sf-black);
  border: 1px solid var(--sf-border);
}

.sf-product-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(13, 13, 13, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sf-product-card:hover .sf-product-hover {
  opacity: 1;
}

.sf-product-hover .btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
}

.sf-product-hover .btn-light {
  background: #fff;
  color: var(--sf-black) !important;
  border: none;
}

.sf-product-hover .btn-sf-gold {
  background: var(--sf-gold);
  color: #fff !important;
  border: none;
}

@media (max-width: 767.98px) {
  .sf-product-hover {
    display: none;
  }
}

.sf-product-card .sf-product-body {
  padding: 1rem 1.1rem 1.15rem;
}

.sf-product-card .sf-price {
  font-family: var(--sf-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sf-gold);
  margin-bottom: 0.35rem;
}

.sf-product-card .sf-price-old {
  text-decoration: line-through;
  color: var(--sf-muted);
  font-size: 0.9rem;
  font-family: var(--sf-font-sans);
  margin-left: 0.35rem;
}

.sf-product-card .sf-product-name {
  font-family: var(--sf-font-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--sf-black);
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sf-product-card .sf-stock {
  font-size: 12px;
  margin-bottom: 0;
}

.sf-product-card .sf-sku {
  font-size: 11px;
  color: var(--sf-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ——— Ficha producto ——— */
/* min-width:0 en columnas flex evita que fotos muy anchas rompan el grid (min-content > 50%) */
body.storefront .sf-pdp-page .row > [class*="col-"].sf-pdp-gallery,
body.storefront .sf-pdp-page .row > [class*="col-"].sf-pdp-info {
  min-width: 0;
}

.sf-pdp-gallery .sf-pdp-main {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 1rem;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.sf-pdp-gallery .sf-pdp-main img,
body.storefront .sf-pdp-gallery .product-image.sf-pdp-carousel-img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: min(52vh, 480px);
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.sf-pdp-gallery .sf-pdp-carousel {
  max-width: 100%;
}

.sf-pdp-gallery .sf-pdp-carousel .carousel-inner {
  overflow: hidden;
  max-width: 100%;
}

.sf-pdp-gallery .sf-pdp-carousel .sf-pdp-carousel-item {
  min-width: 0;
  overflow: hidden;
}

.sf-pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.sf-pdp-thumbs .product-image-thumb img {
  border: 2px solid transparent;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--sf-radius);
}

.sf-pdp-thumbs .product-image-thumb.active img,
.sf-pdp-thumbs .product-image-thumb:hover img {
  border-color: var(--sf-gold);
}

.sf-pdp-info .sf-pdp-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.sf-pdp-info .sf-pdp-price {
  font-family: var(--sf-font-serif);
  font-size: 2.25rem;
  color: var(--sf-black);
  margin: 1rem 0;
}

.sf-pdp-info .btn-outline-sf {
  border: 1px solid var(--sf-black);
  color: var(--sf-black);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--sf-radius);
}

.sf-pdp-info .btn-outline-sf:hover {
  background: var(--sf-black);
  color: #fff;
}

.sf-pdp-info .btn-sf-primary {
  background: var(--sf-gold);
  border: 1px solid var(--sf-gold);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--sf-radius);
}

.sf-pdp-info .btn-sf-primary:hover {
  background: #9a7209;
  border-color: #9a7209;
  color: #fff;
}

/* Iconos SVG inline (PDP y flotante WA) */
body.storefront .sf-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
}

body.storefront .sf-inline-icon svg {
  display: block;
}

body.storefront .sf-pdp-wa-icon svg {
  width: 1.35em;
  height: 1.35em;
  color: #fff;
  fill: currentColor;
}

body.storefront .sf-pdp-info-links .sf-pdp-link-icon {
  color: var(--sf-gold);
}

body.storefront .sf-pdp-info-links .sf-pdp-link-chevron {
  color: rgba(0, 0, 0, 0.28);
}

body.storefront .sf-pdp-info-links button:hover .sf-pdp-link-chevron {
  color: var(--sf-gold);
}

body.storefront .sf-wa-float .sf-wa-float-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
  fill: currentColor;
}

.sf-pdp-info .btn-outline-info {
  border-color: var(--sf-border);
  color: var(--sf-black);
}

.sf-pdp-info .btn-outline-info:hover {
  background: var(--sf-black);
  border-color: var(--sf-black);
  color: #fff;
}

.sf-related-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sf-pdp-carousel .sf-pdp-carousel-item {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f7;
}

.sf-pdp-carousel-img {
  max-height: min(52vh, 480px) !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

body.storefront .sf-pdp-zoom-trigger {
  cursor: zoom-in;
  outline: none;
}

body.storefront .sf-pdp-zoom-trigger:focus {
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.45);
  border-radius: 4px;
}

/* Modal zoom galería PDP */
.sf-pdp-zoom-modal .modal-dialog.sf-pdp-zoom-dialog {
  max-width: min(96vw, 1100px);
  width: 100%;
  margin: 0.75rem auto;
}

.sf-pdp-zoom-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
}

.sf-pdp-zoom-chrome {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 1.5rem);
  min-height: 0;
}

.sf-pdp-zoom-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  line-height: 1;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.sf-pdp-zoom-close:hover {
  color: #fff !important;
  opacity: 1;
}

.sf-pdp-zoom-close-x {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}

.sf-pdp-zoom-toolbar {
  flex-shrink: 0;
  padding: 0.35rem 2.5rem 0.75rem;
  gap: 0.25rem;
}

.sf-pdp-zoom-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: min(50vh, 420px);
  height: min(78vh, calc(100vh - 160px));
  max-height: min(78vh, calc(100vh - 160px));
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #2a2a2a 0%, #0a0a0a 100%);
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}

.sf-pdp-zoom-viewport.is-panning {
  cursor: grabbing;
}

/* Pan llena el área útil para que % en la img tenga altura/ancho definidos */
.sf-pdp-zoom-pan {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
}

.sf-pdp-zoom-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.sf-pdp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1025;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .sf-pdp-sticky-cta {
    display: none !important;
  }
}

/* ——— Footer ——— */
body.storefront .footer {
  background: var(--sf-black) !important;
  border-top: 3px solid var(--sf-gold);
}

body.storefront .footer .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

body.storefront .footer hr {
  border-color: rgba(212, 175, 55, 0.25);
}

/* ——— WhatsApp flotante ——— */
.sf-wa-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.sf-wa-float:hover {
  color: #fff !important;
  transform: scale(1.06);
}
