/* =========================================================================
   vinorea.css — Capa de identidad visual de vinorea.com sobre Hummingbird.
   Replica la paleta, tipografía y componentes del tema "warehouse" (PS 1.6)
   de vinorea.com. Se carga DESPUÉS de theme.css (override por especificidad).
   ========================================================================= */

:root,
body {
  --vino:        #ad1457;   /* color de marca (burdeos) */
  --vino-dark:   #8a0f43;
  --vino-soft:   #f3e1ea;
  --gold:        #ffc200;   /* acento Club */
  --price:       #f13340;   /* precio de producto */
  --ink:         #1a1a1a;   /* nombres de producto */
  --text:        #777777;   /* texto base */
  --muted:       #999999;
  --line:        #dddddd;
  --bg-soft:     #f8f8f8;
  --cart-hover:  #0084bf;
  --font-body:   'Open Sans', Arial, Helvetica, sans-serif;
  --font-head:   'Montserrat', Arial, sans-serif;
  --font-data:   'Roboto Slab', Georgia, serif;

  /* Mapear las variables Bootstrap/tema al burdeos */
  --bs-primary: #ad1457;
  --bs-primary-rgb: 173, 20, 87;
  --bs-link-color: #ad1457;
  --bs-link-hover-color: #8a0f43;
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
}

/* ---------- Base / tipografía ---------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: #222;
}
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.55rem; }
h3, .h3 { font-size: 1.3rem; }
h4, .h4 { font-size: 1.1rem; }

a { color: var(--vino); }
a:hover { color: var(--vino-dark); }

/* Esquinas rectas (look "warehouse") */
.btn, .card, .form-control, .form-select, .input-group-text,
.product-miniature, .product-miniature__image-container,
.thumbnail-container, .modal-content, .dropdown-menu,
.alert, .badge, .page-link, .product__images, .product-cover {
  border-radius: 0 !important;
}

/* ---------- Botones ---------- */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
  --bs-btn-bg: var(--vino);
  --bs-btn-border-color: var(--vino);
  --bs-btn-hover-bg: var(--vino-dark);
  --bs-btn-hover-border-color: var(--vino-dark);
  --bs-btn-active-bg: var(--vino-dark);
  --bs-btn-active-border-color: var(--vino-dark);
  --bs-btn-disabled-bg: var(--vino);
  --bs-btn-disabled-border-color: var(--vino);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .82rem;
}
.btn-outline-primary {
  --bs-btn-color: var(--vino);
  --bs-btn-border-color: var(--vino);
  --bs-btn-hover-bg: var(--vino);
  --bs-btn-hover-border-color: var(--vino);
  --bs-btn-active-bg: var(--vino);
}
.btn-secondary { --bs-btn-bg: #6f6f6f; --bs-btn-border-color: #6f6f6f; --bs-btn-hover-bg: #575757; }

/* ---------- Header ---------- */
.header-top {
  background: var(--vino);
  color: #fff;
}
.header-top a, .header-top .header-block__title,
.header-top .header-block, .header-top button { color: #fff !important; }
.header-top a:hover { color: var(--gold) !important; }
.header-bottom { background: #fff; border-bottom: 1px solid var(--line); }

/* Logo más protagonista, centrado en escritorio grande */
.header-bottom__logo img { max-height: 64px; width: auto; }

/* Menú principal: tipografía de marca, texto oscuro → burdeos en hover */
.ps-mainmenu a, .ps-mainmenu__desktop a,
.ps-mainmenu__item > a, .main-menu a {
  color: #2a2a2a;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .4px;
}
.ps-mainmenu a:hover, .ps-mainmenu__desktop a:hover,
.ps-mainmenu a.active, .ps-mainmenu__item--active > a { color: var(--vino) !important; }
/* Subrayado de acento bajo el menú al pasar el ratón */
.ps-mainmenu__desktop > ul > li > a { position: relative; padding-bottom: 4px; }
.ps-mainmenu__desktop > ul > li > a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--vino);
}
.blockcart .header-block__badge,
.header-block__badge { background: var(--gold); color: #1a1a1a; }

/* ---------- Tarjeta de producto (miniature) ---------- */
.product-miniature {
  border: 1px solid transparent;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product-miniature:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
  border-color: var(--line);
}
.product-miniature__title,
.product-miniature__title a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink) !important;
  font-size: .92rem;
  line-height: 1.25;
}
.product-miniature__title a:hover { color: var(--vino) !important; }
.product-miniature__price,
.product-miniature__prices .price,
.product-miniature__current-price {
  font-family: var(--font-data);
  color: var(--price) !important;
  font-weight: 700;
  font-size: 1.05rem;
}
.product-miniature__regular-price,
.product-miniature__discount-price.regular-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .85rem;
}
.product-miniature__add.btn-primary:hover {
  --bs-btn-hover-bg: var(--cart-hover);
  --bs-btn-hover-border-color: var(--cart-hover);
}
/* Etiqueta de descuento/novedad */
.product-flag.discount, .product-flag.on-sale { background: var(--price); }
.product-flag.new { background: var(--cart-hover); }

