@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');
@import 'variables.css';

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select, textarea { font-family: var(--font-body); outline: none; }

/* ======= HEADER ======= */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--brand-primary);
  box-shadow: var(--shadow-lg);
}

.header-top {
  background: #071929;
  padding: 6px var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.75);
}

.header-top a:hover { color: var(--brand-accent-light); }

.header-main {
  display: flex; align-items: center; gap: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
}

.logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-wrap img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.logo-tagline { font-size: 10px; color: var(--brand-accent-light); letter-spacing: 2px; text-transform: uppercase; }

.search-bar {
  flex: 1; display: flex; max-width: 680px;
  background: #fff; border-radius: var(--radius-md);
  overflow: hidden; border: 2px solid var(--brand-accent);
}
.search-bar select {
  padding: 10px 12px; background: #f0f0e8;
  border: none; border-right: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
  min-width: 120px;
}
.search-bar input {
  flex: 1; padding: 10px 14px; border: none;
  font-size: 14px; color: var(--text-primary);
}
.search-bar button {
  padding: 0 20px; background: var(--brand-accent);
  color: #fff; font-size: 18px;
  transition: background var(--transition-fast);
}
.search-bar button:hover { background: #e65100; }

.header-actions { display: flex; align-items: center; gap: var(--space-md); margin-left: auto; }

.header-action-btn {
  display: flex; flex-direction: column; align-items: center;
  color: #fff; font-size: 12px; gap: 2px; padding: 6px 8px;
  border-radius: var(--radius-sm); transition: background var(--transition-fast);
  position: relative; background: transparent; white-space: nowrap;
}
.header-action-btn:hover { background: rgba(255,255,255,0.1); }
.header-action-btn .icon { font-size: 20px; }
.header-action-btn .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--brand-accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.header-nav {
  background: #0d2d52;
  padding: 0 var(--space-lg);
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  color: rgba(255,255,255,0.9);
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  white-space: nowrap; border-radius: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
  display: flex; align-items: center; gap: 4px;
}
.header-nav a:hover, .header-nav a.active {
  background: rgba(255,255,255,0.12); color: var(--brand-accent-light);
}
.header-nav .nav-special {
  background: var(--brand-accent); color: #fff; margin-left: auto;
}
.header-nav .nav-special:hover { background: #e65100; color: #fff; }

/* ======= HERO / BANNER ======= */
.hero-slider {
  position: relative; overflow: hidden;
  background: var(--brand-primary);
  min-height: 420px;
}
.hero-slide {
  display: none; position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  align-items: center; padding: var(--space-3xl) var(--space-lg);
}
.hero-slide.active { display: flex; animation: fadeIn 0.6s ease; }
.hero-content { max-width: 600px; z-index: 2; }
.hero-badge {
  display: inline-block; background: var(--brand-accent);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: var(--space-md);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px); font-weight: 700;
  color: #fff; line-height: 1.15; margin-bottom: var(--space-md);
}
.hero-title span { color: var(--brand-accent-light); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: var(--space-xl); }
.hero-cta-group { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-bg-img {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50%; object-fit: cover; opacity: 0.18;
}
.hero-controls {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all var(--transition-fast); border: none;
}
.hero-dot.active { background: var(--brand-accent); width: 24px; border-radius: 4px; }

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; transition: all var(--transition-fast);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--brand-accent); color: #fff; border-color: var(--brand-accent);
}
.btn-primary:hover { background: #e65100; border-color: #e65100; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-dark:hover { background: #0d2d52; }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ======= SECTION LAYOUT ======= */
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--space-xl); gap: var(--space-md);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px); font-weight: 700;
  color: var(--brand-primary); line-height: 1.2;
}
.section-title span { color: var(--brand-accent); }
.section-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.section-link { font-size: 14px; color: var(--brand-secondary); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--brand-accent); }

