/* ===================================================================
   Ruzzy — Premium Marketplace CSS
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────── */
:root {
  /* Ruzzy 2026 — neutral-first design tokens */
  --primary:       #1D4ED8;   /* Meteor blue — deeper than stock blue */
  --primary-dark:  #1A3FB8;
  --primary-ink:   #0B1B3F;   /* Meteor night — deep brand navy */
  --primary-light: #D6E1FB;
  --primary-xlight:#EEF3FE;
  --secondary:     #172554;   /* was orange — retired */
  --accent:        #2563EB;
  --red:           #DC2626;
  --green:         #16A34A;
  --yellow:        #CA8A04;
  --bg:            #F7F8FA;   /* cool off-white canvas — subtle Meteor tint */
  --surface:       #FFFFFF;
  --surface2:      #F1F3F7;
  --border:        #E4E7EC;
  --border-strong: #CDD2DC;
  --border-light:  #EFF1F5;
  --text:          #111318;   /* charcoal      — 17.5:1 on canvas */
  --text-muted:    #5F6672;   /* secondary     — 5.4:1  (AA)      */
  --text-light:    #6F7787;   /* de-emphasised — 4.5:1  (AA)      */
  --shadow-sm:     0 1px 2px rgba(17,19,24,.05);
  --shadow:        0 2px 8px rgba(17,19,24,.07);
  --shadow-lg:     0 8px 24px rgba(17,19,24,.10);
  --radius:        10px;
  --radius-sm:     8px;
  --radius-lg:     14px;
  --transition:    .18s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ─── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-top {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 0;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.55rem; letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.logo-text { color: var(--text); }
.logo-text .accent { color: var(--primary); }

/* Search bar */
.search-form {
  flex: 1; display: flex; max-width: 600px;
  border: 2px solid var(--border); border-radius: 50px;
  overflow: hidden; background: var(--bg);
  transition: border-color var(--transition);
}
.search-form:focus-within { border-color: var(--primary); background: #fff; }
.search-form input {
  flex: 1; border: none; background: transparent;
  padding: .65rem 1.2rem; font-size: .95rem; color: var(--text); outline: none;
}
.search-btn {
  background: var(--primary); color: #fff; border: none;
  padding: .65rem 1.4rem; cursor: pointer; font-size: 1rem;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.header-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: .4rem .7rem; border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  transition: all var(--transition); position: relative; font-size: .7rem;
  white-space: nowrap;
}
.header-btn i { font-size: 1.2rem; margin-bottom: 2px; color: var(--text); }
.header-btn:hover { background: var(--bg); color: var(--primary); }
.header-btn:hover i { color: var(--primary); }
.badge-count {
  position: absolute; top: 2px; right: 4px;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Lang switcher */
.lang-switcher { display: flex; gap: .25rem; }
.lang-btn {
  padding: .3rem .65rem; border-radius: 20px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border); background: none; cursor: pointer;
  color: var(--text-muted); transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}

/* Category nav bar */
.cat-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cat-nav-inner {
  display: flex; align-items: center; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-link {
  padding: .65rem 1rem; font-size: .86rem; font-weight: 500;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 2.5px solid transparent; transition: all var(--transition);
  display: flex; align-items: center; gap: .35rem;
}
.cat-nav-link:hover, .cat-nav-link.active {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* Flash messages */
.flash-messages { padding: .5rem 0; }
.flash-msg {
  padding: .8rem 1.2rem; border-radius: var(--radius-sm);
  margin-bottom: .5rem; font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
}
.flash-msg.success { background: #dcfce7; color: #166534; }
.flash-msg.error   { background: #fee2e2; color: #991b1b; }
.flash-msg.info    { background: var(--primary-xlight); color: var(--primary-dark); }

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  padding: 3.5rem 0;
  overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; position: relative;
}
.hero-content { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .9rem; border-radius: 50px; font-size: .82rem;
  font-weight: 600; color: #fff; margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1rem;
}
.hero-content h1 span {
  background: linear-gradient(to right, #fbbf24, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 1.05rem; opacity: .9; margin-bottom: 1.8rem; max-width: 440px; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat-num { font-size: 1.4rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .78rem; opacity: .75; color: #fff; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 380px; width: 100%;
}
.hero-mini-card {
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  padding: 1.2rem; text-align: center; color: #fff;
  transition: transform var(--transition);
}
.hero-mini-card:hover { transform: translateY(-3px); }
.hero-mini-card .icon { font-size: 2rem; margin-bottom: .5rem; }
.hero-mini-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.hero-mini-card p  { font-size: .75rem; opacity: .8; }

/* ─── FEATURES BAR ───────────────────────────────────────────────── */
.features {
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.feature-item {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.2rem 1.5rem; border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px; height: 44px; background: var(--primary-xlight);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.feature-text h4 { font-size: .88rem; font-weight: 700; color: var(--text); }
.feature-text p  { font-size: .76rem; color: var(--text-muted); }

/* ─── SECTION ────────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.8rem;
}
.section-title {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
}
.section-title span { color: var(--primary); }
.see-all {
  font-size: .85rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: .3rem;
  transition: gap var(--transition);
}
.see-all:hover { gap: .6rem; }

/* ─── CATEGORIES GRID ────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.cat-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  transition: all var(--transition); cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.cat-icon { font-size: 2rem; flex-shrink: 0; }
.cat-info h3 { font-size: .9rem; font-weight: 700; color: var(--text); }
.cat-info p  { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }

/* ─── PRODUCT CARDS ──────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.product-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface2);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: var(--surface2);
}

.product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: .22rem .65rem; border-radius: 20px;
  font-size: .72rem; font-weight: 700; z-index: 2;
}
.badge-new  { background: #22c55e; color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.badge-hot  { background: var(--secondary); color: #fff; }
.badge-trend{ background: #7c3aed; color: #fff; }

.trending-dot {
  position: absolute; top: 10px; right: 42px;
  font-size: .9rem; z-index: 2;
}
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; background: rgba(255,255,255,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: var(--text-muted); font-size: .9rem;
  transition: all var(--transition);
}
.fav-btn:hover, .fav-btn.active { color: var(--red); background: #fff; }
.fav-btn.active i::before { content: '\f004'; }

.product-info { padding: .95rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .72rem; color: var(--primary); font-weight: 600; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .5px; }
.product-name {
  font-size: .9rem; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .6rem; line-height: 1.4; flex: 1;
}
.product-name:hover { color: var(--primary); }

/* Star rating */
.product-rating { display: flex; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.stars { color: var(--yellow); font-size: .8rem; letter-spacing: 1px; }
.review-count { font-size: .72rem; color: var(--text-muted); }

.product-prices {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap;
}
.price-current { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.price-old  { font-size: .82rem; color: var(--text-light); text-decoration: line-through; }
.discount-tag {
  font-size: .72rem; font-weight: 700; color: #fff;
  background: var(--red); padding: .1rem .4rem; border-radius: 4px;
}

.product-actions { display: flex; gap: .5rem; }
.add-cart-btn {
  flex: 1; background: var(--primary); color: #fff; border: none;
  padding: .6rem .8rem; border-radius: var(--radius-sm); cursor: pointer;
  font-size: .82rem; font-weight: 600; display: flex; align-items: center;
  justify-content: center; gap: .35rem; transition: all var(--transition);
}
.add-cart-btn:hover { background: var(--primary-dark); }
.detail-btn {
  width: 36px; flex-shrink: 0; background: var(--bg); color: var(--text-muted);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all var(--transition);
}
.detail-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem; border-radius: 50px; font-size: .92rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-secondary {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
}
.btn-secondary:hover { filter: brightness(1.1); }
.btn-dark {
  background: var(--text); color: #fff;
}
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }

/* ─── PROMO BANNER ───────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: var(--radius-lg); padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; gap: 1rem;
}
.promo-banner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.promo-banner h2 .accent { color: #fbbf24; }
.promo-banner p { opacity: .85; margin-bottom: 1.3rem; }
.promo-emoji { font-size: 5rem; opacity: .8; }

/* Flash sale banner */
.flash-sale-strip {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: #fff; padding: .5rem 0; text-align: center; font-size: .9rem; font-weight: 700;
}
.flash-sale-strip i { margin-right: .4rem; }

/* ─── PRODUCTS PAGE ──────────────────────────────────────────────── */
.products-page { padding: 2rem 0 4rem; }
.products-page-header { margin-bottom: 1.5rem; }
.products-page-header h1 { font-size: 1.6rem; font-weight: 800; }

.filter-bar {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  background: var(--surface); padding: 1rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.filter-bar .filter-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.filter-select {
  padding: .45rem 1rem; border-radius: 20px; border: 1.5px solid var(--border);
  font-size: .85rem; background: var(--bg); color: var(--text); cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--primary); }
.results-count { margin-left: auto; font-size: .85rem; color: var(--text-muted); }

/* Active category chip */
.active-cat-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary-light); color: var(--primary-dark);
  padding: .3rem .9rem; border-radius: 20px; font-size: .82rem; font-weight: 600;
  margin-bottom: 1rem;
}
.active-cat-chip a { color: var(--primary); display: flex; align-items: center; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem;
}
.page-btn {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ─── PRODUCT DETAIL ─────────────────────────────────────────────── */
.product-detail-page { padding: 2rem 0 4rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.product-gallery {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  aspect-ratio: 1;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.no-img { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--surface2); }

.product-detail-info {}
.trending-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fef3c7; color: #92400e; border-radius: 20px;
  padding: .3rem .9rem; font-size: .78rem; font-weight: 700; margin-bottom: .7rem;
}
.flash-sale-banner {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: #fff; border-radius: var(--radius-sm);
  padding: .5rem 1rem; font-size: .85rem; font-weight: 700;
  margin-bottom: .7rem; display: inline-flex; align-items: center; gap: .4rem;
}
.product-detail-cat { font-size: .8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.product-detail-info h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin-bottom: 1rem; }

.product-detail-prices {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.product-detail-prices .price-current { font-size: 2rem; font-weight: 900; color: var(--text); }
.product-detail-prices .price-old { font-size: 1rem; }
.product-detail-prices .discount-tag { font-size: .82rem; padding: .2rem .6rem; }

.sale-countdown {
  background: #fef3c7; border: 1px solid #fde68a; border-radius: var(--radius-sm);
  padding: .6rem 1rem; font-size: .88rem; font-weight: 600; color: #92400e;
  margin-bottom: 1.2rem; display: inline-flex; align-items: center; gap: .5rem;
}
.countdown-timer { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.product-desc { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }

.product-meta { margin-bottom: 1.5rem; }
.meta-row {
  display: flex; gap: .8rem; padding: .5rem 0;
  border-bottom: 1px solid var(--border-light); font-size: .88rem;
}
.meta-label { color: var(--text-muted); min-width: 100px; }
.meta-value { font-weight: 600; }

.add-to-cart-big {
  width: 100%; background: var(--primary); color: #fff; border: none;
  padding: .9rem; border-radius: var(--radius-sm); cursor: pointer;
  font-size: .95rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: .5rem; transition: all var(--transition);
}
.add-to-cart-big:hover { background: var(--primary-dark); transform: translateY(-1px); }

.fav-btn-lg {
  width: 50px; flex-shrink: 0; background: var(--surface); color: var(--text-muted);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: all var(--transition);
}
.fav-btn-lg:hover, .fav-btn-lg.active { color: var(--red); border-color: var(--red); }

.trust-row {
  display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem;
  color: var(--text-muted); padding: 1rem 0; border-top: 1px solid var(--border);
}
.trust-row span { display: flex; align-items: center; gap: .35rem; }

/* ─── CART ───────────────────────────────────────────────────────── */
.cart-page { padding: 2rem 0 4rem; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-header { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }
.cart-items { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cart-item { display: flex; gap: 1rem; padding: 1.2rem; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface2); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.cart-item-price { color: var(--text-muted); font-size: .85rem; }
.cart-item-subtotal { font-weight: 800; font-size: 1rem; color: var(--primary); }
.qty-input { width: 60px; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .35rem .5rem; font-size: .9rem; }

.order-summary {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1.5rem;
}
.order-summary h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: .5rem; font-weight: 800; font-size: 1.05rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty .empty-icon { font-size: 5rem; margin-bottom: 1rem; }
.cart-empty h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.cart-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ─── CHECKOUT ───────────────────────────────────────────────────── */
.checkout-page { padding: 2rem 0 4rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-form-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; }
.form-section { margin-bottom: 1.8rem; }
.form-section h3 { font-size: .95rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .92rem; color: var(--text);
  background: var(--bg); outline: none; transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--primary); background: #fff; }

.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.payment-option { position: relative; }
.payment-option input { position: absolute; opacity: 0; }
.payment-option label {
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition); font-size: .88rem;
}
.payment-option input:checked + label {
  border-color: var(--primary); background: var(--primary-xlight); color: var(--primary-dark);
}
.payment-option label i { font-size: 1.2rem; }

/* ─── ORDER SUCCESS ──────────────────────────────────────────────── */
.success-page { padding: 4rem 0; text-align: center; }
.success-icon { font-size: 5rem; margin-bottom: 1.5rem; }
.success-page h1 { font-size: 2rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.success-page p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.order-box { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; max-width: 560px; margin: 0 auto 2rem; text-align: left; }
.order-box h3 { font-weight: 700; margin-bottom: 1rem; }

/* ─── FAVORITES ──────────────────────────────────────────────────── */
.fav-page { padding: 2rem 0 4rem; }
.fav-header { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; }
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-icon { font-size: 5rem; margin-bottom: 1.5rem; }
.empty-state h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 2rem; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a; color: #94a3b8; margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: .75rem; font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .85rem; color: #94a3b8; margin-bottom: .5rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: .5rem;
}
.social-links { display: flex; gap: .6rem; }
.social-link {
  width: 36px; height: 36px; background: #1e293b; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: .9rem; transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ─── ADMIN DARK THEME ───────────────────────────────────────────── */
.admin-body {
  background: #0f172a; color: #e2e8f0;
  font-family: 'Inter', sans-serif; min-height: 100vh;
  display: flex;
}
.admin-sidebar {
  width: 260px; background: #1e293b; min-height: 100vh;
  display: flex; flex-direction: column; flex-shrink: 0;
  position: sticky; top: 0;
}
.admin-sidebar-header {
  padding: 1.5rem; border-bottom: 1px solid #334155;
}
.admin-sidebar-header .logo-text { color: #f1f5f9; }
.admin-sidebar-header .logo-text .accent { color: #60a5fa; }
.admin-sidebar-header small { display: block; color: #64748b; font-size: .78rem; margin-top: .25rem; }
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem 1.5rem; color: #94a3b8; font-size: .88rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer; border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: #334155; color: #e2e8f0; }
.admin-nav-item.active { background: #1d4ed830; color: #60a5fa; border-left-color: #3b82f6; }
.admin-nav-item i { width: 18px; text-align: center; font-size: .95rem; }
.admin-nav-divider { border-top: 1px solid #334155; margin: .5rem 1.5rem; }

.admin-main { flex: 1; padding: 2rem; min-width: 0; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem;
}
.admin-title { font-size: 1.5rem; font-weight: 800; color: #f1f5f9; }
.admin-subtitle { color: #64748b; font-size: .88rem; margin-top: .2rem; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card {
  background: #1e293b; border: 1px solid #334155; border-radius: var(--radius);
  padding: 1.4rem; transition: all var(--transition);
}
.stat-card:hover { border-color: #3b82f6; }
.stat-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .8rem; }
.stat-card-icon { font-size: 1.5rem; }
.stat-card-label { font-size: .78rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: #f1f5f9; }
.stat-card-sub { font-size: .78rem; color: #64748b; margin-top: .2rem; }

/* Admin table */
.admin-table-wrap { background: #1e293b; border: 1px solid #334155; border-radius: var(--radius); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: #0f172a; padding: .9rem 1rem; text-align: left;
  font-size: .78rem; color: #64748b; text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
}
.admin-table td { padding: .9rem 1rem; border-bottom: 1px solid #334155; font-size: .88rem; color: #cbd5e1; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #0f172a30; }

/* Admin form */
.admin-card { background: #1e293b; border: 1px solid #334155; border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid #334155; }
.admin-form-group { margin-bottom: 1.2rem; }
.admin-form-group label { display: block; font-size: .82rem; font-weight: 600; color: #94a3b8; margin-bottom: .4rem; }
.admin-input {
  width: 100%; padding: .7rem 1rem; background: #0f172a;
  border: 1.5px solid #334155; border-radius: var(--radius-sm);
  color: #e2e8f0; font-size: .9rem; outline: none; transition: border-color var(--transition);
}
.admin-input:focus { border-color: #3b82f6; }
.admin-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.admin-form-grid .admin-input { min-width: 0; }

/* Admin badges */
.status-badge {
  display: inline-flex; align-items: center; padding: .2rem .7rem;
  border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.status-pending    { background: #451a03; color: #fbbf24; }
.status-processing { background: #1e3a5f; color: #60a5fa; }
.status-shipped    { background: #0c4a6e; color: #38bdf8; }
.status-delivered  { background: #052e16; color: #4ade80; }
.status-cancelled  { background: #3f1212; color: #f87171; }

/* Product img thumb in admin */
.product-thumb {
  width: 50px; height: 50px; border-radius: 8px;
  object-fit: cover; background: #334155;
}

/* Admin action btns */
.action-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-admin {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem; border-radius: 6px; font-size: .78rem;
  font-weight: 600; cursor: pointer; border: none; transition: all var(--transition);
}
.btn-edit   { background: #1d4ed830; color: #60a5fa; }
.btn-edit:hover { background: #1d4ed8; color: #fff; }
.btn-delete { background: #7f1d1d30; color: #f87171; }
.btn-delete:hover { background: #dc2626; color: #fff; }
.btn-view   { background: #064e3b30; color: #34d399; }
.btn-view:hover { background: #059669; color: #fff; }
.btn-warn   { background: #78350f30; color: #fbbf24; }
.btn-warn:hover { background: #d97706; color: #fff; }
.btn-purple { background: #4c1d9530; color: #a78bfa; }
.btn-purple:hover { background: #7c3aed; color: #fff; }

/* ─── LANDING PAGE ───────────────────────────────────────────────── */
.lp-body { background: #fff; font-family: 'Inter', sans-serif; }
.lp-hero {
  min-height: 500px; display: flex; align-items: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff; padding: 4rem 0;
}
.lp-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.lp-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.lp-hero p  { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; }
.lp-benefits { padding: 4rem 1.5rem; max-width: 900px; margin: 0 auto; }
.lp-benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.benefit-card { text-align: center; padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: 12px; }
.benefit-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.lp-reviews { background: #f8fafc; padding: 4rem 1.5rem; }
.lp-reviews-inner { max-width: 900px; margin: 0 auto; }
.review-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.lp-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }
.lp-cta-section { padding: 4rem 1.5rem; max-width: 600px; margin: 0 auto; text-align: center; }
.lp-urgency { background: #fef3c7; border: 2px solid #fde68a; border-radius: 12px; padding: 1rem 1.5rem; margin: 1.5rem 0; font-weight: 700; color: #92400e; }
.lp-faq { padding: 3rem 1.5rem; max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e2e8f0; padding: 1rem 0; }
.faq-q { font-weight: 700; margin-bottom: .5rem; }
.faq-a { color: #64748b; }

/* ─── MISC ───────────────────────────────────────────────────────── */
.page-header { padding: 2rem 0 1.5rem; }
.page-header h1 { font-size: 1.7rem; font-weight: 800; }
.page-header p { color: var(--text-muted); margin-top: .3rem; }

/* Alert box */
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; }
.alert-info    { background: var(--primary-xlight); color: var(--primary-dark); border: 1px solid var(--primary-light); }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cat-nav { display: none; }
  .search-form { flex: 1; max-width: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(1),
  .feature-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; padding: 2rem; }
  .promo-emoji { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-body { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; position: static; }
  .admin-main { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }
  .hero-badge { font-size: .75rem; }
  .hero-content h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .header-btn span { display: none; }
  .lang-btn { padding: .25rem .5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .product-info { padding: .7rem; }
  .product-name { font-size: .82rem; }
  .price-current { font-size: .95rem; }
  .add-cart-btn { font-size: .75rem; padding: .5rem .6rem; }
}
