/* ============================================
   ShopNest - Main Stylesheet
   Modern, Clean E-Commerce Design
   ============================================ */

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #c73652;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --danger: #ef4444;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light: #f1f5f9;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.d-inline { display: inline; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.ms-auto { margin-left: auto; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar a { color: rgba(255,255,255,.7); }
.topbar a:hover { color: white; }
.topbar .divider { color: rgba(255,255,255,.2); }
.btn-link-topbar {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 12px; padding: 0;
  font-family: var(--font);
}
.btn-link-topbar:hover { color: white; }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.container-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.container-fluid.px-4 {
    padding-left: 40px;
    padding-right: 40px;
}

.px-4 {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 768px) {
    .container-fluid,
    .container-fluid.px-4 {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Global page padding */
.px-4 {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.main-content {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 72px 0;
}

@media (max-width: 768px) {
    .px-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .section {
        padding: 48px 0;
    }
}
.navbar-inner {
  display: flex;
  align-items: center;
  padding: 14px 0;
  gap: 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}
.navbar-search {
  flex: 1;
  max-width: 600px;
}
.search-wrap {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-wrap:focus-within { border-color: var(--accent); }
.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
}
.search-wrap button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
}
.search-wrap button:hover { background: var(--accent-hover); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-action {
  position: relative;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 17px;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}
.nav-action:hover { background: var(--light); color: var(--accent); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.mobile-menu-btn { display: none; }

/* Category Nav */
.category-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 0 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all var(--transition);
}
.category-nav a:hover, .category-nav a.active {
  background: var(--accent);
  color: white;
}

/* ============ HERO ============ */
.hero {
  background: var(--primary);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px; height: 600px;
  background: rgba(233,69,96,.1);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(233,69,96,.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(233,69,96,.3);
}
.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  max-width: 420px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: white;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255,255,255,.1);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }
.btn-dark {
  background: var(--primary);
  color: white;
}
.btn-dark:hover { background: var(--primary-light); color: white; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,.1); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

/* ============ SECTION ============ */
.section { padding: 72px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}
.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

/* ============ PRODUCT CARDS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-sale { background: var(--accent); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-out { background: var(--text-muted); color: white; }
.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-action-btn {
  width: 36px; height: 36px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: all var(--transition);
}
.product-action-btn:hover { background: var(--accent); color: white; }
.product-card-body { padding: 16px; }
.product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--accent); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.stars { color: #fbbf24; font-size: 12px; }
.rating-count { font-size: 11px; color: var(--text-muted); }
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: rgba(16,185,129,.1);
  padding: 2px 7px;
  border-radius: 50px;
}
.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-cart:hover { background: var(--accent); }
.btn-add-cart:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ============ CATEGORY GRID ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.category-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}
.category-icon {
  width: 64px; height: 64px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  transition: all var(--transition);
}
.category-card:hover .category-icon { background: var(--accent); color: white; }
.category-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.category-card-count { font-size: 12px; color: var(--text-muted); }

/* ============ FEATURES BAR ============ */
.features-bar {
  background: var(--white);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(233,69,96,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-desc { font-size: 12px; color: var(--text-muted); }

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--light);
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
}
.tab-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.tab-btn.active {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ============ SHOP PAGE ============ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0;
}
.shop-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--card-shadow);
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.price-range-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}
.price-range-inputs input {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.price-range-inputs input:focus { border-color: var(--accent); }
.checkbox-list { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.checkbox-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.rating-filter { display: flex; flex-direction: column; gap: 8px; }
.rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}
.rating-option input { accent-color: var(--accent); }

.shop-main {}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.results-count { font-size: 14px; color: var(--text-muted); }
.sort-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  background: white;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--accent); }

/* ============ PRODUCT DETAIL ============ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 48px 0;
}
.product-gallery {}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--light);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.gallery-thumb {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--light);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-detail-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-detail-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.25;
}
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.detail-price-current { font-size: 32px; font-weight: 800; color: var(--accent); }
.detail-price-original { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.detail-price-save {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  background: rgba(16,185,129,.1);
  padding: 4px 10px;
  border-radius: 50px;
}
.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 15px;
}
.product-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.meta-label { color: var(--text-muted); min-width: 80px; }
.meta-value { font-weight: 600; }
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-btn {
  width: 42px; height: 42px;
  border: none;
  background: var(--light);
  font-size: 18px;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--border); }
.qty-input {
  width: 60px;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  font-family: var(--font);
  padding: 0;
  height: 42px;
}
.product-detail-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Reviews */
.reviews-section { padding: 48px 0; }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reviewer-name { font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-muted); }

/* ============ CART ============ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 48px 0;
}
.cart-table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.cart-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 { font-size: 18px; font-weight: 700; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 100px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--light);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-cat { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-weight: 700; color: var(--accent); font-size: 16px; }
.cart-item-subtotal { font-weight: 800; font-size: 16px; white-space: nowrap; }
.cart-qty {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-qty-btn {
  width: 32px; height: 32px;
  border: none;
  background: var(--light);
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font);
  transition: background var(--transition);
}
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-input {
  width: 44px;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  outline: none;
  height: 32px;
}
.cart-remove {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--transition);
  padding: 6px;
  border-radius: 50%;
}
.cart-remove:hover { color: var(--danger); background: rgba(239,68,68,.1); }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}
.summary-line.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  padding-top: 14px;
  border-top: 2px solid var(--border);
  margin-top: 4px;
}
.coupon-form {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.coupon-form input {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  text-transform: uppercase;
}
.coupon-form input:focus { border-color: var(--accent); }

/* ============ CHECKOUT ============ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  padding: 48px 0;
}
.checkout-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
.checkout-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-badge {
  width: 28px; height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-control {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
  background: var(--white);
}
.form-control:focus { border-color: var(--accent); }
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.payment-option:has(input:checked) { border-color: var(--accent); background: rgba(233,69,96,.03); }
.payment-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
}
.payment-option input { accent-color: var(--accent); }
.payment-icon { font-size: 20px; }

/* Order Summary Panel */
.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.order-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; margin-bottom: 0; }
.order-item-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--light);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-qty-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-item-name { font-size: 14px; font-weight: 600; }
.order-item-price { font-size: 14px; font-weight: 700; color: var(--accent); margin-left: auto; flex-shrink: 0; }

