/* ============================================================
   TIENDA VIRTUAL — Estilos Principales
   ============================================================ */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --accent: #ff6f00;
  --accent-light: #ffa000;
  --danger: #e53935;
  --success: #43a047;
  --text: #212121;
  --text-muted: #757575;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,.10);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.18);
  --radius: 10px;
  --transition: .25s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-size: 15px;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); text-decoration: none; }

/* ── Navbar ─────────────────────────────────────────────────── */
.shop-navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.shop-navbar .navbar-brand {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 12px 15px;
}
.shop-navbar .navbar-brand img { height: 40px; vertical-align: middle; margin-right: 8px; }
.shop-navbar .nav > li > a {
  color: rgba(255,255,255,.85) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 18px 15px;
  transition: color var(--transition), background var(--transition);
}
.shop-navbar .nav > li > a:hover,
.shop-navbar .nav > li.active > a {
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
}
.shop-navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  margin-top: 0;
}
.shop-navbar .dropdown-menu > li > a { color: var(--text); padding: 9px 20px; font-size: 14px; }
.shop-navbar .dropdown-menu > li > a:hover { background: var(--bg); color: var(--primary); }

/* Search bar */
.shop-search-form { margin: 10px 0; }
.shop-search-form .input-group { max-width: 340px; }
.shop-search-form input { border-radius: 24px 0 0 24px !important; border: none; padding: 8px 18px; font-size: 14px; }
.shop-search-form .btn { border-radius: 0 24px 24px 0 !important; background: var(--accent); border: none; color: #fff; padding: 8px 18px; }
.shop-search-form .btn:hover { background: var(--accent-light); }

/* Cart icon */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: 6px; right: 2px;
  background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 10px; font-weight: 700;
  padding: 1px 5px; min-width: 16px; text-align: center;
}

