/* ============================================================
   SEGURIDADPERSONAL.ES — Custom Design System
   Estilo: PCComponentes / Media Markt adapted
   Paleta: Negro #0d0d0d · Dorado #d4a94a · Blanco #fff
   ============================================================ */

/* ── 1. VARIABLES GLOBALES ────────────────────────────────── */
:root {
  --sp-black:    #0d0d0d;
  --sp-dark:     #161616;
  --sp-mid:      #222222;
  --sp-border:   #e5e5e5;
  --sp-border-d: #2a2a2a;
  --sp-gold:     #d4a94a;
  --sp-gold2:    #b8902e;
  --sp-gold-bg:  rgba(212,169,74,0.08);
  --sp-white:    #ffffff;
  --sp-light:    #f5f5f3;
  --sp-muted:    #888888;
  --sp-red:      #c0392b;
  --sp-green:    #1a9e5c;
  --sp-font:     'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sp-radius:   0px;
  --sp-radius-sm:3px;
  --sp-shadow:   0 2px 12px rgba(0,0,0,0.08);
  --sp-shadow-lg:0 4px 24px rgba(0,0,0,0.12);
  --sp-trans:    all 0.18s ease;
}

/* ── 2. BASE & TIPOGRAFÍA ─────────────────────────────────── */
body {
  font-family: var(--sp-font);
  color: var(--sp-black);
  background: var(--sp-white);
  -webkit-font-smoothing: antialiased;
}

a { transition: var(--sp-trans); }
a:hover { color: var(--sp-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sp-font);
  font-weight: 600;
  color: var(--sp-black);
}

/* ── 3. BOTONES GLOBALES ──────────────────────────────────── */
.btn {
  font-family: var(--sp-font);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  border-radius: var(--sp-radius);
  transition: var(--sp-trans);
  text-transform: uppercase;
}

.btn-primary,
.btn-secondary.add-to-cart,
.btn.add-to-cart {
  background: var(--sp-black) !important;
  border-color: var(--sp-black) !important;
  color: var(--sp-white) !important;
}
.btn-primary:hover,
.btn-secondary.add-to-cart:hover,
.btn.add-to-cart:hover {
  background: var(--sp-gold) !important;
  border-color: var(--sp-gold) !important;
  color: var(--sp-black) !important;
}

.btn-secondary {
  background: transparent !important;
  border: 1.5px solid var(--sp-black) !important;
  color: var(--sp-black) !important;
}
.btn-secondary:hover {
  background: var(--sp-black) !important;
  color: var(--sp-white) !important;
}

/* ── 4. INPUTS & FORMULARIOS ──────────────────────────────── */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  font-family: var(--sp-font);
  border-radius: var(--sp-radius) !important;
  border: 1.5px solid var(--sp-border) !important;
  color: var(--sp-black);
  font-size: 0.875rem;
  transition: var(--sp-trans);
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--sp-gold) !important;
  box-shadow: 0 0 0 3px rgba(212,169,74,0.15) !important;
  outline: none;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-muted);
  margin-bottom: 5px;
}

/* ── 5. MIGAS DE PAN (BREADCRUMB) ─────────────────────────── */
.breadcrumb {
  background: var(--sp-light) !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 0 !important;
}
.breadcrumb .page-heading {
  font-size: 1.1rem !important;
  font-weight: 700;
  color: var(--sp-black);
  margin-bottom: 4px;
}
.breadcrumb ol {
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
}
.breadcrumb .breadcrumb-item {
  font-size: 0.75rem;
  color: var(--sp-muted);
}
.breadcrumb .breadcrumb-item a {
  color: var(--sp-muted);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb .breadcrumb-item a:hover { color: var(--sp-gold); }
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  padding: 0 6px;
  color: var(--sp-muted);
}
.breadcrumb .breadcrumb-item:last-child span {
  color: var(--sp-black);
  font-weight: 600;
}

/* ── 6. TARJETAS DE PRODUCTO (MINIATURE) ─────────────────── */
.product-miniature .product-container {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  transition: var(--sp-trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-miniature .product-container:hover {
  border-color: var(--sp-gold);
  box-shadow: var(--sp-shadow);
  transform: translateY(-2px);
}

/* Imagen */
.product-miniature .thumbnail-container {
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.product-miniature .thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}
.product-miniature .product-container:hover .thumbnail-container img {
  transform: scale(1.04);
}

/* Flags / Badges */
.product-miniature .product-flags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-miniature .product-flag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  line-height: 1.4;
}
.product-miniature .product-flag.discount,
.product-miniature .product-flag.on-sale {
  background: var(--sp-red);
  color: var(--sp-white);
}
.product-miniature .product-flag.new {
  background: var(--sp-gold);
  color: var(--sp-black);
}
.product-miniature .product-flag.pack {
  background: var(--sp-black);
  color: var(--sp-white);
}
.product-miniature .product-flag.out_of_stock {
  background: var(--sp-muted);
  color: var(--sp-white);
}

/* Botones hover sobre imagen */
.product-miniature .button-container {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--sp-trans);
  z-index: 3;
}
.product-miniature .product-container:hover .button-container {
  opacity: 1;
  transform: translateX(0);
}
.product-miniature .button-container .btn,
.product-miniature .button-container a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: var(--sp-white) !important;
  border: 1px solid var(--sp-border) !important;
  color: var(--sp-black) !important;
  font-size: 0.8rem;
  padding: 0;
  text-transform: none;
}
.product-miniature .button-container .btn:hover,
.product-miniature .button-container a:hover {
  background: var(--sp-gold) !important;
  border-color: var(--sp-gold) !important;
  color: var(--sp-black) !important;
}

