/* ==================== ADI MULTI TRADERS - ECOMMERCE CSS ==================== */

:root {
  /* Brand */
  --brand: #f97316;
  --brand-2: #ef4444;
  --brand-3: #ec4899;
  --brand-grad: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
  --brand-soft: #fff7ed;
  --brand-dark: #c2410c;

  /* Neutral */
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --bg-soft: #f5f5f4;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  /* Text */
  --text: #1c1917;
  --text-mid: #57534e;
  --text-light: #78716c;
  --text-muted: #a8a29e;

  /* Status */
  --success: #16a34a;
  --success-soft: #dcfce7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --info: #0ea5e9;
  --info-soft: #e0f2fe;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* mobile bottom nav clearance */
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 769px) {
  .container { padding: 0 24px; }
}

/* ==================== HEADER ==================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Top utility bar (desktop only) */
.utility-bar {
  background: linear-gradient(90deg, #1c1917, #292524);
  color: #fafaf9;
  font-size: 12px;
  display: none;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.utility-bar a { color: #fafaf9; opacity: 0.85; }
.utility-bar a:hover { opacity: 1; color: var(--brand); }
.util-left, .util-right { display: flex; gap: 18px; align-items: center; }
.util-right { gap: 14px; }

@media (min-width: 769px) {
  .utility-bar { display: block; }
}

/* Main header row */
.header-main {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  width: 38px; height: 38px;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(249,115,22,0.3);
}
.brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.brand-text p {
  font-size: 10.5px;
  color: var(--text-light);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 768px) {
  .brand-text h1 { font-size: 15px; }
  .brand-text p { display: none; }
  .brand-logo { width: 34px; height: 34px; font-size: 16px; }
}

/* Search bar */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 40px;
  padding: 0 12px;
  gap: 8px;
  transition: all .2s;
}
.search-bar:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .ico { color: var(--text-light); flex-shrink: 0; }

@media (max-width: 768px) {
  .search-bar { display: none; }
}

/* Header actions */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hdr-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-mid);
  position: relative;
  text-decoration: none;
  font-family: inherit;
}
.hdr-action:hover { background: var(--bg-soft); color: var(--text); }
.hdr-action .lbl {
  font-size: 11px;
  font-weight: 600;
}
.hdr-action .badge-count {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--brand-2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* MPanel button - special styling */
.mpanel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--brand-grad);
  color: #fff !important;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(249,115,22,0.3);
  transition: all .2s;
  position: relative;
  border: none;
  font-family: inherit;
}
.mpanel-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(249,115,22,0.4); }
.mpanel-btn .pulse {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 768px) {
  .hdr-action .lbl { display: none; }
  .mpanel-btn { padding: 7px 10px; font-size: 12px; }
  .mpanel-btn .lbl-full { display: none; }
}

/* Categories nav (desktop only) */
.cat-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: none;
}
.cat-nav .container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-nav a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: 8px;
  white-space: nowrap;
  transition: all .15s;
}
.cat-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.cat-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
.cat-nav a.cn-deals { color: var(--brand-2); font-weight: 700; }

@media (min-width: 769px) {
  .cat-nav { display: block; }
}

/* Mobile menu toggle */
.menu-toggle-mob {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
}
@media (min-width: 769px) {
  .menu-toggle-mob { display: none; }
}

/* Mobile search row */
.mob-search-row {
  padding: 8px 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.mob-search-row .search-bar { display: flex; height: 38px; }
@media (min-width: 769px) {
  .mob-search-row { display: none; }
}

/* Location pill */
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-mid);
  font-weight: 600;
}

/* ==================== MOBILE BOTTOM NAV ==================== */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 40;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0 8px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  text-decoration: none;
}
.bottom-nav a.active {
  color: var(--brand);
}
.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--brand-grad);
  border-radius: 0 0 3px 3px;
}
.bottom-nav .badge-count {
  position: absolute;
  top: 4px;
  right: 50%;
  margin-right: -16px;
  background: var(--brand-2);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}

/* ==================== HOMEPAGE COMPONENTS ==================== */

/* Hero Banner */
.hero {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fecaca 100%);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 28px 24px;
  gap: 16px;
  min-height: 200px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.8);
  width: fit-content;
}
.hero h2 {
  font-size: 24px;
  font-weight: 800;
  color: #422006;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.hero p {
  color: #78350f;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero .cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-img {
  font-size: 100px;
  text-align: center;
  filter: drop-shadow(0 8px 16px rgba(180,83,9,0.2));
}

