/* ============================================================
   BRICOL PUBLIC — Overrides y mejoras visuales
   Importado DESPUÉS de style.css para aplicar por encima
   ============================================================ */

/* ---- Variables globales ---- */
:root {
  --br-blue:    #3468b1;
  --br-blue-dk: #244e8e;
  --br-yellow:  #ffc221;
  --br-orange:  #ee703b;
  --br-text:    #1a1a2e;
  --br-muted:   #6b7280;
  --br-line:    #e5e7eb;
  --br-bg:      #f8fafc;
  --br-card:    #ffffff;
  --br-radius:  14px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--br-text);
}

/* ============================================================
   HEADER — sticky + moderno
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  padding-bottom: 0 !important;
  transition: box-shadow .3s;
}

.head_top {
  background: var(--br-yellow) !important;
  margin-bottom: 0 !important;
  padding: 5px 0;
}

.head_top .sociel_link li a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 15px;
  color: #333 !important;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.head_top .sociel_link li a:hover {
  background: var(--br-blue);
  color: #fff !important;
}

.header-nav-wrap {
  padding: 8px 16px;
}

/* Logo */
.logo img {
  height: 62px !important;
  width: auto;
  display: block;
}

/* Menú */
.main-menu ul > li > a {
  padding: 18px 16px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--br-text) !important;
  position: relative;
  transition: color .2s;
}
.main-menu ul > li > a::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: 10px;
  width: calc(100% - 32px);
  height: 2px;
  background: var(--br-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-menu ul > li > a:hover::after,
.main-menu ul > li.active > a::after { transform: scaleX(1); }
.main-menu ul > li > a:hover,
.main-menu ul > li.active > a { color: var(--br-blue) !important; }

/* Catálogo button — compacto, inline */
.buy {
  background: var(--br-blue) !important;
  color: #fff !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  transition: background .2s;
  white-space: nowrap;
}
.buy:hover {
  background: var(--br-blue-dk) !important;
  color: #fff !important;
}

/* Carrito FAB: inline en el header (NO fixed) */
.header .cart-fab,
.header-nav-wrap .cart-fab {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 38px !important;
  height: 38px !important;
  font-size: 15px !important;
  margin: 0 !important;
  float: none !important;
  flex-shrink: 0;
  background: var(--br-blue) !important;
  box-shadow: 0 2px 8px rgba(52,104,177,.3) !important;
}
.header .cart-fab:hover { background: var(--br-blue-dk) !important; }

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--br-orange);
  color: #fff;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   SLIDER (arreglo del bug de flechas invertidas)
   ============================================================ */
#main_slider .carousel-control-prev { left: 20px; right: auto; }
#main_slider .carousel-control-next { right: 20px; left: auto; }

#main_slider .carousel-control-prev,
#main_slider .carousel-control-next {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.85) !important;
  color: var(--br-blue) !important;
  opacity: 0;
  transition: opacity .3s, background .2s;
}
#main_slider:hover .carousel-control-prev,
#main_slider:hover .carousel-control-next { opacity: 1; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.service { background: var(--br-bg) !important; padding-top: 70px; padding-bottom: 30px; }

.service .service-box {
  border-radius: var(--br-radius) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.07) !important;
  padding: 28px 22px !important;
  background: #fff !important;
  margin-bottom: 24px !important;
  transition: transform .22s, box-shadow .22s;
  border: 1px solid var(--br-line);
}
.service .service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(52,104,177,.15) !important;
}

/* Solo `i` hijo DIRECTO del service-box (los íconos de categorías), NO botones */
.service .service-box > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #e8f0fd;
  margin: 0 auto 14px;
}
.service .service-box > i img {
  height: 36px !important;
  width: auto;
  filter: none;
}

/* Reset explícito: el `i` dentro de botones nunca hereda estilos de caja */
.btn-add-to-cart i,
#btnAddDetail i {
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: inline !important;
  padding: 0 !important;
  flex-shrink: 0;
}
.service .service-box h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--br-text) !important;
  padding: 0 0 10px !important;
  line-height: 1.3 !important;
}
.service .service-box p {
  font-size: 14px !important;
  color: var(--br-muted) !important;
  line-height: 1.65 !important;
}

/* ============================================================
   SECCIÓN TOP PRODUCTOS
   ============================================================ */
.furniture_section {
  background: #fff !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.furniture_section .box {
  margin-top: 24px !important;
  background: #fff !important;
  border: 1px solid var(--br-line) !important;
  border-radius: var(--br-radius) !important;
  padding: 0 !important;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}
.furniture_section .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(52,104,177,.14) !important;
}

.furniture_section .box .img-box {
  height: 220px !important;
  padding: 16px !important;
  background: var(--br-bg);
  border-bottom: 1px solid var(--br-line);
}
.furniture_section .box .img-box img {
  object-fit: contain;
  transition: transform .3s;
}
.furniture_section .box:hover .img-box img { transform: scale(1.05); }