/* Descripción / info de producto */
.product-miniature .product-description {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

/* Nombre */
.product-miniature .product-title a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sp-black);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-miniature .product-title a:hover { color: var(--sp-gold); }

/* Precio */
.product-miniature .product-price-and-shipping {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-miniature .product-price-and-shipping .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sp-black);
  line-height: 1;
}
.product-miniature .product-price-and-shipping .price.current-price-discount {
  color: var(--sp-red);
}
.product-miniature .product-price-and-shipping .regular-price {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--sp-muted);
  text-decoration: line-through;
}

/* Botón añadir al carrito en tarjeta */
.product-miniature .product-add-to-cart {
  margin-top: 8px;
}
.product-miniature .product-add-to-cart .btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.75rem;
  border-radius: var(--sp-radius-sm) !important;
}

/* ── 7. BARRA DE LISTADO (TOOLBAR) ────────────────────────── */
#js-product-list-top {
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}
#js-product-list-top .showing {
  color: var(--sp-muted);
  font-weight: 500;
}
#js-product-list-top .view-switcher a {
  color: var(--sp-muted);
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--sp-radius-sm);
  display: inline-flex;
  align-items: center;
}
#js-product-list-top .view-switcher a.current,
#js-product-list-top .view-switcher a:hover {
  border-color: var(--sp-gold);
  color: var(--sp-gold);
}
#js-product-list-top .view-switcher svg { fill: currentColor; }

/* Sort orders */
.sort-by-row .select-title,
#sortByBlock .select-title {
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 7px 12px;
  cursor: pointer;
  transition: var(--sp-trans);
  background: var(--sp-white);
  color: var(--sp-black);
}
.sort-by-row .select-title:hover,
#sortByBlock .select-title:hover {
  border-color: var(--sp-gold);
}

/* Filtros activos */
.active-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sp-gold-bg);
  border: 1px solid var(--sp-gold);
  border-radius: var(--sp-radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-black);
  margin: 3px;
  transition: var(--sp-trans);
}
.active-filter-item:hover { background: var(--sp-gold); }
.active-filter-item .material-icons { font-size: 14px; }

/* ── 8. PAGINACIÓN ────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.pagination .page-item .page-link {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm) !important;
  color: var(--sp-black);
  background: var(--sp-white);
  padding: 0 10px;
  transition: var(--sp-trans);
  text-decoration: none;
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
  background: var(--sp-black);
  border-color: var(--sp-black);
  color: var(--sp-white);
}

/* ── 9. FICHA DE PRODUCTO ─────────────────────────────────── */

/* Precio en ficha */
.product-prices .current-price-display,
.product-prices .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sp-black);
  line-height: 1;
}
.product-prices .current-price-discount {
  color: var(--sp-red) !important;
}
.product-prices .regular-price {
  font-size: 1.05rem;
  color: var(--sp-muted);
  text-decoration: line-through;
  font-weight: 400;
}
.product-prices .discount,
.product-prices .discount-percentage,
.product-prices .discount-amount {
  display: inline-flex;
  align-items: center;
  background: var(--sp-red);
  color: var(--sp-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-prices .tax-shipping-delivery-label {
  font-size: 0.75rem;
  color: var(--sp-muted);
  margin-top: 6px;
}
.product-prices .delivery-information {
  color: var(--sp-green);
  font-weight: 600;
}
.product-prices .delivery-information::before {
  content: '✓ ';
}

/* Selector de cantidad */
.product-add-to-cart .product-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.product-add-to-cart .qty input {
  width: 64px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  height: 48px;
  border: 1.5px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
}
.product-add-to-cart .add .btn-add-to-cart {
  height: 48px;
  padding: 0 28px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--sp-radius-sm) !important;
  background: var(--sp-black) !important;
  border-color: var(--sp-black) !important;
  color: var(--sp-white) !important;
  letter-spacing: 0.04em;
}
.product-add-to-cart .add .btn-add-to-cart:hover {
  background: var(--sp-gold) !important;
  border-color: var(--sp-gold) !important;
  color: var(--sp-black) !important;
}
.product-add-to-cart .btn.buy-now {
  height: 48px;
  padding: 0 28px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--sp-radius-sm) !important;
  background: var(--sp-gold) !important;
  border-color: var(--sp-gold) !important;
  color: var(--sp-black) !important;
}
.product-add-to-cart .btn.buy-now:hover {
  background: var(--sp-gold2) !important;
  border-color: var(--sp-gold2) !important;
}

/* Disponibilidad */
#product-availability {
  font-size: 0.82rem;
  font-weight: 600;
}
#product-availability .product-available { color: var(--sp-green); }
#product-availability .product-last-items { color: #e67e22; }
#product-availability .product-unavailable { color: var(--sp-red); }

