/* ==========================================================================
   VISCOM LEDs — tema hijo de classic
   Capa de diseño basada en el mockup v5. PrestaShop carga este archivo
   (theme-custom) después de theme.css de classic y de los CSS de módulos.

   Tipografía: no se fija aquí. La pone el kit global de Creative Elements
   (Poppins) y todo lo del tema la hereda, para que no haya mezcla de fuentes.

   Índice
   01. Variables
   02. Base y tipografía
   03. Botones
   04. Formularios
   05. Etiquetas, alertas y utilidades
   06. Listados: cabecera, orden, paginación
   07. Miniatura de producto (tarjeta)
   08. Filtros (ps_facetedsearch y Amazzing Filter)
   09. Ficha de producto (partes del tema, no CE)
   10. Modal de carrito, carrito y checkout
   11. Cuenta de cliente y acceso / registro
   12. Módulos de terceros heredados de clearis
   13. Responsive
   ========================================================================== */

/* 01. Variables ----------------------------------------------------------- */
:root {
  --vc-red: #e30613;
  --vc-red-dark: #b8050f;
  --vc-ink: #0b0c0e;
  --vc-ink-2: #17191c;
  --vc-yellow: #ffc400;
  --vc-paper: #f4f5f6;
  --vc-paper-2: #eef0f1;
  --vc-line: #d9dde1;
  --vc-line-strong: #cbd0d4;
  --vc-muted: #666b70;
  --vc-white: #fff;
  --vc-green: #26884b;
  --vc-max: 1340px;
  --vc-gutter: 24px;
  --vc-transition: .2s ease;
}

/* 02. Base y tipografía ---------------------------------------------------- */
html,
body {
  color: var(--vc-ink);
  letter-spacing: 0;
}

body {
  background: var(--vc-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#wrapper {
  background: var(--vc-white);
  padding-top: 32px;
  box-shadow: none;
}

/* Ancho máximo del mockup (1340 px). Se mantiene el padding de Bootstrap
   del .container para que las .row (margen -15 px) no desborden. */
#wrapper > .container {
  width: min(var(--vc-max), calc(100% - (var(--vc-gutter) * 2)));
  max-width: none;
}

/* Las páginas de listado ya se dibujaban a ancho completo en clearis */
#category #wrapper > .container {
  width: min(var(--vc-max), calc(100% - (var(--vc-gutter) * 2)));
  min-width: 0;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  color: var(--vc-ink);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

h1, .h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
h2, .h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
h3, .h3 { font-size: 18px; line-height: 1.2; }

.page-header h1,
.page-content.page-cms h1 {
  margin-bottom: 24px;
}

p, li, td, th, label, .form-control-label {
  color: inherit;
}

a {
  color: var(--vc-ink);
  transition: color var(--vc-transition);
}

a:hover,
a:focus {
  color: var(--vc-red);
  text-decoration: none;
}

.text-muted,
.page-content p.text-muted {
  color: var(--vc-muted) !important;
}

hr {
  border-top-color: var(--vc-line);
}

.card,
.block-category,
.page-content,
.page-content.card,
#content.page-content,
.card-block {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Migas: Creative Elements pinta las suyas (en clearis también se ocultaban) */
#wrapper .breadcrumb {
  display: none;
}

/* 03. Botones -------------------------------------------------------------- */
.btn {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--vc-transition), color var(--vc-transition),
    border-color var(--vc-transition), transform var(--vc-transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .material-icons {
  font-size: 18px;
  margin: 0;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: var(--vc-red);
  border-color: var(--vc-red);
  color: var(--vc-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus {
  background-color: var(--vc-red-dark);
  border-color: var(--vc-red-dark);
  color: var(--vc-white);
}

.btn-primary.disabled,
.btn-primary:disabled {
  opacity: .45;
  transform: none;
}

.btn-secondary,
.btn-tertiary {
  background-color: var(--vc-white);
  border-color: var(--vc-ink);
  color: var(--vc-ink);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-tertiary:hover,
.btn-tertiary:focus {
  background-color: var(--vc-ink);
  border-color: var(--vc-ink);
  color: var(--vc-white);
}

/* Variantes del mockup, para usarlas desde CE o CMS con la clase */
.vc-btn-yellow { background: var(--vc-yellow) !important; border-color: var(--vc-yellow) !important; color: #111 !important; }
.vc-btn-dark   { background: #111 !important; border-color: #111 !important; color: var(--vc-white) !important; }
.vc-btn-line   { background: transparent !important; border-color: currentColor !important; }

.btn-unstyle,
.btn-link {
  min-height: 0;
  padding: 0;
  text-transform: none;
}

/* 04. Formularios ---------------------------------------------------------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  border-radius: 0;
  font-family: inherit;
}

.form-control {
  min-height: 46px;
  padding: 11px 13px;
  background: var(--vc-white);
  border: 1px solid var(--vc-line-strong);
  color: var(--vc-ink);
  font-size: 14px;
}

.form-control:focus,
.input-group.focus {
  outline: 0 !important;
  border-color: var(--vc-ink);
  box-shadow: 0 0 0 2px var(--vc-yellow);
  color: var(--vc-ink);
}

.form-control-label,
.form-group > label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vc-ink);
}

.form-control-comment {
  color: var(--vc-muted);
  font-size: 12px;
}

.input-group .input-group-btn > .btn {
  min-height: 46px;
}

/* Casillas y radios */
.custom-checkbox input[type="checkbox"] + span,
.custom-radio {
  border: 1px solid var(--vc-line-strong);
  border-radius: 0;
}

.custom-radio {
  border-radius: 50%;
}

.custom-checkbox input[type="checkbox"]:checked + span {
  background: var(--vc-ink);
  border-color: var(--vc-ink);
}

.custom-checkbox input[type="checkbox"] + span .checkbox-checked {
  color: var(--vc-white);
  font-size: 16px;
  margin: -2px;
}

.custom-radio input[type="radio"]:checked + span {
  background-color: var(--vc-red);
}

.input-group .input-group-btn > .btn[data-action="show-password"] {
  background: var(--vc-ink);
  color: var(--vc-white);
  padding: 0 14px;
}

/* Spinner de cantidad (Bootstrap TouchSpin) */
.bootstrap-touchspin .form-control,
.bootstrap-touchspin input.form-control {
  min-height: 46px;
  border-color: var(--vc-line-strong);
  text-align: center;
  font-weight: 700;
}

.bootstrap-touchspin .input-group-btn-vertical {
  position: relative;
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
  display: table-cell;
}

.bootstrap-touchspin .input-group-btn-vertical > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  min-height: 23px;
  padding: 2px 10px;
  margin-left: -1px;
  position: relative;
  background: var(--vc-paper);
  border: 1px solid var(--vc-line-strong);
  color: var(--vc-ink);
  transform: none;
}

.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
  margin-top: -1px;
}

.bootstrap-touchspin .input-group-btn-vertical i {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 14px;
  font-weight: 400;
}

/* 05. Etiquetas, alertas y utilidades -------------------------------------- */
.vc-kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--vc-red);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc-pill {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid var(--vc-line);
  font-size: 9px;
  font-weight: 700;
}

.alert {
  border-radius: 0;
  border-width: 0 0 0 5px;
  font-size: 13px;
}

.alert-info    { background: var(--vc-paper); border-color: var(--vc-ink); color: var(--vc-ink); }
.alert-success { background: #edf7f0; border-color: var(--vc-green); color: #1d5e36; }
.alert-warning { background: #fff8e0; border-color: var(--vc-yellow); color: #5c4700; }
.alert-danger  { background: #fdecec; border-color: var(--vc-red); color: #8c0a12; }

.label,
.tag,
.badge {
  border-radius: 0;
}

/* 06. Listados: cabecera, orden, paginación -------------------------------- */
.block-category {
  min-height: 0;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
}

.block-category h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  margin: 0 0 14px;
}

.block-category .block-category-inner #category-description,
.block-category #category-description {
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.block-category .category-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#subcategories .subcategory-heading,
.products-section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
}

#subcategories ul li .subcategory-image a {
  border: 1px solid var(--vc-line);
  padding: 0;
}

#subcategories ul li:hover .subcategory-image a {
  border: 1px solid var(--vc-ink);
  padding: 0;
}

#subcategories ul li .subcategory-name {
  color: var(--vc-ink);
  font-size: 13px;
  font-weight: 700;
}

/* La fila "ordenar por" ya estaba oculta en clearis */
.sort-by-row {
  display: none !important;
}

.products-selection {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vc-line);
}