/* ======= PRODUCT GRID ======= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(6, 1fr); } }

.product-grid-2col { grid-template-columns: repeat(2, 1fr) !important; }

/* ======= PRODUCT CARD ======= */
.product-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border-light);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card-img {
  position: relative; overflow: hidden; background: #f8f8f5;
  padding-top: 100%; /* square */
}
.product-card-img img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-sale { background: var(--brand-danger); color: #fff; }
.badge-new { background: var(--brand-success); color: #fff; }
.badge-hot { background: var(--brand-accent); color: #fff; }
.badge-featured { background: var(--brand-gold); color: #fff; }

.product-card-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px);
  transition: all var(--transition-base); z-index: 2;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.product-card-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast); color: var(--text-secondary);
}
.product-card-action-btn:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.product-card-action-btn.active { background: var(--brand-danger); color: #fff; border-color: var(--brand-danger); }

.product-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.product-card-category { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-card-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-title:hover { color: var(--brand-secondary); }
.product-card-brand { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }

.product-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: var(--brand-gold); font-size: 13px; letter-spacing: -1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }

.product-card-price { margin-top: auto; }
.price-current {
  font-size: 18px; font-weight: 700; color: var(--brand-primary);
}
.price-current .currency { font-size: 13px; font-weight: 500; }
.price-original {
  font-size: 13px; color: var(--text-muted);
  text-decoration: line-through; margin-right: 6px;
}
.price-discount { font-size: 12px; color: var(--brand-danger); font-weight: 600; }
.price-drr { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.product-card-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-light);
  background: #fafaf8;
}
.product-card-footer .btn { width: 100%; font-size: 13px; padding: 8px; }

/* ======= CATEGORIES ======= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) { .category-grid { grid-template-columns: repeat(8, 1fr); } }

.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: var(--space-md); text-align: center;
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base); cursor: pointer;
}
.category-card:hover { border-color: var(--brand-secondary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  transition: transform var(--transition-base);
}
.category-card:hover .category-icon { transform: scale(1.1); }
.category-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.category-count { font-size: 11px; color: var(--text-muted); }

/* ======= PROMO BANNERS ======= */
.promo-grid { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promo-grid { grid-template-columns: 2fr 1fr 1fr; } }

.promo-card {
  border-radius: var(--radius-xl); overflow: hidden;
  position: relative; min-height: 200px; display: flex; align-items: flex-end;
  padding: var(--space-xl); cursor: pointer;
  transition: transform var(--transition-base);
}
.promo-card:hover { transform: scale(1.01); }
.promo-card-bg {
  position: absolute; inset: 0; object-fit: cover; z-index: 0;
  width: 100%; height: 100%;
}
.promo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  z-index: 1;
}
.promo-card-content { position: relative; z-index: 2; color: #fff; }
.promo-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; }
.promo-card-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
.promo-card-cta { font-size: 13px; font-weight: 600; color: var(--brand-accent-light); display: flex; align-items: center; gap: 4px; }

/* ======= DEALS TIMER ======= */
.deal-timer {
  display: flex; align-items: center; gap: var(--space-sm);
  background: var(--brand-danger); color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg); margin-bottom: var(--space-lg);
}
.deal-timer-label { font-size: 14px; font-weight: 600; }
.deal-timer-parts { display: flex; gap: var(--space-sm); align-items: center; }
.deal-timer-unit {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.2); border-radius: var(--radius-sm);
  padding: 4px 10px; min-width: 48px;
}
.deal-timer-num { font-size: 22px; font-weight: 700; line-height: 1; }
.deal-timer-label-sm { font-size: 10px; opacity: 0.8; text-transform: uppercase; }
.deal-timer-sep { font-size: 20px; font-weight: 700; margin-bottom: 4px; }

/* ======= CART SIDEBAR ======= */
.cart-overlay {
  position: fixed; inset: 0; background: var(--bg-overlay);
  z-index: var(--z-overlay); opacity: 0; pointer-events: none;
  transition: opacity var(--transition-base);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(420px, 100vw); background: #fff;
  z-index: var(--z-modal); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--transition-slow);
  box-shadow: var(--shadow-xl);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: var(--space-lg); border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title { font-size: 18px; font-weight: 700; color: var(--brand-primary); }
