/* ================================================================
   CARTZILLA-INSPIRED CUSTOM THEME — TF REFRIGERACIÓN
   Compatible con Bootstrap 4 + jQuery
   ================================================================ */

:root {
  --cz-primary:       #0F2EA6;
  --cz-primary-dark:  #0a2085;
  --cz-primary-light: #e8eeff;
  --cz-accent:        #fd7e14;
  --cz-sale:          #e53935;
  --cz-success:       #18a058;
  --cz-text:          #373f50;
  --cz-muted:         #7d879c;
  --cz-border:        #e3e9ef;
  --cz-bg:            #f3f5f9;
  --cz-card-bg:       #ffffff;
  --cz-radius:        0.5rem;
  --cz-radius-sm:     0.375rem;
  --cz-shadow:        0 2px 12px rgba(55, 63, 80, 0.08);
  --cz-shadow-hover:  0 6px 24px rgba(15, 46, 166, 0.14);
  --cz-transition:    all 0.22s ease;
}

/* ── BASE ───────────────────────────────────────────────── */
body {
  color: var(--cz-text);
  background: var(--cz-bg);
  font-family: "Plus Jakarta Sans", "Inter", "Nunito Sans", "Open Sans", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: var(--cz-primary); }
a:hover { color: var(--cz-primary-dark); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--cz-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}


/* ── SECTION HEADINGS ────────────────────────────────────── */
.cz-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cz-border);
}

.cz-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cz-text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cz-section-title span {
  color: var(--cz-primary);
}

.cz-section-link {
  font-size: 13px;
  color: var(--cz-primary);
  font-weight: 600;
}

.cz-section-link:hover { color: var(--cz-primary-dark); }


/* ── PRODUCT GRID COLUMNS ────────────────────────────────── */
.cz-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

/* Cuando está dentro de col-md-9 (con sidebar) — 3 cols */
.col-md-9 .cz-product-grid,
.col-xl-10 .cz-product-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1199px) {
  .cz-product-grid { grid-template-columns: repeat(3, 1fr); }
  .col-xl-10 .cz-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .cz-product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 400px) {
  .cz-product-grid { grid-template-columns: 1fr !important; }
}