/* Galería de producto */
.product-cover-thumbnails .slick-list,
.product-cover img {
  border-radius: var(--sp-radius-sm);
}
.product-images > li.thumb-container > .thumb {
  border: 2px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--sp-trans);
}
.product-images > li.thumb-container > .thumb:hover,
.product-images > li.thumb-container > .thumb.selected {
  border-color: var(--sp-gold);
}

/* Variantes */
.product-variants .control-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  margin-bottom: 8px;
}
.input-color {
  border: 2px solid transparent !important;
  transition: var(--sp-trans);
}
.input-color:checked,
.input-color:hover {
  border-color: var(--sp-gold) !important;
}
.input-radio:checked + span,
.input-container input:checked ~ span.radio-label {
  border-color: var(--sp-gold);
  background: var(--sp-gold-bg);
  color: var(--sp-black);
  font-weight: 700;
}

/* Badges de confianza en producto */
.product-additional-info,
.blockreassurance_product {
  border-top: 1px solid var(--sp-border);
  padding-top: 16px;
  margin-top: 16px;
}
.blockreassurance_product .list-group {
  background: var(--sp-light) !important;
  border-color: var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
}
.blockreassurance_product svg { fill: var(--sp-gold) !important; }
.blockreassurance_product .block-title {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--sp-black) !important;
}

/* Tabs de descripción / specs */
.product-tabs .nav-tabs,
.tabs .nav-tabs {
  border-bottom: 2px solid var(--sp-border);
  gap: 4px;
}
.product-tabs .nav-tabs .nav-link,
.tabs .nav-tabs .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  background: transparent;
  transition: var(--sp-trans);
  border-radius: 0;
}
.product-tabs .nav-tabs .nav-link:hover,
.tabs .nav-tabs .nav-link:hover { color: var(--sp-black); }
.product-tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link.active {
  color: var(--sp-black);
  border-bottom-color: var(--sp-gold);
  background: transparent;
}
.product-tabs .tab-content,
.tabs .tab-content {
  padding: 20px 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #444;
}

/* ── 10. CARRITO ──────────────────────────────────────────── */
.cart-grid-body .cart-container,
.cart-container {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  background: var(--sp-white);
}

/* Línea de producto en carrito */
.cart-item,
.cart-detailed-product-line {
  border-bottom: 1px solid var(--sp-border);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cart-item:last-child,
.cart-detailed-product-line:last-child { border-bottom: none; }

.cart-item .product-image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 4px;
}

.cart-item .product-name,
.cart-summary-products .media .media-body .product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-black);
  text-decoration: none;
}
.cart-item .product-name:hover { color: var(--sp-gold); }

.cart-item .price,
.cart-item .product-price {
  font-weight: 700;
  color: var(--sp-black);
  font-size: 1rem;
}

.cart-item .remove-from-cart {
  color: var(--sp-muted);
  font-size: 0.8rem;
  transition: var(--sp-trans);
}
.cart-item .remove-from-cart:hover { color: var(--sp-red); }

/* Totales del carrito */
.cart-grid-right .cart-summary,
.cart-items.cart-summary {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
}
.cart-summary .cart-summary-subtotals-container,
.cart-summary .cart-totals {
  padding: 16px;
}
.cart-summary .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--sp-muted);
  border-bottom: 1px dashed var(--sp-border);
}
.cart-summary .cart-summary-line:last-child { border-bottom: none; }
.cart-summary .cart-summary-line .label { font-weight: 500; color: var(--sp-black); }
.cart-summary .cart-summary-line .value { font-weight: 700; color: var(--sp-black); }
.cart-summary .cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 2px solid var(--sp-black);
  background: var(--sp-light);
}
.cart-summary .cart-total .label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cart-summary .cart-total .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-black);
}

/* Cupón descuento */
.cart-voucher {
  padding: 12px 16px;
  border-top: 1px solid var(--sp-border);
}
.cart-voucher .promo-input {
  display: flex;
  gap: 8px;
}
.cart-voucher .promo-input input {
  flex: 1;
  height: 40px;
  font-size: 0.82rem;
  padding: 0 12px;
  border: 1.5px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
}
.cart-voucher .promo-input .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 0.78rem;
}

/* Acción carrito (botón checkout) */
.cart-detailed-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--sp-radius-sm) !important;
}
.cart-detailed-actions a.btn-primary {
  background: var(--sp-black) !important;
  color: var(--sp-white) !important;
  border-color: var(--sp-black) !important;
}
.cart-detailed-actions a.btn-primary:hover {
  background: var(--sp-gold) !important;
  border-color: var(--sp-gold) !important;
  color: var(--sp-black) !important;
}

/* ── 11. CHECKOUT ─────────────────────────────────────────── */

/* Cabecera checkout */
#checkout .header-checkout {
  background: var(--sp-black);
  padding: 14px 0;
}
#checkout .header-checkout .logo img { max-height: 42px; }