/* ── Top bar ─────────────────────────────────────────────────── */
.shop-topbar {
  background: #0d1257;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  padding: 6px 0;
}
.shop-topbar a { color: rgba(255,255,255,.75); }
.shop-topbar a:hover { color: #fff; }

/* ── Slider ──────────────────────────────────────────────────── */
.shop-slider { position: relative; overflow: hidden; border-radius: 0 0 16px 16px; }
.slide-item {
  position: relative; min-height: 460px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.slide-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,15,70,.88) 0%, rgba(10,15,80,.5) 55%, rgba(10,15,60,.15) 100%);
}
.slide-content {
  position: relative; color: #fff; padding: 48px 64px; max-width: 620px;
}
.slide-content .slide-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(255,111,0,.9); display: inline-block;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
}
.slide-content h1 {
  font-size: 48px; font-weight: 900; margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4); line-height: 1.1;
}
.slide-content p { font-size: 18px; margin: 0 0 28px; opacity: .9; line-height: 1.6; }
.slide-content .btn-accent {
  background: var(--accent); color: #fff; border: none;
  padding: 14px 38px; font-size: 16px; font-weight: 700;
  border-radius: 30px; box-shadow: 0 6px 20px rgba(255,111,0,.45);
  transition: all var(--transition); display: inline-block;
}
.slide-content .btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,111,0,.55); color: #fff; }
.carousel-control {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 50%;
  width: 48px; height: 48px; top: 50%; margin-top: -24px;
  transition: background var(--transition);
}
.carousel-control:hover { background: rgba(255,255,255,.25); }
.carousel-control .glyphicon { font-size: 16px; }
.carousel-indicators { bottom: 18px; }
.carousel-indicators li { background: rgba(255,255,255,.45); border: none; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px; transition: all var(--transition); }
.carousel-indicators .active { background: #fff; width: 28px; border-radius: 4px; }

/* ── Section headers ─────────────────────────────────────────── */
.section-title {
  text-align: center; margin: 48px 0 28px;
}
.section-title h2 {
  font-size: 30px; font-weight: 800; color: var(--primary);
  display: inline-block; position: relative; margin: 0;
  letter-spacing: -.3px;
}
.section-title h2::after {
  content: ''; display: block; height: 4px; width: 50px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px; margin: 10px auto 0;
}
.section-title p { color: var(--text-muted); margin: 12px 0 0; font-size: 15px; }

/* ── Product cards ───────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
  border-color: #c5cae9;
}
.product-card-img {
  position: relative; overflow: hidden;
  height: 210px; background: #f7f8fc;
  display: flex; align-items: center; justify-content: center;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-img .no-img { font-size: 60px; color: #ddd; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.badge-new     { background: var(--success); color: #fff; }
.badge-featured{ background: var(--accent);  color: #fff; }
.badge-no-stock{ background: #90a4ae; color: #fff; }
.badge-prod    { background: var(--primary-light); color: #fff; }
.product-card-body {
  padding: 14px 16px; flex: 1;
  display: flex; flex-direction: column;
}
.product-card-category { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.product-card-name { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 8px; flex: 1; line-height: 1.4; }
.product-card-name a { color: var(--text); }
.product-card-name a:hover { color: var(--primary); }
.product-card-price { font-size: 21px; font-weight: 800; color: var(--primary); margin: 0 0 4px; letter-spacing: -.3px; }
.product-card-price .currency { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-right: 2px; }
.product-card-stock { font-size: 12px; margin-bottom: 10px; }
.stock-ok  { color: var(--success); }
.stock-low { color: #f57c00; }
.stock-out { color: var(--text-muted); }
.product-card-prod { font-size: 11px; color: var(--primary-light); margin-bottom: 10px; }
.product-card-footer { padding: 10px 14px 14px; }
.btn-add-cart {
  width: 100%; background: var(--primary); color: #fff; border: none;
  padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
  transition: all var(--transition); letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { background: var(--accent); transform: none; }
.btn-add-cart .fa { font-size: 14px; }

/* ── Category cards ──────────────────────────────────────────── */
.category-card {
  --cat-color: #1a237e;
  --cat-bg: #e8eaf6;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 12px 18px;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-color);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.18); border-color: transparent; }
.category-card .cat-icon-wrap {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--cat-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  transition: all var(--transition);
}
.category-card .cat-icon-wrap .fa { font-size: 24px; color: var(--cat-color); transition: color var(--transition); }
.category-card:hover .cat-icon-wrap { background: rgba(255,255,255,.2); }
.category-card:hover .cat-icon-wrap .fa { color: #fff; }
.category-card .cat-name {
  position: relative; font-size: 13px; font-weight: 700;
  color: var(--text); transition: color var(--transition);
  line-height: 1.3;
}
.category-card:hover .cat-name { color: #fff; }
.category-card .cat-count {
  position: relative; font-size: 11px;
  color: var(--text-muted); margin-top: 4px;
  transition: color var(--transition);
}
.category-card:hover .cat-count { color: rgba(255,255,255,.75); }

/* ── Sidebar filter ──────────────────────────────────────────── */
.filter-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.filter-box h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin: 0 0 14px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.filter-item { padding: 5px 0; }
.filter-item label { font-weight: normal; cursor: pointer; margin: 0; font-size: 14px; }
.price-range-inputs { display: flex; gap: 8px; }
.price-range-inputs input { flex: 1; }
.btn-filter { width: 100%; background: var(--primary); color: #fff; border: none; padding: 9px; border-radius: 6px; font-weight: 600; transition: background var(--transition); }
.btn-filter:hover { background: var(--primary-light); }

/* ── Product detail page ─────────────────────────────────────── */
.product-gallery { position: relative; }
.product-main-img {
  width: 100%; height: 380px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: zoom-in; transition: transform var(--transition);
}
.product-main-img:hover { transform: scale(1.02); }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumb {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: 6px; border: 2px solid var(--border);
  cursor: pointer; transition: border-color var(--transition);
}
.product-thumb:hover, .product-thumb.active { border-color: var(--primary); }
.product-detail-name { font-size: 26px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.product-detail-price {
  font-size: 32px; font-weight: 800; color: var(--primary);
  margin: 12px 0;
}
.product-detail-price small { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.product-production-info {
  background: linear-gradient(135deg, #e8eaf6 0%, #e3f2fd 100%);
  border: 1px solid #c5cae9; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0; display: flex; align-items: center; gap: 10px;
}
.product-production-info .fa { color: var(--primary-light); font-size: 18px; }
.attr-selector { margin-bottom: 14px; }
.attr-selector label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; }
.attr-option {
  display: inline-block; border: 2px solid var(--border);
  border-radius: 6px; padding: 5px 14px; margin: 3px; font-size: 13px;
  cursor: pointer; transition: all var(--transition); user-select: none;
}
.attr-option:hover, .attr-option.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-add-to-cart {
  background: var(--accent); color: #fff; border: none;
  padding: 14px 36px; font-size: 16px; font-weight: 700;
  border-radius: 30px; width: 100%; margin-top: 16px;
  box-shadow: 0 4px 14px rgba(255,111,0,.35);
  transition: all var(--transition); letter-spacing: .3px;
}
.btn-add-to-cart:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,111,0,.45); }
.btn-add-to-cart:disabled { background: #90a4ae; box-shadow: none; transform: none; cursor: not-allowed; }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: 130px; }
.qty-btn { background: #f5f5f5; border: none; width: 38px; height: 38px; font-size: 18px; cursor: pointer; transition: background var(--transition); }
.qty-btn:hover { background: #e0e0e0; }
.qty-input { border: none; width: 54px; text-align: center; font-size: 16px; font-weight: 600; }
.qty-input:focus { outline: none; }

/* ── Cart ────────────────────────────────────────────────────── */
.cart-table { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th { background: var(--primary); color: #fff; padding: 12px 16px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.cart-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.cart-img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-product-name { font-weight: 600; font-size: 15px; }
.cart-variation { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cart-price { font-weight: 700; color: var(--primary); }
.cart-qty-input { width: 70px; text-align: center; border: 1px solid var(--border); border-radius: 6px; padding: 5px; font-size: 14px; }
.cart-remove { color: var(--danger); cursor: pointer; font-size: 18px; }
.cart-remove:hover { color: #b71c1c; }
.order-summary-box {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); position: sticky; top: 80px;
}
.order-summary-box h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-total { font-size: 20px; font-weight: 800; color: var(--primary); border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; }
.btn-checkout {
  width: 100%; background: var(--accent); color: #fff; border: none;
  padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700;
  margin-top: 16px; transition: all var(--transition);
}
.btn-checkout:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-continue { width: 100%; background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-top: 10px; transition: all var(--transition); }
.btn-continue:hover { background: var(--primary); color: #fff; }

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-form-box {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.checkout-form-box h4 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.form-control { border-radius: 8px !important; border: 1px solid var(--border) !important; padding: 10px 14px !important; font-size: 14px !important; transition: border-color var(--transition) !important; }
.form-control:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(26,35,126,.1) !important; }
.payment-option {
  border: 2px solid var(--border); border-radius: 8px; padding: 14px 18px;
  margin-bottom: 10px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 12px;
}
.payment-option:hover { border-color: var(--primary-light); background: #f3f5fe; }
.payment-option.selected { border-color: var(--primary); background: #e8eaf6; }
.payment-option input[type="radio"] { margin: 0; transform: scale(1.3); }
.delivery-date-info {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7; border-radius: 8px; padding: 14px 18px;
  margin-bottom: 16px;
}
.delivery-date-info .date-value { font-size: 20px; font-weight: 700; color: var(--success); }
.btn-place-order {
  width: 100%; background: var(--accent); color: #fff; border: none;
  padding: 16px; border-radius: 10px; font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(255,111,0,.35);
  transition: all var(--transition);
}
.btn-place-order:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ── Order confirmation ──────────────────────────────────────── */
.order-success-box {
  background: var(--white); border-radius: var(--radius);
  padding: 48px 40px; text-align: center; box-shadow: var(--shadow);
  max-width: 600px; margin: 60px auto;
}
.order-success-icon { font-size: 80px; color: var(--success); margin-bottom: 20px; }
.order-ref { font-size: 28px; font-weight: 800; color: var(--primary); background: #e8eaf6; display: inline-block; padding: 8px 28px; border-radius: 30px; margin: 10px 0; }

/* ── Stores section ──────────────────────────────────────────── */
.store-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); text-align: center;
  border-left: 5px solid var(--primary);
  transition: all var(--transition);
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.store-card .fa { color: var(--primary); font-size: 30px; margin-bottom: 12px; }
.store-card h4 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0 0 8px; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.shop-breadcrumb {
  background: var(--white); padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.shop-breadcrumb ol { margin: 0; background: none; padding: 0; }
.shop-breadcrumb li + li::before { color: var(--text-muted); }

/* ── Pagination ──────────────────────────────────────────────── */
.shop-pagination { text-align: center; margin: 30px 0; }
.shop-pagination .pagination { margin: 0; }
.shop-pagination .pagination > li > a,
.shop-pagination .pagination > li > span {
  border-radius: 6px !important; margin: 0 3px;
  color: var(--primary); border-color: var(--border);
  transition: all var(--transition);
}
.shop-pagination .pagination > .active > a { background: var(--primary); border-color: var(--primary); }
.shop-pagination .pagination > li > a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Toast / Alerts ──────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
}
.shop-toast {
  background: var(--primary); color: #fff; padding: 13px 22px;
  border-radius: 8px; margin-bottom: 8px; box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: 10px; min-width: 260px;
  animation: slideIn .3s ease;
}
.shop-toast.success { background: var(--success); }
.shop-toast.error   { background: var(--danger); }
.shop-toast.warning { background: var(--accent); }
@keyframes slideIn { from { opacity:0; transform:translateX(60px); } to { opacity:1; transform:translateX(0); } }

/* ── Footer ──────────────────────────────────────────────────── */
.shop-footer {
  background: #111827; color: rgba(255,255,255,.75);
  padding: 48px 0 0;
  margin-top: 60px;
}
.shop-footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.shop-footer a { color: rgba(255,255,255,.65); display: block; margin-bottom: 6px; font-size: 14px; }
.shop-footer a:hover { color: var(--accent-light); }
.shop-footer p { font-size: 13px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 36px; padding: 16px 0;
  text-align: center; font-size: 12px;
  color: rgba(255,255,255,.45);
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  margin: 0 4px; transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); }

/* ── Page content ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 48px 0; text-align: center; margin-bottom: 40px;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin: 0; }
.page-hero p { font-size: 16px; opacity: .85; margin: 8px 0 0; }
.page-content-box {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); max-width: 800px; margin: 0 auto 60px;
}
.contact-form-box {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.btn-primary-shop {
  background: var(--primary); color: #fff; border: none;
  padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: all var(--transition);
}
.btn-primary-shop:hover { background: var(--primary-light); color: #fff; }

/* ── Loading spinner ─────────────────────────────────────────── */
.shop-spinner {
  text-align: center; padding: 60px 0;
}
.shop-spinner .spinner { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Highlights bar ──────────────────────────────────────────── */
.features-bar {
  background: var(--white); border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border); padding: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.feature-item { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.feature-item .feat-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
}
.feature-item .feat-icon .fa { color: #fff; font-size: 18px; }
.feature-item h6 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.feature-item p { margin: 0; font-size: 12px; color: var(--text-muted); }

/* ── Home section alternating bg ─────────────────────────────── */
.section-alt { background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%); }

/* ── Product card lazy load animation ───────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.product-card { animation: fadeUp .35s ease both; }
.product-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3) { animation-delay: .10s; }
.product-card:nth-child(4) { animation-delay: .15s; }

/* ── Responsive global ───────────────────────────────────────── */
@media (max-width: 991px) {
  /* Ajuste top tras quitar topbar en móvil */
  .shop-breadcrumb { margin-top: 0; }
  /* Slider */
  .slide-item { min-height: 300px; }
  .slide-content { padding: 32px 28px; }
  .slide-content h1 { font-size: 28px; }
  .slide-content p { font-size: 15px; margin-bottom: 20px; }
  /* Secciones */
  .section-title h2 { font-size: 24px; }
  .section-title { margin: 32px 0 20px; }
  /* Product grid */
  .product-card-img { height: 180px; }
}

@media (max-width: 767px) {
  /* Slider */
  .slide-item { min-height: 240px; }
  .slide-content { padding: 24px 20px; }
  .slide-content h1 { font-size: 22px; }
  .slide-content p { font-size: 14px; margin-bottom: 16px; display: none; }
  .slide-content .btn-accent { padding: 10px 24px; font-size: 14px; }
  /* Product cards */
  .product-card-img { height: 150px; }
  .product-card-body { padding: 10px 12px; }
  .product-card-name { font-size: 13px; }
  .product-card-price { font-size: 18px; }
  .product-card-footer { padding: 8px 12px 12px; }
  /* Page hero */
  .page-hero h1 { font-size: 22px; }
  .page-hero { padding: 32px 0; }
  .page-hero p { font-size: 14px; }
  /* Section titles */
  .section-title h2 { font-size: 20px; }
  /* Cart table — scroll horizontal */
  .cart-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cart-table { min-width: 560px; }
  /* Checkout — single column */
  .co-summary { position: static; margin-top: 20px; }
  /* Product detail */
  .product-main-img { height: 240px; }
  .product-detail-name { font-size: 20px; }
  .product-detail-price { font-size: 26px; }
  /* Order confirm */
  .order-success-box { padding: 28px 16px; }
}

@media (max-width: 479px) {
  /* Slider muy pequeño */
  .slide-item { min-height: 200px; }
  .slide-content h1 { font-size: 18px; line-height: 1.2; }
  .slide-content { padding: 18px 16px; }
  /* Product cards — 2 por fila */
  .product-card-img { height: 130px; }
  .product-card-price { font-size: 16px; }
  .btn-add-cart { font-size: 12px; padding: 8px 6px; }
  /* Cart */
  .cart-table th, .cart-table td { padding: 8px; font-size: 13px; }
  /* Qty */
  .qty-selector, .qty-controls { width: 110px; }
  .qty-btn { width: 32px; height: 34px; }
  .qty-input { width: 46px; font-size: 14px; }
  /* Forms */
  .form-control { font-size: 14px !important; height: 40px; }
  select.form-control { height: 40px; }
  /* Botones grandes */
  .btn-place-order { font-size: 16px; padding: 14px; }
  .btn-checkout { padding: 12px; font-size: 15px; }
}

/* ── Utilidades responsive ─────────────────────────────────── */
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.w-100-mobile { }
@media (max-width: 767px) { .w-100-mobile { width: 100%; } }
.no-gutters-mobile > [class*="col-"] { }
@media (max-width: 479px) { .no-gutters-mobile > [class*="col-"] { padding-left: 8px; padding-right: 8px; } }

/* ── Grid ajustes para categorías (4 -> 2 en mobile) ── */
@media (max-width: 479px) {
  .col-xs-6 { width: 50%; }
}

/* ── BH Product card (categoria.php) responsive ── */
.bh-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform .25s, box-shadow .25s;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.bh-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.bh-product-card .img-wrap {
  display: block;
  overflow: hidden;
  background: #f7f8fc;
  height: 180px;
}
.bh-product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .4s;
}
.bh-product-card:hover .img-wrap img { transform: scale(1.06); }
.bh-product-card .title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  padding: 10px 14px 4px;
  line-height: 1.3;
  flex: 1;
}
.bh-product-card .title a { color: #222; }
.bh-product-card .title a:hover { color: #1a237e; }
.bh-product-card .price-box {
  font-size: 17px;
  font-weight: 800;
  color: #1a237e;
  padding: 4px 14px 6px;
}
.bh-product-card .price-box strong { font-size: 19px; }
.bh-product-card .var-selected-label {
  font-size: 11px;
  color: #1a237e;
  font-weight: 700;
  padding: 0 14px 6px;
  min-height: 18px;
}
.bh-product-card .var-slider { margin: 0 10px 8px; }
.bh-btn-cart {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  background: #ff6f00;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  cursor: pointer;
  transition: background .2s;
  text-align: center;
}
.bh-btn-cart:hover { background: #e65100; }
.bh-btn-view {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  background: #1a237e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  text-align: center;
  transition: background .2s;
}
.bh-btn-view:hover { background: #283593; color: #fff; }

@media (max-width: 767px) {
  .bh-product-card .img-wrap { height: 140px; }
  .bh-product-card .title { font-size: 12px; padding: 8px 12px 4px; }
  .bh-product-card .price-box { font-size: 15px; padding: 4px 12px 4px; }
}
@media (max-width: 479px) {
  .bh-product-card .img-wrap { height: 120px; }
}

/* ── Catalog grid equal height ── */
#catalog-grid { display: flex; flex-wrap: wrap; }
#catalog-grid > [class*="col-"] { display: flex; flex-direction: column; }
#catalog-grid .bh-product-card { flex: 1; }

/* ── Filter sidebar ──────────────────────────────────────────── */
.filter-title { font-size: 15px; font-weight: 700; color: var(--primary); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border: none; }
.cat-list li a { display: block; padding: 8px 4px; color: var(--text); font-size: 14px; }
.cat-list li a:hover, .cat-list li a.active { color: var(--primary); font-weight: 600; }
.cat-list .badge { background: var(--bg); color: var(--text-muted); border-radius: 10px; font-size: 11px; float: right; margin-top: 2px; }
.price-filter .form-control { border-radius: 6px !important; }

/* ── Cart summary panel ──────────────────────────────────────── */
.cart-table-wrap { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-summary {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.cart-summary-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cart-summary-total { font-size: 20px; font-weight: 800; color: var(--primary); border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; }
.btn-checkout { display: block; width: 100%; background: var(--accent); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; margin-top: 16px; text-align: center; transition: all var(--transition); }
.btn-checkout:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); }

/* ── Qty controls ────────────────────────────────────────────── */
.qty-controls {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: 130px;
}
.qty-btn { background: #f5f5f5; border: none; width: 38px; height: 38px; font-size: 18px; cursor: pointer; transition: background var(--transition); }
.qty-btn:hover { background: #e0e0e0; }
.qty-input { border: none; width: 54px; text-align: center; font-size: 16px; font-weight: 600; }
.qty-input:focus { outline: none; }

/* ── Checkout sections ───────────────────────────────────────── */
.checkout-section { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.checkout-section-title { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.payment-option { border: 2px solid var(--border); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; cursor: pointer; transition: all var(--transition); display: block; }
.payment-option:hover { border-color: var(--primary-light); background: #f3f5fe; }
.payment-option input[type=radio] { margin-right: 10px; }
.payment-option-label { font-weight: 600; }
.payment-instructions { font-size: 13px; color: var(--text-muted); margin-top: 8px; margin-left: 24px; }
.checkout-item-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(229,57,53,.15) !important; }

/* ── Order confirmation ──────────────────────────────────────── */
.order-confirm-header { padding: 32px 0 24px; }
.order-confirm-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #66bb6a);
  color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 6px 20px rgba(67,160,71,.4);
}
.order-confirm-box { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid var(--border); }
.order-confirm-ref { font-size: 15px; padding: 12px; background: #e8eaf6; border-radius: 8px; }
.oc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 2px; }
.oc-value { font-weight: 600; font-size: 15px; }

/* ── Contact info boxes ──────────────────────────────────────── */
.contact-info-box { margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-info-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ── Product detail ──────────────────────────────────────────── */
.product-detail-img-wrap { position: sticky; top: 80px; }
.product-detail-info { padding: 0 0 0 10px; }
.gallery-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 6px;
  border: 2px solid var(--border); cursor: pointer; margin-right: 8px; margin-bottom: 8px;
  transition: border-color var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb { display: inline-block; }
.product-gallery-thumbs { margin-top: 8px; }
.prod-time-banner {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0;
  color: #2e7d32; font-size: 14px; font-weight: 600;
}
.btn-lg-add {
  background: var(--accent); color: #fff; border: none;
  border-radius: 30px; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255,111,0,.35);
  transition: all var(--transition);
}
.btn-lg-add:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-lg-add:disabled { background: #90a4ae; box-shadow: none; transform: none; cursor: not-allowed; }

/* ── Search ──────────────────────────────────────────────────── */
.shop-search-big .input-group { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.shop-search-big .form-control { border-radius: 30px 0 0 30px !important; border: 1px solid var(--border) !important; padding: 12px 20px !important; font-size: 16px !important; }
.shop-search-big .btn { border-radius: 0 30px 30px 0 !important; }
