/* =============================================================
   MKR Store — Layout Redesign
   White · Red #ea281f · Black #111
   DM Sans (body) · Bebas Neue (display)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* -------------------------------------------------------
   Variables
   ------------------------------------------------------- */
:root {
  --st-white:     #ffffff;
  --st-surface:   #f7f7f7;
  --st-border:    #e8e8e8;
  --st-text:      #111111;
  --st-muted:     #888888;
  --st-red:       #ea281f;
  --st-red-h:     #c0211a;
  /* --st-topbar-h: 36px; */ /* TOPBAR DESACTIVADA 2026-05-18 */
  --st-header-h:  64px;
  --st-nav-h:     40px;
  --st-imp-h:     0px;
  --ff-display:   'Bebas Neue', sans-serif;
  --ff-body:      'DM Sans', sans-serif;
  --t:            0.2s;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------
   Base overrides
   ------------------------------------------------------- */
body {
  font-family: var(--ff-body) !important;
  background: var(--st-white) !important;
  color: var(--st-text) !important;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------
   TOP BAR — DESACTIVADA 2026-05-18
   Contactos movidos al footer (.st-footer-sellers).
   Para re-activar: descomentar todo este bloque
   y los elementos en header-store.ctp / store.ctp
   ------------------------------------------------------- */
/*
.st-topbar {
  height: var(--st-topbar-h);
  background: #ca1600;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--ff-body);
  font-size: 12px;
}
.st-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-topbar-client {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}
.st-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.st-topbar-right a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--t);
}
.st-topbar-right a:hover {
  color: #fff;
}
.st-wa { position: relative; }
.st-wa-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-family: var(--ff-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color var(--t);
  line-height: 1;
}
.st-wa-toggle:hover { color: #fff; }
.st-wa-toggle .st-wa-ico { width: 12px; height: 12px; flex-shrink: 0; fill: #25D366; }
.st-wa-toggle .st-caret { font-size: 8px; opacity: 0.7; transition: transform var(--t) var(--ease); display: inline-block; }
.st-wa.open .st-caret { transform: rotate(180deg); }
.st-wa-dropdown {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--st-white);
  border: 1px solid var(--st-border);
  border-top: 3px solid #25D366;
  min-width: 220px;
  z-index: 2000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s var(--t);
}
.st-wa.open .st-wa-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s 0s;
}
.st-wa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--st-text);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--st-border);
  transition: background var(--t);
}
.st-wa-item:last-child { border-bottom: 0; }
.st-wa-item:hover { background: var(--st-surface); text-decoration: none; color: var(--st-text); }
.st-wa-item .st-wa-ico { width: 20px; height: 20px; flex-shrink: 0; fill: #25D366; }
.st-wa-name { font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--st-text); }
.st-wa-phone { font-size: 11px; color: var(--st-muted); line-height: 1.3; }
*/

/* -------------------------------------------------------
   MAIN HEADER
   ------------------------------------------------------- */
.st-header {
  height: var(--st-header-h);
  background: #ea281f;
  border-bottom: none;
  position: sticky;
  top: var(--st-imp-h);
  z-index: 900;
}
.st-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.st-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.st-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Search */
.st-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}
.st-search input[type="text"],
.st-search .autocomplete-search {
  width: 100% !important;
  height: 40px !important;
  border: 1.5px solid var(--st-border) !important;
  border-radius: 4px !important;
  padding: 0 44px 0 14px !important;
  font-size: 14px !important;
  font-family: var(--ff-body) !important;
  color: var(--st-text) !important;
  background: var(--st-surface) !important;
  transition: border-color var(--t), background var(--t) !important;
  outline: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  font-style: normal !important;
  margin: 0 !important;
}
.st-search input[type="text"]:focus,
.st-search .autocomplete-search:focus {
  border-color: var(--st-text) !important;
  background: var(--st-white) !important;
}
.st-search input::placeholder {
  color: var(--st-muted);
}
.st-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 40px;
  width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-muted);
  transition: color var(--t);
}
.st-search-btn:hover {
  color: var(--st-text);
}
/* Search icon on red header */
.st-header .st-search-btn {
  color: var(--st-muted);
}
.st-search-btn svg {
  width: 17px;
  height: 17px;
}

/* Header actions */
.st-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* User dropdown */
.st-user-menu {
  position: relative;
}
.st-user-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: border-color var(--t), background var(--t);
  white-space: nowrap;
}
.st-user-trigger:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.25);
}
.st-user-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.st-user-caret {
  width: 14px !important;
  height: 14px !important;
  color: rgba(255,255,255,0.7);
  transition: transform var(--t);
}
.st-user-menu.open .st-user-caret { transform: rotate(180deg); }
.st-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1.5px solid var(--st-border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 5px 0;
  display: none;
  z-index: 9999;
}
.st-user-menu.open .st-user-dropdown { display: block; }
.st-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--st-text);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.st-user-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--st-muted);
}
.st-user-item:hover { background: var(--st-surface); color: var(--st-text); text-decoration: none; }
.st-user-item--admin { color: var(--st-red) !important; }
.st-user-item--admin svg { color: var(--st-red) !important; }
.st-user-item--admin:hover { background: #fff8f8 !important; }
.st-user-item--logout:hover { color: #dc2626; }
.st-user-sep { height: 1px; background: var(--st-border); margin: 4px 0; }

/* Cart button — restyle the existing float-cart element */
.header-cart-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 12px !important;
  height: 36px !important;
  border: 1.5px solid #fff !important;
  border-radius: 4px !important;
  background: #fff !important;
  cursor: pointer !important;
  color: #ea281f !important;
  font-family: var(--ff-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background var(--t), color var(--t) !important;
  line-height: 1 !important;
}
.header-cart-btn:hover {
  background: #f0f0f0 !important;
  border-color: #f0f0f0 !important;
  color: #c01015 !important;
}
.header-cart-btn .fa {
  font-size: 14px !important;
  color: #ea281f !important;
}
.header-cart-btn .cart-btn-total {
  font-weight: 700 !important;
  color: #ea281f !important;
  font-size: 13px !important;
}

/* Reserve cart — green */
.header-cart-btn--reserve {
  background: #1a9940 !important;
  border-color: #1a9940 !important;
  color: #fff !important;
}
.header-cart-btn--reserve:hover {
  background: #157d34 !important;
  border-color: #157d34 !important;
  color: #fff !important;
}
.header-cart-btn--reserve .fa {
  color: #fff !important;
}

/* Presale cart — warm sand/cream */
.header-cart-btn--presale {
  background: #b19767 !important;
  border-color: #b19767 !important;
  color: #fff !important;
}
.header-cart-btn--presale:hover {
  background: #957e56 !important;
  border-color: #957e56 !important;
  color: #fff !important;
}
.header-cart-btn--presale .fa {
  color: #fff !important;
}



/* -------------------------------------------------------
   CONTENT
   ------------------------------------------------------- */
.st-content {
}

/* -------------------------------------------------------
   FOOTER
   ------------------------------------------------------- */
.st-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--ff-body);
  font-size: 13px;
  margin-top: 0;
}
.st-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 52px 24px 32px;
}
.st-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.st-footer-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}
.st-footer-tagline {
  line-height: 1.75;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.st-footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}
.st-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.st-footer-links li + li {
  margin-top: 8px;
}
.st-footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--t);
  font-size: 13px;
  line-height: 1.4;
}
.st-footer-links a:hover {
  color: #fff;
}
.st-footer-address {
  font-style: normal;
  line-height: 1.85;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.st-footer-address a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--t);
}
.st-footer-address a:hover {
  color: #fff;
}
.st-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 8px;
}
.st-footer-sellers {
  list-style: none;
  padding: 0;
  margin: 0;
}
.st-footer-seller {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.st-footer-seller:first-child { padding-top: 0; }
.st-footer-seller:last-child { border-bottom: 0; padding-bottom: 0; }
.st-footer-seller-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}
.st-footer-seller-phone {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
}
.st-footer-seller-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  color: #25D366;
  text-decoration: none;
  transition: opacity var(--t);
}
.st-footer-seller-wa:hover { opacity: 0.8; text-decoration: none; color: #25D366; }
.st-footer-seller-wa svg { width: 13px; height: 13px; flex-shrink: 0; fill: #25D366; }

/* -------------------------------------------------------
   Hide old Bootstrap header / menu / footer
   ------------------------------------------------------- */
.header-area,
.main-menu-area,
.footer-area {
  display: none !important;
}

/* -------------------------------------------------------
   Autocomplete overrides
   ------------------------------------------------------- */
.autocomplete-suggestions {
  border: 1px solid var(--st-border) !important;
  background: var(--st-white) !important;
  font-family: var(--ff-body) !important;
  font-size: 13px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 0 4px 4px !important;
  margin-top: -1px;
}
.autocomplete-selected {
  background: var(--st-surface) !important;
}

/* -------------------------------------------------------
   Flash messages
   ------------------------------------------------------- */
.st-flash-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}
.st-flash-wrap .alert {
  font-family: var(--ff-body);
  border-radius: 4px;
  font-size: 14px;
  border: none;
  padding: 12px 16px;
}
.st-flash-wrap .alert-success {
  background: #f0fdf4;
  color: #166534;
}
.st-flash-wrap .alert-danger,
.st-flash-wrap .alert-error {
  background: #fef2f2;
  color: #991b1b;
}
.st-flash-wrap .alert-warning {
  background: #fffbeb;
  color: #92400e;
}

/* -------------------------------------------------------
   Cart sidebar — styles live in cart-sidebar.css (loads after this file)
   ------------------------------------------------------- */

/* =============================================================
   FASE 1b — CATEGORY MEGA NAV (.st-cat-*)
   ============================================================= */

.st-cat-nav {
  background: #fff;
  border-bottom: 1px solid var(--st-border);
  position: sticky;
  top: calc(var(--st-imp-h) + var(--st-header-h));
  z-index: 800;
  height: var(--st-nav-h);
}

/* -------------------------------------------------------
   Trigger strip
   ------------------------------------------------------- */
.st-cat-triggers {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
}
.st-cat-all {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 16px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--st-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s;
}
.st-cat-all svg { width: 13px; height: 13px; flex-shrink: 0; }
.st-cat-all:hover { color: #ea281f; text-decoration: none; }
.st-cat-sep {
  width: 1px;
  height: 20px;
  background: var(--st-border);
  margin-right: 4px;
  flex-shrink: 0;
}
.st-cat-trigger {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  background: none;
  border: none;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--st-muted);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s;
  flex-shrink: 0;
}
.st-cat-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #ea281f;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.st-cat-trigger:hover { color: var(--st-text); }
.st-cat-trigger.st-cat-active { color: var(--st-text); }
.st-cat-trigger.st-cat-active::after { transform: scaleX(1); }

/* La barra no cabe entera bajo ~1400 px desde que entró «Marcas» (mkrcl_old #156):
   se aprieta por ancho y, si aun así no alcanza, se desliza de lado sin barra visible. */
@media (min-width: 1000px) {
  .st-cat-triggers { overflow-x: auto; scrollbar-width: none; }
  .st-cat-triggers::-webkit-scrollbar { display: none; }
}
@media (min-width: 1500px) {
  .st-cat-trigger { padding: 0 12px; }
}
@media (min-width: 1000px) and (max-width: 1499px) {
  .st-cat-trigger { padding: 0 9px; }
  .st-cat-all { padding-right: 12px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .st-cat-triggers { padding: 0 10px; }
  .st-cat-trigger { padding: 0 5px; font-size: 11px; letter-spacing: -0.1px; }
  .st-cat-all { padding-right: 8px; font-size: 11px; gap: 5px; }
}
/* Entre 1000 y 1149 px aún no cabe todo: el borde derecho se desvanece para que se note que sigue. */
@media (min-width: 1000px) and (max-width: 1149px) {
  .st-cat-triggers { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
}

/* -------------------------------------------------------
   Mega panel — light
   ------------------------------------------------------- */
.st-cat-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid #ea281f;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 850;
}
.st-cat-panel.st-cat-panel-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.st-cat-panel-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 28px;
}
.st-cat-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
}
.st-cat-panel-title {
  font-family: var(--ff-display);
  font-size: 32px;
  letter-spacing: 3px;
  color: #0f0f0f;
  line-height: 1;
  text-transform: uppercase;
}
.st-cat-panel-viewall {
  font-size: 12px;
  font-weight: 600;
  color: #ea281f;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.18s;
}
.st-cat-panel-viewall:hover { opacity: 0.75; color: #ea281f; text-decoration: none; }

/* Category grid */
.st-cat-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
}
.st-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 3px;
  text-decoration: none;
  color: #444;
  gap: 10px;
  transition: background 0.15s, color 0.15s;
}
.st-cat-link:hover {
  background: #fef2f2;
  color: #ea281f;
  text-decoration: none;
}
.st-cat-link-name {
  font-size: 13px;
  line-height: 1.3;
}
.st-cat-link-count {
  font-size: 11px;
  color: #aaa;
  flex-shrink: 0;
  transition: color 0.15s;
}
.st-cat-link:hover .st-cat-link-count { color: #ea281f; opacity: 0.5; }

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 992px) {
  .st-cat-panel-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 999px) {
  .st-cat-nav { display: none; }
}

/* =============================================================
   FASE 4 — PRODUCT CARDS (.pc-card)
   ============================================================= */

.pc-card {
  background: var(--st-white);
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
  font-family: var(--ff-body);
}
.pc-card:hover {
  border-color: #c8c8c8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}
.pc-card.product-in-cart {
  border-color: #16a34a;
}
.pc-card.product-in-cart::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* -------------------------------------------------------
   Image area
   ------------------------------------------------------- */
.pc-img-link {
  display: block;
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--st-surface);
  text-decoration: none;
  flex-shrink: 0;
}
.pc-img-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s var(--ease);
}
.pc-card:hover .pc-img-link img {
  transform: scale(1.04);
}
.pc-card--oos .pc-img-link img {
  opacity: 0.45;
}

/* -------------------------------------------------------
   Badges
   ------------------------------------------------------- */
.pc-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.pc-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: var(--ff-body);
  line-height: 1.4;
  text-transform: uppercase;
}
.pc-badge--sale    { background: var(--st-red);   color: #fff; }
.pc-badge--promo   { background: #111;             color: #fff; }
.pc-badge--reserve { background: #1a9940;          color: #fff; }
.pc-badge--oos     { background: #e5e7eb;          color: #6b7280; }

/* -------------------------------------------------------
   Card body
   ------------------------------------------------------- */
.pc-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.pc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
  transition: color var(--t);
}
.pc-name:hover { color: var(--st-red); }

.pc-meta {
  font-size: 11px;
  color: var(--st-muted);
  margin-bottom: 8px;
  line-height: 1.3;
}
.pc-stock-ok     { color: #16a34a; font-weight: 600; }
.pc-stock-transit { color: #1a9940; font-weight: 600; }

.pc-before-price {
  font-size: 11px;
  color: var(--st-muted);
  text-decoration: line-through;
  margin-bottom: 1px;
  font-family: var(--ff-body);
}
.pc-price {
  font-family: var(--ff-display);
  font-size: 21px;
  color: var(--st-text);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.pc-price--unavailable {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

/* Discount blocks from $product->getDiscountsBlock() */
.pc-card .discounts-blocks-wrapper {
  height: auto !important;
  overflow: visible !important;
  margin-bottom: 8px;
}
.pc-card .discounts-block {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--st-red);
  padding: 2px 6px;
  background: #fff0f0;
  border-radius: 2px;
  margin: 1px 2px 1px 0;
  font-family: var(--ff-body);
}

/* -------------------------------------------------------
   Actions
   ------------------------------------------------------- */
.pc-actions {
  margin-top: auto;
  padding-top: 10px;
}
.pc-card .add-to-cart,
.pc-card .add-to-cart-reserve,
.pc-card .add-to-cart-presale {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-card .qty {
  width: 46px;
  height: 34px;
  border: 1.5px solid var(--st-border);
  border-radius: 3px;
  text-align: center;
  font-size: 13px;
  font-family: var(--ff-body);
  color: var(--st-text);
  background: var(--st-white);
  outline: none;
  flex-shrink: 0;
  -moz-appearance: textfield;
}
.pc-card .qty::-webkit-inner-spin-button,
.pc-card .qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.pc-card .qty:focus { border-color: var(--st-text); }

/* Buttons */
.pc-card .button {
  flex: 1;
  display: block;
  padding: 9px 8px;
  background: var(--st-red);
  color: #fff !important;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--t);
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  outline: none;
}
.pc-card .button:hover  { background: var(--st-red-h); }
.pc-card .button span   { pointer-events: none; }

.pc-card .button--reserve {
  background: #1a9940;
}
.pc-card .button--reserve:hover { background: #157d34; }
/* main.min.css pinta `.add-to-cart-reserve span` de #3f9f00 !important: un verde distinto detrás del texto */
.pc-card .add-to-cart-reserve .button span { background-color: transparent !important; border-color: transparent !important; }

.pc-card .button--ghost {
  background: var(--st-white);
  color: var(--st-muted) !important;
  border: 1.5px solid var(--st-border);
}
.pc-card .button--ghost:hover {
  background: var(--st-white); /* si no, hereda el rojo de .pc-card .button:hover */
  border-color: var(--st-text);
  color: var(--st-text) !important;
}

/* When used as a link (presale) */
a.button.button--ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 100%;
  text-decoration: none;
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 640px) {
  .pc-price { font-size: 18px; }
  .pc-card .qty { width: 40px; }
}

/* =============================================================
   FASE 3 — LISTING PAGE (category, brand, todos, etc.)
   ============================================================= */

/* -------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------- */
/* -------------------------------------------------------
   Category page header
   ------------------------------------------------------- */
.sf-cat-head {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 22px 0;
}
.sf-cat-head-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sf-cat-head-accent {
  width: 4px;
  height: 48px;
  background: #ea281f;
  border-radius: 2px;
  flex-shrink: 0;
}
.sf-cat-head-crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--ff-body);
  color: #aaa;
  margin-bottom: 5px;
}
.sf-cat-head-crumb a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}
.sf-cat-head-crumb a:hover { color: #ea281f; text-decoration: none; }
.sf-cat-head-sep { color: #ddd; font-size: 10px; }
.sf-cat-head-title {
  font-family: var(--ff-display);
  font-size: 40px;
  letter-spacing: 1px;
  color: #0f0f0f;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.sf-cat-head-sub {
  font-family: var(--ff-body);
  font-size: 13px;
  color: #666;
  margin: 8px 0 0;
  max-width: 720px;
}
.sf-cat-head-parent {
  color: #bbb;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.sf-cat-head-parent:hover { color: #ea281f; }
.sf-cat-head-div { color: #ea281f; margin: 0 4px; }

/* Hide the in-grid page title on category pages (heading moved to sf-cat-head) */
.store-category .sf-page-title { display: none; }

.sf-breadcrumb {
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border);
  font-family: var(--ff-body);
  font-size: 12px;
}
.sf-breadcrumb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
}
.sf-breadcrumb ol,
.sf-breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.sf-breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--st-muted);
}
.sf-breadcrumb li + li::before {
  content: '/';
  margin: 0 7px;
  color: var(--st-border);
}
.sf-breadcrumb a {
  color: var(--st-muted);
  text-decoration: none;
  transition: color var(--t);
}
.sf-breadcrumb a:hover { color: var(--st-text); }
.sf-breadcrumb li:last-child { color: var(--st-text); font-weight: 500; }

/* -------------------------------------------------------
   Layout grid
   ------------------------------------------------------- */
.sf-title-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
.sf-title-bar .sf-page-title { margin: 0; }

.sf-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  align-items: start;
}
.sf-layout.sf-layout--no-sidebar {
  grid-template-columns: 1fr;
}

/* -------------------------------------------------------
   Sidebar
   ------------------------------------------------------- */
.sf-sidebar {
  position: sticky;
  top: calc(var(--st-imp-h) + var(--st-header-h) + var(--st-nav-h) + 16px);
  max-height: calc(100vh - var(--st-imp-h) - var(--st-header-h) - var(--st-nav-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--st-border) transparent;
  padding-right: 4px;
}
.sf-sidebar::-webkit-scrollbar { width: 4px; }
.sf-sidebar::-webkit-scrollbar-track { background: transparent; }
.sf-sidebar::-webkit-scrollbar-thumb { background: var(--st-border); border-radius: 2px; }

.sf-filter-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ea281f;
  padding-bottom: 18px;
  border-bottom: 2px solid #ea281f;
  margin-bottom: 20px;
  font-family: var(--ff-body);
  margin-top: 7px;
}

/* Filter groups */
.sf-sidebar .shop-layout {
  border-top: none !important;
  border-bottom: 1px solid var(--st-border);
  padding: 0;
  margin: 0;
}
.sf-sidebar .shop-layout .layout-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 0 !important;
  border-bottom: none !important;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.sf-sidebar .shop-layout .layout-title:hover h2 { color: #ea281f; }
.sf-sidebar .shop-layout .layout-title:hover .fa { color: #ea281f; }
.sf-sidebar .shop-layout .layout-title h2 {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text);
  margin: 0 !important;
  line-height: 1;
  transition: color 0.15s;
}
.sf-sidebar .shop-layout .layout-title .fa {
  float: none !important;
  line-height: 1 !important;
  color: #ccc;
  font-size: 11px;
  flex-shrink: 0;
  transition: transform var(--t), color 0.15s;
  align-self: center;
}
.sf-sidebar .layout-list ul {
  list-style: none;
  padding: 0 0 10px;
  margin: 0;
}
.sf-sidebar .layout-list a {
  display: block;
  padding: 4px 0 4px 0;
  font-size: 13px;
  color: var(--st-muted);
  text-decoration: none;
  transition: color var(--t);
  font-family: var(--ff-body);
  line-height: 1.4;
}
.sf-sidebar .layout-list a:hover { color: #ea281f; }
.sf-sidebar .layout-list li.active a {
  color: #ea281f;
  font-weight: 600;
  padding-left: 10px;
  position: relative;
}
.sf-sidebar .layout-list li.active a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #ea281f;
  border-radius: 50%;
}

/* Price filter */
.sf-sidebar .price-filter-area.shop-layout { border-bottom: 1px solid var(--st-border); }
.sf-sidebar .price-filter-area #amount {
  font-size: 12px;
  color: var(--st-text) !important;
  font-family: var(--ff-body);
}
.sf-sidebar .price-filter-area .btn {
  font-size: 12px;
  font-family: var(--ff-body);
  padding: 6px 14px;
  background: #ea281f;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.sf-sidebar .price-filter-area .btn:hover { background: #c01015; }
.sf-sidebar .shop-layout-banner { display: none; }

/* -------------------------------------------------------
   Main content
   ------------------------------------------------------- */
.sf-main { min-width: 0; }

.sf-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--st-border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sf-toolbar-left { flex: 1; min-width: 0; }
.sf-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.sf-search-inline { position: relative; max-width: 200px; }
.sf-search-inline input[type="text"],
.sf-search-inline .autocomplete-search {
  width: 100% !important;
  height: 32px !important;
  border: 1.5px solid var(--st-border) !important;
  border-radius: 3px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-family: var(--ff-body) !important;
  background: var(--st-surface) !important;
  color: var(--st-text) !important;
  outline: none !important;
  box-shadow: none !important;
  font-style: normal !important;
  min-width: 0 !important;
}
.sf-search-inline input:focus { border-color: var(--st-text) !important; background: #fff !important; }

.sf-ctrl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--st-muted);
  font-family: var(--ff-body);
  white-space: nowrap;
}
.sf-ctrl label { font-weight: 500; margin: 0; }
.sf-ctrl select {
  height: 30px;
  border: 1.5px solid var(--st-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: var(--ff-body);
  color: var(--st-text);
  background: var(--st-white);
  padding: 0 6px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--t);
}
.sf-ctrl select:focus { border-color: #ea281f; }

.sf-page-title {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--st-text);
  margin: 0 0 16px;
}
.sf-page-title b { color: var(--st-red); font-weight: 700; }

.sf-downloads {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sf-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--st-muted);
  text-decoration: none;
  font-family: var(--ff-body);
  transition: color var(--t);
}
.sf-downloads a:hover { color: var(--st-text); }
.sf-downloads a img { height: 13px; width: auto; }

/* Download loader overlay */
.dl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.dl-overlay--active { display: flex; }
.dl-overlay__box {
  background: #fff;
  border-radius: 6px;
  padding: 36px 48px;
  text-align: center;
  max-width: 340px;
  width: 90%;
}
.dl-overlay__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #f0f0f0;
  border-top-color: var(--st-red);
  border-radius: 50%;
  animation: dl-spin 0.8s linear infinite;
  margin: 0 auto 18px;
}
@keyframes dl-spin { to { transform: rotate(360deg); } }
.dl-overlay__title {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--st-text);
  margin-bottom: 6px;
}
.dl-overlay__sub {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.dl-overlay__cancel {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
}
.dl-overlay__cancel:hover { color: var(--st-text); }

/* Product grid */
.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Empty state */
.sf-empty {
  padding: 56px 24px;
  text-align: center;
  font-family: var(--ff-body);
}
.sf-empty-icon {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
}
.sf-empty-icon svg {
  width: 100%;
  height: 100%;
}
.sf-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--st-text);
  margin: 0 0 8px;
  letter-spacing: .01em;
}
.sf-empty-msg {
  font-size: 13px;
  color: var(--st-muted);
  margin: 0;
  line-height: 1.7;
}
.sf-empty-msg strong { color: var(--st-text); }
.sf-empty a { color: var(--st-red); text-decoration: none; }
.sf-empty a:hover { text-decoration: underline; }

/* Campaña que ya terminó o que todavía no empieza: en vez de un 404, las
   promociones que sí están vigentes ahora. */
.sf-ended-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 24px;
  max-width: 680px;
}
.sf-ended-link {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text) !important;
  text-decoration: none !important;
  transition: border-color .18s, color .18s;
}
.sf-ended-link:hover {
  border-color: var(--st-red);
  color: var(--st-red) !important;
}

/* Aviso de vista previa: solo lo ve el administrador, sobre una campaña que
   los clientes todavía no pueden ver. */
.sf-preview-note {
  max-width: 1400px;
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid #f3d17a;
  border-left: 4px solid #e0a800;
  border-radius: 6px;
  background: #fff9e6;
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.6;
  color: #6b5300;
}
.sf-preview-note a {
  color: #6b5300;
  text-decoration: underline;
  margin-left: 4px;
}

/* Pagination */
.sf-pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
  font-family: var(--ff-body);
}
.sf-pagination ol,
.sf-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sf-pagination li a,
.sf-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1.5px solid var(--st-border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--st-text);
  text-decoration: none;
  background: var(--st-white);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.sf-pagination li a:hover {
  border-color: #ea281f;
  color: #ea281f;
}
.sf-pagination li.active a,
.sf-pagination li.active span {
  background: #ea281f;
  border-color: #ea281f;
  color: #fff;
  font-weight: 600;
}
.sf-pagination li.disabled a,
.sf-pagination li.disabled span {
  color: var(--st-border);
  border-color: var(--st-border);
}

/* Results count */
.sf-results-count {
  font-size: 12px;
  color: #999;
  margin: 0 0 10px;
  font-family: var(--ff-body);
  line-height: 1;
}
.sf-results-count--foot {
  text-align: center;
  margin: 10px 0 0;
}

/* Responsive */
@media (max-width: 992px) {
  .sf-layout { grid-template-columns: 1fr; }
  .sf-sidebar { position: static; max-height: none; }
  .sf-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .sf-layout { padding: 16px 16px 48px; }
  .sf-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sf-toolbar { flex-direction: column; align-items: flex-start; }
  .sf-toolbar-right { width: 100%; }
}

/* =============================================================
   FASE 2 — CATALOG HOMEPAGE
   ============================================================= */

.sc-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ff-body);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  letter-spacing: 0.2px;
}
.sc-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.sc-btn--outline {
  border-color: var(--st-border);
  color: var(--st-text);
  background: var(--st-white);
}
.sc-btn--outline:hover {
  border-color: var(--st-text);
  color: var(--st-text);
  text-decoration: none;
  background: var(--st-white);
}
.sc-btn--red {
  background: #ea281f;
  color: #fff;
  border-color: #ea281f;
}
.sc-btn--red:hover {
  background: #c7201b;
  border-color: #c7201b;
  color: #fff;
  text-decoration: none;
}
/* -------------------------------------------------------
   Venta Reserva alert
   ------------------------------------------------------- */
.sc-reserve-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-left: 4px solid #ea281f;
  border-radius: 3px;
  margin: 0;
  font-size: 13px;
  color: var(--st-text);
}
.sc-reserve-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea281f;
  flex-shrink: 0;
  animation: sc-pulse 2s infinite;
}
@keyframes sc-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.sc-reserve-alert a {
  margin-left: auto;
  color: #ea281f;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.sc-reserve-alert a:hover { text-decoration: underline; }

/* -------------------------------------------------------
   SRAM featured section — franja compacta
   ------------------------------------------------------- */
.sc-sram {
  background: linear-gradient(110deg, #c01015 0%, #ea281f 55%, #c81818 100%);
  position: relative;
  overflow: hidden;
}
.sc-sram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg, transparent, transparent 20px,
    rgba(0,0,0,0.06) 20px, rgba(0,0,0,0.06) 21px
  );
  pointer-events: none;
}
.sc-sram::after {
  content: '';
  position: absolute;
  top: -60%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.sc-sram-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}
.sc-sram-content {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.sc-sram-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-sram-title {
  font-family: var(--ff-display);
  font-size: 22px;
  color: #fff;
  margin: 0;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
}
.sc-sram-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-sram-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #0f0f0f;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s;
}
.sc-sram-cta svg { width: 13px; height: 13px; flex-shrink: 0; }
.sc-sram-cta:hover { background: #2d2d2d; color: #fff; text-decoration: none; transform: translateX(2px); }
.sc-sram-logo {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.sc-sram:hover .sc-sram-logo { opacity: 1; }
.sc-sram-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
@media (max-width: 900px) {
  .sc-sram-desc { display: none; }
}
@media (max-width: 640px) {
  .sc-sram-logo { display: none; }
  .sc-sram-inner { padding: 0 20px; height: 60px; }
  .sc-sram-eyebrow { display: none; }
}

/* -------------------------------------------------------
   Quick links — bold fill-on-hover cards
   ------------------------------------------------------- */
.sc-quicklinks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 28px 0 0;
}
.sc-quicklinks--6 { grid-template-columns: repeat(6, 1fr); }
.sc-ql-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1.5px solid #e4e4e4;
  border-top: 3px solid #ea281f;
  border-radius: 4px;
  text-decoration: none;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s;
}
.sc-ql-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ea281f;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.sc-ql-card:hover::after { transform: scaleY(1); }
.sc-ql-card > * { position: relative; z-index: 1; }
.sc-ql-card:hover { color: #fff; border-color: #ea281f; text-decoration: none; }
.sc-ql-card:hover .sc-ql-sub { color: rgba(255,255,255,0.5); }
.sc-ql-ico {
  color: #ea281f;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
  animation: ql-float 2.8s ease-in-out infinite;
}
@keyframes ql-float {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -7px; }
}
.sc-ql-card:nth-child(1) .sc-ql-ico { animation-delay:  0.00s; }
.sc-ql-card:nth-child(2) .sc-ql-ico { animation-delay: -0.56s; }
.sc-ql-card:nth-child(3) .sc-ql-ico { animation-delay: -1.12s; }
.sc-ql-card:nth-child(4) .sc-ql-ico { animation-delay: -1.68s; }
.sc-ql-card:nth-child(5) .sc-ql-ico { animation-delay: -2.24s; }
.sc-ql-ico svg { width: 26px; height: 26px; display: block; }
.sc-ql-card:hover .sc-ql-ico { color: #fff; transform: scale(1.1); animation-play-state: paused; translate: 0 0; }
.sc-ql-label {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.sc-ql-sub {
  font-size: 11px;
  color: #888;
  line-height: 1.3;
  margin-top: 3px;
  transition: color 0.2s;
}

/* -------------------------------------------------------
   Section header (shared between .sc-section and .sc-brands)
   ------------------------------------------------------- */
.sc-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 0;
}
.sc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-left: 4px solid #ea281f;
  padding-left: 14px;
}
.sc-section-title {
  font-family: var(--ff-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  color: var(--st-text);
  margin: 0;
  line-height: 1;
}
.sc-section-link {
  font-size: 12px;
  font-weight: 700;
  color: #ea281f;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.18s;
}
.sc-section-link:hover { color: #c7201b; text-decoration: none; }

/* -------------------------------------------------------
   Slider — full bleed, edge to edge
   ------------------------------------------------------- */
.sc-slider-wrap {
  margin: 0;
  padding: 0;
}
.sc-slider-wrap .main-slider-area {
  margin-top: 0 !important;
}
.sc-slider-wrap .main-slider {
  border-radius: 0;
  overflow: visible;
  max-height: none !important;
  position: relative;
}
.sc-slider-wrap .banner-slider .item {
  position: relative;
}
.sc-slider-wrap .banner-slider .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.14) 0%, transparent 35%,
    transparent 65%, rgba(0,0,0,0.14) 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* El alto sale de la proporción real de las imágenes, que el servidor mide con
   getimagesize() y deja en --sc-ar-d / --sc-ar-m (ver SlideImages). Antes era un
   35.372% escrito a mano —2109 x 746—, así que cualquier banner con otra medida
   se recortaba en silencio: el de Renthal, 2075 x 758, perdía 3,2% del alto.

   Es UNA proporción para todo el slider, no una por slide: el carrusel es Owl 1
   y el alto lo fija el CSS, así que si cambiara entre uno y otro saltaría al
   pasar. El que se desvía se recorta con object-fit, y el panel lo avisa al
   subir la imagen. */
.sc-slider-wrap .banner-slider .item a {
  display: block;
  position: relative;
}
.sc-slider-wrap .banner-slider .item a picture {
  display: block;
}
/* `opacity: 1` no es decorativo: main.min.css trae cuatro reglas
   `body .banner-slider .item a img { opacity: 0 }` —una por breakpoint— de
   cuando el arte se pintaba como `background-image` del `.item` y el `<img>`
   era solo un espaciador invisible que le daba alto al bloque. Al pasar el
   arte al `<img>` esas reglas quedaron vivas y dejaban los seis banners
   transparentes: el slider ocupaba su alto y no se veía nada. */
.sc-slider-wrap .banner-slider .item a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  aspect-ratio: var(--sc-ar-d, 2109 / 746);
  object-fit: cover;
  object-position: center center;
}