/* ── PRODUCT CARD ────────────────────────────────────────── */
.cz-product-card {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  overflow: hidden;
  transition: var(--cz-transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cz-product-card:hover {
  box-shadow: var(--cz-shadow-hover);
  border-color: transparent;
  transform: translateY(-3px);
}

/* Image container */
.cz-product-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1 / 1;
}

.cz-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.cz-product-card:hover .cz-product-card__img {
  transform: scale(1.06);
}

/* Badge (OFERTA / NUEVO) */
.cz-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cz-badge-sale {
  background: var(--cz-sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cz-badge-new {
  background: var(--cz-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Card body */
.cz-product-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cz-product-card__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cz-text);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cz-product-card__name:hover { color: var(--cz-primary); }

.cz-product-card__desc {
  font-size: 12px;
  color: var(--cz-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Prices */
.cz-product-card__price-wrap {
  margin-bottom: 12px;
}

.cz-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--cz-primary);
  line-height: 1;
}

.cz-price-old {
  font-size: 13px;
  color: var(--cz-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.cz-price-sale {
  font-size: 18px;
  font-weight: 800;
  color: var(--cz-sale);
  line-height: 1;
}

/* Stock indicator */
.cz-product-card__stock {
  font-size: 11.5px;
  margin-bottom: 10px;
}

.cz-stock-ok   { color: var(--cz-success); font-weight: 600; }
.cz-stock-out  { color: var(--cz-sale); font-weight: 600; }

/* Add to cart button */
.cz-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  background: var(--cz-primary);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--cz-radius-sm);
  cursor: pointer;
  transition: var(--cz-transition);
  letter-spacing: 0.3px;
  text-decoration: none !important;
}

.cz-btn-cart:hover {
  background: var(--cz-primary-dark);
  box-shadow: 0 4px 12px rgba(15, 46, 166, 0.3);
  color: #fff !important;
}

.cz-btn-cart:disabled,
.cz-btn-cart.disabled {
  background: #c8d0e0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ver más button */
.cz-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: transparent;
  color: var(--cz-primary) !important;
  border: 1.5px solid var(--cz-primary);
  border-radius: var(--cz-radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: var(--cz-transition);
  text-decoration: none !important;
}

.cz-btn-view:hover {
  background: var(--cz-primary);
  color: #fff !important;
}


/* cz-product-grid ya definido arriba */


/* ── CATEGORY CARDS (Index) ──────────────────────────────── */
.cz-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 991px) { .cz-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .cz-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cz-cat-card {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  padding: 20px 14px 16px;
  text-align: center;
  text-decoration: none !important;
  color: var(--cz-text);
  transition: var(--cz-transition);
  display: block;
}

.cz-cat-card:hover {
  border-color: var(--cz-primary);
  box-shadow: var(--cz-shadow-hover);
  color: var(--cz-primary);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.cz-cat-card__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  border-radius: 50%;
  background: var(--cz-bg);
  padding: 8px;
}

.cz-cat-card__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cz-cat-card__sub {
  font-size: 11px;
  color: var(--cz-muted);
  margin-top: 4px;
}


/* ── FILTER SIDEBAR (ProductosTF) ────────────────────────── */
.cz-filter-card {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.cz-filter-card__header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--cz-bg);
  border-bottom: 1px solid var(--cz-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cz-filter-card__body {
  padding: 12px 16px;
}

.cz-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--cz-text);
  cursor: pointer;
}

.cz-filter-check input[type="checkbox"] {
  accent-color: var(--cz-primary);
  width: 15px;
  height: 15px;
}

/* ── TOOLBAR (sort / view toggle) ────────────────────────── */
.cz-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cz-toolbar__count {
  font-size: 13px;
  color: var(--cz-muted);
  margin-right: auto;
}

.cz-toolbar select.form-control {
  height: 36px;
  font-size: 13px;
  border-color: var(--cz-border);
  border-radius: var(--cz-radius-sm) !important;
  width: auto;
  min-width: 160px;
}

.cz-view-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cz-radius-sm);
  border: 1.5px solid var(--cz-border);
  background: transparent;
  color: var(--cz-muted);
  cursor: pointer;
  transition: var(--cz-transition);
}

.cz-view-btn.active,
.cz-view-btn:hover {
  border-color: var(--cz-primary);
  background: var(--cz-primary-light);
  color: var(--cz-primary);
}


/* ── CART PAGE ───────────────────────────────────────────── */
.cz-cart-wrap {
  padding: 24px 0;
}

.cz-cart-table-card {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.cz-cart-table {
  width: 100%;
  margin: 0;
  font-size: 13.5px;
}

.cz-cart-table thead th {
  background: var(--cz-bg);
  color: var(--cz-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cz-border);
  border-top: none;
  white-space: nowrap;
}

.cz-cart-table tbody tr {
  border-bottom: 1px solid var(--cz-border);
  transition: background 0.15s;
}

.cz-cart-table tbody tr:last-child { border-bottom: none; }
.cz-cart-table tbody tr:hover { background: #fafbff; }

.cz-cart-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border: none;
}

.cz-cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--cz-radius-sm);
  border: 1px solid var(--cz-border);
  padding: 4px;
  background: #fff;
}

.cz-cart-item-name {
  font-weight: 600;
  color: var(--cz-text);
  font-size: 13.5px;
  margin-bottom: 4px;
  display: block;
}

.cz-cart-item-name:hover { color: var(--cz-primary); }

.cz-cart-remove {
  color: var(--cz-muted);
  font-size: 16px;
  transition: color 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.cz-cart-remove:hover { color: var(--cz-sale); }

/* Qty control */
.cz-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--cz-border);
  border-radius: var(--cz-radius-sm);
  overflow: hidden;
  width: fit-content;
}

.cz-qty-btn {
  width: 32px;
  height: 36px;
  background: var(--cz-bg);
  border: none;
  font-size: 14px;
  color: var(--cz-text);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cz-qty-btn:hover { background: #e3e9ef; }

.cz-qty-input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1.5px solid var(--cz-border);
  border-right: 1.5px solid var(--cz-border);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: var(--cz-text);
}

.cz-qty-input:focus { outline: none; }

/* Order summary card */
.cz-order-summary {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.cz-order-summary__title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cz-border);
}

.cz-order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 7px 0;
  color: var(--cz-text);
}

.cz-order-summary__row.total {
  font-weight: 800;
  font-size: 16px;
  border-top: 2px solid var(--cz-border);
  margin-top: 8px;
  padding-top: 14px;
}

.cz-btn-checkout {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--cz-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--cz-radius);
  text-align: center;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--cz-transition);
  text-decoration: none !important;
  margin-top: 16px;
}

