/* Solident Classic v3 (18/11/2026) — paleta corporativa (ver CLAUDE.md, «Identidad visual»).
   Diseño de referencia: design/home/ (preview). v2 = aspecto Warehouse, backup en backups/.
   Historia v1/v2: aspecto de Warehouse sobre Classic 2.1.3.
   Valores tomados del CSS que servía Warehouse en solident.es (17/11/2026):
   - modules/iqitthemeeditor/views/css/custom_s_1.css  (editor de tema IQIT)
   - themes/solidperfil3d_warehouse/assets/css/custom.css (tema hijo)
   Base de Warehouse: radio 0, contenedor a ancho completo, fondo blanco.
   Píldoras (32px) solo donde el tema hijo las ponía.
   Classic carga este archivo después de theme.css: aquí solo van diferencias. */

/* ========== Fuentes (Nunito Sans, OFL, local) ========== */
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../font/NunitoSans/NunitoSans10pt-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../font/NunitoSans/NunitoSans10pt-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../font/NunitoSans/NunitoSans10pt-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('../font/NunitoSans/NunitoSans10pt-ExtraBold.woff2') format('woff2'); }

/* ========== Tokens ========== */
:root {
  --sd-primary: #0762c8;        /* --main-color de Warehouse */
  --sd-accent: #ca5058;         /* subrayado de pestañas */
  --sd-warning: #a17738;        /* agotado */
  --sd-black: #000000;          /* texto principal */
  --sd-bg: #ffffff;             /* fondo blanco (18/11/2026, antes crema #fefdf9) */
  --sd-card: #f3f3f3;           /* tarjetas y superficies */
  --sd-card-hover: #ebebea;
  --sd-line: #e4e1da;           /* línea inferior de cabecera */
  --sd-night: #1a1918;          /* pie, negro cálido */
  --sd-night-2: #232221;
  --sd-cream: #f1eee7;          /* texto sobre oscuro */
  --sd-muted-dark: #b7b4af;     /* texto secundario sobre oscuro */
  --sd-blue-hover: #0552a8;
  --sd-ink: #1c1c1c;            /* precios, títulos de producto, formularios */
  --sd-heading: #333333;        /* títulos, hover de enlaces */
  --sd-text: #777777;           /* texto y enlaces */
  --sd-border: #e3e3e3;
  --sd-border-card: #c9c9c9;    /* rgba(201,201,201) */
  --sd-bg-soft: #f8f8f8;
  --sd-menu-hover: #f3f3f5;
  --sd-footer-first: #212121;
  --sd-footer-line: #686868;
  --sd-cart-count: #1bd33f;
  --sd-white: #ffffff;
  --sd-radius-pill: 40px;
  --sd-radius-card: 8px;
  --sd-shadow-hover: 0 0 25px 0 rgba(0, 0, 0, 0.15);
  --sd-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== Base ========== */
html { font-size: 14px; }

body, html { font-family: var(--sd-font); }
body { line-height: 1.4rem; color: var(--sd-text); background: var(--sd-bg); }

/* Contenedor fluido hasta 1440px (Classic fija width por breakpoint) */
.container { width: 100%; max-width: 1440px; }

#wrapper { background: var(--sd-bg); color: var(--sd-text); }
#index #wrapper { padding-top: 0; padding-bottom: 0; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--sd-font);
  color: var(--sd-heading);
  font-weight: 700;
  text-transform: none;
}

a { color: var(--sd-text); transition: none; }
a:hover, a:focus, #header a:hover { color: var(--sd-heading); }

.text-uppercase.products-section-title,
.products-section-title { text-transform: none !important; }

/* ========== Botones (radio 0 salvo píldoras del tema hijo) ========== */
.btn { border-radius: 0; text-transform: none; }
.btn-primary, .btn-secondary { text-transform: none; }

.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
  background: var(--sd-primary); color: var(--sd-white); border-color: transparent;
  border-radius: var(--sd-radius-pill); font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--sd-blue-hover); color: var(--sd-white); border-color: transparent;
}

.btn-secondary, .btn-secondary.disabled, .btn-secondary:disabled {
  background: var(--sd-bg-soft); color: var(--sd-heading); border-color: transparent;
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background: #dedede; color: #2e2e2e;
}