/* ---------- Página de producto ---------- */
.product__name, .product__name.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  color: #1a1a1a;
}
/* DO / dato destacado sobre el título (si el tema lo expone) */
.product__name + .product-reference,
.product-manufacturer { font-family: var(--font-data); color: var(--text); }
.product-manufacturer a { color: var(--vino); font-weight: 600; }

.product__price,
.product__prices .product__price,
.product__prices .current-price,
.product__prices .current-price .price,
.product__prices .price,
.current-price-value {
  font-family: var(--font-data);
  color: var(--price);
  font-weight: 700;
}
.product__price { font-size: 1.9rem; line-height: 1.1; }
.product__prices .regular-price,
.product__prices .product__regular-price { color: var(--muted); text-decoration: line-through; font-weight: 500; }

.product-add-to-cart .add-to-cart,
.product__add-to-cart-container .btn-primary {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
}

/* Ficha técnica / características (pares etiqueta-valor del acordeón) */
#product_features .accordion-body { padding: 0; }
.details__left, .details__right {
  font-family: var(--font-data);
  font-size: .9rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--line);
}
.details__left { font-weight: 700; color: #555; }
.details__right { color: #1a1a1a; }
/* También para la versión <dl>/tabla si el tema la usa en otras vistas */
.data-sheet dt, .product-features .name { font-weight: 700; color: #555; }
.data-sheet dt, .data-sheet dd { padding: .55rem .85rem; border-bottom: 1px solid var(--line); margin: 0; }

/* Acordeón de la ficha de producto (Descripción / Detalles / Características) */
.product__accordion .accordion-button {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .9rem;
  color: #333;
  background: #fff;
}
.product__accordion .accordion-button:not(.collapsed) {
  color: var(--vino);
  box-shadow: inset 0 -2px 0 var(--vino);
}
.product__accordion .accordion-button:focus { box-shadow: inset 0 -2px 0 var(--vino); border-color: var(--line); }

/* Pestañas (otras vistas con nav-tabs) */
.nav-tabs .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--text);
  border: none;
}
.nav-tabs .nav-link.active {
  color: var(--vino);
  border-bottom: 3px solid var(--vino);
  background: transparent;
}

/* ---------- Categoría / Marca / DO / País ---------- */
.page-header h1, #js-product-list-header h1,
.block-category h1, .category-top-menu + h1, .h1.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: #222;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.block-category, .category-description,
.brand-description, .manufacturer-description {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
}
.block-category .category-description p,
.brand-description p { margin-bottom: .8rem; }

/* Cabecera de marca / fabricante */
.brand-header, .manufacturer-header { border-bottom: 1px solid var(--line); }
.brand img.brand-img, .manufacturer .brand-img { border: 1px solid var(--line); padding: 6px; background:#fff; }

/* ---------- Filtros (faceted search) ---------- */
.ps-facetedsearch .facet__title,
.left-block__title, .search-filters__title,
#search_filters .h6, .facet-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--vino);
}
.ps-facetedsearch .facet { border-bottom: 1px solid var(--line); }
.ps-facetedsearch .facet-label a:hover { color: var(--vino); }
.active_filters .filter-block, .js-active-search-filters .filter-block {
  background: var(--vino-soft); color: var(--vino-dark); border-radius: 0;
}

/* ---------- Footer ---------- */
.footer, .footer__main, .footer__before { background: var(--bg-soft); }
.footer { border-top: 3px solid var(--vino); color: var(--text); }
.footer-block__title, .footer .h3, .footer h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .82rem;
  color: #555;
}
.footer a, .footer-block__list a { color: var(--text); }
.footer a:hover { color: var(--vino); }
.footer__before { border-bottom: 1px solid var(--line); }

/* Newsletter / inputs del footer */
.footer .btn-primary, .ps-emailsubscription .btn { background: var(--vino); border-color: var(--vino); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: transparent; font-size: .82rem; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--vino); }

