/* =====================================================
   EPRINTING — Professional E-Commerce Theme
   Deep Navy + Electric Blue + Clean White
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #F8F9FC; color: #0F172A; line-height: 1.6; }

/* ── CSS Variables ── */
:root {
  /* Primary — Deep Electric Blue */
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-hover: #1E40AF;

  /* Secondary — Deep Navy */
  --secondary:     #0F172A;
  --secondary-2:   #1E293B;
  --secondary-3:   #334155;

  /* Accent — Vibrant Orange for CTAs */
  --accent:        #F97316;
  --accent-dark:   #EA580C;
  --accent-light:  #FFF7ED;

  /* Status */
  --success:       #10B981;
  --success-light: #D1FAE5;
  --warning:       #F59E0B;
  --warning-light: #FEF3C7;
  --danger:        #EF4444;
  --danger-light:  #FEE2E2;
  --info:          #06B6D4;
  --info-light:    #CFFAFE;

  /* Neutrals */
  --bg:            #F8F9FC;
  --bg2:           #F1F5F9;
  --bg3:           #E2E8F0;
  --white:         #FFFFFF;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;

  /* Text */
  --text:          #0F172A;
  --text2:         #475569;
  --text3:         #94A3B8;
  --text4:         #CBD5E1;

  /* Radius */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow:     0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-md:  0 8px 32px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg:  0 16px 48px rgba(15,23,42,0.12), 0 8px 20px rgba(15,23,42,0.08);
  --shadow-xl:  0 24px 64px rgba(15,23,42,0.15);
  --shadow-primary: 0 8px 24px rgba(37,99,235,0.30);
  --shadow-accent:  0 8px 24px rgba(249,115,22,0.30);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }
a  { text-decoration: none; color: inherit; transition: color 0.2s; }
p  { color: var(--text2); }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-hover));
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}
.btn-primary.large { padding: 15px 36px; font-size: 1rem; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn-accent.large { padding: 15px 36px; font-size: 1rem; }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--border-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-outline.large { padding: 15px 36px; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { background: var(--bg2); color: var(--text); }
.btn-danger { background: var(--danger); color: white; padding: 8px 18px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: var(--success); color: white; padding: 8px 18px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 70px;
  box-shadow: var(--shadow-sm);
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 0.25rem; flex: 1; }
.nav-links a {
  padding: 7px 15px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: flex; align-items: center; padding: 9px; color: var(--text2); border-radius: var(--radius); transition: all 0.2s; }
.cart-btn:hover { background: var(--bg2); color: var(--primary); }
.cart-count {
  position: absolute; top: 3px; right: 3px;
  background: var(--accent); color: white;
  font-size: 9px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 5%;
  background: linear-gradient(135deg, #F8F9FC 0%, #EFF6FF 40%, #F0F9FF 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37,99,235,0.15);
}
.hero-content h1 { color: var(--secondary); }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.05rem; color: var(--text2); margin: 1.25rem 0 2rem; max-width: 480px; line-height: 1.75; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.hero-stats span { font-size: 0.8rem; color: var(--text2); margin-top: 2px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.hero-product { width: 260px; }
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
  border: 1px solid var(--border);
  color: var(--text);
}
.floating-card svg { color: var(--primary); }
.card1 { top: 8%; left: -8%; animation-delay: 0s; }
.card2 { bottom: 12%; right: -8%; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── Sections ── */
.section { padding: 5.5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text2); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── Category Cards ── */
.categories { background: white; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; }
.cat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: var(--primary-light);
}
.cat-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.cat-card h3 { margin-bottom: 4px; font-size: 0.95rem; color: var(--text); }
.cat-card p { color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.cat-more { opacity: 0.6; }
.cat-more:hover { opacity: 1; }

/* ── How It Works ── */
.how-it-works { background: var(--bg2); }
.steps { display: flex; align-items: flex-start; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 170px; max-width: 210px; text-align: center; }
.step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: var(--primary); opacity: 0.12; line-height: 1;
}
.step-icon {
  width: 64px; height: 64px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: -1.5rem auto 1rem;
  box-shadow: var(--shadow-md);
  color: var(--primary);
  border: 2px solid var(--border);
}
.step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.step p { font-size: 0.85rem; color: var(--text2); }
.step-arrow { font-size: 1.75rem; color: var(--border-dark); padding-top: 36px; }

/* ── Testimonials ── */
.testimonials { background: white; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s;
}
.review-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.stars { color: var(--warning); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 1px; }
.review-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.reviewer strong { display: block; font-size: 0.875rem; }
.reviewer span { font-size: 0.78rem; color: var(--text2); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-2) 100%);
  color: white; padding: 5.5rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(249,115,22,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; position: relative; }
.cta-banner p  { color: rgba(255,255,255,0.65); margin-bottom: 2rem; font-size: 1.05rem; position: relative; }

/* ── Footer ── */
.footer { background: var(--secondary); color: rgba(255,255,255,0.75); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer .logo { color: white; margin-bottom: 1rem; display: block; }
.footer-grid > div:first-child p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.75; margin-top: 0.5rem; }
.footer h4 { font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; color: white; text-transform: uppercase; letter-spacing: 1.5px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { font-size: 0.875rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ── Products Page ── */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-2) 100%);
  color: white; padding: 3.5rem 5%;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(37,99,235,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.page-header h1 { color: white; font-size: 2.2rem; position: relative; }
.page-header p { color: rgba(255,255,255,0.6); margin-top: 0.5rem; position: relative; }
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2.5rem 5%; max-width: 1200px; margin: 0 auto; }
.filters-panel {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); padding: 1.5rem;
  height: fit-content; position: sticky; top: 88px;
  box-shadow: var(--shadow-sm);
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 0.75rem; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; margin-bottom: 0.5rem; cursor: pointer; color: var(--text2); }
.filter-group label:hover { color: var(--primary); }
.filter-group input[type=checkbox], .filter-group input[type=radio] { accent-color: var(--primary); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.5rem; }
.product-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.25s ease; cursor: pointer;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-img { background: var(--bg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.product-info { padding: 1.25rem; }
.product-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.product-info .price { color: var(--primary); font-weight: 700; font-size: 1.1rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.product-info .old-price { color: var(--text3); text-decoration: line-through; font-size: 0.82rem; margin-left: 6px; }
.product-info .btn-primary { width: 100%; justify-content: center; margin-top: 1rem; border-radius: var(--radius); padding: 10px; font-size: 0.85rem; }

/* ── Designer ── */
.designer-layout { display: grid; grid-template-columns: 260px 1fr 280px; gap: 0; height: calc(100vh - 70px); }
.designer-sidebar { background: white; border-right: 1.5px solid var(--border); overflow-y: auto; }
.sidebar-section { padding: 1.15rem; border-bottom: 1px solid var(--border); }
.sidebar-section h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 0.75rem; font-weight: 700; }
.canvas-area { background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 1rem; gap: 1rem; overflow: auto; }
.canvas-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tool-btn {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 7px 13px;
  font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: all 0.2s; font-weight: 500; color: var(--text2);
}
.tool-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.tool-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.designer-panel { background: white; border-left: 1.5px solid var(--border); overflow-y: auto; }
.panel-section { padding: 1.15rem; border-bottom: 1px solid var(--border); }
.panel-section h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 0.75rem; font-weight: 700; }
.color-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s; }
.color-swatch:hover, .color-swatch.selected { transform: scale(1.2); border-color: var(--secondary); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary); }
.templates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.template-thumb {
  background: var(--bg); border-radius: var(--radius);
  aspect-ratio: 1; border: 2px solid transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--text2); text-align: center; padding: 8px;
  transition: all 0.2s; font-weight: 500;
}
.template-thumb:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.form-row { margin-bottom: 0.75rem; }
.form-row label { display: block; font-size: 0.78rem; color: var(--text2); margin-bottom: 4px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 8px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.85rem; font-family: 'Inter', sans-serif; background: var(--bg);
  transition: border 0.2s; color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); background: white; }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 32px; height: 32px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: white; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text2);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.qty-display { font-weight: 700; font-size: 1.1rem; min-width: 30px; text-align: center; color: var(--text); }