.furniture_section .box .detail-box {
  padding: 14px 16px 16px !important;
  margin-top: 0 !important;
}
.furniture_section .box .detail-box h5 {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  margin-bottom: 8px;
  min-height: 36px;
  line-height: 1.4;
}
.furniture_section .box .detail-box h5 label {
  color: var(--br-text) !important;
  cursor: pointer;
}

.furniture_section .box .detail-box .price_box { align-items: center; }
.furniture_section .box .detail-box .price_box label {
  color: var(--br-blue) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
.furniture_section .box .detail-box .price_box label span { color: var(--br-muted) !important; font-size: 14px; }

/* Botón agregar al carrito */
.btn-add-to-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100% !important;
  margin-top: 12px;
  padding: 9px 14px !important;
  background: var(--br-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-add-to-cart:hover {
  background: var(--br-blue-dk) !important;
  transform: scale(1.02);
}
.btn-add-to-cart i { font-size: 15px; }

/* ============================================================
   SECCIÓN PRODUCTOS (product.php / subproduct.php)
   ============================================================ */
.product-bg { background: var(--br-bg) !important; }
.product-bg-white {
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.06) !important;
  border-radius: 16px;
  padding: 40px 30px !important;
}

.product-bg .product-bg-white .product-box {
  background: #fff !important;
  border: 1px solid var(--br-line) !important;
  border-radius: var(--br-radius) !important;
  padding: 16px !important;
  margin-bottom: 20px !important;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
  text-align: center;
}
.product-bg .product-bg-white .product-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(52,104,177,.14) !important;
  border-color: var(--br-blue) !important;
}
.product-bg .product-bg-white .product-box h3 {
  color: var(--br-text) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}
.product-bg .product-bg-white .product-box span {
  color: var(--br-blue) !important;
  font-size: 18px !important;
}

/* Panel flex (subproduct grid cards) */
.panel-flex .box {
  border: 1px solid var(--br-line) !important;
  border-radius: var(--br-radius) !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
  background: #fff !important;
  transition: transform .22s, box-shadow .22s;
  margin-bottom: 20px;
  padding: 0 !important;
}
.panel-flex .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(52,104,177,.14) !important;
}
.panel-flex .box .img-box {
  height: 200px !important;
  background: var(--br-bg);
  border-bottom: 1px solid var(--br-line);
  padding: 12px !important;
}
.panel-flex .box .detail-box {
  padding: 12px 14px 14px !important;
  margin-top: 0 !important;
}
.panel-flex .box .detail-box h5 label { color: var(--br-text) !important; }

/* ============================================================
   PRODUCT.PHP — categorías (cream_section)
   ============================================================ */
.cream_section {
  background: #f8fafc !important;
  padding-top: 40px !important;
  padding-bottom: 50px;
}

.cream_taital {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--br-text) !important;
}

.cream_section_2 {
  background: transparent !important;
  padding-top: 16px !important;
}

/* Tarjetas de categoría: diseño moderno */
.cream_box {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--br-line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
  margin-bottom: 20px !important;
  transition: transform .22s, box-shadow .22s !important;
}
.cream_box:hover {
  background: #fff !important;
  background-image: none !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 40px rgba(52,104,177,.18) !important;
  border-color: var(--br-blue) !important;
}

.cream_img {
  background: var(--br-blue) !important;
  padding: 20px 16px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
}
.cream_img img {
  max-height: 140px !important;
  width: auto !important;
  object-fit: contain !important;
}

.strawberry_text,
h6.strawberry_text {
  text-align: center !important;
  padding: 14px 12px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: var(--br-text) !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  margin: 0 !important;
}

/* ============================================================
   BRAND COLOR (header de secciones internas)
   ============================================================ */
.brand_color {
  background: linear-gradient(135deg, var(--br-blue-dk), var(--br-blue)) !important;
  padding: 10px 0 !important;
}
.brand_color .titlepage { margin-top: 30px !important; padding-bottom: 30px !important; }
.brand_color .titlepage h2 {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 28px !important;
}

/* ============================================================
   SECCIÓN CONTACTO
   ============================================================ */
.contact-form .form-control {
  border: 1px solid var(--br-line) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  background: #f9fafb;
  margin-bottom: 14px !important;
  height: auto !important;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
  border-color: var(--br-blue) !important;
  box-shadow: 0 0 0 3px rgba(52,104,177,.15) !important;
  background: #fff;
}
.contact-form textarea.form-control { border-radius: 10px !important; resize: vertical; }
.contact-form .btn-primary {
  background: var(--br-blue) !important;
  border-color: var(--br-blue) !important;
  border-radius: 25px !important;
  padding: 10px 32px !important;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .15s;
}
.contact-form .btn-primary:hover {
  background: var(--br-blue-dk) !important;
  border-color: var(--br-blue-dk) !important;
  transform: translateY(-1px);
}