.btn-outline-secondary {
  background: var(--sd-bg-soft); color: var(--sd-heading); border: 1px solid var(--sd-border);
}
.btn-outline-secondary:hover { background: #dedede; color: #2e2e2e; border-color: var(--sd-border); }

/* ========== Formularios ========== */
.form-control {
  background: var(--sd-white); color: var(--sd-ink); border: 1px solid var(--sd-border); border-radius: 0;
}
.form-control::placeholder { color: var(--sd-ink); }
.form-control:focus, .input-group.focus { color: var(--sd-ink); border-color: var(--sd-primary); outline: none; }

.custom-checkbox input[type=checkbox] + span,
.custom-radio { background: var(--sd-white); border-color: var(--sd-primary); }
.custom-checkbox input[type=checkbox] + span .checkbox-checked { color: var(--sd-primary); }
.custom-radio input[type=radio]:checked + span { background-color: var(--sd-primary); }

.dropdown-menu { background: var(--sd-white); border: 1px solid var(--sd-primary); border-radius: 0; }
.dropdown-item { color: var(--sd-ink); }
.dropdown-item:hover, .dropdown-item:focus { color: var(--sd-ink); background: rgba(28, 28, 28, 0.05); }
.dropdown-item.active, .dropdown-item.active:hover, .dropdown-item.active:focus { background-color: var(--sd-primary); }
.dropdown:hover .expand-more { color: var(--sd-heading); }

.tooltip-inner { background: var(--sd-heading); color: var(--sd-white); }
.modal-backdrop.in, .modal-backdrop.show { background: rgba(194, 194, 194, 0.7); opacity: 1; }
.modal-content { border: none; border-radius: 0; }

/* ========== Cabecera ========== */
#header { box-shadow: none; color: var(--sd-black); background: var(--sd-white); border-bottom: 1px solid var(--sd-line); }
/* Logo SVG (templates/_partials/helpers.tpl): viewBox ajustado al trazo, 28px = alto real de las letras (= preview); columna a su ancho natural */
#header .logo { height: 28px; width: auto; max-width: none; }
#header #_desktop_logo { flex: 0 0 auto; width: auto; max-width: none; }
#header #_desktop_logo a { display: block; }
@media (max-width: 767px) { #header .logo { height: 22px; } }

#header .header-nav { background: var(--sd-white); border-bottom: none; font-size: 0.8571rem; color: var(--sd-text); }
#header .header-nav a { color: var(--sd-text); }
#header .header-nav a:hover { color: var(--sd-heading); }

#header .header-top { padding: 0.8571rem 0; color: var(--sd-text); }

/* Contacto en cabecera: retirado (decisión 18/11/2026). Lo definitivo es desenganchar
   ps_contactinfo de displayNav1 en el back office; esto lo oculta mientras tanto. */
#header #contact-link { display: none; }

/* Buscador (genérico: también la página 404; el de cabecera, en «Header: buscador e iconos») */
#search_widget form input[type=text],
.search-widget form input[type=text] {
  background: transparent; color: var(--sd-black); border: 1px solid var(--sd-text); border-radius: 0;
}
#search_widget form input[type=text]::placeholder { color: var(--sd-black); }
#search_widget form input[type=text]:focus { outline: none; border-color: var(--sd-primary); background: transparent; }
.search-widget form input[type=text]:focus + button .search,
.search-widget form button[type=submit] .search { color: var(--sd-black); }

/* Fila superior: menú ocupa el hueco central, buscador a la derecha */
@media (min-width: 768px) {
  #header .header-top .row { display: flex; align-items: center; }
  #header .header-top-right { display: flex; align-items: center; }
  #header #_desktop_top_menu { flex: 1; }
  #header .header-top-right #search_widget { float: none; flex: 0 0 auto; }
}

/* === Header: buscador e iconos === */
/* Réplica de .tools en design/home/home.src.html: iconos de 36 px en círculo, trazo negro,
   hover #f3f3f3, contador en píldora azul. Cuenta y carrito (displayNav2) van en la fila del logo
   (templates/_partials/header.tpl); SVG en modules/ps_customersignin y modules/ps_shoppingcart. */

/* Cajas de Classic fuera (márgenes, fondo gris o azul del carrito) en escritorio y móvil */
#header .header-nav .user-info,
#header .header-top .user-info,
#header .header-nav .blockcart,
#header .header-top .blockcart,
#header .header-nav .cart-preview.active,
#header .header-top .cart-preview.active {
  height: auto; margin: 0; padding: 0; background: transparent; text-align: center; white-space: nowrap;
}
#header .blockcart .header { margin: 0; }

#header .sd-icon {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; color: var(--sd-black);
}
#header .sd-icon svg { width: 20px; height: 20px; color: var(--sd-black); }
#header a.sd-icon:hover, #header a.sd-icon:focus-visible { background: var(--sd-card); }
#header a.sd-icon:focus-visible { outline: 2px solid var(--sd-primary); outline-offset: 2px; }

#header .blockcart .cart-products-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--sd-primary); color: var(--sd-white);
  font-size: 11px; font-weight: 800; line-height: 17px; text-align: center;
}
#header .blockcart.inactive .cart-products-count { display: none; }

/* Escritorio: una fila logo · menú · buscador · cuenta · carrito */
@media (min-width: 768px) {
  /* La franja superior queda vacía (displayNav1 = solo contacto, oculto arriba).
     Solo el nav del tema hijo: el de checkout (con logo) no lleva .sd-header-nav */
  #header .sd-header-nav { display: none; }
  #header .header-top-right { gap: 6px; }
  #header .header-top-right > #_desktop_user_info,
  #header .header-top-right > #_desktop_cart { flex: 0 0 auto; }

  /* Buscador: icono de 36 px que se abre hacia la izquierda al enfocarlo, sin mover la fila */
  #header .header-top-right #search_widget {
    position: relative; width: 36px; min-width: 0; max-width: none; height: 36px;
    margin: 0 0 0 18px; overflow: visible;
  }
  #header #search_widget form {
    position: absolute; top: 0; right: 0; z-index: 2;
    width: 36px; height: 36px; transition: width 0.2s ease;
    /* El input no baja de su padding (36 + 32 = 70 px): sin recorte, a 36 px invadía el icono de cuenta */
    overflow: hidden; border-radius: var(--sd-radius-pill);
  }
  #header #search_widget form:focus-within { width: 280px; }
  #header #search_widget form input[type=text] {
    width: 100%; min-width: 0; height: 36px; padding: 0 32px 0 36px;
    border: 1px solid transparent; border-radius: var(--sd-radius-pill);
    background: transparent; color: transparent; cursor: pointer; font-size: 14px;
  }
  #header #search_widget form input[type=text]::placeholder { color: transparent; }
  #header #search_widget form:hover input[type=text] { background: var(--sd-card); }
  #header #search_widget form:focus-within input[type=text] {
    background: var(--sd-white); color: var(--sd-black); border-color: var(--sd-primary); cursor: text;
  }
  #header #search_widget form:focus-within input[type=text]::placeholder { color: var(--sd-text); }
  #header #search_widget form i.clear { top: 50%; right: 8px; transform: translateY(-50%); }
  #header #search_widget form:not(:focus-within) i.clear { display: none !important; }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  #header #search_widget form { transition: none; }
}