/* ============ CUSTOMER DASHBOARD ============ */
.customer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 0;
}
.customer-sidebar {
  height: fit-content;
  position: sticky;
  top: 100px;
}
.customer-sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.customer-profile-head {
  background: var(--primary);
  padding: 32px 24px;
  text-align: center;
  color: white;
}
.customer-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3);
  margin: 0 auto 12px;
  object-fit: cover;
}
.customer-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.customer-email { font-size: 12px; opacity: .7; }
.customer-nav { padding: 12px; }
.customer-nav a, .customer-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font);
}
.customer-nav a:hover, .customer-nav-btn:hover,
.customer-nav a.active { background: var(--light); color: var(--accent); }
.customer-nav a .nav-icon { width: 20px; }

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.blue { background: rgba(59,130,246,.1); color: var(--info); }
.stat-icon.green { background: rgba(16,185,129,.1); color: var(--success); }
.stat-icon.red { background: rgba(233,69,96,.1); color: var(--accent); }
.stat-icon.amber { background: rgba(245,158,11,.1); color: var(--warning); }
.stat-value { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* Order Status */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}
.status-pending { background: rgba(245,158,11,.1); color: var(--warning); }
.status-processing { background: rgba(59,130,246,.1); color: var(--info); }
.status-shipped { background: rgba(139,92,246,.1); color: #7c3aed; }
.status-delivered { background: rgba(16,185,129,.1); color: var(--success); }
.status-cancelled { background: rgba(239,68,68,.1); color: var(--danger); }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: transparent;
  padding: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ============ ALERTS ============ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(16,185,129,.1); color: #047857; border: 1px solid rgba(16,185,129,.2); }
.alert-danger { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.alert-warning { background: rgba(245,158,11,.1); color: #d97706; border: 1px solid rgba(245,158,11,.2); }
.alert-info { background: rgba(59,130,246,.1); color: #2563eb; border: 1px solid rgba(59,130,246,.2); }
.alert ul { list-style: disc; padding-left: 20px; margin: 0; }

/* ============ AUTH PAGES ============ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.auth-left {
  background: var(--primary);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(233,69,96,.15);
  border-radius: 50%;
}
.auth-left-brand {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-left h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.auth-left p { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.7; }
.auth-right {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.auth-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 36px; }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn .3s ease;
  border-left: 4px solid transparent;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--info); }
.toast-close {
  margin-left: auto;
  background: none; border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.page-link {
  min-width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0 10px;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); border-color: var(--accent); color: white; }
.page-link.disabled { opacity: .5; cursor: not-allowed; }

/* ============ TABLE ============ */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--light);
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }
.data-table img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(233,69,96,.4);
  opacity: 0;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============ SUCCESS PAGE ============ */
.success-page {
  text-align: center;
  padding: 80px 0;
}
.success-icon {
  width: 100px; height: 100px;
  background: rgba(16,185,129,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--success);
  margin: 0 auto 32px;
}
.success-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.success-page p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto 36px; }
.order-details-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto 36px;
  box-shadow: var(--card-shadow);
  text-align: left;
}

/* ============ BANNER ============ */
.promo-banner {
  background: var(--accent);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.promo-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.promo-banner p { font-size: 16px; opacity: .85; margin-bottom: 28px; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 64px 32px;
}
.empty-icon {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 24px;
}
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .customer-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { max-width: 100%; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .navbar-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .cart-item { grid-template-columns: 72px 1fr; row-gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .tabs { flex-wrap: wrap; }
  .section-header-flex { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ============ UTILITIES ============ */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.p-0 { padding: 0; }
.w-100 { width: 100%; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--card-shadow); }
.bg-white { background: white; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

/* ============ WISHLIST ============ */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ============ CONTACT ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 60px 0;
}
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

/* ============ LOADING ============ */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}

/* ============ NAVBAR FIX ============ */
.nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.nav-action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    transition: background var(--transition);
}
.nav-action-btn:hover { background: var(--light); color: var(--accent); }

.nav-action-label {
    font-size: 13px;
    font-weight: 500;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    min-width: 200px;
    z-index: 999;
    overflow: hidden;
    border: 1px solid var(--border);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-muted);
    transition: background var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--light); color: var(--accent); }

.search-form { flex: 1; max-width: 520px; }

.topbar-sep { color: rgba(255,255,255,.3); }

.topbar-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font);
}
.topbar-btn:hover { color: white; }

/* ============ FOOTER FIX ============ */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand-col {}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-brand-icon {
    width: 36px;
    height: 36px;
    background: #e94560;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,.5);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    transition: all var(--transition);
}
.social-link:hover { background: #e94560; color: white; }

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: #e94560; }

.footer-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.footer-contact div { display: flex; align-items: center; gap: 8px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

.footer-payments {
    display: flex;
    gap: 12px;
    font-size: 28px;
    color: rgba(255,255,255,.4);
}

/* Category nav list */
.category-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}
.category-nav-list::-webkit-scrollbar { display: none; }

.category-nav-link {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all var(--transition);
}
.category-nav-link:hover,
.category-nav-link.active {
    background: var(--accent);
    color: white;
}

/* Footer responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
.loading-overlay.active { display: flex; }