/* Multigrade General Trading — Main Stylesheet */
/* Palette: #1a3c8f (primary blue), #f5a623 (accent amber), #fff (bg), #f7f8fa (surface) */

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

:root {
  --primary:    #1a3c8f;
  --primary-dk: #132d6e;
  --primary-lt: #2654c7;
  --accent:     #f5a623;
  --accent-dk:  #e0921a;
  --success:    #22c55e;
  --danger:     #ef4444;
  --warning:    #f59e0b;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --surface:    #f7f8fa;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  16px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ── Promo Ticker ── */
.promo-ticker {
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: ticker 28s linear infinite;
  padding-left: 100%;
}
.ticker-inner span { white-space: nowrap; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Site Header ── */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo-icon { font-size: 26px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.logo-accent { color: var(--accent); }
.logo-sub { font-size: 10px; font-weight: 500; color: var(--text-muted); margin-top: 2px; display: block; letter-spacing: 0.5px; text-transform: uppercase; }
.logo-img { max-height: 52px; width: auto; display: block; }

/* Search */
.search-form { flex: 1; max-width: 600px; display: flex; }
.search-input {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-lt); }

/* Header actions */
.header-actions { display: flex; gap: 12px; flex-shrink: 0; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.header-action:hover { color: var(--primary); background: var(--surface); }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: var(--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;
  line-height: 1;
}
.cart-badge:empty { display: none; }

/* Category nav */
.category-nav { background: var(--primary); overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-list {
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.category-nav-list a {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  display: block;
  transition: background var(--transition), color var(--transition);
}
.category-nav-list a:hover,
.category-nav-list a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* ── Sections ── */
section { padding: 48px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 22px; font-weight: 700; color: var(--text); }
.section-title span { color: var(--accent); }
.view-all { font-size: 13px; font-weight: 600; color: var(--primary); border: 2px solid var(--primary); padding: 6px 16px; border-radius: 20px; transition: all var(--transition); }
.view-all:hover { background: var(--primary); color: var(--white); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px; border: 2px solid transparent; transition: all var(--transition); cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }

/* ── Category Grid ── */
.categories { background: var(--surface); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card:hover .cat-icon { background: var(--primary); }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; transition: background var(--transition); }
.category-card .cat-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── Product Grid ── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product-image-wrap {
  position: relative;
  background: var(--surface);
  aspect-ratio: 1;
  overflow: hidden;
}
.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.05); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.badge-new { background: var(--primary); color: var(--white); }
.badge-hot { background: var(--danger); color: var(--white); }
.badge-sale { background: var(--accent); color: var(--white); }
.badge-best { background: var(--success); color: var(--white); }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  color: var(--text-muted);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--danger); }
.wishlist-btn svg { pointer-events: none; }

.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.spec-tag { font-size: 10px; background: var(--surface); color: var(--text-muted); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: #d1d5db; font-size: 13px; }
.star-full { color: #f59e0b; }
.star-half { color: #f59e0b; }
.review-count { font-size: 11px; color: var(--text-muted); }

.product-pricing { margin-top: auto; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.current-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.discount-pct { font-size: 11px; font-weight: 700; color: var(--success); background: #dcfce7; padding: 2px 6px; border-radius: 4px; }

.product-actions { padding: 12px 14px 14px; display: flex; gap: 8px; }
.add-to-cart-btn {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-to-cart-btn:hover { background: var(--primary-lt); }
.add-to-cart-btn.added { background: var(--success); }

/* ── Trust Badges ── */
.trust-badges { background: var(--primary); padding: 24px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--white); }
.trust-icon { font-size: 32px; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14px; font-weight: 700; }
.trust-item span { font-size: 12px; opacity: .8; }

/* ── Hot Deals ── */
.hot-deals { background: var(--surface); }
.deals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.deal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.deal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.deal-img { aspect-ratio: 1; overflow: hidden; background: var(--surface); position: relative; }
.deal-img img { width: 100%; height: 100%; object-fit: cover; }
.countdown { background: var(--primary); color: var(--white); display: flex; justify-content: center; gap: 6px; padding: 8px; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-unit .num { font-size: 18px; font-weight: 800; line-height: 1; }
.countdown-unit .lbl { font-size: 9px; opacity: .8; text-transform: uppercase; }
.countdown-sep { font-size: 18px; font-weight: 800; align-self: flex-start; padding-top: 2px; }
.deal-info { padding: 12px; }

/* ── Newsletter ── */
.newsletter { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%); color: var(--white); text-align: center; padding: 60px 0; }
.newsletter h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.newsletter p { opacity: .85; margin-bottom: 28px; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  outline: none;
}
.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dk); }
.newsletter-msg { margin-top: 12px; font-size: 13px; opacity: .9; }

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 540px;
  background: var(--primary-dk);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 0;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,24,68,.88) 0%, rgba(10,24,68,.60) 50%, rgba(10,24,68,.15) 100%);
  display: flex;
  align-items: center;
  z-index: 2;
}
.slide-content {
  color: var(--white);
  max-width: 620px;
  padding: 0;
}
.slide-content .hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.slide-content .hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.slide-content .hero-title span { color: var(--accent); }
.slide-content .hero-desc {
  font-size: 16px;
  opacity: .88;
  margin-bottom: 30px;
  line-height: 1.7;
}
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
  line-height: 1;
}
.slider-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 22px; }
.slider-next { right: 22px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  padding: 0;
}
.dot.active {
  background: var(--white);
  width: 30px;
}
.dot:hover { background: rgba(255,255,255,.75); }

