﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --bg: #eef2ff;
  --bg-soft: #f5f8ff;
  --surface: rgba(255, 255, 255, 0.9);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --brand-ink: #7c2d12;
  --danger: #ef4444;
  --ok: #16a34a;
  --line: #e2e8f0;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 90% -20%, #dbeafe, transparent 55%),
    radial-gradient(800px 320px at 0% 0%, #fff7ed, transparent 50%),
    var(--bg);
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(120deg, #111827, #1e293b);
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  position: relative;
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 160px 1fr auto auto;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 14px;
}

.brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .3px;
  text-decoration: none;
}

.search-wrap { min-width: 0; }
.search-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  outline: none;
}
.search-input::placeholder { color: #cbd5e1; }

.quick-suggestions {
  position: absolute;
  z-index: 70;
  left: 190px;
  top: 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  width: min(480px, calc(100vw - 280px));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--shadow);
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  background: transparent;
}
.cart-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.cart-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .35);
}
.cart-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.drawer-count {
  color: #111827;
}
.link-button {
  border: 0;
  color: #fff;
  background: transparent;
  padding: 0;
}

.content {
  max-width: 1240px;
  margin: 18px auto;
  padding: 0 14px;
}

h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; }
p { margin: 0 0 10px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-dark);
  font-size: .74rem;
  font-weight: 700;
}

.muted { color: var(--text-muted); }