.products-selection .total-products p,
.products-selection .showing {
  color: var(--vc-muted);
  font-size: 12px;
  margin: 0;
}

.products-sort-order .select-title {
  min-height: 42px;
  border: 1px solid var(--vc-line-strong);
  font-size: 12px;
  font-weight: 700;
}

.products-sort-order .select-list:hover,
.brands-sort .select-list:hover,
.suppliers-sort .select-list:hover {
  background: var(--vc-ink);
  color: var(--vc-white);
}

.pagination {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--vc-line);
  font-size: 12px;
}

.pagination .page-list {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pagination a,
.pagination .disabled {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--vc-line);
  color: var(--vc-ink);
  font-weight: 700;
}

.pagination a:hover {
  border-color: var(--vc-ink);
  color: var(--vc-ink);
}

.pagination .current a {
  background: var(--vc-ink);
  border-color: var(--vc-ink);
  color: var(--vc-white);
  font-size: inherit;
}

/* 07. Miniatura de producto (tarjeta) -------------------------------------- */
#products .products,
.featured-products .products,
.product-accessories .products {
  justify-content: flex-start;
}

.products .js-product.product {
  display: flex;
  margin-bottom: 15px;
}

.product-miniature.vc-card {
  display: flex;
  width: 100%;
}

.vc-card .thumbnail-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  box-shadow: none;
  transition: border-color var(--vc-transition);
}

.vc-card .thumbnail-container:hover,
.vc-card .thumbnail-container:focus-within {
  border-color: var(--vc-ink);
}

.vc-card .vc-card__media {
  position: relative;
  overflow: hidden;
  background: var(--vc-white);
  border-bottom: 1px solid var(--vc-line);
}

.vc-card .thumbnail-container .product-thumbnail {
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
}

.vc-card .thumbnail-container .product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.vc-card .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.035);
}

/* Vista rápida: franja inferior sobre la imagen */
.vc-card .highlighted-informations {
  display: block;
  padding: 8px 0;
  background: rgba(11, 12, 14, .92);
  box-shadow: none;
}

.vc-card .highlighted-informations .quick-view {
  color: var(--vc-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc-card .highlighted-informations .quick-view:hover {
  color: var(--vc-yellow);
}

.vc-card .highlighted-informations .variant-links {
  background: transparent;
}

.vc-card .vc-card__info {
  position: static;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px;
  background: transparent;
  text-align: left;
}

.vc-card .vc-card__kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--vc-red);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc-card .product-title {
  margin: 0 0 12px;
  text-align: left;
  text-transform: none;
}

.vc-card .product-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.25em * 3);
  color: var(--vc-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.vc-card .product-title a:hover {
  color: var(--vc-red);
}

.vc-card .vc-card__buy {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--vc-line);
}

.vc-card .product-price-and-shipping {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 10px;
  text-align: left;
  color: var(--vc-ink);
}

.vc-card .product-price-and-shipping .price {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.vc-card .regular-price {
  order: 2;
  color: var(--vc-muted);
  font-size: 13px;
}

.vc-card .product-price-and-shipping .discount-product {
  display: none;
}

.vc-card .comments_note {
  text-align: left;
}

/* Flags de producto */
.product-flags {
  top: 11px;
  left: 11px;
  gap: 4px;
  pointer-events: none;
}

.product-flags li.product-flag,
.product-miniature .product-flags li.product-flag {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  background: var(--vc-white);
  color: var(--vc-ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px var(--vc-line);
}

.product-flags li.product-flag.new {
  background: var(--vc-yellow);
  color: #111;
  box-shadow: none;
}

.product-flags li.product-flag.discount-percentage,
.product-flags li.product-flag.discount-amount,
.product-flags li.product-flag.discount,
.product-flags li.product-flag.on-sale {
  background: var(--vc-red);
  color: var(--vc-white);
  box-shadow: none;
}

.product-flags li.product-flag.on-sale {
  width: auto;
  text-align: left;
}

.product-flags li.product-flag.out_of_stock {
  background: #111;
  color: var(--vc-white);
  box-shadow: none;
}

.product-flags li.product-flag.online-only {
  position: static;
  font-size: 9px;
}

.product-flags li.product-flag.online-only::before {
  display: none;
}

.product-flags li.product-flag.pack {
  background: var(--vc-green);
  color: var(--vc-white);
  box-shadow: none;
}

/* 08. Filtros -------------------------------------------------------------- */
#search_filters,
#search_filters_brands,
#search_filters_suppliers {
  padding: 22px;
  background: var(--vc-paper);
  box-shadow: none;
}

#search_filters .h6,
#search_filters_brands .h6,
#search_filters_suppliers .h6,
#search_filters .facet .facet-title {
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

#search_filters .facet {
  padding-top: 14px;
  border-top: 1px solid var(--vc-line);
}

#search_filters .facet .facet-label a {
  color: var(--vc-ink-2);
  font-size: 13px;
}

#search_filters .facet .facet-label a:hover,
#search_filters .facet .facet-label.active a {
  color: var(--vc-red);
}

.active_filters {
  padding: 12px 16px;
  background: var(--vc-paper);
}

.active_filters .filter-block {
  padding: 6px 10px;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.ui-slider .ui-slider-range,
.ui-widget-header {
  background: var(--vc-red);
}

/* Amazzing Filter */
#amazzing_filter {
  padding: 22px;
  background: var(--vc-paper);
  border: 0;
  box-shadow: none !important;
}

#amazzing_filter .title_block {
  margin-bottom: 14px;
  color: var(--vc-ink);
  font-family: inherit;
  font-size: 22px !important;
  font-weight: 700 !important;
}

#amazzing_filter .af_filter {
  font-family: inherit !important;
}

#amazzing_filter .af_subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

#amazzing_filter a::after {
  color: var(--vc-red) !important;
}

.has-compact-filter #amazzing_filter .compact-toggle,
a.btn.btn-primary.full-width.viewFilteredProducts {
  background: var(--vc-red) !important;
  border-color: var(--vc-red) !important;
  color: var(--vc-white) !important;
}

/* 09. Ficha de producto (partes del tema, no CE) --------------------------- */
#product .product-prices .current-price,
.product-price {
  color: var(--vc-ink);
  font-weight: 700;
}

#product .product-prices .current-price .current-price-value {
  font-size: 30px;
}

.product-discount .regular-price {
  color: var(--vc-muted);
}

.has-discount .discount,
.has-discount.product-price .discount {
  background: var(--vc-red);
  color: var(--vc-white);
  font-weight: 700;
}

.product-actions .add-to-cart {
  min-height: 46px;
  height: auto;
  padding: 12px 22px;
}

.product-information,
#product-description-short,
.product-description {
  color: var(--vc-ink-2);
}

.tabs {
  padding: 24px;
  box-shadow: none;
  border: 1px solid var(--vc-line);
}