/* ---------- Misceláneo ---------- */
.page-title, .h1 { font-family: var(--font-head); }
.form-control:focus, .form-select:focus {
  border-color: var(--vino);
  box-shadow: 0 0 0 .15rem rgba(173,20,87,.15);
}
::selection { background: var(--vino); color: #fff; }
.text-primary { color: var(--vino) !important; }
.bg-primary { background-color: var(--vino) !important; }
.link-primary { color: var(--vino) !important; }

/* ══ Filtros de faceta: look vinorea.com (bloques abiertos, títulos mayúsculas) ══ */
.ps-facetedsearch .accordion-button{
  text-transform:uppercase;font-size:.78rem;font-weight:700;letter-spacing:.6px;
  color:#333;padding:.85rem 0 .5rem;border-bottom:1px solid #ddd;border-radius:0;
  background:transparent;box-shadow:none;
}
.ps-facetedsearch .accordion-button:not(.collapsed){color:#333;background:transparent;box-shadow:none;}
.ps-facetedsearch .accordion-button:focus{box-shadow:none;border-color:#ddd;}
.ps-facetedsearch .accordion-item{border:0;background:transparent;}
.ps-facetedsearch ul.accordion-body{max-height:305px;overflow-y:auto;padding:.55rem 0 .9rem;margin:0;}
.ps-facetedsearch ul.accordion-body::-webkit-scrollbar{width:6px;}
.ps-facetedsearch ul.accordion-body::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px;}
.ps-facetedsearch .search-filters__item{padding:.12rem 0;}
.ps-facetedsearch .form-check-label{font-size:.83rem;color:#777;cursor:pointer;}
.ps-facetedsearch .form-check-label:hover{color:#ad1457;}
.ps-facetedsearch .search-filters__magnitude{color:#aaa;font-size:.78rem;}
.ps-facetedsearch .form-check-input{border-radius:0;border-color:#ccc;}
.ps-facetedsearch .form-check-input:checked{background-color:#ad1457;border-color:#ad1457;}
.ps-facetedsearch .facet-label.active .form-check-label{color:#ad1457;font-weight:600;}
/* Slider de precio en burdeos */
.ps-facetedsearch .noUi-connect{background:#ad1457;}
.ps-facetedsearch .noUi-handle{border-color:#ad1457;}

/* ══ Tarjeta de producto: layout vinorea.com (nombre+añada · 🇪🇸 D.O. · formato+precio · AÑADIR) ══ */
.product-miniature__title{font-weight:700;color:#000;font-size:.95rem;line-height:1.25;}
.vnr-anada{font-weight:400;color:#999;font-size:.8rem;white-space:nowrap;}
.vnr-origen{margin-top:.45rem;font-size:.86rem;color:#000;display:flex;align-items:center;gap:.35rem;}
.vnr-origen strong{font-weight:700;}
.vnr-flag{width:18px;height:13px;object-fit:cover;border:1px solid #e5e5e5;display:inline-block;}
.vnr-format-price{display:flex;justify-content:space-between;align-items:flex-end;margin-top:.15rem;min-height:1.9rem;}
.vnr-format{color:#777;font-size:.82rem;}
.vnr-format-price .product-miniature__prices{margin:0;text-align:right;}
.vnr-format-price .product-miniature__price{color:#f13340;font-family:'Roboto Slab',serif;font-weight:700;font-size:1.35rem;line-height:1;}
.vnr-format-price .product-miniature__regular-price{color:#999;font-size:.85rem;text-decoration:line-through;}
/* Fila de acciones: cantidad + AÑADIR como la web antigua */
.product-miniature__actions{margin-top:.5rem;}
.product-miniature__form{display:flex;gap:.5rem;align-items:center;}
.product-miniature__add{background:#ad1457;border-color:#ad1457;border-radius:0;font-size:.8rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding:.45rem .9rem;display:inline-flex;align-items:center;gap:.35rem;}
.product-miniature__add:hover{background:#0084bf;border-color:#0084bf;}
.product-miniature__add .material-icons{font-size:1rem;}
.product-miniature__add-text{display:inline !important;}

/* ══ Interlinking: D.O./país/uva/bodega enlazados ══ */
.vnr-origen a, .vnr-do-link{color:#000;text-decoration:none;}
.vnr-origen a:hover strong, .vnr-do-link:hover strong{color:#ad1457;text-decoration:underline;}
.details__right a{color:#ad1457;text-decoration:none;font-weight:600;}
.details__right a:hover{text-decoration:underline;}

/* Los enlaces-botón heredan color de reglas de enlace del tema (p.ej.
   .cart-summary a) y quedaban burdeos-sobre-burdeos → texto SIEMPRE blanco */
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus,
.btn-primary:not(.btn-outline-primary) { color: #fff !important; }