/* Lupa (Material Icons de ps_searchbar) centrada en su hueco de 36 px; clic pasa al input */
#header #search_widget form i.search {
  top: 0; left: 0; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; font-size: 20px; color: var(--sd-black); pointer-events: none;
}

/* Móvil (<768 px): iconos en la barra de Classic; buscador en píldora a todo el ancho debajo */
@media (max-width: 767px) {
  #header #_mobile_user_info,
  #header #_mobile_cart { display: flex; align-items: center; height: 50px; margin-right: 4px; }
  #header #search_widget { width: 100%; max-width: none; margin: 0; overflow: visible; }
  #header #search_widget form input[type=text] {
    height: 40px; padding: 0 36px 0 40px; border: 1px solid transparent;
    border-radius: var(--sd-radius-pill); background: var(--sd-card); color: var(--sd-black); font-size: 16px;
  }
  #header #search_widget form input[type=text]::placeholder { color: var(--sd-text); }
  #header #search_widget form input[type=text]:focus { background: var(--sd-white); border-color: var(--sd-primary); }
  #header #search_widget form i.search { left: 2px; height: 40px; }
  #header #search_widget form i.clear { top: 50%; right: 8px; transform: translateY(-50%); }
}
/* === Fin header: buscador e iconos === */

/* === Menú principal (18/11/2026) ===
   Pestañas en píldora con chevron; panel blanco a todo el ancho: subcategorías a la izquierda, productos a la derecha.
   HTML en modules/ps_mainmenu/ps_mainmenu.tpl (.sd-mega). */
#_desktop_top_menu .top-menu[data-depth="0"] {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0;
}
#header .top-menu a[data-depth="0"] { letter-spacing: 0; text-transform: none; }
/* Píldora solo en escritorio: theme.js mueve este mismo HTML al menú hamburguesa */
@media (min-width: 768px) {
  #header .top-menu a[data-depth="0"] {
    display: flex; align-items: center; gap: 8px;
    height: 40px; margin: 5px 0; padding: 0 16px; border-radius: var(--sd-radius-pill);
    line-height: 40px; color: var(--sd-black); font-size: 14px; font-weight: 600;
  }
  #header .top-menu a[data-depth="0"]:hover,
  #header .top-menu li:hover > a[data-depth="0"] { background: var(--sd-menu-hover); color: var(--sd-primary); }
  #header .top-menu a[data-depth="0"]:focus-visible { outline: 2px solid var(--sd-primary); outline-offset: 2px; }
}
#_desktop_top_menu li.sd-has-mega > a[data-depth="0"]::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
#_desktop_top_menu li.sd-has-mega:hover > a[data-depth="0"]::after { transform: translateY(3px) rotate(-135deg); }

/* Submenú simple (pestañas sin panel .sd-mega) */
#header .top-menu .sub-menu {
  background: var(--sd-white);
  border: 1px solid #dfdfdf;
  box-shadow: 0 15px 25px 0 rgba(74, 63, 63, 0.15);
}
#header .top-menu .sub-menu a { color: var(--sd-black); }
#header .top-menu .sub-menu a[data-depth="1"] { font-weight: 700; text-transform: none; }
#header .top-menu .sub-menu a:hover { color: var(--sd-primary); }

/* Panel a todo el ancho: fondo, línea y sombra llegan al borde de la ventana con ::before.
   overflow-x: clip corta el sobrante de 100vw (barra de scroll) sin crear scroll ni recortar en vertical. */
#header { overflow-x: clip; }
#header .top-menu .sub-menu.sd-mega {
  left: 0; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; z-index: 18;
}
/* ::before/::after de .popover son la flecha de Bootstrap (height 0, borde 11px): se reinician */
#header .top-menu .sd-mega::after { display: none; }
/* top fijo: el JS de Classic lo pone en línea solo si el ratón entra por el <a> y lo cachea por clase;
   si entra por el margen del <li>, se queda en 0 y el panel tapa las pestañas. 100% = bajo la fila (offsetParent .container) */
@media (min-width: 768px) {
  #header .top-menu .sub-menu.sd-mega { top: 100% !important; }
}
#header .top-menu .sd-mega::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; height: auto; margin: 0;
  transform: translateX(-50%); background: var(--sd-white);
  border: 0; border-top: 1px solid var(--sd-line); box-shadow: 0 15px 25px 0 rgba(74, 63, 63, 0.12);
}
#header .sd-mega__nav { margin: 0; padding: 0; list-style: none; }