.total-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* ── Product Tabs (Designer) ── */
.product-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.product-tab {
  padding: 5px 11px; border-radius: var(--radius-full);
  font-size: 0.76rem; border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.2s; background: white;
  color: var(--text2); white-space: nowrap; font-weight: 500;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis;
}
.product-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.product-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.expand-btn {
  width: 100%; margin-top: 6px; padding: 6px 8px;
  background: var(--bg2); border: 1.5px dashed var(--border);
  border-radius: var(--radius); cursor: pointer; font-size: 0.74rem;
  color: var(--text2); font-family: 'Inter', sans-serif;
  transition: all 0.2s; text-align: center;
}
.expand-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ── Font picker ── */
.font-option { padding: 6px 10px; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; border: 1.5px solid transparent; transition: all 0.2s; color: var(--text2); }
.font-option:hover { background: var(--bg2); }
.font-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; text-align: center; cursor: pointer; transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone input { display: none; }
.layer-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius); font-size: 0.8rem; cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s; }
.layer-item:hover { background: var(--bg2); }
.layer-item.selected { border-color: var(--primary); background: var(--primary-light); }
input[type=range] { width: 100%; accent-color: var(--primary); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-val { font-size: 0.78rem; color: var(--text2); min-width: 35px; text-align: right; font-weight: 600; }
.sidebar-tabs { display: flex; border-bottom: 1px solid var(--border); }
.sidebar-tab { flex: 1; padding: 10px; text-align: center; font-size: 0.8rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text2); font-weight: 500; transition: all 0.2s; }
.sidebar-tab.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 600; }
.sidebar-tab-content { display: none; }
.sidebar-tab-content.active { display: block; }

/* ── Cart & Checkout ── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.cart-items { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { background: var(--bg); border-radius: var(--radius); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.8rem; color: var(--text2); }
.order-summary { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); padding: 1.5rem; height: fit-content; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text2); }
.summary-row.total { font-weight: 700; font-size: 1.05rem; border-bottom: none; color: var(--text); }

/* ── Payment ── */
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.method-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.15rem; border: 2px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s;
  background: white;
}
.method-tab:hover { border-color: var(--primary); background: var(--primary-light); }
.method-tab.active { border-color: var(--primary); background: var(--primary-light); }
.payment-form { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.receipt-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg);
}
.receipt-dropzone:hover, .receipt-dropzone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.drop-content p { margin: 0; }
.receipt-preview { display: flex; flex-direction: column; align-items: center; }
.remove-receipt-btn { background: none; border: 1.5px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: 3px 10px; cursor: pointer; font-size: 0.78rem; margin-top: 8px; font-family: 'Inter', sans-serif; }
.badge-pending { color: var(--warning); font-weight: 600; }
.badge-ready   { color: var(--success); font-weight: 600; }

/* ── Checkout stepper ── */
.step-indicator { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.si-num {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--text2);
  transition: all 0.3s; background: white;
}
.step-indicator span { font-size: 0.72rem; color: var(--text2); transition: all 0.3s; }
.step-indicator.active .si-num { background: var(--primary); border-color: var(--primary); color: white; }
.step-indicator.active span { color: var(--primary); font-weight: 600; }
.step-indicator.done .si-num { background: var(--success); border-color: var(--success); color: white; }
.step-indicator.done .si-num::after { content:'✓'; }
.si-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; margin-bottom: 20px; transition: background 0.3s; }
.checkout-step { display: none; }
.checkout-step.active { display: block; }