/* Iconos de contacto */
.btn-icon.bg-primary { background: var(--br-blue) !important; border-radius: 12px; }
.btn-icon.bg-secondary { background: #0ea5e9 !important; border-radius: 12px; }
.btn-icon.bg-warning { background: var(--br-yellow) !important; border-radius: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer_section { background: #0f1b35; }

.location_bg {
  background: linear-gradient(90deg, var(--br-blue-dk) 0%, var(--br-blue) 100%) !important;
}

.location_main li {
  padding: 22px 40px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,.9) !important;
}
.location_main li a {
  color: rgba(255,255,255,.9) !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.location_main li a:hover { color: var(--br-yellow) !important; }
.location_main li a img { width: 22px !important; height: 22px !important; opacity: .85; }

.copyright_section {
  background: #0a1628 !important;
  padding: 14px 0 !important;
}
.copyright_text {
  color: rgba(255,255,255,.6) !important;
  font-size: 13px !important;
  margin: 0 !important;
}

/* WhatsApp float */
div[style*="bottom: 20px"][style*="right: 20px"] {
  filter: drop-shadow(0 4px 12px rgba(37,211,102,.5));
  transition: filter .2s, transform .2s;
}
div[style*="bottom: 20px"][style*="right: 20px"]:hover {
  filter: drop-shadow(0 6px 20px rgba(37,211,102,.6));
  transform: scale(1.08);
}

/* ============================================================
   TITLES generales
   ============================================================ */
.title h2 {
  font-size: 34px !important;
  color: var(--br-text) !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
}
.title h2::after {
  background: var(--br-blue) !important;
  height: 4px !important;
  width: 60px !important;
  border-radius: 2px;
}
.title span {
  font-size: 16px !important;
  color: var(--br-muted) !important;
  line-height: 1.6 !important;
}

/* ============================================================
   HEADING "NOSOTROS / AYUDA"
   ============================================================ */
.section-title h6 { color: var(--br-blue) !important; }
.section-title h1.display-4 { font-size: 2.2rem !important; color: var(--br-text) !important; font-weight: 700 !important; }

/* ============================================================
   CARRITO MODAL (mejoras menores)
   ============================================================ */
#cartModal .modal-content { border-radius: 18px; overflow: hidden; }
#cartModal .modal-header { background: var(--br-blue); color: #fff; }
#cartModal .modal-title { color: #fff; }

/* ============================================================
   DETALLES DE PRODUCTO
   ============================================================ */
.product_page .box {
  border-radius: var(--br-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border: 1px solid var(--br-line);
  padding: 20px;
}

/* ============================================================
   RESPONSIVE EXTRAS
   ============================================================ */
@media (max-width: 767px) {
  .logo img { height: 50px !important; }
  .buy { padding: 6px 14px !important; font-size: 12px !important; }
  .title h2 { font-size: 24px !important; }
  .service .service-box { padding: 20px 16px !important; }
  .location_main li { padding: 16px 20px !important; float: none; }
  .header-nav-wrap { padding: 6px 12px; }
  .furniture_section { padding-top: 40px !important; padding-bottom: 40px !important; }
}

/* ============================================================
   HEADER V2 — barra de búsqueda centrada
   ============================================================ */
.bricol-main-nav {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.bricol-nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}

/* Logo texto */
.bricol-logo-text {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  line-height: 1;
  flex-shrink: 0;
}
.bricol-logo-main {
  font-size: 1.45rem;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: 1.5px;
}
.bricol-logo-sub {
  font-size: .58rem;
  font-weight: 700;
  color: #3468b1;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Search form */
.bricol-search-form {
  display: flex;
  align-items: center;
  border: 2px solid #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 46px;
  flex: 1;
  min-width: 0;
}
.bricol-cat-select {
  border: none;
  border-right: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  height: 100%;
  outline: none;
  min-width: 165px;
  cursor: pointer;
  flex-shrink: 0;
}
.bricol-search-input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: 14px;
  color: #1a1a2e;
  height: 100%;
  outline: none;
  background: transparent;
  min-width: 0;
  font-family: inherit;
}
.bricol-search-input::placeholder { color: #9ca3af; }
.bricol-search-btn {
  background: #1a1a2e;
  color: #fff;
  border: none;
  height: 100%;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.bricol-search-btn:hover { background: #3468b1; }

/* Nav actions */
.bricol-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bricol-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e !important;
  text-decoration: none !important;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.bricol-nav-link:hover { background: #f1f5f9; color: #3468b1 !important; }
.bricol-hamburger {
  background: none;
  border: none;
  font-size: 22px;
  color: #3468b1;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  display: none;
}

/* Secondary nav bar */
.bricol-sec-nav {
  background: #1a1a2e;
  padding: 0 20px;
}
.bricol-sec-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.bricol-sec-nav-list li a {
  display: block;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.75) !important;
  text-decoration: none !important;
  transition: color .15s, background .15s;
}
.bricol-sec-nav-list li a:hover { color: #ffc221 !important; background: rgba(255,255,255,.05); }

/* Mobile menu */
.bricol-mobile-menu {
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.bricol-mobile-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.bricol-mobile-menu ul li a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}
.bricol-mobile-menu ul li a:hover { color: #3468b1; background: #f8fafc; }

@media (max-width: 767px) {
  .bricol-hamburger { display: flex !important; }
  .bricol-cat-select { display: none; }
  .bricol-search-form { border-radius: 8px; }
  .bricol-nav-link span { display: none; }
  .bricol-search-btn span { display: none; }
  .bricol-search-btn { padding: 0 14px; }
}

/* ============================================================
   TOP PRODUCTOS V2 — "Más vendidos esta semana"
   ============================================================ */
.bricol-top-section {
  background: #fff;
  padding: 64px 0 72px;
}
.bricol-top-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 14px;
}
.bricol-top-title .t1 {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.1;
}
.bricol-top-title .t2 {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ee703b;
  line-height: 1.1;
}
.bricol-top-sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}
.bricol-see-all {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a1a2e;
  text-decoration: none !important;
  border-bottom: 2px solid #ee703b;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .15s;
}
.bricol-see-all:hover { color: #ee703b; }

/* Product card */
.bricol-pc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 0;
}
.bricol-pc:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,.11);
  transform: translateY(-4px);
}
.bricol-pc-img {
  position: relative;
  background: #f8fafc;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.bricol-pc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s;
}
.bricol-pc:hover .bricol-pc-img img { transform: scale(1.06); }
.bricol-pc-img a { display: block; width: 100%; height: 100%; }

.bricol-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  z-index: 2;
  pointer-events: none;
}
.bricol-badge-pct  { background: #ee703b; color: #fff; }
.bricol-badge-pro  { background: #1a1a2e; color: #fff; }
.bricol-badge-top  { background: #f59e0b; color: #fff; }
.bricol-badge-new  { background: #3468b1; color: #fff; }

.bricol-pc-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bricol-pc-meta {
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.bricol-pc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}
.bricol-pc-name:hover { color: #3468b1; }
.bricol-pc-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.bricol-pc-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}
.bricol-pc-unit {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-left: 1px;
}
.bricol-pc-add {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #3468b1;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.bricol-pc-add:hover { background: #244e8e; transform: scale(1.1); }

.bricol-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1199px) { .bricol-top-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .bricol-top-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .bricol-top-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .bricol-top-title .t1, .bricol-top-title .t2 { font-size: 1.7rem; }
  .bricol-top-section { padding: 44px 0 52px; }
}

/* ============================================================
   CONTACTO V2 — Cotización B2B + barra de ubicación
   ============================================================ */
.bricol-contact-v2 {
  background: #fff;
  padding: 80px 0 0;
}
.bricol-contact-left-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 14px;
}
.bricol-contact-left-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 380px;
}
.bricol-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 12px;
  text-decoration: none !important;
  transition: opacity .15s, transform .15s;
}
.bricol-channel:hover { opacity: .9; transform: translateX(3px); }
.bricol-channel-wa  { background: #22c55e; }
.bricol-channel-tel { background: #3468b1; }
.bricol-channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: #fff;
}
.bricol-channel-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.75);
  line-height: 1;
}
.bricol-channel-value {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.bricol-channel-sub {
  font-size: 11px;
  color: rgba(255,255,255,.7);
}

/* Quotation card */
.bricol-quot-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 30px 28px;
}
.bricol-quot-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 22px;
}
.bricol-qlabel {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.bricol-qinput,
.bricol-qselect,
.bricol-qtextarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14px;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  box-sizing: border-box;
}
.bricol-qinput:focus,
.bricol-qselect:focus,
.bricol-qtextarea:focus {
  border-color: #3468b1;
  box-shadow: 0 0 0 3px rgba(52,104,177,.13);
}
.bricol-qtextarea { resize: vertical; min-height: 88px; }
.bricol-qrow { display: flex; gap: 12px; margin-bottom: 12px; }
.bricol-qrow .bricol-qfield { flex: 1; min-width: 0; }
.bricol-qfield { margin-bottom: 12px; }
.bricol-qbtn {
  width: 100%;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
  font-family: inherit;
}
.bricol-qbtn:hover { background: #3468b1; }

/* Location bar */
.bricol-loc-bar {
  background: #1a1a2e;
  padding: 20px 0;
  margin-top: 60px;
}
.bricol-loc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bricol-loc-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bricol-loc-pin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #f59e0b;
}
.bricol-loc-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.bricol-loc-addr {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.bricol-loc-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s;
  display: inline-block;
}
.bricol-loc-btn:hover { background: #d97706; color: #fff; }
@media (max-width: 767px) {
  .bricol-contact-v2 { padding: 50px 0 0; }
  .bricol-contact-left-title { font-size: 1.6rem; }
  .bricol-qrow { flex-direction: column; gap: 0; }
  .bricol-loc-inner { justify-content: center; text-align: center; }
  .bricol-loc-left { flex-direction: column; text-align: center; }
}

/* ============================================================
   PRODUCT CARD V3 — diseño con corazón, SKU, EN STOCK
   ============================================================ */
.bricol-pc-img {
  background: repeating-linear-gradient(
    -45deg,
    #f3f4f6 0px, #f3f4f6 2px,
    #fff    2px, #fff    12px
  ) !important;
}
.bricol-pc-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  font-size: 13px;
  transition: color .15s, border-color .15s;
  padding: 0;
  flex-shrink: 0;
}
.bricol-pc-wish:hover { color: #ef4444; border-color: #fca5a5; }
.bricol-pc-wish.fav-active { color: #ef4444; border-color: #fca5a5; background: #fff1f2; }
.det-wish-btn.fav-active { color: #ef4444; }
.bricol-pc-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  letter-spacing: .8px;
}
.bricol-pc-sku {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.bricol-pc-price { color: #3468b1 !important; }
.bricol-pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
}
.bricol-pc-stock {
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 6px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bricol-pc-stock .fa { font-size: 9px; }
.bricol-pc-pza {
  float: right;
  color: #16a34a;
  font-weight: 700;
  font-size: 10px;
}
.bricol-pc-unit-line {
  font-size: 11px;
  color: #9ca3af;
  margin: 4px 0 10px;
}
.bricol-pc-plus {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  flex-shrink: 0;
  font-size: 16px !important;
}

/* ============================================================
   SUBPRODUCT PAGE — hero + sidebar + grid
   ============================================================ */

/* Breadcrumb */
.subprod-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  font-size: 13px;
  color: #6b7280;
}
.subprod-breadcrumb a { color: #3468b1; text-decoration: none; }
.subprod-breadcrumb a:hover { text-decoration: underline; }
.subprod-breadcrumb span { color: #1a1a2e; font-weight: 600; }

/* Hero banner */
.subprod-hero {
  background: linear-gradient(120deg, #1a1a2e 60%, #1f3a7a 100%);
  color: #fff;
  padding: 42px 0 38px;
  position: relative;
  overflow: hidden;
}
.subprod-hero-circle {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.subprod-hero-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 8px;
}
.subprod-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.1;
}
.subprod-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
  max-width: 520px;
}
.subprod-hero-meta {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* Layout */
.subprod-wrap {
  background: #f8fafc;
  padding: 32px 0 60px;
}
.subprod-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

/* Sidebar */
.subprod-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 18px 18px;
}
.subprod-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.subprod-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
}
.subprod-clear-btn {
  font-size: 12px;
  color: #3468b1;
  background: none;
  border: 1px solid #3468b1;
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.subprod-clear-btn:hover { background: #3468b1; color: #fff; }
.subprod-filter-group { margin-bottom: 20px; }
.subprod-filter-group:last-child { margin-bottom: 0; }
.subprod-filter-group-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}
.subprod-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  border-radius: 6px;
  transition: color .12s;
}
.subprod-filter-item:hover { color: #3468b1; }
.subprod-filter-item input[type=checkbox],
.subprod-filter-item input[type=radio] {
  accent-color: #3468b1;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.subprod-filter-count {
  margin-left: auto;
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 1px 7px;
}
.subprod-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 14px 0;
}

/* Main area */
.subprod-main { flex: 1; min-width: 0; }
.subprod-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.subprod-count {
  font-size: 13px;
  color: #6b7280;
}
.subprod-count strong { color: #1a1a2e; }
.subprod-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.subprod-sort {
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  outline: none;
  height: 34px;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: none;
}
.subprod-view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  transition: background .12s, color .12s;
  padding: 0;
}
.subprod-view-btn.active,
.subprod-view-btn:hover { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

/* Product grid (3 cols for subproduct page) */
.subprod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.subprod-grid.list-view {
  grid-template-columns: 1fr;
}
.subprod-grid.list-view .bricol-pc {
  flex-direction: row;
  max-height: 140px;
}
.subprod-grid.list-view .bricol-pc-img {
  width: 130px;
  min-width: 130px;
  aspect-ratio: unset;
  height: 140px;
}
.subprod-grid.list-view .bricol-pc-body {
  flex: 1;
  padding: 12px 16px;
}
.subprod-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 15px;
}

/* Botón toggle filtros (solo mobile) */
.subprod-filter-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .subprod-grid { grid-template-columns: repeat(2, 1fr); }
  .subprod-hero h1 { font-size: 2rem; }
}
@media (max-width: 767px) {
  .subprod-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #3468b1;
    color: #3468b1;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
  }
  .subprod-filter-badge {
    background: #3468b1;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    line-height: 1.6;
  }
  .subprod-layout { flex-direction: column; }
  .subprod-sidebar {
    width: 100%;
    display: none;
    margin-bottom: 8px;
  }
  .subprod-sidebar.open { display: block; }
  .subprod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .subprod-hero { padding: 28px 0 24px; }
  .subprod-hero h1 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .subprod-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT.PHP — Hero + Categorías
   ============================================================ */

/* Hero */
.cat-hero {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 40px 0 32px;
}
.cat-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cat-hero-breadcrumb {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-hero-breadcrumb a { color: #9ca3af; text-decoration: none; }
.cat-hero-breadcrumb a:hover { color: #3468b1; }
.cat-hero-sep { color: #d1d5db; }
.cat-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.1;
  margin: 0;
}
.cat-hero-right {
  text-align: right;
  flex-shrink: 0;
}
.cat-hero-stat {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.cat-hero-stat strong { color: #1a1a2e; }

/* Section */
.cat-section {
  background: #f8fafc;
  padding: 40px 0 64px;
}

/* Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.cat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,.10);
  transform: translateY(-4px);
  text-decoration: none !important;
}

/* Imagen */
.cat-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-placeholder {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 16px;
}
.cat-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 4px 9px;
  border-radius: 7px;
}

/* Cuerpo */
.cat-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cat-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  flex: 1;
}
.cat-card-count {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  flex-shrink: 0;
}
.cat-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 1199px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-hero-title { font-size: 2rem; }
  .cat-hero { padding: 28px 0 24px; }
  .cat-hero-right { text-align: left; }
}
@media (max-width: 480px)  { .cat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DETALLES.PHP — Página de producto
   ============================================================ */
.det-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 11px 0;
  font-size: 13px;
  color: #6b7280;
}
.det-breadcrumb a { color: #374151; text-decoration: none; }
.det-breadcrumb a:hover { color: #3468b1; }
.det-breadcrumb span { color: #1a1a2e; font-weight: 600; }
.det-breadcrumb .fa { font-size: 10px; margin: 0 6px; color: #d1d5db; }
.det-section { background: #fff; padding: 36px 0 40px; }
.det-layout { display: flex; gap: 48px; align-items: flex-start; }

/* Galería */
.det-gallery { width: 440px; flex-shrink: 0; }
.det-main-img {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg,#f3f4f6 0,#f3f4f6 2px,#fff 2px,#fff 12px);
  margin-bottom: 12px;
}
.det-main-img img { width:100%; height:100%; object-fit:contain; padding:20px; }
.det-img-placeholder { font-size:12px; font-weight:700; letter-spacing:1.5px; color:#9ca3af; text-align:center; padding:20px; }
.det-thumbs { display:flex; gap:10px; flex-wrap:wrap; }
.det-thumb {
  width:72px; height:72px;
  border:2px solid #e5e7eb; border-radius:10px;
  overflow:hidden; cursor:pointer;
  background:#f8fafc;
  display:flex; align-items:center; justify-content:center;
  padding:0; transition:border-color .15s;
}
.det-thumb img { width:100%; height:100%; object-fit:contain; padding:4px; }
.det-thumb.active, .det-thumb:hover { border-color:#3468b1; }
.det-thumb-ph { background:repeating-linear-gradient(-45deg,#f3f4f6 0,#f3f4f6 2px,#fff 2px,#fff 10px); }
.det-thumb-ph span { font-size:9px; font-weight:700; color:#9ca3af; letter-spacing:.5px; text-align:center; padding:4px; }

/* Info */
.det-info { flex:1; min-width:0; }
.det-info-badge-row { margin-bottom:10px; }
.det-badge-top {
  display:inline-block; background:#f59e0b; color:#fff;
  font-size:10px; font-weight:800; letter-spacing:.5px;
  padding:4px 10px; border-radius:7px;
}
.det-sku-line { font-size:12px; font-weight:700; color:#9ca3af; text-transform:uppercase; letter-spacing:1px; margin:0 0 8px; }
.det-title { font-size:1.9rem; font-weight:900; color:#1a1a2e; line-height:1.2; margin:0 0 14px; }
.det-meta-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.det-stars .fa { color:#f59e0b; font-size:14px; }
.det-rating-txt { font-size:13px; color:#6b7280; }
.det-sep { color:#d1d5db; }
.det-stock-badge {
  background:#dcfce7; color:#16a34a; font-size:11px; font-weight:700;
  padding:3px 10px; border-radius:20px; display:flex; align-items:center; gap:4px;
}
.det-price-box {
  background:#f8fafc; border:1px solid #e5e7eb; border-radius:14px;
  padding:18px 20px; margin-bottom:14px;
}
.det-price { display:block; font-size:2.4rem; font-weight:900; color:#3468b1; line-height:1; margin-bottom:6px; }
.det-price-note { font-size:12px; color:#9ca3af; }
.det-mayoreo-box {
  background:#fffbeb; border:1px solid #fcd34d; border-radius:10px;
  padding:12px 14px; font-size:13px; color:#92400e;
  display:flex; align-items:flex-start; gap:8px; margin-bottom:18px;
}
.det-mayoreo-box .fa { color:#f59e0b; margin-top:2px; flex-shrink:0; }
.det-mayoreo-box a { color:#3468b1; font-weight:700; text-decoration:none; }
.det-mayoreo-box a:hover { text-decoration:underline; }

/* Acciones */
.det-actions-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.det-qty-wrap {
  display:flex; align-items:center;
  border:2px solid #e5e7eb; border-radius:10px; overflow:hidden; flex-shrink:0;
}
.det-qty-btn {
  background:#f8fafc; border:none; width:36px; height:44px;
  font-size:18px; font-weight:700; color:#374151; cursor:pointer;
  transition:background .12s; display:flex; align-items:center; justify-content:center; padding:0;
}
.det-qty-btn:hover { background:#e5e7eb; }
.det-qty-input { width:48px; height:44px; border:none; text-align:center; font-size:15px; font-weight:700; color:#1a1a2e; outline:none; background:#fff; }
.det-cart-btn {
  flex:1; height:44px;
  background:#1a1a2e !important; color:#fff !important;
  border:none !important; border-radius:10px !important;
  font-size:14px !important; font-weight:700 !important;
  cursor:pointer; display:flex !important; align-items:center; justify-content:center; gap:8px;
  transition:background .15s !important; padding:0 18px !important;
}
.det-cart-btn:hover { background:#3468b1 !important; }
.det-wish-btn {
  width:44px; height:44px; border:2px solid #e5e7eb; border-radius:10px;
  background:#fff; color:#9ca3af; font-size:16px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0; flex-shrink:0;
  transition:color .15s, border-color .15s;
}
.det-wish-btn:hover { color:#ef4444; border-color:#fca5a5; }
.det-wa-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:12px; background:#ea580c; color:#fff !important;
  border:none; border-radius:10px; font-size:15px; font-weight:700;
  text-decoration:none !important; cursor:pointer; margin-bottom:18px; transition:background .15s;
}
.det-wa-btn:hover { background:#c2410c; }
.det-wa-btn .fa { font-size:18px; }
.det-features {
  display:flex; gap:0;
  border:1px solid #e5e7eb; border-radius:12px; overflow:hidden;
}
.det-feature {
  flex:1; display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-right:1px solid #e5e7eb; font-size:12px;
}
.det-feature:last-child { border-right:none; }
.det-feature .fa { font-size:18px; color:#3468b1; flex-shrink:0; }
.det-feature div { display:flex; flex-direction:column; }
.det-feature strong { font-size:12px; color:#1a1a2e; }
.det-feature span { font-size:11px; color:#9ca3af; }

/* Tabs */
.det-tabs-section { background:#f8fafc; padding:40px 0; }
.det-tabs-nav { display:flex; gap:0; border-bottom:2px solid #e5e7eb; margin-bottom:28px; flex-wrap:wrap; }
.det-tab-btn {
  background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-2px;
  padding:10px 20px; font-size:14px; font-weight:600; color:#6b7280;
  cursor:pointer; transition:color .15s, border-color .15s; white-space:nowrap;
}
.det-tab-btn.active { color:#3468b1; border-bottom-color:#3468b1; }
.det-tab-btn:hover:not(.active) { color:#374151; }
.det-tab-content { display:none; }
.det-tab-content.active { display:block; }
.det-tab-inner {
  background:#fff; border:1px solid #e5e7eb; border-radius:14px;
  padding:28px; display:flex; gap:40px;
  font-size:14px; color:#374151; line-height:1.7;
}
.det-tab-left { flex:1; min-width:0; }
.det-tab-right { width:260px; flex-shrink:0; }
.det-specs-title { font-size:10px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#9ca3af; margin-bottom:12px; }
.det-specs-table { width:100%; border-collapse:collapse; }
.det-specs-table tr { border-bottom:1px solid #f3f4f6; }
.det-specs-table td { padding:8px 4px; font-size:13px; }
.det-specs-table td:first-child { color:#9ca3af; width:45%; }
.det-specs-table td:last-child { font-weight:700; color:#1a1a2e; }

/* Descripción larga (plain text legacy + Summernote HTML) */
.det-desc-html { font-size:14px; color:#374151; line-height:1.8; }
.det-desc-html p  { margin-bottom:10px; }
.det-desc-html ul { list-style:disc   !important; padding-left:24px !important; margin:8px 0 12px !important; }
.det-desc-html ol { list-style:decimal !important; padding-left:24px !important; margin:8px 0 12px !important; }
.det-desc-html li { list-style:inherit !important; display:list-item !important; margin-bottom:4px; }
.det-desc-html h1,.det-desc-html h2,.det-desc-html h3,
.det-desc-html h4,.det-desc-html h5 { font-weight:700; margin:14px 0 6px; color:#1a1a2e; }
.det-desc-html strong { font-weight:700; }
.det-desc-html em    { font-style:italic; }

/* Relacionados */
.det-related { background:#fff; padding:44px 0 56px; }
.det-related-title { font-size:1.5rem; font-weight:900; color:#1a1a2e; margin-bottom:24px; }
.det-related-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

/* Responsive */
@media (max-width: 991px) {
  .det-layout { flex-direction:column; gap:28px; }
  .det-gallery { width:100%; }
  .det-related-grid { grid-template-columns:repeat(2,1fr); }
  .det-tab-inner { flex-direction:column; gap:20px; }
  .det-tab-right { width:100%; }
}
@media (max-width: 767px) {
  .det-title { font-size:1.45rem; }
  .det-price { font-size:1.9rem; }
  .det-features { flex-direction:column; }
  .det-feature { border-right:none; border-bottom:1px solid #e5e7eb; }
  .det-feature:last-child { border-bottom:none; }
  .det-actions-row { flex-wrap:wrap; }
  .det-cart-btn { flex:1 1 100%; order:2; }
  .det-wish-btn { order:3; }
  .det-related-grid { grid-template-columns:repeat(2,1fr); }
}

/* ══════════════════════════════════════════════════════
   CHECKOUT  (.ck-*)
══════════════════════════════════════════════════════ */

/* Hero */
.ck-hero {
  background: linear-gradient(135deg,#1a1a2e 0%,#3468b1 100%);
  padding: 36px 0 28px;
  color: #fff;
}
.ck-hero-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #93c5fd;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.ck-hero-title {
  font-size: 1.9rem;
  font-weight: 900;
  margin: 0;
  color: #fff;
}

/* Stepper */
.ck-stepper-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
}
.ck-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  gap: 0;
}
.ck-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ck-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-step-done .ck-step-circle {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.ck-step-active .ck-step-circle {
  border-color: #3468b1;
  background: #3468b1;
  color: #fff;
}
.ck-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: .4px;
}
.ck-step-done .ck-step-label { color: #16a34a; }
.ck-step-active .ck-step-label { color: #3468b1; }
.ck-step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  margin-bottom: 18px;
  min-width: 40px;
  max-width: 100px;
}
.ck-step-line-done { background: #16a34a; }

/* Body layout */
.ck-body {
  background: #f8fafc;
  padding: 36px 0 60px;
  min-height: 60vh;
}
.ck-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.ck-cart-col {
  flex: 1 1 420px;
  min-width: 320px;
}
.ck-form-col {
  flex: 1 1 480px;
  min-width: 300px;
}

/* Card */
.ck-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(30,40,80,.07);
  padding: 24px 22px;
  margin-bottom: 20px;
}
.ck-card-form { padding: 0; overflow: hidden; }
.ck-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Cart items in checkout */
.ck-empty {
  text-align: center;
  padding: 30px 0;
  color: #9ca3af;
  font-size: 14px;
}
.ck-empty .fa { font-size: 32px; display: block; margin-bottom: 10px; }
.ck-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
}
.ck-item:last-child { border-bottom: none; }
.ck-item-img {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: repeating-linear-gradient(-45deg,#f3f4f6 0,#f3f4f6 2px,#fff 2px,#fff 10px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ck-item-ph {
  font-size: 8px;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
  padding: 4px;
  position: relative;
  z-index: 1;
}
.ck-item-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  z-index: 2;
}
.ck-item-body { flex: 1; min-width: 0; }
.ck-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-item-sku { font-size: 11px; color: #9ca3af; margin-bottom: 3px; }
.ck-item-qty { font-size: 12px; color: #6b7280; }
.ck-item-total {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}

/* Totals */
.ck-totals {
  border-top: 2px solid #f3f4f6;
  padding: 14px 0 4px;
  margin-top: 4px;
}
.ck-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  padding: 4px 0;
}
.ck-total-final {
  font-size: 16px;
  font-weight: 900;
  color: #1a1a2e;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  margin-top: 6px;
}
.ck-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Tabs nav */
.ck-tabs-nav {
  display: flex;
  border-bottom: 2px solid #f3f4f6;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.ck-tab-btn {
  flex: 1;
  padding: 16px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  background: transparent;
  display: block;
}
.ck-tab-btn:hover { color: #3468b1; text-decoration: none; }
.ck-tab-btn.active {
  color: #3468b1;
  border-bottom-color: #3468b1;
  background: #fff;
}
.ck-tab-btn.disabled { opacity: .45; pointer-events: none; }

/* Tab content area */
.ck-tab-content { padding: 24px 22px 0; }

/* Section title */
.ck-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Fields */
.ck-field {
  margin-bottom: 16px;
}
.ck-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: .2px;
}
.ck-req { color: #ef4444; margin-left: 2px; }
.ck-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1a1a2e;
  background: #fafafa;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.ck-input:focus {
  border-color: #3468b1;
  box-shadow: 0 0 0 3px rgba(52,104,177,.12);
  background: #fff;
}
.ck-textarea { resize: vertical; min-height: 72px; }
.ck-field-hint {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Mayoreo pane extras */
.ck-mayoreo-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
  line-height: 1.6;
}
.ck-mayoreo-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 12px;
}
.ck-pro-btn {
  width: 100%;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.ck-pro-btn:hover { background: #3468b1; }
.ck-pro-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Shared section (notas + confirm button) */
.ck-shared {
  padding: 20px 22px 24px;
  border-top: 2px solid #f3f4f6;
  margin-top: 8px;
}
.ck-confirm-btn {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
  margin-top: 6px;
}
.ck-confirm-btn:hover { background: #15803d; }
.ck-confirm-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
  .ck-layout { flex-direction: column; }
  .ck-cart-col,
  .ck-form-col { flex: none; width: 100%; min-width: 0; }
}
@media (max-width: 575px) {
  .ck-hero-title { font-size: 1.4rem; }
  .ck-step-line { min-width: 20px; }
  .ck-card { padding: 18px 14px; }
  .ck-tab-content { padding: 18px 14px 0; }
  .ck-shared { padding: 16px 14px 20px; }
  .ck-tab-btn { font-size: 12px; padding: 14px 8px; text-align: center; }
}