/* Escritorio: subcategorías apiladas a la izquierda; la que tiene el ratón (o la primera) muestra sus productos.
   Los productos van dentro de su <li>: pasar del texto a los productos no pierde el :hover. */
@media (min-width: 768px) {
  #header .sd-mega__nav { width: 260px; min-height: 340px; padding: 32px 0; }
  #header .top-menu .sd-mega .sd-mega__item,
  #header .top-menu .sd-mega .sd-mega__all {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-radius: var(--sd-radius-pill);
    color: var(--sd-text); font-size: 14px; font-weight: 400; line-height: 20px;
  }
  #header .top-menu .sd-mega .sd-mega__item::after {
    content: ''; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  #header .top-menu .sd-mega .sd-mega__nav > li:hover > .sd-mega__item,
  #header .top-menu .sd-mega .sd-mega__nav:not(:has(> li:hover > .sd-mega__products)) > li:first-child > .sd-mega__item {
    background: var(--sd-menu-hover); color: var(--sd-primary);
  }
  #header .top-menu .sd-mega a.sd-mega__all { margin-top: 8px; color: var(--sd-primary); font-weight: 600; }
  #header .top-menu .sd-mega a.sd-mega__all:hover { color: var(--sd-blue-hover); }

  #header .sd-mega__products {
    display: none; position: absolute; top: 0; bottom: 0; left: 260px; right: 0;
    grid-template-columns: repeat(4, minmax(0, 200px)); gap: 24px;
    align-content: center; padding: 32px 0 32px 48px;
  }
  #header .sd-mega__nav > li:hover > .sd-mega__products,
  #header .sd-mega__nav:not(:has(> li:hover > .sd-mega__products)) > li:first-child > .sd-mega__products { display: grid; }
  #header .top-menu .sd-mega a.sd-mega__product {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0;
    color: var(--sd-black); font-size: 14px; font-weight: 600; line-height: 18px; text-align: center;
  }
  #header .top-menu .sd-mega a.sd-mega__product:hover { color: var(--sd-primary); }
  #header .sd-mega__product img { display: block; width: 100%; max-width: 180px; height: auto; aspect-ratio: 1; object-fit: contain; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #header .sd-mega__products { grid-template-columns: repeat(3, minmax(0, 180px)); }
  #header .sd-mega__products > :nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #_desktop_top_menu li.sd-has-mega > a[data-depth="0"]::after { transition: none; }
}
/* === Fin menú principal === */

/* Menú móvil: negro con texto blanco */
#mobile_top_menu_wrapper { background: var(--sd-black); }
#mobile_top_menu_wrapper .top-menu a,
#mobile_top_menu_wrapper .top-menu .collapse-icons .material-icons,
#mobile_top_menu_wrapper .js-top-menu-bottom a { color: rgba(255, 255, 255, 0.98); }
#mobile_top_menu_wrapper .top-menu a[data-depth="0"] {
  padding: 0.8571rem 1rem; font-size: 1.1429rem; border-bottom: 1px solid #ebebeb;
}
#mobile_top_menu_wrapper .top-menu .sub-menu { background: var(--sd-black); }
#header #mobile_top_menu_wrapper .top-menu a,
#header #mobile_top_menu_wrapper .top-menu li:hover > a { color: rgba(255, 255, 255, 0.98); background: transparent; }
/* Panel .sd-mega en móvil: solo la lista de subcategorías, sin productos */
#header #mobile_top_menu_wrapper .sd-mega__nav { padding: 0.25rem 0 0.75rem 1.5rem; }
#header #mobile_top_menu_wrapper .sd-mega__item,
#header #mobile_top_menu_wrapper .sd-mega__all { display: block; padding: 0.6rem 0; font-size: 15px; }
#header #mobile_top_menu_wrapper .sd-mega__all { font-weight: 700; }
#mobile_top_menu_wrapper .sd-mega__products { display: none; }

/* Cabecera móvil */
@media (max-width: 767px) {
  #header .header-nav { border-bottom: 1px solid var(--sd-border); }
  #header .header-nav .top-logo { padding-top: 1.1429rem; padding-bottom: 1.1429rem; }
  #header #menu-icon .material-icons,
  #header #_mobile_user_info .material-icons,
  #header #_mobile_cart .material-icons { color: var(--sd-text); }
}

/* ========== Miga de pan y títulos ========== */
#wrapper .breadcrumb {
  padding: 0.8571rem 0;
  font-size: 0.8571rem;
  background: transparent;
  color: var(--sd-black);
}
#wrapper .breadcrumb li::after, #wrapper .breadcrumb li a { color: var(--sd-black); }

#main .page-header h1, #content-wrapper .page-title {
  color: var(--sd-heading);
  font-size: 2.1429rem;
  font-weight: 700;
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
}
#content-wrapper .section-title,
.products-section-title,
.featured-products .products-section-title,
#main .featured-products .products-section-title {
  color: var(--sd-black);
  font-size: 2.2857rem;
  font-weight: 800;
  text-align: left;
}
@media (max-width: 767px) { .products-section-title { font-size: 1.8333rem; } }
#wrapper .block-title,
#left-column .h6, #left-column .text-uppercase.h6 {
  color: var(--sd-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none !important;
  border-bottom: 1px solid var(--sd-border);
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
}