/* ── Order Tracking ── */
.track-page { max-width: 800px; margin: 0 auto; padding: 3.5rem 5%; }
.track-search {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); padding: 2rem;
  margin-bottom: 2rem; box-shadow: var(--shadow-sm);
}
.track-input-row { display: flex; gap: 1rem; }
.track-input-row input {
  flex: 1; padding: 13px 18px;
  border: 2px solid var(--border); border-radius: var(--radius-full);
  font-size: 0.95rem; font-family: 'Inter', sans-serif; transition: border 0.2s;
}
.track-input-row input:focus { outline: none; border-color: var(--primary); }
.order-result { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.order-result-header { background: linear-gradient(135deg, var(--secondary), var(--secondary-2)); color: white; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.order-result-header h3 { color: white; }
.status-badge { padding: 5px 14px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3px; }
.status-processing { background: var(--warning);   color: white; }
.status-printing   { background: var(--primary);   color: white; }
.status-packaging  { background: #8B5CF6;           color: white; }
.status-shipped    { background: var(--info);       color: white; }
.status-delivered  { background: var(--success);    color: white; }
.tracking-timeline { padding: 2rem; }
.timeline-step { display: flex; gap: 1rem; margin-bottom: 0; }
.timeline-step:last-child .tl-line { display: none; }
.tl-dot-wrap { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--border); background: white; flex-shrink: 0; transition: all 0.3s; }
.tl-dot.done   { background: var(--success); border-color: var(--success); }
.tl-dot.active { background: var(--primary); border-color: var(--primary); animation: pulse 1.5s infinite; }
.tl-line { width: 2px; flex: 1; background: var(--border); min-height: 40px; margin: 4px 0; }
.tl-line.done { background: var(--success); }
.tl-content { padding-bottom: 2rem; flex: 1; }
.tl-content h4 { font-size: 0.9rem; margin-bottom: 2px; }
.tl-content p { font-size: 0.8rem; color: var(--text2); }
.tl-content .tl-time { font-size: 0.72rem; color: var(--text3); margin-top: 2px; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,0.4)} 50%{box-shadow:0 0 0 6px rgba(37,99,235,0)} }
.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.order-detail-item { background: white; padding: 1.25rem 2rem; }
.order-detail-item label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); font-weight: 700; }
.order-detail-item p { font-weight: 600; margin-top: 4px; }

/* ── Admin Dashboard ── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.admin-sidebar { background: var(--secondary); color: white; padding: 1.5rem 0; }
.admin-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 1.5rem; font-size: 0.875rem;
  color: rgba(255,255,255,0.55); transition: all 0.2s;
  font-weight: 500; border-right: 3px solid transparent;
}
.admin-menu a:hover { color: white; background: rgba(255,255,255,0.07); }
.admin-menu a.active { color: white; background: rgba(37,99,235,0.25); border-right-color: var(--primary); }
.admin-menu a svg { width: 17px; height: 17px; flex-shrink: 0; }
.admin-menu .menu-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.25); padding: 1rem 1.5rem 0.4rem; font-weight: 700; }
.admin-content { background: var(--bg); padding: 2rem; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.25s; }
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text3); margin-bottom: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card .stat-change { font-size: 0.78rem; margin-top: 4px; font-weight: 600; }
.stat-card .stat-change.up   { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }
.admin-table-card { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.table-header h3 { font-size: 0.95rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--bg); padding: 10px 16px; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); border-bottom: 1px solid var(--border); font-weight: 700; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px; }
.notification-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; margin-left: 6px; }

/* ── Admin Charts ── */
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 10px; }
.chart-bar { flex: 1; background: linear-gradient(to top, var(--primary-dark), var(--primary)); border-radius: 4px 4px 0 0; position: relative; transition: height 0.6s ease; min-width: 20px; }
.chart-bar:hover { background: linear-gradient(to top, var(--primary-hover), var(--primary-dark)); }
.chart-bar .bar-label { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; color: var(--text2); white-space: nowrap; }
.chart-bar .bar-val { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; white-space: nowrap; color: var(--primary); }