/* Pasos */
.checkout-process .step-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 20px;
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  transition: var(--sp-trans);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-process .step-title:hover { border-color: var(--sp-gold); }
.checkout-process .checkout-step.-current .step-title {
  background: var(--sp-black);
  color: var(--sp-white);
  border-color: var(--sp-black);
}
.checkout-process .checkout-step.-current .step-number {
  background: var(--sp-gold);
  color: var(--sp-black);
}
.checkout-process .checkout-step.-complete .step-title {
  border-color: var(--sp-green);
}
.checkout-process .checkout-step.-complete .step-number {
  background: var(--sp-green);
  color: var(--sp-white);
}
.checkout-process .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--sp-muted);
  color: var(--sp-white);
  flex-shrink: 0;
}

.checkout-process .checkout-step .step-content {
  border: 1px solid var(--sp-border);
  border-top: none;
  border-radius: 0 0 var(--sp-radius-sm) var(--sp-radius-sm);
  padding: 20px;
  background: var(--sp-white);
}

/* Resumen checkout lateral */
.checkout-process .cart-summary {
  position: sticky;
  top: 16px;
}

/* ── 12. ÁREA DE CLIENTE ──────────────────────────────────── */

/* Menú lateral cuenta */
.account-links .link-item,
#left-column .account-menu .item {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  margin-bottom: 4px;
  transition: var(--sp-trans);
  overflow: hidden;
}
.account-links .link-item:hover,
#left-column .account-menu .item:hover {
  border-color: var(--sp-gold);
  background: var(--sp-gold-bg);
}
.account-links .link-item a,
#left-column .account-menu .item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sp-black);
  text-decoration: none;
}
.account-links .link-item a:hover,
#left-column .account-menu .item a:hover { color: var(--sp-gold); }
.account-links .link-item i,
#left-column .account-menu .item i {
  color: var(--sp-gold);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Tarjetas de mi cuenta */
.page-my-account .links a.link-item {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--sp-trans);
  background: var(--sp-white);
  color: var(--sp-black);
  text-decoration: none;
}
.page-my-account .links a.link-item:hover {
  border-color: var(--sp-gold);
  box-shadow: var(--sp-shadow);
  transform: translateY(-2px);
}
.page-my-account .links .link-item i {
  font-size: 1.8rem;
  color: var(--sp-gold);
}
.page-my-account .links .link-item span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Historial de pedidos */
.order-row,
.table-order-history tr {
  border-bottom: 1px solid var(--sp-border);
  transition: var(--sp-trans);
}
.order-row:hover,
.table-order-history tr:hover { background: var(--sp-light); }
.table-order-history th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  background: var(--sp-light);
  padding: 10px 14px;
  border-bottom: 2px solid var(--sp-border);
}
.table-order-history td { font-size: 0.85rem; padding: 12px 14px; }

/* Estado del pedido */
.label-pill,
.order-status-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Formularios de cuenta */
.page-customer-account .form-fields {
  max-width: 480px;
}
.page-customer-account .form-group { margin-bottom: 16px; }
.page-customer-account .custom-checkbox .custom-control-label {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: none;
  color: var(--sp-black);
}

/* ── 13. LOGIN / REGISTRO ─────────────────────────────────── */
.page-authentication .login-form,
.page-authentication .register-form {
  max-width: 420px;
  margin: 0 auto;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 32px;
  box-shadow: var(--sp-shadow);
}
.page-authentication .form-title,
.page-authentication h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--sp-gold);
}
.page-authentication .btn {
  width: 100%;
  height: 46px;
  font-size: 0.85rem;
}
.page-authentication .forgot-password a {
  font-size: 0.78rem;
  color: var(--sp-muted);
}
.page-authentication .forgot-password a:hover { color: var(--sp-gold); }

/* ── 14. BÚSQUEDA ─────────────────────────────────────────── */
.page-search .search-no-results,
.page-search #search_filters_wrapper {
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 20px;
}
.page-search .search-result-header {
  font-size: 0.85rem;
  color: var(--sp-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 16px;
}
.page-search .search-result-header strong { color: var(--sp-black); }

/* ── 15. PÁGINAS DE ERROR ─────────────────────────────────── */
#main .page-not-found,
.page-404 {
  text-align: center;
  padding: 60px 20px;
  max-width: 560px;
  margin: 0 auto;
}
#main .page-not-found h4,
.page-404 h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--sp-black);
  margin-bottom: 16px;
}
#main .page-not-found p,
.page-404 p {
  color: var(--sp-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.page-not-found .btn,
.page-404 .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.85rem;
}

/* ── 16. CONTACTO ─────────────────────────────────────────── */
.page-contact #main {
  max-width: 680px;
  margin: 0 auto;
}
.page-contact .contact-form {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 32px;
  box-shadow: var(--sp-shadow);
}
.page-contact .contact-form .form-group { margin-bottom: 16px; }
.page-contact .contact-information {
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 24px;
  margin-top: 20px;
  font-size: 0.875rem;
}
.page-contact .contact-information .icon-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.page-contact .contact-information .icon-block i {
  color: var(--sp-gold);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* ── 17. NOTIFICACIONES / ALERTAS ─────────────────────────── */
.alert {
  border-radius: var(--sp-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 4px solid transparent;
  padding: 12px 16px;
}
.alert-success {
  background: rgba(26,158,92,0.08);
  border-left-color: var(--sp-green);
  color: var(--sp-green);
}
.alert-danger, .alert-warning {
  background: rgba(192,57,43,0.08);
  border-left-color: var(--sp-red);
  color: var(--sp-red);
}
.alert-info {
  background: var(--sp-gold-bg);
  border-left-color: var(--sp-gold);
  color: var(--sp-black);
}
.notifications {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── 18. CMS / PÁGINAS ESTÁTICAS ──────────────────────────── */
.page-cms #content-wrapper {
  max-width: 820px;
}
.page-cms h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sp-gold);
}
.page-cms h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}
.page-cms p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 14px;
}