/* ========== Paginación ========== */
.pagination .page-list li { border: 1px solid transparent; }
.pagination .page-list li:hover,
.pagination .page-list li.current { border-color: var(--sd-heading); }
.pagination .current a, .pagination a { color: var(--sd-heading); }
.page-link { color: var(--sd-heading); }
.page-item.active .page-link { background-color: var(--sd-heading); border-color: var(--sd-heading); }

/* ========== Etiquetas de producto (píldoras) ========== */
.product-flags li.product-flag {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 2px 12px;
  border-radius: var(--sd-radius-pill);
  font-size: 0.8571rem;
  font-weight: 700;
  text-transform: none;
  background: var(--sd-ink);
  color: var(--sd-white);
}
.product-flags li.product-flag.discount,
.product-flags li.product-flag.on-sale,
.product-flags li.product-flag.new { background: var(--sd-ink); color: var(--sd-white); }
.product-flags li.product-flag.online-only,
.product-flags li.product-flag.pack { background: var(--sd-white); color: var(--sd-black); border: 1px solid var(--sd-border-card); }
.product-flags li.product-flag.out_of_stock { background: var(--sd-warning); color: #fff7f7; }
.has-discount .discount, .discount { background: var(--sd-ink); color: var(--sd-white); }
.has-discount.product-price, .has-discount p { color: var(--sd-ink); }

/* ========== Listado de productos ========== */
#products .products, .featured-products .products, .product-accessories .products { margin: 0 -0.2857rem; }
#products .products > .product, .featured-products .products > .product,
.product-accessories .products > .product { padding: 0.2857rem; }

.product-miniature .thumbnail-container {
  margin-bottom: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
.product-miniature .thumbnail-top { background: var(--sd-card); border-radius: var(--sd-radius-card); transition: background 0.15s; }
.product-miniature .thumbnail-top img { mix-blend-mode: multiply; }
@media (hover: hover) {
  .product-miniature .thumbnail-container:hover .thumbnail-top,
  .product-miniature .thumbnail-container:focus-within .thumbnail-top { background: var(--sd-card-hover); }
}
.product-miniature .highlighted-informations { background: transparent; box-shadow: none; }
.product-miniature .product-description { padding: 0.8571rem 0 0; background: transparent; text-align: left; }
.product-miniature .product-title { text-transform: none; text-align: left; }
.product-miniature .product-title a {
  color: var(--sd-black);
  font-size: 1.0714rem;
  font-weight: 700;
}
.product-miniature .product-price-and-shipping,
.product-miniature .product-price-and-shipping .price,
.product-price { color: var(--sd-ink); }
.product-miniature .product-price-and-shipping { text-align: left; font-variant-numeric: tabular-nums; }
.product-miniature .product-price-and-shipping .price { font-size: 1.1429rem; font-weight: 800; }
.product-miniature .highlighted-informations .quick-view:hover { color: var(--sd-primary); }

/* ========== Categoría ========== */
#category #wrapper { background: var(--sd-bg); }
@media (min-width: 992px) {
  #category #left-column { border-right: 1px solid var(--sd-border-card); margin-bottom: 64px; }
  #category #content-wrapper #main { padding: 0 32px; margin-bottom: 64px; }
}
@media (max-width: 991px) {
  #category #content-wrapper #main { margin-bottom: 48px; }
}

#search_filters, .block-categories { background: transparent; box-shadow: none; }
#search_filters .facet .facet-title {
  margin-bottom: 8px;
  padding: 8px 16px;
  border: 1px solid var(--sd-border-card);
  border-radius: 200px;
  color: var(--sd-ink);
}
#search_filters .facet > ul { padding: 16px 8px; }
.block-categories .collapse-icons .add:hover,
.block-categories .collapse-icons .remove:hover,
.block-categories .arrows .arrow-right:hover,
.block-categories .arrows .arrow-down:hover,
#subcategories ul li .subcategory-name:hover { color: var(--sd-primary); }
#subcategories ul li:hover .subcategory-image a { border-color: var(--sd-primary); }

/* Ordenar y filtrar: píldoras */
.products-sort-order .select-title,
#search_filter_toggler {
  padding: 8px 24px;
  border: 1px solid var(--sd-border);
  border-radius: 200px;
  background: var(--sd-white);
  color: var(--sd-ink);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
}
.products-sort-order .select-list:hover,
.facet-dropdown .select-list:hover { background: var(--sd-primary); color: var(--sd-white); }
.facet-dropdown.open > .select-title { border: 1px solid var(--sd-primary); }

/* Slider de precio (jQuery UI de ps_facetedsearch) */
#search_filters .ui-slider-horizontal { height: 4px; border: none; background: #ababab; }
#search_filters .ui-slider .ui-slider-range { background: var(--sd-ink); }
#search_filters .ui-slider .ui-slider-handle {
  top: -10px;
  width: 24px;
  height: 24px;
  border: 4px solid var(--sd-ink);
  border-radius: 50%;
  background: var(--sd-white);
}

/* ========== Ficha de producto ========== */
@media (min-width: 1024px) {
  #product .product-container { padding: 0 102px; }
}
#product .product-prices { margin-top: 16px; margin-bottom: 32px; }
#product .product-prices .current-price,
#product .product-prices .current-price-value {
  color: var(--sd-ink); font-size: 1.7143rem; font-weight: 700;
}