.tabs .nav-tabs {
  border-bottom: 1px solid var(--vc-line);
}

.tabs .nav-tabs .nav-link {
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover {
  border-bottom-color: var(--vc-red);
  color: var(--vc-ink);
}

.product-images > li.thumb-container > .thumb.selected,
.product-images > li.thumb-container > .thumb:hover {
  border-color: var(--vc-red);
}

/* Bloques de la ficha montada con Creative Elements (heredado de clearis) */
#product .titulo-apartado-producto h2.elementor-heading-title {
  width: fit-content;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 3px solid var(--vc-red);
}

#product .elementor-nav-tabs a.elementor-item.elementor-item-active:not(#e) {
  border-radius: 0;
  background: var(--vc-white) !important;
  box-shadow: inset 0 -3px var(--vc-red);
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

.contenido-pestanas-producto {
  border-radius: 0;
  background: var(--vc-white) !important;
  border: 1px solid var(--vc-line);
}

/* 10. Modal de carrito, carrito y checkout --------------------------------- */

/* 10.1 Modal "producto añadido" */
#blockcart-modal .modal-content {
  border: 0;
  border-radius: 0;
}

#blockcart-modal .modal-header {
  background: #111;
  border-top: 6px solid var(--vc-yellow);
  border-radius: 0;
}

#blockcart-modal .modal-title {
  color: var(--vc-white);
  font-size: 15px;
  font-weight: 700;
}

#blockcart-modal .modal-title .material-icons {
  color: var(--vc-yellow);
}

#blockcart-modal .modal-header .close .material-icons {
  color: var(--vc-white);
}

#blockcart-modal .product-name {
  color: var(--vc-ink) !important;
  font-size: 18px;
  font-weight: 700;
}

#blockcart-modal .cart-content {
  padding-left: 24px;
  border-left: 1px solid var(--vc-line);
}

#blockcart-modal .cart-content-btn .btn {
  margin-bottom: 8px;
}

/* 10.2 Página del carrito */
.cart-grid-body .card,
#cart .cart-grid-right .card {
  border: 1px solid var(--vc-line);
  border-radius: 0;
  box-shadow: none;
}

/* Cabecera "Carrito" como las tarjetas del checkout */
.cart-container > .card-block {
  padding: 20px 28px;
}

.cart-grid-body .cart-container .card-block h1 {
  margin: 0;
  color: var(--vc-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cart-container hr.separator {
  margin: 0;
  border-top: 1px solid var(--vc-line);
}

.cart-overview {
  padding: 0 28px;
}

.cart-items {
  margin: 0;
}

.cart-item,
.cart-items .cart-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--vc-line);
}

.cart-items .cart-item:last-child {
  border-bottom: 0;
}

/* Línea de producto: imagen | datos | cantidad, total y papelera */
.cart-item .product-line-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: center;
}

.cart-item .product-line-grid > [class*="col-"],
.cart-item .product-line-actions > .row > [class*="col-"],
.cart-item .product-line-actions .row .row > [class*="col-"] {
  float: none;
  width: auto;
  max-width: none;
  padding: 0;
}

.cart-item .product-line-grid > .clearfix {
  display: none;
}

.cart-item .product-line-grid-left .product-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--vc-line);
  background: var(--vc-white);
}

.cart-item .product-line-grid-body > br {
  display: none;
}

.cart-item .product-line-grid-body > .product-line-info {
  margin: 0 0 4px;
}

.cart-item .product-line-grid-body > .product-line-info > a.label,
.product-line-grid-body .product-line-info a.label {
  display: block;
  padding: 0;
  color: var(--vc-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  white-space: normal;
}

.cart-item .product-line-grid-body > .product-line-info > a.label:hover {
  color: var(--vc-red);
}

.cart-item .product-line-info.product-price {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 400;
}

.cart-item .product-line-info.product-price .price,
.cart-item .product-line-info.product-price .current-price {
  color: var(--vc-muted);
  font-size: 13px;
  font-weight: 400;
}

.cart-item .product-line-info.product-price .regular-price {
  margin-right: 6px;
  color: var(--vc-muted);
  text-decoration: line-through;
}

.cart-item .product-line-info .discount {
  padding: 2px 6px;
  background: var(--vc-red);
  color: var(--vc-white);
  font-size: 11px;
  font-weight: 700;
}

.cart-item .product-line-grid-body > .product-line-info:not(.product-price) span.label,
.cart-item .product-line-grid-body > .product-line-info:not(.product-price) span.value {
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.cart-item .product-line-grid-body > .product-line-info:not(.product-price) span.label {
  font-weight: 700;
}

.cart-item .product-line-actions > .row,
.cart-item .product-line-actions .row .row {
  display: flex;
  align-items: center;
  margin: 0;
}

.cart-item .product-line-actions > .row > .hidden-md-up {
  display: none;
}

.cart-item .product-line-actions > .row > .col-md-10 {
  flex: 1;
}

.cart-item .product-line-actions .row .row > .qty {
  flex: 0 0 120px;
}

.cart-item .product-line-actions .row .row > .price {
  flex: 1;
  text-align: right;
}

.cart-item .product-line-actions .product-price {
  color: var(--vc-ink);
  font-size: 16px;
  font-weight: 700;
}

.cart-item .product-line-actions .product-price strong {
  font-weight: 700;
}

.cart-item .product-line-actions > .row > .text-xs-right {
  flex: 0 0 44px;
  text-align: right;
}

.cart-item .cart-line-product-actions .remove-from-cart {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  color: var(--vc-muted);
  transition: color var(--vc-transition), background-color var(--vc-transition);
}

.cart-item .cart-line-product-actions .remove-from-cart:hover {
  background: #fff3f3;
  color: var(--vc-red);
}

.cart-item .cart-line-product-actions .remove-from-cart .material-icons {
  float: none !important;
  margin: 0;
  font-size: 20px;
}

.cart-item .bootstrap-touchspin {
  width: 100px;
}

.cart-grid-body > a.label {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--vc-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.cart-grid-body > a.label:hover {
  color: var(--vc-red);
}

.cart-overview .no-items {
  display: block;
  padding: 24px 0;
  color: var(--vc-muted);
}

#cart .current-price {
  color: var(--vc-ink);
}

#cart .has-discount .discount {
  background: var(--vc-red);
}

@media (max-width: 767px) {
  .cart-container > .card-block,
  .cart-overview {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cart-item .product-line-grid {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .cart-item .product-line-grid-left .product-image img {
    width: 80px;
    height: 80px;
  }

  .cart-item .product-line-grid-right {
    grid-column: 1 / -1;
  }

  body .card-block.cart-summary-totals .cart-summary-line.cart-total .label {
    font-size: 14px;
  }

  body .card-block.cart-summary-totals .cart-summary-line.cart-total .value {
    font-size: 19px;
  }
}

/* 10.3 Resumen (carrito y checkout): tarjeta con secciones */
.cart-grid-right .cart-summary,
body#checkout .cart-grid-right .card {
  border: 1px solid var(--vc-line);
  border-radius: 0;
  box-shadow: none;
  background: var(--vc-white);
}

.cart-grid-right .cart-summary .card-block,
body#checkout .cart-grid-right .card .card-block {
  padding: 18px 22px;
}

.cart-summary-products {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.cart-summary-products > p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.cart-summary-products > p:last-of-type a,
.cart-summary-products.js-cart-summary-products a {
  color: var(--vc-muted) !important;
  font-size: 12px;
  font-weight: 700;
}

.cart-summary-products #cart-summary-product-list {
  flex-basis: 100%;
}

body#checkout #cart-summary-product-list img {
  border: 1px solid var(--vc-line);
}