@media (min-width: 769px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    padding: 48px 56px;
    min-height: 320px;
    gap: 24px;
  }
  .hero h2 { font-size: 38px; }
  .hero p { font-size: 16px; max-width: 480px; }
  .hero-img { font-size: 180px; }
}

/* Section title */
.section {
  margin-top: 32px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-head h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h3 .emoji { font-size: 22px; }
.section-head a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 769px) {
  .section { margin-top: 48px; }
  .section-head h3 { font-size: 22px; }
}

/* Category quick grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.cat-tile .ic {
  font-size: 32px;
  margin-bottom: 6px;
}
.cat-tile .nm {
  font-size: 12px;
  font-weight: 700;
  display: block;
}
.cat-tile .ct {
  font-size: 10.5px;
  color: var(--text-light);
  font-weight: 500;
}

@media (min-width: 769px) {
  .cat-grid { grid-template-columns: repeat(8, 1fr); gap: 14px; }
  .cat-tile { padding: 18px 10px; }
  .cat-tile .ic { font-size: 38px; margin-bottom: 8px; }
  .cat-tile .nm { font-size: 13px; }
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.product-img-box {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  display: grid;
  place-items: center;
  font-size: 64px;
  position: relative;
}
.product-card .wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-light);
  backdrop-filter: blur(6px);
  transition: all .2s;
  z-index: 2;
}
.product-card .wishlist-btn:hover { color: var(--brand-2); transform: scale(1.1); }
.product-card .wishlist-btn.active { color: var(--brand-2); background: #fff; }

.product-card .badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
}
.product-card .badge-bv {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(28,25,23,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  backdrop-filter: blur(6px);
}

.product-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-cat {
  font-size: 10.5px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-mid);
}
.product-rating .stars {
  background: #16a34a;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-price .current {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.product-price .mrp {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: 'JetBrains Mono', monospace;
}
.product-price .save {
  font-size: 11px;
  color: var(--success);
  font-weight: 700;
}
.product-card .add-btn {
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  transition: all .15s;
}
.product-card .add-btn:hover { background: var(--brand-dark); }
.product-card .add-btn.in-cart {
  background: var(--success-soft);
  color: var(--success);
}

@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Banner strip / Why us */
.benefits-strip {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border: 1px solid var(--border);
}
.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.benefit .ic {
  width: 38px; height: 38px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.benefit .tx { font-size: 12px; line-height: 1.3; }
.benefit .tx strong { font-size: 13px; display: block; }
.benefit .tx span { color: var(--text-light); font-size: 11px; }

@media (min-width: 769px) {
  .benefits-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 22px 28px;
  }
  .benefit .ic { width: 46px; height: 46px; font-size: 22px; }
  .benefit .tx strong { font-size: 14px; }
  .benefit .tx span { font-size: 12px; }
}

/* MLM banner */
.mlm-cta {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mlm-cta::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(249,115,22,0.4), transparent);
  border-radius: 50%;
}
.mlm-cta::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(236,72,153,0.3), transparent);
  border-radius: 50%;
}
.mlm-cta-content { position: relative; z-index: 2; max-width: 580px; }
.mlm-cta h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.mlm-cta h3 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mlm-cta p {
  color: #d6d3d1;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.mlm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.mlm-stat {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.mlm-stat .num {
  font-size: 18px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mlm-stat .lb {
  font-size: 10px;
  color: #a8a29e;
  margin-top: 2px;
  font-weight: 600;
}

@media (min-width: 769px) {
  .mlm-cta { padding: 44px 56px; }
  .mlm-cta h3 { font-size: 32px; }
  .mlm-cta p { font-size: 15px; }
  .mlm-stat .num { font-size: 24px; }
  .mlm-stat .lb { font-size: 12px; }
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,0.4); }
.btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-light:hover { background: var(--bg-soft); border-color: var(--text-light); }
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ==================== FORMS ==================== */

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-mid);
}
.form-label .req { color: var(--brand-2); }
.form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: all .15s;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

/* ==================== PAGES ==================== */