/* En el teléfono el banner apaisado es una franja ilegible: 2,83:1 sobre 390 px
   son 138 px de alto. Con arte vertical (1:1, la misma pieza que se arma para
   ExtremeZone) el bloque toma esa proporción. Sin arte vertical no queda otra
   que recortar el de escritorio, y --sc-focus decide por dónde: en el banner de
   Renthal, 'left' deja a la vista el logo y el "HASTA 40% OFF". */
@media (max-width: 767.98px) {
  .sc-slider-wrap .banner-slider .item a img {
    aspect-ratio: var(--sc-ar-m, 16 / 10);
    object-position: var(--sc-focus, center) center;
  }
}

/* Escritorio: el slider ya no va de borde a borde. A 1920 px de ancho, el arte de
   2109x746 medía 679 px de alto y tapaba la página; contenido a 1200 px queda en
   424 px, sin recortar nada del arte (misma proporción). Debajo, la fila de calugas
   ocupa el mismo ancho. En el teléfono no cambia. */
@media (min-width: 768px) {
  .sc-slider-wrap {
    max-width: 1352px;
    margin: 12px auto 0;
    padding: 0 24px;
    box-sizing: content-box;
  }
  .sc-slider-wrap .main-slider { border-radius: 10px; overflow: hidden; }
  .sc-slider-wrap .banner-slider .item::after { display: none; }
}

.sc-calugas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1352px;
  margin: 12px auto 0;
  padding: 0 24px;
  box-sizing: content-box;
}
.sc-caluga {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.sc-caluga img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity .15s;
}
.sc-caluga:hover img { opacity: .92; }
.sc-caluga:focus-visible { outline: 3px solid #c7201b; outline-offset: 2px; }
@media (max-width: 767.98px) {
  .sc-calugas { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; margin-top: 10px; }
  /* Mismo ancho que la franja ZEB y las calugas (16 px a cada lado). */
  .sc-slider-wrap { padding: 0 16px; margin-top: 10px; }
  .sc-slider-wrap .main-slider { border-radius: 10px; overflow: hidden; }
  .sc-slider-wrap .banner-slider .item::after { display: none; }
}

/* Owl controls — superpuestos sobre el slide */
.sc-slider-wrap .owl-controls.clickable {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}
/* Dots — centro inferior */
.sc-slider-wrap .owl-pagination {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  pointer-events: all;
}
.sc-slider-wrap .owl-page {
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}
.sc-slider-wrap .owl-page span {
  display: block;
  width: 7px !important; height: 7px !important;
  margin: 0 !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.75) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  opacity: 1 !important;
  transition: width 0.2s, background 0.2s;
}
.sc-slider-wrap .owl-page.active span {
  width: 18px !important;
  background: #fff !important;
}
.sc-slider-wrap .owl-page:hover span { background: #fff !important; }
/* Flechas — lados, centradas verticalmente */
.sc-slider-wrap .owl-buttons {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 16px;
}
.sc-slider-wrap .owl-buttons div {
  pointer-events: all;
  width: 34px !important; height: 34px !important;
  margin: 0 !important; padding: 0 !important;
  background: rgba(255,255,255,0.92) !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s, background 0.18s;
  user-select: none;
  -webkit-user-select: none;
}
.sc-slider-wrap:hover .owl-buttons div,
.sc-slider-wrap .owl-buttons div:focus-visible { opacity: 1; }
.sc-slider-wrap .owl-buttons div:hover { background: #fff !important; }
.sc-slider-wrap .owl-buttons { padding: 0 10px !important; }
@media (hover: none), (max-width: 767.98px) {
  .sc-slider-wrap .owl-buttons { display: none !important; }
}

/* -------------------------------------------------------
   Banners triple
   ------------------------------------------------------- */
.sc-banners {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.sc-banners-label {
  font-family: var(--ff-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--st-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-banners-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: #ea281f;
  flex-shrink: 0;
}
.sc-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sc-banners-grid a {
  display: block;
  border-radius: 3px;
  overflow: hidden;
}
.sc-banners-grid img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.sc-banners-grid a:hover img { transform: scale(1.03); }
/* Variante de dos banners: misma grilla, mitad y mitad */
.sc-banners-grid--duo {
  grid-template-columns: repeat(2, 1fr);
}
.sc-banner-full {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.sc-banner-full a {
  display: block;
  border-radius: 3px;
  overflow: hidden;
}
.sc-banner-full img { width: 100%; display: block; }

/* -------------------------------------------------------
   Carousels — strong left-border section header
   ------------------------------------------------------- */
.sc-carousel-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 0;
}
.sc-carousel-wrap .head-title {
  border-left: 4px solid #ea281f;
  padding-left: 14px;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
/* Carrusel con el título oculto: se cae la barra roja y el "Ver todos"
   queda solo, alineado a la derecha. */
.sc-carousel-wrap .head-title--no-title {
  border-left: none;
  padding-left: 0;
  margin-bottom: 12px;
  justify-content: flex-end;
}
.sc-carousel-ver-todos {
  font-size: 13px;
  font-weight: 600;
  color: #ea281f !important;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 16px;
  letter-spacing: 0.3px;
  transition: opacity 0.15s;
  background: #fff;
  padding-left: 12px;
  position: relative;
  z-index: 2;
}
.sc-carousel-ver-todos:hover { opacity: 0.75; }
.sc-carousel-wrap .head-title p {
  font-family: var(--ff-display) !important;
  font-size: 26px !important;
  letter-spacing: 1.5px !important;
  color: var(--st-text) !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}
.sc-carousel-wrap .head-title p a {
  color: var(--st-text) !important;
  text-decoration: none !important;
}

/* -------------------------------------------------------
   Brands strip
   ------------------------------------------------------- */
.sc-brands {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 48px;
}
.sc-brands-track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1.5px solid #e4e4e4;
  border-radius: 4px;
}
.sc-brands-track::-webkit-scrollbar { display: none; }
.sc-brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-right: 1.5px solid #e4e4e4;
  text-decoration: none;
  transition: background 0.18s;
  background: #fff;
}
.sc-brand-item:last-child { border-right: none; }
.sc-brand-item:hover { background: #f7f7f7; }
.sc-brand-item img {
  height: 30px;
  width: auto;
  display: block;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.2s, opacity 0.2s;
}
.sc-brand-item:hover img { filter: grayscale(0); opacity: 1; }

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 992px) {
  /* .st-topbar-right .st-wa { display: none; } */ /* TOPBAR DESACTIVADA */
  .st-search { max-width: none; }
  .st-user-name { display: none; }
  .st-footer-grid { grid-template-columns: 1fr 1fr; }
  .sc-quicklinks { grid-template-columns: repeat(3, 1fr); }
  .sc-banners-grid { grid-template-columns: repeat(3, 1fr); }
  .sc-banners-grid--duo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .st-header-inner { gap: 12px; padding: 0 16px; }
  /* .st-topbar-inner { padding: 0 16px; } */ /* TOPBAR DESACTIVADA */
  .header-cart-btn .cart-btn-total { display: none !important; }
  .st-footer-grid { grid-template-columns: 1fr; }
  .st-footer-inner { padding: 40px 16px 24px; }
  .sc-wrap { padding: 0 16px; }
  .sc-quicklinks { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sc-banners-grid { grid-template-columns: 1fr; }
  .sc-banners-grid--duo { grid-template-columns: 1fr; }
  .sc-section, .sc-carousel-wrap, .sc-banners, .sc-brands { padding-left: 16px; padding-right: 16px; }
}

/* =============================================================
   FASE 5 — PRODUCT PAGE (.sp-*)
   ============================================================= */

.sp-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 20px;
}

/* Two-column layout: gallery + info panel */
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* -------------------------------------------------------
   Gallery
   ------------------------------------------------------- */
.sp-gallery {
  position: sticky;
  top: calc(var(--st-imp-h) + var(--st-header-h) + var(--st-nav-h) + 16px);
}
.sp-gallery-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Thumbnails: override Bootstrap nav-tabs to go vertical */
.sp-gallery .sp-thumbs.nav-tabs {
  border-bottom: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  width: 72px;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.sp-gallery .sp-thumbs.nav-tabs > li {
  float: none !important;
  margin: 0 !important;
}
.sp-gallery .sp-thumbs.nav-tabs > li > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--st-border) !important;
  border-radius: 4px !important;
  overflow: hidden;
  background: var(--st-surface) !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: border-color var(--t);
}
.sp-gallery .sp-thumbs > li.active > a,
.sp-gallery .sp-thumbs > li > a:hover {
  border-color: var(--st-text) !important;
  background: var(--st-surface) !important;
}
.sp-gallery .sp-thumbs > li > a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* Main image */
.sp-main-img { flex: 1; min-width: 0; }

/* Override old main.min.css fixed dimensions on simpleLens containers */
.sp-gallery .simpleLens-thumbnails-container {
  margin: 0 !important;
  width: auto !important;
}

/* Parent is display:table in old CSS — reset to block so children are normal */
.sp-main-img .simpleLens-gallery-container,
.sp-main-img .simpleLens-container {
  display: block !important;
  width: 100% !important;
}

.sp-main-img .simpleLens-big-image-container {
  display: block !important;
  height: auto !important;
  width: 100% !important;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}
.sp-main-img .simpleLens-big-image-container a {
  display: block;
}
.sp-main-img .simpleLens-big-image {
  max-width: 100%;
  height: auto !important;
  max-height: 500px;
  object-fit: contain;
  padding: 20px;
  display: block;
  margin: 0 auto;
}
.sp-img-note {
  font-size: 11px;
  color: var(--st-muted);
  text-align: center;
  margin: 8px 0 0;
  font-family: var(--ff-body);
}

/* -------------------------------------------------------
   Info panel
   ------------------------------------------------------- */
.sp-info { font-family: var(--ff-body); }

.sp-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--st-text);
  line-height: 1.25;
  margin: 0 0 16px;
  font-family: var(--ff-body);
}

.sp-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--st-border);
  font-size: 13px;
  font-family: var(--ff-body);
}
.sp-meta-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sp-meta-label {
  font-weight: 600;
  color: var(--st-text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 130px;
}
.sp-meta-value { color: var(--st-muted); }
.sp-meta-value--stock { color: #16a34a; font-weight: 600; }
.sp-meta-value--transit { color: #1a9940; font-weight: 600; }
.sp-meta-value a { color: var(--st-red); text-decoration: none; font-weight: 600; }
.sp-meta-value a:hover { text-decoration: underline; }
.sp-barcode-trigger {
  cursor: pointer;
  color: var(--st-red);
  border-bottom: 1px dashed var(--st-red);
  font-weight: 600;
}

/* Short description */
.sp-short-desc {
  font-size: 13px;
  color: var(--st-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--st-border);
  font-family: var(--ff-body);
}

/* -------------------------------------------------------
   Price area
   ------------------------------------------------------- */
.sp-price-area { margin-bottom: 14px; }

/* Ficha compacta: los precios de referencia en una línea y el mayorista tachado
   al lado del precio grande. Son clases nuevas a propósito — .sp-price-secondary
   y .sp-price-mayorista también las usan la preventa y la venta en verde, que
   siguen apiladas. */
.sp-price-refs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 18px;
  margin-bottom: 6px;
}
.sp-price-refs .sp-price-secondary { margin-bottom: 0; }

.sp-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2px;
}
.sp-price-main .sp-price { margin-bottom: 0; }
.sp-price-main .sp-price-mayorista { margin-bottom: 0; }

.sp-promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 12px;
  font-family: var(--ff-body);
}
.sp-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--st-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 10px;
  font-family: var(--ff-body);
}
.sp-price-secondary {
  font-size: 13px;
  color: var(--st-muted);
  margin-bottom: 3px;
  font-family: var(--ff-body);
}
.sp-price-secondary-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-right: 4px;
}
.sp-price-mayorista {
  font-size: 13px;
  color: var(--st-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
  font-family: var(--ff-body);
}
.sp-price {
  font-family: var(--ff-display);
  font-size: 38px;
  color: var(--st-text);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.sp-price-type {
  font-size: 11px;
  color: var(--st-muted);
  font-family: var(--ff-body);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Discounts block from getDiscountsBlock() */
.sp-info .discounts-blocks-wrapper {
  height: auto !important;
  overflow: visible !important;
  margin-bottom: 12px;
}
.sp-info .discounts-block {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--st-red);
  padding: 3px 8px;
  background: #fff0f0;
  border-radius: 3px;
  margin: 2px 3px 2px 0;
  font-family: var(--ff-body);
}

/* Promo block */
.sp-promo-info {
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-size: 13px;
  color: #166534;
  margin-bottom: 14px;
  font-family: var(--ff-body);
  line-height: 1.5;
}

/* No-discount note */
.sp-no-discount-note {
  font-size: 12px;
  color: var(--st-muted);
  padding: 6px 0 10px;
  font-family: var(--ff-body);
  font-style: italic;
}

/* -------------------------------------------------------
   Exclusive campaign coupon badge
   ------------------------------------------------------- */
.sp-exclusive-coupon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e6;
  border: 1.5px solid #e6b800;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.sp-exclusive-coupon__icon {
  flex-shrink: 0;
  color: #b8890a;
  margin-top: 1px;
}
.sp-exclusive-coupon__title {
  font-weight: 700;
  font-size: 14px;
  color: #7a5c00;
  margin-bottom: 3px;
}
.sp-exclusive-coupon__meta {
  font-size: 12px;
  color: #9a7500;
}
.sp-exclusive-coupon__meta strong {
  font-family: var(--ff-mono, monospace);
  letter-spacing: 1px;
  color: #5c4200;
}

/* -------------------------------------------------------
   Cart form
   ------------------------------------------------------- */
.sp-cart-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.sp-qty-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
  height: 44px;
  flex-shrink: 0;
}
.sp-qty-btn {
  width: 36px;
  border: none;
  background: var(--st-surface);
  cursor: pointer;
  font-size: 18px;
  color: var(--st-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  padding: 0;
  font-family: var(--ff-body);
  line-height: 1;
}
.sp-qty-btn:hover { background: var(--st-border); }
.sp-qty-field {
  width: 54px;
  border: none;
  border-left: 1.5px solid var(--st-border);
  border-right: 1.5px solid var(--st-border);
  text-align: center;
  font-size: 15px;
  font-family: var(--ff-body);
  color: var(--st-text);
  background: var(--st-white);
  -moz-appearance: textfield;
  outline: none;
}
.sp-qty-field::-webkit-inner-spin-button,
.sp-qty-field::-webkit-outer-spin-button { -webkit-appearance: none; }

.sp-add-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: var(--st-red);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t);
  white-space: nowrap;
}
.sp-add-btn:hover { background: var(--st-red-h); color: #fff !important; text-decoration: none; }
/* Override legacy button.button { background: 0 0; padding: 0; } — higher specificity needed */
button.sp-add-btn {
  background: var(--st-red) !important;
  padding: 0 20px !important;
  width: auto !important;
  border: none !important;
  overflow: visible;
}
button.sp-add-btn:hover { background: var(--st-red-h) !important; }
.sp-add-btn--reserve { background: #1a9940; }
button.sp-add-btn--reserve { background: #1a9940 !important; }
.sp-add-btn--reserve:hover { background: #157d34; }
button.sp-add-btn--reserve:hover { background: #157d34 !important; }
.sp-add-btn--fav {
  background: var(--st-white) !important;
  color: var(--st-muted) !important;
  border: 1.5px solid var(--st-border);
  width: 100%;
  margin-top: 8px;
  justify-content: center;
  display: inline-flex;
  text-decoration: none;
}
.sp-add-btn--fav:hover {
  border-color: var(--st-text);
  color: var(--st-text) !important;
  background: var(--st-surface) !important;
  text-decoration: none;
}
.sp-fav-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 20px;
  margin-top: 8px;
  background: #f0fdf4;
  color: #16a34a !important;
  border: 1.5px solid #bbf7d0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}
.sp-fav-active:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d !important;
  text-decoration: none;
}

.message-promo {
  font-size: 13px;
  color: var(--st-muted);
  margin-bottom: 8px;
  font-family: var(--ff-body);
}

/* -------------------------------------------------------
   Status alerts
   ------------------------------------------------------- */
.sp-alert {
  padding: 13px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--ff-body);
  line-height: 1.6;
  margin-bottom: 14px;
}
.sp-alert--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.sp-alert--transit { background: #f2faf5; border: 1px solid #b8dfc4; border-left: 3px solid #1a9940; color: #0d2e18; }
.sp-alert--danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.sp-alert--warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.sp-disclaimer {
  font-size: 12px;
  color: var(--st-muted);
  padding: 10px 14px;
  background: var(--st-surface);
  border-radius: 4px;
  margin-top: 14px;
  font-family: var(--ff-body);
  line-height: 1.5;
}

/* -------------------------------------------------------
   Description / Specs tabs
   ------------------------------------------------------- */
.sp-tabs-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 0;
  font-family: var(--ff-body);
}
.sp-tabs-area .nav-tabs {
  border-bottom: 2px solid var(--st-border) !important;
  margin-bottom: 0 !important;
}
.sp-tabs-area .nav-tabs > li > a {
  font-family: var(--ff-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--st-muted) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin-right: 0 !important;
  padding: 10px 16px !important;
  background: none !important;
  margin-bottom: -2px !important;
  transition: color var(--t) !important;
}
.sp-tabs-area .nav-tabs > li.active > a,
.sp-tabs-area .nav-tabs > li > a:hover {
  color: var(--st-text) !important;
  border-bottom-color: var(--st-red) !important;
  background: none !important;
}
.sp-tabs-area .tab-content {
  padding: 24px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--st-text);
}
/* Description prose — reset noisy inherited margins then style all HTML elements */
.sp-tabs-area #product-des {
  max-width: 100%;
}

/* -------------------------------------------------------
   Seller contact block
   ------------------------------------------------------- */
.sp-seller-block {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fila inferior: vendedor y cuotas MercadoPago a mitad y mitad, aprovechando el
   ancho que quedaba vacío bajo la imagen. Si falta uno de los dos, el que queda
   ocupa la fila completa. */
.sp-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}
.sp-bottom-col {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
}
.sp-bottom-col > * {
  flex: 1;
  margin: 0;
}
.sp-bottom-col .sp-seller-inner { width: 100%; }
.sp-bottom-col .mpc--product { margin: 0; }
.sp-seller-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fef5f5;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--st-red);
  border-radius: 8px;
  padding: 16px 20px;
}
.sp-seller-ico {
  width: 28px;
  height: 28px;
  fill: #25d366;
  flex-shrink: 0;
}
.sp-seller-text {
  flex: 1;
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}
.sp-seller-text strong {
  display: block;
  color: var(--st-text);
  font-weight: 700;
  margin-bottom: 2px;
}
.sp-seller-text span { color: var(--st-muted); }
.sp-seller-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff !important;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background var(--t);
}
.sp-seller-btn:hover { background: #1da851; }
@media (max-width: 640px) {
  .sp-seller-inner { flex-direction: column; align-items: flex-start; }
  .sp-seller-btn { width: 100%; justify-content: center; }
}

/* AI-generated specs table */
.sp-ai-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 28px;
  table-layout: fixed;
}
.sp-ai-specs thead tr {
  background: #ea281f;
}
.sp-ai-specs thead th {
  padding: 9px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: left;
  border: none;
}
.sp-ai-specs thead th:first-child { width: 200px; }
.sp-ai-specs tbody td {
  padding: 8px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.55;
  color: var(--st-muted);
}
.sp-ai-specs tbody td:first-child {
  font-weight: 600;
  color: var(--st-text);
  white-space: nowrap;
}
.sp-ai-specs tbody tr:last-child td { border-bottom: none; }
.sp-ai-specs tbody tr:nth-child(even) td { background: #fafafa; }

/* Category section heading above each AI table */
.sp-ai-section {
  font-family: var(--ff-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--st-red) !important;
  margin: 28px 0 8px !important;
  padding: 0 !important;
  border: none !important;
}
.sp-ai-section:first-of-type { margin-top: 16px !important; }

/* AI intro paragraph */
.sp-ai-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--st-muted);
  margin: 0 0 20px !important;
  max-width: 760px;
}
.sp-tabs-area #product-des > * { margin-top: 0; }
.sp-tabs-area #product-des h1,
.sp-tabs-area #product-des h2,
.sp-tabs-area #product-des h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  color: var(--st-text);
  line-height: 1.25;
  margin: 28px 0 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid #f0f0f0;
}
.sp-tabs-area #product-des h1 { font-size: 18px; }
.sp-tabs-area #product-des h2 { font-size: 16px; }
.sp-tabs-area #product-des h3 { font-size: 14px; border-bottom: none; padding-bottom: 0; }
.sp-tabs-area #product-des h4,
.sp-tabs-area #product-des h5,
.sp-tabs-area #product-des h6 {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-text);
  margin: 20px 0 8px;
  border-bottom: none;
}
.sp-tabs-area #product-des p {
  margin: 0 0 10px;
  line-height: 1.7;
  font-size: 13px;
  color: var(--st-muted);
}
.sp-tabs-area #product-des ul,
.sp-tabs-area #product-des ol {
  padding-left: 20px;
  margin: 0 0 14px;
}
.sp-tabs-area #product-des li {
  list-style: disc;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--st-muted);
  line-height: 1.6;
}
.sp-tabs-area #product-des ol li { list-style: decimal; }
.sp-tabs-area #product-des strong,
.sp-tabs-area #product-des b { font-weight: 700; color: var(--st-text); }
.sp-tabs-area #product-des em,
.sp-tabs-area #product-des i { font-style: italic; }
.sp-tabs-area #product-des a { color: var(--st-red); text-decoration: none; }
.sp-tabs-area #product-des a:hover { text-decoration: underline; }
.sp-tabs-area #product-des hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 20px 0;
}
.sp-tabs-area #product-des img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.sp-tabs-area #product-des table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}
.sp-tabs-area #product-des table th,
.sp-tabs-area #product-des table td {
  padding: 7px 12px;
  border: 1px solid #e8e8e8;
  text-align: left;
  line-height: 1.5;
}
.sp-tabs-area #product-des table th {
  background: #f7f7f7;
  font-weight: 600;
  color: var(--st-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sp-tabs-area #product-des table tr:nth-child(even) td { background: #fafafa; }
.sp-tabs-area .table { font-size: 13px; }

/* -------------------------------------------------------
   Specs tab (#product-specs)
   ------------------------------------------------------- */
.sp-tabs-area #product-specs { padding: 4px 0; }
ul.sp-specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.sp-specs-list li {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
}
ul.sp-specs-list li:nth-child(odd) { background: #fafafa; }
ul.sp-specs-list li:first-child { border-top: 1px solid #f0f0f0; }
.sp-specs-key {
  flex: 0 0 200px;
  font-weight: 600;
  color: var(--st-text);
}
.sp-specs-val {
  color: #555;
}
@media (max-width: 600px) {
  ul.sp-specs-list li { flex-direction: column; gap: 2px; }
  .sp-specs-key { flex: none; }
}

/* Descripción y Características lado a lado; en pantallas chicas, una bajo la otra. */
.sp-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.sp-info-grid > :only-child { grid-column: 1 / -1; }
.sp-info-specs-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--st-text);
}
.sp-info-specs .sp-specs-key { flex: 0 0 45%; }
.sp-info-specs ul.sp-specs-list li { flex-direction: row; }
@media (max-width: 900px) {
  .sp-info-grid { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------
   Body row: description + up-sell sidebar
   ------------------------------------------------------- */
.sp-body-row {
  max-width: 1400px;
  margin: 0 auto;
}
.sp-body-row--split {
  display: grid;
  grid-template-columns: 1fr 256px;
  gap: 32px;
  align-items: start;
  padding: 0 24px;
}
.sp-body-row--split .sp-tabs-area {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Up-sell sidebar */
.sp-upsell-sidebar {
  padding-top: 40px;
}
.sp-upsell-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--st-red);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--st-border);
  margin-bottom: 4px;
}
.sp-upsell-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--st-border);
  text-decoration: none;
  color: var(--st-text);
  transition: opacity var(--t);
}
.sp-upsell-card:hover { opacity: 0.8; text-decoration: none; }
.sp-upsell-card:last-child { border-bottom: none; }
.sp-upsell-card .sp-upsell-img,
.sp-upsell-card img.sp-upsell-img,
.sp-upsell-card img.width-image,
.sp-upsell-card img.height-image {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  flex-shrink: 0;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}
.sp-upsell-body { flex: 1; min-width: 0; }
.sp-upsell-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--st-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.sp-upsell-code { font-size: 11px; color: var(--st-muted); margin-bottom: 3px; }
.sp-upsell-price { font-size: 13px; font-weight: 700; color: var(--st-text); }
.sp-upsell-sale {
  font-size: 10px;
  font-weight: 700;
  background: var(--st-red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
@media (max-width: 1100px) {
  .sp-body-row--split {
    grid-template-columns: 1fr;
  }
  .sp-upsell-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 0;
    padding: 0 24px 24px;
  }
  .sp-upsell-header { width: 100%; border-bottom-width: 1px; }
  .sp-upsell-card { width: calc(50% - 8px); }
}
@media (max-width: 640px) {
  .sp-upsell-sidebar { padding-left: 16px; padding-right: 16px; }
  .sp-upsell-card { width: 100%; }
}

/* -------------------------------------------------------
   Related / cross-sell products
   ------------------------------------------------------- */
/* Los tres bloques de la ficha (Comprados Juntos, Repone tu Tienda, También
   Compraron) comparten contenedor y cabecera: mismo ancho, mismo ritmo vertical.
   Antes sumaban 64px abajo + 40px arriba entre sección y sección. */
.sp-related {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px 0;
}
/* Cierra el ritmo antes del footer (ver product.ctp) */
.sp-related-end { height: 44px; }
/* Replenishment carousel */
.sp-related--replenish {
  max-width: 1400px;
  padding: 30px 24px 0;
}
.sp-related--replenish .sc-carousel-wrap {
  max-width: 100%;
  margin: 0;
  padding: 0;
}
/* Subtítulo a la derecha del título, en la misma línea (head-title es space-between).
   Fondo blanco + z-index como .sc-carousel-ver-todos: la cabecera lleva una línea
   decorativa de fondo y el texto quedaba encima de ella. */
.sp-related-sub {
  font-size: 12px;
  line-height: 1.35;
  color: var(--st-muted);
  font-family: var(--ff-body);
  font-weight: 400;
  text-align: right;
  margin-left: 16px;
  background: #fff;
  padding-left: 12px;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .sp-related-sub { display: none; }
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 992px) {
  .sp-layout { grid-template-columns: 1fr; gap: 32px; }
  .sp-gallery { position: static; }
}
@media (max-width: 640px) {
  .sp-wrap { padding: 16px 16px 48px; }
  .sp-name { font-size: 18px; }
  .sp-price { font-size: 30px; }
  .sp-gallery .sp-thumbs.nav-tabs {
    flex-direction: row !important;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sp-gallery .sp-thumbs.nav-tabs > li > a { width: 54px !important; height: 54px !important; }
  .sp-gallery-inner { flex-direction: column; }
  .sp-tabs-area, .sp-related { padding-left: 16px; padding-right: 16px; }
  .sp-meta-label { min-width: 110px; }
}

/* ===============================================================
   FASE 4 — Categories page  (sc-cats-*)
   =============================================================== */

.sc-cats-page {
  background: #f2f2f2;
  min-height: 60vh;
}

/* ------- PAGE HEADER ------- */
.sc-cats-head {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 28px 0;
}
.sc-cats-head-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.sc-cats-head-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.sc-cats-head-accent {
  width: 4px;
  height: 52px;
  background: #ea281f;
  border-radius: 2px;
  flex-shrink: 0;
}
.sc-cats-title {
  font-family: var(--ff-display);
  font-size: 42px;
  line-height: 1;
  color: #0f0f0f;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 7px;
}
.sc-cats-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-cats-stat {
  font-family: var(--ff-body);
  font-size: 12px;
  color: #888;
}
.sc-cats-stat strong {
  color: #222;
  font-weight: 700;
}
.sc-cats-stat-sep {
  color: #ccc;
  font-size: 12px;
}

/* Search box */
.sc-cats-search-wrap {
  flex-shrink: 0;
  width: 340px;
}
.sc-cats-search {
  position: relative;
}
.sc-cats-search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: #bbb;
  pointer-events: none;
}
.sc-cats-input {
  width: 100%;
  height: 42px;
  background: #f5f5f5;
  border: 1.5px solid #e4e4e4;
  border-radius: 5px;
  padding: 0 100px 0 40px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: #222;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.sc-cats-input::placeholder { color: #aaa; }
.sc-cats-input:focus {
  border-color: #ea281f;
  background: #fff;
}
.sc-cats-match-count {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: var(--ff-body);
  color: #aaa;
  pointer-events: none;
  white-space: nowrap;
}

/* ------- PERSONALISED "PARA TI" ------- */
.sc-cats-personal {
  background: #fef5f5;
  border-bottom: 1px solid #f5d5d5;
}
.sc-cats-personal-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 18px;
}
.sc-cats-personal-head {
  margin-bottom: 10px;
}
.sc-cats-personal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ea281f;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sc-cats-personal-label svg {
  width: 12px; height: 12px;
  color: #ea281f;
  flex-shrink: 0;
}
.sc-cats-personal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-cats-pcard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #f0c0c0;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.sc-cats-pcard:hover {
  background: #ea281f;
  border-color: #ea281f;
  text-decoration: none;
}
.sc-cats-pcard-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  font-family: var(--ff-body);
  transition: color 0.15s;
}
.sc-cats-pcard:hover .sc-cats-pcard-name { color: #fff; }
.sc-cats-pcard-count {
  font-size: 10px;
  font-weight: 700;
  color: #ccc;
  font-family: var(--ff-body);
  transition: color 0.15s;
}
.sc-cats-pcard:hover .sc-cats-pcard-count { color: rgba(255,255,255,0.65); }

/* ------- BODY ------- */
.sc-cats-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ------- GROUP SECTIONS ------- */
.sc-cats-group {
  padding-top: 52px;
  animation: sc-cats-fadein 0.45s ease both;
}
.sc-cats-group.sc-cats-group-hidden { display: none; }

@keyframes sc-cats-fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sc-cats-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 2px solid #0f0f0f;
  gap: 16px;
}
.sc-cats-group-title {
  font-family: var(--ff-display);
  font-size: 44px;
  letter-spacing: 2px;
  color: #0f0f0f;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.sc-cats-group-total {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  font-family: var(--ff-body);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* ------- CATEGORY CARDS ------- */
.sc-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 5px;
}
.sc-cats-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px 11px 16px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-left: 3px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, border-left-color 0.15s, transform 0.12s;
}
.sc-cats-card:hover {
  border-color: #ddd;
  border-left-color: #ea281f;
  background: #fff8f8;
  transform: translateX(2px);
  text-decoration: none;
}
.sc-cats-card.sc-cats-card-hidden { display: none; }