body#checkout .cart-grid-right .card .cart-summary-subtotals-container {
  padding: 18px 22px;
  border-top: 1px solid var(--vc-line);
  border-bottom: 0;
}

.cart-summary-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 0;
}

/* La línea de transporte lleva un tercer bloque con el detalle del envío
   (hook displayCheckoutSubtotalDetails): va en su propia línea, a la derecha,
   y si viene vacío no ocupa sitio. */
.cart-summary-line > div {
  flex: 0 0 100%;
  text-align: right;
}

.cart-summary-line > div small.value {
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 400;
}

.cart-summary-line > div:has(> small.value:empty) {
  display: none;
}

.cart-summary-line::after {
  display: none;
}

.cart-summary-line .label,
.cart-summary-line .value,
body#checkout .cart-grid-right .card .cart-summary-subtotals-container .cart-summary-line .label,
body#checkout .cart-grid-right .card .cart-summary-subtotals-container .cart-summary-line .value {
  float: none;
  padding: 0;
  color: var(--vc-ink);
  font-size: 14px;
  white-space: normal;
}

.cart-summary-line .label { font-weight: 400; }
.cart-summary-line .value { font-weight: 700; text-align: right; }

.cart-summary-line:not(:last-child),
body#checkout .cart-grid-right .card .cart-summary-subtotals-container .cart-summary-line:not(:last-child) {
  margin-bottom: 10px;
}

.card-block.cart-summary-totals,
.cart-grid-right .cart-summary .card-block.cart-summary-totals {
  padding: 16px 22px;
  border-top: 1px solid var(--vc-line);
}

.card-block.cart-summary-totals .cart-summary-line {
  padding: 4px 0;
}

.card-block.cart-detailed-subtotals + .cart-summary-totals .cart-total {
  border-top: 0;
}

.card-block.cart-summary-totals .cart-summary-line.cart-total {
  padding: 4px 0 8px;
}

.card-block.cart-summary-totals .cart-summary-line.cart-total .label,
.cart-summary-line.cart-total .label {
  font-size: 16px;
  font-weight: 700;
}

.card-block.cart-summary-totals .cart-summary-line.cart-total .value,
.cart-summary-line.cart-total .value {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.card-block.cart-summary-totals .cart-summary-line span.sub,
.cart-summary-line .label.sub,
.cart-summary-line .value.sub {
  color: var(--vc-muted);
  font-size: 13px;
  font-weight: 400;
}

.cart-summary .checkout {
  padding: 0 22px 22px;
}

.cart-summary .checkout .btn {
  width: 100%;
}

/* Código promocional: franja gris al pie del resumen */
.cart-grid-right .block-promo {
  margin: 0;
  padding: 16px 22px;
  background: var(--vc-paper);
  border-top: 1px solid var(--vc-line);
}

.block-promo .promo-code-button {
  padding: 0;
  text-align: left;
}

.block-promo .promo-code-button a,
.block-promo .promo-code-button.cancel-promo {
  color: var(--vc-ink) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.block-promo .promo-code {
  padding: 12px 0 0;
  background: transparent;
}

.block-promo .promo-code form {
  display: flex;
  text-align: left;
}

.block-promo .promo-input {
  flex: 1;
  width: auto;
  height: 46px;
  margin: 0;
  border: 1px solid var(--vc-line-strong);
  background: var(--vc-white);
  text-indent: 4px;
}

.block-promo .promo-input + button {
  min-height: 46px;
  margin: 0 0 0 -1px;
  border: 1px solid var(--vc-ink);
  background: var(--vc-ink);
  color: var(--vc-white);
}

.block-promo .promo-name .material-icons,
.collapse-button {
  color: var(--vc-red) !important;
}

.block-promo .promo-name .cart-summary-line span,
.cart-grid-right .promo-discounts .cart-summary-line .label .code {
  color: var(--vc-red);
}

.block-promo.promo-highlighted {
  padding: 12px 22px 0;
  text-align: left;
}


/* 10.4 Footer: el de Creative Elements ocupa todo el ancho.
   classic añade relleno (y en el checkout, además, fondo blanco) al #footer
   pensando en su pie propio, y alrededor del de CE queda un marco. */
#footer,
body#checkout #footer {
  padding: 0;
  background: transparent;
}

/* 10.4b Checkout: reinicio del .nav (el de classic choca con el menú) */
#checkout .nav {
  height: initial;
  width: initial;
  background-color: initial;
  position: initial;
}

/* 10.5 Checkout: indicador de pasos (lo construye assets/js/custom.js) */
.vc-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--vc-steps, 4), 1fr);
  margin: 4px 0 34px;
  padding: 0;
  list-style: none;
}

.vc-stepper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(100% / (var(--vc-steps, 4) * 2));
  right: calc(100% / (var(--vc-steps, 4) * 2));
  height: 2px;
  background: var(--vc-line);
}

.vc-stepper__item {
  position: relative;
  text-align: center;
}

.vc-stepper__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: default;
}

.vc-stepper__btn:disabled {
  opacity: 1;
}

.vc-stepper__item.is-clickable .vc-stepper__btn {
  cursor: pointer;
}

.vc-stepper__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--vc-line-strong);
  border-radius: 50%;
  background: var(--vc-white);
  color: var(--vc-muted);
  font-size: 15px;
  font-weight: 700;
  transition: border-color var(--vc-transition), background-color var(--vc-transition), box-shadow var(--vc-transition);
}

.vc-stepper__label {
  color: var(--vc-muted);
  font-size: 13px;
  line-height: 1.25;
}

.vc-stepper__item.is-complete .vc-stepper__dot {
  border-color: var(--vc-red);
  color: var(--vc-red);
}

.vc-stepper__item.is-complete .vc-stepper__dot svg {
  display: block;
}

.vc-stepper__item.is-clickable:hover .vc-stepper__dot {
  background: #fff3f3;
}

.vc-stepper__item.is-clickable:hover .vc-stepper__label {
  color: var(--vc-ink);
}

.vc-stepper__item.is-current .vc-stepper__dot {
  border-color: var(--vc-red);
  background: var(--vc-red);
  color: var(--vc-white);
  box-shadow: 0 0 0 5px rgba(227, 6, 19, .14);
}

.vc-stepper__item.is-current .vc-stepper__label {
  color: var(--vc-ink);
  font-weight: 700;
}

.vc-stepper__btn:focus-visible .vc-stepper__dot {
  outline: 2px solid var(--vc-ink);
  outline-offset: 3px;
}

/* 10.6 Checkout: el paso actual como tarjeta.
   Con el indicador activo (body.vc-has-stepper) solo se ve el paso en curso;
   sin JS queda el acordeón de classic, ordenado y sin líneas dobles. */
body#checkout section.checkout-step {
  margin: 0;
  padding: 0;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  box-shadow: none;
}

body#checkout section.checkout-step + section.checkout-step {
  border-top: 0;
}

body#checkout section.checkout-step:last-child {
  border: 1px solid var(--vc-line);
}

body#checkout section.checkout-step .step-title,
body#checkout section.checkout-step.-current + .checkout-step .step-title,
body#checkout section.checkout-step.-complete:first-of-type .step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 20px 28px;
  border: 0;
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

body#checkout section.checkout-step.-current .step-title {
  border-bottom: 1px solid var(--vc-line);
  color: var(--vc-red);
}

body#checkout section.checkout-step .step-number,
body#checkout section.checkout-step.-reachable.-current .step-number {
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vc-paper);
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 700;
}

body#checkout section.checkout-step.-current .step-number {
  background: var(--vc-red);
  color: var(--vc-white);
}

body#checkout section.checkout-step .done {
  margin: 0;
  padding: 0;
  color: var(--vc-red);
}