/* Bloque de compra en caja (col-product-info de Warehouse) */
#product .product-actions {
  padding: 16px;
  border: 1px solid var(--sd-border-card);
  border-radius: var(--sd-radius-card);
}
#product .product-variants > .product-variants-item .control-label {
  color: var(--sd-ink); font-size: 16px; font-weight: 600;
}
#product .product-variants .input-color,
#product .product-variants .color { width: 32px; height: 32px; }

#product .product-add-to-cart { border-top: 1px solid var(--sd-border-card); margin-top: 1rem; padding-top: 1rem; }

/* Añadir al carrito: píldora azul */
.product-actions .add-to-cart,
.product-actions .add-to-cart:hover,
.product-actions .add-to-cart:focus {
  height: auto;
  max-height: 36px;
  padding: 8px 16px;
  border-radius: var(--sd-radius-pill);
  background-color: var(--sd-primary);
  color: var(--sd-white);
  line-height: 20px;
}

/* Cantidad: contenedor en píldora */
#product .product-quantity .qty .bootstrap-touchspin {
  height: 36px;
  padding: 0 4px 0 12px;
  border: 1px solid #dbdbdd;
  border-radius: 200px;
  overflow: hidden;
  box-shadow: none;
}
#product .product-quantity #quantity_wanted {
  height: 34px; border: 0; background: transparent; text-align: center; color: var(--sd-ink);
}
#product .product-quantity .btn-touchspin { border: 0; background: var(--sd-white); color: var(--sd-ink); }

/* Imágenes */
.product-cover img { box-shadow: none; }
.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover,
#product-modal .modal-content .modal-body .product-images img:hover { border-color: var(--sd-heading); }
.product-cover .layer .zoom-in { color: var(--sd-white); }

/* Pestañas */
.tabs { background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }
.tabs .nav-tabs .nav-link,
.nav-tabs .nav-link { color: var(--sd-black); font-size: 1.1429rem; font-weight: 700; text-transform: none; }
.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover {
  color: var(--sd-black);
  border-bottom: 3px solid var(--sd-accent);
}

/* Modal de carrito */
#blockcart-modal .product-name { color: var(--sd-ink); }
#blockcart-modal .modal-header { background: var(--sd-white); }

/* ========== Checkout y cuenta ========== */
body#checkout section.checkout-step .address-item.selected { border-color: var(--sd-primary); }
.block-promo .promo-input + button { border-color: var(--sd-primary); }
.block-promo .promo-code-button.cancel-promo { color: var(--sd-primary); }
.page-my-account #content .links a:hover,
.page-my-account #content .links a:hover i { color: var(--sd-primary); }
.product-customization .product-message:focus { outline: none; border-color: var(--sd-primary); }
@media (min-width: 768px) {
  body#authentication #content-wrapper,
  body#registration #content-wrapper { max-width: 60%; margin: 0 auto; float: none; }
}

/* ========== Portada (slider ps_imageslider) ========== */
#carousel .carousel-item a,
#carousel .carousel-item figure { display: block; width: 100%; margin: 0; }
#carousel { border-radius: var(--sd-radius-card); overflow: hidden; }
#carousel .carousel-item img { width: 100%; height: auto; }
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i { color: var(--sd-white); }

/* ========== Pie ========== */
#footer { margin-top: 6.8571rem; padding-top: 0; background: var(--sd-night); color: var(--sd-cream); }

/* Franja superior: newsletter + redes (#footer-container-first) */
#footer > .container:first-child {
  padding-top: 2.1429rem;
  padding-bottom: 2.1429rem;
  background: var(--sd-night);
  color: var(--sd-white);
  /* franja a todo el ancho aunque el contenedor mida 1440px */
  box-shadow: 0 0 0 100vmax var(--sd-night);
  clip-path: inset(0 -100vmax);
}
.block_newsletter {
  max-width: none;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
  background: transparent;
  color: var(--sd-white);
}
.block_newsletter #block-newsletter-label,
.block_newsletter p { color: var(--sd-white); }
.block_newsletter #block-newsletter-label { font-size: 1.5rem; font-weight: 700; }
.block_newsletter form input[type=email] {
  background: var(--sd-night-2); color: var(--sd-white); border: 1px solid #3b3a38; border-radius: var(--sd-radius-pill);
}
.block_newsletter form input[type=email]::placeholder { color: var(--sd-text); }
.block_newsletter form input[type=email]:focus { border: none; outline: 1px solid var(--sd-text); }
.block_newsletter form .btn-primary { background: var(--sd-primary); color: var(--sd-white); }
.block_newsletter form .btn-primary:hover { background: var(--sd-blue-hover); color: var(--sd-white); }

/* Redes: iconos blancos sin caja */
.block-social ul li { background-color: transparent; filter: brightness(0) invert(1); }
.block-social ul li:hover { background-color: transparent; opacity: 0.7; }

/* Columnas de enlaces (#footer-container-main) */
.footer-container {
  margin-top: 0;
  padding-top: 4.5714rem;
  padding-bottom: 3.5714rem;
  border-top: 1px solid #2e2d2b;
  background: transparent;
  box-shadow: none;
  color: var(--sd-muted-dark);
}
@media (min-width: 992px) {
  .footer-container > .container { padding-left: 102px; padding-right: 102px; }
}
@media (max-width: 991px) {
  .footer-container { padding-top: 32px; padding-bottom: 32px; }
}
.footer-container a,
.footer-container li a,
.footer-container .block-contact,
.footer-container .block-contact a { color: var(--sd-muted-dark); }
.footer-container li a:hover, .account-list a:hover { color: var(--sd-white); opacity: 1; }