.cz-btn-checkout:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(15, 46, 166, 0.3);
}

.cz-cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--cz-muted);
}

.cz-cart-empty i { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.cz-cart-empty h4 { font-size: 18px; font-weight: 700; color: var(--cz-text); }
.cz-cart-empty p  { font-size: 14px; }


/* ── PRODUCT DETAIL ──────────────────────────────────────── */
.cz-product-detail {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  padding: 28px;
  margin-bottom: 24px;
}

.cz-product-gallery .slick-slide img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  background: #fff;
  padding: 12px;
}

.cz-product-gallery .slick-dots li button::before {
  font-size: 8px;
  color: var(--cz-primary);
}

.cz-product-sku {
  font-size: 12px;
  color: var(--cz-muted);
  margin-bottom: 8px;
}

.cz-product-price-wrap {
  margin: 14px 0;
}

.cz-product-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--cz-primary);
  line-height: 1;
}

.cz-product-price-old {
  font-size: 16px;
  color: var(--cz-muted);
  text-decoration: line-through;
  margin-right: 10px;
}

.cz-product-price-sale {
  font-size: 28px;
  font-weight: 800;
  color: var(--cz-sale);
}

.cz-product-desc {
  font-size: 13.5px;
  color: var(--cz-muted);
  line-height: 1.7;
  border-top: 1px solid var(--cz-border);
  padding-top: 14px;
  margin-bottom: 14px;
}

.cz-product-stock {
  font-size: 13px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: var(--cz-radius-sm);
  background: var(--cz-bg);
  border: 1px solid var(--cz-border);
}

.cz-add-to-cart-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cz-btn-add-cart {
  flex: 1;
  min-width: 180px;
  padding: 13px 20px;
  background: var(--cz-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--cz-radius-sm);
  cursor: pointer;
  transition: var(--cz-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cz-btn-add-cart:hover { opacity: 0.9; box-shadow: 0 6px 20px rgba(15,46,166,0.3); }
.cz-btn-add-cart:disabled { background: #c8d0e0; cursor: not-allowed; }

/* Tabs (descripción, detalles, comentarios) */
.cz-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cz-border);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.cz-tabs-nav li a {
  display: block;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cz-muted) !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s;
  text-decoration: none !important;
}

.cz-tabs-nav li a.active,
.cz-tabs-nav li a:hover {
  color: var(--cz-primary) !important;
  border-bottom-color: var(--cz-primary);
}

.cz-tab-content-area {
  padding: 20px 0;
  font-size: 13.5px;
  color: var(--cz-text);
  line-height: 1.7;
}

/* Star rating */
.cz-stars { color: #ffa825; letter-spacing: 2px; }
.cz-stars .empty { color: #dde3ec; }


/* ── CHECKOUT PAGE ───────────────────────────────────────── */
.cz-checkout-wrap {
  padding: 24px 0;
}

.cz-checkout-card {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.cz-checkout-card__header {
  background: var(--cz-bg);
  padding: 14px 20px;
  border-bottom: 1px solid var(--cz-border);
  font-size: 15px;
  font-weight: 700;
  color: var(--cz-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cz-checkout-card__header .step-badge {
  width: 26px;
  height: 26px;
  background: var(--cz-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.cz-checkout-card__body {
  padding: 20px;
}

.cz-form-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cz-muted);
  margin-bottom: 5px;
}

.cz-form-control {
  height: 42px;
  border: 1.5px solid var(--cz-border);
  border-radius: var(--cz-radius-sm) !important;
  font-size: 13.5px;
  color: var(--cz-text);
  transition: border-color 0.18s;
}

.cz-form-control:focus {
  border-color: var(--cz-primary);
  box-shadow: 0 0 0 3px rgba(15,46,166,0.10);
  outline: none;
}

/* Payment method cards */
.cz-payment-option {
  border: 2px solid var(--cz-border);
  border-radius: var(--cz-radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--cz-transition);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cz-payment-option:hover { border-color: var(--cz-primary); }
.cz-payment-option.selected { border-color: var(--cz-primary); background: var(--cz-primary-light); }

.cz-payment-option input[type="radio"] { accent-color: var(--cz-primary); }

.cz-payment-option__label {
  font-weight: 700;
  font-size: 13.5px;
}

.cz-payment-option__desc {
  font-size: 12px;
  color: var(--cz-muted);
}


/* ── PAGE BREADCRUMB ─────────────────────────────────────── */
.cz-breadcrumb-wrap {
  background: var(--cz-card-bg);
  border-bottom: 1px solid var(--cz-border);
  padding: 10px 0;
  margin-bottom: 20px;
}

.cz-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--cz-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cz-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.cz-breadcrumb li::after { content: "/"; color: #c8d0e0; font-size: 11px; }
.cz-breadcrumb li:last-child::after { display: none; }
.cz-breadcrumb a { color: var(--cz-muted); font-weight: 600; }
.cz-breadcrumb a:hover { color: var(--cz-primary); }
.cz-breadcrumb li.active { color: var(--cz-text); font-weight: 600; }


/* ── PROMO BANNER ────────────────────────────────────────── */
.cz-promo-banner {
  background: var(--cz-primary);
  border-radius: var(--cz-radius);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cz-promo-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cz-promo-banner__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.18);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cz-promo-banner__title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cz-promo-banner__text {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}

.cz-btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: #fff;
  color: var(--cz-primary) !important;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--cz-radius-sm);
  text-decoration: none !important;
  transition: var(--cz-transition);
}

.cz-btn-promo:hover { background: rgba(255,255,255,0.9); color: var(--cz-primary-dark) !important; }


/* ── COUNTDOWN TIMER ─────────────────────────────────────── */
.cz-countdown {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.cz-countdown__unit {
  text-align: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--cz-radius-sm);
  padding: 8px 12px;
  min-width: 52px;
}

.cz-countdown__value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}

.cz-countdown__label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  display: block;
}

.cz-countdown__sep {
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  margin-top: -4px;
}


/* ── BRAND CAROUSEL ──────────────────────────────────────── */
.cz-brand-strip {
  background: var(--cz-card-bg);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius);
  padding: 20px 40px;   /* 40px lateral para que las flechas (-18px) no se clipeen */
  margin-bottom: 28px;
  overflow: visible;
  position: relative;
}

.cz-brand-strip__title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cz-muted);
  margin-bottom: 16px;
}

.cz-brand-strip img {
  max-height: 72px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(80%) opacity(0.65);
  transition: var(--cz-transition);
  margin: 0 auto;
  display: block;
}

.cz-brand-strip img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Slide del brand strip con más altura */
.slick_demo_2 .slick-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 4px 12px;
}