/* ── Auth Pages ── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-2) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem; color: white; position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.auth-left h2 { color: white; margin-bottom: 1rem; position: relative; }
.auth-left p  { color: rgba(255,255,255,0.6); line-height: 1.75; position: relative; }
.auth-right { display: flex; flex-direction: column; justify-content: center; padding: 4rem; max-width: 480px; margin: auto; width: 100%; }
.auth-form h2 { margin-bottom: 0.4rem; }
.auth-form .subtitle { color: var(--text2); margin-bottom: 2rem; font-size: 0.9rem; }
.auth-form .subtitle a { color: var(--primary); font-weight: 600; }
.input-group { margin-bottom: 1.15rem; }
.input-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.input-group input, .input-group select {
  width: 100%; padding: 11px 15px;
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  transition: border 0.2s; background: white; color: var(--text);
}
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.input-group .hint { font-size: 0.78rem; color: var(--text3); margin-top: 4px; }
.auth-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: var(--radius-lg);
  font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 0.5rem;
  transition: all 0.25s; font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-hover)); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.auth-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text2); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.78rem; color: var(--text3); }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-xl); padding: 2rem;
  max-width: 520px; width: 90%;
  transform: scale(0.92) translateY(10px); transition: transform 0.25s;
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: var(--bg2); border: none; font-size: 1.1rem; cursor: pointer; color: var(--text2); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--secondary); color: white;
  padding: 0.9rem 1.4rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); z-index: 999;
  transform: translateY(100px) scale(0.9); opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  font-size: 0.875rem; font-weight: 500; max-width: 320px;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ── Badges ── */
.verified-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--success-light); color: var(--success); border-radius: var(--radius-full); padding: 3px 10px; font-size: 0.78rem; font-weight: 700; }

/* ── Cards ── */
.card { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow-sm); }