body#checkout section.checkout-step.-reachable.-complete h1 .step-edit {
  margin: 0 0 0 auto;
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: lowercase;
}

body#checkout section.checkout-step .content,
body#checkout section.checkout-step.-current .content {
  padding: 24px 28px 28px;
}

/* Con indicador: solo el paso en curso, sin número ni "modificar" en su cabecera */
body#checkout.vc-has-stepper section.checkout-step:not(.-current) {
  display: none;
}

body#checkout.vc-has-stepper section.checkout-step.-current {
  border: 1px solid var(--vc-line);
}

body#checkout.vc-has-stepper section.checkout-step .step-title .step-number,
body#checkout.vc-has-stepper section.checkout-step .step-title .done,
body#checkout.vc-has-stepper section.checkout-step .step-title .step-edit {
  display: none !important;
}

body#checkout.vc-has-stepper section.checkout-step .step-title {
  cursor: default;
}

/* Textos y enlaces dentro de los pasos */
body#checkout section.checkout-step .content > p,
body#checkout section.checkout-step .content .address-selector + p,
body#checkout section.checkout-step small {
  color: var(--vc-muted);
}

body#checkout section.checkout-step .nav-inline .nav-link {
  color: var(--vc-muted);
  font-weight: 700;
}

body#checkout section.checkout-step .nav-inline .nav-link.active {
  color: var(--vc-ink);
  border-bottom: 2px solid var(--vc-red);
}

body#checkout section.checkout-step .form-footer {
  margin-top: 18px;
  text-align: right;
}

body#checkout section.checkout-step .form-footer .btn,
body#checkout section.checkout-step button.continue {
  min-width: 200px;
}

/* 10.7 Direcciones: tarjetas seleccionables */
body#checkout section.checkout-step .address-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

body#checkout section.checkout-step .address-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  transition: border-color var(--vc-transition), background-color var(--vc-transition);
}

body#checkout section.checkout-step .address-item:hover {
  border-color: var(--vc-ink);
}

body#checkout section.checkout-step .address-item.selected {
  background: #fff7f7;
  border: 1px solid var(--vc-red);
  box-shadow: inset 0 0 0 1px var(--vc-red);
}

body#checkout section.checkout-step .address-item > header {
  flex: 1;
  min-height: 0;
}

body#checkout section.checkout-step .radio-block {
  padding: 20px 22px;
}

body#checkout section.checkout-step .address-alias {
  margin: 0 0 12px;
  color: var(--vc-ink);
  font-size: 16px;
  font-weight: 700;
  vertical-align: middle;
}

body#checkout section.checkout-step .address {
  margin-left: 30px;
  color: var(--vc-ink-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

body#checkout section.checkout-step .address-item hr {
  margin: 0 22px;
  border-top: 1px solid var(--vc-line);
}

body#checkout section.checkout-step .address-footer {
  display: flex;
  gap: 18px;
  padding: 12px 22px;
  text-align: left;
}

body#checkout section.checkout-step .delete-address,
body#checkout section.checkout-step .edit-address {
  margin: 0;
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 700;
}

body#checkout section.checkout-step .delete-address:hover,
body#checkout section.checkout-step .edit-address:hover {
  color: var(--vc-red);
}

body#checkout section.checkout-step .add-address {
  margin-top: 18px;
}

body#checkout section.checkout-step .add-address a {
  color: var(--vc-ink);
  font-size: 13px;
  font-weight: 700;
}

body#checkout section.checkout-step .add-address a i {
  font-size: 18px;
  vertical-align: -4px;
}

.different-invoice-address,
a.different-invoice-address {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--vc-ink);
  color: var(--vc-ink) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

a.different-invoice-address:hover {
  background: var(--vc-ink);
  color: var(--vc-white) !important;
}

/* 10.8 Envío y pago: opciones como filas seleccionables */
body#checkout section.checkout-step .delivery-options > .row {
  border: 0;
}

body#checkout section.checkout-step .delivery-options .delivery-option,
body#checkout section.checkout-step .payment-options .payment-option {
  margin: 0 0 10px;
  padding: 16px 18px;
  min-height: 0;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  transition: border-color var(--vc-transition), background-color var(--vc-transition);
}

body#checkout section.checkout-step .delivery-options .delivery-option:hover,
body#checkout section.checkout-step .payment-options .payment-option:hover {
  border-color: var(--vc-ink);
}

body#checkout section.checkout-step .delivery-options .delivery-option:has(input:checked),
body#checkout section.checkout-step .payment-options .payment-option:has(input:checked) {
  background: #fff7f7;
  border-color: var(--vc-red);
  box-shadow: inset 0 0 0 1px var(--vc-red);
}

body#checkout section.checkout-step .payment-options .payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

body#checkout section.checkout-step .payment-options .payment-option label {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

body#checkout section.checkout-step .payment-options .payment-option > .custom-radio,
body#checkout section.checkout-step .payment-options .payment-option .float-xs-left {
  float: none !important;
}

/* classic alinea todos los label a la derecha */
body#checkout section.checkout-step label,
body#checkout section.checkout-step .delivery-option label,
body#checkout .condition-label label {
  text-align: left;
}

body#checkout section.checkout-step .payment-options .payment-option label img {
  max-height: 26px;
  width: auto;
}

body#checkout section.checkout-step .payment-options .custom-radio {
  flex: 0 0 auto;
  margin: 0;
}

body#checkout section.checkout-step .payment-options .additional-information,
body#checkout section.checkout-step .payment-options .js-additional-information {
  margin: -6px 0 12px;
  padding: 14px 18px;
  background: var(--vc-paper);
  border: 1px solid var(--vc-line);
  border-top: 0;
  font-size: 13px;
}

body#checkout section.checkout-step .carrier-name {
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 700;
}

body#checkout section.checkout-step .carrier-delay,
body#checkout section.checkout-step .carrier-price {
  color: var(--vc-muted);
  font-size: 13px;
}

body#checkout section.checkout-step .carrier-price {
  color: var(--vc-ink);
  font-weight: 700;
}

body#checkout section.checkout-step .delivery-options .delivery-option img {
  width: 56px;
}

body#checkout #delivery textarea {
  border: 1px solid var(--vc-line-strong);
}

/* Condiciones y "revise su pedido" */
body#checkout section.checkout-step #conditions-to-approve {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--vc-paper);
}

body#checkout section.checkout-step #conditions-to-approve ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Casilla y texto en línea: la casilla (20 px) alineada con la primera línea */
body#checkout section.checkout-step #conditions-to-approve li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body#checkout section.checkout-step #conditions-to-approve li + li {
  margin-top: 10px;
}

body#checkout section.checkout-step #conditions-to-approve .float-xs-left {
  float: none !important;
  flex: 0 0 20px;
  height: 20px;
}

body#checkout section.checkout-step #conditions-to-approve .custom-checkbox {
  display: block;
  width: 20px;
  height: 20px;
}

body#checkout section.checkout-step #conditions-to-approve .custom-checkbox input[type="checkbox"] + span {
  margin: 0;
}

body#checkout .condition-label {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
}

body#checkout .condition-label label {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

section#checkout-personal-information-step a,
.condition-label a,
label.psgdpr_consent_message a,
a.float-xs-right.cookiesplus-policy {
  color: var(--vc-red) !important;
  text-decoration: underline;
}

body#checkout #order-summary-content {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--vc-line);
}

body#checkout #order-summary-content h3,
body#checkout #order-summary-content .h3,
body#checkout #order-summary-content h4,
body#checkout #order-summary-content .h4 {
  font-size: 16px;
  font-weight: 700;
}

body#checkout #order-summary-content .step-edit {
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 700;
}