.footer-container .h3, .footer-container .h4,
.footer-container .myaccount-title, .footer-container .block-contact-title,
#footer #block_myaccount_infos .myaccount-title a {
  color: var(--sd-white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none !important;
  margin-bottom: 0.8em;
}
.footer-container li a, .footer-container .block-contact { font-size: 1rem; }
/* Título con línea a la derecha (block-title:after de Warehouse) */
@media (min-width: 768px) {
  .footer-container .links p.h3,
  .footer-container .block-contact-title { display: flex; align-items: center; gap: 0.5rem; }
  .footer-container .links p.h3::after,
  .footer-container .block-contact-title::after {
    content: none;
  }
}
.footer-container .links .title .material-icons,
.footer-container .collapse-icons .material-icons { color: var(--sd-white); }
.footer-container .links ul { background: transparent; }
@media (max-width: 767px) {
  .footer-container .links .title { border-bottom: 1px solid var(--sd-footer-line); }
  .footer-container .links ul > li { border-bottom: 1px solid var(--sd-footer-line); }
  #footer .footer-container .links ul > li a { color: var(--sd-muted-dark); }
}

/* Copyright (#footer-copyrights) */
.footer-container .text-sm-center {
  margin: 0;
  padding-top: 1.1429rem;
  padding-bottom: 1.1429rem;
  border-top: 1px solid var(--sd-footer-line);
}
.footer-container .text-sm-center a { color: var(--sd-text); }


/* ========== Portada v3 (templates/index.tpl) ========== */
#index #content.page-home { padding-top: 24px; }
.sd-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: var(--sd-radius-pill); font-size: 15px; font-weight: 700; }
.sd-btn-ghost { background: transparent; color: var(--sd-black); border: 1px solid var(--sd-black); }
.sd-btn-ghost:hover, .sd-btn-ghost:focus { background: var(--sd-black); color: var(--sd-white); }

/* Hero */
.sd-hero-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; padding: 56px 64px; background: var(--sd-card); border-radius: var(--sd-radius-card); overflow: hidden; }
.sd-hero h1 { margin: 0; color: var(--sd-black); font-size: clamp(32px, 4.6vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
.sd-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sd-hero-img { justify-self: center; width: 100%; max-width: 440px; height: auto; }
@media (max-width: 767px) {
  .sd-hero-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .sd-hero-img { max-width: 280px; order: -1; }
}

/* Categorías */
.sd-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.sd-cat { display: grid; gap: 8px; padding: 28px 28px 24px; background: var(--sd-card); border-radius: var(--sd-radius-card); color: var(--sd-black); transition: background 0.15s; }
.sd-cat:hover, .sd-cat:focus { background: var(--sd-card-hover); color: var(--sd-black); }
.sd-cat img { width: 100%; height: 200px; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 8px; }
.sd-cat h2 { margin: 0; color: var(--sd-black); font-size: 22px; font-weight: 800; }
.sd-cat span { color: var(--sd-primary); font-weight: 700; }
@media (max-width: 767px) { .sd-cats { grid-template-columns: 1fr; } .sd-cat img { height: 160px; } }

/* Listados de la portada: separación como en el preview */
#index .featured-products { margin-top: 72px; }

/* Texto SEO y FAQ */
.sd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 64px; padding-top: 96px; }
.sd-split > h2 { margin: 0; color: var(--sd-black); font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.1; text-wrap: balance; }
.sd-body { display: grid; gap: 16px; max-width: 68ch; color: #2b2a28; font-size: 16px; line-height: 1.65; }
.sd-body p, #index .sd-faq details p { color: #2b2a28; font-size: 16px; line-height: 1.65; }
.sd-body p { margin: 0; }
.sd-body h3 { margin: 8px 0 0; color: var(--sd-black); font-size: 18px; font-weight: 800; }
.sd-faq { border-top: 1px solid var(--sd-line); }
.sd-faq details { border-bottom: 1px solid var(--sd-line); }
.sd-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; color: var(--sd-black); font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sd-card); font-size: 20px; font-weight: 600; transition: transform 0.15s; }
.sd-faq details[open] summary::after { transform: rotate(45deg); background: var(--sd-primary); color: var(--sd-white); }
.sd-faq details p { margin: 0 0 20px; max-width: 68ch; color: #2b2a28; font-size: 16px; line-height: 1.65; }
@media (max-width: 860px) { .sd-split { grid-template-columns: 1fr; padding-top: 64px; } }
@media (prefers-reduced-motion: reduce) { .sd-faq summary::after, .sd-cat { transition: none; } }

/* ========== Móvil: rejilla y áreas táctiles (auditoría 18/11/2026) ========== */
@media (max-width: 575px) {
  .featured-products .products,
  #js-product-list .products {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0;
  }
  .featured-products .products > .product,
  #js-product-list .products > .product { width: auto; max-width: none; flex: none; padding: 0; }
  .featured-products .product-miniature .thumbnail-container,
  #js-product-list .product-miniature .thumbnail-container { width: 100%; margin: 0; }
  .featured-products .product-miniature img,
  #js-product-list .product-miniature img { width: 100%; height: auto; }
}
@media (max-width: 767px) {
  .product-actions .add-to-cart,
  .product-actions .add-to-cart:hover,
  .product-actions .add-to-cart:focus { max-height: none; min-height: 48px; }
  #product .product-quantity .qty .bootstrap-touchspin { height: 48px; }
  #product .product-quantity #quantity_wanted { height: 46px; font-size: 16px; }
  #product .product-quantity .btn-touchspin { min-width: 44px; min-height: 22px; }
  .product-variants .input-container label,
  .product-variants .radio-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
}