/* ── 19. FACETAS / FILTROS LATERALES ──────────────────────── */
.facets-wrapper .facet {
  border-bottom: 1px solid var(--sp-border);
  padding: 14px 0;
}
.facets-wrapper .facet:last-child { border-bottom: none; }
.facets-wrapper .facet-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.facets-wrapper .facet-title::after {
  content: '›';
  font-size: 1rem;
  transform: rotate(90deg);
  transition: var(--sp-trans);
}
.facets-wrapper .facet.open .facet-title::after { transform: rotate(-90deg); }
.facets-wrapper .facet-label {
  font-size: 0.82rem;
  color: var(--sp-black);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  transition: var(--sp-trans);
}
.facets-wrapper .facet-label:hover { color: var(--sp-gold); }
.facets-wrapper .facet-label input[type="checkbox"] {
  accent-color: var(--sp-gold);
  width: 15px;
  height: 15px;
}
.facets-wrapper .facet-label .magnitude {
  color: var(--sp-muted);
  font-size: 0.75rem;
  margin-left: auto;
}

/* ── 20. SUBCATEGORÍAS ────────────────────────────────────── */
.subcategories-list .subcategory-item {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  transition: var(--sp-trans);
  background: var(--sp-white);
}
.subcategories-list .subcategory-item:hover {
  border-color: var(--sp-gold);
  box-shadow: var(--sp-shadow);
}
.subcategories-list .subcategory-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.subcategories-list .subcategory-item:hover img { transform: scale(1.03); }
.subcategories-list .subcategory-name {
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: var(--sp-black);
}

/* ── 21. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 767px) {
  .product-prices .current-price-display,
  .product-prices .price { font-size: 1.4rem; }

  .product-add-to-cart .qty input,
  .product-add-to-cart .add .btn-add-to-cart,
  .product-add-to-cart .btn.buy-now { height: 44px; }

  .page-authentication .login-form,
  .page-authentication .register-form { padding: 24px 20px; }

  .page-contact .contact-form { padding: 24px 16px; }

  #js-product-list-top { padding: 8px 12px; }
}

@media (max-width: 575px) {
  .product-miniature .product-description { padding: 10px 12px 14px; }
  .product-miniature .product-title a { font-size: 0.78rem; }
  .product-miniature .product-price-and-shipping .price { font-size: 1rem; }
}

/* ── 22. PRINT ────────────────────────────────────────────── */
@media print {
  .btn, .product-add-to-cart, .button-container { display: none !important; }
  .product-container { box-shadow: none; border: 1px solid #ddd; }
}

/* ── MINIATURE: badge descuento y marca ── */
.sp-discount-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-red);
  color: var(--sp-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 6px;
}
.sp-brand {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-gold);
  margin-bottom: 2px;
}
.product-miniature .product-add-to-cart .btn .btn-icon {
  margin-right: 5px;
  font-size: 0.9rem;
}

/* ── CARRITO VACÍO ── */
.sp-cart-empty { padding: 48px 0; }
.sp-empty-state {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
}
.sp-empty-icon {
  font-size: 4rem;
  color: var(--sp-border);
  display: block;
  margin-bottom: 20px;
}
.sp-empty-state h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.sp-empty-state p {
  color: var(--sp-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.sp-empty-state .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
}

/* ── CARRITO DETALLADO ── */
.cart-overview .cart-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--sp-border);
}
.cart-overview .cart-item:last-child { border-bottom: none; }

.cart-items-wrapper { padding: 0 16px; }

.cart-summary-product-label,
.product-line-grid-body .product-name a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-black);
  text-decoration: none;
  line-height: 1.35;
}
.product-line-grid-body .product-name a:hover { color: var(--sp-gold); }

.product-line-grid-body .product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sp-black);
}

.product-line-grid-body .regular-price {
  font-size: 0.78rem;
  color: var(--sp-muted);
  text-decoration: line-through;
}

/* Selector cantidad en carrito */
.product-line-grid-body .input-group {
  max-width: 110px;
}
.product-line-grid-body .js-cart-line-product-quantity {
  height: 36px;
  text-align: center;
  font-weight: 700;
  border: 1.5px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
}

/* Cupón */
.cart-voucher .promo-discounts .code-container {
  background: rgba(26,158,92,0.08);
  border: 1px solid var(--sp-green);
  border-radius: var(--sp-radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.cart-voucher .promo-discounts .code-container .delete {
  color: var(--sp-muted);
  transition: var(--sp-trans);
}
.cart-voucher .promo-discounts .code-container .delete:hover { color: var(--sp-red); }

/* Totales carrito */
.cart-totals-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--sp-border);
}
.cart-totals-line:last-child { border-bottom: none; }
.cart-totals-line.cart-total {
  font-size: 1rem;
  font-weight: 700;
  border-top: 2px solid var(--sp-black);
  border-bottom: none;
  padding-top: 14px;
  margin-top: 4px;
}