body#checkout #order-summary-content .summary-selected-carrier {
  border: 1px solid var(--vc-line);
}

body#checkout #payment-confirmation {
  margin-top: 18px;
}

body#checkout #payment-confirmation .btn {
  width: 100%;
  min-height: 54px;
  font-size: 13px;
}

/* 10.9 Confirmación de pedido (templates/checkout/order-confirmation.tpl) */
#order-confirmation #wrapper {
  padding-top: 28px;
}

.vc-oc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

/* Cabecera */
.vc-oc-hero {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 40px;
  background: #111;
  border-top: 6px solid var(--vc-yellow);
  color: var(--vc-white);
}

.vc-oc-hero__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--vc-green);
  color: var(--vc-white);
}

.vc-oc-hero__kicker {
  margin: 0 0 8px;
  color: var(--vc-yellow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.vc-oc-hero__title {
  margin: 0 0 12px;
  color: var(--vc-white);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
}

.vc-oc-hero__text {
  max-width: 720px;
  margin: 0;
  color: #c9ccd0;
  font-size: 14px;
  line-height: 1.6;
}

.vc-oc-hero__text a {
  color: var(--vc-yellow);
  font-weight: 700;
  text-decoration: underline;
}

.vc-oc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.vc-oc-hero .vc-oc-hero__secondary {
  color: var(--vc-white);
}

.vc-oc-hero .vc-oc-hero__secondary:hover {
  background: var(--vc-white) !important;
  color: #111;
}

/* Instrucciones de pago (transferencia, etc.) */
.vc-oc-payment {
  padding: 24px 28px;
  background: #fff8e0;
  border: 1px solid #f1dd8f;
  border-left: 5px solid var(--vc-yellow);
  color: var(--vc-ink);
  font-size: 14px;
  line-height: 1.6;
}

.vc-oc-payment p:last-child,
.vc-oc-payment dl:last-child {
  margin-bottom: 0;
}

.vc-oc-payment dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 12px 0;
}

.vc-oc-payment dt {
  font-weight: 700;
}

.vc-oc-payment dd {
  margin: 0;
}

/* classic pinta los datos de pago como celdas grises (.definition-list) */
#order-confirmation .vc-oc-payment.definition-list dl {
  display: grid;
  flex-wrap: nowrap;
}

#order-confirmation .vc-oc-payment.definition-list dl dt,
#order-confirmation .vc-oc-payment.definition-list dl dd {
  flex: none;
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border-bottom: 1px solid #f1dd8f;
  font-size: 14px;
}

#order-confirmation .vc-oc-payment.definition-list dl dt {
  color: var(--vc-muted);
  font-weight: 400;
}

#order-confirmation .vc-oc-payment.definition-list dl dd {
  color: var(--vc-ink);
  font-weight: 700;
}

/* Cuerpo: productos | datos y ayuda */
.vc-oc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.vc-oc-card,
#order-confirmation .vc-oc-card.page-content {
  margin: 0;
  padding: 26px 28px;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  box-shadow: none;
}

.vc-oc-card__title,
#order-confirmation .vc-oc-card__title {
  margin: 0 0 16px;
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.vc-oc-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vc-oc-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-oc-details li {
  padding: 10px 0;
  border-top: 1px solid var(--vc-line);
  color: var(--vc-ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.vc-oc-details li:first-child {
  padding-top: 0;
  border-top: 0;
}

.vc-oc-details em {
  display: block;
  color: var(--vc-muted);
  font-style: normal;
}

.vc-oc-help {
  background: var(--vc-paper);
}

.vc-oc-help p {
  margin: 0 0 16px;
  color: var(--vc-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Tabla de productos (checkout/_partials/order-confirmation-table.tpl) */
.vc-oc-items #order-items {
  width: 100%;
  padding: 0;
  border: 0;
}

.vc-oc-items #order-items > .row {
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vc-ink);
}

.vc-oc-items #order-items .card-title,
#order-confirmation #order-items h3.card-title {
  margin: 0;
  padding: 0;
  color: var(--vc-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc-oc-items #order-items .card-title:first-child {
  color: var(--vc-ink);
}

.vc-oc-items .order-confirmation-table {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.vc-oc-items .order-line {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--vc-line);
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.vc-oc-items .order-line .image img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--vc-line);
  background: var(--vc-white);
}

.vc-oc-items .order-line .details {
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.vc-oc-items .order-line .qty {
  color: var(--vc-ink-2);
  font-size: 14px;
}

.vc-oc-items .order-line .qty .bold {
  color: var(--vc-ink);
  font-weight: 700;
}

.vc-oc-items .order-confirmation-table hr {
  display: none;
}

.vc-oc-items .order-confirmation-table table {
  width: 100%;
  max-width: 380px;
  margin: 16px 0 0 auto;
  font-size: 14px;
}

.vc-oc-items .order-confirmation-table table td {
  padding: 5px 0;
  color: var(--vc-ink-2);
}

.vc-oc-items .order-confirmation-table table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--vc-ink);
}

#order-confirmation #order-details.vc-oc-card {
  margin: 0;
  padding: 26px 28px;
}

.vc-oc-items .order-confirmation-table table tr.total-value,
.vc-oc-items .order-confirmation-table table tr.total-value td {
  background: transparent !important;
}

.vc-oc-items .order-confirmation-table table tr.total-value td {
  padding-top: 12px;
  border-top: 1px solid var(--vc-line);
  background: transparent;
  color: var(--vc-ink);
  font-size: 18px;
  font-weight: 700;
}

.vc-oc-items .order-confirmation-table table tr.total-value .text-uppercase {
  text-transform: none !important;
}

.vc-oc-items .order-confirmation-table table tr.taxes td {
  color: var(--vc-muted);
  font-size: 12px;
  text-align: right !important;
}

.vc-oc-items .order-confirmation-table table tr.taxes .label,
.vc-oc-items .order-confirmation-table table tr.taxes .value {
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 400;
}

/* Alta de invitado y productos sugeridos */
.vc-oc-register {
  max-width: 760px;
}

#content-hook-order-confirmation-footer .featured-products,
#content-hook-order-confirmation-footer .products-section-title {
  margin-top: 16px;
}

@media (max-width: 991px) {
  .vc-oc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .vc-oc-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 22px;
  }

  .vc-oc-hero__icon {
    width: 52px;
    height: 52px;
  }

  .vc-oc-hero__actions .btn {
    flex: 1 1 100%;
  }

  .vc-oc-card,
  #order-confirmation .vc-oc-card.page-content {
    padding: 20px 18px;
  }

  .vc-oc-items #order-items ._desktop-title {
    display: none;
  }

  .vc-oc-items .order-line .qty {
    margin-top: 8px;
  }

  .vc-oc-items .order-confirmation-table table {
    max-width: none;
  }

  .vc-oc-payment {
    padding: 20px 18px;
  }

  #order-confirmation .vc-oc-payment.definition-list dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #order-confirmation .vc-oc-payment.definition-list dl dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  #order-confirmation #order-details.vc-oc-card {
    padding: 20px 18px;
  }
}

/* 10.10 Checkout en móvil */
@media (max-width: 767px) {
  .vc-stepper {
    margin-bottom: 22px;
  }

  .vc-stepper::before {
    top: 16px;
  }

  .vc-stepper__dot {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .vc-stepper__label {
    font-size: 11px;
  }

  .vc-stepper__item:not(.is-current) .vc-stepper__label {
    display: none;
  }

  body#checkout section.checkout-step .step-title {
    padding: 16px 18px;
  }

  body#checkout section.checkout-step .content,
  body#checkout section.checkout-step.-current .content {
    padding: 18px;
  }

  body#checkout section.checkout-step .form-footer {
    text-align: center;
  }

  body#checkout section.checkout-step .form-footer .btn,
  body#checkout section.checkout-step button.continue {
    width: 100%;
  }

  .cart-grid-right {
    margin-top: 18px;
  }
}

