@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent-primary: #4f46e5;
  --accent-hover: #4338ca;
  --accent-secondary: #e11d48;
  --accent-gold: #d97706;
  --accent-success: #16a34a;
  --border-light: #e2e8f0;
  --border-focus: #c7d2fe;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-family: inherit; transition: all var(--transition-fast); }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }

/* === UTILITIES === */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }

.btn-primary {
  background: var(--accent-primary); color: white; padding: 12px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; box-shadow: var(--shadow-sm); transition: all var(--transition-fast);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-light);
  padding: 12px 24px; border-radius: var(--radius-full); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition-fast);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-tertiary); border-color: var(--text-muted); }

/* === HEADER === */
.glass-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.logo svg { width: 28px; height: 28px; }
.logo .name { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.03em; }
.logo .tag { font-size: 9px; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.15em; margin-top: -2px; font-weight: 600; }

.search-wrap { flex: 1; max-width: 420px; position: relative; }
.search-wrap input {
  width: 100%; padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-light); border-radius: var(--radius-full);
  font-size: 14px; background: var(--bg-secondary); color: var(--text-primary);
}
.search-wrap input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--border-focus); }
.search-wrap .sicon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.tabs { display: flex; gap: 4px; }
.tabs button {
  padding: 8px 16px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  color: var(--text-secondary); background: transparent;
}
.tabs button:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.tabs button.active { background: var(--accent-primary); color: white; }

.cart-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--text-primary); color: white;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md);
}
.cart-pill:hover { background: #000; transform: translateY(-1px); }
.cart-pill .n {
  background: var(--accent-secondary); border-radius: var(--radius-full);
  padding: 1px 7px; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
}

#trackBtn { font-size: 13px !important; padding: 8px 14px !important; }

/* === MAIN === */
main { max-width: 1400px; margin: 0 auto; padding: 0 24px 60px; min-height: 70vh; }

/* === HERO === */
.hero { padding: 48px 0 32px; text-align: center; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 42px; margin: 12px 0; color: var(--text-primary); }
.hero p { font-size: 17px; color: var(--text-secondary); margin-bottom: 20px; }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-badge {
  font-size: 13px; font-weight: 600; background: var(--bg-secondary);
  border: 1px solid var(--border-light); padding: 6px 14px; border-radius: var(--radius-full);
  color: var(--text-secondary);
}
.hero-badge b { color: var(--text-primary); }

/* === CATEGORIES === */
.category-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 16px;
  margin-bottom: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: all var(--transition-normal);
}
.cat-pill:hover { border-color: var(--text-muted); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cat-pill.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-pill.active .cat-dot { border: 2px solid rgba(255,255,255,0.6); }

/* === RESULTS BAR === */
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-count { font-weight: 600; color: var(--text-secondary); font-size: 14px; }
.sort-select {
  border: 1px solid var(--border-light); background: var(--bg-secondary);
  padding: 8px 14px; border-radius: var(--radius-full); font-size: 13px;
  font-weight: 500; color: var(--text-primary); cursor: pointer;
}

/* === PRODUCT GRID === */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: all var(--transition-normal);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-focus); }
.card .img { width: 100%; aspect-ratio: 4/3; background: var(--bg-tertiary); position: relative; overflow: hidden; cursor: pointer; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.card:hover .img img { transform: scale(1.05); }
.card .img .placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--text-muted); font-size: 13px; }
.card .cat-flag {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700;
  color: white; padding: 3px 10px; border-radius: var(--radius-full);
  letter-spacing: 0.05em; text-transform: uppercase; z-index: 2;
}
.card .stock-flag {
  position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700;
  background: var(--bg-secondary); color: var(--text-primary); padding: 3px 10px;
  border-radius: var(--radius-full); z-index: 2;
}
.card .stock-flag.low { color: var(--accent-secondary); }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body h3 {
  font-size: 16px; margin: 0; cursor: pointer; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card .body p.desc {
  font-size: 13px; color: var(--text-secondary); margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card .price { font-size: 18px; font-weight: 700; color: var(--accent-secondary); }

.stepper {
  display: flex; align-items: center; border: 1px solid var(--border-light);
  border-radius: var(--radius-full); overflow: hidden; background: var(--bg-secondary); height: 34px;
}
.stepper button {
  width: 34px; height: 100%; font-size: 16px; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.stepper button:hover:not(:disabled) { background: var(--bg-tertiary); color: var(--text-primary); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper span { width: 28px; text-align: center; font-size: 13px; font-weight: 700; }

.add-btn {
  background: var(--bg-primary); color: var(--accent-primary); border: 1px solid var(--border-focus);
  padding: 0 14px; height: 34px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
}
.add-btn:hover:not(:disabled) { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* === MODAL === */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-normal);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-secondary); border-radius: var(--radius-xl);
  max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 28px; position: relative; box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px); transition: transform var(--transition-normal);
}
.overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: var(--radius-full); background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-secondary); border: 1px solid var(--border-light); z-index: 10;
}
.modal-close:hover { background: var(--border-light); color: var(--text-primary); }