.cart-close { font-size: 22px; color: var(--text-muted); cursor: pointer; padding: 4px; }
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-md); }
.cart-footer {
  padding: var(--space-lg); border-top: 1px solid var(--border-light);
  background: #fafaf8;
}
.cart-total-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.cart-total-row.main { font-size: 18px; font-weight: 700; color: var(--brand-primary); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light); }

.cart-item {
  display: flex; gap: var(--space-md); padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px; height: 72px; border-radius: var(--radius-md);
  object-fit: cover; background: #f5f5f0; flex-shrink: 0;
}
.cart-item-body { flex: 1; }
.cart-item-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cart-item-variant { font-size: 11px; color: var(--text-muted); }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--brand-primary); margin-top: 4px; }
.cart-qty-ctrl {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
}
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); transition: all var(--transition-fast);
}
.qty-btn:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-remove { color: var(--brand-danger); font-size: 13px; cursor: pointer; margin-top: 4px; display: inline-block; }

/* ======= TOAST NOTIFICATIONS ======= */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px;
  max-width: 340px;
}
.toast {
  background: var(--brand-primary); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-start; gap: 10px;
  animation: slideInRight 0.3s ease; font-size: 14px;
  border-left: 4px solid var(--brand-accent);
}
.toast.success { border-left-color: var(--brand-success); }
.toast.error { border-left-color: var(--brand-danger); }
.toast.warning { border-left-color: var(--brand-warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-msg { font-size: 13px; opacity: 0.85; }
.toast-close { background: none; color: rgba(255,255,255,0.6); font-size: 16px; padding: 0; flex-shrink: 0; }

/* ======= BREADCRUMB ======= */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  padding: var(--space-md) 0;
}
.breadcrumb a { color: var(--brand-secondary); }
.breadcrumb a:hover { color: var(--brand-accent); }
.breadcrumb-sep { color: var(--border-medium); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* ======= FOOTER ======= */
.site-footer {
  background: var(--brand-primary); color: rgba(255,255,255,0.85);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-3xl);
}
.footer-grid {
  display: grid; gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo-name { font-size: 24px; }
.footer-brand p { margin-top: var(--space-md); font-size: 13px; line-height: 1.8; opacity: 0.7; }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: all var(--transition-fast);
}
.footer-social a:hover { background: var(--brand-accent); border-color: var(--brand-accent); }

.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.5px; margin-bottom: var(--space-md); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; opacity: 0.75; transition: opacity var(--transition-fast); }
.footer-col ul li a:hover { opacity: 1; color: var(--brand-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0; margin-top: var(--space-xl);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md); font-size: 12px; opacity: 0.6;
}
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon {
  background: rgba(255,255,255,0.15); border-radius: 4px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}

/* ======= CURRENCY BADGE ======= */
.currency-display { font-weight: 700; color: var(--brand-primary); }
.currency-htg::before { content: 'G '; }
.currency-dop::before { content: 'RD$ '; }

/* ======= MODAL ======= */
.modal-overlay {
  position: fixed; inset: 0; background: var(--bg-overlay);
  z-index: var(--z-modal); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
  padding: var(--space-md);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); max-width: 560px; width: 100%;
  transform: scale(0.95); transition: transform var(--transition-base);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: var(--space-lg); border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--brand-primary); }
.modal-body { padding: var(--space-lg); }
.modal-footer { padding: var(--space-lg); border-top: 1px solid var(--border-light); display: flex; gap: var(--space-md); justify-content: flex-end; }

/* ======= FORMS ======= */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-medium);
  border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary);
  background: #fff; transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus { border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(21,101,192,0.15); }
.form-control.error { border-color: var(--brand-danger); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--brand-danger); margin-top: 4px; }
.form-row { display: grid; gap: var(--space-md); }
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ======= TABS ======= */
.tabs { border-bottom: 2px solid var(--border-light); display: flex; gap: 0; margin-bottom: var(--space-xl); }
.tab-btn {
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); border: none; background: transparent;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition-fast);
}
.tab-btn.active, .tab-btn:hover { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ======= RATING STARS INPUT ======= */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 28px; color: #ddd; cursor: pointer;
  transition: color var(--transition-fast);
}
.star-rating input:checked ~ label, .star-rating label:hover,
.star-rating label:hover ~ label { color: var(--brand-gold); }

