/* ============================================================
   GUANXE · custom.css  (tema hijo de Hummingbird)
   Carga con prioridad 1000 → sobrescribe theme.css del padre.
   FASE 1: reskin base (tokens + DM Sans + azul Guanxe sobre Bootstrap 5).
   Los componentes a medida (ficha, tarjeta, etc.) se añaden al portar
   cada plantilla. Ref. de diseño: design-mockup/guanxe.css

   BREAKPOINTS — estándar Bootstrap 5 (el del tema padre), sin valores ad-hoc:
     max-width: 575.98px (<sm) · 767.98px (<md) · 991.98px (<lg)
     min-width: 992px (lg) · 1200px (xl)
   Las queries van junto a su componente (no agrupadas al final).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

:root{
  /* Tokens de marca Guanxe */
  --gx-brand:#007299;
  --gx-brand-600:#00627f;
  --gx-brand-700:#00465c;
  --gx-brand-tint:#e6f1f5;
  --gx-ink:#1a1d21;
  --gx-muted:#6b7280;
  --gx-line:#e6e9ed;
  --gx-line-2:#eef1f4;
  --gx-cream:#f7f8fa;
  --gx-cream-2:#f1f3f5;
  --gx-sale:#c0492f;
  --gx-stock:#2f8f5b;
  --gx-star:#caa83f;
  --gx-r:6px;
  --gx-r-sm:5px;

  /* Sobrescritura de variables Bootstrap 5 que usa Hummingbird */
  --bs-primary:#007299;
  --bs-primary-rgb:0,114,153;
  --bs-link-color:#007299;
  --bs-link-color-rgb:0,114,153;
  --bs-link-hover-color:#00465c;
  --bs-body-color:#1a1d21;
  --bs-body-color-rgb:26,29,33;
  --bs-body-font-family:"DM Sans",system-ui,-apple-system,sans-serif;
  --bs-border-radius:6px;
  --bs-border-radius-sm:5px;
  --bs-border-radius-lg:8px;
}

body{ font-family:var(--bs-body-font-family); }

/* Logo Guanxe en la cabecera */
.header-bottom__logo .logo,
.header-bottom__logo img{ height:40px; width:auto; max-width:210px; }
@media(max-width:767.98px){ .header-bottom__logo .logo,.header-bottom__logo img{ height:32px; } }

/* Menú principal como barra propia bajo logo+buscador (evita que se mezcle/envuelva) */
.header-bottom__row .ps-mainmenu--desktop{ order:10; flex:0 0 100%; max-width:100%; margin-top:10px; padding-top:6px; border-top:1px solid var(--gx-line); }
/* GUANXELOCA-12: barra minimalista — solo el botón "Todas las categorías" a la izquierda.
   Los accesos inline se ocultan en desktop; todas las categorías viven en el offcanvas. */
.ps-mainmenu--desktop .ps-mainmenu__desktop{ display:flex; align-items:center; gap:16px; }
.ps-mainmenu--desktop .ps-mainmenu__tree{ display:none; }

/* Botón "Todas las categorías" (abre el offcanvas con el listado completo) */
.gx-cat-btn{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border:0; border-radius:var(--gx-r);
  background:var(--gx-brand); color:#fff; font-weight:600; font-size:14px;
  line-height:1; white-space:nowrap; cursor:pointer; transition:background .13s;
}
.gx-cat-btn:hover{ background:var(--gx-brand-600); }
.gx-cat-btn:active{ background:var(--gx-brand-700); }
.gx-cat-btn__icon{ font-size:20px; }
.gx-cat-btn__label{ display:inline-block; }

/* Botón primario en azul Guanxe (radio sobrio, sin pill) */
.btn-primary{
  --bs-btn-bg:var(--gx-brand);
  --bs-btn-border-color:var(--gx-brand);
  --bs-btn-hover-bg:var(--gx-brand-600);
  --bs-btn-hover-border-color:var(--gx-brand-600);
  --bs-btn-active-bg:var(--gx-brand-700);
  --bs-btn-active-border-color:var(--gx-brand-700);
  --bs-btn-border-radius:var(--gx-r-sm);
  font-weight:700;
  letter-spacing:.01em;
}
.btn-outline-primary{
  --bs-btn-color:var(--gx-brand);
  --bs-btn-border-color:var(--gx-brand);
  --bs-btn-hover-bg:var(--gx-brand);
  --bs-btn-hover-border-color:var(--gx-brand);
  --bs-btn-active-bg:var(--gx-brand-700);
}

/* ============================================================
   FICHA DE PRODUCTO  (scoped a .page-product, sobre markup Hummingbird)
   ============================================================ */
.page-product .product__container{
  display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:start; margin-top:8px;
}

