/* assets/css/style.css - ShopNest Premium Storefront */

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

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #c73652;
  --gold: #f5a623;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --indigo: #6366f1;
  --teal: #14b8a6;
  --orange: #f97316;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --header-h: 72px;
}

*, *::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);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.display { font-size: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; }

/* ── CONTAINER ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(233,69,96,.3); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon { padding: 10px; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: .73rem; font-weight: 600; letter-spacing: .3px;
}
.badge-primary   { background: #eff6ff; color: var(--info); }
.badge-success   { background: #ecfdf5; color: var(--success); }
.badge-warning   { background: #fffbeb; color: var(--warning); }
.badge-danger    { background: #fef2f2; color: var(--danger); }
.badge-info      { background: #eff6ff; color: var(--info); }
.badge-indigo    { background: #eef2ff; color: var(--indigo); }
.badge-teal      { background: #f0fdfa; color: var(--teal); }
.badge-orange    { background: #fff7ed; color: var(--orange); }
.badge-secondary { background: var(--border-light); color: var(--text-muted); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; color: var(--text); }
.form-label .required { color: var(--accent); margin-left: 2px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,69,96,.1); }
.form-control::placeholder { color: var(--text-light); }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.form-hint  { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); flex: 1; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon .form-control { padding-left: 40px; }

/* ── CARD ── */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  overflow: hidden;
}
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); background: var(--border-light); }

/* ── ALERT ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-top { background: var(--primary); color: rgba(255,255,255,.85); font-size: .8rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; }
.header-top a { color: rgba(255,255,255,.85); }
.header-top a:hover { color: var(--accent); }

.header-main .container { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.logo-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 1rem; }

/* Search Bar */
.search-bar { display: flex; max-width: 500px; width: 100%; position: relative; }
.search-bar input {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border);
  border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: .9rem; outline: none; transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar .search-btn {
  padding: 10px 20px; background: var(--accent); color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem; font-weight: 500;
}
.search-bar .search-btn:hover { background: var(--accent-hover); }
.search-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  z-index: 100; display: none; max-height: 320px; overflow-y: auto;
}
.search-suggestions.show { display: block; }
.suggestion-item { padding: 10px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.suggestion-item:hover { background: var(--border-light); }
.suggestion-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: var(--radius-sm); position: relative;
  color: var(--text); font-size: .7rem; transition: background var(--transition);
}
.action-btn:hover { background: var(--border-light); color: var(--accent); }
.action-btn i { font-size: 1.1rem; }
.action-btn .badge-count {
  position: absolute; top: 4px; right: 6px;
  background: var(--accent); color: #fff;
  font-size: .65rem; width: 18px; height: 18px;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700;
}

/* Navbar */
.navbar { border-top: 1px solid var(--border-light); background: var(--bg-card); }
.navbar-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 0 20px; max-width: 1280px; margin: 0 auto; }
.navbar-inner::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; white-space: nowrap;
  font-size: .88rem; font-weight: 500; color: var(--text);
  transition: color var(--transition); border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link i { font-size: .75rem; color: var(--text-light); }

/* Mega Menu */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 200; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--transition);
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: .88rem; color: var(--text); }
.dropdown-item:hover { background: var(--border-light); color: var(--accent); }

/* Mobile Menu */
.mobile-menu-btn { display: none; padding: 8px; }