/* ======= PRICE RANGE SLIDER ======= */
.range-slider { position: relative; height: 4px; background: var(--border-medium); border-radius: 2px; margin: var(--space-lg) 0; }
.range-slider input[type=range] {
  position: absolute; width: 100%; height: 4px;
  background: transparent; -webkit-appearance: none; pointer-events: none;
}
.range-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-primary); cursor: pointer; pointer-events: all;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}

/* ======= LOADER ======= */
.loader {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-dark { border-color: rgba(10,35,66,0.15); border-top-color: var(--brand-primary); }
.page-loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.page-loader .loader { width: 40px; height: 40px; border-width: 3px; }

/* ======= CHIP / TAGS ======= */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; background: var(--bg-hover);
  color: var(--brand-primary); border: 1px solid var(--border-light);
  transition: all var(--transition-fast); cursor: pointer;
}
.chip:hover, .chip.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.chip-remove { font-size: 14px; opacity: 0.6; }

/* ======= EMPTY STATE ======= */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: var(--space-3xl) var(--space-lg);
  text-align: center; color: var(--text-muted);
}
.empty-state-icon { font-size: 64px; margin-bottom: var(--space-lg); opacity: 0.4; }
.empty-state-title { font-size: 20px; font-weight: 700; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.empty-state-msg { font-size: 14px; max-width: 360px; margin-bottom: var(--space-lg); }

/* ======= NOTIFICATION BELL ======= */
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border-light);
  overflow: hidden; display: none; z-index: var(--z-dropdown);
}
.notif-panel.open { display: block; animation: fadeInDown 0.2s ease; }
.notif-header { padding: 12px 16px; font-weight: 700; color: var(--brand-primary); border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  display: flex; gap: 10px; transition: background var(--transition-fast); cursor: pointer;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: #eff6ff; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-secondary); flex-shrink: 0; margin-top: 6px;
}
.notif-text { font-size: 13px; color: var(--text-primary); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ======= ANIMATIONS ======= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-pulse { animation: pulse 2s infinite; }

/* ======= UTILITIES ======= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--brand-accent); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--brand-danger); }
.text-success { color: var(--brand-success); }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ======= RESPONSIVE HELPERS ======= */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .header-main { flex-wrap: wrap; }
  .search-bar { order: 3; width: 100%; max-width: 100%; }
  .header-actions { gap: var(--space-sm); }
  .logo-tagline { display: none; }
  .cart-sidebar { width: 100vw; }
  .toast-container { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}
@media (min-width: 769px) { .hide-desktop { display: none !important; } }

/* ======= STICKY ADD TO CART BAR ======= */
.sticky-atc {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--border-light);
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  z-index: var(--z-sticky); transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-info { display: flex; align-items: center; gap: var(--space-md); }
.sticky-atc-img { width: 48px; height: 48px; border-radius: var(--radius-md); object-fit: cover; }
.sticky-atc-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.sticky-atc-price { font-size: 18px; font-weight: 700; color: var(--brand-primary); }

/* ======= PROGRESS BAR ======= */
.progress-bar-wrap { background: var(--border-light); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent)); transition: width 0.5s ease; }

/* ======= CHECKOUT STEPS ======= */
.checkout-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: var(--space-2xl);
  background: var(--bg-card); padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.checkout-step {
  flex: 1; display: flex; align-items: center; gap: var(--space-sm); position: relative;
}
.checkout-step:not(:last-child)::after {
  content: ''; position: absolute; right: -50%; top: 50%;
  width: 100%; height: 2px; background: var(--border-light); z-index: 0;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border-light); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0; z-index: 1;
  position: relative; transition: all var(--transition-base);
}
.checkout-step.active .step-num { background: var(--brand-primary); color: #fff; }
.checkout-step.done .step-num { background: var(--brand-success); color: #fff; }
.step-label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.checkout-step.active .step-label { color: var(--brand-primary); font-weight: 700; }