/* 11. Cuenta de cliente y acceso / registro -------------------------------- */
.page-authentication #content {
  max-width: 840px;
}

.forgot-password a,
section.register-form a,
.no-account a,
.page-footer .account-link,
.wishlist-footer-links a,
.wishlist-footer-links a:hover {
  color: var(--vc-red) !important;
}

.no-account a:hover {
  background: none !important;
}

footer.form-footer.text-sm-center.clearfix {
  text-align: center;
}

#alertprivate {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--vc-line);
  border-left: 5px solid var(--vc-yellow);
  background: var(--vc-paper);
  text-align: center;
}

/* Botones de registro (idxrvalidatinguser) */
.register-button-normal a,
.register-button-professional a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--vc-ink);
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.register-button-normal a {
  background: var(--vc-white);
  color: var(--vc-ink) !important;
}

.register-button-normal a:hover {
  background: var(--vc-ink) !important;
  color: var(--vc-white) !important;
}

.register-button-professional a {
  background: var(--vc-yellow);
  border-color: var(--vc-yellow);
  color: #111 !important;
}

/* Cabecera de Mi cuenta (plantilla my-account.tpl) */
.macontainerheader {
  margin: 0 15px 28px;
  padding: 44px 34px;
  background: #111;
  border-top: 6px solid var(--vc-yellow);
  color: var(--vc-white);
  text-align: left;
}

.macontainerheader h1.spcabma {
  margin: 0 0 8px;
  color: var(--vc-white);
  font-size: clamp(30px, 3.5vw, 44px);
}

.macontainerheader p.subtitlema {
  margin: 0;
  color: #b7babe !important;
  text-align: left;
}

/* Accesos de Mi cuenta */
.links.contestre {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
}

.page-my-account #content .links a {
  margin-bottom: 12px;
  padding: 0 6px;
}

.page-my-account #content .links a span.link-item,
span.link-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 26px !important;
  background: var(--vc-paper);
  border: 1px solid var(--vc-line);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  transition: border-color var(--vc-transition), background-color var(--vc-transition);
}

.page-my-account #content .links a:hover span.link-item,
span.link-item:hover {
  background: var(--vc-white);
  border: 1px solid var(--vc-ink);
  border-bottom: 4px solid var(--vc-red);
  padding: 26px 26px 23px !important;
}

.link-item .titleaccount {
  margin: 0 0 8px;
  color: var(--vc-ink);
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
}

.link-item .descaccount {
  margin: 0;
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
}

.link-item .material-icons {
  display: none;
}

#my-account a.cerrarsesion,
#my-account a.cerrarsesion:hover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vc-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

#identity a,
#history a {
  color: var(--vc-ink);
}

/* Tablas de pedidos, direcciones, vales */
.table {
  font-size: 13px;
}

.table thead th,
.thead-default th {
  background: #111;
  border: 0;
  color: var(--vc-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: var(--vc-paper);
}

.page-addresses .address {
  border: 1px solid var(--vc-line);
  box-shadow: none;
}

.page-addresses .address .address-footer a {
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 700;
}

.label.label-pill,
.order-status .label {
  padding: 5px 8px;
  border-radius: 0;
  font-size: 10px;
  font-weight: 700;
}

/* Lista de deseos (blockwishlist) */
.wishlist-list-item:hover .wishlist-list-item-title,
.wishlist-add-to-new,
a.wishlist-add-to-new.text-primary:hover,
.wishlist-list-item p:hover,
.wishlist-list-item-default a:hover {
  color: var(--vc-red) !important;
}

/* 11b. Páginas de cuenta: cabecera, historial y detalle del pedido -------- */

/* Cabecera común de las páginas de cuenta (Mi cuenta tiene la suya propia) */
.page-customer-account #main > .page-header {
  margin: 0 0 24px;
  padding: 34px 36px;
  background: #111;
  border-top: 6px solid var(--vc-yellow);
}

.page-customer-account #main > .page-header h1 {
  margin: 0;
  color: var(--vc-white);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
}

.page-customer-account #content.page-content {
  padding: 0;
  background: transparent;
}

.vc-lead,
.page-customer-account #content > h6 {
  margin: 0 0 18px;
  color: var(--vc-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Etiqueta de estado del pedido: punto con el color del estado */
.vc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--vc-paper);
  background: color-mix(in srgb, var(--st, #666b70) 14%, #fff);
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.vc-status::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st, #666b70);
}

/* Historial: una tarjeta por pedido */
.vc-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-order {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1.1fr) minmax(0, 1.3fr) 270px;
  gap: 18px 24px;
  align-items: center;
  padding: 20px 24px;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  transition: border-color var(--vc-transition);
}

.vc-order:hover {
  border-color: var(--vc-ink);
}

.vc-order__id,
.vc-order__fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  color: var(--vc-ink-2);
  font-size: 13px;
}

.vc-order__label {
  color: var(--vc-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.vc-order__ref {
  color: var(--vc-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
}

.vc-order__date {
  color: var(--vc-muted);
  font-size: 12px;
}

.vc-order__total {
  color: var(--vc-ink);
  font-size: 17px;
  font-weight: 700;
}

.vc-order__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.vc-order__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 700;
}

.vc-order__link .material-icons {
  font-size: 18px;
}

.vc-order__btn {
  min-height: 40px;
  padding: 9px 16px;
}

/* Detalle del pedido: cabecera-resumen */
.vc-od-head {
  margin-bottom: 16px;
  padding: 26px 28px;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
}

.vc-od-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}

.vc-od-head__ref {
  color: var(--vc-ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
}

.vc-od-head__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--vc-line);
}

.vc-od-head__facts dt {
  margin-bottom: 4px;
  color: var(--vc-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.vc-od-head__facts dd {
  margin: 0;
  color: var(--vc-ink);
  font-size: 14px;
}

.vc-od-head__facts .vc-od-head__total {
  font-size: 18px;
  font-weight: 700;
}

.vc-od-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.vc-od-head__btn {
  color: var(--vc-ink);
}

.vc-od-head__btn:hover {
  background: var(--vc-ink) !important;
  color: var(--vc-white);
}

.vc-od-head__notes {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--vc-paper);
  list-style: none;
  font-size: 13px;
}

/* Detalle del pedido: dos columnas */
.vc-od-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.vc-od-main,
.vc-od-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.page-order-detail .vc-od-grid .box,
.vc-od-card {
  margin: 0;
  padding: 24px 26px;
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  box-shadow: none;
}

.page-order-detail .vc-od-addresses {
  margin: 0;
}

.page-order-detail .vc-od-addresses h4.vc-od-card__title {
  font-size: 12px;
  line-height: 1.35;
}

/* classic quita el relleno a la lista de productos en móvil */
.page-order-detail .vc-od-grid .order-items.box {
  padding: 8px 18px !important;
}

.page-order-detail .vc-od-grid .order-items .order-item {
  padding: 14px 0 0;
}

.vc-od-card__title,
.page-order-detail .vc-od-grid .box h3 {
  margin: 0 0 16px;
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Productos del pedido */
.page-order-detail #order-products,
.page-order-detail .vc-od-shipping .table {
  margin: 0;
  border: 0;
}

.page-order-detail #order-products thead th,
.page-order-detail .vc-od-shipping .table thead th {
  padding: 0 10px 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--vc-ink);
  color: var(--vc-muted);
  font-size: 11px;
}

.page-order-detail #order-products td,
.page-order-detail #order-products th,
.page-order-detail .vc-od-shipping .table td {
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid var(--vc-line);
  vertical-align: middle;
  font-size: 13px;
}

.page-order-detail #order-products td:first-child,
.page-order-detail #order-products thead th:first-child {
  padding-left: 0;
}