/* Proceso checkout pasos */
.checkout-step.-reachable .step-edit {
  font-size: 0.75rem;
  color: var(--sp-gold);
  font-weight: 600;
  text-decoration: none;
}
.checkout-step.-reachable .step-edit:hover { text-decoration: underline; }

/* Formulario dirección checkout */
.address-selector .address-item {
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--sp-trans);
  margin-bottom: 10px;
}
.address-selector .address-item:hover,
.address-selector .address-item.selected {
  border-color: var(--sp-gold);
  background: var(--sp-gold-bg);
}
.address-selector .address-item .address-alias {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* Métodos de envío */
.delivery-option {
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--sp-trans);
  display: flex;
  align-items: center;
  gap: 12px;
}
.delivery-option:hover,
.delivery-option.selected { border-color: var(--sp-gold); background: var(--sp-gold-bg); }
.delivery-option .delivery-option-name { font-weight: 600; font-size: 0.875rem; }
.delivery-option .delivery-option-price { font-weight: 700; margin-left: auto; color: var(--sp-green); }

/* Métodos de pago */
.payment-option {
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: var(--sp-trans);
}
.payment-option:hover { border-color: var(--sp-gold); }
.payment-option label { font-weight: 600; font-size: 0.875rem; cursor: pointer; }

/* ── LISTADO CATEGORÍA ── */

/* Cabecera categoría */
.category-top-menu {
  padding: 16px 0;
  margin-bottom: 4px;
}
.category-header .category-image img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--sp-radius-sm);}

/* ── ÁREA CLIENTE ── */

/* Layout cuenta con sidebar */
.customer-account-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) { .customer-account-page { grid-template-columns: 1fr; } }

/* Menú lateral cuenta */
.account-nav {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  position: sticky;
  top: 16px;
}
.account-nav .nav-title {
  background: var(--sp-black);
  color: var(--sp-white);
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.account-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sp-black);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-border);
  transition: var(--sp-trans);
}
.account-nav .nav-link:last-child { border-bottom: none; }
.account-nav .nav-link:hover,
.account-nav .nav-link.active {
  background: var(--sp-gold-bg);
  color: var(--sp-gold);
  padding-left: 22px;
}
.account-nav .nav-link i {
  width: 18px;
  text-align: center;
  color: var(--sp-gold);
  font-size: 0.95rem;
}

/* Tarjetas mi cuenta */
.page-my-account #content {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 24px;
}
.page-my-account .my-account-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sp-gold);
  display: inline-block;
}

/* Historial de pedidos */
.page-order-history .orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.page-order-history .orders-table thead tr {
  background: var(--sp-light);
}
.page-order-history .orders-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--sp-border);
  text-align: left;
}
.page-order-history .orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--sp-border);
  vertical-align: middle;
}
.page-order-history .orders-table tr:hover td { background: var(--sp-light); }
.page-order-history .orders-table .order-actions a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-black);
  text-decoration: none;
  padding: 5px 12px;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  transition: var(--sp-trans);
}
.page-order-history .orders-table .order-actions a:hover {
  border-color: var(--sp-gold);
  color: var(--sp-gold);
}

/* Detalle pedido */
.page-order-detail .order-detail-header {
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.page-order-detail .order-reference {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  margin-bottom: 4px;
}
.page-order-detail .order-reference span {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--sp-black);
  letter-spacing: 0.05em;
}

/* Estado del pedido / Timeline */
.order-history-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  overflow-x: auto;
}
.order-history-steps .step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.order-history-steps .step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--sp-border);
  z-index: 0;
}
.order-history-steps .step:first-child::before { display: none; }
.order-history-steps .step.done::before { background: var(--sp-gold); }
.order-history-steps .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
}
.order-history-steps .step.done .step-dot {
  background: var(--sp-gold);
  color: var(--sp-black);
}
.order-history-steps .step.current .step-dot {
  background: var(--sp-black);
  color: var(--sp-white);
}
.order-history-steps .step-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-muted);
}
.order-history-steps .step.done .step-label,
.order-history-steps .step.current .step-label { color: var(--sp-black); }

/* Bloque dirección cuenta */
.address-block {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 18px;
  height: 100%;
}
.address-block .address-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}
.address-block address {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--sp-black);
  font-style: normal;
}
.address-block .address-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.address-block .address-actions a {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-black);
  text-decoration: none;
  transition: var(--sp-trans);
}
.address-block .address-actions a:hover {
  border-color: var(--sp-gold);
  color: var(--sp-gold);
}

/* Formulario identidad / contraseña */
.page-customer-identity .form-wrapper,
.page-password .form-wrapper {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 28px;
  max-width: 520px;
}
.page-customer-identity .form-title,
.page-password .form-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sp-gold);
}
.category-header .category-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sp-black);
  margin-bottom: 8px;
}
.category-header .category-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--sp-muted);
  max-width: 680px;
}