/* ---- Galería ---- */
.page-product .product__left{ position:sticky; top:96px; }
@media(max-width:991.98px){
  .page-product .product__container{ grid-template-columns:1fr; gap:28px; }
  .page-product .product__left{ position:static; }
}
.page-product .product__images{
  border:1px solid var(--gx-line); border-radius:8px; overflow:hidden;
  background:radial-gradient(120% 95% at 28% 16%, #eef4f7 0%, #f6f9fb 48%, #fff 100%);
}
.page-product .product__carousel{ position:relative; }
.page-product .product__images .carousel-item img{ aspect-ratio:1/1; object-fit:contain; padding:18px; }
.page-product .product__thumbnails{ margin-top:14px; }
.page-product .product__thumbnails-list{ display:flex; gap:12px; flex-wrap:wrap; padding:0; margin:0; list-style:none; }
.page-product .product__thumbnail{
  width:84px; height:84px; border:1px solid var(--gx-line); border-radius:6px; overflow:hidden;
  background:var(--gx-cream); padding:6px; transition:border-color .15s; cursor:pointer;
}
.page-product .product__thumbnail:hover{ border-color:#c3beb2; }
.page-product .product__thumbnail.active{ border-color:var(--gx-brand); border-width:1.5px; }
.page-product .product__thumbnail-image{ object-fit:contain; width:100%; height:100%; }
.page-product .product__zoom{ border-radius:6px; }

/* ---- Columna derecha: orden marca → título → precio → desc → acciones ---- */
.page-product .product__right{ display:flex; flex-direction:column; padding-top:4px; }
.page-product .product__manufacturer{ order:-1; margin-bottom:8px; }
.page-product .product__manufacturer a{
  font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gx-brand); text-decoration:none;
}
.page-product .product__name{
  order:0; font-family:var(--bs-body-font-family); font-size:32px; line-height:1.14;
  font-weight:700; letter-spacing:-.02em; color:var(--gx-ink); margin:0 0 14px;
}

/* ---- Precio (tarjeta) ---- */
.page-product .product__prices{
  order:1; border:1px solid var(--gx-line); border-radius:8px; padding:18px 20px;
  background:var(--gx-cream); margin-bottom:20px;
}
.page-product .product__price{ font-size:34px; font-weight:800; letter-spacing:-.02em; color:var(--gx-ink); line-height:1; }
.page-product .product__regular-price{ font-size:14px; color:#a8a499; text-decoration:line-through; }
.page-product .product__discount-percentage,
.page-product .product__discount-amount{ color:var(--gx-sale); font-weight:700; font-size:13.5px; }
.page-product .product__discount-price{ margin-bottom:6px; }

/* Badge de descuento (%) sobre la imagen, estilo tarjetas del home */
.product-flags .badge.discount{ background:var(--gx-sale,#c0492f); color:#fff; border:0; font-weight:800; letter-spacing:.02em; }
.page-product .product-flags{ left:auto; right:0; justify-content:flex-end; padding:.6rem .6rem .6rem 4rem; }

/* ---- Descripción corta ---- */
.page-product .product__description-short{ order:2; color:var(--gx-muted); font-size:14.5px; margin-bottom:20px; }

/* ---- Acciones / compra ---- */
.page-product .product__actions{ order:3; }
.page-product .product__availability{
  border:1px solid var(--gx-line); border-radius:8px; background:var(--gx-cream);
  padding:14px 16px; margin-bottom:18px;
}
.page-product .product__availability-status{ display:flex; align-items:center; gap:9px; font-weight:700; font-size:14px; }
.page-product .product__availability-status.text-success{ color:var(--gx-stock) !important; }
.page-product .product__delivery-infos{ font-size:13px; color:var(--gx-muted); margin-top:6px; }
.page-product .product__actions-qty-add{ display:flex; gap:12px; align-items:stretch; margin-bottom:18px; }
.page-product .product__quantity{ flex:none; }
.page-product .product__quantity .form-control{ height:54px; border-radius:var(--gx-r-sm); }
.page-product .product__add-to-cart{ flex:1; }
.page-product .product__add-to-cart-button{
  width:100%; height:54px; border-radius:var(--gx-r-sm); font-size:15px; font-weight:700; letter-spacing:.02em;
}

/* ---- Variantes (talla/select) ---- */
.page-product .product__variants{ margin-bottom:18px; }
.page-product .product-variant{ border:0; padding:0; margin:0 0 14px; }
.page-product .product-variant__label{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px; margin-bottom:10px; }
.page-product .product-variant__legend{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--gx-ink); margin-bottom:0;
}
.page-product .product-variant__selected{ font-size:13px; font-weight:600; color:var(--gx-muted); text-transform:none; letter-spacing:0; }
.page-product .product-variant .form-select{ height:52px; max-width:320px; border:1.5px solid var(--gx-line); border-radius:var(--gx-r-sm); font-weight:600; font-family:var(--bs-body-font-family); }
.page-product .product-variant .form-select:focus{ border-color:var(--gx-brand); box-shadow:0 0 0 3px var(--gx-brand-tint); }

/* radio -> pills/botones */
.page-product .product-variant__radios{ display:flex; flex-wrap:wrap; gap:8px; row-gap:8px; }
.page-product .product-variant__radio{ margin:0; padding:0; min-height:0; display:inline-flex; }
.page-product .product-variant__radio .form-check-input{ position:absolute; opacity:0; width:0; height:0; margin:0; pointer-events:none; }
.page-product .product-variant__radio label{ margin:0; }
.page-product .product-variant__radio .form-check-label{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:46px; height:44px; padding:0 14px;
  border:1.5px solid var(--gx-line); border-radius:var(--gx-r-sm);
  background:#fff; color:var(--gx-ink); font-weight:600; font-size:14.5px;
  font-family:var(--bs-body-font-family); cursor:pointer; user-select:none;
  transition:border-color .15s ease, color .15s ease, background-color .15s ease;
}
.page-product .product-variant__radio .form-check-label:hover{ border-color:var(--gx-brand); color:var(--gx-brand); }
.page-product .product-variant__radio .form-check-input:checked + label .form-check-label{
  background:var(--gx-brand); border-color:var(--gx-brand); color:#fff;
}
.page-product .product-variant__radio .form-check-input:focus-visible + label .form-check-label{ box-shadow:0 0 0 3px var(--gx-brand-tint); }
.page-product .product-variant__radio .form-check-input:disabled + label .form-check-label{ opacity:.4; cursor:not-allowed; text-decoration:line-through; }

/* descripción/atributos: neutraliza fuentes incrustadas de PS1.6 (Roboto, tamaños sueltos) */
.page-product .product__description :is(p,span,div,li,td,th,font,a,strong,em,b,i,br),
.page-product .product__accordion .accordion-body :is(p,span,div,li,td,th,font,a,strong,em,b,i,br),
.page-product .product-variant__selected{
  font-family:var(--bs-body-font-family) !important;
  font-size:inherit !important;
  background-color:transparent !important;
}

/* ---- Bloque inferior: descripción + ficha + reassurance ---- */
.page-product .product__bottom{ display:grid; grid-template-columns:1.5fr 1fr; gap:48px; margin-top:56px; }
@media(max-width:991.98px){ .page-product .product__bottom{ grid-template-columns:1fr; gap:28px; } }
.page-product .product__accordion .accordion-button{
  font-family:var(--bs-body-font-family); font-size:18px; font-weight:700; color:var(--gx-ink);
  padding:18px 0; background:transparent; box-shadow:none;
}
.page-product .product__accordion .accordion-button:not(.collapsed){ color:var(--gx-ink); background:transparent; }
.page-product .product__accordion .accordion-item{ border:0; border-top:1px solid var(--gx-line); }
.page-product .product__accordion .accordion-body{ padding:4px 0 22px; color:#3c434c; font-size:14.5px; line-height:1.8; }
.page-product .product__description{ max-width:760px; }

/* reassurance (envío/devolución/seguro) */
.page-product .product__bottom-right .block-reassurance,
.page-product .product__bottom-right [class*="reassurance"]{ border:1px solid var(--gx-line); border-radius:8px; }

/* ---- "Lo esencial" / ficha técnica (details list) ---- */
.page-product .details__list{ list-style:none; margin:0; padding:0; }
.page-product .details__item{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:11px 0; border-bottom:1px solid var(--gx-line-2); font-size:13.5px;
}
.page-product .details__item:last-child{ border-bottom:0; }
.page-product .details__title{ color:var(--gx-muted); font-weight:500; }
.page-product .details__right span{ font-weight:600; color:var(--gx-ink); text-align:right; }
.page-product .details__manufacturer-logo{ max-height:34px; width:auto; }

/* ---- Franja de financiación (3 plazos) ---- */
.page-product .gx-financing{
  display:flex; align-items:center; gap:10px; margin-top:14px;
  padding:13px 16px; border:1px solid var(--gx-line); border-radius:8px;
  background:var(--gx-cream); font-size:13.5px; color:#46433c;
}
.page-product .gx-financing svg{ width:20px; height:20px; stroke:var(--gx-brand); flex:none; }
.page-product .gx-financing b{ color:var(--gx-ink); font-weight:700; }

/* ---- Bloque de vendedor (alizonmarketplace) ---- */
.page-product .seller-data,
.page-product .seller-information-container{
  border:1px solid var(--gx-line); border-radius:8px; padding:16px 18px; margin-top:18px;
}
.page-product .seller-name{ font-weight:700; font-size:15px; color:var(--gx-ink); }
.page-product .seller-info-label{ color:var(--gx-muted); font-size:12.5px; }
.page-product .seller-info-value{ font-weight:600; color:var(--gx-ink); }
.page-product .seller-logo img{ border-radius:6px; }
.page-product .link_open_seller_account{ color:var(--gx-brand); font-weight:600; }

/* ============================================================
   LISTADO / CATEGORÍA  (tarjeta .product-miniature global + facets)
   ============================================================ */
#js-product-list .products{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(min-width:1200px){ #js-product-list .products{ grid-template-columns:repeat(4,1fr); } }
@media(max-width:767.98px){ #js-product-list .products{ grid-template-columns:repeat(2,1fr); gap:12px; } }

/* Tarjeta de producto (también home / relacionados) */
.product-miniature{ height:100%; }
.product-miniature__inner{
  display:flex; flex-direction:column; height:100%;
  border:1px solid var(--gx-line); border-radius:var(--gx-r); overflow:hidden; background:#fff;
  transition:box-shadow .18s, transform .18s, border-color .18s;
}
.product-miniature__inner:hover{ box-shadow:0 8px 30px -14px rgba(20,30,40,.18); transform:translateY(-3px); border-color:#dfe3e8; }
.product-miniature__top{ position:relative; aspect-ratio:1/1; background:var(--gx-cream); overflow:hidden; }
.product-miniature__top img{ width:100%; height:100%; object-fit:contain; padding:8px; }
/* 2ª imagen al pasar el ratón (categoría/home) */
.product-miniature__image--hover{
  position:absolute; inset:0; opacity:0; transition:opacity .35s ease; pointer-events:none;
}
.product-miniature__inner:hover .product-miniature__image--hover{ opacity:1; }
@media(hover:none){ .product-miniature__image--hover{ display:none; } }
.product-miniature__bottom{ display:flex; flex-direction:column; gap:6px; padding:14px 14px 16px; flex:1; }
.product-miniature__title{
  font-size:14px; font-weight:600; color:var(--gx-ink); line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:38px;
}
.product-miniature__title:hover{ color:var(--gx-brand); }
.product-miniature__prices{ display:flex; align-items:baseline; gap:8px; margin-top:auto; padding-top:6px; }
.product-miniature__price{ font-size:18px; font-weight:800; color:var(--gx-ink); letter-spacing:-.01em; }
.product-miniature__regular-price{ font-size:13px; color:#a8a499; text-decoration:line-through; }
.product-miniature__actions{ margin-top:10px; }
.product-miniature__form{ display:flex; gap:8px; }
.product-miniature .quantity-button{ display:none; }      /* compra rápida = 1 ud */
.product-miniature__add{ width:100%; height:42px; border-radius:var(--gx-r-sm); font-weight:700; font-size:13.5px; }
.product-miniature__add.btn-square-icon{ width:100%; }     /* anula el cuadrado de icono */
.product-miniature__add .material-icons{ font-size:18px; margin-right:6px; }
.product-miniature__add-text{ display:inline !important; }
.product-miniature__details{ width:100%; }

/* Cabecera del listado (conteo + orden) */
#js-product-list-top .products__selection{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding-bottom:16px; border-bottom:1px solid var(--gx-line); margin-bottom:22px; flex-wrap:wrap;
}
.products__count{ font-size:14px; color:var(--gx-muted); }
.products__count span b, .products__count span{ color:var(--gx-ink); }

/* Filtros (faceted) */
#search_filters{ border:1px solid var(--gx-line); border-radius:var(--gx-r); padding:4px 18px; }
#search_filters .facet{ border-bottom:1px solid var(--gx-line-2); padding:16px 0; }
#search_filters .facet:last-child{ border-bottom:0; }
#search_filters .facet-title, #search_filters .h6{ font-weight:700; font-size:14px; margin-bottom:10px; color:var(--gx-ink); }
#search_filters .facet-label{ font-size:13.5px; color:#42464b; }
#search_filters .facet-label:hover{ color:var(--gx-brand); }

/* Paginación */
.products__pagination .page-link{ border-radius:var(--gx-r-sm); border:1.5px solid var(--gx-line); color:var(--gx-ink); font-weight:600; margin:0 2px; }
.products__pagination .page-item.active .page-link{ background:var(--gx-brand); border-color:var(--gx-brand); color:#fff; }

/* ============================================================
   CUENTA DE CLIENTE
   ============================================================ */
/* --- Dashboard de cliente (estilo mockup account.html): saludo + resumen + paneles --- */
.account-dash__intro{ color:var(--gx-muted); font-size:14.5px; margin:-6px 0 22px; }
.account-dash__summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
@media(max-width:767.98px){ .account-dash__summary{ grid-template-columns:1fr; } }
.acc-stat{ display:flex; align-items:center; gap:14px; padding:18px 20px; border:1px solid var(--gx-line); border-radius:var(--gx-r); background:#fff; color:var(--gx-ink); transition:.15s; }
.acc-stat:hover{ border-color:var(--gx-brand); box-shadow:0 8px 30px -16px rgba(20,30,40,.18); transform:translateY(-2px); }
.acc-stat__icon{ width:46px; height:46px; border-radius:12px; background:var(--gx-brand-tint); color:var(--gx-brand); display:grid; place-items:center; font-size:24px; flex:none; }
.acc-stat__data b{ font-size:24px; font-weight:800; line-height:1.1; display:block; }
.acc-stat__data span{ font-size:13px; color:var(--gx-muted); }

.acc-panel{ border:1px solid var(--gx-line); border-radius:var(--gx-r); margin-bottom:18px; overflow:hidden; background:#fff; }
.acc-panel__head{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--gx-line); font-weight:700; font-size:15.5px; }
.acc-panel__head a{ font-size:13px; font-weight:700; color:var(--gx-brand); }
.acc-panel__body{ padding:20px; }
.acc-panel__data{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:575.98px){ .acc-panel__data{ grid-template-columns:1fr; } }
.acc-panel__data > div{ font-size:14.5px; color:var(--gx-ink); }
.acc-panel__label{ display:block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--gx-muted); margin-bottom:4px; }
.acc-addr{ font-size:14px; line-height:1.7; color:#42464b; }
.acc-addr b{ display:block; color:var(--gx-ink); margin-bottom:2px; }
.acc-addr__tag{ display:inline-block; background:var(--gx-cream); border:1px solid var(--gx-line); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:3px 8px; border-radius:4px; margin-bottom:10px; }
.acc-empty{ color:var(--gx-muted); font-size:14px; }
.acc-empty a{ color:var(--gx-brand); font-weight:600; }
/* enlaces de cuenta inyectados por hook (vendedor/mensajes) bajo el dashboard */
.account-dash .account-menu__link{ display:inline-flex; align-items:center; gap:8px; margin:8px 14px 0 0; color:var(--gx-brand); font-weight:600; font-size:14px; }
.account-dash .account-menu__icon{ font-size:18px; }

/* --- Sidebar (navegación de cuenta en subpáginas) --- */
.account-menu--sidebar{ border:1px solid var(--gx-line); border-radius:var(--gx-r); padding:14px; position:sticky; top:100px; background:#fff; }
.account-menu--sidebar .account-menu__title{ font-size:15px; font-weight:700; color:var(--gx-ink); padding:6px 10px 12px; margin:0; border-bottom:1px solid var(--gx-line-2); }
.account-menu--sidebar .account-menu__nav{ display:flex; flex-direction:column; gap:2px; padding-top:8px; }
.account-menu--sidebar .account-menu__link{ display:flex; align-items:center; gap:11px; padding:10px 11px; border-radius:8px; color:#42464b; font-weight:600; font-size:13.8px; transition:.13s; }
.account-menu--sidebar .account-menu__link:hover{ background:var(--gx-cream); color:var(--gx-ink); }
.account-menu--sidebar .account-menu__link--active{ background:var(--gx-brand-tint); color:var(--gx-brand); }
.account-menu--sidebar .account-menu__icon{ width:22px; height:22px; font-size:20px; color:inherit; flex:none; display:grid; place-items:center; }
.account-menu--sidebar .account-menu__link--signout{ color:var(--gx-sale); margin-top:6px; border-top:1px solid var(--gx-line-2); border-radius:0 0 8px 8px; padding-top:14px; }
.account-menu__back{ margin-bottom:18px; }
.account-link{ display:inline-flex; align-items:center; gap:7px; color:var(--gx-brand); font-weight:600; font-size:13.5px; }

/* Formularios de cuenta (identidad, dirección, login) */
#customer-form .form-control, #address-form .form-control,
.page-authentication .form-control, .page-customer-account .form-control{
  border:1.5px solid var(--gx-line); border-radius:var(--gx-r-sm); min-height:46px;
}
#customer-form .form-control:focus, #address-form .form-control:focus,
.page-authentication .form-control:focus, .page-customer-account .form-control:focus{
  border-color:var(--gx-brand); box-shadow:0 0 0 3px var(--gx-brand-tint);
}

/* Direcciones (tarjetas) */
.addresses__list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:16px; margin-top:18px; }
.address-card{ border:1.6px solid #007299; border-radius:var(--gx-r); background:#e6f1f5; transition:box-shadow .18s, border-color .18s, transform .18s; }
.address-card:hover{ border-color:#007299; box-shadow:0 8px 30px -16px rgba(20,30,40,.18); }
.address-card__container{ padding:18px 20px; display:flex; flex-direction:column; height:100%; }
.address-card__header{ display:flex; align-items:center; gap:10px; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--gx-line-2); }
.address-card__icon{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--gx-brand-tint); color:var(--gx-brand); font-size:17px; flex-shrink:0; }
.address-card__alias{ font-weight:700; font-size:15px; color:var(--gx-ink); letter-spacing:-.01em; }
.address-card__content{ font-style:normal; color:#42464b; font-size:14px; line-height:1.7; flex:1; }
.address-card__actions{ display:flex; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid var(--gx-line-2); }
.address-card__edit, .address-card__delete{
  display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:12.5px;
  line-height:1; text-decoration:none; transition:color .15s;
}
.address-card__edit .material-icons, .address-card__delete .material-icons{ font-size:16px; line-height:1; }
.address-card__edit{ color:#00465c; }
.address-card__edit:hover span{ text-decoration:underline; }
.address-card__delete{ color:#c0492f; }
.address-card__delete:hover span{ text-decoration:underline; }
.address-card--add-address{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:170px; background:#fff; border:1.5px dashed var(--gx-line); color:var(--gx-muted); font-weight:600; text-align:center; }
.address-card--add-address:hover{ border-color:var(--gx-brand); color:var(--gx-brand); box-shadow:none; }

/* Historial de pedidos */
#history .table thead th, .page-history .table thead th{ background:var(--gx-cream); border-bottom:1px solid var(--gx-line); font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--gx-muted); }
.page-history .order-actions a, #history .order-actions a{ color:var(--gx-brand); font-weight:600; }

/* ============================================================
   HISTORIAL Y DETALLE DE PEDIDO
   ============================================================ */
.order-history__header{ background:var(--gx-cream); border:1px solid var(--gx-line); border-radius:var(--gx-r) var(--gx-r) 0 0; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--gx-muted); font-weight:700; }
.order-history__header .order-history__cell{ padding:13px 12px; }
.order-history__row{ border:1px solid var(--gx-line); border-top:0; }
.order-history__row:hover{ background:var(--gx-cream); }
.order-history__cell{ padding:14px 12px; font-size:13.5px; }
.order-history__cell--total{ font-weight:700; color:var(--gx-ink); }
.order-history__status.badge{ border-radius:999px; padding:5px 12px; font-weight:600; font-size:12px; }
.order-history__cell--actions .btn{ border-radius:var(--gx-r-sm); }

/* Detalle de pedido */
.order-infos{ border:1px solid var(--gx-line); border-radius:var(--gx-r); padding:22px; background:var(--gx-cream); }
.order-infos__reference{ font-weight:700; font-size:16px; color:var(--gx-ink); }
.order-separator{ border:0; border-top:1px solid var(--gx-line); margin:28px 0; }
.order-status__badge.badge, .order-status__badge{ border-radius:999px; padding:5px 12px; font-weight:600; }
/* Tarjeta de dirección dentro del detalle de pedido (markup plano, sin __container) */
.order-addresses .address-card{ border:1px solid var(--gx-line); border-radius:var(--gx-r); padding:18px; height:100%; }
.order-addresses .address-card__alias{ font-size:14px; font-weight:700; margin-bottom:8px; }
.grid-table__header{ background:var(--gx-cream); font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--gx-muted); font-weight:700; }
.grid-table__header .grid-table__cell{ padding:12px; }
.grid-table__row{ border-bottom:1px solid var(--gx-line-2); }
.order-products h3, .order-status h2, .order-addresses h3{ font-size:18px; font-weight:700; letter-spacing:-.01em; }

/* ============================================================
   HOME (página de inicio) · estilo El Corte Inglés — scope .gx-home
   ============================================================ */
.gx-home{
  --brand:#007299; --brand-600:#00627f; --brand-700:#00465c; --brand-tint:#e6f1f5;
  --ink:#1a1d21; --muted:#6b7280; --line:#e6e9ed; --line-2:#eef1f4;
  --cream:#f7f8fa; --sale:#c0492f; --stock:#2f8f5b; --star:#caa83f;
  --r:6px; --r-sm:5px; --shadow:0 8px 30px -14px rgba(20,30,40,.18);
  max-width:none; padding:18px clamp(18px,4vw,64px) 0;
  font-family:var(--bs-body-font-family); color:var(--ink);
}
/* Cabecera y footer a ancho completo (a juego con el home v5) */
.container-md{ max-width:none; padding-left:clamp(18px,4vw,64px); padding-right:clamp(18px,4vw,64px); }
#footer .container{ max-width:none; padding-left:clamp(18px,4vw,64px); padding-right:clamp(18px,4vw,64px); }
.gx-home *{box-sizing:border-box}
.gx-home a{color:inherit;text-decoration:none}
.gx-home img{display:block;max-width:100%}
.gx-home .section{padding:46px 0 4px}
.gx-home .section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:22px;gap:16px}
.gx-home .section-head h2{font-size:26px;font-weight:700;letter-spacing:-.02em;margin:0}
.gx-home .section-head a{font-size:13.5px;font-weight:700;color:var(--brand);display:inline-flex;align-items:center;gap:6px}
.gx-home .section-head a svg{width:15px;height:15px;stroke:var(--brand);stroke-width:2;fill:none}
.gx-home .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:50px;padding:0 22px;border-radius:var(--r-sm);font-weight:700;font-size:14.5px;letter-spacing:.02em;transition:.15s;border:1.5px solid transparent;cursor:pointer}
.gx-home .btn svg{width:18px;height:18px;stroke-width:2;fill:none}
.gx-home .btn-light{background:#fff;color:var(--brand-700)}.gx-home .btn-light svg{stroke:var(--brand-700)}
.gx-home .btn-line{border-color:rgba(255,255,255,.6);color:#fff}.gx-home .btn-line:hover{background:rgba(255,255,255,.14)}

/* tarjeta producto */
.gx-home .pcard{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;transition:.18s}
.gx-home .pcard:hover{box-shadow:var(--shadow);transform:translateY(-3px);border-color:#dfe3e8}
.gx-home .pcard .pthumb{aspect-ratio:1/1;background:var(--cream);position:relative;overflow:hidden}
.gx-home .pcard .pthumb img{width:100%;height:100%;object-fit:contain;padding:12px;mix-blend-mode:multiply}
.gx-home .pcard .ptag{position:absolute;top:12px;left:12px;background:var(--ink);color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;padding:5px 9px;border-radius:4px;text-transform:uppercase}
.gx-home .pcard .pdisc{position:absolute;top:12px;right:12px;z-index:1;background:var(--sale);color:#fff;font-size:12px;font-weight:800;letter-spacing:.02em;padding:5px 9px;border-radius:4px}
.gx-home .pcard .pbody{padding:13px 15px 15px;display:flex;flex-direction:column;gap:5px;flex:1}
.gx-home .pcard .pbrand{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--brand)}
.gx-home .pcard .pname{font-size:14px;font-weight:600;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.gx-home .pcard .pprice{display:flex;align-items:baseline;gap:8px;margin-top:auto;padding-top:6px}
.gx-home .pcard .pprice .now{font-size:18px;font-weight:800;letter-spacing:-.01em}
.gx-home .pcard .pprice .was{font-size:13px;color:#a8a499;text-decoration:line-through}
.gx-home .pcard .pprice .off{font-size:12px;font-weight:700;color:var(--sale)}
.gx-home .pcard .padd{margin-top:10px;height:42px;border-radius:var(--r-sm);background:var(--cream);color:var(--ink);font-weight:700;font-size:13.5px;display:flex;align-items:center;justify-content:center;gap:8px;transition:.15s}
.gx-home .pcard .padd svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none}
.gx-home .pcard:hover .padd{background:var(--brand);color:#fff}.gx-home .pcard:hover .padd svg{stroke:#fff}

/* hero */
.gx-home .hero{display:grid;grid-template-columns:1.35fr 1fr;border-radius:16px;overflow:hidden;margin:14px 0 0;min-height:430px}
.gx-home .hero__txt{background:linear-gradient(120deg,#0a6f86,#0a86ad 55%,#16a3b8);color:#fff;padding:60px 56px;display:flex;flex-direction:column;justify-content:center}
.gx-home .hero__txt .kicker{font-size:12.5px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#d3f1f7;margin-bottom:16px}
.gx-home .hero__txt h1{font-size:50px;line-height:1.02;font-weight:800;letter-spacing:-.03em;margin-bottom:16px}
.gx-home .hero__txt p{font-size:17px;color:#e4f6fa;max-width:430px;margin-bottom:30px}
.gx-home .hero__txt .acts{display:flex;gap:12px;flex-wrap:wrap}
.gx-home .hero__img{background:#eef2f4}.gx-home .hero__img img{width:100%;height:100%;object-fit:cover}

/* categorías grandes */
.gx-home .bigcats{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.gx-home .bigcat{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;transition:.18s}
.gx-home .bigcat:hover{box-shadow:var(--shadow);transform:translateY(-4px);border-color:#dfe3e8}
.gx-home .bigcat__img{aspect-ratio:1/1;overflow:hidden;background:#f6f7f9}
.gx-home .bigcat__img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.gx-home .bigcat:hover .bigcat__img img{transform:scale(1.05)}
.gx-home .bigcat__cap{padding:14px 16px;font-weight:700;font-size:15px;text-align:center}

/* especial verano */
.gx-home .summer{border-radius:16px;background:linear-gradient(120deg,#fff3da,#ffe9c7);border:1px solid #f1e2c4;padding:30px 32px 34px}
.gx-home .summer__head{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.gx-home .summer__head h2{font-size:26px;font-weight:800;letter-spacing:-.02em;color:#9a6a1f;margin:0}
.gx-home .summer__head .sun{font-size:30px}
.gx-home .summer__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.gx-home .scard{border-radius:14px;overflow:hidden;background:#fff;border:1px solid #f1e2c4;transition:.18s}
.gx-home .scard:hover{box-shadow:0 12px 30px -16px rgba(154,106,31,.4);transform:translateY(-4px)}
.gx-home .scard__img{aspect-ratio:4/3;overflow:hidden;background:#f6f7f9}
.gx-home .scard__img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.gx-home .scard:hover .scard__img img{transform:scale(1.05)}
.gx-home .scard__cap{padding:14px 16px}
.gx-home .scard__cap b{display:block;font-size:15.5px;font-weight:700}
.gx-home .scard__cap span{font-size:12.5px;color:var(--muted)}

/* mejores ofertas */
.gx-home .offers{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.gx-home .offer{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:.18s}
.gx-home .offer:hover{box-shadow:var(--shadow);transform:translateY(-4px);border-color:#dfe3e8}
.gx-home .offer__img{aspect-ratio:4/3;overflow:hidden;background:#f6f7f9;position:relative}
.gx-home .offer__img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.gx-home .offer:hover .offer__img img{transform:scale(1.05)}
.gx-home .offer__badge{position:absolute;top:14px;left:14px;background:var(--sale);color:#fff;font-size:12px;font-weight:800;padding:6px 11px;border-radius:999px}
.gx-home .offer__body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.gx-home .offer__kicker{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);margin-bottom:6px}
.gx-home .offer__body h3{font-size:18px;font-weight:800;letter-spacing:-.01em;margin-bottom:6px}
.gx-home .offer__body p{font-size:13.5px;color:var(--muted);margin-bottom:14px;flex:1}
.gx-home .offer__link{align-self:flex-start;color:var(--brand);font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:6px}
.gx-home .offer__link svg{width:15px;height:15px;stroke:var(--brand);stroke-width:2;fill:none}

/* tendencias */
.gx-home .trends{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.gx-home .trend{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:3/4;border:1px solid var(--line)}
.gx-home .trend img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gx-home .trend:hover img{transform:scale(1.06)}
.gx-home .trend__cap{position:absolute;left:0;right:0;bottom:0;padding:40px 18px 18px;background:linear-gradient(transparent,rgba(15,22,28,.8));color:#fff}
.gx-home .trend__cap b{display:block;font-size:18px;font-weight:800;letter-spacing:-.01em}
.gx-home .trend__cap span{font-size:12.5px;opacity:.9;margin-top:4px;display:block}

/* filas de producto */
.gx-home .prow{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.gx-home .prow + .prow{margin-top:18px}

/* marcas */
.gx-home .brands{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.gx-home .brand{border:1px solid var(--line);border-radius:12px;height:88px;display:grid;place-items:center;font-weight:800;letter-spacing:.03em;color:#52575d;font-size:15px;transition:.15s;text-align:center;padding:8px}
.gx-home .brand:hover{border-color:var(--brand);color:var(--brand);box-shadow:var(--shadow)}
.gx-home .trustbar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.gx-home .trustbar svg{width:22px;height:22px;stroke:var(--stock);stroke-width:1.8;fill:none}
.gx-home .trustbar b{font-size:14px;color:var(--ink)}.gx-home .trustbar span{font-size:13px;color:var(--muted)}

/* vendedores */
.gx-home .sellers{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.gx-home .seller{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;padding:18px 20px;background:#fff;transition:.15s}
.gx-home .seller:hover{border-color:var(--brand);box-shadow:var(--shadow);transform:translateY(-3px)}
.gx-home .seller__av{width:54px;height:54px;border-radius:50%;background:var(--brand-tint);color:var(--brand);display:grid;place-items:center;font-weight:800;font-size:20px;flex:none}
.gx-home .seller b{font-size:15px;display:block}
.gx-home .seller .stars{display:flex;gap:1px;margin:3px 0}.gx-home .seller .stars svg{width:13px;height:13px;fill:var(--star)}
.gx-home .seller span{font-size:12.5px;color:var(--muted)}

/* faq */
.gx-home .faq{display:grid;grid-template-columns:1fr 1fr;gap:6px 44px}
.gx-home .faq__item{border-bottom:1px solid var(--line);padding:16px 2px}
.gx-home .faq__q{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;gap:16px;cursor:pointer}
.gx-home .faq__q svg{width:18px;height:18px;stroke:var(--muted);stroke-width:2;fill:none;flex:none}
.gx-home .faq__a{font-size:13.5px;color:var(--muted);line-height:1.65;margin-top:10px}

/* app + newsletter */
.gx-home .cta-band{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:46px}
.gx-home .cta{border-radius:16px;padding:34px 38px;color:#fff;display:flex;flex-direction:column;justify-content:center}
.gx-home .cta.app{background:linear-gradient(120deg,#1a1d21,#3a4046)}
.gx-home .cta.news{background:linear-gradient(120deg,#00465c,#0a86ad)}
.gx-home .cta h3{font-size:23px;font-weight:800;letter-spacing:-.02em;margin-bottom:8px}
.gx-home .cta p{font-size:14px;opacity:.9;margin-bottom:18px;max-width:340px}
.gx-home .badges{display:flex;gap:10px;flex-wrap:wrap}
.gx-home .badges a{display:inline-block;line-height:0}
.gx-home .badges img{border-radius:8px}
.gx-home .news form{display:flex;gap:8px;max-width:380px}
.gx-home .news input{flex:1;height:48px;border:none;border-radius:var(--r-sm);padding:0 14px;font:inherit;font-size:14px}
.gx-home .news button{height:48px;padding:0 20px;border-radius:var(--r-sm);background:#fff;color:#00465c;font-weight:700;border:none;cursor:pointer}

/* servicios */
.gx-home .services{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:46px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.gx-home .svc{display:flex;align-items:center;gap:14px}
.gx-home .svc .si{width:46px;height:46px;border-radius:12px;background:var(--brand-tint);display:grid;place-items:center;flex:none}
.gx-home .svc .si svg{width:23px;height:23px;stroke:var(--brand);stroke-width:1.7;fill:none}
.gx-home .svc b{font-size:14px;display:block}.gx-home .svc span{font-size:12.5px;color:var(--muted)}

@media(max-width:991.98px){
  .gx-home .hero{grid-template-columns:1fr}.gx-home .hero__img{min-height:230px}.gx-home .hero__txt{padding:36px 26px}.gx-home .hero__txt h1{font-size:32px}
  .gx-home .bigcats{grid-template-columns:repeat(3,1fr)}
  .gx-home .summer__grid,.gx-home .offers,.gx-home .trends,.gx-home .sellers{grid-template-columns:1fr 1fr}
  .gx-home .prow{grid-template-columns:repeat(2,1fr);gap:12px}
  .gx-home .brands{grid-template-columns:repeat(3,1fr)}
  .gx-home .cta-band,.gx-home .services,.gx-home .faq{grid-template-columns:1fr}
}



/* ============================================================
   Header — carrito e icono de usuario (GUANXELOCA-10)
   · Carrito: glifo moderno (shopping_bag) vía override de plantilla
     themes/guanxe/modules/ps_shoppingcart/ps_shoppingcart.tpl
     (el JS clona el bloque desktop al móvil). Aquí solo el tamaño.
   · Usuario: icono de cuenta en color de marca (azul Guanxe).
   ============================================================ */
.ps-shoppingcart .header-block__icon,
#_mobile_ps_shoppingcart .header-block__icon{ font-size:24px; }
#userMenuButton .header-block__icon,
.dropdown.header-block .header-block__icon,
#_mobile_ps_customersignin .header-block__icon{ color:var(--gx-brand) !important; }

/* CTA band sin newsletter (GUANXELOCA-11): app a ancho completo */
.gx-home .cta-band--single{ grid-template-columns:1fr; }
.gx-home .cta-band--single .cta.app{ max-width:760px; }

/* Checkout OPC: cantidad estática (sin stepper, sin papelera) */
.opc-qty-static{ font-weight:600; white-space:nowrap; }

/* ============================================================
   Confirmación de pedido — diseño v3 "estilo checkout"
   (design-mockup/order-confirmation-v3.html · GUANXELOCA-24)
   ============================================================ */
.gx-oc{ max-width:1180px; margin:0 auto; padding:10px 0 40px; }
.gx-oc__hero h1{ font-size:28px; font-weight:800; letter-spacing:-.02em; margin:16px 0 0; }
.gx-oc__hero p{ color:var(--gx-muted); font-size:14px; margin:4px 0 0; }
.gx-oc__hero p b{ color:var(--gx-brand); font-weight:800; }
.gx-oc__layout{ display:grid; grid-template-columns:minmax(0,1fr) 384px; gap:32px; padding-top:16px; align-items:start; }
.gx-oc__main,.gx-oc__aside{ min-width:0; }
.gx-oc__aside{ position:sticky; top:24px; }

.gx-oc__step{ border:1px solid var(--gx-line); border-radius:var(--gx-r); margin-bottom:16px; overflow:hidden; background:#fff; }
.gx-oc__step-h{ display:flex; align-items:center; gap:13px; padding:16px 22px; border-bottom:1px solid var(--gx-line); }
.gx-oc__num{ width:27px; height:27px; border-radius:50%; background:var(--gx-stock); color:#fff; font-weight:800; font-size:13.5px; display:grid; place-items:center; flex:none; }
.gx-oc__step-h h2{ font-size:15.5px; font-weight:700; margin:0; flex:1; }
.gx-oc__step-b{ padding:20px 22px; }

.gx-oc__prep{ display:flex; gap:13px; align-items:flex-start; font-size:14.5px; }
.gx-oc__prep > svg{ width:21px; height:21px; flex:none; stroke:var(--gx-brand); stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; margin-top:2px; }
.gx-oc__prep b{ font-weight:700; }
.gx-oc__prep-sub{ display:block; font-size:13.5px; color:var(--gx-muted); margin-top:3px; }
.gx-oc__dl{ display:inline-flex; align-items:center; gap:6px; margin-top:9px; font-size:13px; font-weight:700; color:var(--gx-brand); }
.gx-oc__dl svg{ width:15px; height:15px; stroke:currentColor; stroke-width:2; fill:none; }
.gx-oc__dl:hover{ color:var(--gx-brand-700); }

.gx-oc__prow{ display:flex; align-items:center; gap:16px; padding:13px 22px; border-bottom:1px solid var(--gx-line-2); }
.gx-oc__prow:last-child{ border-bottom:none; }
.gx-oc__pimg{ width:52px; height:52px; border-radius:var(--gx-r); flex:none; object-fit:cover; border:1px solid var(--gx-line-2); }
.gx-oc__pimg--empty{ display:block; background:var(--gx-cream-2); }
.gx-oc__pinf{ flex:1; min-width:0; }
.gx-oc__pinf b{ display:block; font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gx-oc__pinf > span{ font-size:12.5px; color:var(--gx-muted); }
.gx-oc__pr{ font-weight:800; font-size:14.5px; flex:none; }

.gx-oc__duo{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.gx-oc__lbl{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--gx-muted); margin-bottom:8px; }
.gx-oc__card{ border:1.5px solid var(--gx-brand); border-radius:var(--gx-r); padding:14px 16px; background:var(--gx-brand-tint); font-size:14px; line-height:1.55; }
.gx-oc__badge{ display:inline-block; background:#fff; border:1px solid var(--gx-line); font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:3px 8px; border-radius:4px; margin-bottom:8px; }
.gx-oc__card-sub{ color:#41525c; font-size:13px; margin-top:6px; }

.gx-oc__sum{ border:1px solid var(--gx-line); border-radius:var(--gx-r); overflow:hidden; background:#fff; }
.gx-oc__sum-h{ padding:16px 20px; border-bottom:1px solid var(--gx-line); font-weight:700; font-size:15px; display:flex; justify-content:space-between; }
.gx-oc__sum-n{ color:var(--gx-muted); font-weight:600; }
.gx-oc__sum-b{ padding:16px 20px; }
.gx-oc__r{ display:flex; justify-content:space-between; font-size:14px; padding:4px 0; color:#3d4147; }
.gx-oc__r--total{ border-top:1.5px solid var(--gx-ink); margin-top:10px; padding-top:12px; font-size:17px; font-weight:800; color:var(--gx-ink); }
.gx-oc__tax{ font-size:12px; color:var(--gx-muted); text-align:right; margin-top:2px; }
.gx-oc__ctas{ display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.gx-oc__btn{ width:100%; height:50px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; }

.gx-oc__help{ display:flex; align-items:center; gap:13px; font-size:13px; border:1px solid var(--gx-line); border-radius:var(--gx-r); padding:14px 16px; margin-top:16px; background:#fff; }
.gx-oc__help-ic{ width:38px; height:38px; border-radius:50%; background:var(--gx-brand-tint); display:grid; place-items:center; flex:none; }
.gx-oc__help-ic svg{ width:19px; height:19px; stroke:var(--gx-brand); stroke-width:1.8; fill:none; }
.gx-oc__help b{ display:block; font-weight:700; }
.gx-oc__help a{ color:var(--gx-brand); font-weight:700; }

@media (max-width: 991.98px){
  .gx-oc__layout{ grid-template-columns:minmax(0,1fr); }
  .gx-oc__aside{ position:static; }
}
@media (max-width: 767.98px){
  .gx-oc__hero h1{ font-size:22px; }
  .gx-oc__layout{ gap:14px; }
  .gx-oc__step-h{ padding:13px 16px; }
  .gx-oc__step-b{ padding:16px; }
  .gx-oc__prow{ padding:12px 16px; gap:12px; }
  .gx-oc__pimg{ width:47px; height:47px; }
  .gx-oc__duo{ grid-template-columns:1fr; }
}

/* ============================================================
   BUSCADOR CENTRADO (escritorio)
   ------------------------------------------------------------
   En un marketplace con cientos de miles de referencias el buscador
   es la navegacion principal, no un accesorio: por eso se lleva al
   centro de la cabecera y se le da ancho, en vez de dejarlo arrinconado
   a la derecha (que es lo que hace Hummingbird por defecto con ms-auto).

   Se hace por CSS y no tocando las clases de la plantilla para que el
   override de ps_searchbar.tpl siga siendo minimo. Para revertirlo,
   basta con borrar este bloque.
   ============================================================ */
@media (min-width: 768px) {
  #_desktop_ps_searchbar {
    flex: 1 1 auto;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    max-width: 620px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #_desktop_ps_searchbar #ps_searchbar,
  #_desktop_ps_searchbar .ps-searchbar__form {
    width: 100%;
  }

  #_desktop_ps_searchbar .ps-searchbar__input {
    width: 100%;
  }
}

/* ============================================================
   SELECTOR DE PAÍS / ENVÍO (GUANXELOCA-40) · .gx-location
   ------------------------------------------------------------
   Un componente, tres superficies: cabecera (--top, displayNav2),
   ficha (--inline, displayProductAdditionalInfo) y fila del offcanvas
   del menú (--menu, override de ps_mainmenu). <details>/<summary>:
   abre y envía (form GET) sin JS; custom.js añade Escape, clic fuera,
   instancia única y bottom-sheet en móvil.
   ============================================================ */
.gx-location{ position:relative; font-family:var(--bs-body-font-family); }
.gx-location summary{ list-style:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.gx-location summary::-webkit-details-marker{ display:none; }
.gx-location summary:focus-visible{ outline:2px solid var(--gx-brand); outline-offset:2px; border-radius:var(--gx-r-sm); }
.gx-location__flag{
  width:20px; height:20px; border-radius:50%; object-fit:cover; flex:0 0 auto;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}

/* ---- Botón de la cabecera (variante top) ---- */
.gx-location--top{ display:inline-block; }
.gx-location--top summary{
  display:inline-flex; align-items:center; gap:8px; padding:6px 10px;
  border-radius:var(--gx-r); font-size:13.5px; font-weight:600; line-height:1;
  color:var(--gx-ink); transition:background .13s;
}
.gx-location--top summary:hover{ background:var(--gx-cream-2); }
.gx-location--top .gx-location__dot,
.gx-location--top .gx-location__cur{ color:var(--gx-muted); font-weight:500; }
.gx-location__chev{ width:14px; height:14px; color:var(--gx-muted); transition:transform .15s; }
.gx-location[open] .gx-location__chev{ transform:rotate(180deg); }

/* ---- Panel desplegable (compartido) ---- */
.gx-location__panel{
  position:absolute; top:calc(100% + 8px); right:0; z-index:1060;
  width:320px; max-width:calc(100vw - 24px); padding:16px; text-align:left;
  background:#fff; border:1px solid var(--gx-line); border-radius:8px;
  box-shadow:0 16px 40px rgba(16,24,40,.16);
}
.gx-location__title{ margin:0 0 10px; font-size:15px; font-weight:700; color:var(--gx-ink); }
.gx-location__list{ list-style:none; margin:0 0 12px; padding:0; display:flex; flex-direction:column; gap:6px; }
.gx-location__option{
  display:flex; align-items:center; gap:10px; width:100%; margin:0; padding:10px 12px;
  border:1px solid var(--gx-line); border-radius:var(--gx-r); cursor:pointer;
  transition:border-color .13s, background .13s;
}
.gx-location__option:hover{ border-color:#c3ccd4; }
.gx-location__option.is-selected,
.gx-location__option:has(.gx-location__radio:checked){
  border-color:var(--gx-brand); background:var(--gx-brand-tint);
}
.gx-location__radio{ accent-color:var(--gx-brand); width:16px; height:16px; margin:0; flex:0 0 auto; }
.gx-location__texts{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.gx-location__name{ font-size:14px; font-weight:600; color:var(--gx-ink); line-height:1.25; }
.gx-location__meta{ font-size:12px; color:var(--gx-muted); line-height:1.25; }
.gx-location__save{ width:100%; }

/* ---- Línea inline de la ficha (variante inline) ---- */
.gx-location--inline{ margin-top:10px; }
.gx-location--inline summary{
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px;
  padding:2px 0; font-size:14px; color:var(--gx-ink);
}
.gx-location__truck{ width:18px; height:18px; color:var(--gx-brand); flex:0 0 auto; }
.gx-location__inline-label{ color:var(--gx-muted); }
.gx-location__inline-country{ font-weight:600; }
.gx-location__dash{ color:var(--gx-muted); }
.gx-location__change{
  color:var(--gx-brand); font-weight:600;
  text-decoration:underline; text-underline-offset:2px;
}
.gx-location--inline summary:hover .gx-location__change{ color:var(--gx-brand-600); }
.gx-location--inline .gx-location__panel{ right:auto; left:0; }

/* ---- Fila del offcanvas del menú (variante menu) ---- */
.gx-location--menu{ width:100%; }
.gx-location--menu summary{
  display:flex; align-items:center; gap:8px; width:100%;
  padding:12px 0; font-size:14px; color:var(--gx-ink);
}
/* En el offcanvas el panel es SIEMPRE bottom-sheet (evita desbordar sus 400px
   y el corte por el scroll del offcanvas-body). */
.gx-location--menu[open]::before{
  content:""; position:fixed; inset:0; z-index:1069; background:rgba(15,23,32,.45);
}
.gx-location--menu .gx-location__panel{
  position:fixed; top:auto; left:0; right:0; bottom:0; z-index:1070;
  width:auto; max-width:none; max-height:75vh; overflow:auto;
  border-radius:12px 12px 0 0; border:0; padding:18px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow:0 -12px 40px rgba(16,24,40,.28);
  animation:gx-ls-sheet-in .18s ease;
}

/* ---- Bottom-sheet <576px para todas las variantes ---- */
@media (max-width: 575.98px){
  .gx-location[open]::before{
    content:""; position:fixed; inset:0; z-index:1069; background:rgba(15,23,32,.45);
  }
  .gx-location .gx-location__panel{
    position:fixed; top:auto; left:0; right:0; bottom:0; z-index:1070;
    width:auto; max-width:none; max-height:75vh; overflow:auto;
    border-radius:12px 12px 0 0; border:0; padding:18px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow:0 -12px 40px rgba(16,24,40,.28);
    animation:gx-ls-sheet-in .18s ease;
  }
}

@keyframes gx-ls-sheet-in{
  from{ transform:translateY(24px); opacity:.6; }
  to{ transform:none; opacity:1; }
}

/* Scroll bloqueado mientras hay un bottom-sheet abierto (lo pone custom.js) */
body.gx-location-lock{ overflow:hidden; }

@media (prefers-reduced-motion: reduce){
  .gx-location__panel{ animation:none !important; }
  .gx-location__chev,
  .gx-location__option{ transition:none !important; }
}

/* ============================================================
   Fichas de confianza (.gx-trust) — gx_core displayFooterBefore
   Iconos SVG en línea (sin fuente de iconos). Reemplazo moderno
   del bloque de reassurance del 1.6.
   ============================================================ */
.gx-trust{ border-top:1px solid var(--gx-line); background:#fff; padding:30px 16px; }
.gx-trust__row{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:repeat(5,1fr); gap:20px 12px;
}
.gx-trust__item{ text-align:center; padding:0 6px; }
.gx-trust__icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:52px; height:52px; margin-bottom:12px;
  color:var(--gx-brand); background:var(--gx-brand-tint);
  border-radius:50%;
}
.gx-trust__icon svg{ width:26px; height:26px; }
.gx-trust__title{
  margin:0 0 3px; font-weight:600; font-size:14px; line-height:1.25;
  color:var(--gx-ink); letter-spacing:.01em;
}
.gx-trust__sub{ margin:0; font-size:12.5px; line-height:1.35; color:var(--gx-muted); }

@media(max-width:991.98px){
  .gx-trust__row{ grid-template-columns:repeat(3,1fr); gap:24px 12px; }
}
@media(max-width:575.98px){
  .gx-trust{ padding:22px 12px; }
  .gx-trust__row{ grid-template-columns:repeat(2,1fr); gap:20px 8px; }
  .gx-trust__icon{ width:46px; height:46px; }
  .gx-trust__icon svg{ width:23px; height:23px; }
}