/* === PRODUCT DETAIL === */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.detail-img { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--bg-tertiary); overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb-row img {
  width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover;
  cursor: pointer; border: 2px solid transparent; opacity: 0.5; transition: all var(--transition-fast);
}
.thumb-row img.active { border-color: var(--accent-primary); opacity: 1; }
.thumb-row img:hover { opacity: 1; }
.detail-info { display: flex; flex-direction: column; gap: 12px; }
.detail-cat {
  display: inline-block; font-size: 10px; font-weight: 700; color: white;
  padding: 4px 12px; border-radius: var(--radius-full); text-transform: uppercase;
  letter-spacing: 0.05em; align-self: flex-start;
}
.detail-price { font-size: 28px; font-weight: 700; color: var(--accent-secondary); }
.tier-box {
  background: var(--bg-primary); border: 1px solid var(--border-light);
  padding: 10px 14px; border-radius: var(--radius-md); font-size: 13px;
  margin-top: 6px; display: flex; align-items: center; justify-content: space-between;
}
.tier-box b { color: var(--accent-success); font-family: var(--mono); }

/* === CART DRAWER === */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-normal);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute; top: 0; right: 0; width: 100%; max-width: 440px; height: 100%;
  background: var(--bg-secondary); display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-overlay.open .drawer { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.drawer-head h2 { font-size: 20px; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; -webkit-overflow-scrolling: touch; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--border-light); background: var(--bg-primary); flex-shrink: 0; }

.line-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.line-item img { width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; background: var(--bg-tertiary); flex-shrink: 0; }
.li-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.li-info .nm { font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-info .pr { font-size: 13px; color: var(--text-secondary); }
.li-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.li-remove { font-size: 12px; color: var(--accent-secondary); text-decoration: underline; font-weight: 500; }

.cart-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--text-secondary); }
.cart-row.discount { color: var(--accent-success); font-weight: 600; }
.cart-row.total { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-light); }
.min-warn {
  font-size: 12px; background: #fef3c7; color: #b45309; padding: 10px 14px;
  border-radius: var(--radius-md); margin: 12px 0; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.ship-note { font-size: 12px; color: var(--accent-success); font-weight: 600; margin-bottom: 12px; }

/* === CHECKOUT STEPS === */
.checkout-steps { display: flex; align-items: center; padding: 20px 24px 0; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tertiary);
  color: var(--text-secondary); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step.done .step-dot { background: var(--accent-success); color: white; }
.step.current .step-dot { background: var(--accent-primary); color: white; box-shadow: 0 0 0 3px var(--border-focus); }
.step-line { flex: 1; height: 2px; background: var(--border-light); margin: 0 6px; border-radius: 2px; }
.step-line.done { background: var(--accent-success); }

/* === FORMS === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: span 2; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); font-size: 15px; background: var(--bg-secondary);
  color: var(--text-primary);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--border-focus);
}
.field textarea { resize: vertical; min-height: 72px; }

.coupon-row { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-row input {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); font-size: 13px; text-transform: uppercase;
}
.coupon-row button {
  background: var(--bg-tertiary); padding: 0 14px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 13px; border: 1px solid var(--border-light);
}
.coupon-row button:hover { background: var(--border-light); }

/* === QR & PAYMENT === */
.qr-card {
  background: white; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; box-shadow: var(--shadow-md); margin: 20px 0;
}
.qr-card #qrcode {
  display: inline-block; padding: 12px; background: white;
  border-radius: var(--radius-md); border: 1px solid var(--border-light); margin-bottom: 12px;
}
.qr-amt { font-size: 24px; font-weight: 700; color: var(--accent-secondary); }
.upi-id { font-size: 13px; color: var(--text-secondary); font-family: var(--mono); margin-top: 4px; }

.upload-box {
  border: 2px dashed var(--border-light); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; background: var(--bg-primary); cursor: pointer;
  transition: all var(--transition-fast);
}
.upload-box:hover { border-color: var(--accent-primary); background: var(--border-focus); }
.upload-box img { max-width: 100%; max-height: 160px; border-radius: var(--radius-md); margin-top: 12px; }

.success-box { text-align: center; padding: 32px 16px; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent-success);
  color: white; font-size: 36px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.1);
}

.empty-state { text-align: center; padding: 60px 16px; color: var(--text-secondary); }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }

/* === ADMIN === */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 20px; }
.admin-sidebar { position: sticky; top: 80px; align-self: start; }
.admin-nav {
  display: flex; flex-direction: column; gap: 6px; background: var(--bg-secondary);
  padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.admin-nav button {
  padding: 10px 14px; border-radius: var(--radius-md); text-align: left;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.admin-nav button:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.admin-nav button.active { background: var(--accent-primary); color: white; }
.admin-nav .badge {
  background: white; color: var(--accent-primary); border-radius: 10px;
  padding: 1px 7px; font-size: 11px; margin-left: 6px;
}

/* Mobile admin tabs (shown < 860px) */
.admin-tabs-mobile {
  display: none; overflow-x: auto; gap: 8px; padding: 4px 0 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.admin-tabs-mobile::-webkit-scrollbar { display: none; }
.admin-tabs-mobile button {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-secondary); border: 1px solid var(--border-light);
}
.admin-tabs-mobile button.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

.panel {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 24px; margin-bottom: 24px;
}
.panel h2 { font-size: 20px; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--bg-primary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.stat-card .lbl { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .val { font-size: 28px; font-weight: 700; color: var(--accent-primary); font-family: var(--mono); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-light); }
.data-table th { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.data-table td { font-size: 14px; }

.status-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.status-badge.pending { background: #fef3c7; color: #b45309; }
.status-badge.confirmed { background: #dcfce7; color: #15803d; }
.status-badge.shipped { background: #e0e7ff; color: #3730a3; }

/* === TOAST === */
.toast-container {
  position: fixed; bottom: 80px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--text-primary); color: white; padding: 12px 20px;
  border-radius: var(--radius-lg); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); opacity: 0; pointer-events: auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { transform: translateX(0); opacity: 1; }

/* === TIMELINE === */
.timeline-card { border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; margin-top: 12px; background: var(--bg-primary); }
.timeline-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.timeline-track { display: flex; align-items: center; justify-content: space-between; position: relative; }
.timeline-track::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--border-light); z-index: 1; }
.t-step { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; position: relative; background: var(--bg-primary); padding: 0 6px; }
.t-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-secondary);
  border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
}
.t-step.active .t-dot { background: var(--accent-success); border-color: var(--accent-success); color: white; }
.t-lbl { font-size: 10px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* === FOOTER === */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 48px 24px 20px; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.footer-col h3 { font-size: 18px; margin-bottom: 12px; color: var(--text-primary); }
.footer-col p { color: var(--text-secondary); font-size: 14px; max-width: 380px; margin-bottom: 20px; }
.contact-info { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.footer-col.links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col.links button { display: block; text-align: left; padding: 6px 0; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.footer-col.links button:hover { color: var(--accent-primary); }
.footer-bottom { max-width: 1400px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border-light); text-align: center; color: var(--text-muted); font-size: 12px; }

/* === WHATSAPP === */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; background: #25D366; color: white;
  padding: 12px 18px; border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); z-index: 150; transition: all var(--transition-fast);
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); color: white; }
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }

/* === LEGAL === */
.legal-content h3 { font-size: 22px; margin-bottom: 14px; }
.legal-content p, .legal-content li { color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; line-height: 1.7; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-tabs-mobile { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; gap: 10px; }
  .logo .name { font-size: 17px; }
  .logo .tag { display: none; }
  .search-wrap { max-width: 100%; order: 10; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; }
  #trackBtn { display: none; }

  main { padding: 0 14px 60px; }
  .hero { padding: 28px 0 20px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: 11px; padding: 4px 10px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 12px; }
  .card .body h3 { font-size: 14px; }
  .card .body p.desc { font-size: 12px; -webkit-line-clamp: 1; }
  .card .price { font-size: 16px; }
  .add-btn { font-size: 11px; padding: 0 10px; height: 30px; }
  .stepper { height: 30px; }
  .stepper button { width: 30px; font-size: 14px; }
  .stepper span { width: 22px; font-size: 12px; }

  .drawer { max-width: 100%; }
  .drawer-head { padding: 16px 18px; }
  .drawer-body { padding: 16px 18px; }
  .drawer-foot { padding: 16px 18px 20px; }
  .checkout-steps { padding: 16px 18px 0; }

  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }

  .modal { padding: 20px; border-radius: var(--radius-lg); margin: 8px; }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }

  .panel { padding: 18px; border-radius: var(--radius-lg); }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .val { font-size: 22px; }
  .data-table th, .data-table td { padding: 10px 8px; font-size: 12px; }

  .site-footer { padding: 32px 14px 16px; }
  .footer-col h3 { font-size: 16px; }

  .whatsapp-float { bottom: 16px; right: 16px; padding: 12px; border-radius: 50%; }
  .whatsapp-float span { display: none; }
  .toast-container { bottom: 72px; right: 14px; left: 14px; }
  .toast { font-size: 13px; padding: 10px 16px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .cat-pill { padding: 8px 14px; font-size: 12px; }
}