/* Flechas del carrusel de marcas */
.cz-brand-strip .slick-prev,
.cz-brand-strip .slick-next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cz-primary) !important;
  border: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(15,46,166,0.25);
}
.cz-brand-strip .slick-prev { left: -18px; }
.cz-brand-strip .slick-next { right: -18px; }
.cz-brand-strip .slick-prev:before,
.cz-brand-strip .slick-next:before {
  color: #fff;
  font-size: 16px;
  opacity: 1;
  line-height: 1;
}
.cz-brand-strip .slick-prev:hover,
.cz-brand-strip .slick-next:hover {
  background: var(--cz-primary-dark) !important;
}

/* Precio más compacto dentro de cards pequeñas */
.cz-price,
.cz-price-sale {
  font-size: 15px;
  font-weight: 800;
}
.cz-price-old {
  font-size: 12px;
}

/* Botón agregar más compacto */
.cz-btn-cart {
  font-size: 12px;
  padding: 7px 10px;
}
.cz-btn-view {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

/* Stock texto más pequeño */
.cz-product-card__stock {
  font-size: 11px;
  margin-bottom: 6px;
}


/* ── HELPERS ─────────────────────────────────────────────── */
.cz-divider {
  height: 1px;
  background: var(--cz-border);
  margin: 20px 0;
}

.cz-alert-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: var(--cz-radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.cz-alert-danger {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--cz-radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Override ibox for cartzilla areas */
.cz-page .ibox {
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.cz-page .ibox-content {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Override legacy btnVer to use cz-btn-cart style */
.btnVer {
  background: var(--cz-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--cz-radius-sm) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  padding: 8px 14px !important;
  transition: var(--cz-transition) !important;
}

.btnVer:hover {
  opacity: 0.88;
  box-shadow: 0 4px 14px rgba(15,46,166,0.28) !important;
  color: #fff !important;
}

/* page-container refinement */
.page-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

@media (max-width: 767px) {
  .page-container { padding: 12px 12px 32px; }
  .cz-product-detail { padding: 16px; }
}

/* ── PRODUCTS TOOLBAR ────────────────────────────────────── */
.cz-products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  background: var(--cz-card-bg);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow);
  padding: 12px 18px; margin-bottom: 0;
}
.cz-products-toolbar__left { font-size: 13.5px; color: var(--cz-muted); }
.cz-products-toolbar__left strong { color: var(--cz-text); }
.cz-products-toolbar__right { display: flex; align-items: center; gap: 10px; }
.cz-products-toolbar__view-toggle .btn { height: 34px; width: 36px; padding: 0; }

/* ── SIDEBAR FILTERS ─────────────────────────────────────── */
.cz-sidebar-card {
  background: var(--cz-card-bg);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow);
  overflow: hidden;
}
.cz-sidebar-card__title {
  background: var(--cz-primary);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 14px 18px; margin: 0;
}
.cz-sidebar-card__section { padding: 16px 18px; border-bottom: 1px solid var(--cz-border); }
.cz-sidebar-card__section:last-child { border-bottom: none; }
.cz-sidebar-card__subtitle {
  font-size: 12px; font-weight: 700; color: var(--cz-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}

/* ── CART TABLE ──────────────────────────────────────────── */
.cz-cart-table-card {
  background: var(--cz-card-bg);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow);
  overflow: hidden;
}
.cz-cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cz-cart-table thead tr {
  background: var(--cz-bg);
  border-bottom: 2px solid var(--cz-border);
}
.cz-cart-table thead th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cz-muted);
}
.cz-cart-table__row { border-bottom: 1px solid var(--cz-border); transition: var(--cz-transition); }
.cz-cart-table__row:hover { background: #fafbff; }
.cz-cart-table__cell-img {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}
.cz-cart-table__cell { padding: 16px; vertical-align: middle; }
.cz-cart-item-img {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--cz-radius-sm);
  border: 1px solid var(--cz-border);
  overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cz-cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cz-cart-table__prod-name {
  font-weight: 600; font-size: 13.5px; color: var(--cz-text);
  display: block; margin-top: 4px;
}
.cz-cart-table__prod-name:hover { color: var(--cz-primary); }
.cz-cart-table__remove { color: var(--cz-muted); font-size: 15px; transition: var(--cz-transition); }
.cz-cart-table__remove:hover { color: var(--cz-sale); }

/* ── QTY CONTROL ─────────────────────────────────────────── */
.cz-qty-wrap {
  display: inline-flex; align-items: center;
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius-sm);
  overflow: hidden;
}
.cz-qty-btn {
  width: 32px; height: 36px;
  background: var(--cz-bg); border: none; cursor: pointer;
  font-size: 16px; color: var(--cz-text); transition: var(--cz-transition);
}
.cz-qty-btn:hover { background: var(--cz-primary); color: #fff; }
.cz-qty-input {
  width: 48px; height: 36px;
  border: none; border-left: 1px solid var(--cz-border); border-right: 1px solid var(--cz-border);
  text-align: center; font-weight: 700; font-size: 14px; color: var(--cz-text); background: #fff;
}

/* ── ORDER SUMMARY ───────────────────────────────────────── */
.cz-order-summary {
  background: var(--cz-card-bg);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow);
  padding: 24px;
  position: sticky; top: 90px;
}
.cz-order-summary__title {
  font-size: 17px; font-weight: 700; color: var(--cz-text);
  padding-bottom: 14px; border-bottom: 1px solid var(--cz-border); margin-bottom: 16px;
}
.cz-order-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; color: var(--cz-text); margin-bottom: 20px;
}
.cz-order-summary__row strong { font-size: 20px; color: var(--cz-primary); }
.cz-btn-checkout {
  display: block; width: 100%; text-align: center;
  background: var(--cz-primary);
  color: #fff !important; border: none;
  border-radius: var(--cz-radius);
  padding: 14px 20px; font-weight: 700; font-size: 15px;
  transition: var(--cz-transition); text-decoration: none;
}
.cz-btn-checkout:hover { opacity: 0.88; box-shadow: 0 4px 18px rgba(15,46,166,0.3); color: #fff !important; }
.cz-order-summary__continue {
  display: block; text-align: center; margin-top: 14px;
  color: var(--cz-muted); font-size: 13px; transition: var(--cz-transition);
}
.cz-order-summary__continue:hover { color: var(--cz-primary); }

/* ── PROMO BANNER / COUNTDOWN ────────────────────────────── */
.cz-promo-banner {
  background: #0F2EA6;
  border-radius: var(--cz-radius); padding: 32px 28px; color: #fff;
  display: flex; flex-direction: column; min-height: 260px;
}
.cz-promo-banner__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18); border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 16px; width: fit-content;
}
.cz-promo-banner__title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cz-promo-banner__text { font-size: 13.5px; color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.cz-countdown { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.cz-countdown__unit {
  background: rgba(255,255,255,0.18); border-radius: var(--cz-radius-sm);
  padding: 10px 14px; text-align: center; min-width: 54px;
}
.cz-countdown__value { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.cz-countdown__label {
  display: block; font-size: 10px; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}
.cz-countdown__sep { font-size: 24px; font-weight: 800; color: rgba(255,255,255,0.5); }
.cz-btn-promo {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--cz-primary) !important;
  border-radius: var(--cz-radius); padding: 12px 22px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: var(--cz-transition); width: fit-content; margin-top: auto;
}
.cz-btn-promo:hover {
  background: var(--cz-primary-light); box-shadow: 0 4px 14px rgba(255,255,255,0.3);
  color: var(--cz-primary) !important;
}

/* ── CATEGORY CARDS ──────────────────────────────────────── */
.cz-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px;
}
@media (max-width: 991px) { .cz-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .cz-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cz-cat-card {
  display: block; background: var(--cz-card-bg); border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow); overflow: hidden; text-decoration: none; transition: var(--cz-transition);
}
.cz-cat-card:hover { transform: translateY(-3px); box-shadow: var(--cz-shadow-hover); text-decoration: none; }
.cz-cat-card__img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--cz-bg); }
.cz-cat-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cz-cat-card:hover .cz-cat-card__img { transform: scale(1.05); }
.cz-cat-card__body {
  padding: 12px 14px;
  background: var(--cz-primary);
}
.cz-cat-card__name {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}

