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

:root {
  --primary: #6C3CE1;
  --primary-dark: #5429c0;
  --primary-light: #f0ebff;
  --accent: #FF6B35;
  --green: #25D366;
  --bg: #f5f5f5;
  --white: #fff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); }

/* ── Header ─────────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.header-inner {
  padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 20px;
  position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo h1 { font-size: 18px; font-weight: 700; color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hamburger-btn {
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  flex-shrink: 0; position: relative; z-index: 200;
  pointer-events: all; touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(108,60,225,0.15);
}
.hamburger-btn span {
  display: block; height: 2.5px; background: #1f2937; border-radius: 2px;
  transition: all 0.2s;
}

/* Wide search bar (Myntra/Amazon style) */
.search-wrap {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px;
  display: flex; align-items: center;
}
.search-wrap input {
  width: 100%; padding: 10px 44px 10px 16px;
  border: 2px solid #e5e7eb; border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
  background: #f9fafb; color: #1f2937;
  transition: border-color 0.2s, background 0.2s;
}
.search-wrap input::placeholder { color: #9ca3af; }
.search-wrap input:focus { border-color: var(--primary); background: #fff; }
.search-icon {
  position: absolute; right: 14px; font-size: 15px;
  pointer-events: none; color: #6b7280;
}
.cart-btn {
  position: relative; background: var(--primary); border: none;
  border-radius: 8px; padding: 9px 18px; cursor: pointer; font-size: 16px;
  color: #fff; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
  font-family: inherit; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.cart-btn:hover { background: var(--primary-dark); }
.cart-count {
  background: var(--accent); color: white; border-radius: 50%;
  min-width: 18px; height: 18px; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-count.hidden { display: none; }

/* ── Offer Strip ─────────────────────────────────────────────── */
.offer-strip {
  background: var(--primary);
  color: #fff; text-align: center;
  padding: 7px 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.3px;
}
.offer-strip span { opacity: 0.7; margin: 0 12px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { background: #fff; }
.hero-modern {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1a0533 0%, #4c1d95 40%, #7c3aed 100%);
  min-height: 280px; display: flex; align-items: center;
  padding: 48px 24px;
}
.hero-modern-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05); filter: blur(60px);
}
.hero-blob-1 { width: 400px; height: 400px; top: -120px; left: -80px; }
.hero-blob-2 { width: 300px; height: 300px; bottom: -80px; right: 5%; background: rgba(255,200,0,0.08); }
.hero-blob-3 { width: 200px; height: 200px; top: 30%; left: 45%; }
.hero-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 80px; font-weight: 900; color: rgba(255,255,255,0.03);
  white-space: nowrap; letter-spacing: 10px; pointer-events: none; user-select: none;
}
.hero-modern-content {
  position: relative; z-index: 2;
  max-width: 560px; margin: 0 auto; text-align: center;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 16px; border-radius: 50px; font-size: 11px;
  font-weight: 600; margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase;
}
.hero-title {
  font-size: 36px; font-weight: 800; color: white;
  line-height: 1.2; margin-bottom: 10px;
}
.hero-highlight {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.hero-chips-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 36px; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-cta-primary { background: #f59e0b; color: #1a1a2e; border: none; padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(245,158,11,0.55); letter-spacing: 0.3px; }
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,0.65); }
.hero-cta-secondary { background: #fff; color: #3b1f6e; border: none; padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.18); letter-spacing: 0.3px; }
.hero-cta-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.hero-caption { font-size: 15px; font-style: italic; font-weight: 600; color: #fff !important; margin-top: 18px; letter-spacing: 0.4px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); opacity: 1 !important; }
.hero-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); padding: 7px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.hero-chip:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.hero-modern-icons { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-float-icon {
  position: absolute; font-size: 28px;
  opacity: 0.15; animation: float 6s ease-in-out infinite;
}
.hero-float-icon:nth-child(2) { animation-delay: 1.5s; }
.hero-float-icon:nth-child(3) { animation-delay: 3s; }
.hero-float-icon:nth-child(4) { animation-delay: 4.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Sections ───────────────────────────────────────────────── */
.container { padding: 0 20px; }
.categories-section { padding: 28px 0 8px; background: #fff; border-bottom: 1px solid #e5e7eb; margin-bottom: 16px; }
.products-section { padding: 8px 0 60px; }
.section-title {
  font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 20px;
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 4px; background: var(--primary);
}
.products-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.products-header .section-title { margin-bottom: 0; }
.clear-filter {
  background: #fee2e2; color: #991b1b; border: none;
  padding: 6px 14px; border-radius: 6px; font-size: 12px;
  font-weight: 600; cursor: pointer;
}
.clear-filter.hidden { display: none; }
.gender-btn {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #374151; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.gender-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gender-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── Category Row (Myntra style — circles) ──────────────────── */
.categories-marquee-wrap {
  overflow-x: auto; padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-marquee-wrap::-webkit-scrollbar { display: none; }
.categories-marquee {
  display: flex !important; flex-wrap: nowrap !important; gap: 24px;
  list-style: none; margin: 0; padding: 4px 8px 4px;
  min-height: 10px; width: max-content;
}
.cat-card {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: flex-start !important;
  background: transparent !important; cursor: pointer;
  transition: all 0.22s; user-select: none;
  min-width: 80px !important; max-width: 110px !important; text-align: center !important;
  border: none !important; box-shadow: none !important;
  padding: 4px 8px !important; border-radius: 0 !important;
}
.cat-card::before { display: none !important; }
/* Circle — works for both new (.cat-circle) and old (first div) HTML */
.cat-circle,
.cat-card > div:first-child {
  width: 72px !important; height: 72px !important; border-radius: 50% !important;
  background: var(--primary-light) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 30px !important; border: 2.5px solid transparent !important;
  transition: all 0.22s; margin: 0 0 10px 0 !important;
  box-shadow: 0 2px 10px rgba(108,60,225,0.1) !important;
  flex-shrink: 0 !important;
}
.cat-card:hover .cat-circle,
.cat-card:hover > div:first-child { border-color: var(--primary) !important; transform: scale(1.07); box-shadow: 0 6px 20px rgba(108,60,225,0.2) !important; }
.cat-card.active .cat-circle,
.cat-card.active > div:first-child { border-color: var(--primary) !important; background: #e8dfff !important; }
.cat-card p,
.cat-card > p { font-size: 12px !important; font-weight: 600 !important; color: #374151 !important; line-height: 1.3 !important; margin: 0 !important; }

/* ── Products Grid ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
}
.product-card {
  background: var(--white);
  border-radius: 0;
  border: 1px solid #ebebeb;
  box-shadow: none;
  cursor: pointer; overflow: hidden;
  transition: transform 0.2s;
  margin: 0;
}
.loading, .empty {
  grid-column: 1/-1; text-align: center;
  padding: 60px; color: var(--text-light); font-size: 15px;
}
.card-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f9f9f9; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; opacity: 0.25; }
.in-cart-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--green); color: white;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.oos-badge {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: white;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.oos-card { pointer-events: none; }
.oos-card button { pointer-events: none; }
.product-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; z-index: 2;
}
.badge-sale { background: #ff6b35; color: white; }
.badge-new { background: var(--primary); color: white; }

.card-body { padding: 12px; }
.card-cat-tag { font-size: 10px; color: #9ca3af; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }
.card-body h3 { font-size: 13px; font-weight: 600; margin: 3px 0 2px; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-desc { font-size: 11px; color: var(--text-light); line-height: 1.5; min-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.card-rating { font-size: 11px; color: #f59e0b; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.card-rating .rating-val { font-weight: 700; color: #fff; font-size: 10px; background: #388e3c; padding: 1px 5px; border-radius: 3px; }
.card-rating .rating-count { color: #9ca3af; font-size: 10px; }
.card-rating.no-rating { color: #d1d5db; font-size: 10px; }
.discount-badge { background: #fff0eb; color: #d84315; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.card-footer { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.card-price { font-size: 15px; font-weight: 700; color: var(--text); }
.card-price-original { font-size: 12px; text-decoration: line-through; color: #9ca3af; }

.btn-add-small {
  width: 100%; padding: 8px; border: 1.5px solid var(--primary);
  background: #fff; color: var(--primary);
  border-radius: 6px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn-add-small:hover { background: var(--primary); color: white; }

.card-qty-control {
  display: flex; align-items: center; justify-content: center;
  gap: 0; border: 1.5px solid var(--green); border-radius: 6px;
  overflow: hidden; height: 36px;
}
.card-qty-control button {
  background: transparent; border: none; cursor: pointer;
  font-size: 17px; font-weight: 700; color: var(--green);
  padding: 0 11px; height: 100%; transition: background 0.15s;
  font-family: inherit;
}
.card-qty-control button:hover { background: #e8fdf0; }
.qty-input {
  width: 38px; text-align: center; border: none; outline: none;
  font-size: 14px; font-weight: 700; color: var(--text); font-family: inherit;
  border-left: 1.5px solid #d1fae5; border-right: 1.5px solid #d1fae5;
  height: 100%; background: transparent; padding: 0 4px;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }
.btn-remove-card {
  background: #fee2e2 !important; color: #991b1b !important;
  font-size: 11px !important; padding: 0 9px !important;
  border-left: 1.5px solid #fecaca !important;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal.hidden { display: none; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; background: var(--white); border-radius: 16px;
  max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
.modal-box img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 16px 16px 0 0; }
.modal-no-img { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; font-size: 64px; background: var(--bg); border-radius: 16px 16px 0 0; }
.modal-no-img.hidden { display: none; }
.modal-info { padding: 20px 24px; }
.modal-cat-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; }
.modal-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.modal-qty-price { display: flex; align-items: center; justify-content: space-between; background: #f9fafb; padding: 10px 14px; border-radius: 8px; margin-bottom: 4px; border: 1px solid var(--border); }
.modal-qty-price span:first-child { font-size: 12px; color: var(--text-light); }
.modal-price { font-size: 22px; font-weight: 800; color: var(--text); }
.modal-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.35); border: none; color: white;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.btn-add-cart {
  flex: 1; padding: 13px; border-radius: 8px;
  border: none; background: var(--primary);
  color: #fff; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Cart Drawer ─────────────────────────────────────────────── */
.cart-drawer { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: flex-end; }
.cart-drawer.hidden { display: none; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); }
.cart-box {
  position: relative; background: var(--white);
  width: 100%; max-width: 420px; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,0.15);
  overflow: hidden;
}
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  background: #fff;
}
.cart-header h2 { color: var(--text); font-size: 17px; font-weight: 700; }
.cart-header .drawer-close {
  background: #f3f4f6; border: none; color: var(--text);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-light); gap: 8px; font-size: 14px; }
.cart-items { flex: 1 1 0; overflow-y: auto; min-height: 0; }
.cart-item { display: flex; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid #f3f4f6; gap: 12px; }
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.4; }
.cart-item-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.cart-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.cart-remove { background: #fee2e2; border: none; color: #991b1b; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 11px; flex-shrink: 0; }

.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-control button { width: 28px; height: 28px; border-radius: 6px; border: 1.5px solid var(--border); background: #f9fafb; cursor: pointer; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-control button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.qty-control span { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-subtotal { font-size: 12px; font-weight: 600; color: #374151; margin-top: 3px; }

.cart-footer { flex-shrink: 0; overflow-y: auto; max-height: 62vh; padding: 14px 16px 24px; border-top: 2px solid #f3f4f6; background: #fafafa; }
.cart-footer.hidden { display: none; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.cart-total-amt { font-size: 22px; font-weight: 800; color: var(--text); }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-light); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 16px; }
.customer-form { margin: 12px 0; padding: 12px; background: white; border-radius: 8px; border: 1px solid var(--border); }
.cust-input { width: 100%; padding: 9px 12px; margin-bottom: 8px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.cust-input:focus { border-color: var(--primary); }
.cust-input:last-child { margin-bottom: 0; resize: none; }

.btn-checkout {
  width: 100%; padding: 14px; background: var(--primary); color: white; border: none;
  border-radius: 8px; font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 12px; transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-clear-cart { width: 100%; padding: 9px; margin-top: 8px; background: transparent; border: 1px solid var(--border); color: var(--text-light); border-radius: 8px; font-size: 12px; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.btn-clear-cart:hover { border-color: #ef4444; color: #ef4444; }

/* ── Copy btn ──────────────────────────────────────────────── */
.copy-btn { margin-left: auto; background: #f3f4f6; border: none; padding: 5px 12px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: inherit; transition: all 0.2s; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: #1a1a2e; color: #9ca3af; padding: 40px 20px 24px; text-align: left; }
.footer-inner { padding: 0 20px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .footer-shop-name { font-size: 20px; font-weight: 700; color: white; margin-bottom: 6px; }
.footer-brand p { font-size: 12px; line-height: 1.8; }
.footer-info { flex: 1; min-width: 160px; }
.footer-info h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-info p { font-size: 12px; line-height: 2; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; font-size: 11px; line-height: 1.7; color: #6b7280; }
.footer-bottom p + p { margin-top: 4px; }

/* Legacy single-column footer compat */
.footer-shop-name { font-size: 18px; font-weight: 700; color: white; margin-bottom: 6px; }
footer p { font-size: 13px; line-height: 2; }
.footer-note { font-size: 11px; color: #6b7280; margin-top: 4px; }
.footer-legal { margin-top: 16px; padding-top: 16px; border-top: 1px solid #374151; color: #6b7280; font-size: 11px; line-height: 1.7; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding: 0 10px; gap: 8px; height: 56px; }
  .search-wrap {
    position: static; transform: none;
    flex: 1; max-width: none; width: auto;
  }
  .search-wrap input { font-size: 13px; padding: 8px 36px 8px 10px; }
  .logo { display: none; }
  .header-brand-icon { width: 32px; height: 32px; font-size: 16px; }
  .cart-btn { padding: 8px 10px; font-size: 12px; }

  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 13px; }
  .hero-modern { min-height: 220px; padding: 36px 16px; }

  .categories-section { padding: 20px 0 0; }
  .cat-circle { width: 58px; height: 58px; font-size: 26px; margin-bottom: 7px; }
  .cat-card p { font-size: 11px; }
  .categories-marquee { gap: 16px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .product-card .card-body { padding: 10px; }
  .card-body h3 { font-size: 12px; }
  .card-price { font-size: 14px; }
  .btn-add-small { font-size: 11px; padding: 7px; }

  .products-header { flex-wrap: wrap; gap: 8px; }
  .products-header select { font-size: 12px; padding: 6px 8px; }

  .cart-box { max-width: 100%; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 94vh; }

  .footer-top { flex-direction: column; gap: 20px; }
  .footer-brand, .footer-info { text-align: left; }
  footer { padding: 28px 16px 20px; }
  .footer-bottom { font-size: 11px; }
}