/* ── Animations ── */
@keyframes popIn { 0%{transform:scale(0.5);opacity:0} 70%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
@keyframes spin   { to { transform: rotate(360deg); } }

/* ── Utilities ── */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent);  }
.text-muted   { color: var(--text2);   }
.text-center  { text-align: center;    }
.mb-1 { margin-bottom: 0.5rem; }  .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }      .mt-3 { margin-top: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.hidden { display: none !important; }
.page-container { max-width: 1200px; margin: 0 auto; padding: 3rem 5%; }
.breadcrumb { font-size: 0.82rem; color: var(--text2); margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .designer-layout { grid-template-columns: 220px 1fr 240px; }
  .admin-layout    { grid-template-columns: 200px 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: block; }
  .hero { grid-template-columns: 1fr; padding: 2rem 5%; }
  .hero-visual { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .products-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .designer-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .cart-layout { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .order-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Comprehensive Fixes
   ══════════════════════════════════════════════════════ */

/* ── General mobile fixes ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 4%; height: 62px; gap: 1rem; }
  .logo { font-size: 1.3rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-actions .btn-outline { display: none; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding: 2.5rem 4%; min-height: auto; gap: 2rem; }
  .hero-visual { display: none; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; gap: 0.75rem; }
  .hero-btns a { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.3rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.5rem; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cat-icon { width: 56px; height: 56px; }
  .cat-card { padding: 1.25rem 1rem; }

  /* Steps */
  .steps { flex-direction: column; align-items: center; gap: 2rem; }
  .step-arrow { display: none; }
  .step { max-width: 100%; min-width: unset; width: 100%; }

  /* Products Page */
  .page-header { padding: 2.5rem 4%; }
  .page-header h1 { font-size: 1.75rem; }
  .products-layout { grid-template-columns: 1fr; padding: 1.5rem 4%; gap: 1.5rem; }
  .filters-panel { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 1.25rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1.1rem; }
  .stat-card .stat-num { font-size: 1.5rem; }
  .admin-table-card { overflow-x: auto; }
  .admin-table { min-width: 600px; }

  /* Auth */
  .auth-page { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.5rem; max-width: 100%; }

  /* Track Order */
  .track-page { padding: 2rem 4%; }
  .track-input-row { flex-direction: column; gap: 0.75rem; }
  .track-input-row input { width: 100%; }
  .order-details-grid { grid-template-columns: 1fr; }
  .tracking-timeline { padding: 1.25rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-badges { justify-content: center; flex-wrap: wrap; }

  /* Designer */
  .designer-layout { grid-template-columns: 1fr !important; height: auto; }
  .designer-sidebar, .designer-panel { width: 100%; border: none; border-bottom: 1px solid var(--border); }
  .canvas-area { padding: 1rem; }

  /* Modals */
  .modal { padding: 1.5rem; border-radius: var(--radius-lg); margin: 1rem; max-height: 90vh; overflow-y: auto; }
}

/* ── Small phone fixes (< 480px) ── */
@media (max-width: 480px) {
  /* Navbar */
  .navbar { padding: 0 3.5%; height: 58px; }
  .logo { font-size: 1.2rem; }

  /* Hero */
  .hero { padding: 2rem 3.5%; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-stats { gap: 1rem; }

  /* Categories — 2 column on small phones */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat-card { padding: 1rem 0.75rem; }
  .cat-icon { width: 50px; height: 50px; }
  .cat-card h3 { font-size: 0.85rem; }
  .cat-card p  { font-size: 0.75rem; }

  /* Products — single column on very small */
  .products-grid { grid-template-columns: 1fr; }

  /* Stats — single column */
  .stats-row { grid-template-columns: 1fr 1fr; }

  /* Buttons */
  .btn-primary.large, .btn-outline.large, .btn-accent.large { padding: 13px 24px; font-size: 0.9rem; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Section */
  .section { padding: 2.75rem 0; }
  .container { padding: 0 3.5%; }

  /* Page header */
  .page-header { padding: 2rem 3.5%; }
  .page-header h1 { font-size: 1.5rem; }

  /* Track order details */
  .order-result-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Auth */
  .auth-right { padding: 1.5rem 1.25rem; }

  /* Admin stats — full width on tiny screens */
  .stats-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }

  /* Toast */
  .toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: unset; }
}

/* ── Hamburger Menu (mobile nav) ── */
.mobile-nav-open .nav-links {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: white;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  gap: 0.25rem;
}
.mobile-nav-open .nav-links a {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-nav-open .nav-links a:hover { background: var(--primary-light); }

/* ── Hamburger button ── */
.hamburger {
  display: none;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
@media (max-width: 768px) {
  .hamburger { display: flex; }
}

/* ── Mobile nav overlay ── */
@media (max-width: 768px) {
  .mobile-nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: white;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 98;
    gap: 0.2rem;
    animation: slideDown 0.2s ease;
  }
  @keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
  .mobile-nav-open .nav-links a {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    display: block;
  }
  .mobile-nav-open .nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
  }
  /* Show auth buttons in mobile nav too */
  .mobile-nav-open::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.3);
    z-index: 97;
    pointer-events: none;
  }
}

/* ── vh fix for mobile ── */
.hero { min-height: calc(var(--vh, 1vh) * 100 - 70px); }
@media (max-width: 768px) {
  .hero { min-height: auto; }
}

/* ── Touch improvements ── */
@media (hover: none) {
  .cat-card:hover,
  .product-card:hover,
  .review-card:hover { transform: none; }
  .btn-primary:hover,
  .btn-accent:hover,
  .btn-outline:hover { transform: none; box-shadow: none; }
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