/* ── PRODUCT CARD EXTRAS ─────────────────────────────────── */
.cz-product-card__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cz-btn-cart--disabled { opacity: 0.5; cursor: not-allowed; }
.cz-product-card__stock { display: block; font-size: 11px; color: var(--cz-success); font-weight: 600; margin-bottom: 4px; }
.cz-product-card__stock--out { color: var(--cz-sale); }
.cz-btn-view {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cz-bg); border-radius: var(--cz-radius-sm);
  color: var(--cz-text); font-size: 14px; transition: var(--cz-transition); text-decoration: none;
}
.cz-btn-view:hover { background: var(--cz-primary); color: #fff; }

/* ── RESPONSIVE CART ─────────────────────────────────────── */
@media (max-width: 767px) {
  .cz-cart-table thead { display: none; }
  .cz-cart-table__row { display: block; padding: 16px; margin-bottom: 12px; }
  .cz-cart-table__cell-img { flex-wrap: wrap; }
  .cz-cart-table__cell {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-top: 1px solid var(--cz-border);
  }
  .cz-cart-table__cell::before {
    content: attr(data-label);
    font-weight: 700; color: var(--cz-muted); font-size: 11px; text-transform: uppercase;
  }
}

/* ── MODAL CARRITO ───────────────────────────────────────── */
#myModal5 .modal-body {
  background: #fff;
  padding: 0;
  color: #333 !important;
}
/* Anular el color blanco global de <a> dentro del modal */
#myModal5 a { color: #0F2EA6 !important; }
/* Anular cualquier herencia que blanquee textos en spans/b/strong */
#myModal5 .modal-body span,
#myModal5 .modal-body b,
#myModal5 .modal-body strong,
#myModal5 .modal-body div { color: inherit; }
#myModal5 .modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 10px 14px;
}
#myModal5 .modal-footer span { color: #777 !important; font-size: 12px; }

/* ── CHECKOUT DESHABILITADO ──────────────────────────────── */
.cz-checkout-disabled {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #7a5c00;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 14px;
}
.cz-checkout-disabled i {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
  color: #e6a800;
}

/* ── FOOTER — textos en blanco ───────────────────────────── */
footer.bg-primary p,
footer.bg-primary li,
footer.bg-primary strong,
footer.bg-primary small {
  color: #fff !important;
}
footer.bg-primary a,
footer.bg-primary .GrisH {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
}
footer.bg-primary a:hover,
footer.bg-primary .GrisH:hover {
  color: #fff !important;
  text-decoration: underline;
}