.sc-cats-card-name {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.3;
  transition: color 0.15s;
}
.sc-cats-card:hover .sc-cats-card-name { color: #ea281f; }

.sc-cats-card-count {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  color: #c0c0c0;
  flex-shrink: 0;
  background: #f4f4f4;
  padding: 2px 7px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  min-width: 28px;
  text-align: center;
}
.sc-cats-card:hover .sc-cats-card-count {
  background: rgba(234,40,31,0.1);
  color: #ea281f;
}

/* ------- EMPTY STATE ------- */
.sc-cats-empty {
  display: none;
  text-align: center;
  padding: 72px 24px;
  color: #aaa;
  font-family: var(--ff-body);
}
.sc-cats-empty.sc-cats-visible { display: block; }
.sc-cats-empty-title {
  font-family: var(--ff-display);
  font-size: 52px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

/* ------- RESPONSIVE ------- */
@media (max-width: 960px) {
  .sc-cats-head-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sc-cats-search-wrap { width: 100%; max-width: 480px; }
  .sc-cats-title { font-size: 34px; }
  .sc-cats-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 640px) {
  .sc-cats-head { padding: 20px 0; }
  .sc-cats-head-accent { height: 38px; }
  .sc-cats-title { font-size: 28px; }
  .sc-cats-group-title { font-size: 32px; }
  .sc-cats-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .sc-cats-card { padding: 10px 10px 10px 12px; }
  .sc-cats-body { padding-bottom: 48px; }
  .sc-cats-search-wrap { max-width: 100%; }
}

/* =============================================================
   FASE 4 — Categories page — tab switcher + brand tiles
   ============================================================= */

/* Segmented control wrapper */
.sc-cats-tabs-bar {
  padding: 16px max(16px, calc((100% - 1280px) / 2 + 16px)) 4px;
}
.sc-cats-tabs {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.sc-cats-tab {
  padding: 9px 28px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.sc-cats-tab:hover:not(.sc-cats-tab--active) {
  color: #222;
  background: rgba(0,0,0,0.06);
}
.sc-cats-tab.sc-cats-tab--active {
  background: #ea281f;
  color: #fff;
  box-shadow: 0 1px 4px rgba(234,40,31,0.25);
}

.sc-cats-panel { display: none; }
.sc-cats-panel.sc-cats-panel--visible { display: block; }

/* Brand grid */
.sc-cats-brand-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.sc-cats-brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sc-cats-brand-card:hover {
  border-color: #ea281f;
  box-shadow: 0 2px 8px rgba(234,40,31,0.09);
  text-decoration: none;
}
.sc-cats-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  transition: color 0.15s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-cats-brand-card:hover .sc-cats-brand-name { color: #ea281f; }
.sc-cats-brand-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  background: #f4f4f4;
  border-radius: 100px;
  padding: 2px 8px;
  line-height: 1.6;
  transition: background 0.15s, color 0.15s;
}
.sc-cats-brand-card:hover .sc-cats-brand-count {
  background: rgba(234,40,31,0.08);
  color: #ea281f;
}
.sc-cats-brand-card.sc-cats-brand-hidden { display: none; }

.sc-cats-brand-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: #999;
  font-size: 15px;
}
.sc-cats-brand-empty.sc-cats-visible { display: block; }

@media (max-width: 860px) {
  .sc-cats-brand-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 640px) {
  .sc-cats-tabs-bar { padding: 12px 16px 4px; }
  .sc-cats-tab { padding: 8px 18px; font-size: 13px; }
  .sc-cats-brand-grid { grid-template-columns: 1fr 1fr; gap: 4px; padding: 16px 16px 48px; }
  .sc-cats-brand-card { padding: 12px 12px; }
  .sc-cats-brand-name { font-size: 13px; }
}

/* =============================================================
   FAVORITOS EN HOME (.sc-fav-*)
   ============================================================= */
.sc-fav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--st-border);
}
.sc-fav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sc-fav-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--st-text);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.sc-fav-title svg { color: #ea281f; flex-shrink: 0; }

.sc-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.sc-fav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  padding: 8px 10px 8px 8px;
  text-decoration: none;
  color: var(--st-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.sc-fav-card:hover {
  border-color: #ea281f;
  box-shadow: 0 2px 8px rgba(234,40,31,0.08);
  text-decoration: none;
  color: var(--st-text);
}

.sc-fav-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 3px;
  overflow: hidden;
  background: #f5f5f5;
}
.sc-fav-img-wrap .sc-fav-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sc-fav-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sc-fav-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 2px;
  line-height: 1;
  letter-spacing: 0.3px;
}
.sc-fav-badge--sale { background: #ea281f; color: #fff; }
.sc-fav-badge--promo { background: #7c3aed; color: #fff; }

.sc-fav-body {
  flex: 1;
  min-width: 0;
}
.sc-fav-name {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--st-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.sc-fav-meta {
  font-size: 10px;
  color: #888;
  margin-bottom: 3px;
}
.sc-fav-stock { color: #16a34a; font-weight: 600; }
.sc-fav-before {
  font-size: 10px;
  color: #aaa;
  text-decoration: line-through;
  line-height: 1;
}
.sc-fav-price {
  font-size: 13px;
  font-weight: 700;
  color: #ea281f;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .sc-fav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .sc-fav-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
  }
  .sc-fav-grid::-webkit-scrollbar { height: 4px; }
  .sc-fav-grid::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
  .sc-fav-grid::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
  .sc-fav-card { flex-shrink: 0; width: 160px; flex-direction: column; align-items: flex-start; padding: 8px; }
  .sc-fav-img-wrap { width: 100%; height: 80px; }
}

/* ============================================================
   UA — User Account (ua-*)   •   FASE 6
   ============================================================ */

/* ── Layout Shell ── */
.ua-wrap {
  background: var(--st-surface);
  padding-bottom: 60px;
}
.ua-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.ua-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  padding-top: 20px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

/* ── Breadcrumb ── */
.ua-breadcrumb {
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border);
  padding: 9px 0;
}
.ua-breadcrumb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
}
.ua-breadcrumb-inner a { color: var(--st-muted); text-decoration: none; transition: color var(--t) var(--ease); }
.ua-breadcrumb-inner a:hover { color: var(--st-red); }
.ua-breadcrumb-sep { color: #ccc; }

/* ── Sidebar ── */
.ua-sidebar {
  width: 248px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--st-imp-h) + var(--st-header-h) + var(--st-nav-h) + 16px);
}
.ua-sidebar-head {
  padding: 14px 18px 12px;
  background: var(--st-red);
}
.ua-sidebar-name {
  font-family: var(--ff-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ua-sidebar-sub {
  font-family: var(--ff-body);
  font-size: 10px;
  color: rgba(255,255,255,.72);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ua-nav { padding: 6px 0 10px; }
.ua-nav-group { margin-bottom: 2px; }
.ua-nav-group-label {
  font-family: var(--ff-body);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #bbb;
  padding: 10px 18px 3px;
}
.ua-nav-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  line-height: 1.2;
}
.ua-nav-link i { width: 14px; text-align: center; -ms-flex-negative: 0; flex-shrink: 0; font-size: 12px; }
.ua-nav-link:hover {
  background: #fff5f5;
  color: var(--st-red);
  border-left-color: var(--st-red);
  text-decoration: none;
}
.ua-nav-link--active {
  background: #fff0f0;
  color: var(--st-red);
  border-left-color: var(--st-red);
  font-weight: 700;
}
.ua-nav-link--active:hover { background: #fff0f0; }
.ua-nav-link--soon { opacity: .38; cursor: default; pointer-events: none; }
.ua-nav-chip {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.5;
  background: #e8e8e8;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Main Area ── */
.ua-main { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }

/* ── Page Header ── */
.ua-head {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  padding: 20px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
}
.ua-head-accent {
  width: 4px;
  height: 48px;
  background: var(--st-red);
  border-radius: 2px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.ua-head-meta { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.ua-head-crumb {
  font-family: var(--ff-body);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-muted);
  margin-bottom: 1px;
}
.ua-head-title {
  font-family: var(--ff-display);
  font-size: 40px;
  color: #0f0f0f;
  line-height: 1;
  margin: 0;
}
.ua-head-actions { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 8px; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }

/* ── Content Card ── */
.ua-card {
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
}
.ua-card--flush { border-radius: 0 0 4px 4px; border-top: none; }
.ua-card + .ua-card { margin-top: 12px; }
.ua-card-head {
  padding: 12px 24px;
  border-bottom: 1px solid var(--st-border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  background: #fafafa;
}
.ua-card-head-title {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--st-muted);
  margin: 0;
}
.ua-card-body { padding: 22px 24px; }

/* ── Dashboard: Greeting ── */
.ua-greeting {
  padding: 18px 24px 0;
  border-bottom: 1px solid var(--st-border);
  background: #fff;
}
.ua-greeting-welcome {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--st-muted);
}
.ua-greeting-name {
  font-family: var(--ff-display);
  font-size: 28px;
  color: #0f0f0f;
  line-height: 1.1;
  margin: 2px 0 10px;
}
.ua-greeting-sub {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--st-muted);
  padding-bottom: 18px;
  line-height: 1.5;
  margin: 0;
}

/* ── Dashboard: Credit Block ── */
.ua-credit {
  margin: 16px 24px;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.ua-credit--green { border-color: #bbf7d0; }
.ua-credit-stripe { width: 4px; -ms-flex-negative: 0; flex-shrink: 0; }
.ua-credit-stripe--green { background: #16a34a; }
.ua-credit-stripe--grey  { background: #ccc; }
.ua-credit-body {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 12px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 28px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.ua-credit-body--green { background: #f0fdf4; }
.ua-credit-body--grey  { background: #fafafa; }
.ua-credit-tag {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.ua-credit-tag--green { color: #16a34a; }
.ua-credit-tag--grey  { color: #999; }
.ua-credit-amounts { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 24px; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.ua-credit-amt-desc { font-size: 11px; color: var(--st-muted); font-weight: 500; }
.ua-credit-amt-val { font-family: var(--ff-body); font-size: 15px; font-weight: 700; color: #111; }
.ua-credit-amt-val--green { color: #16a34a; }

/* ── Dashboard: Stat Grid ── */
.ua-stats-label {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bbb;
  padding: 16px 24px 8px;
}
.ua-stat-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(148px, 1fr))[auto-fill];
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  padding: 0 24px 20px;
}
.ua-stat {
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.ua-stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--st-border);
  transition: background var(--t) var(--ease);
}
.ua-stat:hover { border-color: var(--st-red); box-shadow: 0 2px 14px rgba(234,40,31,.07); text-decoration: none; }
.ua-stat:hover::after { background: var(--st-red); }
.ua-stat-icon { font-size: 15px; color: var(--st-red); margin-bottom: 10px; }
.ua-stat-val {
  font-family: var(--ff-display);
  font-size: 42px;
  color: #0f0f0f;
  line-height: 1;
  letter-spacing: 0.5px;
}
.ua-stat-lbl {
  font-family: var(--ff-body);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Seller Strip ── */
.ua-seller {
  border-top: 1px solid var(--st-border);
  padding: 12px 24px;
  background: #fafafa;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
}
.ua-seller-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--st-red);
  color: #fff;
  font-size: 12px;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  -ms-flex-negative: 0; flex-shrink: 0;
}
.ua-seller-lbl {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; color: #bbb;
}
.ua-seller-name { font-size: 13px; font-weight: 600; color: #111; }

/* ── Quick Links ── */
.ua-quick {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: 7px; -ms-flex-wrap: wrap; flex-wrap: wrap;
  padding: 12px 24px;
  border-top: 1px solid var(--st-border);
}
.ua-quick-btn {
  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 5px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  padding: 6px 11px;
  color: var(--st-text); background: #fff;
  transition: border-color var(--t), color var(--t);
}
.ua-quick-btn:hover { border-color: var(--st-red); color: var(--st-red); text-decoration: none; }
.ua-quick-btn i { font-size: 11px; }

/* ── Search Bar ── */
.ua-search {
  padding: 14px 24px;
  border-bottom: 1px solid var(--st-border);
  background: #fafafa;
}
.ua-search-row {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: 8px; max-width: 380px;
}
.ua-search-input {
  -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
  height: 36px;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  padding: 0 12px;
  font-family: var(--ff-body); font-size: 13px; color: var(--st-text);
  background: #fff; outline: none;
  transition: border-color var(--t);
}
.ua-search-input:focus { border-color: var(--st-red); }
.ua-search-input::-webkit-input-placeholder { color: #bbb; }
.ua-search-input:-ms-input-placeholder { color: #bbb; }
.ua-search-input::placeholder { color: #bbb; }
.ua-search-btn {
  height: 36px; padding: 0 14px;
  background: var(--st-red); color: #fff;
  border: none; border-radius: 4px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t);
  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 5px;
}
.ua-search-btn:hover { background: var(--st-red-h); }

/* ── Data Tables ── */
.ua-table-wrap { overflow-x: auto; }
.ua-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 13px;
}
.ua-table thead th {
  background: var(--st-red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 10px 14px;
  white-space: nowrap;
  border: none;
}
.ua-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--st-border);
  color: var(--st-text);
  vertical-align: middle;
}
.ua-table tbody tr:nth-child(even) td { background: #fafafa; }
.ua-table tbody tr:last-child td { border-bottom: none; }
.ua-table tbody tr:hover td { background: #fff5f5; }
.ua-table tfoot td {
    padding: 9px 12px;
    font-family: var(--ff-body);
    font-size: 12px;
    background: var(--st-surface);
    border-top: 1px solid var(--st-border);
    color: var(--st-text);
}
.ua-table tfoot tr:first-child td { border-top: 2px solid var(--st-border); }
.ua-table a { color: var(--st-red); font-weight: 600; text-decoration: none; }
.ua-table a:hover { text-decoration: underline; }
.ua-num { font-weight: 700; }
.ua-muted { color: var(--st-muted); font-size: 12px; }

/* ── Status Badges ── */
.ua-status {
  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 4px;
  font-family: var(--ff-body); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 3px 7px; border-radius: 2px; white-space: nowrap;
}
.ua-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; -ms-flex-negative: 0; flex-shrink: 0;
}
.ua-status--pending   { background: #f5f5f5; color: #888; }
.ua-status--preparing { background: #fffbeb; color: #d97706; }
.ua-status--shipped   { background: #f0f9ff; color: #0284c7; }
.ua-status--delivered { background: #f0fdf4; color: #16a34a; }
.ua-status--cancelled { background: #fff1f2; color: #e11d48; }
.ua-status--online    { background: #f0fdf4; color: #16a34a; }

/* ── Pagination ── */
.ua-pager {
  padding: 12px 24px;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 3px;
  border-top: 1px solid var(--st-border);
  background: #fafafa;
}
.ua-pager-label {
  font-size: 11px; color: var(--st-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px; margin-right: 8px;
}
.ua-pager a, .ua-pager span {
  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--st-border); border-radius: 3px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 600;
  color: var(--st-text); text-decoration: none; background: #fff;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.ua-pager a:hover { border-color: var(--st-red); color: var(--st-red); }
.ua-pager .current { background: var(--st-red); color: #fff; border-color: var(--st-red); }
.ua-pager .disabled { opacity: .38; pointer-events: none; }

/* ── Profile Fields ── */
.ua-profile-grid { display: -ms-grid; display: grid; grid-template-columns: 1fr 1fr; }
.ua-field {
  padding: 14px 24px;
  border-bottom: 1px solid var(--st-border);
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal;
  -ms-flex-direction: column; flex-direction: column; gap: 3px;
}
.ua-field:nth-child(odd) { border-right: 1px solid var(--st-border); }
.ua-field:last-child { border-bottom: none; }
.ua-field-lbl {
  font-family: var(--ff-body); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: var(--st-muted);
}
.ua-field-val { font-family: var(--ff-body); font-size: 14px; font-weight: 500; color: #111; }
.ua-field-note {
  margin: 16px 24px;
  padding: 11px 14px;
  background: #f7f7f7;
  border: 1px solid var(--st-border);
  border-left: 3px solid #ccc;
  border-radius: 2px;
  font-family: var(--ff-body); font-size: 12px; color: #888;
}

/* ── Order Detail Columns ── */
.ua-order-cols {
  display: -ms-grid; display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--st-border);
}
.ua-order-col { padding: 18px 24px; }
.ua-order-col + .ua-order-col { border-left: 1px solid var(--st-border); }
.ua-order-col-title {
  font-family: var(--ff-body); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--st-muted); margin-bottom: 12px;
}
.ua-order-row {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
  padding: 5px 0; font-family: var(--ff-body); font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.ua-order-row:last-child { border-bottom: none; }
.ua-order-row-k { color: var(--st-muted); font-weight: 500; }
.ua-order-row-v { font-weight: 600; color: #111; text-align: right; }
.ua-order-total { border-top: 2px solid var(--st-red); padding-top: 8px; margin-top: 4px; }
.ua-order-total .ua-order-row-v { color: var(--st-red); font-size: 15px; }

/* ── Downloads ── */
.ua-file-link {
  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 5px; color: var(--st-red); font-weight: 600;
  font-size: 13px; text-decoration: none;
}
.ua-file-link:hover { text-decoration: underline; }
.ua-file-size { color: var(--st-muted); font-size: 12px; }

/* ── Empty State ── */
.ua-empty { padding: 52px 24px; text-align: center; font-family: var(--ff-body); }
.ua-empty-icon { font-size: 32px; color: #ddd; margin-bottom: 12px; }
.ua-empty-title { font-size: 14px; font-weight: 700; color: #888; margin-bottom: 6px; }
.ua-empty-text { font-size: 13px; color: #aaa; max-width: 280px; margin: 0 auto 16px; line-height: 1.6; }

/* ── Favorites Grid ── */
.ua-fav-intro {
  padding: 16px 24px;
  font-family: var(--ff-body); font-size: 13px; color: var(--st-muted);
  border-bottom: 1px solid var(--st-border); line-height: 1.6;
}
.ua-fav-grid {
  padding: 20px 24px;
  display: -ms-grid; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ua-sidebar { width: 210px; }
}
@media (max-width: 768px) {
  .ua-layout { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 0; padding-top: 0; }
  .ua-sidebar {
    width: 100%; position: static;
    border-radius: 0; border-left: none; border-right: none; border-top: none;
  }
  .ua-sidebar-head { padding: 10px 16px 8px; }
  .ua-sidebar-name { font-size: 15px; }
  .ua-nav-group-label { display: none; }
  .ua-nav {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -ms-flex-wrap: wrap; flex-wrap: wrap;
    padding: 8px 12px; gap: 6px;
    border-bottom: 1px solid var(--st-border);
  }
  .ua-nav-group { display: contents; margin: 0; }
  .ua-nav-link {
    -ms-flex-negative: 0; flex-shrink: 0;
    padding: 6px 10px; border-left: none;
    border: 1px solid var(--st-border); border-radius: 3px;
    font-size: 12px; white-space: nowrap; background: #fff;
  }
  .ua-nav-link:hover { border-color: var(--st-red); }
  .ua-nav-link--active { background: var(--st-red); color: #fff; border-color: var(--st-red); }
  .ua-nav-chip { display: none; }
  .ua-stat-grid { grid-template-columns: repeat(3, 1fr); padding: 12px 16px; }
  .ua-stat-val { font-size: 34px; }
  .ua-profile-grid { grid-template-columns: 1fr; }
  .ua-field:nth-child(odd) { border-right: none; }
  .ua-order-cols { grid-template-columns: 1fr; }
  .ua-order-col + .ua-order-col { border-left: none; border-top: 1px solid var(--st-border); }
  .ua-greeting { padding: 14px 16px 0; }
  .ua-head { padding: 14px 16px; }
  .ua-search { padding: 12px 16px; }
  .ua-pager { padding: 10px 16px; }
  .ua-stat-grid { padding: 12px 16px; }
  .ua-stats-label { padding: 12px 16px 6px; }
  .ua-credit { margin: 12px 16px; }
  .ua-quick { padding: 10px 16px; }
  .ua-seller { padding: 10px 16px; }
  .ua-fav-grid { padding: 14px 16px; }
  .ua-card-body { padding: 16px; }
}
@media (max-width: 480px) {
  .ua-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ua-fav-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px 16px; }
}

/* ── Document type filter tabs ── */
.ua-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--st-border);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.ua-tab {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 11px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--st-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ua-tab:hover { color: var(--st-text); text-decoration: none; }
.ua-tab--active {
  color: var(--st-text);
  font-weight: 700;
  border-bottom-color: var(--st-red);
}

/* ── Document type badges (inline in tabs + table) ── */
.ua-doc-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.5;
  white-space: nowrap;
}
.ua-doc-badge--fac { background: #fff0f0; color: var(--st-red);  }
.ua-doc-badge--bel { background: #eff6ff; color: #2563eb; }
.ua-doc-badge--nc  { background: #fffbeb; color: #d97706; }
.ua-doc-badge--gd  { background: #f0fdf4; color: #16a34a; }

/* Estado de pago del documento (Mis Documentos).
   Sin píldora de color: el rojo de la marca queda reservado para la accion de pagar.
   El contraste entre 'Pagada' apagada y 'Pendiente' en texto normal alcanza para barrer
   la columna con la vista. */
.ua-doc-due {
  font-weight: 600;
  color: var(--st-text);
}
.ua-doc-due-amount {
  display: block;
  font-size: 12px;
  color: var(--st-muted);
  font-variant-numeric: tabular-nums;
}

/* Estado del pedido y aviso de division. Texto, no pildoras de color: el rojo de la
   marca se guarda para la accion de pagar, que es lo unico que el cliente debe hacer. */
.ua-order-state {
  font-weight: 600;
  color: var(--st-text);
  line-height: 1.35;
}
.ua-order-split,
.ua-split-note {
  font-size: 12px;
  color: var(--st-muted);
  line-height: 1.4;
}
.ua-split-note {
  padding: 10px 0 14px;
  max-width: 62ch;
}
.ua-doc-line {
  line-height: 1.5;
  padding: 2px 0;
}
.ua-doc-line + .ua-doc-line {
  border-top: 1px solid var(--st-border);
}

/* -------------------------------------------------------
   Mis Pedidos / Mis Reservas — lista, no tabla
   -------------------------------------------------------
   Antes eran nueve columnas con neto, dcto, IVA, el nombre del propio cliente y una
   columna "¿OnLine?". Eso responde lo que sabe el ERP. El cliente pregunta tres cosas:
   si llego, si debe algo y donde esta, y la fila se ordena en ese orden: quien es, en
   que esta, cuanto.

   Una sola decision manda sobre el color: el rojo de la marca se reserva para el boton
   de pagar. Los estados van en texto — si todo grita, nada grita. */
.ua-row {
  display: grid;
  /* Tres columnas y no space-between: en pantalla ancha el space-between manda cada
     dato a un extremo y la fila deja de leerse como una unidad. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 20px;
  /* El mismo padding que .ua-card-head: la tarjeta no trae el suyo y la tabla que habia
     antes lo ponia en las celdas. Sin esto las filas quedan pegadas al borde. */
  padding: 16px 24px;
  border-bottom: 1px solid var(--st-border);
}
.ua-row:last-child { border-bottom: none; }

.ua-row-id {
  display: block;
  font-family: var(--ff-display);
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--st-text);
  text-decoration: none;
}
.ua-row-id:hover { color: var(--st-red); }
.ua-row-meta {
  font-size: 13px;
  color: var(--st-muted);
  margin-top: 2px;
}
/* Separacion, no un caracter separador dibujado. */
.ua-row-sep { display: inline-block; width: 14px; }

.ua-row-state { font-size: 14px; line-height: 1.45; }
.ua-row-state-line { display: block; font-weight: 600; color: var(--st-text); }
.ua-row-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--st-muted);
}

.ua-row-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.ua-row-amount {
  font-size: 17px;
  font-weight: 600;
  /* Tabular para que los montos caigan en la misma columna optica y se puedan barrer
     con la vista de arriba a abajo. */
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ua-row-pay {
  background: var(--st-red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background var(--t) var(--ease);
}
.ua-row-pay:hover,
.ua-row-pay:focus { background: var(--st-red-h); color: #fff; }
.ua-row-pay:focus-visible { outline: 2px solid var(--st-text); outline-offset: 2px; }

/* En pantalla angosta las tres columnas se apilan: leer un pedido no puede pedir
   scroll horizontal. */
@media (max-width: 720px) {
  .ua-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .ua-row-end { justify-content: space-between; }
  .ua-row-pay { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ua-row-pay { transition: none; }
}

/* Saldo por pagar, en la ficha y en la pantalla de medios.
   Es lo unico de la ficha que pide una accion, asi que es lo unico que lleva el rojo. */
.ua-pay-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid var(--st-border);
  background: var(--st-surface);
}
.ua-pay-box-label { display: block; font-size: 13px; color: var(--st-muted); }
.ua-pay-box-amount {
  display: block;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ua-pay-total { padding: 24px; border-bottom: 1px solid var(--st-border); }
.ua-pay-total-amount {
  display: block;
  font-family: var(--ff-display);
  font-size: 40px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ua-pay-total-note { display: block; font-size: 13px; color: var(--st-muted); margin-top: 4px; }

.ua-pay-methods { display: grid; gap: 1px; background: var(--st-border); }
.ua-pay-method {
  display: block;
  padding: 18px 24px;
  background: #fff;
  text-decoration: none;
  color: var(--st-text);
  transition: background var(--t) var(--ease);
}
.ua-pay-method:hover, .ua-pay-method:focus { background: var(--st-surface); color: var(--st-text); }
.ua-pay-method:focus-visible { outline: 2px solid var(--st-red); outline-offset: -2px; }
.ua-pay-method-name { display: block; font-weight: 600; font-size: 16px; }
.ua-pay-method-note { display: block; font-size: 13px; color: var(--st-muted); }

@media (prefers-reduced-motion: reduce) {
  .ua-pay-method { transition: none; }
}

/* ── Table foot (result count) ── */
.ua-table-foot {
  padding: 10px 24px;
  border-top: 1px solid var(--st-border);
  background: #fafafa;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
  font-weight: 600;
}

/* ── Search clear link ── */
.ua-search-clear {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  color: var(--st-muted);
  text-decoration: none;
  background: #fff;
  transition: color var(--t), border-color var(--t);
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.ua-search-clear:hover { color: var(--st-red); border-color: var(--st-red); }

@media (max-width: 768px) {
  .ua-tabs { padding: 0 12px; }
  .ua-tab  { padding: 10px 10px 9px; font-size: 12px; }
  .ua-table-foot { padding: 8px 16px; }
}

/* ── Forms (ua-form-*) ── */
.ua-form { max-width: 440px; }

.ua-form-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.ua-form-label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-muted);
}

.ua-form-input {
  height: 42px;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  padding: 0 14px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--st-text);
  background: var(--st-surface);
  outline: none;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.ua-form-input:focus {
  border-color: var(--st-red);
  background: #fff;
}
.ua-form-input::-webkit-input-placeholder { color: #ccc; }
.ua-form-input:-ms-input-placeholder      { color: #ccc; }
.ua-form-input::placeholder               { color: #ccc; }

.ua-form-hint {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
  line-height: 1.5;
}

.ua-form-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 4px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   BRANDS INDEX PAGE (br-*)   FASE 7
═══════════════════════════════════════════════ */

.br-head {
  background: #fff;
  border-bottom: 1px solid var(--st-border);
  padding: 24px 0;
}
.br-head-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}
.br-head-accent {
  width: 4px;
  height: 52px;
  background: var(--st-red);
  border-radius: 2px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.br-head-title {
  font-family: var(--ff-display);
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  color: #0f0f0f;
  margin: 0;
  padding: 0;
  border: none;
}
.br-head-sub {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--st-muted);
  margin: 4px 0 0;
  padding: 0;
}

.br-body {
  background: var(--st-surface);
  padding: 32px 0 56px;
}
.br-body-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Unified 12-col grid: featured span 3 (4/row), regular span 2 (6/row) */
.br-grid-unified {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.br-card { grid-column: span 2; }
.br-card--featured { grid-column: span 3; }

.br-card {
  background: #fff;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 20px 12px 16px;
  gap: 12px;
  -webkit-transition: -webkit-box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.br-card:hover {
  -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.08);
          box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}

.br-card-logo {
  width: 100%;
  height: 100px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: var(--st-surface);
  border-radius: 3px;
  padding: 12px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.br-card-logo img {
  max-width: 100%;
  max-height: 76px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.br-card-name {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-text);
  text-align: center;
  line-height: 1.3;
}

.br-card-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

.br-btn {
  display: block;
  width: 100%;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.br-btn--red {
  background: var(--st-red);
  color: #fff;
}
.br-btn--red:hover {
  background: var(--st-red-h);
  color: #fff;
  text-decoration: none;
}
.br-btn--outline {
  background: #fff;
  color: var(--st-text);
  border: 1.5px solid var(--st-border);
  line-height: 31px;
}
.br-btn--outline:hover {
  border-color: var(--st-red);
  color: var(--st-red);
  background: #fff8f8;
}

/* Catalog modal */
.br-modal-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.br-modal-overlay.is-open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.br-modal {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: 0 8px 40px rgba(0,0,0,0.18);
          box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  margin: 0 16px;
}
.br-modal-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--st-border);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.br-modal-title {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--st-text);
}
.br-modal-brand-label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--st-red);
  margin-bottom: 2px;
}
.br-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--st-muted);
  cursor: pointer;
  padding: 0 4px;
  -webkit-transition: color var(--t) var(--ease);
  transition: color var(--t) var(--ease);
}
.br-modal-close:hover { color: var(--st-red); }
.br-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.br-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}
.br-catalog-item a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 10px 14px;
  background: var(--st-surface);
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  -webkit-transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.br-catalog-item a:hover {
  border-color: var(--st-red);
  background: #fff8f8;
  color: var(--st-red);
  text-decoration: none;
}
.br-catalog-arrow {
  font-size: 16px;
  color: var(--st-muted);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: color var(--t) var(--ease);
  transition: color var(--t) var(--ease);
}
.br-catalog-item a:hover .br-catalog-arrow { color: var(--st-red); }

/* Search bar */
.br-search-wrap {
  position: relative;
  margin-bottom: 28px;
}
.br-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  color: var(--st-muted);
  font-size: 15px;
  pointer-events: none;
  line-height: 1;
}
.br-search-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  padding: 0 40px 0 40px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--st-text);
  background: #fff;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  outline: none;
  -webkit-transition: border-color var(--t) var(--ease);
  transition: border-color var(--t) var(--ease);
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
.br-search-input:focus { border-color: var(--st-red); }
.br-search-input::-webkit-input-placeholder { color: #bbb; }
.br-search-input:-ms-input-placeholder      { color: #bbb; }
.br-search-input::placeholder               { color: #bbb; }
.br-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  display: none;
  background: none;
  border: none;
  color: var(--st-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  -webkit-transition: color var(--t) var(--ease);
  transition: color var(--t) var(--ease);
}
.br-search-clear:hover { color: var(--st-red); }
.br-search-clear.is-visible { display: block; }

/* Featured card — bigger logo */
.br-card--featured .br-card-logo {
  height: 140px;
}
.br-card--featured .br-card-logo img {
  max-height: 110px;
}
.br-card--featured .br-card-name {
  font-size: 12px;
}

/* Empty state */
.br-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--st-muted);
}
.br-empty.is-visible { display: block; }

@media (max-width: 900px) {
  /* 8 cols: featured span 4 (2/row), regular span 2 (4/row) */
  .br-grid-unified { grid-template-columns: repeat(8, 1fr); }
  .br-card--featured { grid-column: span 4; }
  .br-card          { grid-column: span 2; }
}
@media (max-width: 640px) {
  .br-head-title { font-size: 36px; }
  .br-head-inner { padding: 0 16px; }
  .br-body-inner { padding: 0 16px; }
  .br-body { padding: 24px 0 40px; }
  /* 6 cols: featured span 3 (2/row), regular span 2 (3/row) */
  .br-grid-unified  { grid-template-columns: repeat(6, 1fr); }
  .br-card--featured { grid-column: span 3; }
  .br-card           { grid-column: span 2; }
}
@media (max-width: 400px) {
  /* 4 cols: both span 2 (2/row) */
  .br-grid-unified   { grid-template-columns: repeat(4, 1fr); }
  .br-card--featured { grid-column: span 2; }
  .br-card           { grid-column: span 2; }
}

/* ============================================================
   CART PAGE — ca-*
   ============================================================ */

.ca-wrap { --ca-accent: #ca1600; background: #fff; }
.ca-wrap--reserve { --ca-accent: #1a9940; }

/* ---- Page header ---- */
.ca-head {
  background: #fff;
  border-bottom: 1px solid var(--st-border);
  padding: 22px 0;
}
.ca-head-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}
.ca-head-accent {
  width: 4px;
  height: 52px;
  background: var(--ca-accent);
  border-radius: 2px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.ca-head-title {
  font-family: var(--ff-display);
  font-size: 44px;
  color: #0f0f0f;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.ca-head-sub {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--st-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ---- Alert blocks ---- */
.ca-alerts {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.ca-alert-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 4px;
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-left: 4px solid #ea281f;
  margin-top: 20px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.ca-alert-block .fa {
  color: #ea281f;
  margin-top: 2px;
  font-size: 14px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.ca-alert-block--credit {
  background: #fffbf0;
  border-color: #fde68a;
  border-left-color: #d97706;
}
.ca-alert-block--credit .fa { color: #d97706; }

/* ---- Body ---- */
.ca-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.ca-body-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 32px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}
.ca-col-items {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0%;
          flex: 1 1 0%;
  min-width: 0;
}
.ca-col-summary {
  width: 340px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* ---- Table ---- */
.ca-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
}
table.ca-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 13px;
  margin: 0;
}
table.ca-table thead tr th {
  background: #ea281f;
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  white-space: nowrap;
  border: none;
}
table.ca-table thead tr th.ca-th-del  { width: 40px; text-align: center; }
table.ca-table thead tr th.ca-th-img  { width: 76px; }
table.ca-table thead tr th.ca-th-qty  { width: 170px; }
table.ca-table thead tr th.ca-th-price,
table.ca-table thead tr th.ca-th-disc,
table.ca-table thead tr th.ca-th-total { text-align: right; width: 100px; }
table.ca-table tbody tr {
  border-bottom: 1px solid var(--st-border);
  -webkit-transition: background var(--t);
  transition: background var(--t);
}
table.ca-table tbody tr:last-child { border-bottom: none; }
table.ca-table tbody tr:nth-child(even) td { background: #fafafa; }
table.ca-table tbody tr:hover td { background: #f3f3f3; }
table.ca-table td {
  padding: 14px;
  vertical-align: middle;
  color: var(--st-text);
  border: none;
}
.ca-td-del { text-align: center; padding: 14px 8px; }
.ca-del-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: var(--st-muted);
  background: none;
  text-decoration: none;
  -webkit-transition: color var(--t), background var(--t);
  transition: color var(--t), background var(--t);
}
.ca-del-btn:hover { color: #ea281f; background: #fff8f8; }
.ca-td-img { text-align: center; padding: 14px 8px; }
.ca-td-img a { display: block; }
.ca-td-img img,
.ca-td-img a img {
  width: 64px;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
  background: var(--st-surface);
  display: block;
}
.ca-item-link {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.ca-item-link:hover { color: #ea281f; text-decoration: none; }
.ca-item-code {
  font-size: 11px;
  display: block;
  color: var(--st-muted);
  font-weight: 400;
}
.ca-promo-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #ea281f;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}
.ca-promo-msg {
  font-size: 11px;
  color: var(--st-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.ca-td-price,
.ca-td-total { text-align: right; font-weight: 600; white-space: nowrap; }
.ca-td-disc  { text-align: right; color: var(--st-muted); white-space: nowrap; }
.ca-td-total { font-weight: 700; }
.ca-price-old {
  display: block;
  text-decoration: line-through;
  font-size: 11px;
  font-weight: 400;
  color: var(--st-muted);
  margin-bottom: 2px;
}
.ca-arrival {
  font-size: 11px;
  color: var(--st-muted);
  font-style: italic;
  margin-top: 4px;
}

/* Qty cell — .th-qty preserved for legacy JS selector */
.ca-qty-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 6px;
}
/* Error de stock — baja a la siguiente línea sin romper el ancho de columna */
.ca-wrap .error-stock {
  display: block;
  -webkit-order: 10;
      -ms-flex-order: 10;
          order: 10;
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  color: #ea281f;
  margin-top: 2px;

}
.ca-qty-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
  height: 36px;
}
button.ca-qty-btn {
  width: 30px;
  border: none;
  background: var(--st-surface);
  cursor: pointer;
  font-size: 17px;
  color: var(--st-text);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: background var(--t);
  transition: background var(--t);
  padding: 0;
  font-family: var(--ff-body);
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
button.ca-qty-btn:hover { background: var(--st-border); }
.ca-qty-input {
  width: 46px;
  border: none;
  border-left: 1.5px solid var(--st-border);
  border-right: 1.5px solid var(--st-border);
  text-align: center;
  font-size: 13px;
  font-family: var(--ff-body);
  color: var(--st-text);
  background: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  outline: none;
  padding: 0;
}
.ca-qty-label {
  font-size: 11px;
  color: var(--st-muted);
  white-space: nowrap;
}

/* ---- Actions bar ---- */
.ca-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--st-border);
}
.ca-actions-left  { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 10px; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.ca-actions-right { margin-left: auto; }
.ca-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--st-border);
  background: #fff;
  color: var(--st-text);
  -webkit-transition: background var(--t), border-color var(--t), color var(--t);
  transition: background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
.ca-btn:hover {
  background: var(--st-surface);
  border-color: #c0c0c0;
  text-decoration: none;
  color: var(--st-text);
}
button.ca-btn--update {
  background: #111;
  border-color: #111;
  color: #fff;
}
button.ca-btn--update:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* ---- Summary sidebar ---- */
.ca-summary-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--st-imp-h) + var(--st-header-h) + var(--st-nav-h) + 16px);
}
.ca-summary-box {
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  overflow: hidden;
}
.ca-summary-hd {
  background: var(--ca-accent);
  color: #fff;
  padding: 13px 20px;
  font-family: var(--ff-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ca-summary-body { padding: 20px; }
.ca-summary-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--st-border);
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--st-text);
}
.ca-summary-row:last-of-type { border-bottom: none; }
.ca-summary-label { color: var(--st-muted); }
.ca-summary-value { font-weight: 600; }
.ca-summary-row--discount { color: #16a34a; }
.ca-summary-row--discount .ca-summary-label,
.ca-summary-row--discount .ca-summary-value { color: #16a34a; }
.ca-summary-row--total {
  border-bottom: none;
  margin-top: 4px;
  padding-top: 13px;
}
.ca-summary-row--total .ca-summary-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--st-text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ca-summary-row--total .ca-summary-value {
  font-size: 18px;
  font-weight: 700;
}

/* Coupon */
.ca-coupon {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--st-border);
}
.ca-coupon-label {
  display: block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--st-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ca-coupon-row { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 8px; }
.ca-coupon-field {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 38px;
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  padding: 0 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--st-text);
  background: #fff;
  outline: none;
  -webkit-transition: border-color var(--t);
  transition: border-color var(--t);
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.ca-coupon-field:focus { border-color: #ea281f; }
button.ca-coupon-btn {
  height: 38px;
  padding: 0 14px;
  background: var(--st-text);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: background var(--t);
  transition: background var(--t);
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
button.ca-coupon-btn:hover { background: #333; }
.ca-coupon-status {
  font-family: var(--ff-body);
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  line-height: 1.4;
}

/* Checkout CTA */
.ca-checkout-wrap { margin-top: 20px; }
a.ca-checkout-btn,
button.ca-checkout-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--ca-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  -webkit-transition: -webkit-filter var(--t);
  transition: -webkit-filter var(--t);
  transition: filter var(--t);
  transition: filter var(--t), -webkit-filter var(--t);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
a.ca-checkout-btn:hover,
button.ca-checkout-btn:hover {
  -webkit-filter: brightness(0.88);
          filter: brightness(0.88);
  color: #fff;
  text-decoration: none;
}
.ca-checkout-btn--disabled {
  background: var(--st-muted) !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

/* Empty state */
.ca-empty {
  text-align: center;
  padding: 64px 24px;
}
.ca-empty-icon {
  font-size: 52px;
  color: var(--st-border);
  margin-bottom: 16px;
}
.ca-empty-title {
  font-family: var(--ff-display);
  font-size: 36px;
  color: var(--st-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ca-empty-text {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--st-muted);
  margin: 0 0 24px;
}
a.ca-empty-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 44px;
  padding: 0 24px;
  background: #ea281f;
  color: #fff;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  -webkit-transition: background var(--t);
  transition: background var(--t);
}
a.ca-empty-btn:hover { background: #c0211a; color: #fff; text-decoration: none; }

/* Responsive */
@media (max-width: 1024px) {
  .ca-body-grid    { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
  .ca-col-summary  { width: 100%; }
  .ca-summary-sticky { position: static; }
}
@media (max-width: 640px) {
  .ca-head-title { font-size: 34px; }
  .ca-head-inner { padding: 0 16px; }
  .ca-body       { padding: 20px 16px 48px; }
  .ca-alerts     { padding: 0 16px; }
  .ca-actions    { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
  .ca-actions-right { margin-left: 0; width: 100%; }
  .ca-btn        { width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
  button.ca-btn--update { width: 100%; }
}

/* ============================================================
   ua-doc-* — Document detail view (cl prefix future, ua for now)
   ============================================================ */

.ua-doc-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--st-border);
}
.ua-doc-meta-col { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.ua-doc-info-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f2f2f2;
    font-family: var(--ff-body);
    font-size: 13px;
}
.ua-doc-info-row:last-child { border-bottom: none; }
.ua-doc-info-label {
    color: var(--st-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 130px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ua-doc-info-value { color: var(--st-text); font-weight: 500; }
.ua-doc-info-value--num { font-weight: 700; }
.ua-doc-info-value--total {
    font-size: 16px;
    font-weight: 700;
    color: var(--st-text);
}

.ua-doc-items { padding: 0 24px 24px; }
.ua-doc-items-title {
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--st-muted);
    padding: 18px 0 10px;
}

.ua-doc-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--st-border);
    background: var(--st-surface);
    border-radius: 0 0 4px 4px;
}
.ua-doc-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 38px;
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    -webkit-transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
    transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ua-doc-btn--pdf {
    background: var(--st-red);
    color: #fff;
    border: 1.5px solid var(--st-red);
}
.ua-doc-btn--pdf:hover { background: var(--st-red-h); border-color: var(--st-red-h); color: #fff; text-decoration: none; }
.ua-doc-btn--back {
    background: #fff;
    color: var(--st-muted);
    border: 1.5px solid var(--st-border);
}
.ua-doc-btn--back:hover { border-color: #bbb; color: var(--st-text); text-decoration: none; }

@media (max-width: 640px) {
    .ua-doc-meta { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 0; padding: 16px; }
    .ua-doc-meta-col + .ua-doc-meta-col { border-top: 1px solid var(--st-border); padding-top: 16px; margin-top: 16px; }
    .ua-doc-items { padding: 0 16px 16px; }
    .ua-doc-actions { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 10px; padding: 16px; }
    .ua-doc-btn { width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
}


/* ==========================================================================
   CHECKOUT / ORDER PAGE — ck-*  (v2: accordion / step-by-step)
   ========================================================================== */

/* --- Shell --- */
.ck-wrap { background: var(--st-surface); padding-top: 30px; padding-bottom: 60px; }
.ck-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* --- Page head --- */
.ck-head { background: #fff; border-bottom: 1px solid var(--st-border); padding: 22px 0; margin-bottom: 28px; }
body.store-order .ck-head { margin-bottom: 0; }
body.storepreorder-orderreserve .ck-head { margin-bottom: 0; }
body.storepreorder-orderreserve .ck-head-accent { background: #b19767; }
/* Checkout venta en verde: forzar margin-bottom 0 */
body.store-orderreserve .ck-head { margin-bottom: 0; }
/* Botones: rojo MKR en vez de café */
body.storepreorder-orderreserve .ck-step--active .ck-step-num { background: #ea281f; }
body.storepreorder-orderreserve .ck-step-confirm-btn { background: #ea281f; }
body.storepreorder-orderreserve .ck-step-confirm-btn:hover { background: #c01015; }
body.storepreorder-orderreserve .ck-confirm-btn { background: #ea281f; }
body.storepreorder-orderreserve .ck-confirm-btn:hover { background: #c01015; }
/* Selección modo envío: mantiene café como señal de contexto */
body.storepreorder-orderreserve .ck-mode-card--selected { border-color: #b19767; background: #faf7f2; -webkit-box-shadow: 0 0 0 1px #b19767; box-shadow: 0 0 0 1px #b19767; }
body.storepreorder-orderreserve .ck-mode-card--selected i { color: #b19767; }
/* Cabecera resumen: café oscuro cálido */
body.storepreorder-orderreserve .ck-summary-hd { background: #7a6040; border-bottom: 2px solid #c9a878; }
/* Botón carro blanco */
body.storepreorder-reservecart .ca-checkout-btn { background: #ea281f; }
body.storepreorder-reservecart .ca-checkout-btn:hover { background: #c01015; -webkit-filter: none; filter: none; }
/* Table header carro blanco: café en vez de rojo (coherente con ca-summary-hd) */
body.storepreorder-reservecart table.ca-table thead tr th { background: #b19767; }
body.store-reservecart table.ca-table thead tr th { background: #1a9940; }
.ck-head-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 16px; }
.ck-head-accent { width: 4px; height: 48px; background: var(--st-red); border-radius: 2px; -ms-flex-negative: 0; flex-shrink: 0; }
.ck-head-title { font-family: var(--ff-display); font-size: 40px; color: #0f0f0f; text-transform: uppercase; line-height: 1; margin: 0; }
.ck-head-sub { font-size: 13px; color: var(--st-muted); margin-top: 4px; }

/* --- Two-column grid --- */
.ck-grid { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 28px; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
.ck-col-form { -webkit-box-flex: 1; -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; }
.ck-col-summary { width: 380px; -ms-flex-negative: 0; flex-shrink: 0; position: -webkit-sticky; position: sticky; top: calc(var(--st-imp-h) + var(--st-header-h) + var(--st-nav-h) + 16px); }

/* --- Accordion Steps --- */
.ck-step {
    background: #fff;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
    -webkit-transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.ck-step--active { overflow: visible; }
.ck-step--active {
    border-color: #bbb;
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.08);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.ck-step--pending { opacity: .55; pointer-events: none; }

.ck-step-head {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 12px; padding: 16px 20px; min-height: 58px;
}
.ck-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #ccc; color: #fff;
    font-size: 12px; font-weight: 700;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    -ms-flex-negative: 0; flex-shrink: 0;
    -webkit-transition: background var(--t); transition: background var(--t);
}
.ck-step--active .ck-step-num { background: var(--st-red); }
.ck-step--completed .ck-step-num { background: #16a34a; font-size: 14px; }

.ck-step-title {
    font-family: var(--ff-body); font-size: 14px; font-weight: 700;
    color: var(--st-text); text-transform: uppercase; letter-spacing: .5px;
    margin: 0; -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
}
.ck-step-edit-btn {
    font-size: 12px; font-weight: 600; color: var(--st-muted);
    background: none; border: 1px solid var(--st-border); padding: 4px 10px;
    cursor: pointer; border-radius: 3px;
    -webkit-transition: color var(--t), border-color var(--t); transition: color var(--t), border-color var(--t);
}
.ck-step-edit-btn:hover { color: var(--st-red); border-color: var(--st-red); }

/* Step summary bar (shown when completed) */
.ck-step-summary { display: none; padding: 0 20px 16px 60px; }
.ck-step--completed .ck-step-summary { display: block; }
.ck-step-summary-chip {
    display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 8px; background: var(--st-surface); border: 1px solid var(--st-border);
    border-radius: 4px; padding: 7px 14px;
    font-size: 13px; color: var(--st-text); font-weight: 500;
}
.ck-step-summary-chip i { color: var(--st-red); font-size: 13px; }

/* Step content */
.ck-step-content { padding: 4px 20px 20px; }
.ck-step--completed .ck-step-content { display: none; }
.ck-step--pending .ck-step-content { display: none; }

/* Confirm button at bottom of each step */
.ck-step-confirm-btn {
    display: block; width: 100%; margin-top: 18px;
    background: var(--st-red); color: #fff;
    border: none; border-radius: 4px;
    font-family: var(--ff-body); font-size: 14px; font-weight: 700;
    padding: 12px 20px; cursor: pointer; text-align: center;
    -webkit-transition: background var(--t) var(--ease); transition: background var(--t) var(--ease);
}
.ck-step-confirm-btn:hover { background: var(--st-red-h); }
.ck-step-confirm-btn:disabled { background: #ccc; cursor: not-allowed; }

/* --- Mode selector (Retiro / Despacho) --- */
.ck-mode-grid {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    gap: 12px; margin-bottom: 20px;
}
.ck-mode-card {
    -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
    border: 1.5px solid var(--st-border); border-radius: 4px;
    padding: 18px 14px; cursor: pointer; text-align: center;
    background: #fff;
    -webkit-transition: border-color var(--t), background var(--t);
    transition: border-color var(--t), background var(--t);
}
.ck-mode-card:hover { border-color: #aaa; }
.ck-mode-card--selected {
    border-color: var(--st-red); background: #fff8f8;
    -webkit-box-shadow: 0 0 0 1px var(--st-red); box-shadow: 0 0 0 1px var(--st-red);
}
.ck-mode-card i {
    font-size: 24px; color: var(--st-muted); display: block; margin-bottom: 8px;
    -webkit-transition: color var(--t); transition: color var(--t);
}
.ck-mode-card--selected i { color: var(--st-red); }
.ck-mode-card-label { font-size: 13px; font-weight: 700; color: var(--st-text); }
.ck-mode-card-meta { font-size: 11px; color: var(--st-muted); margin-top: 3px; }

/* Sub-sections (hidden/shown by JS) */
.ck-sub { display: none; }
.ck-sub--visible { display: block; }

/* --- Inline form fields --- */
.ck-field-row {
    display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px;
}
.ck-field-row .ck-field { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.ck-field { margin-bottom: 12px; }
.ck-field label {
    display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px; color: #555; margin-bottom: 5px;
}
.ck-field input[type="text"] {
    width: 100%; border: 1.5px solid var(--st-border); border-radius: 4px;
    padding: 9px 12px; font-size: 13px; font-family: var(--ff-body); color: var(--st-text);
    background: #fff; -webkit-box-sizing: border-box; box-sizing: border-box;
    -webkit-transition: border-color var(--t); transition: border-color var(--t);
}
.ck-field input[type="text"]:focus { outline: none; border-color: var(--st-red); }

/* --- Address cards grid --- */
.ck-addr-grid {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.ck-addr-card {
    width: calc(50% - 5px); -webkit-box-sizing: border-box; box-sizing: border-box;
    border: 1.5px solid var(--st-border); border-radius: 4px; padding: 12px 14px;
    cursor: pointer; position: relative; background: #fff;
    -webkit-transition: border-color var(--t); transition: border-color var(--t);
}
.ck-addr-card:hover { border-color: #aaa; }
.ck-addr-card--selected {
    border-color: var(--st-red);
    -webkit-box-shadow: 0 0 0 1px var(--st-red); box-shadow: 0 0 0 1px var(--st-red);
}
.ck-addr-check {
    position: absolute; top: 10px; right: 10px;
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ddd;
    -webkit-transition: border-color var(--t), background var(--t);
    transition: border-color var(--t), background var(--t);
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.ck-addr-card--selected .ck-addr-check { border-color: var(--st-red); background: var(--st-red); }
.ck-addr-card--selected .ck-addr-check::after { content: '\2713'; color: #fff; font-size: 10px; font-weight: 700; }
.ck-addr-card-label { font-size: 12px; font-weight: 700; color: var(--st-text); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; padding-right: 26px; }
.ck-addr-card-line { font-size: 12px; color: #444; line-height: 1.5; }
.ck-addr-card-meta { font-size: 11px; color: var(--st-muted); margin-top: 5px; }
.ck-addr-card-edit { font-size: 11px; color: var(--st-muted); text-decoration: underline; background: none; border: none; padding: 0; cursor: pointer; margin-top: 6px; display: block; }
.ck-addr-card-edit:hover { color: var(--st-red); }

.ck-addr-add-btn {
    width: calc(50% - 5px); -webkit-box-sizing: border-box; box-sizing: border-box;
    border: 1.5px dashed var(--st-border); border-radius: 4px; padding: 12px 14px;
    cursor: pointer; background: none; color: var(--st-muted);
    font-size: 12px; font-weight: 600; font-family: var(--ff-body);
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 6px;
    -webkit-transition: border-color var(--t), color var(--t);
    transition: border-color var(--t), color var(--t);
}
.ck-addr-add-btn:hover { border-color: var(--st-red); color: var(--st-red); }

/* MKR info strip */
.ck-mkr-strip {
    border-left: 4px solid; border-radius: 4px; padding: 10px 14px;
    font-size: 12px; margin-bottom: 14px; line-height: 1.6;
}
.ck-mkr-strip--warn { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.ck-mkr-strip--info { background: #f0fdf4; border-color: #22c55e; color: #14532d; }

/* --- Transport selector box (shown after address selected) --- */
.ck-transport-box {
    display: none; background: var(--st-surface);
    border: 1px solid var(--st-border); border-radius: 4px;
    padding: 16px 18px; margin-top: 12px;
}
.ck-transport-box--visible { display: block; }
.ck-transport-box-intro {
    font-size: 13px; color: #444; margin-bottom: 12px; line-height: 1.5;
}
.ck-transport-box-intro strong { color: #111; }
.ck-transport-notice {
    border-left: 3px solid; border-radius: 3px; padding: 8px 12px;
    font-size: 12px; line-height: 1.55; margin-bottom: 12px;
}
.ck-transport-notice--available { background: #f0fdf4; border-color: #22c55e; color: #14532d; }
.ck-transport-notice--warn      { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.ck-transport-notice--neutral   { background: #f9fafb; border-color: #d1d5db; color: #374151; }
.ck-transport-select-label {
    display: block; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .4px; color: #555; margin-bottom: 6px;
}
.ck-transport-hint { font-size: 11px; color: var(--st-muted); margin-top: 8px; line-height: 1.5; }

/* Tom Select — design system overrides */
.ts-wrapper { font-family: var(--ff-body) !important; font-size: 13px !important; }
.ts-control {
    border: 1.5px solid var(--st-border) !important; border-radius: 4px !important;
    padding: 7px 12px !important; min-height: 38px !important;
    background: #fff !important;
    -webkit-box-shadow: none !important; box-shadow: none !important;
    -webkit-transition: border-color var(--t) !important; transition: border-color var(--t) !important;
    cursor: text !important;
}
.focus .ts-control, .ts-control:focus-within { border-color: var(--st-red) !important; outline: none !important; }
.ts-dropdown {
    border: 1.5px solid var(--st-border) !important; border-radius: 4px !important;
    -webkit-box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
    font-size: 13px !important; font-family: var(--ff-body) !important;
    margin-top: 2px !important;
}
.ts-dropdown .option { padding: 9px 12px !important; cursor: pointer !important; }
.ts-dropdown .option:hover, .ts-dropdown .option.active { background: #fff1f1 !important; color: var(--st-red) !important; }
.ts-dropdown .option.selected { background: var(--st-red) !important; color: #fff !important; }
.ts-dropdown .option.selected:hover { background: var(--st-red-h) !important; }
.ts-control input { font-family: var(--ff-body) !important; font-size: 13px !important; color: var(--st-text) !important; }
.ts-control input::-webkit-input-placeholder { color: var(--st-muted) !important; }
.ts-control input:-ms-input-placeholder { color: var(--st-muted) !important; }
.ts-control input::placeholder { color: var(--st-muted) !important; }
.ts-dropdown-content { max-height: 240px !important; }

/* --- Payment cards --- */
.ck-pay-card {
    border: 1.5px solid var(--st-border); border-radius: 4px;
    margin-bottom: 10px; cursor: pointer; background: #fff; overflow: hidden;
    -webkit-transition: border-color var(--t) var(--ease);
    transition: border-color var(--t) var(--ease);
}
.ck-pay-card:last-child { margin-bottom: 0; }
.ck-pay-card--selected {
    border-color: var(--st-red);
    -webkit-box-shadow: 0 0 0 1px var(--st-red); box-shadow: 0 0 0 1px var(--st-red);
}
.ck-pay-card--disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.ck-pay-header {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 12px; padding: 14px 16px;
}
.ck-pay-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc;
    -ms-flex-negative: 0; flex-shrink: 0; position: relative;
    -webkit-transition: border-color var(--t); transition: border-color var(--t);
}
.ck-pay-card--selected .ck-pay-radio { border-color: var(--st-red); }
.ck-pay-radio::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; border-radius: 50%; background: var(--st-red);
    -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0);
    -webkit-transition: -webkit-transform var(--t); transition: transform var(--t);
}
.ck-pay-card--selected .ck-pay-radio::after {
    -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1);
}
.ck-pay-label { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; font-size: 14px; font-weight: 600; color: var(--st-text); }
.ck-pay-meta { font-size: 12px; font-weight: 400; color: var(--st-muted); margin-top: 2px; }
.ck-pay-logo { height: 30px; width: auto; max-width: 75px; -o-object-fit: contain; object-fit: contain; -ms-flex-negative: 0; flex-shrink: 0; }
.ck-pay-body { display: none; padding: 0 16px 14px 46px; font-size: 13px; color: #444; line-height: 1.6; }
.ck-pay-card--selected .ck-pay-body { display: block; }

/* --- Order summary (right column) --- */
.ck-summary { background: #fff; border: 1.5px solid var(--st-border); border-radius: 4px; overflow: hidden; }
.ck-summary-hd { background: var(--st-red); color: #fff; font-family: var(--ff-display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; padding: 14px 20px; }
.ck-summary-items { padding: 16px 20px 0; border-bottom: 1px solid var(--st-border); max-height: 300px; overflow-y: auto; }
.ck-summary-item { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 10px; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.ck-summary-item:last-child { border-bottom: none; margin-bottom: 0; }
.ck-summary-item-img { width: 44px; height: 44px; -ms-flex-negative: 0; flex-shrink: 0; background: var(--st-surface); border-radius: 3px; overflow: hidden; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
.ck-summary-item-img img { width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; }
.ck-summary-item-info { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.ck-summary-item-name { font-size: 12px; color: var(--st-text); line-height: 1.4; font-weight: 600; }
.ck-summary-item-code { font-size: 11px; color: var(--st-muted); margin-top: 2px; }
.ck-summary-item-qty { font-size: 11px; color: var(--st-muted); }
.ck-summary-item-total { font-size: 13px; font-weight: 700; color: var(--st-text); -ms-flex-negative: 0; flex-shrink: 0; text-align: right; }
.ck-summary-totals { padding: 14px 20px; }
.ck-summary-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-size: 13px; color: var(--st-text); margin-bottom: 8px; }
.ck-summary-row:last-child { margin-bottom: 0; }
.ck-summary-row--muted { color: var(--st-muted); }
.ck-summary-row--coupon { color: #16a34a; font-weight: 600; }
.ck-summary-row--total { border-top: 2px solid var(--st-text); margin-top: 10px; padding-top: 10px; font-size: 16px; font-weight: 700; }
.ck-summary-row--total .ck-val-big { font-size: 18px; color: var(--st-red); }
.ck-coupon-block { margin: 0 20px 14px; padding: 10px 14px; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.ck-coupon-block--notice { background: #f7f7f7; border: 1px solid var(--st-border); color: var(--st-muted); }
.ck-coupon-block--notice a { color: var(--st-red); font-weight: 600; text-decoration: none; }
.ck-coupon-block--notice a:hover { text-decoration: underline; }
.ck-coupon-block--applied { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-weight: 600; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; }
.ck-confirm-wrap { padding: 0 20px 20px; }
.ck-pending-hint {
    font-size: 12px; color: var(--st-muted); line-height: 1.6;
    padding: 10px 14px; margin-bottom: 12px;
    background: #f9fafb; border: 1px solid var(--st-border);
    border-left: 3px solid #d1d5db; border-radius: 4px;
}
.ck-pending-hint strong { color: var(--st-text); }
.ck-confirm-btn { display: block; width: 100%; background: var(--st-red); color: #fff; border: none; border-radius: 4px; font-family: var(--ff-body); font-size: 15px; font-weight: 700; padding: 14px 20px; cursor: pointer; text-align: center; letter-spacing: .3px; -webkit-transition: background var(--t) var(--ease); transition: background var(--t) var(--ease); }
.ck-confirm-btn:hover { background: var(--st-red-h); }
.ck-confirm-btn:disabled { background: #ccc; cursor: not-allowed; }
.ck-disclaimer { padding: 0 20px 20px; font-size: 11px; color: var(--st-muted); line-height: 1.6; text-align: center; }
.ck-back-link { padding: 14px 20px 15px; display: block; font-size: 12px; color: var(--st-muted); text-align: center; text-decoration: none; border-top: 1px solid var(--st-border); }
.ck-back-link:hover { color: var(--st-text); }

/* --- Step 3: comments + notifications --- */
.ck-comments-field { width: 100%; border: 1.5px solid var(--st-border); border-radius: 4px; padding: 10px 12px; font-size: 13px; font-family: var(--ff-body); color: var(--st-text); resize: vertical; min-height: 80px; -webkit-box-sizing: border-box; box-sizing: border-box; margin-bottom: 16px; -webkit-transition: border-color var(--t); transition: border-color var(--t); }
.ck-comments-field:focus { outline: none; border-color: var(--st-red); }
.ck-notify-box { background: var(--st-surface); border: 1px solid var(--st-border); border-radius: 4px; padding: 14px 16px; }
.ck-notify-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #555; margin-bottom: 10px; }
.ck-notify-list { list-style: none; padding: 0; margin: 0; }
.ck-notify-list li { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; margin-bottom: 7px; line-height: 1.5; }
.ck-notify-list li:last-child { margin-bottom: 0; }
.ck-notify-list li i { color: #16a34a; margin-top: 2px; -ms-flex-negative: 0; flex-shrink: 0; font-size: 13px; }
.ck-blanco-terms { margin-top: 16px; padding: 12px 14px; background: #faf7f2; border: 1px solid #e8dcc8; border-radius: 4px; }
.ck-blanco-terms-label { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 10px; font-family: var(--ff-body); font-size: 13px; color: #3a2e1e; cursor: pointer; line-height: 1.5; }
.ck-blanco-terms-label input[type="checkbox"] { margin-top: 2px; -ms-flex-negative: 0; flex-shrink: 0; accent-color: #b19767; width: 15px; height: 15px; }
.ck-blanco-terms-label a { color: #b19767; text-decoration: underline; }

/* ---- Blanco: timeline de entrega (encabezado de columna izquierda) ---- */
.ck-blanco-timeline { background: #fff; border: 1.5px solid #e0d5c5; border-radius: 6px; padding: 16px 18px; margin-bottom: 18px; font-family: var(--ff-body); }
.ck-blanco-timeline-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7a6040; margin-bottom: 12px; }
.ck-blanco-timeline-list { list-style: none; padding: 0; margin: 0; }
.ck-blanco-timeline-list li { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 10px; font-size: 12px; color: #5a4a33; padding: 6px 0; border-bottom: 1px solid #eee; line-height: 1.5; }
.ck-blanco-timeline-list li:last-child { border-bottom: none; }
.ck-blanco-timeline-list li i { color: #b19767; font-size: 13px; margin-top: 1px; -ms-flex-negative: 0; flex-shrink: 0; width: 14px; text-align: center; }
.ck-blanco-timeline-list li strong { color: #3a2e1e; }

/* Flash alerts */
.ck-alerts { margin-bottom: 20px; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .ck-grid { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
    .ck-col-summary { width: 100%; position: static; }
    .ck-addr-card, .ck-addr-add-btn { width: 100%; }
    .ck-mode-card { padding: 14px 10px; }
}
@media (max-width: 640px) {
    .ck-inner { padding: 0 16px; }
    .ck-head-title { font-size: 32px; }
    .ck-head-accent { height: 38px; }
    .ck-step-content { padding: 4px 14px 16px; }
    .ck-step-head { padding: 14px; }
    .ck-field-row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 0; }
    .ck-summary-items { max-height: 200px; }
    .ck-step-summary { padding-left: 20px; }
}

/* ==========================================================================
   CK DIALOG — validation dialog for checkout
   ========================================================================== */
.ck-dialog-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 9900; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.ck-dialog-overlay--open { display: -webkit-box; display: -ms-flexbox; display: flex; }
.ck-dialog {
    background: #fff; border-radius: 6px; padding: 28px 24px 22px;
    max-width: 340px; width: 90%; text-align: center;
    -webkit-box-shadow: 0 8px 32px rgba(0,0,0,.2); box-shadow: 0 8px 32px rgba(0,0,0,.2);
    -webkit-animation: ckDialogIn .16s ease; animation: ckDialogIn .16s ease;
}
@-webkit-keyframes ckDialogIn {
    from { opacity: 0; -webkit-transform: scale(.92); transform: scale(.92); }
    to   { opacity: 1; -webkit-transform: scale(1);   transform: scale(1); }
}
@keyframes ckDialogIn {
    from { opacity: 0; -webkit-transform: scale(.92); transform: scale(.92); }
    to   { opacity: 1; -webkit-transform: scale(1);   transform: scale(1); }
}
.ck-dialog-icon { font-size: 34px; color: var(--st-red); margin-bottom: 12px; }
.ck-dialog-msg  { font-size: 14px; color: #222; line-height: 1.6; margin-bottom: 22px; font-family: var(--ff-body); }
.ck-dialog-btn  {
    background: var(--st-red); color: #fff; border: none; border-radius: 4px;
    padding: 9px 30px; font-size: 13px; font-family: var(--ff-body);
    font-weight: 600; cursor: pointer;
    -webkit-transition: background var(--t); transition: background var(--t);
}
.ck-dialog-btn:hover { background: var(--st-red-h); }

/* ==========================================================================
   UA MODAL — shared across checkout + my-addresses
   ========================================================================== */
.ua-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.ua-modal-backdrop.is-open { display: -webkit-box; display: -ms-flexbox; display: flex; }
.ua-modal {
    background: #fff; border-radius: 8px;
    width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    padding: 28px 30px;
    -webkit-box-shadow: 0 8px 32px rgba(0,0,0,.18); box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.ua-modal-title { font-family: var(--ff-display); font-size: 26px; letter-spacing: 1px; color: #111; margin-bottom: 20px; }
.ua-form-row { display: -ms-grid; display: grid; -ms-grid-columns: 1fr 1fr; grid-template-columns: 1fr 1fr; gap: 12px; }
.ua-form-group { margin-bottom: 14px; }
.ua-form-group label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #555; margin-bottom: 5px; }
.ua-form-group input,
.ua-form-group select,
.ua-form-group textarea {
    width: 100%; border: 1.5px solid var(--st-border); border-radius: 4px;
    padding: 9px 12px; font-size: 13px; font-family: var(--ff-body); color: #111;
    background: #fff; -webkit-box-sizing: border-box; box-sizing: border-box;
    -webkit-transition: border-color .2s; transition: border-color .2s;
}
.ua-form-group input:focus,
.ua-form-group select:focus,
.ua-form-group textarea:focus { outline: none; border-color: var(--st-red); }
.ua-form-group textarea { resize: vertical; min-height: 72px; }
.ua-form-full { -ms-grid-column: 1; -ms-grid-column-span: 2; grid-column: 1 / -1; }
.ua-modal-footer { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 10px; margin-top: 22px; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
.ua-addr-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 4px; border: 1.5px solid var(--st-border); background: #fff; color: #333; cursor: pointer; -webkit-transition: border-color .2s, color .2s; transition: border-color .2s, color .2s; text-decoration: none; display: inline-block; }
.ua-addr-btn:hover { border-color: #aaa; color: #111; }
.ua-addr-btn--primary { background: var(--st-red); border-color: var(--st-red); color: #fff; }
.ua-addr-btn--primary:hover { background: var(--st-red-h); border-color: var(--st-red-h); }
@media (max-width: 540px) {
    .ua-modal { padding: 20px 18px; max-height: 95vh; }
    .ua-form-row { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
    .ua-form-full { -ms-grid-column: 1; -ms-grid-column-span: 1; grid-column: 1; }
}

/* ============================================================
   VENTA EN BLANCO — ca-wrap--blanco + ca-flow-* + ca-stages-*
   ============================================================ */

.ca-wrap--blanco { --ca-accent: #b19767; }

/* ---- Purchase flow diagram ---- */
.ca-flow {
  margin: 0 0 28px;
  background: #fff;
  border: 1.5px solid #e0d5c5;
  border-radius: 4px;
  padding: 20px 24px 16px;
}
.ca-flow-hd {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.ca-flow-hd-bar {
  width: 4px;
  height: 22px;
  background: #b19767;
  border-radius: 2px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.ca-flow-hd-title {
  font-family: var(--ff-display);
  font-size: 22px;
  color: #0f0f0f;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.ca-flow-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
      -ms-flex-align: flex-start;
          align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 6px;
  gap: 0;
}
.ca-flow-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0%;
          flex: 1 1 0%;
  min-width: 88px;
}
.ca-flow-arrow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-top: 13px;
  color: #d4c4a8;
  font-size: 13px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding-left: 2px;
  padding-right: 2px;
}
.ca-flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #b19767;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #fff;
  color: #b19767;
  font-size: 18px;
  margin: 0 auto 4px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  position: relative;
}
.ca-flow-badge {
  position: absolute;
  bottom: -5px;
  right: -8px;
  background: #b19767;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1.5px solid #fdf8f2;
  white-space: nowrap;
  line-height: 1.5;
}
.ca-flow-step-num {
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #c8b89a;
  margin: 6px 0 3px;
}
.ca-flow-text {
  font-family: var(--ff-body);
  font-size: 10px;
  color: #7a6a4f;
  line-height: 1.4;
  padding: 0 4px;
}
.ca-flow-terms {
  margin: 14px 0 0;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
}
.ca-flow-terms a { color: #b19767; text-decoration: underline; }
.ca-flow-terms .fa { margin-right: 4px; font-size: 11px; }

/* ---- Payment stages block (sidebar) ---- */
.ca-stages {
  border: 1.5px solid #e8dcc8;
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0 16px;
}
.ca-stages-hd {
  background: #7a6040;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-bottom: 2px solid #c9a878;
}
.ca-stages-rule {
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
  font-family: var(--ff-body);
  font-size: 11px;
  color: #666;
  padding: 7px 14px;
  line-height: 1.4;
}
.ca-stage-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
      -ms-flex-align: flex-start;
          align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8dcc8;
  background: #fff;
}
.ca-stage-row:last-child { border-bottom: none; }
.ca-stage-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #b19767;
  color: #b19767;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-top: 1px;
}
.ca-stage-row--active .ca-stage-num {
  background: #ea281f;
  border-color: #ea281f;
  color: #fff;
}
.ca-stage-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-family: var(--ff-body);
}
.ca-stage-pct {
  font-size: 12px;
  font-weight: 700;
  color: #5a4a33;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.ca-stage-row--active .ca-stage-pct { color: #111; }
.ca-stage-amount {
  font-size: 11px;
  font-weight: 700;
  color: #b19767;
}
.ca-stage-desc {
  font-size: 11px;
  color: var(--st-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.ca-stage-row--pending .ca-stage-num { border-color: #d4c4a8; color: #d4c4a8; }
.ca-stage-row--pending .ca-stage-pct { color: #aaa; }
.ca-stage-row--pending .ca-stage-amount { color: #bbb; }

/* ---- Arrival date cell ---- */
.ca-arrival-date {
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--st-muted);
  white-space: nowrap;
}
.ca-arrival-mobile {
  display: none;
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--st-muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .ca-flow-track { gap: 0; }
  .ca-flow-item  { min-width: 76px; }
  .ca-flow-text  { font-size: 9px; }
}
@media (max-width: 640px) {
  .ca-flow { padding: 16px; }
  .ca-flow-hd-title { font-size: 18px; }
}

/* ============================================================
   CHECKOUT RESERVA — .ck-wrap--reserve / .ck-head--reserve
   Overrides the base ck-* red accent with green #1a9940
============================================================ */
.ck-head--reserve {
    background: -webkit-linear-gradient(135deg, #f4fbf6 0%, #dff0e5 100%);
    background: linear-gradient(135deg, #f4fbf6 0%, #dff0e5 100%);
    border-bottom-color: #a3d5b0;
}
.ck-head--reserve .ck-head-title { color: #0d2e18; }
.ck-head--reserve .ck-head-sub   { color: #2d6a40; }
.ck-head--reserve .ck-head-accent               { background: #1a9940; }
.ck-wrap--reserve .ck-step--active .ck-step-num  { background: #1a9940; }
.ck-wrap--reserve .ck-step--completed .ck-step-num { background: #1a9940; }
.ck-wrap--reserve .ck-step-confirm-btn           { background: #1a9940; }
.ck-wrap--reserve .ck-step-confirm-btn:hover     { background: #15803d; }
.ck-wrap--reserve .ck-step-confirm-btn:disabled  { background: #ccc; cursor: not-allowed; }
.ck-wrap--reserve .ck-summary-hd                 { background: #1a9940; }
.ck-wrap--reserve .ck-summary-row--total .ck-val-big { color: #1a9940; }
.ck-wrap--reserve .ck-confirm-btn                { background: #1a9940; }
.ck-wrap--reserve .ck-confirm-btn:hover          { background: #15803d; }
.ck-wrap--reserve .ck-confirm-btn:disabled       { background: #ccc; cursor: not-allowed; }
.ck-wrap--reserve .ck-back-link:hover            { color: #1a9940; }

/* Bloque anticipo 10% — sidebar reserva */
.ck-reserve-advance {
    margin: 0 20px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 12px 14px;
}
.ck-reserve-advance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #15803d;
    margin-bottom: 6px;
}
.ck-reserve-advance-amount {
    font-family: var(--ff-body);
    font-size: 22px;
    font-weight: 700;
    color: #1a9940;
    line-height: 1;
}
.ck-reserve-advance-note {
    font-size: 11px;
    color: #15803d;
    margin-top: 5px;
    line-height: 1.4;
}

/* Checkbox T&C reserva */
.ck-reserve-terms {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
}
.ck-reserve-terms-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--ff-body);
    font-size: 13px;
    color: #1a3a2a;
    cursor: pointer;
    line-height: 1.5;
}
.ck-reserve-terms-label input[type="checkbox"] {
    margin-top: 2px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    accent-color: #1a9940;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.ck-reserve-terms-label a { color: #1a9940; text-decoration: underline; }
.ck-reserve-terms-label a:hover { color: #15803d; }

/* Página thanks-reserve / termsres */
.ck-success-card {
    background: #fff;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    max-width: 600px;
    margin: 40px auto;
    padding: 48px 40px;
    text-align: center;
}
.ck-success-icon { margin-bottom: 20px; }
.ck-success-icon svg { display: block; margin: 0 auto; }
.ck-success-title {
    font-family: var(--ff-display);
    font-size: 36px;
    text-transform: uppercase;
    color: #0f0f0f;
    margin-bottom: 6px;
    line-height: 1;
}
.ck-success-num {
    font-size: 15px;
    color: var(--st-muted);
    margin-bottom: 20px;
}
.ck-success-num strong { color: #1a9940; font-size: 18px; }
.ck-success-body {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 28px;
}
/* Aviso de pedido dividido en la pantalla de confirmación. Neutro a propósito:
   informa, no alarma — el pedido salió bien. */
.ck-success-note {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    text-align: left;
    background: #f6f7f9;
    border-left: 3px solid var(--st-muted, #8a8f98);
    border-radius: 3px;
    padding: 12px 14px;
    margin: 0 0 24px;
}
.ck-success-note strong { display: block; color: #0f0f0f; margin-bottom: 2px; }
.ck-success-btn {
    display: inline-block;
    background: #1a9940;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
    text-decoration: none;
    -webkit-transition: background var(--t) var(--ease);
    transition: background var(--t) var(--ease);
}
.ck-success-btn:hover { background: #15803d; color: #fff; text-decoration: none; }
.ck-success-link {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--st-muted);
    text-decoration: none;
}
.ck-success-link:hover { color: #1a9940; }

/* Términos reserva — doc typography */
.ck-doc-wrap { background: #fff; }
.ck-doc-inner { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }
.ck-doc-inner h2 {
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--st-text);
    margin: 24px 0 6px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
}
.ck-doc-inner h2:first-child { margin-top: 0; }
.ck-doc-inner p, .ck-doc-inner li {
    font-family: var(--ff-body);
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 6px;
}
.ck-doc-inner ul { margin: 0 0 12px 20px; padding: 0; }
.ck-doc-inner ul li { list-style: disc; margin-bottom: 4px; }
.ck-doc-inner .ck-doc-policy {
    background: #fff8f8;
    border-left: 4px solid #ea281f;
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
    margin: 10px 0 14px;
}
.ck-doc-inner .ck-doc-policy p { margin: 0; color: #333; }

@media (max-width: 640px) {
    .ck-success-card  { padding: 32px 20px; }
    .ck-success-title { font-size: 28px; }
    .ck-doc-inner     { padding: 24px 16px 40px; }
}

/* =============================================================
   CATÁLOGO PRESALE — prs-banner / prs-arrival-notice / cards
   ============================================================= */

/* -------------------------------------------------------
   Header banner — identidad venta en blanco
   ------------------------------------------------------- */
.prs-banner {
    background: -webkit-linear-gradient(135deg, #fefcf8 0%, #f5ede0 100%);
    background: linear-gradient(135deg, #fefcf8 0%, #f5ede0 100%);
    border-bottom: 3px solid #b19767;
    padding: 28px 0;
}
.prs-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 40px;
}
.prs-banner-left { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.prs-banner-right { -ms-flex-negative: 0; flex-shrink: 0; }

.prs-banner-pill {
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    background: #b19767;
    color: #fff;
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.prs-banner-title {
    font-family: var(--ff-display);
    font-size: 32px;
    letter-spacing: 0.5px;
    color: #3a2e1e;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 8px;
}
.prs-banner-desc {
    font-family: var(--ff-body);
    font-size: 13px;
    color: #7a6040;
    margin: 0;
    line-height: 1.6;
}
.prs-banner-link {
    color: #b19767;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 6px;
}
.prs-banner-link:hover { color: #9a7d50; }

/* Payment stages in banner */
.prs-banner-stages {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.6);
    border: 1.5px solid #e8dcc8;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 8px;
}
.prs-stage {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}
.prs-stage-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b19767;
    color: #fff;
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 700;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.prs-stage-body { line-height: 1.3; }
.prs-stage-label {
    font-family: var(--ff-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a08050;
    font-weight: 600;
}
.prs-stage-val {
    font-family: var(--ff-display);
    font-size: 15px;
    color: #3a2e1e;
    font-weight: 700;
}
.prs-stage-arrow { color: #d4c4a8; font-size: 13px; }
.prs-banner-note {
    font-family: var(--ff-body);
    font-size: 11px;
    color: #a08050;
    margin: 0;
    text-align: center;
}

/* -------------------------------------------------------
   Arrival date notice — before product grid
   ------------------------------------------------------- */
.prs-arrival-notice {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    gap: 12px;
    background: #faf7f2;
    border: 1.5px solid #e8dcc8;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: var(--ff-body);
}
.prs-arrival-icon {
    color: #b19767;
    font-size: 15px;
    margin-top: 1px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.prs-arrival-text {
    display: block;
    font-size: 13px;
    color: #3a2e1e;
    line-height: 1.5;
}
.prs-arrival-hint {
    display: block;
    font-size: 11px;
    color: #a08050;
    margin-top: 2px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .prs-banner-inner { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 20px; }
    .prs-banner-title { font-size: 24px; }
    .prs-banner-right { width: 100%; }
    .prs-banner-stages { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
}

/* =============================================================
   CATÁLOGO PRESALE — product-table-presale / catalog-presale
   ============================================================= */

/* Badge venta en blanco (arena gold) */
.pc-badge--blanco {
    background: #b19767;
    color: #fff;
}

/* Badge "en carro" presale */
.pc-badge--in-cart {
    background: #1a9940;
    color: #fff;
}

/* Card border when already in presale cart */
.pc-card--presale-in {
    border-color: #b19767;
}
.pc-card--presale-in::after {
    content: '\f107';
    font-family: FontAwesome;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #b19767;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 2;
}

/* Add-to-cart button — arena gold */
.pc-card .button--blanco {
    background: #b19767;
}
.pc-card .button--blanco:hover {
    background: #9a7d50;
}

/* Sidebar filter accent for presale page */
body.storepreorder-presale .sf-filter-header {
    color: #b19767;
    border-bottom-color: #b19767;
}
body.storepreorder-presale .sf-sidebar .layout-list li.active a { color: #b19767; }
body.storepreorder-presale .sf-sidebar .layout-list li.active a::before { background: #b19767; }
body.storepreorder-presale .sf-sidebar .layout-list a:hover { color: #b19767; }
body.storepreorder-presale .sf-sidebar .price-filter-area .btn { background: #b19767; }
body.storepreorder-presale .sf-sidebar .price-filter-area .btn:hover { background: #9a7d50; }
body.storepreorder-presale .sf-ctrl select:focus { border-color: #b19767; }
body.storepreorder-presale .sf-pagination li a:hover { border-color: #b19767; color: #b19767; }
body.storepreorder-presale .sf-pagination li.active a,
body.storepreorder-presale .sf-pagination li.active span { background: #b19767; border-color: #b19767; }

/* Ocultar nav de categorías en contextos de catálogos especiales */
body.storepreorder-presale .st-cat-nav,
body.storepreorder-product .st-cat-nav,
body.storepreorder-reservecart .st-cat-nav,
body.storepreorder-orderreserve .st-cat-nav,
body.store-transit .st-cat-nav { display: none; }

/* fbk-band pegado al contenido: sin margen en páginas con prs-banner, carros y checkouts */
body.storepreorder-presale .fbk-band,
body.storepreorder-product .fbk-band,
body.storepreorder-reservecart .fbk-band,
body.storepreorder-orderreserve .fbk-band,
body.store-transit .fbk-band,
body.store-cart .fbk-band,
body.store-order .fbk-band { margin-top: 0; }

/* -------------------------------------------------------
   Banda de contacto vendedor — MKR rojo/blanco dominante
   ------------------------------------------------------- */
.prs-contact-band {
    background: #f9f7f7;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 36px 0;
    position: relative;
}
body.storepreorder-orderreserve .prs-contact-band,
body.store-orderreserve .prs-contact-band { background: #fff; }
.prs-contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 0 32px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 48px;
}
.prs-contact-left { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.prs-contact-right { -ms-flex-negative: 0; flex-shrink: 0; }

/* Brands strip */
.prs-contact-brands {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.prs-contact-sram-logo {
    height: 20px;
    width: auto;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    opacity: 0.45;
    -webkit-filter: brightness(0);
    filter: brightness(0);
}
.prs-contact-subbrand-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 5px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border-left: 1.5px solid #e0e0e0;
    padding-left: 14px;
}
.prs-contact-subbrand-list span {
    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #555;
    background: #f2f2f2;
    padding: 3px 8px;
    border-radius: 2px;
}

.prs-contact-title {
    font-family: var(--ff-display);
    font-size: 22px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.2;
}
.prs-contact-desc {
    font-family: var(--ff-body);
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.7;
    max-width: 560px;
}

/* Other brands callout */
.prs-contact-other-brands {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 14px;
    background: rgba(234,40,31,0.05);
    border-left: 3px solid #ea281f;
    border-radius: 0 4px 4px 0;
    max-width: 540px;
    font-family: var(--ff-body);
    font-size: 12.5px;
    color: #333;
    line-height: 1.6;
}
.prs-contact-other-brands-ico {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 14px;
    color: #ea281f;
    margin-top: 1px;
}

/* Seller card — blanco con acento rojo arriba */
.prs-contact-card {
    background: #fff;
    border: 1.5px solid #e5e5e5;
    border-top: 3px solid #ea281f;
    border-radius: 6px;
    padding: 20px 24px;
    text-align: center;
    min-width: 210px;
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.07);
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.prs-contact-card-label {
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ea281f;
    margin-bottom: 6px;
}
.prs-contact-card-name {
    font-family: var(--ff-display);
    font-size: 18px;
    color: #111;
    margin-bottom: 4px;
}
.prs-contact-card-phone {
    font-family: var(--ff-body);
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
}
.prs-contact-wa-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 3px;
    text-decoration: none;
    -webkit-transition: background 0.18s, -webkit-box-shadow 0.18s;
    transition: background 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}
.prs-contact-wa-btn:hover { background: #1ebe59; color: #fff; text-decoration: none; -webkit-box-shadow: 0 4px 12px rgba(37,211,102,.35); box-shadow: 0 4px 12px rgba(37,211,102,.35); }
.prs-contact-wa-ico {
    width: 16px;
    height: 16px;
    fill: #fff;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .prs-contact-inner { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 24px; padding-left: 24px; }
    .prs-contact-right { width: 100%; }
    .prs-contact-card { width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; }
}

/* Contexto venta en verde — acento de tarjeta en verde */
body.store-transit .prs-contact-card,
body.store-reservecart .prs-contact-card,
body.store-orderreserve .prs-contact-card { border-top-color: #1a9940; }
body.store-transit .prs-contact-card-label,
body.store-reservecart .prs-contact-card-label,
body.store-orderreserve .prs-contact-card-label { color: #1a9940; }

/* Contexto venta en blanco — acento de tarjeta en café/arena */
body.storepreorder-presale .prs-contact-card,
body.storepreorder-product .prs-contact-card,
body.storepreorder-reservecart .prs-contact-card,
body.storepreorder-orderreserve .prs-contact-card { border-top-color: #b19767; }
body.storepreorder-presale .prs-contact-card-label,
body.storepreorder-product .prs-contact-card-label,
body.storepreorder-reservecart .prs-contact-card-label,
body.storepreorder-orderreserve .prs-contact-card-label { color: #b19767; }

/* =============================================================
   CATÁLOGO VENTA EN VERDE — store-transit
   ============================================================= */

/* Badge tipo venta verde */
.pc-badge--verde {
    background: #1a9940;
    color: #fff;
}

/* Card cuando el producto ya está en el carro reserva */
.pc-card--verde-in {
    border-color: #1a9940;
    -webkit-box-shadow: 0 0 0 1px #1a9940;
    box-shadow: 0 0 0 1px #1a9940;
}
.pc-card--verde-in::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a9940;
}

/* Botón añadir a reserva verde */
.pc-card .button--verde {
    background: #1a9940;
    color: #fff;
    border: none;
}
.pc-card .button--verde:hover {
    background: #157a32;
}

/* ------------------------------------------------------------
   Producto del lote que además tiene stock en bodega:
   la compra inmediata manda, la reserva pasa a acción secundaria.
   ------------------------------------------------------------ */
.pc-badge--now {
    background: #b45309;
    color: #fff;
}

.pc-now-note {
    display: inline-block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 3px;
    padding: 2px 7px;
    margin: 4px 0 6px;
    font-size: 10.5px;
    line-height: 1.5;
    white-space: nowrap;
    color: #7c4a04;
}
.pc-now-note strong { color: #b45309; }
.pc-now-note .fa { margin-right: 3px; }

.pc-card .button--now,
.single-list-verde .button--now {
    background: #d97706;
    color: #fff;
    border: none;
}
.pc-card .button--now:hover,
.single-list-verde .button--now:hover {
    background: #b45309;
}

/* Reserva en modo secundario cuando hay stock disponible hoy */
.pc-form--secondary { margin-top: 6px; }
.pc-card .button--ghost-verde,
.single-list-verde .button--ghost-verde {
    background: transparent;
    color: #1a9940;
    border: 1px solid #1a9940;
}
.pc-card .button--ghost-verde:hover,
.single-list-verde .button--ghost-verde:hover {
    background: #1a9940;
    color: #fff;
}

/* Banner identidad — venta en verde */
body.store-transit .prs-banner {
    background: -webkit-linear-gradient(135deg, #f4fbf6 0%, #dff0e5 100%);
    background: linear-gradient(135deg, #f4fbf6 0%, #dff0e5 100%);
    border-bottom-color: #1a9940;
}
body.store-transit .prs-banner-pill { background: #1a9940; }
body.store-transit .prs-banner-title { color: #0d2e18; }
body.store-transit .prs-banner-desc { color: #2d6a40; }
body.store-transit .prs-banner-link { color: #1a9940; }
body.store-transit .prs-banner-link:hover { color: #157a32; }
body.store-transit .prs-banner-stages { border-color: #b8dfc4; }
body.store-transit .prs-stage-num { background: #1a9940; }
body.store-transit .prs-stage-label { color: #3a7a50; }
body.store-transit .prs-stage-val { color: #0d2e18; }
body.store-transit .prs-stage-arrow { color: #8cc9a0; }
body.store-transit .prs-banner-note { color: #3a7a50; }

/* Aviso de lotes en tránsito — variante verde */
body.store-transit .prs-arrival-notice { background: #f2faf5; border-color: #b8dfc4; }
body.store-transit .prs-arrival-icon { color: #1a9940; }
body.store-transit .prs-arrival-text { color: #0d2e18; }
body.store-transit .prs-arrival-hint { color: #3a7a50; }

/* Sidebar accent verde */
body.store-transit .sf-filter-header { color: #1a9940; border-bottom-color: #1a9940; }
body.store-transit .sf-sidebar .layout-list li.active a { color: #1a9940; }
body.store-transit .sf-sidebar .layout-list li.active a::before { background: #1a9940; }
body.store-transit .sf-sidebar .layout-list a:hover { color: #1a9940; }
body.store-transit .sf-sidebar .price-filter-area .btn { background: #1a9940; }
body.store-transit .sf-sidebar .price-filter-area .btn:hover { background: #157a32; }

/* Toolbar + paginación verde */
body.store-transit .sf-ctrl select:focus { border-color: #1a9940; }
body.store-transit .sf-pagination li a:hover { border-color: #1a9940; color: #1a9940; }
body.store-transit .sf-pagination li.active a,
body.store-transit .sf-pagination li.active span { background: #1a9940; border-color: #1a9940; }

/* =============================================================
   THANKS — compra normal y pedido bloqueado
   ============================================================= */

/* Número de pedido: acento rojo en lugar del verde de reserva */
.ck-success-num--red strong { color: var(--st-red); font-size: 18px; }

/* Ícono amber para pedido bloqueado */
.ck-success-icon--amber svg { fill: #d97706; }

/* Acento amber en head */
.ck-head--amber .ck-head-accent { background: #d97706; }

/* Bloque de aviso para pedido bloqueado */
.ck-thanks-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 0 4px 4px 0;
    padding: 14px 16px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.ck-thanks-alert strong { color: #b45309; }
.ck-thanks-alert a { color: #b45309; text-decoration: underline; }
.ck-thanks-alert a:hover { color: #92400e; }

/* ============================================================
   CA-HEAD VERDE — flujo de carro reserva (store-transit)
   ============================================================ */
body.store-transit .ca-head {
    background: -webkit-linear-gradient(135deg, #f4fbf6 0%, #dff0e5 100%);
    background: linear-gradient(135deg, #f4fbf6 0%, #dff0e5 100%);
    border-bottom: 2px solid #1a9940;
}
body.store-transit .ca-head-accent { background: #1a9940; }
body.store-transit .ca-head-title   { color: #0d2e18; }
body.store-transit .ca-head-sub     { color: #2d6a40; }
body.store-transit .ca-head-sub a   { color: #1a9940; }

/* Esquema de pago 10/90 en sidebar del carro */
.ca-payment-scheme {
    margin-top: 16px;
    padding: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #1a9940;
    border-radius: 0 6px 6px 0;
}
.ca-payment-scheme-hd {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #065f46;
    margin-bottom: 10px;
}
.ca-payment-scheme-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px dashed #bbf7d0;
    color: #374151;
}
.ca-payment-scheme-row:last-child { border-bottom: none; }
.ca-payment-scheme-row strong { color: #0d2e18; font-weight: 700; }
.ca-payment-scheme-note {
    font-size: 11px;
    color: #3a7a50;
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================================
   CONTEXTOS DE PRODUCTO: VENTA RESERVA (verde) y EN BLANCO
   ============================================================ */

/* Badge de contexto encima del título del producto */
.sp-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.sp-context-badge--verde  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.sp-context-badge--blanco { background: #f5f0e8; color: #6b5a3e; border: 1px solid #d4b896; }

/* Botón venta reserva (verde) */
.sp-add-btn--verde             { background: #1a9940; }
button.sp-add-btn--verde       { background: #1a9940 !important; }
.sp-add-btn--verde:hover       { background: #157a32; }
button.sp-add-btn--verde:hover { background: #157a32 !important; }

/* Botón venta en blanco (arena) */
.sp-add-btn--blanco             { background: #b19767; }
button.sp-add-btn--blanco       { background: #b19767 !important; }
.sp-add-btn--blanco:hover       { background: #9a7f51; }
button.sp-add-btn--blanco:hover { background: #9a7f51 !important; }

/* Alertas de contexto */
.sp-alert--verde  { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 3px solid #1a9940; color: #14532d; }
.sp-alert--blanco { background: #faf7f2; border: 1px solid #e5d5bc; border-left: 3px solid #b19767; color: #4a3728; }

/* Ficha de venta reserva cuando además hay stock en bodega */
.sp-context-badge--now { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.sp-context-badge--now .fa { margin-right: 4px; }
.sp-meta-value--now { color: #b45309; font-weight: 600; }
.sp-alert--now { background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid #d97706; color: #7c4a04; }
.sp-add-btn--now             { background: #d97706; }
button.sp-add-btn--now       { background: #d97706 !important; }
.sp-add-btn--now:hover       { background: #b45309; }
button.sp-add-btn--now:hover { background: #b45309 !important; }

/* Chip de fecha estimada de arribo */
.sp-arrival-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    margin-top: 2px;
}

/* Aviso de stock cruzado (tránsito → normal) */
.sp-cross-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #d97706;
    border-radius: 0 4px 4px 0;
    padding: 11px 14px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 14px;
}
.sp-cross-notice a { color: #b45309; font-weight: 600; text-decoration: underline; }
.sp-cross-notice a:hover { color: #78350f; }

/* ================================================================
   ADM — Panel de Administración  (adm-*)
   ================================================================ */

.adm-head {
    background: #fff;
    border-bottom: 1px solid var(--st-border);
    padding: 28px 0 24px;
}
.adm-head-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.adm-head-accent {
    width: 4px;
    height: 48px;
    background: var(--st-red);
    border-radius: 2px;
    flex-shrink: 0;
}
.adm-head-title {
    font-family: var(--ff-display);
    font-size: 44px;
    color: #0f0f0f;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}
.adm-head-sub {
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--st-muted);
    margin: 4px 0 0;
    font-weight: 400;
}

.adm-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}

.adm-group {
    margin-bottom: 36px;
}
.adm-group-label {
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--st-muted);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--st-border);
}
.adm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 10px;
}
.adm-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 18px 10px;
    background: #fff;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--st-text);
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
    min-height: 86px;
}
.adm-card:hover {
    border-color: var(--st-red);
    box-shadow: 0 2px 10px rgba(234,40,31,0.10);
    color: var(--st-red);
    text-decoration: none;
}
.adm-card-icon {
    font-size: 20px;
    color: var(--st-red);
    transition: transform var(--t) var(--ease);
}
.adm-card:hover .adm-card-icon { transform: scale(1.14); }
.adm-card-name {
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: inherit;
}

/* Tabla logs */
.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-body);
    font-size: 13px;
    table-layout: auto;
}
.adm-table thead tr { background: var(--st-red); }
.adm-table thead th {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    text-align: left;
    white-space: nowrap;
}
.adm-table thead th a { color: #fff; text-decoration: none; }
.adm-table thead th a:hover { color: #fecaca; }
.adm-table tbody tr:nth-child(even) td { background: #fafafa; }
.adm-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--st-border);
    vertical-align: top;
    word-break: break-word;
}
.adm-table-msg { font-size: 13px; color: var(--st-text); }
.adm-table-ip {
    font-family: monospace;
    font-size: 12px;
    color: var(--st-muted);
    white-space: nowrap;
}
.adm-table-origin { font-size: 12px; color: var(--st-muted); }
.adm-table-date {
    font-size: 12px;
    color: var(--st-muted);
    white-space: nowrap;
}

/* Buscador logs */
.adm-search {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.adm-search-input {
    flex: 1;
    height: 40px;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    padding: 0 14px;
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--st-text);
    outline: none;
    transition: border-color var(--t) var(--ease);
    background: #fff;
}
.adm-search-input:focus { border-color: var(--st-red); }
.adm-search-btn {
    height: 40px;
    padding: 0 20px;
    background: var(--st-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t) var(--ease);
    white-space: nowrap;
}
.adm-search-btn:hover { background: var(--st-red-h); }

/* Layout dos columnas (sidebar + content) */
.adm-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.adm-sidebar-wrap {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--st-imp-h) + var(--st-header-h) + var(--st-nav-h) + 16px);
}
.adm-content { flex: 1; min-width: 0; }

/* Sidebar nav */
.adm-sidebar {
    background: #fff;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    overflow: hidden;
}
.adm-sidebar-label {
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--st-muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--st-border);
    background: var(--st-surface);
}
.adm-sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--st-text);
    text-decoration: none;
    border-bottom: 1px solid var(--st-border);
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.adm-sidebar-link:last-child { border-bottom: none; }
.adm-sidebar-link i { font-size: 12px; color: var(--st-muted); width: 15px; text-align: center; flex-shrink: 0; }
.adm-sidebar-link:hover { background: var(--st-surface); color: var(--st-red); text-decoration: none; }
.adm-sidebar-link:hover i { color: var(--st-red); }
.adm-sidebar-link--active {
    background: #fff8f8;
    color: var(--st-red);
    font-weight: 600;
    border-left: 3px solid var(--st-red);
    padding-left: 11px;
}
.adm-sidebar-link--active i { color: var(--st-red); }
.adm-sidebar-divider { height: 1px; background: var(--st-border); margin: 6px 0; }
.adm-sidebar-btn { width: 100%; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; margin: 0; }
.adm-sidebar form { display: block; margin: 0; }
.adm-sidebar-link--impersonate { color: #92400e; font-weight: 600; border-bottom: none; }
.adm-sidebar-link--impersonate i { color: #92400e; }
.adm-sidebar-link--impersonate:hover { background: #fef3c7; color: #78350f; }
.adm-sidebar-link--impersonate:hover i { color: #78350f; }

/* Header de usuario (strip bajo el adm-head) */
.adm-user-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    margin-bottom: 20px;
}
.adm-user-strip-info { display: flex; flex-direction: column; gap: 2px; }
.adm-user-strip-name {
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--st-text);
}
.adm-user-strip-rut { font-size: 12px; color: var(--st-muted); }

/* Back link */
.adm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--st-red);
    text-decoration: none;
    margin-bottom: 18px;
}
.adm-back-link:hover { color: var(--st-red-h); text-decoration: none; }
.adm-back-link i { font-size: 11px; }

/* Subtítulo de sección dentro del content */
.adm-section-title {
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--st-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--st-red);
    display: inline-block;
}

/* Grid de detalles (2 columnas) */
.adm-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Info card */
.adm-info-card {
    background: #fff;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    overflow: hidden;
}
.adm-info-card-title {
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--st-muted);
    padding: 9px 14px;
    border-bottom: 1px solid var(--st-border);
    background: var(--st-surface);
}
.adm-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-body);
    font-size: 13px;
}
.adm-info-table tr:last-child td { border-bottom: none; }
.adm-info-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--st-border);
    vertical-align: top;
}
.adm-info-table td:first-child {
    font-size: 11px;
    font-weight: 700;
    color: var(--st-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 40%;
    white-space: nowrap;
}

/* Acciones de orden/documento */
.adm-actions-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Formularios admin */
.adm-form-group { margin-bottom: 16px; }
.adm-form-label {
    display: block;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--st-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.adm-form-control {
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    padding: 0 12px;
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--st-text);
    background: #fff;
    outline: none;
    transition: border-color var(--t) var(--ease);
    box-sizing: border-box;
}
.adm-form-control:focus { border-color: var(--st-red); }
.adm-form-select { appearance: auto; cursor: pointer; }
.adm-form-static {
    display: block;
    padding: 10px 12px;
    background: var(--st-surface);
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--st-text);
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    word-break: break-word;
}

/* Product ficha layout */
.adm-product-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: flex-start;
}
.adm-product-image-box {
    background: var(--st-surface);
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}
.adm-product-image-box img { max-width: 100%; height: auto; }

/* Empty / error state */
.adm-empty {
    padding: 60px 24px;
    text-align: center;
}
.adm-empty-icon { font-size: 40px; color: var(--st-border); margin-bottom: 14px; }
.adm-empty-title {
    font-family: var(--ff-display);
    font-size: 30px;
    color: var(--st-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.adm-empty-desc { font-family: var(--ff-body); font-size: 14px; color: var(--st-muted); margin-bottom: 20px; }

/* Alert info en admin */
.adm-alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 13px;
    border-left: 3px solid;
    margin-bottom: 16px;
}
.adm-alert--success { background: #f0fdf4; border-color: #16a34a; color: #14532d; }
.adm-alert--danger  { background: #fff8f8; border-color: var(--st-red); color: #7f1d1d; }
.adm-alert--warning { background: #fffbeb; border-color: #d97706; color: #78350f; }

/* Endpoints/tokens */
.adm-code-block {
    background: var(--st-surface);
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 12px;
    color: var(--st-text);
    word-break: break-all;
    margin: 6px 0 14px;
}

/* Estado de cuenta PDF embed */
.adm-pdf-embed {
    width: 100%;
    height: 520px;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .adm-layout { flex-direction: column; }
    .adm-sidebar-wrap { width: 100%; position: static; }
    .adm-detail-grid { grid-template-columns: 1fr; }
    .adm-product-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .adm-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .adm-head-title { font-size: 34px; }
    .adm-wrap { padding: 24px 16px 40px; }
}

/* -------------------------------------------------------
   Feedback band — before footer
   ------------------------------------------------------- */
.fbk-band {
    background: #f5dede;
    margin-top: 64px;
}
.fbk-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.fbk-label {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.fbk-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--st-muted);
    white-space: nowrap;
    margin: 0;
}
.fbk-question {
    font-family: var(--ff-display);
    font-size: 20px;
    color: #0f0f0f;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}
.fbk-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.fbk-input {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--st-border);
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--st-text);
    background: var(--st-surface);
    outline: none;
    transition: border-color var(--t);
    min-width: 0;
}
.fbk-input:focus { border-color: #0f0f0f; background: #fff; }
.fbk-btn {
    height: 36px;
    padding: 0 18px;
    background: #0f0f0f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--t);
}
.fbk-btn:hover:not(:disabled) { background: #2d2d2d; }
.fbk-btn:disabled { opacity: 0.5; cursor: default; }
.fbk-thanks {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    flex: 1;
}
.fbk-thanks svg { width: 18px; height: 18px; stroke: #16a34a; flex-shrink: 0; }
@media (max-width: 900px) {
    .fbk-eyebrow { display: none; }
    .fbk-question { font-size: 17px; }
}
@media (max-width: 640px) {
    .fbk-inner { flex-direction: column; height: auto; padding: 14px 20px; gap: 12px; }
    .fbk-label { gap: 8px; }
    .fbk-question { font-size: 15px; }
    .fbk-form { width: 100%; }
}

/* =============================================================
   MOBILE UX — mejoras responsivas (Fase 6)
   ============================================================= */

/* -------------------------------------------------------
   Hamburger button — desktop: oculto
   ------------------------------------------------------- */
.st-mob-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  padding: 0;
  transition: background 0.15s;
}
.st-mob-menu-btn:hover { background: rgba(255,255,255,0.25); }
.st-mob-menu-btn svg { width: 17px; height: 17px; }

/* -------------------------------------------------------
   Mobile nav header — desktop: oculto
   ------------------------------------------------------- */
.st-mob-nav-header { display: none; }

/* -------------------------------------------------------
   Nav backdrop — oculto por defecto
   ------------------------------------------------------- */
.st-mob-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 970;
  cursor: pointer;
}
.st-mob-nav-backdrop.st-mob-open { display: block; }

/* -------------------------------------------------------
   Mobile filter toggle button — desktop: oculto
   ------------------------------------------------------- */
.sf-mob-filter-btn {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 14px;
  height: 40px;
  background: var(--st-white);
  border: 1.5px solid var(--st-border);
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--st-text);
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color var(--t);
}
.sf-mob-filter-btn:hover { border-color: #bbb; }
.sf-mob-filter-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* -------------------------------------------------------
   Sidebar close button — desktop: oculto
   ------------------------------------------------------- */
.sf-sidebar-close { display: none; }

/* -------------------------------------------------------
   Filter backdrop — oculto por defecto
   ------------------------------------------------------- */
.sf-mob-filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 1040;
  cursor: pointer;
}
.sf-mob-filter-backdrop.st-mob-open { display: block; }

/* =============================================================
   @media (max-width: 999px) — tablet: drawer de categorías
   ============================================================= */
@media (max-width: 999px) {

  /* Mostrar hamburguesa en tablet */
  .st-mob-menu-btn { display: flex; }

  /* -------------------------------------------------------
     Category nav — drawer lateral (tablet y móvil)
     ------------------------------------------------------- */
  .st-cat-nav {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    height: 100vh;
    z-index: 980;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    border-right: 1px solid var(--st-border);
  }
  .st-cat-nav.st-mob-open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(0,0,0,0.18);
  }

  /* Header del drawer */
  .st-mob-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ea281f;
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
  }
  .st-mob-nav-title {
    font-family: var(--ff-display);
    font-size: 18px;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
  }
  .st-mob-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    padding: 0;
  }
  .st-mob-nav-close svg { width: 14px; height: 14px; }

  /* Triggers: lista vertical */
  .st-cat-triggers {
    flex-direction: column !important;
    height: auto !important;
    padding: 6px 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  .st-cat-all {
    height: 48px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    border-bottom: 1px solid var(--st-border) !important;
    margin-bottom: 4px !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  .st-cat-sep { display: none !important; }
  .st-cat-trigger {
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--st-text) !important;
    justify-content: space-between !important;
    width: 100% !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
  }
  .st-cat-trigger::after { display: none !important; }
  .st-cat-trigger.st-cat-active { background: #fef2f2 !important; color: #ea281f !important; }

  /* Panels: acordeón inline */
  .st-cat-panel {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border-top: 2px solid #ea281f !important;
    background: #fafafa !important;
    display: none !important;
    z-index: auto !important;
  }
  .st-cat-panel.st-cat-panel-open { display: block !important; }
  .st-cat-panel-inner { padding: 12px 16px 14px !important; }
  .st-cat-panel-head { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; margin-bottom: 10px !important; padding-bottom: 10px !important; }
  .st-cat-panel-title { font-size: 20px !important; letter-spacing: 1px !important; }
  .st-cat-panel-grid { grid-template-columns: 1fr 1fr !important; }

}

/* =============================================================
   @media (max-width: 640px) — overrides móviles (teléfono)
   ============================================================= */
@media (max-width: 640px) {

  /* --- Header: 2 filas en móvil (fila 1: logo+buscador · fila 2: carros — usuario+menú) --- */
  :root { --st-header-h: 98px; } /* alto real medido a 390 px (06-11-2026); con 104 lo sticky quedaba 6 px abajo */
  .st-header { height: auto; }
  .st-header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px !important;
    gap: 6px 8px !important;
  }
  .st-logo { flex-shrink: 0; }
  .st-logo img { height: 28px; }
  .st-search { flex: 1; min-width: 0; max-width: none !important; }
  .st-header-actions {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 6px !important;
    padding-bottom: 4px;
  }
  /* Carros: sólo ícono + badge, sin etiqueta de texto */
  .header-cart-btn { padding: 0 8px !important; height: 32px !important; gap: 4px !important; }
  .header-cart-btn .st-cart-label { display: none !important; }
  /* Trigger usuario compacto */
  .st-user-trigger { padding: 0 8px !important; height: 32px !important; gap: 4px !important; }
  /* En móvil empujar hamburguesa a la derecha (2ª fila de acciones) */
  .st-mob-menu-btn { margin-left: auto; }

  /* -------------------------------------------------------
     Sidebar de filtros — overlay
     ------------------------------------------------------- */
  .sf-mob-filter-btn { display: flex; }

  .sf-sidebar {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1050 !important;
    max-height: 100vh !important;
    background: #fff !important;
    overflow-y: auto !important;
    padding: 0 !important;
    width: auto !important;
    align-self: unset !important;
  }
  .sf-sidebar.st-mob-open { display: block !important; }

  /* Botón cerrar filtros — sticky arriba */
  .sf-sidebar-close {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1.5px solid var(--st-border);
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 13px 20px;
    width: 100%;
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--st-text);
    cursor: pointer;
    text-align: left;
  }
  .sf-sidebar-close svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Padding interno de los filtros */
  .sf-sidebar .sf-filter-header { padding: 14px 20px 10px !important; margin: 0 !important; }
  .sf-sidebar .shop-layout { margin: 0 !important; padding-left: 20px !important; padding-right: 20px !important; }
  .sf-sidebar .price-filter-area { padding-left: 20px !important; padding-right: 20px !important; }

  /* --- Tablas de carro: ocultar columnas no esenciales --- */
  table.ca-table .ca-th-img,
  table.ca-table .ca-td-img  { display: none; }
  table.ca-table .ca-th-disc,
  table.ca-table .ca-td-disc { display: none; }
  table.ca-table .ca-th-arrival,
  table.ca-table .ca-td-arrival { display: none; }
  .ca-arrival-mobile { display: block; }
  table.ca-table thead tr th.ca-th-qty   { width: 110px; }
  table.ca-table thead tr th.ca-th-price,
  table.ca-table thead tr th.ca-th-total { width: 80px; }
  table.ca-table thead tr th { padding: 8px 6px; font-size: 10px; }
  table.ca-table td           { padding: 10px 6px; font-size: 12px; }
  .ca-table-wrap { -webkit-overflow-scrolling: touch; }

  /* --- Ocultar "Cuadrícula por Categoría" en móvil --- */
  a[href*="cuadriculapdf"] { display: none !important; }

  /* ── ua-table responsiva ──────────────────────────────────── */
  .ua-table-wrap { -webkit-overflow-scrolling: touch; }
  .ua-table thead th,
  .ua-table tbody td { padding: 8px 10px; font-size: 12px; }

  /* orders.ctp — ocultar: Cliente(2), ¿OnLine?(3), Dcto.(5), IVA(6) */
  body.users-orders .ua-table th:nth-child(2),
  body.users-orders .ua-table td:nth-child(2),
  body.users-orders .ua-table th:nth-child(3),
  body.users-orders .ua-table td:nth-child(3),
  body.users-orders .ua-table th:nth-child(5),
  body.users-orders .ua-table td:nth-child(5),
  body.users-orders .ua-table th:nth-child(6),
  body.users-orders .ua-table td:nth-child(6) { display: none; }

  /* my_transit.ctp — ocultar: Método Pago(4), Neto(5), IVA(6) */
  body.users-mytransit .ua-table th:nth-child(4),
  body.users-mytransit .ua-table td:nth-child(4),
  body.users-mytransit .ua-table th:nth-child(5),
  body.users-mytransit .ua-table td:nth-child(5),
  body.users-mytransit .ua-table th:nth-child(6),
  body.users-mytransit .ua-table td:nth-child(6) { display: none; }

  /* ── Bootstrap table.table legacy (my_reserve, product stock) ── */
  .ua-main .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
  }
}

/* ============================================================
   RECOMENDACIONES PERSONALIZADAS (.sf-section-recs-*)
   Usado en home (Para Ti Esta Semana) y carro (Completa Tu Pedido)
   ============================================================ */
.sf-section-recs {
  padding: 32px 0 20px;
}
.sf-section-recs-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.sf-section-recs-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sf-section-recs-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--st-text);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.sf-section-recs-title svg {
  color: #2563eb;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.sf-section-recs-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
/* En escritorio siempre 6 columnas: con auto-fill la fila quedaba coja según el ancho */
@media (min-width: 1100px) {
  .sf-section-recs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.sf-rec-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-transition: box-shadow 0.18s, -webkit-transform 0.18s;
  transition: box-shadow 0.18s, transform 0.18s;
}
.sf-rec-card:hover {
  -webkit-box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
.sf-rec-img-wrap {
  position: relative;
  height: 150px;
  background: #f5f5f5;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.sf-rec-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}
.sf-rec-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.sf-rec-badge--offer {
  background: #ea281f;
  color: #fff;
}
.sf-rec-body {
  padding: 10px 12px 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.sf-rec-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text);
  line-height: 1.35;
  margin-bottom: 6px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sf-rec-reason {
  font-size: 11px;
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sf-rec-prices {
  margin-top: auto;
}
.sf-rec-price-before {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  line-height: 1.2;
}
.sf-rec-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--st-text);
  line-height: 1.2;
}
.sf-rec-price--sale {
  color: #ea281f;
}
@media (max-width: 992px) {
  .sf-section-recs-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 640px) {
  .sf-section-recs-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
  }
  .sf-section-recs-grid::-webkit-scrollbar { height: 4px; }
  .sf-section-recs-grid::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
  .sf-section-recs-grid::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
  .sf-rec-card { -ms-flex-negative: 0; flex-shrink: 0; width: 170px; }
  .sf-rec-img-wrap { height: 120px; }
}

/* ── Variante product_page para sf-section-recs ── */
.sf-section-recs--product {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding-top: 24px;
  margin-top: 32px;
}
.sf-section-recs--product .sf-section-recs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

/* ── Post-purchase recommendations (.ck-post-recs-*) ── */
.ck-post-recs {
  background: #f4f8ff;
  border-top: 2px solid #2563eb;
  padding: 28px 0 36px;
  margin-top: 0;
}
.ck-post-recs-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.ck-post-recs-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
}
.ck-post-recs-head svg {
  color: #2563eb;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.ck-post-recs-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.ck-post-rec-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  overflow: hidden;
  width: calc(25% - 12px);
  min-width: 160px;
  -webkit-box-shadow: 0 1px 4px rgba(37,99,235,.08);
          box-shadow: 0 1px 4px rgba(37,99,235,.08);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.ck-post-rec-img-link {
  display: block;
  position: relative;
  overflow: hidden;
  height: 130px;
}
.ck-post-rec-img-link img,
.ck-post-rec-img {
  width: 100%;
  height: 130px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
.ck-post-rec-body {
  padding: 10px 12px 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  gap: 4px;
}
.ck-post-rec-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ck-post-rec-name:hover { color: #2563eb; }
.ck-post-rec-btn {
  margin-top: 8px;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  -webkit-transition: background .15s;
  transition: background .15s;
}
.ck-post-rec-btn:hover { background: #1d4ed8; }
@media (max-width: 768px) {
  .ck-post-recs-grid {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .ck-post-recs-grid::-webkit-scrollbar { height: 4px; }
  .ck-post-recs-grid::-webkit-scrollbar-track { background: #dbeafe; border-radius: 2px; }
  .ck-post-recs-grid::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 2px; }
  .ck-post-rec-card { width: 160px; -ms-flex-negative: 0; flex-shrink: 0; }
}

/* ── Impersonation bar ── */
.mkr-impersonation-bar {
  position: sticky;
  top: 0;
  z-index: 910;
  background: #b45309;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.mkr-impersonation-bar__info { display: flex; align-items: center; gap: 8px; }
.mkr-impersonation-bar__info .fa { font-size: 15px; }
.mkr-impersonation-bar__admin { opacity: .75; font-size: 12px; }
.mkr-impersonation-bar__exit {
  white-space: nowrap;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.mkr-impersonation-bar__exit:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

/* -------------------------------------------------------
   Floating campaign coupon banner — redesign
   ------------------------------------------------------- */
.mkr-coupon-float {
  position: relative;
  margin: 12px 0 0;
  padding: 10px 44px 10px 14px;
  background: #fffbea;
  border: 1px solid #f0d36b;
  border-radius: 10px;
}
@keyframes mkrCouponSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.mkr-coupon-float__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.mkr-coupon-float__close:hover { color: #333; }
.mkr-coupon-float__link-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px 14px 14px;
  text-decoration: none;
  color: inherit;
}
.mkr-coupon-float__link-wrap:hover { text-decoration: none; color: inherit; }
.mkr-coupon-float__img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f4f4;
}
.mkr-coupon-float__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mkr-coupon-float__body { flex: 1; min-width: 0; }
.mkr-coupon-float__badge {
  display: inline-block;
  background: #fef3cd;
  color: #7a5c00;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 4px;
}
.mkr-coupon-float__name {
  font-size: 12px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 4px;
}
.mkr-coupon-float__meta { font-size: 11px; color: #777; }
.mkr-coupon-float__stock { font-weight: 600; }
.mkr-coupon-float__stock--ok  { color: #1a9940; }
.mkr-coupon-float__stock--out { color: #c0392b; }

/* -------------------------------------------------------
   My Account — coupon alert banner
   ------------------------------------------------------- */
.ua-coupon-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e6;
  border-left: 4px solid #e6b800;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #5c4200;
}
.ua-coupon-alert__icon { font-size: 18px; color: #b8890a; flex-shrink: 0; }
.ua-coupon-alert__link { color: #7a5c00; font-weight: 700; text-decoration: underline; }
.ua-coupon-alert__link:hover { color: #5c4200; }

/* -------------------------------------------------------
   Mis Cupones page
   ------------------------------------------------------- */
.uacp-list { display: flex; flex-direction: column; }
.uacp-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.uacp-item:last-child { border-bottom: none; }
.uacp-item--dim { opacity: .6; }
.uacp-item__img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #eee;
}
.uacp-item__img img { width: 100%; height: 100%; object-fit: contain; }
.uacp-item__body { flex: 1; min-width: 0; }
.uacp-item__name { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.uacp-item__name a { color: #222; text-decoration: none; }
.uacp-item__name a:hover { text-decoration: underline; color: var(--st-red, #ea281f); }
.uacp-item__meta { font-size: 12px; color: #777; margin-bottom: 5px; }
.uacp-item__discount { font-weight: 700; color: #7a5c00; }
.uacp-item__expiry { color: #555; }
.uacp-item__stock { font-weight: 600; }
.uacp-item__stock--ok  { color: #1a9940; }
.uacp-item__stock--out { color: #c0392b; }
.uacp-item__status--expired { color: #c0392b; font-weight: 600; }
.uacp-item__status--used    { color: #1a9940; font-weight: 600; }
.uacp-item__code { font-size: 13px; color: #444; }
.uacp-item__code strong { font-family: monospace; letter-spacing: 1px; color: #111; }
.uacp-item__nostock-note { font-size: 11px; color: #999; margin-left: 4px; font-style: italic; }
.uacp-item__badge-wrap { flex-shrink: 0; }
.uacp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.uacp-badge--active  { background: #e8f5e9; color: #1a9940; }
.uacp-badge--expired { background: #fdecea; color: #c0392b; }
.uacp-badge--used    { background: #f5f5f5; color: #777; }

/* -------------------------------------------------------
   Add-to-cart toast notification (new product page)
   ------------------------------------------------------- */
.mkr-cart-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a9940;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
  pointer-events: none;
}
.mkr-cart-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   VARIANTES DEL MODELO — otras tallas y colores (misma ficha)
   ============================================================ */
.sp-variants {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--st-border);
}

.sp-variants-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sp-variants-title {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--st-text);
}

.sp-variants-count {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--st-muted);
}

.sp-variants-group {
  margin-bottom: 12px;
}

.sp-variants-group:last-child {
  margin-bottom: 0;
}

.sp-variants-label {
  display: block;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--st-muted);
  margin-bottom: 6px;
}

.sp-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-variant {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 62px;
  padding: 7px 12px;
  border: 1px solid var(--st-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--ff-body);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.sp-variant-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--st-text);
  line-height: 1.2;
}

.sp-variant-note {
  font-size: 11px;
  color: var(--st-muted);
  line-height: 1.2;
}

.sp-variant--available:hover,
.sp-variant--available:focus {
  border-color: var(--st-red);
  background: var(--st-surface);
}

.sp-variant--current {
  border-color: var(--st-text);
  background: var(--st-surface);
  cursor: default;
}

/* Sin stock: se muestra igual, atenuado. Sirve para que el cliente sepa que la
   talla existe y pueda pedirla, en vez de creer que no se fabrica. */
.sp-variant--unavailable {
  opacity: .55;
}

.sp-variant--unavailable .sp-variant-label {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

@media (max-width: 480px) {
  .sp-variant { min-width: 56px; padding: 6px 10px; }
  .sp-variant-label { font-size: 13px; }
}

/* =============================================================
   BUSCADOR ACOTADO — venta en verde / venta en blanco
   El buscador de la cabecera se queda dentro del catálogo en el
   que está el cliente. Ver AppController::scopeVentaVerde().
   ============================================================= */

.st-search--verde .autocomplete-search,
.st-search--verde input[type="text"] {
    border-color: #1a9940 !important;
    background: #f7fdf9 !important;
}
.st-search--blanco .autocomplete-search,
.st-search--blanco input[type="text"] {
    border-color: #b19767 !important;
    background: #fdfbf7 !important;
}
.st-search--verde .st-search-btn  { color: #1a9940; }
.st-search--blanco .st-search-btn { color: #b19767; }

/* Aviso de resultados acotados + salida al catálogo general */
.sf-scope-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #475569;
}
.sf-scope-notice strong { color: #1e293b; }
.sf-scope-link {
    margin-left: auto;
    white-space: nowrap;
    font-weight: 600;
    color: var(--st-red);
    text-decoration: none;
}
.sf-scope-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .sf-scope-link { margin-left: 0; }
}

/* =============================================================
   PESTAÑAS POR CARPETA — catálogo de venta en verde
   Cada carpeta llega en fecha distinta; en una grilla plana la
   carpeta chica queda sepultada detrás de la grande.
   ============================================================= */

.prs-arrival-hint--standalone {
    margin: 0 0 14px;
    color: #3a7a50;
}


/* =============================================================
   HOME — aviso de tránsito con carpetas y accesos destacados
   ============================================================= */

.sc-reserve-alert { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
.sc-reserve-body { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.sc-reserve-head { line-height: 1.5; }
.sc-reserve-folders {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.sc-reserve-folder {
    display: block;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 3px;
    text-decoration: none;
    color: #7f1d1d !important;
    margin-left: 0 !important;
    font-weight: 400 !important;
    transition: border-color .18s, background .18s;
}
.sc-reserve-folder:hover { border-color: #ea281f; background: #fff5f5; text-decoration: none !important; }
.sc-reserve-folder .fa { margin-right: 5px; opacity: .7; }
.sc-reserve-folder-name { font-size: 12px; font-weight: 700; }
.sc-reserve-folder-meta { display: block; font-size: 10.5px; opacity: .75; margin-top: 1px; }
.sc-reserve-cta { -ms-flex-item-align: center; align-self: center; }

/* Acentos por catálogo en los accesos rápidos. Solo se aplican cuando
   hay productos publicados: destacar siempre deja de ser una señal. */
.sc-ql-card--verde              { border-top-color: #1a9940; }
.sc-ql-card--verde::after       { background: #1a9940; }
.sc-ql-card--verde:hover        { border-color: #1a9940; }
.sc-ql-card--verde .sc-ql-ico   { color: #1a9940; }

.sc-ql-card--blanco             { border-top-color: #b19767; }
.sc-ql-card--blanco::after      { background: #b19767; }
.sc-ql-card--blanco:hover       { border-color: #b19767; }
.sc-ql-card--blanco .sc-ql-ico  { color: #b19767; }

.sc-ql-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
    background: #ea281f;
    color: #fff;
    transition: background .2s, color .2s;
}
.sc-ql-card--verde  .sc-ql-badge { background: #1a9940; }
.sc-ql-card--blanco .sc-ql-badge { background: #b19767; }
.sc-ql-card:hover .sc-ql-badge   { background: #fff; color: #1a1a1a; }

/* -------------------------------------------------------
   Capacitaciones Nivel 4 — SRAM Chile Tech Center
   Banner con dos acciones: check list (PDF) y agendar por WhatsApp.
   Vigente hasta el 30-08-2026 (ver Element/Store/capacitacion-nivel4.ctp).
   ------------------------------------------------------- */
.capa4 {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--st-border);
  border-left: 4px solid var(--st-red);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--ff-body);
}

/* La gráfica es 3:2; se recorta con aspect-ratio para que nunca imponga su alto */
.capa4-fig {
  position: relative;
  display: block;
  flex: 0 0 auto;
  background: #0f0f0f;
  overflow: hidden;
  text-decoration: none;
}
.capa4-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% center;
}
.capa4-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  opacity: .9;
  transition: opacity var(--t) var(--ease), background var(--t) var(--ease);
}
.capa4-fig:hover .capa4-zoom { opacity: 1; background: var(--st-red); }

.capa4-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
}
.capa4-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--st-red);
}
.capa4-title {
  margin: 3px 0 0;
  font-family: var(--ff-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: .5px;
  color: var(--st-text);
}
.capa4-desc {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.capa4-desc strong { color: var(--st-text); font-weight: 700; }

.capa4-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.capa4-facts li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: #666;
}
.capa4-facts li + li { margin-top: 4px; }
.capa4-facts svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--st-red);
}

.capa4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.capa4-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.capa4-btn:hover, .capa4-btn:focus { text-decoration: none; }
.capa4-btn--pdf {
  background: var(--st-red);
  color: #fff;
}
.capa4-btn--pdf:hover, .capa4-btn--pdf:focus { background: var(--st-red-h); color: #fff; }
.capa4-btn--wa {
  background: #fff;
  color: #128c7e;
  border: 1px solid #cfe9e3;
}
.capa4-btn--wa:hover, .capa4-btn--wa:focus { background: #25d366; border-color: #25d366; color: #fff; }

/* Variante hero — home del store */
.capa4--hero            { margin: 28px 0 0; }
.capa4--hero .capa4-fig { width: 340px; }
.capa4--hero .capa4-body { padding: 20px 24px; }

/* Variante strip — carros y ficha de producto */
.capa4--strip             { margin: 20px 0; }
.capa4--strip .capa4-fig  { width: 168px; }
.capa4--strip .capa4-title { font-size: 21px; }
.capa4--strip .capa4-desc  { font-size: 12.5px; }
.capa4--strip .capa4-actions { margin-top: 11px; }
.capa4--strip .capa4-btn   { padding: 8px 13px; font-size: 11.5px; }

@media (max-width: 860px) {
  .capa4 { flex-direction: column; }
  .capa4--hero .capa4-fig,
  .capa4--strip .capa4-fig {
    width: 100%;
    height: 150px;
    object-position: center;
  }
  .capa4-fig img { object-position: 20% 30%; }
  .capa4--hero .capa4-body { padding: 16px 18px; }
}
@media (max-width: 520px) {
  .capa4-title { font-size: 20px !important; }
  .capa4-actions { flex-direction: column; align-items: stretch; }
  .capa4-btn { justify-content: center; }
}

/* Lightbox de la gráfica completa */
.capa4-lightbox {
  position: fixed;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .86);
}
.capa4-lightbox[hidden] { display: none; }
.capa4-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 3px;
}
.capa4-lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.capa4-lightbox-close:hover { opacity: 1; }

/* Contenedor del banner Nivel 4 en ficha de producto y carros:
   replica el ancho e interior de .ca-body / .sp-related */
.capa4-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}
.capa4-wrap .capa4 { margin: 0; }
/* En la ficha el banner es una sección más: mismo ritmo que .sp-related */
.capa4-wrap--flow { padding: 30px 24px 0; }

/* =========================================================================
   MercadoPago · bloque de cuotas sin interés
   Elemento: Element/Store/mercadopago-cuotas.ctp
   Dos variantes: 'cart' (sidebar del carro, desglose) y 'product' (ficha).
   ========================================================================= */
.mpc {
  border: 1px solid #e3e6ec;
  border-radius: 4px;
  background: #fff;
  padding: 14px 16px;
}
.mpc--cart {
  margin-top: 14px;
  background: linear-gradient(180deg, #f4f9ff 0%, #fff 60%);
  border-color: #cfe2f7;
}
.mpc--product {
  margin: 14px 0 0;
  background: #f7fafd;
  border-color: #dde6f0;
}

.mpc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mpc-logo {
  width: 92px;
  height: auto;
  flex: 0 0 auto;
}
.mpc-head-txt { display: flex; flex-direction: column; line-height: 1.25; }
.mpc-kicker {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2d7dd2;
  font-weight: 700;
}
.mpc-title {
  font-size: 14px;
  color: #1c2b3a;
  font-weight: 700;
}

.mpc-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  border-top: 1px solid #e6edf5;
}
.mpc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #e6edf5;
}
.mpc-row-n { font-size: 13px; color: #4a5766; }
.mpc-row-v { font-size: 15px; font-weight: 700; color: #1c2b3a; }

.mpc-inline {
  margin: 0 0 6px;
  font-size: 13px;
  color: #33414f;
  line-height: 1.45;
}
.mpc-inline strong { color: #1c2b3a; font-size: 15px; }

.mpc-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #4a5766;
}
.mpc-legal {
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: #8a95a1;
}

@media (max-width: 520px) {
  .mpc { padding: 12px 13px; }
  .mpc-logo { width: 78px; }
}

/* ==========================================================================
   Mis compras — lista, ficha del pedido, ficha de la reserva y pago del saldo
   --------------------------------------------------------------------------
   Cada seccion es un bloque blanco con su titulo adentro, y ninguna repite lo
   que dijo la anterior: el recorrido dice el estado, los chips dicen solo lo
   que el recorrido no puede (la facturacion), y las entregas aparecen unicamente
   cuando el pedido se dividio.

   El color significa: azul lo que esta en curso, verde lo cumplido, ambar lo
   que espera algo del cliente, gris lo que ya no corre. El tipo —pedido o
   reserva— NO usa color: si la reserva fuera azul, el azul dejaria de querer
   decir "en curso". El rojo queda para una sola cosa, el boton de pagar.
   ========================================================================== */

:root{
    --cmp-ink:#22252A;
    --cmp-soft:#5F6570;
    --cmp-faint:#878D97;
    --cmp-line:#E7E9ED;
    --cmp-hair:#F1F3F5;
    --cmp-paper:#FFFFFF;
    --cmp-shell:#F4F6F9;
    --cmp-blue:#1F5FD6;
    --cmp-blue-soft:#E9F0FE;
    --cmp-blue-edge:#C6D9FA;
    --cmp-green:#157C47;
    --cmp-green-soft:#E3F5EA;
    --cmp-green-edge:#BFE5CE;
    --cmp-amber:#9C5606;
    --cmp-amber-soft:#FDF2DC;
    --cmp-amber-edge:#F0DCB4;
    --cmp-grey-soft:#EEF0F3;
    --cmp-red:#EA281F;
}

.cmp-dot{
    display:inline-block; width:3px; height:3px; border-radius:50%;
    background:var(--cmp-faint); vertical-align:middle; margin:0 8px;
}

/* Chips — la misma pieza en las cuatro pantallas ------------------------- */
.chip{
    display:inline-block; padding:4px 11px; border-radius:20px;
    font-size:12.5px; font-weight:600; line-height:1.45; white-space:nowrap;
}
.chip--now{ background:var(--cmp-blue-soft); color:var(--cmp-blue); }
.chip--done{ background:var(--cmp-green-soft); color:var(--cmp-green); }
.chip--wait{ background:var(--cmp-amber-soft); color:var(--cmp-amber); }
.chip--off{ background:var(--cmp-grey-soft); color:var(--cmp-soft); }
.chip--doc{ background:var(--cmp-green-soft); color:var(--cmp-green); }

/* Bloques: cada seccion es blanca y trae su titulo adentro --------------- */
.blk{ margin:14px 0 0; }
.blk:last-of-type{ margin-bottom:14px; }
.blk-body{
    background:var(--cmp-paper); border:1px solid var(--cmp-line); border-radius:12px;
    overflow:hidden;
}
.blk-head{
    padding:16px 22px 14px; border-bottom:1px solid var(--cmp-line);
    background:var(--cmp-paper);
}
.blk-h{
    margin:0; font-size:16px; font-weight:700; letter-spacing:-.01em; color:var(--cmp-ink);
}
.blk-sub{ margin:4px 0 0; font-size:13px; color:var(--cmp-soft); }

/* Intro, filtros y busqueda ---------------------------------------------- */
.cmp-intro{
    padding:16px 22px; font-size:14px; color:var(--cmp-soft);
    border-bottom:1px solid var(--cmp-line);
}
.cmp-toolbar{
    display:flex; flex-wrap:wrap; gap:12px; align-items:center;
    justify-content:space-between; padding:13px 22px;
    background:var(--cmp-paper); border-bottom:1px solid var(--cmp-line);
}
.cmp-tabs{ display:flex; gap:3px; background:var(--cmp-shell); padding:3px; border-radius:9px; }
.cmp-tab{
    padding:7px 16px; border-radius:7px; font-size:13.5px; font-weight:500;
    color:var(--cmp-soft); text-decoration:none; transition:background .12s, color .12s;
}
.cmp-tab:hover{ color:var(--cmp-ink); background:var(--cmp-paper); text-decoration:none; }
.cmp-tab.is-on{ background:var(--cmp-blue); color:#fff; }
.cmp-tab.is-on:hover{ background:var(--cmp-blue); color:#fff; }

.cmp-find{ display:flex; gap:8px; }
.cmp-find-input{
    width:290px; max-width:50vw; padding:9px 13px; font-size:13.5px;
    border:1px solid var(--cmp-line); border-radius:8px; background:var(--cmp-paper);
    color:var(--cmp-ink); transition:border-color .12s, box-shadow .12s;
}
.cmp-find-input:hover{ border-color:#CFD4DB; }
.cmp-find-input:focus{ outline:none; border-color:var(--cmp-blue); box-shadow:0 0 0 3px var(--cmp-blue-soft); }
.cmp-find-btn{
    padding:9px 18px; font-size:13.5px; font-weight:600; cursor:pointer;
    border:1px solid var(--cmp-line); border-radius:8px;
    background:var(--cmp-paper); color:var(--cmp-ink); transition:background .12s, border-color .12s, color .12s;
}
.cmp-find-btn:hover{ background:var(--cmp-ink); border-color:var(--cmp-ink); color:#fff; }

/* La lista ---------------------------------------------------------------
   Sin linea de tiempo: el color del chip dice el estado, y el numero de nota
   de venta es lo unico que crece. Dos lineas por compra, el rotulo arriba
   diciendo de donde viene y el numero abajo, que es lo que se busca. */
.cmp-list{ display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--cmp-shell); }
.cmp{
    background:var(--cmp-paper); border:1px solid var(--cmp-line); border-radius:10px;
    padding:13px 16px 14px;
    transition:border-color .12s, box-shadow .12s;
}
.cmp:hover{ border-color:#D3D8E0; box-shadow:0 2px 8px rgba(20,25,35,.07); }
.cmp--off .cmp-id, .cmp--off .cmp-total{ color:var(--cmp-faint); }

.cmp-top{ display:flex; align-items:baseline; gap:12px; }
.cmp-tipo{
    font-size:12px; font-weight:500; color:var(--cmp-faint);
    font-variant-numeric:tabular-nums;
}
.cmp-total{
    margin-left:auto; font-size:16.5px; font-weight:700; color:var(--cmp-ink);
    font-variant-numeric:tabular-nums; white-space:nowrap;
}

/* Dos columnas: la identidad envuelve si hace falta, las acciones no se caen de linea. */
.cmp-bottom{
    display:grid; grid-template-columns:1fr auto; align-items:center;
    column-gap:14px; margin-top:2px;
}
.cmp-ident{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-width:0; }
.cmp-id{
    font-size:21px; font-weight:700; line-height:1.15; letter-spacing:-.015em;
    color:var(--cmp-blue); text-decoration:none; font-variant-numeric:tabular-nums;
}
.cmp-id:hover{ color:#154BAB; text-decoration:underline; }
.cmp-id--vacio{ color:var(--cmp-faint); }
.cmp-facts{ font-size:12.5px; color:var(--cmp-soft); }
.cmp-doc{ color:var(--cmp-soft); }
.cmp-doc.is-ok{ color:var(--cmp-green); font-weight:600; }
.cmp-nota{ margin:8px 0 0; font-size:12.5px; color:var(--cmp-soft); }

.cmp-money{ display:flex; align-items:center; gap:9px; margin-left:auto; }
.cmp-due-k{ font-size:12.5px; color:var(--cmp-faint); }
.cmp-due-v{
    font-size:14.5px; font-weight:700; color:var(--cmp-red);
    font-variant-numeric:tabular-nums; white-space:nowrap; margin-right:2px;
}

/* El recorrido ----------------------------------------------------------- */
.cmp-track{ display:flex; list-style:none; margin:0; padding:0; flex:1 1 340px; max-width:440px; }
.cmp-step{
    flex:1; position:relative; padding-top:15px; text-align:center;
    font-size:11px; color:var(--cmp-faint);
}
.cmp-step::before{
    content:""; position:absolute; top:3px; left:-50%; width:100%; height:2px; background:var(--cmp-line);
}
.cmp-step:first-child::before{ display:none; }
.cmp-step-mark{
    position:absolute; top:0; left:50%; transform:translateX(-50%);
    width:9px; height:9px; border-radius:50%;
    background:var(--cmp-paper); border:2px solid var(--cmp-line);
}
.cmp-step.is-done{ color:var(--cmp-soft); }
.cmp-step.is-done .cmp-step-mark{ background:var(--cmp-green); border-color:var(--cmp-green); }
.cmp-step.is-done::before{ background:var(--cmp-green); }
.cmp-step.is-now{ color:var(--cmp-blue); font-weight:700; }
.cmp-step.is-now .cmp-step-mark{
    background:var(--cmp-paper); border-color:var(--cmp-blue); box-shadow:0 0 0 3px var(--cmp-blue-soft);
}
.cmp-step.is-now::before{ background:var(--cmp-green); }

/* Botones ---------------------------------------------------------------- */
.cmp-see{
    display:inline-block; padding:7px 14px; border-radius:8px;
    border:1px solid var(--cmp-line); background:var(--cmp-paper);
    color:var(--cmp-ink); font-size:13px; font-weight:600; text-decoration:none;
    white-space:nowrap; transition:border-color .12s, background .12s, color .12s;
}
.cmp-see:hover{ border-color:var(--cmp-blue); background:var(--cmp-blue-soft); color:var(--cmp-blue); text-decoration:none; }
.cmp-see:focus-visible{ outline:2px solid var(--cmp-blue); outline-offset:2px; }
.cmp-see--pdf::before{ content:"↓ "; }

.cmp-pay{
    display:inline-block; padding:8px 18px; border-radius:8px;
    background:var(--cmp-red); color:#fff; font-size:13px; font-weight:700;
    text-decoration:none; white-space:nowrap;
    box-shadow:0 1px 2px rgba(234,40,31,.28); transition:background .12s, box-shadow .12s, transform .06s;
}
.cmp-pay:hover{ background:#C81F17; color:#fff; text-decoration:none; box-shadow:0 3px 10px rgba(234,40,31,.32); }
.cmp-pay:active{ transform:translateY(1px); }
.cmp-pay:focus-visible{ outline:2px solid var(--cmp-ink); outline-offset:2px; }
.cmp-pay--lg{ padding:12px 26px; font-size:15px; }

/* Paginador y vacio ------------------------------------------------------ */
.cmp-pager{
    display:flex; align-items:center; justify-content:center; gap:16px;
    padding:14px 22px; font-size:13px; color:var(--cmp-soft);
    background:var(--cmp-paper); border-top:1px solid var(--cmp-line);
}
.cmp-pager-btn{
    padding:8px 16px; border:1px solid var(--cmp-line); border-radius:8px;
    color:var(--cmp-ink); text-decoration:none; background:var(--cmp-paper);
    font-weight:600; transition:border-color .12s, color .12s;
}
.cmp-pager-btn:hover{ border-color:var(--cmp-blue); color:var(--cmp-blue); text-decoration:none; }
.cmp-pager-btn.is-off{ color:#B6BBC3; background:transparent; border-color:transparent; }
.cmp-pager-at{ font-variant-numeric:tabular-nums; }

.cmp-empty{ padding:48px 24px; text-align:center; color:var(--cmp-soft); font-size:14px; }
.cmp-empty-title{ margin:0 0 6px; font-size:16.5px; font-weight:700; color:var(--cmp-ink); }
.cmp-empty-link{ color:var(--cmp-blue); font-weight:600; }

/* Avisos ----------------------------------------------------------------- */
.note{
    margin:0 0 12px; padding:13px 16px; border-radius:9px; font-size:14px;
    background:var(--cmp-shell); color:var(--cmp-ink); border:1px solid var(--cmp-line);
}
.note--ok{ background:var(--cmp-green-soft); color:var(--cmp-green); border-color:var(--cmp-green-edge); }
.note--bad{ background:#FDECEA; color:#B3261E; border-color:#F6C9C4; }

/* El resumen: una banda a lo ancho de la cabecera, sin esquinas propias --- */
/* Va pegada dentro del bloque blanco del encabezado: redondearla ahi dentro
   la hacia leerse como una tarjeta suelta encima de otra. */
/* Dos columnas —identidad y plata— y el recorrido a lo ancho, abajo. Compartiendo fila
   con los chips el recorrido se estrechaba hasta partir "En preparación" en dos. */
/* La banda del recorrido.
   Arriba manda la identidad; acá manda el camino. El recorrido ocupa todo el ancho que
   sobra —dejarlo en media banda dejaba el resto vacío y el total flotando solo en el
   medio— y la plata se alinea con la primera línea, no con el centro de un bloque que
   crece cuando aparecen las fechas. */
.sum{
    display:grid; grid-template-columns:1fr auto; align-items:start; gap:14px 32px;
    padding:16px 22px 18px; margin:0;
    background:var(--cmp-shell); border-top:1px solid var(--cmp-line);
    border-bottom:1px solid var(--cmp-line);
}
.sum--now{ background:var(--cmp-blue-soft); border-color:var(--cmp-blue-edge); }
.sum--done{ background:var(--cmp-green-soft); border-color:var(--cmp-green-edge); }
.sum--wait{ background:var(--cmp-amber-soft); border-color:var(--cmp-amber-edge); }
.sum--off{ background:var(--cmp-grey-soft); border-color:#D8DCE2; }
.sum .chip{ background:rgba(255,255,255,.8); }
/* La identidad abre el resumen igual que abre la fila: rotulo chico arriba, numero
   grande abajo y al lado el estado. Es lo primero que el cliente busca en las dos. */
.sum-head{ display:flex; flex-direction:column; gap:3px; }
.sum-tipo{ font-size:12px; font-weight:500; color:var(--cmp-soft); font-variant-numeric:tabular-nums; }
.sum-idline{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.sum-nv{
    font-size:22px; font-weight:700; line-height:1.1; letter-spacing:-.015em;
    color:var(--cmp-blue); font-variant-numeric:tabular-nums;
}
.sum-nv--vacio{ color:var(--cmp-faint); }
.sum-idline .chip{ padding:5px 12px; font-size:13px; }
.sum .cmp-track{ width:100%; max-width:none; }
.sum .cmp-step::before{ background:rgba(255,255,255,.9); }
.sum .cmp-step-mark{ border-color:rgba(255,255,255,.95); background:#fff; }
.sum .cmp-step.is-done .cmp-step-mark{ background:var(--cmp-green); border-color:var(--cmp-green); }
.sum .cmp-step.is-done::before{ background:var(--cmp-green); }
.sum .cmp-step.is-now .cmp-step-mark{ background:#fff; border-color:var(--cmp-blue); box-shadow:0 0 0 3px rgba(255,255,255,.75); }
.sum-money{ display:flex; align-items:baseline; gap:20px; padding-top:2px; }
.sum-amount{ display:flex; flex-direction:column; gap:2px; text-align:right; }
.sum-k{ font-size:12px; color:var(--cmp-soft); }
.sum-v{ font-size:18px; font-weight:700; color:var(--cmp-ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.sum-amount--due .sum-v{ color:var(--cmp-red); }
.sum-note{ font-size:12.5px; color:var(--cmp-soft); max-width:170px; }

/* Entregas y documentos: filas dentro de su bloque ----------------------- */
.ent, .doc{ position:relative; padding:14px 22px 14px 25px; border-bottom:1px solid var(--cmp-line); }
.ent:last-child, .doc:last-child{ border-bottom:0; }
.ent::before{
    content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--cmp-line);
}
.ent--now::before{ background:var(--cmp-blue); }
.ent--done::before{ background:var(--cmp-green); }
.ent--off::before{ background:#C9CDD4; }
.doc{ padding-left:22px; }

.ent-top, .doc-top{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.ent-num, .doc-num{ font-size:14.5px; font-weight:700; color:var(--cmp-ink); font-variant-numeric:tabular-nums; }
.ent-wh{ font-size:12.5px; color:var(--cmp-soft); }
.doc-ent{ font-size:12.5px; color:var(--cmp-faint); }
.ent-monto, .doc-monto{
    margin-left:auto; font-size:15px; font-weight:700; color:var(--cmp-ink);
    font-variant-numeric:tabular-nums; white-space:nowrap;
}
.doc-acciones{ display:flex; gap:8px; }

/* Las lineas de una entrega o de un documento ---------------------------- */
.lin{ width:100%; border-collapse:collapse; margin-top:10px; }
.lin td{ padding:6px 8px 6px 0; font-size:13px; border-top:1px solid var(--cmp-hair); vertical-align:top; }
.lin tr:first-child td{ border-top:1px solid var(--cmp-line); }
.lin-qty{ width:42px; color:var(--cmp-soft); font-variant-numeric:tabular-nums; white-space:nowrap; }
.lin-cod{ width:86px; color:var(--cmp-faint); font-size:12.5px; }
.lin-nom{ color:var(--cmp-ink); }
.lin-sub{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--cmp-ink); }

/* Datos del cliente y de la orden: se consultan, no se leen -------------- */
.dat{ display:flex; flex-wrap:wrap; }
.dat-col{ flex:1 1 300px; padding:16px 22px; min-width:0; }
.dat-col + .dat-col{ border-left:1px solid var(--cmp-line); }
.dat .ua-order-col-title{
    margin:0 0 10px; font-size:11px; font-weight:700; letter-spacing:.07em;
    text-transform:uppercase; color:var(--cmp-faint);
}
.dat .ua-order-row{
    display:flex; justify-content:space-between; gap:14px; align-items:baseline;
    padding:6px 0; font-size:13px; border-bottom:1px solid var(--cmp-hair);
}
.dat .ua-order-row:last-child{ border-bottom:0; }
.dat .ua-order-row-k{ color:var(--cmp-soft); white-space:nowrap; }
.dat .ua-order-row-v{ color:var(--cmp-ink); font-weight:500; text-align:right; }

/* La tabla de items ------------------------------------------------------ */
.fic .ua-table{ width:100%; border-collapse:collapse; }
.fic .ua-table thead th{
    background:var(--cmp-shell); color:var(--cmp-faint);
    font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
    padding:10px 22px; text-align:left; border-bottom:1px solid var(--cmp-line);
}
.fic .ua-table tbody td{
    padding:11px 22px; border-bottom:1px solid var(--cmp-hair);
    font-size:13.5px; color:var(--cmp-ink); vertical-align:top;
}
.fic .ua-table tbody tr{ transition:background .12s; }
.fic .ua-table tbody tr:hover{ background:#FAFBFD; }
.fic .ua-table tfoot td{ padding:8px 22px; font-size:13.5px; }
.fic .ua-num, .fic .ua-table .text-right{ font-variant-numeric:tabular-nums; }
.fic .ua-muted{ color:var(--cmp-faint); font-size:12.5px; }
.fic .ua-doc-info-label{ color:var(--cmp-soft); }
.fic .ua-doc-info-value--total{ font-weight:700; font-size:15.5px; font-variant-numeric:tabular-nums; }

/* Pagar el saldo --------------------------------------------------------- */
.pay-grid{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-start; }
.pay-detail, .pay-methods{
    flex:1 1 340px; background:var(--cmp-paper); border:1px solid var(--cmp-line);
    border-radius:12px; padding:22px 24px;
}
.blk-title--in{ margin:0 0 16px; font-size:16px; font-weight:700; color:var(--cmp-ink); }
.pay-what{
    display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
    padding-bottom:16px; margin-bottom:6px; border-bottom:1px solid var(--cmp-line);
}
.pay-what-id{
    font-size:16px; font-weight:700; color:var(--cmp-blue); text-decoration:none;
    font-variant-numeric:tabular-nums;
}
.pay-what-id:hover{ text-decoration:underline; }
.pay-what-facts{ font-size:13px; color:var(--cmp-soft); }

.pay-line{
    display:flex; justify-content:space-between; align-items:baseline; gap:18px;
    padding:11px 0; border-bottom:1px solid var(--cmp-hair);
}
.pay-line:last-of-type{ border-bottom:0; }
.pay-line-k{ font-size:14px; color:var(--cmp-soft); }
.pay-line-note{ display:block; font-size:12.5px; color:var(--cmp-faint); }
.pay-line-v{ font-size:15.5px; color:var(--cmp-ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.pay-line-v--paid{ color:var(--cmp-green); }
.pay-line--total{
    margin-top:8px; padding:15px 18px; border:1px solid var(--cmp-blue-edge);
    border-radius:10px; background:var(--cmp-blue-soft);
}
.pay-line--total .pay-line-k{ font-size:14.5px; font-weight:700; color:var(--cmp-ink); }
.pay-line--total .pay-line-v{ font-size:25px; font-weight:700; color:var(--cmp-ink); }
.pay-after{ margin:16px 0 0; font-size:13px; line-height:1.6; color:var(--cmp-soft); }
.pay-after a{ color:var(--cmp-blue); font-weight:600; }

.pay-method{
    display:block; padding:15px 17px; margin-bottom:10px; border-radius:10px;
    border:1px solid var(--cmp-line); text-decoration:none; background:var(--cmp-paper);
    transition:border-color .12s, background .12s, transform .06s;
}
.pay-method:hover{
    border-color:var(--cmp-blue); background:var(--cmp-blue-soft);
    text-decoration:none; transform:translateY(-1px);
}
.pay-method:focus-visible{ outline:2px solid var(--cmp-blue); outline-offset:2px; }
.pay-method-name{ display:block; font-size:15px; font-weight:700; color:var(--cmp-ink); }
.pay-method-note{ display:block; margin-top:2px; font-size:12.5px; color:var(--cmp-soft); }
.pay-safe{ margin:16px 0 0; font-size:12.5px; line-height:1.6; color:var(--cmp-faint); }

@media (prefers-reduced-motion:reduce){
    .cmp, .cmp-tab, .cmp-see, .cmp-pay, .pay-method, .fic .ua-table tbody tr{ transition:none; }
    .pay-method:hover, .cmp-pay:active{ transform:none; }
}

/* Angosto ---------------------------------------------------------------- */
@media (max-width:760px){
    .cmp-list{ padding:10px; }
    .cmp{ padding:12px 14px; }
    .cmp-intro, .cmp-toolbar, .cmp-pager{ padding-left:16px; padding-right:16px; }
    .cmp-toolbar{ flex-direction:column; align-items:stretch; }
    .cmp-find-input{ width:100%; max-width:none; }
    .cmp-bottom{ grid-template-columns:1fr; row-gap:10px; }
    .cmp-money{ margin-left:0; justify-content:flex-end; }
    .cmp-track{ max-width:none; }
    .cmp-step-name{ font-size:10.5px; }
    .sum{ grid-template-columns:1fr; }
    .sum .cmp-track{ max-width:none; }
    .sum-quien{ margin-left:0; }
    .sum-foto{ text-align:left; }
    .sum-money{ justify-content:space-between; }
    .ent-monto, .doc-monto{ margin-left:0; }
    .ent, .doc{ padding-left:19px; padding-right:16px; }
    .blk-head, .dat-col{ padding-left:16px; padding-right:16px; }
    .fic .ua-table thead th, .fic .ua-table tbody td, .fic .ua-table tfoot td{ padding-left:16px; padding-right:16px; }
    .dat-col + .dat-col{ border-left:0; border-top:1px solid var(--cmp-line); }
    .pay-detail, .pay-methods{ flex-basis:100%; padding:18px 16px; }
}

/* Los items en la ficha de una venta de Odoo: la misma tabla compacta de las
   entregas, con aire de bloque y su pie de totales. */
.lin--ficha{ margin:0; }
.lin--ficha td{ padding:11px 22px; }
.lin--ficha tr:first-child td{ border-top:0; }
.lin--ficha tbody tr{ transition:background .12s; }
.lin--ficha tbody tr:hover{ background:#FAFBFD; }
.lin--ficha tfoot td{ border-top:1px solid var(--cmp-line); color:var(--cmp-soft); }
.lin-tot-k{ text-align:right; }
.lin-tot-k--total{ font-weight:700; color:var(--cmp-ink); }
.lin-sub--total{ font-weight:700; font-size:15.5px; color:var(--cmp-ink); }

/* El numero de MKR.cl acompana al de la nota de venta en la pagina de pago. */
.cmp-mkr{
    font-size:11.5px; font-weight:600; color:var(--cmp-faint);
    font-variant-numeric:tabular-nums;
}

/* El recorrido de la ficha lleva la fecha de cada hito debajo del nombre. Es lo que
   convierte una barra de progreso en un relato: no solo donde va, sino cuando llego. */
.cmp-track--fechas .cmp-step{ padding-bottom:2px; }
.cmp-track--fechas .cmp-step-name{ font-size:12px; }
.cmp-step-fecha{
    display:block; margin-top:2px; font-size:11px; color:var(--cmp-faint);
    font-variant-numeric:tabular-nums; min-height:14px;
}
.cmp-step.is-done .cmp-step-fecha{ color:var(--cmp-soft); }
.cmp-step.is-now .cmp-step-fecha{ color:var(--cmp-blue); font-weight:600; }

/* El rótulo de origen abre el resumen de la ficha, con las mismas palabras que la lista.
   Va en blanco sobre el color del estado: dice de qué se trata sin competir con él. */
.chip--tipo{
    background:rgba(255,255,255,.9); color:var(--cmp-ink);
    box-shadow:inset 0 0 0 1px rgba(34,37,42,.08);
}

/* La cabecera de la ficha: el número de nota de venta manda —grande y azul, como en la
   lista—, arriba de qué compra se trata, y a la derecha en qué está, junto al volver. */
.fic-head{ flex-wrap:wrap; gap:10px 18px; }
.fic-nv{
    color:var(--cmp-blue) !important;
    font-variant-numeric:tabular-nums;
}
.fic-nv--vacio{ color:var(--cmp-faint) !important; }
.fic-estado{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-left:auto; }
.fic-estado .chip{ padding:6px 14px; font-size:13px; }
/* El estado va en color; la facturación, al lado, en tono menor: son dos cosas de peso
   distinto y darles el mismo verde las hacía competir. */
.chip--ghost{
    background:transparent; color:var(--cmp-soft);
    box-shadow:inset 0 0 0 1px var(--cmp-line);
}
.fic-head .ua-head-actions{ margin-left:0; }

/* Y la banda verde: el recorrido a la izquierda, la plata a la derecha. */
.sum-vacio{ margin:0; font-size:14px; color:var(--cmp-soft); }

/* Quién recibió o retiró. Sale de un campo de texto libre de operaciones, así que lo que
   se muestra pasa antes por NotaDespacho: ahí dentro hay enlaces al Registro Civil con el
   MRZ de una cédula y comentarios internos que el cliente no puede ver. */
/* El recorrido y el quién van juntos en la columna izquierda: sueltos, el grid los
   tomaba como dos celdas y mandaba los totales a una tercera fila. */
.sum-flujo{ min-width:0; }
/* Va a la derecha, debajo del último hito: el retiro ocurrió ahí, no al principio del
   camino. Puesto a la izquierda parecía una nota del pedido y no del momento en que
   alguien se lo llevó. */
.sum-quien{
    display:block; width:-webkit-fit-content; width:fit-content; margin:12px 0 0 auto;
    padding:5px 12px; border-radius:20px;
    background:rgba(255,255,255,.75); font-size:12.5px; color:var(--cmp-ink);
    box-shadow:inset 0 0 0 1px rgba(34,37,42,.06); text-align:right;
}
.sum-quien b{ font-weight:600; }
/* La foto va bajo quien la recibio, alineada igual: las dos cuelgan de "Entregado". */
.sum-foto{ margin:8px 0 0; text-align:right; }
.ent-quien{ margin:10px 0 0; font-size:13px; color:var(--cmp-soft); }

/* La foto de la entrega, colgada del estado de esa entrega: es la prueba de ese momento.
   Se ofrece para descargar y no incrustada, porque pesa 900 KB de promedio y el cliente
   entra a la ficha a ver dónde va su pedido, no a cargar una imagen. */
.ent-foto{
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 12px; border-radius:8px;
    border:1px solid var(--cmp-line); background:var(--cmp-paper);
    font-size:12.5px; font-weight:600; color:var(--cmp-ink); text-decoration:none;
    transition:border-color .12s, background .12s, color .12s;
}
.ent-foto:hover{ border-color:var(--cmp-blue); background:var(--cmp-blue-soft); color:var(--cmp-blue); text-decoration:none; }
.ent-foto:focus-visible{ outline:2px solid var(--cmp-blue); outline-offset:2px; }

/* La foto de la entrega en grande. El <dialog> ocupa la pantalla; el marco es el bloque
   interior, asi que el clic afuera cierra sin capa extra. */
.foto-modal{
    border:0; padding:0; background:transparent;
    max-width:min(900px, 94vw); max-height:92vh;
    color:var(--cmp-ink);
}
.foto-modal::backdrop{ background:rgba(12,18,28,.72); }
.foto-modal-top{
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:12px 14px; background:var(--cmp-paper);
    border:1px solid var(--cmp-line); border-bottom:0; border-radius:10px 10px 0 0;
}
.foto-modal-tit{ font-size:13.5px; font-weight:600; }
.foto-modal-acc{ display:flex; align-items:center; gap:8px; }
.foto-modal-baja{
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 14px; border-radius:8px;
    border:1px solid var(--cmp-blue); background:var(--cmp-blue-soft);
    font-size:12.5px; font-weight:600; color:var(--cmp-blue); text-decoration:none;
}
.foto-modal-baja:hover{ background:var(--cmp-blue); color:#fff; text-decoration:none; }
.foto-modal-x{
    border:0; background:none; cursor:pointer;
    font-size:24px; line-height:1; color:var(--cmp-soft); padding:0 4px;
}
.foto-modal-x:hover{ color:var(--cmp-ink); }
.foto-modal-img{
    display:block; max-width:100%; max-height:calc(92vh - 58px);
    border:1px solid var(--cmp-line); border-radius:0 0 10px 10px; background:#fff;
}

/* =============================================================
   Móvil — revisión de UX del 06-10-2026 (recorrido con Playwright a 390 px).
   ============================================================= */
@media (max-width: 640px) {

  /* Franja "Viendo como": no cabía y ensanchaba la página a 453 px (todo el sitio se veía
     achicado con un margen blanco a la derecha). */
  .mkr-impersonation-bar { flex-wrap: wrap; gap: 6px 10px; font-size: 12px; padding: 6px 12px; }
  .mkr-impersonation-bar__info { min-width: 0; flex-wrap: wrap; }
  .mkr-impersonation-bar__admin { display: none; }

  /* Encabezado: fila 1 logo + acciones (carros, usuario, menú); fila 2 el buscador a todo el ancho. */
  .st-logo { order: 1; }
  .st-header-actions { order: 2; flex: 0 0 auto !important; margin-left: auto; padding-bottom: 0 !important; }
  .st-search { order: 3; flex: 0 0 100% !important; }
  .st-mob-menu-btn { margin-left: 0; }

  /* Productos en tránsito: ocupaba una pantalla entera y el enlace se montaba sobre las
     carpetas. Las carpetas pasan a una fila con scroll horizontal y el enlace va abajo. */
  .sc-reserve-alert { flex-wrap: wrap; padding: 12px !important; }
  .sc-reserve-folders { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .sc-reserve-folder { flex: 0 0 auto; }
  .sc-reserve-cta { flex: 0 0 100%; align-self: auto; margin-top: 6px; }

  /* Accesos rápidos: tarjetas más bajas, el texto ya no se corta. */
  .sc-ql-card { padding: 10px 10px !important; gap: 8px !important; min-height: 0 !important; }
  .sc-ql-ico { width: 30px !important; height: 30px !important; flex-shrink: 0; }
  .sc-ql-label { font-size: 15px !important; line-height: 1.1; }
  .sc-ql-sub { font-size: 11px !important; line-height: 1.25; }

  /* Listados: la barra de herramientas ocupaba media pantalla antes del primer producto. */
  .sf-downloads { display: none !important; }
  .sf-toolbar { gap: 6px !important; }
  .sf-toolbar-right { display: flex; flex-wrap: wrap; gap: 6px 10px; }

  /* Tarjeta: "+ Añadir al Carro" no cabía en 170 px y se salía por la derecha. */
  .pc-card .add-to-cart, .pc-card .add-to-cart-reserve, .pc-card .add-to-cart-presale { min-width: 0; }
  .pc-card .button { min-width: 0; padding: 9px 4px !important; }
  .pc-card .add-to-cart .button span { display: none; }
  .pc-card .add-to-cart .button::after { content: '+ Agregar'; font-size: 12px; }
}

/* "Lo compras": el SKU es habitual o comprado por este cliente (buscador personalizado). */
.pc-badge--mine { background: #0f766e; color: #fff; }

/* Mis habituales como lista (06-10-2026). */
.hb-wrap { max-width: 1200px; margin: 0 auto; padding: 16px 20px 40px; }
.hb-empty { padding: 24px 0; }
.hb-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0 14px; border-bottom: 1px solid #eee; }
.hb-all { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.hb-count { color: #777; font-size: 13px; }
.hb-add-all { margin-left: auto; background: #ea281f; color: #fff; border: 0; border-radius: 4px; padding: 10px 16px; font-weight: 700; }
.hb-add-all:disabled { opacity: .6; }
.hb-row { display: grid; grid-template-columns: 22px 64px 1fr auto 170px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.hb-row.product-in-cart { background: #f3fbf6; }
.hb-img img { width: 64px; height: 64px; object-fit: contain; }
.hb-name { font-weight: 600; color: #111; display: block; line-height: 1.25; }
.hb-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #777; margin-top: 3px; }
.hb-stock { color: #15803d; font-weight: 600; }
.hb-repl { font-size: 12px; color: #0f766e; font-weight: 600; margin-top: 3px; }
.hb-price { text-align: right; white-space: nowrap; }
.hb-before { display: block; font-size: 12px; color: #999; text-decoration: line-through; }
.hb-now { font-weight: 700; font-size: 16px; }
.hb-form { display: flex; gap: 6px; margin: 0; }
.hb-form .qty { width: 56px; text-align: center; border: 1px solid #ddd; border-radius: 4px; }
.hb-form .hb-add { flex: 1; background: #ea281f; color: #fff; border: 0; border-radius: 4px; padding: 8px 10px; font-weight: 700; }
@media (max-width: 640px) {
  .hb-wrap { padding: 8px 12px 32px; }
  .hb-row { grid-template-columns: 22px 52px 1fr; grid-template-areas: "c i n" "c i n" "f f f"; gap: 6px 10px; }
  .hb-row .hb-check { grid-area: c; align-self: start; margin-top: 4px; }
  .hb-row .hb-img { grid-area: i; align-self: start; }
  .hb-img img { width: 52px; height: 52px; }
  .hb-row .hb-info { grid-area: n; }
  .hb-row .hb-price { grid-column: 3; text-align: left; }
  .hb-row .hb-form { grid-column: 1 / -1; }
  .hb-add-all { width: 100%; margin-left: 0; }
}

/* ── Acotar búsquedas amplias (AttributeFilters::refineChips) ── */
.sf-refine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.sf-refine-label { font-size: 13px; font-weight: 700; color: #111; }
.sf-refine-chip { display: inline-block; padding: 7px 12px; border: 1px solid #d8d8d8; border-radius: 999px; background: #fff; color: #222; font-size: 13px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.sf-refine-chip:hover { border-color: #ea281f; color: #ea281f; text-decoration: none; }
.ca-mobile-bar { display: none; }

/* ── Móvil (02-11-2026) ── */
@media (max-width: 640px) {
  /* iOS acerca la pantalla al enfocar un campo con letra bajo 16 px */
  input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="tel"], input[type="password"], select, textarea { font-size: 16px !important; }

  /* Acotar: una sola fila deslizable */
  .sf-refine { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-right: -16px; }
  .sf-refine-label { flex-shrink: 0; }
  .sf-refine-chip { flex-shrink: 0; padding: 10px 14px; }

  /* Carro: cada línea es una tarjeta; la tabla no cabía y empujaba toda la página */
  .ca-body-grid, .ca-col-items, .ca-col-summary { min-width: 0; max-width: 100%; }
  .ca-table-wrap { overflow: visible; }
  table.ca-table, table.ca-table tbody { display: block; width: 100%; }
  table.ca-table thead { display: none; }
  table.ca-table tbody tr { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px 10px; padding: 14px 12px; align-items: center; }
  table.ca-table td { display: block; padding: 0; border: 0; width: auto; text-align: left; background: none !important; }
  table.ca-table .ca-td-img, table.ca-table .ca-td-disc, table.ca-table .ca-td-arrival { display: none; }
  table.ca-table td.ca-td-del { grid-row: 1 / span 3; align-self: start; }
  table.ca-table td:not([class]) { grid-column: 2 / -1; }
  table.ca-table td.ca-td-price { grid-column: 2; color: #666; font-size: 13px; }
  table.ca-table td.ca-td-price::after { content: " c/u"; }
  table.ca-table td.ca-td-qty { grid-column: 2; }
  table.ca-table td.ca-td-total { grid-column: 3; grid-row: 2 / span 2; align-self: end; text-align: right; font-weight: 700; font-size: 16px; white-space: nowrap; }
  .ca-del-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 40px; }
  .ca-qty-btn { min-width: 40px; min-height: 40px; }
  .ca-actions-left { display: flex; width: 100%; gap: 8px; }
  .ca-actions-left .ca-btn { flex: 1; justify-content: center; text-align: center; }
  .ca-actions-right .ca-btn { width: 100%; justify-content: center; }

  /* Carro: total y Finalizar siempre a mano */
  body.store-cart { padding-bottom: 76px; }
  .ca-mobile-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
  .ca-mobile-bar-total { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; color: #666; white-space: nowrap; }
  .ca-mobile-bar-total strong { font-size: 17px; color: #111; }
  .ca-mobile-bar .ca-checkout-btn { flex: 1; margin: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; }

  /* Ficha: cantidad y Añadir al Carro siempre a mano */
  body.store-product { padding-bottom: 76px; }
  body.store-product .sp-cart-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; margin: 0; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
  body.store-product .sp-cart-form .sp-add-btn { flex: 1; min-height: 46px; }
  .sp-qty-btn { min-width: 40px; min-height: 40px; }

  /* Cupón flotante: era un cuarto de pantalla sobre los accesos. Queda una franja */
  .mkr-coupon-float__img { display: none; }

  /* Pie: el botón del portal SRAM se salía de la pantalla */
  .sc-sram-inner { flex-wrap: wrap; }
  .sc-sram-cta { max-width: 100%; }
}

/* ---- Mis compras y Mi orden: si ya pago y que sigue (05-11-2026) ---- */
/* La linea del hito siguiente pasaba por encima de la marca y se veia como una C. */
.cmp-step-mark{ z-index:1; }

.sum-dice{ margin:0 0 16px; font-size:15px; line-height:1.45; color:var(--cmp-ink); max-width:62ch; }
.sum-dice b{ font-weight:700; }
.sum-money--col{ flex-direction:column; align-items:flex-end; gap:8px; }
.sum-paid{ margin:0; font-size:13px; font-weight:600; color:var(--cmp-green); text-align:right; }

.cmp-sec-h{
    margin:8px 4px 2px; font-family:var(--ff-body); font-size:13px; font-weight:700;
    letter-spacing:0; text-transform:none; color:var(--cmp-soft);
}
.cmp-sec-h:first-child{ margin-top:2px; }
.cmp-paid{ font-size:13px; font-weight:600; color:var(--cmp-green); white-space:nowrap; }
.cmp-credit{ font-size:13px; color:var(--cmp-soft); white-space:nowrap; }

.cmp-prev{ background:var(--cmp-paper); border:1px solid var(--cmp-line); border-radius:10px; overflow:hidden; }
.cmp-prev-row{
    display:grid; grid-template-columns:110px 96px 1fr auto; gap:12px; align-items:center;
    padding:10px 16px; border-top:1px solid var(--cmp-hair);
    font-size:13.5px; color:var(--cmp-soft); text-decoration:none; font-variant-numeric:tabular-nums;
}
.cmp-prev-row:first-child{ border-top:0; }
.cmp-prev-row:hover, .cmp-prev-row:focus-visible{ background:var(--cmp-shell); color:var(--cmp-ink); text-decoration:none; }
.cmp-prev-num{ color:var(--cmp-blue); font-weight:600; }
.cmp-prev-total{ font-weight:600; color:var(--cmp-ink); text-align:right; }

@media (max-width:640px){
    .cmp-prev-row{ grid-template-columns:1fr auto; gap:2px 12px; }
    .cmp-prev-fecha{ grid-column:1; grid-row:1; }
    .cmp-prev-total{ grid-column:2; grid-row:1 / span 2; }
    .cmp-prev-num{ grid-column:1; grid-row:2; }
    .cmp-prev-estado{ grid-column:1 / -1; grid-row:3; }
    .cmp-prev-estado:empty{ display:none; }
    .sum-money--col{ align-items:flex-start; }
    .sum-paid{ text-align:left; }
    /* La tabla de items no cabia con sus cabeceras sin cortar y ensanchaba toda la ficha:
       en un telefono de 390 quedaba en 414 y la pagina se movia hacia el lado. */
    .ua-layout, .ua-main{ min-width:0; max-width:100%; }
    .fic .ua-table thead th{ white-space:normal; }
    .fic .ua-table thead th,
    .fic .ua-table tbody td,
    .fic .ua-table tfoot td{ padding:8px; font-size:12.5px; }
    .fic{ overflow-x:auto; }
}

.upd-correo{ margin:12px 0 20px; font-size:15px; line-height:1.5; color:var(--cmp-ink); }
.upd-correo b{ font-weight:700; overflow-wrap:anywhere; }

/* ---- Home de tienda a nota 9 (06-11-2026): letra mínima 13 px, precio con IVA explícito ---- */
.sc-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.sc-iva { font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: #6b7280; white-space: nowrap; }
.sc-fav-title { font-size: 14px; }
.sc-section-link { font-size: 13px; }
.sc-fav-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sc-fav-name { font-size: 13px; }
.sc-fav-meta, .sc-fav-before { font-size: 13px; }
.sc-fav-meta { color: #555; }
.sc-fav-price { font-size: 15px; }
.sc-fav-badge { font-size: 11px; }
.sc-ql-sub { font-size: 13px; color: #666; }
.sf-rec-reason, .sf-rec-price-before { font-size: 13px; }
@media (max-width: 640px) {
  .sc-fav-card { width: 180px; }
}

/* ---- Home de tienda reordenado (06-11-2026): anchos, información en texto, franja final única ---- */
.sc-anchos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1352px; margin: 24px auto 0; padding: 0 24px; box-sizing: content-box; }
.sc-ancho { display: block; border-radius: 10px; overflow: hidden; }
.sc-ancho img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 600; object-fit: cover; transition: opacity .15s; }
.sc-ancho:hover img { opacity: .92; }
.sc-ancho picture { display: block; }
.sc-ancho:focus-visible { outline: 3px solid #c7201b; outline-offset: 2px; }
/* Pago en línea, garantías y transferencia (06-11-2026). Mercado Pago es la protagonista. */
.sc-info { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; max-width: 1352px; margin: 24px auto 0; padding: 0 24px; box-sizing: content-box; align-items: stretch; }
.sc-pay { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 26px 28px; background: #d71920; color: #fff; border-radius: 12px; }
.sc-pay--img { grid-template-columns: 1fr 200px; align-items: center; }
.sc-pay-title { margin: 0 0 8px; font-size: 26px; line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.sc-pay p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #ffe9ea; max-width: 56ch; }
.sc-pay-list { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-pay-list li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 14px; font-weight: 600; color: #fff; }
.sc-pay-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #fff; color: #b4141a; font-size: 15px; font-weight: 700; text-decoration: none; }
.sc-pay-btn:hover, .sc-pay-btn:focus-visible { background: #1d2126; color: #fff; text-decoration: none; }
.sc-pay-btn:focus-visible, .sc-copy:focus-visible { outline: 3px solid #1d2126; outline-offset: 2px; }
.sc-pay-img { width: 100%; border-radius: 10px; object-fit: cover; }
.sc-info-card { padding: 20px 22px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: #2f343b; }
.sc-info-card--gar { background: #eef5f0; border: 1px solid #d3e6d9; }
.sc-info-card--tra { background: #eef2f8; border: 1px solid #d5deeb; }
.sc-info-card p { margin: 0 0 8px; }
.sc-info-ico { width: 28px; height: 28px; margin-bottom: 8px; }
.sc-info-card--gar .sc-info-ico { color: #2f7d4f; }
.sc-info-card--tra .sc-info-ico { color: #2f5d9e; }
.sc-info-title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #1d2126; }
.sc-info-card a { font-size: 14px; font-weight: 600; color: #b4141a; }
.sc-copy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; margin: 0 0 6px !important; background: #fff; border-radius: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-copy { flex-shrink: 0; padding: 3px 10px; border: 1px solid #c7cfdb; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #2f5d9e; cursor: pointer; }
.sc-copy:hover { background: #2f5d9e; border-color: #2f5d9e; color: #fff; }
.sc-fav--offers { margin-top: 24px; }
/* «Tus ofertas»: una sola fila (5 en escritorio, 3 en tableta; en celular sigue el carrusel). */
@media (min-width: 641px) {
  .sc-fav--offers .sc-fav-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 992px) {
  .sc-fav--offers .sc-fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-fav--offers .sc-fav-card:nth-child(n+4) { display: none; }
}
.sc-quicklinks { margin-top: 8px; }
.fbk-band--duo { background: #f4f4f5; margin-top: 40px; }
.fbk-band--duo .fbk-question { font-family: var(--ff-body); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.fbk-sram { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; padding-left: 24px; border-left: 1px solid #d4d4d8; font-size: 14px; font-weight: 700; color: #111; text-decoration: none; white-space: nowrap; }
.fbk-sram img { height: 16px; width: auto; }
.fbk-sram:hover { color: #b4141a; text-decoration: none; }
@media (max-width: 767.98px) {
  .sc-anchos { grid-template-columns: 1fr; gap: 10px; padding: 0 16px; margin-top: 16px; }
  .sc-ancho img { aspect-ratio: auto; }
  .sc-info { grid-template-columns: 1fr; gap: 10px; padding: 0 16px; margin-top: 16px; }
  .sc-pay { grid-template-columns: 1fr; padding: 22px 20px; }
  .sc-pay-img { display: none; }
  .sc-pay-title { font-size: 22px; }
  .fbk-sram { padding-left: 0; border-left: 0; }
}

/* Cupón integrado (06-11-2026): nombre y condiciones en una línea en escritorio */
.mkr-coupon-float__name { font-size: 14px; margin: 4px 0 2px; }
.mkr-coupon-float__meta { font-size: 13px; color: #6b6b6b; }
.mkr-coupon-float__badge { font-size: 13px; }

/* Logos de pago sobre chapa blanca para que contrasten con el rojo (06-11-2026) */
.sc-pay-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 6px 12px; margin-bottom: 12px; }
.sc-pay-logo img { display: block; height: 30px; width: auto; }
.sc-pay-logo--sm { padding: 3px 8px; margin: 0 0 0 6px; border-radius: 6px; vertical-align: middle; }
.sc-pay-logo--sm img { height: 16px; }
.sc-pay-khipu { display: flex; align-items: center; flex-wrap: wrap; }
@media (max-width: 767px) { .sc-pay-logo img { height: 26px; } .sc-pay-logo--sm img { height: 14px; } }

/* ---- Barra de accesos y «Ofertas del mes» (06-11-2026) ----
   Una línea bajo el slider en vez de tarjetas altas; las calugas pasan a piezas 1320x600 en 2x2. */
.sc-bar { display: flex; align-items: stretch; height: 56px; background: #fff; border: 1px solid #e4e4e7; border-radius: 10px; overflow: hidden; }
.sc-bar-item { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-size: 15px; font-weight: 700; color: #1d2126; white-space: nowrap; text-decoration: none; border-left: 1px solid #ececef; transition: background .15s, color .15s; }
.sc-bar-item:first-child { border-left: 0; }
.sc-bar-item svg { width: 20px; height: 20px; flex-shrink: 0; color: #d71920; }
.sc-bar-item:hover, .sc-bar-item:focus-visible { background: #f6f6f7; color: #b4141a; text-decoration: none; }
.sc-bar-item:focus-visible { outline: 3px solid #c7201b; outline-offset: -3px; }
.sc-bar-count { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: #1d2126; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }
.sc-bar-note { font-size: 13px; font-weight: 600; color: #1a7a36; }
.sc-bar-item--blanco svg { color: #9a7f4d; }
.sc-bar-item--blanco .sc-bar-count { background: #9a7f4d; }
.sc-bar-item--verde svg { color: #1a9940; }
.sc-bar-item--verde .sc-bar-count { background: #1a9940; }
.sc-ofertas { max-width: 1352px; margin: 24px auto 0; padding: 0 24px; box-sizing: content-box; }
.sc-ofertas-title { margin: 0 0 12px; font-size: 22px; line-height: 1.2; font-weight: 800; color: #1d2126; letter-spacing: -.01em; }
.sc-ofertas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sc-oferta { display: block; border-radius: 10px; overflow: hidden; }
.sc-oferta picture { display: block; }
.sc-oferta img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .15s; }
.sc-oferta:hover img { opacity: .92; }
/* Mosaico doble (caluga_9 y caluga_10): ocupa dos columnas con la misma altura que los verticales. */
.sc-oferta--doble { grid-column: span 2; }
.sc-oferta--doble img { aspect-ratio: 1752 / 1080; }
.sc-oferta:focus-visible { outline: 3px solid #c7201b; outline-offset: 2px; }
@media (max-width: 991.98px) {
  .sc-bar-item { padding: 0 12px; font-size: 14px; }
  .sc-bar-note { display: none; }
}
@media (max-width: 767.98px) {
  /* Celular: la barra se desliza de lado, con el texto entero; nunca se corta. */
  .sc-bar { height: 48px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sc-bar::-webkit-scrollbar { display: none; }
  /* Sin pista, «Mis pedidos» calzaba justo en el borde y Venta en blanco/verde no se adivinaban. */
  .sc-bar { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
  .sc-bar::after { content: ''; flex: 0 0 40px; }
  .sc-bar-item { flex: 0 0 auto; scroll-snap-align: start; padding: 0 14px; }
  .sc-bar-note { display: inline; }
  .sc-ofertas { padding: 0 16px; margin-top: 20px; }
  .sc-ofertas-title { font-size: 19px; margin-bottom: 10px; }
  .sc-ofertas-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* -------------------------------------------------------
   Cabecera de listados (categoría, marca, campaña…) con fondo (06-11-2026). Genérica: foto de
   taller; campaña con pieza: la imagen de esa pieza desenfocada (--fondo). Texto en blanco.
   ------------------------------------------------------- */
.sf-cat-head { position: relative; overflow: hidden; background: #1d1f22; border-bottom: 0; padding: 46px 0; }
.sf-cat-head::after { content: ''; position: absolute; inset: -24px; background: var(--fondo, url('/_store/img/cabecera-taller.jpg')) center 45% / cover no-repeat; filter: blur(2px); z-index: 0; }
.sf-cat-head--pieza::after { filter: blur(9px) saturate(1.15); }
.sf-cat-head::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,15,17,.88) 0%, rgba(14,15,17,.62) 45%, rgba(14,15,17,.28) 100%); }
.sf-cat-head-inner { position: relative; z-index: 2; }
.sf-cat-head .sf-cat-head-title { color: #fff; }
.sf-cat-head .sf-cat-head-sub { color: rgba(255,255,255,.86); font-size: 17px; }
.sf-cat-head .sf-cat-head-parent { color: rgba(255,255,255,.6); }
@media (max-width: 767.98px) { .sf-cat-head { padding: 30px 0; } .sf-cat-head .sf-cat-head-sub { font-size: 15px; } }
.cp-otras { max-width: 1352px; margin: 40px auto 48px; padding: 0 24px; box-sizing: content-box; }
.cp-otras-title { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: #1d2126; }
.cp-otras-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cp-otra { display: block; border-radius: 10px; overflow: hidden; }
.cp-otra img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .15s; }
.cp-otra:hover img { opacity: .92; }
.cp-otra:focus-visible { outline: 3px solid #c7201b; outline-offset: 2px; }
@media (max-width: 767.98px) {
  .cp-otras { padding: 0 16px; }
  .cp-otras-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* -------------------------------------------------------
   Header sticky en toda la página (06-11-2026). main.min.css trae html,body{height:100%}: el
   bloque contenedor del header medía una pantalla, así que al bajar ~1 pantalla el header se iba
   y la barra de filtros (sticky bajo header + menú) quedaba con un hueco vacío encima.
   ------------------------------------------------------- */
html, body { height: auto; min-height: 100%; }

/* ============================================================
   Aviso de facturas vencidas (gracias y Mi Cuenta). Solo informa:
   el pedido entró. Ámbar = el mismo tono del pedido en espera.
   ============================================================ */
.od-notice {
    text-align: left;
    background: #fff;
    border: 1px solid #f3d9a4;
    border-top: 4px solid #d97706;
    border-radius: 4px;
    padding: 18px 20px 16px;
    margin: 0 0 24px;
    font-family: var(--ff-body);
    color: #333;
}
.od-notice--account { margin: 0 0 20px; }
.od-notice__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.od-notice__title {
    font-family: var(--ff-display);
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.3px;
    color: #111;
    margin: 0;
    font-weight: 400;
}
.od-notice__total {
    font-size: 18px;
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.od-notice__lead {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    margin: 6px 0 12px;
}
.od-notice__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1ece2;
}
.od-notice__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f1ece2;
    font-size: 13px;
}
.od-notice__doc { color: #111; font-weight: 600; text-decoration: none; white-space: nowrap; }
.od-notice__doc:hover, .od-notice__doc:focus-visible { color: #b45309; text-decoration: underline; }
.od-notice__due { color: #b45309; }
.od-notice__amt { font-weight: 600; color: #111; font-variant-numeric: tabular-nums; text-align: right; min-width: 84px; }
.od-notice__row--more { display: block; color: var(--st-muted); }
.od-notice__foot {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.od-notice__btn {
    display: inline-block;
    background: #111;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 3px;
    text-decoration: none !important;
}
.od-notice__btn:hover { background: #333; }
.od-notice__btn:focus-visible, .od-notice a:focus-visible { outline: 2px solid #d97706; outline-offset: 2px; }
.od-notice__contact { flex: 1; min-width: 200px; margin: 0; font-size: 13px; line-height: 1.5; color: #555; }
.od-notice__contact a { color: #b45309; font-weight: 600; text-decoration: underline; }
@media (max-width: 575px) {
    .od-notice { padding: 16px 14px 14px; }
    .od-notice__title { font-size: 22px; }
    .od-notice__row { grid-template-columns: 1fr auto; gap: 2px 12px; }
    .od-notice__due { grid-column: 1; grid-row: 2; font-size: 12px; }
    .od-notice__amt { grid-row: 1 / span 2; align-self: center; }
}

/* ============================================================
   VENTA EN VERDE POR CARPETA (10-11-2026)
   Portada (vvp-*): una parada por embarque en orden de llegada, con su pieza (mosaico del home o
   una armada con sus fotos), qué trae y 4 productos. Carpeta elegida (vv-hero): su cabecera.
   ============================================================ */
.vv-media-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vv-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vv-kind { font-size: 12.5px; background: #eef5f0; color: #1e4d30; border-radius: 20px; padding: 3px 9px; }
.vv-kind b { font-weight: 700; }

/* Pieza armada para la carpeta sin mosaico: mismo estilo «bloque de color» que los mosaicos. */
.vv-tile { height: 100%; display: flex; flex-direction: column; }
.vv-tile-top { flex: 0 0 46%; background: #266c45; color: #fff; padding: 8% 8% 0; display: flex; flex-direction: column; gap: 8px; }
.vv-tile-top strong { font-size: 22px; line-height: 1.1; font-weight: 800; }
.vv-tile-top span:not(.vv-pill) { font-size: 14px; }
.vv-pill { align-self: flex-start; background: #fff; color: #266c45; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
/* Pieza armada dentro de la cabecera de la carpeta (120 px): el título de al lado ya dice «Venta en verde». */
.vvc-media .vv-pill { display: none; }
.vvc-media .vv-tile-top { padding: 10px 10px 0; gap: 4px; }
.vvc-media .vv-tile-top strong { font-size: 16px; }
.vvc-media .vv-tile-top span:not(.vv-pill) { font-size: 11px; }
.vv-tile-bot { flex: 1; background: #dbe8e1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6%; }
.vv-tile-bot img { width: 33%; mix-blend-mode: multiply; object-fit: contain; }
.vv-otras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #475569; margin: 0 0 16px; }
.vv-otras a { border: 1px solid #c9dccf; border-radius: 20px; padding: 4px 12px; color: #1e4d30; text-decoration: none; }
.vv-otras a:hover { border-color: #1a9940; background: #eef5f0; }

@media (max-width: 640px) {
  .vv-tile-top strong { font-size: 17px; }
}

/* Portada de venta en verde */
.vvp-hero { background: #266c45; color: #fff; }
.vvp-hero-inner { max-width: 1400px; margin: 0 auto; padding: 34px 24px 30px; display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; }
.vvp-title { font-family: var(--ff-display); font-size: 52px; line-height: 1; margin: 12px 0 8px; color: #fff; letter-spacing: .01em; }
.vvp-lead { font-size: 17px; margin: 0; color: #e3efe8; max-width: 640px; }
.vvp-steps { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; justify-content: flex-end; }
.vvp-steps div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px 14px; display: flex; flex-direction: column; }
.vvp-steps span { font-size: 12px; color: #bfe0cb; }
.vvp-steps b { font-size: 16px; }
.vvp-steps a { flex-basis: 100%; text-align: right; font-size: 13px; color: #d7eadf; }
.vvp-wrap { max-width: 1400px; margin: 0 auto; padding: 28px 24px 64px; }
.vvp-line { list-style: none; margin: 0; padding: 0; position: relative; }
.vvp-line::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 2px; background: #c9dccf; }
.vvp-stop { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin-bottom: 28px; position: relative; }
.vvp-date { position: relative; z-index: 1; align-self: start; background: #fff; border: 2px solid #1a9940; border-radius: 10px; text-align: center; padding: 8px 4px; color: #0d2e18; }
.vvp-date span { display: block; font-size: 12px; color: #3a7a50; }
.vvp-date b { display: block; font-family: var(--ff-display); font-size: 30px; line-height: 1; }
.vvp-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; background: #fff; border: 1px solid #d7e4dc; border-radius: 12px; padding: 16px; }
.vvp-media { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #dbe8e1; align-self: start; }
.vvp-name { font-size: 24px; font-weight: 800; margin: 2px 0 2px; line-height: 1.1; }
.vvp-name a { color: #0d2e18; text-decoration: none; }
.vvp-name a:hover { color: #1a9940; }
.vvp-meta { font-size: 15px; color: #3a7a50; margin: 0; }
.vvp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.vvp-cta { display: inline-block; margin-top: 14px; background: #1a9940; color: #fff; font-weight: 700; border-radius: 6px; padding: 10px 18px; text-decoration: none; }
.vvp-cta:hover, .vvp-cta:focus-visible { background: #157a32; color: #fff; text-decoration: none; }
.vvp-cta:focus-visible, .vvp-name a:focus-visible { outline: 2px solid #1a9940; outline-offset: 2px; }
.vvp-cta--marca { margin-left: 8px; background: #121212; }
.vvp-cta--marca:hover, .vvp-cta--marca:focus-visible { background: #e1122f; }
.vvp-todo { text-align: center; font-size: 15px; color: #475569; margin: 8px 0 0; }
.vvp-todo a { color: #1a9940; font-weight: 700; }

@media (max-width: 1100px) {
  .vvp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vvp-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 16px; }
  .vvp-title { font-size: 40px; }
  .vvp-steps { justify-content: flex-start; }
  .vvp-steps a { text-align: left; }
  .vvp-wrap { padding: 20px 16px 48px; }
  .vvp-line::before { display: none; }
  .vvp-stop { grid-template-columns: 1fr; gap: 8px; }
  .vvp-date { justify-self: start; display: flex; gap: 8px; align-items: baseline; padding: 4px 12px; }
  .vvp-date b { font-size: 24px; }
  .vvp-card { grid-template-columns: 1fr; padding: 12px; }
  .vvp-media { max-width: 150px; }
}

/* Ver todo (?todo=1): todo lo que viene, agrupado por embarque en orden de llegada */
.vv-grupo { margin: 0 0 28px; scroll-margin-top: 90px; }
.vv-grupo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-bottom: 2px solid #1a9940; padding: 0 0 8px; margin: 0 0 14px; }
.vv-grupo-head h3 { font-size: 20px; font-weight: 800; color: #0d2e18; margin: 0; }
.vv-grupo-date { background: #1a9940; color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 13px; }
.vv-grupo-date b { font-size: 15px; }
.vv-grupo-n { font-size: 14px; color: #3a7a50; }
.vv-grupo-head a { margin-left: auto; font-size: 14px; color: #1a9940; font-weight: 700; }
.vvp-all { display: inline-block; margin-top: 14px; background: #fff; color: #1d5c39; font-weight: 700; border-radius: 6px; padding: 10px 18px; text-decoration: none; }
.vvp-all:hover, .vvp-all:focus-visible { background: #e3efe8; color: #0d2e18; text-decoration: none; }
.vvp-all:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Cabecera de carpeta y de «ver todo» (reemplaza a «Productos en tránsito para reserva»): mosaico
   nítido a la izquierda y desenfocado de fondo, como las cabeceras de campaña. */
.vvc-hero { position: relative; overflow: hidden; background: #266c45; color: #fff; }
.vvc-hero--foto::before { content: ""; position: absolute; inset: -40px; background: var(--vvc-bg) center / cover no-repeat; filter: blur(28px) saturate(1.1); transform: scale(1.1); }
.vvc-hero--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,46,24,.92) 0%, rgba(13,46,24,.82) 55%, rgba(13,46,24,.7) 100%); }
.vvc-inner { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 18px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.vvc-inner--sola { grid-template-columns: 1fr auto; }
.vvc-media { width: 120px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.35); background: #dbe8e1; }
.vvc-text { min-width: 0; }
.vvc-back { display: table; font-size: 13px; color: #cfe8d8; margin-bottom: 6px; }
.vvc-back:hover { color: #fff; }
.vvc-title { font-family: var(--ff-display); font-size: 42px; line-height: 1; margin: 8px 0 6px; color: #fff; letter-spacing: .01em; }
.vvc-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 17px; color: #e3efe8; margin: 0; }
.vvc-facts b { color: #fff; }
.vvc-hero .vv-kinds { margin-top: 8px; }
.vvc-hero .vv-kind { background: rgba(255,255,255,.14); color: #fff; }
.vvc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vvc-jump a { border: 1px solid rgba(255,255,255,.4); border-radius: 20px; padding: 4px 12px; color: #fff; font-size: 14px; text-decoration: none; }
.vvc-jump a:hover { background: rgba(255,255,255,.15); }
.vvc-steps { max-width: 330px; }
.vvc-steps p { flex-basis: 100%; font-size: 13px; color: #cfe8d8; margin: 4px 0 0; text-align: right; }
.vvc-steps p a { color: #fff; }
@media (max-width: 1000px) {
  .vvc-inner { grid-template-columns: auto 1fr; }
  .vvc-steps { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }
  .vvc-steps p { text-align: left; }
}
@media (max-width: 640px) {
  .vvc-inner { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
  .vvc-media { width: 96px; }
  .vvc-inner { grid-template-columns: auto 1fr; }
  .vvc-text, .vvc-steps { grid-column: 1 / -1; }
  .vvc-title { font-size: 34px; }
}

/* «También en camino» en la misma fila que «Por página / Ordenar» */
.sf-toolbar-left .vv-otras { margin: 0; }
body.store-transit .sf-toolbar { flex-wrap: wrap; }

/* Número de carpeta como referencia (el que el cliente ve en «Mis pedidos»: «Embarque 6045»).
   Discreto: el nombre para el cliente sigue siendo la marca. */
.vv-ref { font-size: 13px; color: #64748b; margin-left: 10px; }
.vvc-hero .vv-ref { color: #bcd6c6; margin-left: 0; font-size: 14px; }
.vv-grupo-head .vv-ref { margin-left: 0; }
