:root { --brand: #1f2937; --accent: #dc3545; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #222; }
a { color: var(--brand); }
.site-header .navbar-brand { letter-spacing: .02em; }

/* Sliders */
.flexslider { border: 0; margin: 0; box-shadow: none; border-radius: 0; background: transparent; }
.home-slider img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.product-gallery .slides img { aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
.product-gallery .flex-control-thumbs { margin-top: .5rem; display: flex; gap: .5rem; position: static; }
.product-gallery .flex-control-thumbs li { width: 72px; float: none; }
.product-gallery .flex-control-thumbs img { border-radius: .35rem; opacity: .6; }
.product-gallery .flex-control-thumbs .flex-active { opacity: 1; outline: 2px solid var(--brand); }

/* Tarjetas */
.product-card img { transition: transform .3s; }
.product-card:hover img { transform: scale(1.04); }

/* Countdown */
.js-countdown { display: flex; gap: .35rem; }
.cd-box, .dscountdown .ds-element { display: inline-flex; flex-direction: column; align-items: center; min-width: 46px;
  background: var(--brand); color: #fff; border-radius: .35rem; padding: .25rem .35rem; line-height: 1.1; }
.cd-box b { font-size: 1.05rem; } .cd-box small { font-size: .65rem; opacity: .8; }
.product-card .cd-box { min-width: 34px; } .product-card .cd-box b { font-size: .8rem; }

/* Estado del pedido */
.order-steps li { position: relative; color: #9ca3af; }
.order-steps li .dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #e5e7eb; }
.order-steps li.done { color: var(--brand); } .order-steps li.done .dot { background: #198754; }
.order-steps li:not(:last-child)::after { content: ""; position: absolute; top: 7px; left: 60%; width: 80%; height: 2px; background: #e5e7eb; }
.order-steps li.done:not(:last-child)::after { background: #198754; }

/* Landing */
.landing-hero { min-height: 100vh; background: #111 center/cover no-repeat; }

/* ScrollUp */
#scrollUp { bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex !important; align-items: center; justify-content: center; }

@media (max-width: 575px) { .cart-row { flex-wrap: wrap; } }

/* Botón flotante de WhatsApp (queda a la izquierda para no tapar el "volver arriba") */
.whatsapp-float { position: fixed; left: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 1030; text-decoration: none; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* =========================================================
   Encabezado (barra superior + menú) — colores editables acá
   ========================================================= */
:root {
  --hdr-top: #2b2b2d;      /* barra superior */
  --hdr-nav: #8d8e92;      /* barra de menú */
  --hdr-nav-active: rgba(255,255,255,.18);
  --hdr-announce: #1c1c1e; /* aviso */
  --accent: #d64b5a;       /* código de producto, detalles */
  --price-note-bg: #eef0f4;
}
.site-header { position: relative; z-index: 1030; }
.hdr-top { background: var(--hdr-top); color: #fff; }
.hdr-top__inner { display: flex; align-items: center; gap: 18px; min-height: 104px; }
.hdr-logo { color: #fff; text-decoration: none; font-size: 1.7rem; font-weight: 300; letter-spacing: .02em; white-space: nowrap; }
.hdr-logo:hover { color: #fff; opacity: .9; }

.hdr-search { flex: 1 1 auto; min-width: 372px; display: flex; align-items: stretch; background: #fff; border-radius: 12px; overflow: hidden; max-width: 480px; height: 48px; }
.hdr-search__input { flex: 1 1 140px; min-width: 120px; border: 0; padding: 0 16px; font-size: .95rem; outline: none; }
.hdr-search__cat { border: 0; border-left: 1px solid #e3e3e6; padding: 0 30px 0 14px; font-weight: 600; font-size: .9rem; background-color: #fff;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23555' d='M8 11 3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; flex: 0 1 190px; max-width: 190px; min-width: 0; text-overflow: ellipsis; cursor: pointer; outline: none; }
.hdr-search__btn { border: 0; background: #fff; padding: 0 18px; font-size: 1.1rem; color: #222; }
.hdr-search__btn:hover { background: #f2f2f4; }
.hdr-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

.hdr-catalog { align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 14px; color: #fff; text-decoration: none; }
.hdr-catalog:hover { background: rgba(255,255,255,.14); color: #fff; }
.hdr-catalog__icon { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.2rem; }
.hdr-catalog__text { display: flex; flex-direction: column; line-height: 1.15; }
.hdr-catalog__text small { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; opacity: .75; }
.hdr-catalog__go { font-size: 1.4rem; margin-left: 10px; }

.hdr-contact { align-items: center; gap: 10px; line-height: 1.15; white-space: nowrap; flex-shrink: 0; }
.hdr-contact__icon { font-size: 1.9rem; opacity: .9; }
.hdr-contact small { display: block; text-transform: uppercase; font-weight: 700; font-size: .72rem; letter-spacing: .04em; }
.hdr-contact a, .hdr-contact span { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }

.hdr-actions { display: flex; gap: 6px; margin-left: auto; }
.hdr-icon { background: none; border: 0; color: #fff; font-size: 1.5rem; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 8px; text-decoration: none; }
.hdr-icon:hover { color: #fff; background: rgba(255,255,255,.1); }
.hdr-cart-count { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.hdr-nav { background: var(--hdr-nav); }
.hdr-nav__body { display: flex; align-items: center; justify-content: center; gap: 16px; }
.hdr-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; justify-content: center; }
.hdr-menu__item { position: relative; }
.hdr-menu__link { display: block; padding: 16px 10px; color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: .82rem; letter-spacing: .01em; border-radius: 4px; white-space: nowrap; }
.hdr-menu__link:hover, .hdr-menu__link:focus-visible { color: #fff; background: var(--hdr-nav-active); }
.hdr-menu__link.is-active { background: var(--hdr-nav-active); box-shadow: inset 0 -3px 0 #fff; }
.hdr-menu__sep { width: 1px; height: 22px; background: rgba(255,255,255,.45); margin: 0 8px; }
.hdr-social { display: flex; gap: 6px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.45); }
.hdr-social a { color: #fff; font-size: 1.05rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; }
.hdr-social a:hover { background: var(--hdr-nav-active); }

/* Desplegable de categorías bajo "Productos" (escritorio) */
.hdr-mega { position: absolute; left: 50%; top: 100%; transform: translateX(-30%); min-width: 640px; max-width: 900px; background: #fff;
  border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 20px 24px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 1060; }
.has-mega:hover .hdr-mega, .has-mega:focus-within .hdr-mega { opacity: 1; visibility: visible; }
.hdr-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 24px; }
.hdr-mega__root { display: block; font-weight: 700; color: #222; text-decoration: none; margin-bottom: 6px; }
.hdr-mega__child { display: block; color: #555; text-decoration: none; font-size: .9rem; padding: 2px 0; }
.hdr-mega__root:hover, .hdr-mega__child:hover { color: var(--accent); }
.hdr-mega__all { display: inline-block; margin-top: 16px; font-weight: 600; color: #222; }

.hdr-announce { background: var(--hdr-announce); color: #fff; font-weight: 600; font-size: .95rem; padding: 12px 0; text-align: center; }
.hdr-announce__close { background: none; border: 0; color: #fff; opacity: .7; margin-left: auto; }
.hdr-announce__close:hover { opacity: 1; }

/* Escritorio mediano: el menú entra en una sola línea achicando un poco; redes y WhatsApp solo en pantallas grandes */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hdr-menu__link { padding: 14px 7px; font-size: .74rem; }
  .hdr-menu__sep { margin: 0 4px; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .hdr-nav .hdr-social { display: none; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .hdr-contact { display: none !important; }
}

@media (max-width: 991.98px) {
  .hdr-top__inner { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding: 10px 0 12px; }
  .hdr-logo { font-size: 1.3rem; }
  .hdr-search { order: 10; flex-basis: 100%; max-width: none; min-width: 0; height: 44px; }
  .whatsapp-float { width: 46px; height: 46px; font-size: 1.4rem; left: 14px; bottom: 14px; }
  .hdr-nav { background: transparent; }
  .hdr-nav__panel { background: var(--hdr-top); color: #fff; }
  .hdr-nav__panel .btn-close { filter: invert(1); }
  .hdr-nav__body { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .hdr-menu { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .hdr-menu__link { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hdr-menu__link.is-active { box-shadow: inset 3px 0 0 #fff; }
  .hdr-menu__sep { display: none; }
  .hdr-social { border-left: 0; padding: 16px 0 0; justify-content: center; }
}

/* =========================================================
   Catálogo: barra lateral + barra de herramientas + tarjetas
   ========================================================= */
.catalog-sidebar__title { font-size: 1.15rem; font-weight: 700; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid #e5e6ea; }
.cat-tree, .cat-tree--sub { list-style: none; margin: 0; padding: 0; }
.cat-tree--sub { padding-left: 14px; border-left: 2px solid #eef0f3; margin: 2px 0 6px 10px; }
.cat-tree__row { display: flex; align-items: center; }
.cat-tree__link, .cat-tree__all { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px;
  color: #333; text-decoration: none; font-size: .95rem; min-width: 0; }
.cat-tree__all { margin-bottom: 4px; font-weight: 600; justify-content: flex-start; }
.cat-tree__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tree__count { font-size: .75rem; color: #8a8b90; background: #f2f3f5; border-radius: 10px; padding: 1px 8px; flex-shrink: 0; }
.cat-tree__link:hover, .cat-tree__all:hover { background: #f4f5f7; color: #111; }
.cat-tree__item.is-active > .cat-tree__row > .cat-tree__link, .cat-tree__all.is-active { background: #1f2328; color: #fff; font-weight: 600; }
.cat-tree__item.is-active > .cat-tree__row > .cat-tree__link .cat-tree__count, .cat-tree__all.is-active .cat-tree__count { background: rgba(255,255,255,.2); color: #fff; }
.cat-tree__toggle { background: none; border: 0; width: 30px; height: 30px; border-radius: 6px; color: #666; flex-shrink: 0; }
.cat-tree__toggle:hover { background: #f4f5f7; }
.cat-tree__toggle i { display: inline-block; transition: transform .2s; transform: rotate(90deg); }
.cat-tree__toggle.collapsed i { transform: rotate(0); }

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.catalog-toolbar__crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumb-home { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #f2f3f5; border-radius: 8px; color: #333; }
.catalog-count { font-size: .78rem; font-weight: 600; background: #f2f3f5; border-radius: 12px; padding: 3px 10px; }
.catalog-toolbar__controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.catalog-toolbar__controls .form-select { min-width: 150px; }
.view-toggle .btn.active { background: #1f2328; color: #fff; border-color: #1f2328; }

.product-card { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; position: relative; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-card__media { background: #f4f4f5; display: block; }
.product-card__media img { transition: transform .4s; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card.is-out .product-card__media img { opacity: .75; }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.pc-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 20px; background: #fff; }
.pc-badge--out { color: #c0392b; }
.pc-badge--off { background: #c0392b; color: #fff; }
.pc-badge--new { background: #1f2328; color: #fff; }
.product-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a8b90; margin-bottom: 4px; }
.product-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.product-card__title a { color: #1d1d1f; text-decoration: none; }
.product-card__sku { color: var(--accent); font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; }
.product-card__price { font-size: 1.3rem; font-weight: 800; color: #1d1d1f; }
.product-card__note { font-size: .72rem; background: var(--price-note-bg); border-radius: 10px; padding: 2px 8px; color: #555; }
.product-card__add { position: relative; z-index: 2; margin-top: 10px; }   /* por encima del link que cubre la tarjeta */

/* Vista en lista */
.product-grid.is-list .product-col { width: 100%; }
.product-grid.is-list .product-card { flex-direction: row; }
.product-grid.is-list .product-card__media { width: 180px; flex-shrink: 0; }
.product-grid.is-list .product-card__add { max-width: 220px; }
@media (max-width: 575px) { .product-grid.is-list .product-card__media { width: 120px; } }

/* Páginas institucionales y contacto */
.page-content { font-size: 1.05rem; line-height: 1.7; }
.page-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 1.5rem; }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eee; }
.contact-list i { font-size: 1.4rem; width: 28px; color: #333; }
.contact-list small { display: block; text-transform: uppercase; font-size: .72rem; font-weight: 700; color: #888; letter-spacing: .05em; }
.contact-list a, .contact-list span { color: #222; font-weight: 600; text-decoration: none; }

/* Checkout: opción "Efectivo al retirar" deshabilitada hasta elegir retiro en el local */
.js-cash-option.is-disabled { opacity: .55; background: #f7f7f8; }
.js-cash-option.is-disabled .form-check-label { cursor: not-allowed; }

/* =========================================================
   Selector de opciones (aroma, color…) — ficha y tarjetas
   ========================================================= */
.vpick { --vp-label: #eceef1; --vp-sub: #1f9d55; --vp-new: #f0a33a; --vp-out: #c0392b;
  border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; background: #fff; }
.vpick__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: #f4f5f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.vpick__title { font-weight: 700; font-size: .9rem; }
.vpick__tools { display: flex; gap: 6px; }
.vpick__tool { min-width: 36px; height: 36px; border: 1px solid #d9dce1; background: #fff; border-radius: 8px; font-weight: 700; font-size: .8rem; color: #333; padding: 0 8px; }
.vpick__tool:hover { background: #eef0f3; }
.vpick__tool.is-active { background: #2b2b2d; border-color: #2b2b2d; color: #fff; }
.vpick__search { flex-basis: 100%; }

.vpick__group + .vpick__group { margin-top: 14px; }
.vpick__group-title { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }
.vpick__group-title::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.vpick__group--new { border: 1px solid #f6d9ad; background: #fffaf2; border-radius: 12px; padding: 10px 12px; }
.vpick__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vp-new); }
.vpick__count { background: #fde7c4; color: #9a5a00; border-radius: 10px; padding: 0 7px; font-size: .68rem; }

.vpick__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.vpick__label { background: var(--vp-label); border-radius: 8px; padding: 8px 12px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.vpick__name { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; color: #1d1d1f; }
.vpick__sub { color: var(--vp-sub); font-weight: 700; font-size: .8rem; }
.vpick__low { color: #b45309; font-size: .72rem; font-weight: 600; }
.vpick__row.is-selected .vpick__label { background: #e3f2ea; box-shadow: inset 3px 0 0 var(--vp-sub); }
.vpick__qty { display: flex; gap: 6px; }
.vpick__input { width: 92px; height: 40px; border: 1px solid #d9dce1; border-radius: 8px; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.vpick__input::-webkit-outer-spin-button, .vpick__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vpick__input:focus { outline: 2px solid #2b2b2d; outline-offset: 1px; }
.vpick__step { width: 40px; height: 40px; border: 1px solid #d9dce1; background: #fff; border-radius: 8px; font-size: 1.15rem; font-weight: 700; line-height: 1; }
.vpick__step:hover { background: #f1f2f4; }
.vpick__out { justify-self: start; display: inline-flex; align-items: center; gap: 5px; color: var(--vp-out); background: #fdecea;
  border: 1px solid #f5c2bd; border-radius: 20px; padding: 3px 10px; font-size: .75rem; font-weight: 700; }
.vpick__row.is-out .vpick__label { opacity: .7; }
.vpick__empty { margin: 8px 0 0; }

.vpick__footer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border-top: 1px solid #eef0f3; margin: 12px -16px -16px; padding: 12px 16px; border-radius: 0 0 14px 14px; }
.vpick__summary { font-size: .9rem; color: #444; }
.vpick__add { padding: 10px 22px; font-weight: 700; }

/* Versión compacta dentro de la tarjeta del listado */
.product-card__variants { position: absolute; left: -10px; right: -10px; top: calc(100% + 6px); z-index: 40; min-width: 250px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); }
.product-card.is-picking { overflow: visible; z-index: 30; }
.product-card.is-picking > a:first-child, .product-card.is-picking img:first-of-type { border-radius: 12px 12px 0 0; }
.js-variants-toggle.is-open { background: #fff; color: #212529; }
.vpick--compact { padding: 10px; border-radius: 12px; border: 0; margin: 0; }
.vpick--compact .vpick__group--new { padding: 8px; }
.vpick--compact .vpick__qty { width: 100%; }
.vpick--compact .vpick__scroll { max-height: 300px; overflow-y: auto; padding-right: 2px; }
.vpick--compact .vpick__toolbar { padding: 6px 8px; margin-bottom: 8px; }
.vpick--compact .vpick__title { font-size: .78rem; }
.vpick--compact .vpick__tool { min-width: 30px; height: 30px; }
.vpick--compact .vpick__row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 8px; }
.vpick--compact .vpick__label { min-height: 0; padding: 6px 8px; }
.vpick--compact .vpick__name, .vpick--compact .vpick__sub { font-size: .72rem; }
.vpick--compact .vpick__step { width: 34px; height: 34px; }
.vpick--compact .vpick__input { flex: 1; width: auto; min-width: 0; height: 34px; }
.vpick--compact .vpick__footer { position: static; box-shadow: none; margin: 8px -10px -10px; padding: 8px 10px; flex-direction: column; align-items: stretch; }
.vpick--compact .vpick__summary { font-size: .78rem; }
.vpick--compact .vpick__add { padding: 8px; font-size: .85rem; }
.js-variants-toggle .bi-chevron-down { display: inline-block; transition: transform .2s; }
.js-variants-toggle.is-open .bi-chevron-down { transform: rotate(180deg); }

@media (max-width: 575.98px) {
  .vpick__row { grid-template-columns: 1fr; }
  .vpick__input { flex: 1; width: auto; }
  .vpick__qty { width: 100%; }
}

/* Por si la hoja de FlexSlider no carga: la foto nunca invade la columna de datos */
.product-gallery img { max-width: 100%; height: auto; display: block; }

/* ---------- Carrito agrupado por producto (v9) ---------- */
.cart-head, .cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) 110px 130px 120px 40px; gap: 14px; align-items: center; }
.cart-head { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b7280;
  padding: 0 0 10px; border-bottom: 2px solid #e5e7eb; }
.cart-head span:nth-child(n+3) { text-align: right; } .cart-head span:nth-child(4) { text-align: center; }
.cart-group { border-bottom: 1px solid #e5e7eb; padding: 6px 0; }
.cart-line { padding: 10px 0; }
.cart-line__img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
span.cart-line__img { height: 1px; }
.cart-line__name a { color: inherit; font-weight: 600; text-decoration: none; }
.cart-line__name a:hover { text-decoration: underline; }
.cart-line__price, .cart-line__total { text-align: right; white-space: nowrap; }
.cart-line__price { color: #6b7280; font-size: .92rem; }
.cart-line__total { font-weight: 700; }
.cart-line__qty { display: flex; justify-content: center; }
.cart-line__lbl { display: none; }
.cart-qty { width: 118px; flex-wrap: nowrap; }
.cart-qty .form-control { font-weight: 700; padding-left: 2px; padding-right: 2px; }
.cart-units { font-weight: 700; color: #374151; }
.cart-line__del { padding: 4px; font-size: 1.1rem; }
/* Producto con opciones: la fila principal resume, las opciones van debajo con una guía a la izquierda */
.cart-line--parent .cart-line__total { font-size: 1.05rem; }
.cart-line--child { padding: 6px 0; }
.cart-line--child .cart-line__name { border-left: 3px solid #d1fae5; padding: 8px 0 8px 12px; background: linear-gradient(90deg, #f6fdf9, transparent 70%); border-radius: 0 6px 6px 0; }
.cart-line--child .cart-line__total { font-weight: 600; color: #374151; }
.cart-line--more { padding: 4px 0 10px; }
.cart-line__more { grid-column: 2 / -1; }
.cart-picker { margin-top: 10px; max-width: 520px; border: 1px solid #e5e7eb; border-radius: 12px; }
.js-variants-toggle.is-open .bi-plus-lg { display: inline-block; transform: rotate(45deg); }

@media (max-width: 767.98px) {
  .cart-head { display: none; }
  .cart-line { position: relative; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img price price" "img qty total"; gap: 4px 12px; }
  .cart-line__name { padding-right: 34px; }
  .cart-line__del { position: absolute; top: 4px; right: -4px; }
  .cart-line__img { grid-area: img; width: 64px; height: 64px; } span.cart-line__img { height: 1px; }
  .cart-line__name { grid-area: name; }
  .cart-line__price { grid-area: price; text-align: left; font-size: .85rem; }
  .cart-line__qty { grid-area: qty; justify-content: flex-start; }
  .cart-line__total { grid-area: total; }
  .cart-line__lbl { display: inline; font-size: .72rem; color: #9ca3af; margin-right: 6px; font-weight: 400; }
  .cart-line__qty .cart-line__lbl { display: none; }
  .cart-line--child { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .cart-line--child .cart-line__img { width: 12px; }
  .cart-line--child .cart-line__del { top: 10px; }
  .cart-line--child .cart-line__price { display: none; }   /* mismo precio que la fila del producto */
  .cart-line--more { grid-template-columns: 12px 1fr; grid-template-areas: "img more"; }
  .cart-line__more { grid-area: more; }
  .cart-picker { max-width: none; }
}

/* Resumen del pedido en el checkout: cantidad · producto · precio unitario · subtotal */
.order-summary { font-size: .88rem; }
.order-summary thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 700; border-bottom-width: 2px; }
.order-summary td { vertical-align: middle; }
.order-summary td:first-child { width: 44px; font-weight: 700; }
.order-summary__group td { font-weight: 700; border-bottom: 0; padding-top: 8px; }
.order-summary__option td { border-bottom-style: dashed; color: #4b5563; }
.order-summary__option td:nth-child(2) { padding-left: 16px; }
.order-summary__option td:first-child { font-weight: 600; }
.order-summary .badge { font-size: .62rem; font-weight: 600; }
/* En el carrito hay ancho: el selector usa filas horizontales como en la ficha */
@media (min-width: 768px) {
  .cart-picker .vpick--compact .vpick__row { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-picker .vpick--compact .vpick__qty { width: auto; }
  .cart-picker .vpick--compact .vpick__input { flex: 0 0 64px; width: 64px; }
  .cart-picker .vpick--compact .vpick__footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Portada: "Nuestras categorías" (v10) ---------- */
.home-cats { margin-top: 8px; }
.home-cats__title { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: #222; }
.home-cats__title::before, .home-cats__title::after { content: ""; flex: 1; height: 1px; background: #dcd7d3; }
.home-cats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-cat { --cat-bg: #e3e1e0; position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px;
  background: var(--cat-bg); box-shadow: inset 0 0 0 3px #e9e4e0, 0 1px 2px rgba(0,0,0,.06); text-decoration: none; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease; }
.home-cat__media { position: absolute; inset: 0 0 44px; display: flex; align-items: center; justify-content: center; padding: 8% 10% 2%; }
.home-cat__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;   /* el fondo blanco de la foto se funde con el gris */
  transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.home-cat__initial { font: 400 clamp(3rem, 7vw, 5rem) Georgia, serif; color: #bdb5af; }
.home-cat__label { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 16px 16px 18px 18px; background: linear-gradient(180deg, #f1ece8 0%, #c9c0b9 55%, #b3a9a2 100%);
  color: #fff; font-weight: 700; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; line-height: 1.15;
  text-shadow: 0 1px 2px rgba(60,45,35,.45); transition: background .25s ease; }
.home-cat__count { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.9);
  color: #5b524c; font-size: .72rem; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.home-cat:hover, .home-cat:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 3px #ddd5cf, 0 10px 24px rgba(60,45,35,.16); }
.home-cat:hover .home-cat__media img, .home-cat:focus-visible .home-cat__media img { transform: scale(1.06); }
.home-cat:hover .home-cat__label, .home-cat:focus-visible .home-cat__label { background: linear-gradient(180deg, #e7ded8 0%, #b2a59c 55%, #9a8d84 100%); }
.home-cat:hover .home-cat__count, .home-cat:focus-visible .home-cat__count { opacity: 1; transform: none; }
.home-cat:focus-visible { outline: 3px solid #212529; outline-offset: 3px; }
@media (max-width: 991.98px) { .home-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .home-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-cat { border-radius: 14px; }
  .home-cat__media { bottom: 36px; }
  .home-cat__label { height: 36px; font-size: .68rem; letter-spacing: .1em; border-radius: 12px 12px 14px 14px; }
  .home-cat__count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .home-cat, .home-cat__media img { transition: none; } .home-cat:hover { transform: none; } }

/* ---------- Escalas de precio por monto (v13) ---------- */
.tier-box { display: grid; gap: 10px; font-size: .9rem; }
.tier-box > div { border-radius: 10px; padding: 10px 12px; }
.tier-box__applied { background: #ecfdf3; border: 1px solid #b7ebcd; color: #14532d; }
.tier-box__applied .bi { color: #16a34a; }
.tier-box__next { background: #f8fafc; border: 1px solid #e5e7eb; }
.tier-box__next .progress { height: 8px; border-radius: 99px; }
.tier-box__cta { background: #fff7e6; border: 1px solid #f6d58a; }
.tier-box__pending { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.tier-box__teaser { background: #f8fafc; border: 1px dashed #d1d5db; color: #4b5563; }
.tier-prices { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 14px; margin: -4px 0 16px; background: #fafafa; }
.tier-prices__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.tier-prices__row + .tier-prices__row { border-top: 1px dashed #e5e7eb; }
.tier-prices__price { font-weight: 800; font-size: 1.15rem; color: #15803d; white-space: nowrap; }
.tier-prices__cond { font-size: .8rem; color: #6b7280; }
.tier-teaser { border: 1px dashed #d1d5db; border-radius: 12px; padding: 10px 14px; margin: -4px 0 16px; font-size: .88rem; color: #4b5563; }
.tier-teaser ul { margin: 4px 0 6px; padding-left: 18px; }
.product-card__tier { font-size: .78rem; color: #15803d; font-weight: 700; margin-top: 2px; }
.register-tiers { font-size: .85rem; color: #4b5563; }

/* Franja "qué precios estás viendo" (v14) */
.price-mode { font-size: .84rem; padding: 6px 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,.06); }
.price-mode a { font-weight: 700; color: inherit; }
.price-mode.is-guest { background: #f8fafc; color: #374151; }
.price-mode.is-tier { background: #ecfdf3; color: #14532d; }
.price-mode.is-tier .bi { color: #16a34a; }
.price-mode.is-pending { background: #eff6ff; color: #1e3a8a; }
.price-mode__close { border: 0; background: none; color: inherit; opacity: .6; padding: 0 4px; font-size: 1.1rem; line-height: 1; }
.price-mode__close:hover { opacity: 1; }

/* Público de la tienda: tienda solo por mayor */
.tier-box__minimum { background: #fffbeb; border: 1px solid #fde68a; }
.tier-box__minimum .progress { height: 8px; border-radius: 99px; }
.tier-teaser--b2b { border-style: solid; border-color: #b7ebcd; background: #f0fdf4; color: #14532d; margin-top: 12px; }
.product-card__list { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #15803d; }
.product-card__login { position: relative; z-index: 2; display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; font-weight: 600;
  line-height: 1.2; text-align: center; color: #14532d; background: #f0fdf4; border: 1px solid #b7ebcd; border-radius: 8px; padding: 7px 10px; text-decoration: none; }
.product-card__login:hover { background: #dcfce7; }
.price-mode.is-b2b { font-weight: 500; }
.js-checkout-btn.disabled { opacity: .45; }

/* Transferencia bancaria: datos con botón copiar */
.bank-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e5e7eb; }
.bank-row:last-of-type { border-bottom: 0; }
.bank-row__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 600; }
.bank-row__value { font-weight: 700; font-size: 1.05rem; word-break: break-all; font-variant-numeric: tabular-nums; }
@media (max-width: 575px) { .bank-row { grid-template-columns: 1fr auto; } .bank-row__label { grid-column: 1 / -1; margin-bottom: -6px; } }
/* Cuenta corriente (Mi cuenta) */
.acct-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.acct-kpi { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; background: #fff; }
.acct-kpi small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 600; }
.acct-kpi b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.acct-kpi.is-danger { border-color: #fecaca; background: #fef2f2; } .acct-kpi.is-danger b { color: #b91c1c; }
.acct-kpi.is-ok b { color: #15803d; }
.acct-table td, .acct-table th { font-variant-numeric: tabular-nums; }
.is-disabled .form-check-label { opacity: .7; }