/* ── HERO SLIDER ── */
.hero-slider { position: relative; overflow: hidden; background: var(--primary); height: clamp(360px, 55vw, 560px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; }
.slide.active { opacity: 1; }
.slide-image { width: 55%; height: 100%; object-fit: cover; }
.slide-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5rem); color: #fff; }
.slide-tag { display: inline-block; padding: 4px 14px; background: var(--accent); border-radius: 99px; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.slide-content h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: .75rem; }
.slide-content p { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 2rem; max-width: 400px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all var(--transition); }
.dot.active { background: #fff; width: 24px; border-radius: 4px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  cursor: pointer; transition: background var(--transition);
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ── CATEGORIES STRIP ── */
.categories-strip { padding: 40px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 16px; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; background: var(--bg-card); border-radius: var(--radius);
  border: 1.5px solid var(--border-light); text-align: center;
  transition: all var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #fff0f3, #fce4ec); display: grid; place-items: center; font-size: 1.3rem; color: var(--accent); }
.category-card:nth-child(2n) .cat-icon { background: linear-gradient(135deg, #f0f4ff, #e8eeff); color: var(--indigo); }
.category-card:nth-child(3n) .cat-icon { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: var(--success); }
.category-card span { font-size: .8rem; font-weight: 600; color: var(--text); }

/* ── SECTION ── */
.section { padding: 60px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.view-all { font-size: .875rem; font-weight: 500; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.view-all:hover { gap: 10px; }

/* ── PRODUCT GRID ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-light); overflow: hidden;
  transition: all var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.product-image-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--border-light); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-badge { position: absolute; top: 10px; left: 10px; }
.product-actions {
  position: absolute; right: 10px; top: 10px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(50px); opacity: 0; transition: all var(--transition);
}
.product-card:hover .product-actions { transform: translateX(0); opacity: 1; }
.product-action-btn {
  width: 36px; height: 36px; background: var(--bg-card);
  border-radius: 50%; display: grid; place-items: center;
  font-size: .9rem; color: var(--text); box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-action-btn:hover { background: var(--accent); color: #fff; }
.product-action-btn.active { background: var(--accent); color: #fff; }

.product-info { padding: 14px; }
.product-brand { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: var(--gold); font-size: .8rem; letter-spacing: -1px; }
.rating-count { font-size: .75rem; color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-final { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.price-original { font-size: .85rem; color: var(--text-light); text-decoration: line-through; }
.price-discount { font-size: .75rem; font-weight: 700; color: var(--success); background: #ecfdf5; padding: 2px 6px; border-radius: 4px; }
.add-to-cart-btn {
  display: none; width: 100%;
  background: var(--primary); color: #fff;
  padding: 10px; border-radius: 0 0 var(--radius) var(--radius);
  font-size: .85rem; font-weight: 600; text-align: center;
  transition: background var(--transition);
}
.product-card:hover .add-to-cart-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-to-cart-btn:hover { background: var(--accent); }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }

/* ── SIDEBAR FILTERS ── */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-card { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-section { padding: 1.25rem; border-bottom: 1px solid var(--border-light); }
.filter-title { font-family: var(--font-body); font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; color: var(--text); }
.filter-option { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: .875rem; cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.filter-count { color: var(--text-muted); font-size: .8rem; }
.range-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--border); outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.price-range-values { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

/* ── PRODUCT DETAIL ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--border-light); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 70px; height: 70px; border-radius: var(--radius-sm); border: 2px solid var(--border-light); overflow: hidden; cursor: pointer; transition: border-color var(--transition); }
.thumb:hover, .thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { display: flex; flex-direction: column; gap: 16px; }
.product-title { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.product-meta { display: flex; align-items: center; gap: 16px; font-size: .875rem; color: var(--text-muted); flex-wrap: wrap; }
.stock-badge { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.in-stock .stock-dot { background: var(--success); }
.out-stock .stock-dot { background: var(--danger); }
.variant-group { display: flex; flex-direction: column; gap: 8px; }
.variant-label { font-size: .875rem; font-weight: 600; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn {
  padding: 6px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: .85rem;
  cursor: pointer; transition: all var(--transition);
}
.variant-btn:hover, .variant-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(233,69,96,.05); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 38px; height: 38px; display: grid; place-items: center; font-size: 1rem; cursor: pointer; transition: background var(--transition); }
.qty-btn:hover { background: var(--border-light); }
.qty-input { width: 52px; height: 38px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: .95rem; outline: none; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── CART ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border-light); }
.cart-item-img { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; gap: 6px; }
.cart-item-name { font-size: .95rem; font-weight: 600; }
.cart-item-variant { font-size: .8rem; color: var(--text-muted); }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; flex-wrap: wrap; gap: 10px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; }
.cart-summary-row.total { font-size: 1.05rem; font-weight: 700; padding-top: 12px; border-top: 2px solid var(--border); margin-top: 4px; }
.coupon-form { display: flex; gap: 8px; margin: 12px 0; }

/* ── CHECKOUT ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.step-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.address-option { padding: 14px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--transition); margin-bottom: 10px; }
.address-option:hover, .address-option.selected { border-color: var(--accent); background: rgba(233,69,96,.02); }
.address-option label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.payment-option { padding: 14px 16px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 10px; transition: border-color var(--transition); }
.payment-option:hover, .payment-option.selected { border-color: var(--accent); }

/* ── ORDER TRACKING ── */
.tracking-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.tracking-steps::before { content: ''; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--border); }
.track-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; position: relative; }
.track-dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; color: var(--text-muted); font-size: .85rem; }
.track-step.done .track-dot { background: var(--success); border-color: var(--success); color: #fff; }
.track-step.active .track-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.track-info { padding-top: 8px; }
.track-title { font-weight: 600; font-size: .9rem; }
.track-time { font-size: .8rem; color: var(--text-muted); }
.track-desc { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ── USER DASHBOARD ── */
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.user-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.user-profile-card { text-align: center; padding: 2rem 1.5rem; }
.user-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin: 0 auto 1rem; }
.user-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1rem; font-family: var(--font-display); }
.sidebar-nav .nav-link { padding: 10px 16px; border-radius: var(--radius-sm); font-size: .88rem; border: none; }
.sidebar-nav .nav-link:hover { background: var(--border-light); }
.sidebar-nav .nav-link.active { background: rgba(233,69,96,.08); color: var(--accent); border-bottom: none; }

/* ── STATS CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { padding: 1.5rem; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.primary  { background: rgba(26,26,46,.08); color: var(--primary); }
.stat-icon.accent   { background: rgba(233,69,96,.1); color: var(--accent); }
.stat-icon.success  { background: rgba(16,185,129,.1); color: var(--success); }
.stat-icon.warning  { background: rgba(245,158,11,.1); color: var(--warning); }
.stat-icon.info     { background: rgba(59,130,246,.1); color: var(--info); }
.stat-icon.indigo   { background: rgba(99,102,241,.1); color: var(--indigo); }
.stat-number { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.stat-change { font-size: .75rem; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); background: var(--border-light); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,0,0,.01); }
.data-table .actions { display: flex; gap: 6px; }
.action-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 500; transition: all var(--transition); }
.action-link.view    { background: #eff6ff; color: var(--info); }
.action-link.edit    { background: #fffbeb; color: var(--warning); }
.action-link.delete  { background: #fef2f2; color: var(--danger); }
.action-link:hover   { filter: brightness(.9); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 380px; padding: 14px 18px;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl); display: flex; align-items: flex-start; gap: 12px;
  transform: translateX(120%); opacity: 0; transition: all .3s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
.toast.warning { background: #92400e; }
.toast-close { margin-left: auto; opacity: .7; cursor: pointer; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); z-index: 2000;
  display: none; place-items: center; padding: 20px;
}
.modal-overlay.open { display: grid; }
.modal {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; animation: modalIn .25s ease;
}
@keyframes modalIn { from { transform: scale(.95) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close  { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-muted); transition: background var(--transition); }
.modal-close:hover { background: var(--border-light); color: var(--text); }

/* ── FOOTER ── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 60px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; opacity: .7; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 1.25rem; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: .9rem; transition: all var(--transition); }
.social-btn:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.65); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; display: flex; justify-content: space-between; align-items: center; font-size: .83rem; opacity: .6; flex-wrap: wrap; gap: 8px; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-badge { background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 4px; font-size: .78rem; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .3; }
.empty-state h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── LOADER ── */
.loader { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader { position: fixed; inset: 0; background: var(--bg-card); display: grid; place-items: center; z-index: 9999; }
.page-loader .spinner { width: 44px; height: 44px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

/* ── RATING STARS ── */
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; }
.star-input input { display: none; }
.star-input label { font-size: 1.5rem; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .shop-layout     { grid-template-columns: 220px 1fr; }
  .checkout-grid   { grid-template-columns: 1fr 320px; }
  .cart-layout     { grid-template-columns: 1fr 300px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-main .container { grid-template-columns: auto 1fr auto; }
  .search-bar { display: none; }
  .search-bar.mobile-open { display: flex; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 500; padding: 12px; background: var(--bg-card); border-bottom: 1px solid var(--border); max-width: 100%; }
  .mobile-menu-btn { display: flex; }
  .navbar { display: none; }
  .navbar.open { display: block; }
  .navbar-inner { flex-direction: column; align-items: stretch; padding: 0; }
  .nav-link { padding: 14px 20px; border-bottom: 1px solid var(--border-light); border-bottom-width: 1px; }
  .shop-layout     { grid-template-columns: 1fr; }
  .filter-card     { position: static; }
  .filter-sidebar  { display: none; }
  .filter-sidebar.open { display: block; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .user-layout     { grid-template-columns: 1fr; }
  .user-sidebar    { position: static; }
  .cart-layout     { grid-template-columns: 1fr; }
  .checkout-grid   { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .hero-slider     { height: auto; min-height: 300px; }
  .slide { flex-direction: column; position: relative; }
  .slide.active    { display: flex; }
  .slide-image     { width: 100%; height: 200px; }
  .slide-content   { padding: 1.5rem; }
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .header-top      { display: none; }
}

@media (max-width: 480px) {
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid     { grid-template-columns: 1fr; }
  .action-row      { flex-direction: column; }
  .stats-grid      { grid-template-columns: 1fr; }
  .cart-item       { grid-template-columns: 75px 1fr; gap: 12px; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.d-flex      { display: flex; }
.d-grid      { display: grid; }
.align-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.gap-16      { gap: 16px; }
.mt-4        { margin-top: 4px; }
.mb-0        { margin-bottom: 0; }
.mb-4        { margin-bottom: 4px; }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.p-16        { padding: 16px; }
.p-20        { padding: 20px; }
.p-24        { padding: 24px; }
.hidden      { display: none; }
.sr-only     { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); }
.overlay-loading { position: relative; pointer-events: none; opacity: .6; }