/* ===== Página CMS «Materiales dentales» (.sd-mat) ===== */
.sd-mat { max-width: 1000px; margin: 0 auto; color: var(--sd-black); font-size: 1rem; line-height: 1.6; }
.sd-mat p, .sd-mat li, .sd-mat td { color: var(--sd-black); }
.sd-mat a:not(.sd-mat-btn) { color: var(--sd-primary); }
.sd-mat-intro { font-size: 1.15rem; margin: 0 0 1rem; }
.sd-mat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; }
.sd-mat-nav a {
  padding: .45rem 1rem; border-radius: var(--sd-radius-pill);
  background: var(--sd-card); color: var(--sd-black) !important; font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
.sd-mat-nav a:hover { background: var(--sd-card-hover); }
.sd-mat h2 {
  font-size: 1.6rem; font-weight: 800; color: var(--sd-black);
  margin: 3.5rem 0 1rem; scroll-margin-top: 110px; text-transform: none;
}
.sd-mat-lead { font-size: 1.05rem; max-width: 760px; margin: 0 0 1.5rem; }

/* Pasos numerados */
.sd-mat-steps { counter-reset: sd-step; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.sd-mat-steps li { counter-increment: sd-step; position: relative; padding: 0 0 0 3rem; margin: 0 0 1rem; }
.sd-mat-steps li::before {
  content: counter(sd-step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--sd-primary); color: var(--sd-white);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Tabla de elección */
.sd-mat-table { overflow-x: auto; margin: 1.5rem 0 0; }
.sd-mat-table table { width: 100%; border-collapse: collapse; }
.sd-mat-table th, .sd-mat-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--sd-border); vertical-align: top; }
.sd-mat-table th { background: var(--sd-card); font-weight: 700; color: var(--sd-black); }
.sd-mat-table td:nth-child(2) a { font-weight: 700; text-decoration: none; }

/* Tarjetas en fila: imagen a la izquierda, texto a la derecha */
.sd-mat-list { display: flex; flex-direction: column; gap: 1.25rem; }
.sd-mat-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.75rem; align-items: start;
  padding: 1.5rem; background: var(--sd-card); border-radius: var(--sd-radius-card);
  scroll-margin-top: 110px;
}
.sd-mat-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  background: var(--sd-white); border-radius: var(--sd-radius-card);
}
.sd-mat-body h3 { font-size: 1.3rem; font-weight: 800; color: var(--sd-black); margin: 0 0 .5rem; }
.sd-mat-body p { margin: 0 0 .9rem; }
.sd-mat-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.sd-mat-tags span {
  padding: .2rem .7rem; border-radius: var(--sd-radius-pill);
  background: var(--sd-white); font-size: .8rem; font-weight: 700;
}
.sd-mat-ideal { font-weight: 800; margin: 0 0 .3rem !important; }
.sd-mat-body ul { margin: 0 0 1.25rem; padding-left: 1.1rem; list-style: disc; }
.sd-mat-body li { margin: .2rem 0; }
.sd-mat-buy { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 !important; }
.sd-mat-btn {
  display: inline-block; padding: .55rem 1.3rem; border-radius: var(--sd-radius-pill);
  background: var(--sd-primary); color: var(--sd-white); font-weight: 700; text-decoration: none;
  border: 2px solid var(--sd-primary);
}
.sd-mat-btn:hover, .sd-mat-btn:focus { background: var(--sd-blue-hover); border-color: var(--sd-blue-hover); color: var(--sd-white); }
.sd-mat-btn--alt { background: transparent; color: var(--sd-primary); }
.sd-mat-btn--alt:hover, .sd-mat-btn--alt:focus { background: var(--sd-primary); color: var(--sd-white); }

/* Nota y FAQ */
.sd-mat-note { padding: 1.1rem 1.25rem; border-left: 4px solid var(--sd-primary); background: var(--sd-card); border-radius: 0 var(--sd-radius-card) var(--sd-radius-card) 0; }
.sd-mat-faq h3 { font-size: 1.25rem; font-weight: 800; color: var(--sd-black); margin: 2.5rem 0 .25rem; }
.sd-mat-qa { padding: 1rem 0; border-bottom: 1px solid var(--sd-border); }
.sd-mat-qa h4 { font-size: 1rem; font-weight: 800; color: var(--sd-black); margin: 0 0 .35rem; text-transform: none; }
.sd-mat-qa p { margin: 0; max-width: 760px; }


@media (max-width: 767px) {
  .sd-mat-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .sd-mat-card img { max-width: 220px; margin: 0 auto; }
  .sd-mat h2 { font-size: 1.35rem; margin-top: 2.5rem; }
}