/* Barra superior listado */
#js-product-list-top {
  font-family: var(--sp-font);
}
.products-selection .showing {
  font-size: 0.78rem;
  color: var(--sp-muted);
  font-weight: 500;
}
.products-selection .showing strong { color: var(--sp-black); }

/* Sort orders dropdown */
.sort-by-row { position: relative; }
.sort-by-row select,
#sortByBlock select {
  height: 36px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 28px 0 12px;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-white);
  color: var(--sp-black);
  appearance: none;
  cursor: pointer;
  transition: var(--sp-trans);
}
#sortByBlock select:focus { border-color: var(--sp-gold); outline: none; }

/* Subcategorías grid */
.subcategories { margin-bottom: 20px; }
.subcategory-thumbnail {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  transition: var(--sp-trans);
  background: var(--sp-white);
  text-decoration: none;
  display: block;
  text-align: center;
}
.subcategory-thumbnail:hover {
  border-color: var(--sp-gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.subcategory-thumbnail img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.subcategory-thumbnail .category-sub-name {
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-black);
}

/* Vista lista (product-left) */
.catalog-list .product-miniature .product-container {
  flex-direction: row !important;
}
.catalog-list .product-miniature .thumbnail-container {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}
.catalog-list .product-miniature .product-description {
  padding: 16px 20px;
  flex: 1;
}
.catalog-list .product-miniature .product-title a {
  font-size: 0.95rem;
  -webkit-line-clamp: unset;
}

/* Estado vacío */
.products-not-found {
  text-align: center;
  padding: 48px 20px;
  color: var(--sp-muted);
}
.products-not-found h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sp-black);
  margin-bottom: 10px;
}

/* Paginación mejorada */
#js-product-list-bottom {
  padding: 8px 0;
}
.pagination .page-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination .page-list li a,
.pagination .page-list li span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-black);
  background: var(--sp-white);
  padding: 0 8px;
  transition: var(--sp-trans);
  text-decoration: none;
}
.pagination .page-list li a:hover {
  background: var(--sp-black);
  border-color: var(--sp-black);
  color: var(--sp-white);
}
.pagination .page-list li.current span,
.pagination .page-list li.current a {
  background: var(--sp-black);
  border-color: var(--sp-black);
  color: var(--sp-white);
}
.pagination .page-list li.disabled span {
  color: var(--sp-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Filtros offcanvas móvil */
#offcanvas_search_filter .modal-header {
  background: var(--sp-black);
  color: var(--sp-white);
  padding: 16px 20px;
}
#offcanvas_search_filter .modal-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#offcanvas_search_filter .modal-header .close {
  color: var(--sp-white);
  opacity: 0.7;
}
#offcanvas_search_filter .modal-header .close:hover { opacity: 1; }
#offcanvas_search_filter .modal-footer .btn {
  border-radius: var(--sp-radius-sm) !important;
}

/* ============================================================
   BLOQUE 2 — Ficha de producto, Área cliente, Errores/Contacto
   ============================================================ */

/* ── FICHA DE PRODUCTO ─────────────────────────────────────── */

/* Flags en ficha */
.page-product .product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  list-style: none;
  padding: 0;
}
.page-product .product-flag {
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  line-height: 1.4;
}
.sp-flag-discount, .sp-flag-on-sale { background: var(--sp-red); color: var(--sp-white); }
.sp-flag-new                        { background: var(--sp-gold); color: var(--sp-black); }
.sp-flag-pack                       { background: var(--sp-black); color: var(--sp-white); }
.sp-flag-out_of_stock               { background: var(--sp-muted); color: var(--sp-white); }

/* Referencia y marca */
.product-reference, .product-manufacturer-name {
  font-size: 0.75rem;
  color: var(--sp-muted);
  margin-bottom: 5px;
}
.product-reference label,
.product-manufacturer-name label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-muted);
  margin-bottom: 0;
}
.product-reference span,
.product-manufacturer-name span { font-weight: 600; color: var(--sp-black); }

/* Ratings en ficha */
.star_content, .product-ratings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}
.tdstar:after,
.star_content .star-on,
.star_content .star-full { color: var(--sp-gold); }

/* Bloque de precio ficha */
.page-product .product-prices {
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}
.page-product .product-prices .product-price.has-discount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.page-product .product-prices .tax-shipping-delivery-label {
  font-size: 0.72rem;
  color: var(--sp-muted);
  margin-top: 6px;
  border-top: none;
}

/* Add-to-cart ficha */
.page-product .product-add-to-cart {
  border-top: 1px solid var(--sp-border);
  padding-top: 16px;
  margin-top: 8px;
}
.page-product .product-add-to-cart > .control-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sp-muted);
  margin-bottom: 10px;
  display: block;
}

/* Descripción corta */
.page-product .product-description-short {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sp-border);
}

/* Acordeones */
.product-bottom-accordions .card {
  border: 1px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
  margin-bottom: 4px;
  overflow: hidden;
}
.product-bottom-accordions .card-header {
  background: var(--sp-light) !important;
  padding: 0 !important;
  border-bottom: none !important;
}
.product-bottom-accordions .card-header .btn {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-black) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--sp-trans);
}
.product-bottom-accordions .card-header .btn:hover { color: var(--sp-gold) !important; }
.product-bottom-accordions .card-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #444;
  padding: 16px 18px;
}