.page-order-detail #order-products td:last-child,
.page-order-detail #order-products thead th:last-child {
  padding-right: 0;
}

.page-order-detail #order-products td strong a {
  color: var(--vc-ink);
  font-size: 14px;
}

.page-order-detail #order-products tfoot td {
  padding: 6px 0;
  border: 0;
  color: var(--vc-ink-2);
}

.page-order-detail #order-products tfoot tr:first-child td {
  padding-top: 16px;
}

.page-order-detail #order-products tfoot tr.line-total td,
.page-order-detail #order-products tfoot tr:last-child td {
  padding-top: 12px;
  color: var(--vc-ink);
  font-size: 18px;
  font-weight: 700;
}

.page-order-detail .order-items .order-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--vc-line);
}

.page-order-detail .order-items .order-item .name {
  color: var(--vc-ink);
  font-weight: 700;
}

.page-order-detail .order-items .order-item .ref {
  color: var(--vc-muted);
  font-size: 12px;
}

.page-order-detail .order-totals .order-total {
  padding: 4px 0;
}

/* Seguimiento del estado */
.vc-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 18px 26px;
}

.vc-timeline__item:last-child {
  padding-bottom: 0;
}

.vc-timeline__item::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -2px;
  left: 6px;
  width: 2px;
  background: var(--vc-line);
}

.vc-timeline__item:last-child::before {
  display: none;
}

.vc-timeline__dot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--vc-white);
  border-radius: 50%;
  background: var(--st, var(--vc-muted));
  box-shadow: 0 0 0 1px var(--vc-line);
}

.vc-timeline__state {
  color: var(--vc-ink-2);
  font-size: 13px;
  line-height: 1.35;
}

.vc-timeline__date {
  color: var(--vc-muted);
  font-size: 12px;
}

.vc-timeline__item.is-current .vc-timeline__state {
  color: var(--vc-ink);
  font-weight: 700;
}

.vc-timeline__item.is-current .vc-timeline__dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--st, #666b70) 25%, transparent);
}

.vc-od-follow a {
  color: var(--vc-red);
  font-weight: 700;
  word-break: break-all;
}

/* Direcciones */
.vc-od-addresses {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vc-od-addresses address {
  margin: 0;
  color: var(--vc-ink-2);
  font-size: 13px;
  line-height: 1.6;
}

/* Mensajes y formulario de mensaje */
.page-order-detail .messages .message {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--vc-paper);
  font-size: 13px;
}

.page-order-detail .order-message-form header p {
  color: var(--vc-muted);
  font-size: 13px;
}

.page-order-detail .order-message-form .form-control-label {
  text-align: left;
}

.page-order-detail .order-message-form .form-footer {
  text-align: right;
}

/* Devoluciones (order-detail-return.tpl) */
.page-order-detail #order-return-form .box,
.page-order-detail #order-return-form {
  font-size: 13px;
}

@media (max-width: 1100px) {
  .vc-order {
    grid-template-columns: 1fr 1fr;
  }

  .vc-order__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 14px;
    border-top: 1px solid var(--vc-line);
  }

  .vc-od-grid {
    grid-template-columns: 1fr;
  }

  .vc-od-head__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-customer-account #main > .page-header {
    padding: 24px 20px;
  }

  .vc-order {
    padding: 18px;
    gap: 14px 18px;
  }

  .vc-order__id {
    grid-column: 1 / -1;
  }

  .vc-order__fact--status {
    grid-column: 1 / -1;
  }

  .vc-order__btn {
    flex: 1 1 100%;
  }

  .vc-od-head {
    padding: 20px 18px;
  }

  .vc-od-head__ref {
    font-size: 22px;
  }

  .vc-od-head__actions .btn {
    flex: 1 1 100%;
  }

  .page-order-detail .vc-od-grid .box,
  .vc-od-card {
    padding: 20px 18px;
  }
}

/* 12. Módulos de terceros heredados de clearis ----------------------------- */

/* hiaddtocartbutton: botón de compra en la tarjeta */
.vc-card .hiaddtocart,
.hiaddtocart {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0;
}

.hiaddtocart .product-quantity {
  flex: 0 0 52px;
}

.hiaddtocart .product-quantity input.hi-quantity {
  width: 100%;
  height: 100%;
  min-height: 40px;
  border: 1px solid var(--vc-line-strong);
  text-align: center;
  font-weight: 700;
}

.hiaddtocart button.btn-primary,
.hiaddtocart a.btn-primary {
  flex: 1;
  min-height: 40px;
  padding: 9px 12px;
  gap: 6px;
}

.hiaddtocart button.btn-primary .addcarttext {
  display: inline;
}

.hiaddtocart .product-availability {
  display: none;
}

/* Aviso "regístrate para comprar" (el módulo lo pinta con estilos en línea) */
.vc-card__buy > p[style],
.vc-card .product-description > p[style] {
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid var(--vc-line) !important;
  border-radius: 0 !important;
  background: var(--vc-paper) !important;
  color: var(--vc-muted) !important;
  font-size: 11px !important;
  text-align: left !important;
}

/* Selector de idioma de CE en la cabecera */
.idioma-header .elementor img,
img.elementor-langs__flag {
  width: 25px !important;
  height: auto !important;
}

/* 12b. Home: bloques HTML de Creative Elements -------------------------------
   Algunos bloques de la home v5 son widgets de texto con HTML y estilos en
   línea (sin media queries). Se adaptan aquí; los selectores van por el estilo
   en línea para que sigan funcionando si se reimporta la plantilla JSON.

   Centro de catálogos: rejilla de 6 columnas fijas que en móvil ensanchaba la
   página hasta ~960 px (scroll horizontal). */
@media (max-width: 1100px) {
  .elementor-widget-text-editor div[style*="repeat(4,.7fr)"] {
    grid-template-columns: 1fr 1fr repeat(2, minmax(0, .7fr)) !important;
  }
}

@media (max-width: 767px) {
  .elementor-widget-text-editor div[style*="repeat(4,.7fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .elementor-widget-text-editor div[style*="repeat(4,.7fr)"] > a {
    min-width: 0;
    min-height: 150px !important;
  }

  .elementor-widget-text-editor div[style*="repeat(4,.7fr)"] > a[style*="grid-row:span 2"] {
    grid-row: auto !important;
    grid-column: span 2 !important;
    min-height: 220px !important;
  }
}

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --vc-gutter: 20px; }
}

@media (max-width: 767px) {
  :root { --vc-gutter: 14px; }

  #wrapper {
    padding-top: 20px;
  }

  .vc-card .vc-card__info {
    padding: 12px;
  }

  .vc-card .product-title a {
    font-size: 13px;
  }

  .vc-card .product-price-and-shipping .price {
    font-size: 18px;
  }

  .hiaddtocart {
    flex-direction: column;
  }

  .hiaddtocart .product-quantity {
    flex-basis: 40px;
  }

  .hiaddtocart button.btn-primary {
    padding: 0.55rem 0.8rem;
  }

  .hiaddtocart button.btn-primary .addcarttext {
    display: none;
  }

  #blockcart-modal .cart-content {
    padding-left: 0;
    border-left: 0;
  }

  .macontainerheader {
    padding: 30px 22px;
  }

  .page-my-account #content .links a span.link-item,
  span.link-item {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .btn:hover,
  .vc-card .thumbnail-container:hover .product-thumbnail img {
    transform: none;
  }
}