/* Page header (non-home) */
.page-banner {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.page-banner h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.page-banner .crumbs {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.page-banner .crumbs a { color: var(--brand); font-weight: 600; }

@media (min-width: 769px) {
  .page-banner { padding: 24px 0; }
  .page-banner h1 { font-size: 26px; }
  .page-banner .crumbs { font-size: 13px; }
}

/* Catalog layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
}
.filter-sidebar h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filter-block { margin-bottom: 18px; }
.filter-block:last-child { margin-bottom: 0; }
.filter-block .label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-mid);
}
.filter-block input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.filter-block .ct {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-light);
}

@media (min-width: 900px) {
  .catalog-layout { grid-template-columns: 240px 1fr; gap: 24px; margin-top: 24px; }
  .filter-sidebar { padding: 20px; }
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 16px;
}
.pd-gallery .main-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 140px;
  margin-bottom: 10px;
}
.pd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.pd-thumb {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 28px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--brand); }

.pd-info h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.pd-info .pd-cat {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.pd-stars {
  background: #16a34a;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pd-price .current {
  font-size: 28px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.pd-price .mrp {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: 'JetBrains Mono', monospace;
}
.pd-price .save {
  background: var(--success-soft);
  color: var(--success);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}
.pd-bv-row {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
.pd-bv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1fr 1fr; padding: 28px; gap: 36px; margin-top: 24px; }
  .pd-info h1 { font-size: 26px; }
  .pd-price .current { font-size: 34px; }
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
.cart-items {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.cart-item .nm {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.cart-item .meta {
  font-size: 11.5px;
  color: var(--text-light);
}
.cart-item .pr {
  font-size: 14px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.qty-stepper button {
  width: 28px; height: 28px;
  background: #fff;
  border: none;
  font-size: 16px;
  color: var(--text-mid);
}
.qty-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.qty-stepper .qty {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 28px;
  display: grid;
  place-items: center;
}

.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  position: sticky;
  top: 80px;
  height: fit-content;
}
.cart-summary h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 16px;
}

@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1fr 340px; gap: 24px; margin-top: 24px; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.empty-state .em {
  font-size: 64px;
  margin-bottom: 14px;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--text-light);
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* Account dashboard */
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
.account-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.account-avatar {
  width: 50px; height: 50px;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
}
.account-user .nm { font-weight: 700; font-size: 14px; }
.account-user .em { font-size: 11.5px; color: var(--text-light); }

.account-menu { display: flex; flex-direction: column; gap: 2px; }
.account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--text-mid);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.account-menu a:hover { background: var(--bg-soft); color: var(--text); }
.account-menu a.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.account-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

@media (min-width: 900px) {
  .account-grid { grid-template-columns: 260px 1fr; gap: 24px; margin-top: 24px; }
  .account-content { padding: 24px; }
}

/* MPanel access card on account page */
.mpanel-access {
  background: linear-gradient(135deg, #1c1917 0%, #422006 100%);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.mpanel-access::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(249,115,22,0.5), transparent);
  border-radius: 50%;
}
.mpanel-access .ma-content { position: relative; z-index: 2; }
.mpanel-access .ma-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(249,115,22,0.2);
  color: #fdba74;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  border: 1px solid rgba(249,115,22,0.3);
}
.mpanel-access h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.mpanel-access p {
  color: #d6d3d1;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.mpanel-access .ma-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mpanel-access .ma-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.mpanel-access .ma-stat .v {
  font-size: 16px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fdba74;
}
.mpanel-access .ma-stat .l {
  font-size: 10px;
  color: #a8a29e;
  margin-top: 2px;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: #92400e; }
.badge-info { background: var(--info-soft); color: #075985; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* Tables (orders etc) */
.tbl-simple {
  width: 100%;
  border-collapse: collapse;
}
.tbl-simple th, .tbl-simple td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tbl-simple th {
  background: var(--bg-soft);
  color: var(--text-light);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fce7f3 100%);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  text-align: center;
}
.auth-card .sub {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 22px;
}
.auth-card .switch {
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
  color: var(--text-mid);
}
.auth-card .switch a { color: var(--brand); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--text);
  color: #d6d3d1;
  margin-top: 50px;
  padding: 36px 0 20px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.site-footer h5 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.site-footer ul a { font-size: 13px; color: #a8a29e; }
.site-footer ul a:hover { color: var(--brand); }
.site-footer .copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #44403c;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 769px) {
  .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* utilities */
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }

.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