.hero-market {
  background: linear-gradient(135deg, #0f172a, #334155 40%, #1d4ed8);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.hero-market::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%);
}

.hero-copy p { color: #e2e8f0; max-width: 65ch; }
.hero-copy h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  transition: transform .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, #facc15, #f59e0b);
  color: #111827;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost.dark {
  background: #fff;
  color: #0f172a;
  border-color: var(--line);
}
.btn.small {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .85rem;
}

.text-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.like-link { border: 0; background: transparent; font-size: 1.2rem; }

.hero-kpi {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.hero-kpi span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  margin-bottom: 4px;
}

.home-shell {
  display: grid;
  gap: 14px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.section-header .text-link {
  color: #1d4ed8;
}

.grid {
  display: grid;
  gap: 12px;
}
.categories { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.products {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); }

.category-link {
  text-decoration: none;
  color: var(--text-main);
}
.category-link:hover { border-color: #fbbf24; }

.product-card {
  display: grid;
  gap: 8px;
  animation: fadeIn .45s ease;
}
.product-card.compact { padding: 8px; }
.product-card h4 { font-size: .96rem; }
.product-card .product-link { display: block; }
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}
.product-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.product-image.large { aspect-ratio: 16 / 12; }
.placeholder.large { aspect-ratio: 16 / 10; }

.price-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-line strong { font-size: 1rem; }

.badge {
  display: inline-flex;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.banner-carousel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(250, 204, 21, .46), transparent 26%),
    radial-gradient(circle at 18% 80%, rgba(56, 189, 248, .28), transparent 28%),
    linear-gradient(110deg, #0f172a 0%, #1e3a8a 54%, #92400e 100%);
  opacity: 0;
  pointer-events: none;
  padding: clamp(18px, 3vw, 34px);
  transition: opacity .3s ease;
}
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  opacity: .45;
}
.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.banner-copy,
.banner-visual {
  position: relative;
  z-index: 1;
}
.banner-copy {
  max-width: 620px;
}
.banner-copy .eyebrow {
  color: #fde68a;
}
.banner-copy h3 {
  font-size: clamp(1.65rem, 4vw, 3rem);
  letter-spacing: -.04em;
}
.banner-copy p {
  color: #e0f2fe;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  max-width: 48ch;
}
.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #fb923c);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(251, 146, 60, .32);
}
.banner-cta::after {
  content: '\\2192';
}
.banner-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
}
.banner-visual img {
  width: min(420px, 100%);
  height: 210px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .45);
  transform: rotate(2deg);
}
.banner-fallback-art {
  position: relative;
  width: min(360px, 82%);
  aspect-ratio: 1.4 / 1;
}
.banner-fallback-art span {
  position: absolute;
  border-radius: 28px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .34);
  backdrop-filter: blur(10px);
}
.banner-fallback-art span:nth-child(1) {
  inset: 8% 12% 18% 8%;
  transform: rotate(-6deg);
}
.banner-fallback-art span:nth-child(2) {
  inset: 24% 0 0 28%;
  background: rgba(250, 204, 21, .32);
  transform: rotate(8deg);
}
.banner-fallback-art span:nth-child(3) {
  width: 74px;
  height: 74px;
  right: 7%;
  top: 2%;
  border-radius: 999px;
  background: rgba(56, 189, 248, .28);
}
.banner-dots {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
}
.dot.is-active { background: #0f172a; }

.skeleton {
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 800px 100%;
  animation: shimmer 1.1s infinite;
}

.empty-state {
  padding: 28px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: center;
}

.error { color: var(--danger); }
.success { color: var(--ok); }

.catalog-filters {
  margin-bottom: 18px;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.catalog-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.catalog-title-wrap h1 {
  margin: 0;
  line-height: 1;
}

.catalog-title-wrap .muted {
  margin-top: 10px;
  max-width: 720px;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.catalog-search-input {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0 18px;
  outline: none;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .03);
}

.catalog-search-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.catalog-search-actions,
.catalog-view-actions,
.segmented-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-view-actions {
  color: var(--text-muted);
  font-weight: 800;
}

.segmented-control {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.search-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search-quick .search-input { min-width: 250px; }
.filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr auto;
  align-items: end;
}
.filter-grid label, .search-quick label {
  display: grid;
  gap: 6px;
  font-size: .9rem;
}
.filter-grid input,
.filter-grid select,
.form-card input,
.form-card textarea,
.form-card select,
.form-card input[type="password"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  min-height: 40px;
  outline: none;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.filter-grid select,
.search-quick .search-input {
  background: #fff;
}
.search-quick .admin-search-input {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
}
.admin-search-input {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 40px;
}
.search-quick .admin-search-input::placeholder {
  color: var(--text-muted);
}
.admin-search-input::placeholder {
  color: var(--text-muted);
}
.checkbox-inline,
.view-switch { display: flex; align-items: center; gap: 8px; }
.view-switch { gap: 6px; flex-wrap: wrap; }

.availability-toggle {
  min-height: 62px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

.availability-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.stock-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .8rem;
  font-weight: 700;
}
.stock-chip.in-stock { background: #dcfce7; color: #166534; }
.stock-chip.out-stock { background: #fee2e2; color: #991b1b; }

.catalog-toolbar { margin-bottom: 10px; }

.catalog-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-summary {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.45;
  margin: 8px 0 12px;
}

.product-long-description {
  color: var(--text);
  line-height: 1.7;
  white-space: normal;
}

.image-preview-card {
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}
.image-preview-card img,
.admin-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}
.admin-thumb {
  width: 72px;
  height: 72px;
}

.catalog-list .product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
}

.pager {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.pager-meta { color: var(--text-muted); }

.product-detail {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.45fr) 1fr;
}
.breadcrumb { color: var(--text-muted); margin-bottom: 10px; }

.detail-gallery img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.thumbs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.thumb {
  width: 78px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumb.active { border-color: #0f172a; }
.cart-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.qty-box { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-box .btn { border-radius: 0; min-height: 36px; }
.qty-box input {
  width: 72px;
  border: 0;
  text-align: center;
  padding: 0;
}
.inline-box,
.success-card,
.auth-card,
.section-grid,
.cart-summary-box,
.form-card {
  border-radius: 14px;
}

.stock-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.stock-list li {
  display: flex;
  justify-content: space-between;
  border: 1px dashed var(--line);
  padding: 8px;
  border-radius: 10px;
}

.cart-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 320px;
}
.cart-hero,
.checkout-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, .92), rgba(30, 64, 175, .78)),
    radial-gradient(380px 160px at 92% 10%, rgba(250, 204, 21, .42), transparent 60%);
  color: #fff;
  box-shadow: var(--shadow);
}
.cart-hero .muted,
.checkout-hero .muted { color: #dbeafe; }
.cart-hero .eyebrow,
.checkout-hero .eyebrow { color: #fde68a; }
.cart-lines-card { overflow-x: auto; }
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.cart-table th,
.cart-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.cart-qty input {
  width: 76px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.cart-product-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 260px;
}

.cart-line-actions {
  margin-top: 8px;
}

.danger-link {
  color: var(--danger);
  font-weight: 800;
}

.danger-outline {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff5f5;
}

.danger-outline:hover {
  background: #fee2e2;
}

.cart-product-cell img,
.cart-product-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.cart-product-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #64748b;
  font-weight: 800;
  font-size: .8rem;
}

.cart-summary-box { height: max-content; display: grid; gap: 10px; }
.premium-summary {
  position: sticky;
  top: 86px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #facc15, #2563eb) border-box;
  border: 1px solid transparent;
}
.summary-row {
  display: flex;
  justify-content: space-between;
}
.summary-row.total { font-size: 1.1rem; padding-top: 6px; border-top: 1px solid var(--line); }

.checkout-actions { display: grid; gap: 10px; }
.section-grid { display: grid; gap: 14px; grid-template-columns: 1fr 320px; }
.checkout-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}
.checkout-form {
  padding: 18px;
}
.checkout-summary-stack {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 86px;
}
.checkout-summary-card,
.sap-readiness-card {
  background: rgba(255, 255, 255, .94);
}
.checkout-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.step {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  color: #dbeafe;
  padding: 7px 10px;
  font-weight: 800;
  font-size: .82rem;
}
.step.is-done {
  background: rgba(22, 163, 74, .22);
  color: #dcfce7;
}
.step.is-active {
  background: #facc15;
  color: #111827;
  border-color: #facc15;
}
.form-grid {
  display: grid;
  gap: 10px;
}
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .9rem;
}
.checkout-hint.compact {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}
.error-panel {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px;
}
.error-panel p { margin: 4px 0 0; }
.checkout-items {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.checkout-item span {
  display: block;
  color: var(--text-muted);
  font-size: .86rem;
  margin-top: 2px;
}
.confirmation-panel {
  width: min(720px, 100%);
  margin: 28px auto;
  text-align: center;
  background:
    radial-gradient(320px 160px at 50% 0%, #dcfce7, transparent 70%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 28px;
}
.success-orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-weight: 900;
}
.confirmation-grid {
  width: min(420px, 100%);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.confirmation-grid span { color: var(--text-muted); }
.checkout-skeleton { min-height: 320px; }
.mini-skeleton {
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 700px 100%;
  animation: shimmer 1.1s infinite;
}

.simple-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.simple-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.mobile-menu {
  display: none;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.mobile-drawer {
  position: absolute;
  top: 68px;
  right: 12px;
  z-index: 80;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 8px;
  display: grid;
  min-width: 190px;
  gap: 6px;
  box-shadow: var(--shadow);
}
.drawer-link { text-align: left; text-decoration: none; color: #0f172a; padding: 8px 10px; border-radius: 8px; }
.drawer-link:hover { background: #f1f5f9; }
.drawer-link.btn-like { display: inline-flex; }

.pager-inline { display: flex; gap: 8px; }

.auth-shell { display: grid; place-items: center; }
.auth-card {
  width: min(460px, 100%);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.auth-card h2 { margin-top: 0; }

.form-card {
  display: grid;
  gap: 10px;
}
.form-card label {
  display: grid;
  gap: 6px;
}
.form-card .btn {
  width: fit-content;
}

.admin-panel {
  display: grid;
  gap: 12px;
}
.portal-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, .94), rgba(51, 65, 85, .82)),
    radial-gradient(440px 180px at 88% 8%, rgba(245, 158, 11, .45), transparent 62%);
  color: #fff;
  box-shadow: var(--shadow);
}
.portal-hero .muted { color: #dbeafe; }
.portal-hero .eyebrow { color: #fde68a; }
.auth-hero {
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.admin-hero {
  background:
    linear-gradient(120deg, rgba(2, 6, 23, .95), rgba(30, 64, 175, .82)),
    radial-gradient(440px 180px at 88% 8%, rgba(34, 197, 94, .36), transparent 62%);
}
.elevated-card {
  border: 1px solid rgba(148, 163, 184, .32);
  background: rgba(255, 255, 255, .96);
}
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}
.account-card,
.account-side-card {
  padding: 16px;
}
.account-side-card {
  position: sticky;
  top: 86px;
}
.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.kpi-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 4px;
}
.kpi-card span {
  color: var(--text-muted);
  font-weight: 700;
  font-size: .82rem;
}
.kpi-card strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}
.metric-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.metric-list.inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-list div {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 2px;
}
.metric-list span {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
}
.success-panel {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}
.admin-action-card .chip-row .btn {
  background: #f8fafc;
  border-color: var(--line);
  color: #0f172a;
}
.admin-action-card .chip-row .btn:hover {
  background: #fff7ed;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.table-wrap { overflow-x: auto; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.log-item {
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 10px 12px;
  animation: fadeIn .25s ease;
}

.toast p {
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
  font-size: .92rem;
}

.toast-close {
  border: 0;
  background: transparent;
  font-size: .9rem;
  cursor: pointer;
  color: #64748b;
}

.toast-success {
  border-left: 3px solid #16a34a;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-info {
  border-left: 3px solid #2563eb;
}

.stock-list li span {
  color: var(--text-muted);
}

.cart-summary-box .btn {
  width: 100%;
}

.btn:disabled {
  opacity: .56;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

@keyframes shimmer {
  from { background-position: -500px 0; }
  to { background-position: 500px 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .actions {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .search-wrap { grid-column: 2; }
  .quick-suggestions {
    left: 14px;
    width: calc(100vw - 32px);
    top: 56px;
  }

  .hero-market {
    grid-template-columns: 1fr;
  }

  .hero-copy p { max-width: none; }

  .product-detail,
  .cart-layout,
  .section-grid,
  .checkout-grid,
  .portal-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .cart-hero,
  .checkout-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-summary-stack,
  .premium-summary,
  .account-side-card {
    position: static;
  }

  .dashboard-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-list.inline {
    grid-template-columns: 1fr;
  }

  .catalog-list .product-card {
    grid-template-columns: 1fr;
  }

  .catalog-filter-head,
  .catalog-search-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .catalog-view-actions,
  .catalog-search-actions {
    justify-content: flex-start;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content {
    margin-top: 10px;
  }

  .banner-slide {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .banner-visual {
    min-height: 130px;
  }

  .banner-visual img {
    width: 100%;
    max-width: none;
    height: 130px;
    transform: none;
  }

  .catalog-filters {
    padding: 16px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .catalog-search-actions .btn,
  .segmented-control .btn {
    flex: 1;
  }

  .catalog-search-actions,
  .segmented-control {
    width: 100%;
  }

  .hero-market { padding: 18px; }
  .hero-kpi {
    padding: 10px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    display: none;
  }
}

.image-fallback-hidden { display: none; align-items: center; justify-content: center; }
.image-fallback-hidden-grid { display: none; }
.detail-image-fallback { min-height: 320px; border-radius: 22px; }
.account-layout { align-items: start; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.account-profile-card { padding: 1.5rem; }
.account-form-grid label, .compact-admin-form label { display: flex; flex-direction: column; gap: 0.45rem; font-weight: 700; }
.account-form-grid input, .compact-admin-form input, .account-profile-card input { width: 100%; min-height: 3.1rem; border: 1px solid rgba(91,107,135,.24); border-radius: 16px; padding: .85rem 1rem; font: inherit; background: #fff; }
.account-side-stack { display: grid; gap: 1rem; }
.security-card { border: 1px solid rgba(251,190,36,.5); background: linear-gradient(145deg,#fff,#fff8e8); }
.customer-admin-list li { display: grid; gap: .45rem; }
@media (max-width: 780px) { .hero-actions { width: 100%; } .hero-actions .btn { width: 100%; justify-content: center; } }

.product-image.placeholder.image-fallback-hidden { display: none; }
.product-image.placeholder.detail-image-fallback.image-fallback-hidden { display: none; }