/* Productos relacionados */
#related-products h3,
#crossselling-products h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sp-gold);
  display: inline-block;
}

/* ── ÁREA DE CLIENTE ────────────────────────────────────────── */

/* Tarjetas de mi cuenta (.customer-link__link) */
.customer-link__link {
  text-decoration: none !important;
  margin-bottom: 16px;
}
.customer-link__link .link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  text-align: center;
  transition: var(--sp-trans);
  color: var(--sp-black);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  height: 100%;
  min-height: 110px;
}
.customer-link__link .link-item:hover {
  border-color: var(--sp-gold);
  box-shadow: var(--sp-shadow);
  transform: translateY(-2px);
  color: var(--sp-gold);
}
.customer-link__link .link-item .material-icons {
  font-size: 1.8rem;
  color: var(--sp-gold);
}

/* Enlace de logout móvil */
.customer-link__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sp-muted);
  text-decoration: none;
  border-top: 1px solid var(--sp-border);
  margin-top: 16px;
}
.customer-link__logout:hover { color: var(--sp-red); }

/* Tabla historial de pedidos */
.table.table-labeled {
  font-size: 0.82rem;
  border-collapse: collapse;
  width: 100%;
}
.table.table-labeled .thead-default th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  background: var(--sp-light);
  padding: 10px 14px;
  border-bottom: 2px solid var(--sp-border);
  border-top: none;
}
.table.table-labeled tbody tr {
  border-bottom: 1px solid var(--sp-border);
  transition: var(--sp-trans);
}
.table.table-labeled tbody tr:hover td { background: var(--sp-light); }
.table.table-labeled tbody td,
.table.table-labeled tbody th {
  padding: 12px 14px;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid var(--sp-border);
}
.table.table-labeled .order-actions a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-black);
  text-decoration: none;
  padding: 5px 10px;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  transition: var(--sp-trans);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.table.table-labeled .order-actions a:hover {
  border-color: var(--sp-gold);
  color: var(--sp-gold);
}
.table.table-labeled .price-total {
  font-weight: 700;
  color: var(--sp-black);
}

/* Tarjetas de pedido en móvil */
.orders .order {
  margin-bottom: 16px;
}
.orders .order > div {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 16px;
}
.order__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  margin-bottom: 3px;
}
.order__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-black);
  margin-bottom: 0;
}
.order__actions a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sp-black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  transition: var(--sp-trans);
  margin-right: 6px;
}
.order__actions a:hover { border-color: var(--sp-gold); color: var(--sp-gold); }

/* Estado / label pill */
.label.label-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-white);
}

/* Bloque de dirección */
.address-block,
.address-item {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 18px;
  margin-bottom: 16px;
  transition: var(--sp-trans);
}
.address-block:hover,
.address-item:hover { border-color: var(--sp-gold); }

.address-alias, .address__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}
address {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--sp-black);
  font-style: normal;
  margin-bottom: 12px;
}
.address-footer a {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-black);
  text-decoration: none;
  transition: var(--sp-trans);
  margin-right: 6px;
  display: inline-block;
}
.address-footer a:hover { border-color: var(--sp-gold); color: var(--sp-gold); }

/* ── 404, CONTACTO Y BÚSQUEDA ───────────────────────────────── */

/* 404 */
.page-not-found-wrapper {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.sp-404-block { text-align: center; max-width: 500px; }
.sp-404-number {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  color: var(--sp-gold);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 16px;
  display: block;
}
.sp-404-block h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.sp-404-block p  { color: var(--sp-muted); font-size: 0.9rem; margin-bottom: 28px; }
.sp-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sp-404-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: var(--sp-radius-sm) !important;
}
.sp-404-search {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}
.sp-404-search input {
  flex: 1;
  height: 42px;
  font-size: 0.85rem;
  padding: 0 14px;
  border: 1.5px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
}
.sp-404-search .btn { height: 42px; padding: 0 18px; }

/* Contacto */
.page-contact .contact-form-wrapper {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 28px;
}
#contact-infos {
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 24px;
  font-size: 0.875rem;
}
#contact-infos h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sp-gold);
  display: inline-block;
}
#contact-infos ul { list-style: none; padding: 0; }
#contact-infos ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
#contact-infos ul li i { color: var(--sp-gold); font-size: 1rem; flex-shrink: 0; }

/* Búsqueda */
.page-search #main { padding-top: 20px; }
.page-search .no-search-results {
  text-align: center;
  padding: 48px 24px;
  background: var(--sp-light);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-muted);
}
.page-search .no-search-results h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sp-black);
  margin-bottom: 10px;
}

/* Notificaciones globales */
.js-alerts .alert {
  animation: fadeInDown 0.22s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Global: scrollbar y selección */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--sp-light); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sp-gold); }
::selection { background: rgba(212,169,74,0.22); color: var(--sp-black); }
:focus-visible { outline: 2px solid var(--sp-gold); outline-offset: 2px; }