/* Slide placeholder when no image uploaded yet */
.slide-bg-placeholder {
  background: linear-gradient(135deg, #1a3c8f 0%, #2a4fad 60%, #132d6e 100%);
}

/* ── Banner text horizontal positions ── */
.slide.pos-far-left  .slide-content { max-width: 40%; }
.slide.pos-left      .slide-content { max-width: 56%; }
.slide.pos-center    .slide-content { max-width: 65%; margin-left: auto; margin-right: auto; text-align: center; }
.slide.pos-center    .slide-btns    { justify-content: center; }
.slide.pos-right     .slide-content { max-width: 56%; margin-left: auto; }
.slide.pos-far-right .slide-content { max-width: 40%; margin-left: auto; }

/* ── Banner vertical positions ── */
.slide.v-top    .slide-overlay { align-items: flex-start; padding-top: 72px; }
.slide.v-middle .slide-overlay { align-items: center; }
.slide.v-bottom .slide-overlay { align-items: flex-end; padding-bottom: 72px; }

/* ── Image-only ── */
.slide.image-only .slide-overlay { background: rgba(0,0,0,.15) !important; }
.slide.image-only .slide-content { display: none; }

/* Legacy right-side support */
.slide.content-right .slide-overlay {
  background: linear-gradient(to left, rgba(10,24,68,.88) 0%, rgba(10,24,68,.55) 55%, transparent 100%);
}
.slide.content-right .slide-content { margin-left: auto; }
.slide.content-right .slide-btns   { justify-content: flex-end; }

/* Responsive slider */
@media (max-width: 768px) {
  .hero-slider { height: 380px; }
  .slide-content .hero-title { font-size: 26px; }
  .slide-content .hero-desc { font-size: 14px; }
  .slider-btn { width: 38px; height: 38px; font-size: 16px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
}
@media (max-width: 480px) {
  .hero-slider { height: 300px; }
  .slide-content .hero-title { font-size: 20px; }
  .slide-content .hero-desc { display: none; }
  .slide-btns .btn:last-child { display: none; }
}

/* ── Category icon images ── */
.cat-icon { position: relative; }
.cat-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.cat-icon-emoji { font-size: 24px; display: block; }

/* ── Payment logo images ── */
.payment-logo-wrap { display: inline-flex; align-items: center; }
.payment-logo-img {
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
}


/* ── Site Footer ── */
.site-footer { background: var(--footer-bg, #0b1739); color: rgba(255,255,255,.72); }

.footer-accent-bar { height: 3px; background: linear-gradient(90deg, var(--primary-lt) 0%, var(--accent) 60%, #f97316 100%); }

/* Newsletter strip */
.footer-newsletter-strip { background: linear-gradient(135deg, var(--footer-newsletter-bg, #112060) 0%, var(--footer-newsletter-bg2, #1a3c8f) 100%); border-bottom: 1px solid rgba(255,255,255,.07); padding: 32px 0; }
.footer-newsletter-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-newsletter-text { flex: 1; min-width: 220px; }
.footer-newsletter-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer-newsletter-sub { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-newsletter-form { display: flex; gap: 0; flex: 0 0 auto; }
.footer-newsletter-form input { padding: 11px 16px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border: 1.5px solid rgba(255,255,255,.18); border-right: none; background: rgba(255,255,255,.08); color: var(--white); font-size: 13px; font-family: inherit; width: 260px; outline: none; transition: border-color var(--transition); }
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter-form input:focus { border-color: var(--accent); }
.footer-newsletter-form button { padding: 11px 20px; background: var(--accent); color: #000; font-weight: 700; font-size: 13px; font-family: inherit; border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; white-space: nowrap; transition: background var(--transition); }
.footer-newsletter-form button:hover { background: var(--accent-dk); }

/* Main body */
.footer-body { padding: 52px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }

.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 14px; letter-spacing: -.3px; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,.55); margin-bottom: 18px; }

.footer-trust-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.footer-trust-chips span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 4px 10px; }

.footer-social { display: flex; gap: 8px; }
.social-link { width: 34px; height: 34px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background var(--transition), border-color var(--transition), transform var(--transition); color: rgba(255,255,255,.7); }
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #000; transform: translateY(-2px); }
.social-link-wa:hover { background: #25d366; border-color: #25d366; color: var(--white); }

/* Column headings */
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-col h4 span { color: var(--white); font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 700; position: relative; }
.footer-col h4 span::after { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 6px; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition), padding-left var(--transition); display: inline-block; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 12px; line-height: 1.5; }
.contact-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* Bottom bar */
.footer-bottom-bar { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.footer-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-payments-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.payment-logos { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-logo-wrap { display: flex; }
.payment-logo { padding: 4px 10px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .3px; }
.payment-logo.mtn { background: #ffcc00; color: #000; }
.payment-logo.airtel { background: #e40000; color: #fff; }
.payment-logo.visa { background: #1a1f71; color: #fff; }
.payment-logo.mastercard { background: #eb001b; color: #fff; }
.payment-logo.cod { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.15); }

.footer-copyright { font-size: 12px; color: rgba(255,255,255,.35); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-divider { opacity: .4; }
.footer-credit { color: rgba(255,255,255,.35); }
.footer-credit a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ── WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ── Shop Page ── */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }

.sidebar { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; position: sticky; top: 80px; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; font-size: 13px; width: 0; }
.price-inputs span { color: var(--text-muted); font-size: 13px; }

.shop-main {}
.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.shop-count { font-size: 14px; color: var(--text-muted); }
.sort-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-family: inherit; outline: none; color: var(--text); cursor: pointer; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  color: var(--text);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Product Page ── */
.product-page { padding: 40px 0; }
.product-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.product-detail .product-brand-badge { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-detail h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.product-sku { font-size: 12px; color: var(--text-muted); }
.product-stock-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.in-stock { background: #dcfce7; color: #15803d; }
.low-stock { background: #fef3c7; color: #92400e; }
.out-stock { background: #fee2e2; color: #991b1b; }
.product-price-section { margin-bottom: 24px; }
.product-price-section .current-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.product-price-section .old-price { font-size: 18px; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.product-price-section .discount-pct { font-size: 14px; font-weight: 700; color: var(--success); margin-left: 8px; }
.product-short-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.product-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 38px; height: 44px; background: var(--surface); border: none; font-size: 18px; font-weight: 700; color: var(--text); transition: background var(--transition); }
.qty-btn:hover { background: var(--border); }
.qty-input { width: 52px; height: 44px; border: none; text-align: center; font-size: 16px; font-weight: 600; outline: none; }
.product-actions-row { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions-row .btn { flex: 1; min-width: 160px; }

.product-tabs { margin-top: 48px; }
.tab-list { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn { background: none; border: none; padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--surface); }
.specs-table td { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; width: 35%; color: var(--text-muted); }

/* ── Cart Page ── */
.cart-page { padding: 40px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-table th { background: var(--surface); padding: 14px 16px; font-size: 13px; font-weight: 700; text-align: left; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.cart-product-info .name { font-size: 14px; font-weight: 600; }
.cart-product-info .brand { font-size: 12px; color: var(--text-muted); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn { width: 28px; height: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); }
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-num { font-size: 14px; font-weight: 600; width: 28px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--text-muted); padding: 6px; border-radius: 4px; transition: color var(--transition); }
.cart-remove:hover { color: var(--danger); }
.order-summary-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; position: sticky; top: 100px; }
.order-summary-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--primary); margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border); }
.free-delivery { color: var(--success); font-weight: 600; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty .empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Checkout ── */
.checkout-page { padding: 40px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.checkout-form-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-control {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--primary); }
.form-control.error { border-color: var(--danger); }
.form-control-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: block; }

.delivery-options, .payment-options { display: grid; gap: 10px; }
.option-card { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.option-card:hover { border-color: var(--primary); }
.option-card.selected { border-color: var(--primary); background: #eff6ff; }
.option-card input[type="radio"] { accent-color: var(--primary); }
.option-card-content { display: flex; align-items: center; gap: 12px; }
.option-icon { font-size: 22px; }
.option-label { font-size: 14px; font-weight: 600; }
.option-desc { font-size: 12px; color: var(--text-muted); }

/* ── Order Confirmation ── */
.confirm-page { padding: 60px 0; min-height: 60vh; }
.confirm-card { max-width: 680px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 48px; text-align: center; }
.confirm-icon { font-size: 72px; margin-bottom: 20px; }
.confirm-card h1 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.confirm-card .order-num { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.confirm-card p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.confirm-table { width: 100%; text-align: left; border-collapse: collapse; margin: 28px 0; }
.confirm-table th { background: var(--surface); padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.confirm-table td { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }

/* ── Admin ── */
.admin-body { background: var(--surface); }
.admin-nav {
  background: var(--primary-dk);
  color: var(--white);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-nav .admin-logo { font-size: 18px; font-weight: 800; flex: 1; }
.admin-nav a { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.15); color: var(--white); }
.admin-content { padding: 32px 24px; max-width: 1280px; margin: 0 auto; }
.admin-page-title { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.stat-card .stat-val { font-size: 30px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-card .stat-lbl { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-icon { font-size: 32px; float: right; }
.admin-table-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-table-card .table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-table-card .table-header h3 { font-size: 16px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--surface); padding: 12px 16px; font-size: 12px; font-weight: 700; text-align: left; color: var(--text-muted); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .5px; }
.admin-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status-pending    { background: #fef3c7; color: #92400e; }
.status-confirmed  { background: #dbeafe; color: #1e40af; }
.status-processing { background: #e0e7ff; color: #3730a3; }
.status-shipped    { background: #d1fae5; color: #065f46; }
.status-delivered  { background: #dcfce7; color: #15803d; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.action-btn-edit { background: #dbeafe; color: #1e40af; }
.action-btn-edit:hover { background: #bfdbfe; }
.action-btn-delete { background: #fee2e2; color: #991b1b; }
.action-btn-delete:hover { background: #fecaca; }
.action-btn-view { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.action-btn-view:hover { background: var(--border); }
.admin-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; }
.form-section-title { font-size: 16px; font-weight: 700; margin: 24px 0 16px; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 12px; }
.form-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%); }
.admin-login-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.admin-login-card h1 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.admin-login-card p { color: var(--text-muted); text-align: center; margin-bottom: 32px; font-size: 14px; }

/* ── Alerts ── */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; font-weight: 500; border: 1px solid; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.alert-error   { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.alert-warning { background: #fffbeb; color: #b45309; border-color: #fcd34d; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ── Misc ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-results .icon { font-size: 48px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter-form input { width: 200px; }
  .hero-title { font-size: 30px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-form { order: 3; flex: 0 0 100%; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-content { padding: 40px 24px; }
  .hero-btns { justify-content: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .sidebar.open { display: block; }
  .product-page-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-newsletter-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-newsletter-form { width: 100%; }
  .footer-newsletter-form input { width: 100%; flex: 1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout .order-summary-card { order: -1; }
  .admin-nav { flex-wrap: wrap; height: auto; padding: 12px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .stat-cards { grid-template-columns: 1fr; }
}
