:root {
  color-scheme: light;
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-2: #edf4f1;
  --ink: #18221f;
  --muted: #5b6862;
  --line: #dce4df;
  --teal: #087b75;
  --teal-dark: #05504c;
  --amber: #d99021;
  --coral: #c95043;
  --blue: #256f9c;
  --shadow: 0 20px 45px rgba(23, 39, 35, .12);
  --radius: 8px;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

* {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--teal);
  color: white;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.main-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav-link, .admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 6px;
}
.nav-link.active, .admin-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.top-actions {
  display: flex;
  gap: 10px;
  margin-inline-start: auto;
}
.icon-button, .cart-chip, .primary-button, .secondary-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
}
.icon-button {
  width: 42px;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}
.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--ink);
}
.cart-chip b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--amber);
  color: #1d1403;
}

.view { display: none; }
.view.active { display: block; }

.hero {
  position: relative;
  display: grid;
  min-height: clamp(520px, 62vh, 720px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,249,246,.14), rgba(247,249,246,.88) 58%, rgba(247,249,246,.97)),
    linear-gradient(180deg, transparent 74%, var(--bg));
}
body.dark .hero::after {
  background:
    linear-gradient(90deg, rgba(20,24,22,.18), rgba(20,24,22,.84) 58%, rgba(20,24,22,.96)),
    linear-gradient(180deg, transparent 74%, var(--bg));
}
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(620px, calc(100% - 32px));
  margin-inline-start: clamp(16px, 6vw, 90px);
  padding-block: 60px 120px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.hero-metrics span {
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.hero-metrics b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.toolbar, .content-grid, .smart-panel, .form-layout, .admin-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px 160px;
  gap: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-box input, .toolbar select, .listing-form input, .listing-form select, .listing-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
}
.search-box input { border: 0; min-height: 42px; }
.toolbar select { min-height: 48px; padding: 0 12px; }

.smart-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.smart-panel p { color: var(--muted); line-height: 1.7; }
.trust-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-steps span, .checklist span {
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.side-panel, .panel-block, .listing-form, .form-intro, .admin-sidebar, .admin-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.side-panel { padding: 18px; position: sticky; top: 92px; }
.side-panel h2 { font-size: 18px; }
.category-list { display: grid; gap: 8px; margin-bottom: 24px; }
.category-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.income-list { padding-inline-start: 20px; color: var(--muted); line-height: 1.9; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-art {
  display: grid;
  place-items: center;
  gap: 6px;
  height: 180px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  color: rgba(255,255,255,.95);
  font-size: 56px;
  font-weight: 800;
  text-decoration: none;
}
.product-art small { display: block; font-size: 13px; font-weight: 700; }
.product-art-link:hover { filter: saturate(1.08); }
.product-body { padding: 14px; }
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.product-card h3 { margin: 10px 0 8px; font-size: 19px; }
.product-title-link { color: var(--ink); text-decoration: none; }
.product-title-link:hover { color: var(--teal); }
.product-card p { color: var(--muted); line-height: 1.65; min-height: 52px; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.price { font-size: 22px; font-weight: 800; color: var(--teal-dark); }
body.dark .price { color: #59d2ca; }
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: white;
  padding: 10px 12px;
  text-decoration: none;
}
.mini-button.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.badge {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-2);
}
.badge.featured { color: #1d1403; background: #f1c46b; }

.form-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  padding-top: 24px;
}
.form-intro, .listing-form { padding: clamp(18px, 3vw, 30px); }
.form-intro h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; }
.form-intro p { color: var(--muted); line-height: 1.8; }
.checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.listing-form { display: grid; gap: 14px; }
.listing-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.listing-form input, .listing-form select { min-height: 46px; padding: 0 12px; }
.listing-form textarea { padding: 12px; resize: vertical; }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.primary-button, .secondary-button {
  padding: 0 18px;
  font-weight: 800;
}
.primary-button {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.secondary-button { background: var(--surface); color: var(--ink); }
.full { width: 100%; }
.form-note { margin: 0; color: var(--teal); font-weight: 800; }
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  padding-top: 24px;
}
.admin-sidebar { padding: 16px; position: sticky; top: 92px; }
.admin-sidebar h1 { font-size: 25px; }
.admin-tab { display: flex; width: 100%; justify-content: flex-start; text-align: start; margin-bottom: 6px; }
.admin-content { padding: clamp(16px, 3vw, 26px); min-width: 0; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.kpi-card span { color: var(--muted); }
.kpi-card strong { display: block; margin-top: 10px; font-size: 28px; }
.split-grid, .finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.panel-block { padding: 18px; box-shadow: none; }
.activity-list, .health-bars, #budgetList, #roiTable, .timeline, .risk-grid { display: grid; gap: 10px; }
.activity-item, .budget-row, .timeline-item, .risk-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.activity-item small, .timeline-item small, .risk-card p { color: var(--muted); }
.bar-row span { display: flex; justify-content: space-between; margin-bottom: 7px; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal); border-radius: 999px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}
.admin-table th { color: var(--muted); background: var(--surface-2); }
.status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f7dba7;
  color: #4f3201;
}
.budget-chip {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--teal);
}
.budget-row {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  gap: 10px;
  align-items: center;
}
.risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.risk-card strong { display: block; margin-bottom: 8px; }
.risk-card em { color: var(--coral); font-style: normal; font-weight: 800; }

.catalog-hero, .breadcrumb, .product-detail-layout, .product-info-grid, .reviews-section, .related-section, .catalog-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto;
}
.catalog-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.catalog-hero h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.12; margin-bottom: 10px; }
.catalog-hero p { color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.catalog-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.catalog-art {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  color: white;
  font-size: 42px;
  font-weight: 900;
}
.catalog-card small { color: var(--muted); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 22px;
  align-items: start;
}
.product-gallery, .buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-gallery { padding: 14px; }
.gallery-main {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 430px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  color: white;
  text-align: center;
}
.gallery-main span { font-size: clamp(70px, 13vw, 140px); font-weight: 900; }
.gallery-main small, .gallery-thumb small { font-weight: 800; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.gallery-thumb {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 104px;
  padding: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  color: white;
  text-align: center;
}
.gallery-thumb span { font-size: 26px; font-weight: 900; }
.gallery-thumb small { font-size: 12px; }
.buy-box {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
}
.buy-box h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.14; margin-bottom: 0; }
.buy-box p { color: var(--muted); line-height: 1.8; }
.detail-price { color: var(--teal-dark); font-size: 34px; }
body.dark .detail-price { color: #59d2ca; }
.rating-line, .quantity-row, .shop-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rating-line span { color: var(--amber); letter-spacing: 0; }
.rating-line small { color: var(--muted); }
.quantity-row input {
  width: 88px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.product-info-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.spec-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.spec-row span { display: block; color: var(--muted); margin-bottom: 5px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.review-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-card span { display: block; margin: 7px 0; color: var(--amber); }
.review-card p { color: var(--muted); line-height: 1.7; }

.cart-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 40;
  width: min(390px, 94vw);
  padding: 18px;
  transform: translateX(-105%);
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head, .cart-item, .cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-items { display: grid; gap: 10px; margin: 20px 0; }
.cart-item { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item small { color: var(--muted); }
.cart-total { padding: 14px 0; border-top: 1px solid var(--line); }
.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(0,0,0,.34);
}
.scrim.show { display: block; }

@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .content-grid, .admin-layout, .form-layout, .product-detail-layout, .product-info-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-panel, .admin-sidebar { position: static; }
  .buy-box { position: static; }
  .admin-sidebar { display: flex; gap: 8px; overflow-x: auto; align-items: center; }
  .admin-sidebar h1 { white-space: nowrap; margin: 0 0 0 12px; }
  .admin-tab { width: auto; white-space: nowrap; margin-bottom: 0; }
}

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .brand { min-width: auto; }
  .main-nav { order: 3; width: 100%; }
  .nav-link { flex: 1; padding-inline: 8px; }
  .hero { min-height: 620px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(247,249,246,.14), rgba(247,249,246,.96) 46%, var(--bg)),
      linear-gradient(90deg, transparent, rgba(247,249,246,.7));
  }
  body.dark .hero::after {
    background:
      linear-gradient(180deg, rgba(20,24,22,.1), rgba(20,24,22,.96) 46%, var(--bg)),
      linear-gradient(90deg, transparent, rgba(20,24,22,.7));
  }
  .hero-copy {
    align-self: end;
    margin-inline: 16px;
    padding-block: 220px 48px;
  }
  .hero-metrics, .toolbar, .products-grid, .split-grid, .finance-grid, .risk-grid, .two-cols, .catalog-grid, .gallery-thumbs, .spec-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .catalog-hero { align-items: start; flex-direction: column; }
  .gallery-main { min-height: 310px; }
  .product-detail-layout, .product-info-grid, .reviews-section, .related-section, .catalog-grid, .catalog-hero, .breadcrumb {
    width: min(100% - 24px, 1280px);
  }
  .smart-panel { align-items: start; flex-direction: column; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-row { grid-template-columns: 1fr; }
}


/* Professional store UI refresh - 20260714 */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --brand-soft: #ecfdf5;
  --amber: #f59e0b;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

body.dark {
  --bg: #0f172a;
  --surface: #111827;
  --surface-soft: #172033;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .22);
  --brand-soft: rgba(20, 184, 166, .12);
  --shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  padding: 12px clamp(18px, 4vw, 56px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  backdrop-filter: blur(16px);
}

body.dark .topbar { background: rgba(17, 24, 39, .94); }

.brand {
  min-width: 210px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(15, 118, 110, .24);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.nav-link {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.dark .nav-link { color: #cbd5e1; }

.nav-link:hover,
.nav-link.active {
  border-color: rgba(15, 118, 110, .18);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: none;
}

.top-actions { gap: 8px; }

.icon-button,
.cart-chip,
.primary-button,
.secondary-button,
.mini-button {
  border-radius: 10px;
  font-weight: 800;
}

.icon-button,
.cart-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.cart-chip b {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}

.primary-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.secondary-button,
.mini-button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero {
  width: min(1280px, calc(100% - 32px));
  min-height: 430px;
  margin: 24px auto 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #dbeafe;
  box-shadow: var(--shadow);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.72) 44%, rgba(255,255,255,.10) 75%),
    linear-gradient(0deg, rgba(15,23,42,.14), rgba(15,23,42,0));
}

body.dark .hero::after {
  background:
    linear-gradient(90deg, rgba(17,24,39,.96), rgba(17,24,39,.74) 44%, rgba(17,24,39,.16) 75%),
    linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,0));
}

.hero img {
  filter: saturate(.98) contrast(1.02);
  object-position: center;
}

.hero-copy {
  width: min(620px, calc(100% - 48px));
  margin-inline: clamp(22px, 5vw, 72px) auto;
  padding-block: 62px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 620px;
  margin: 18px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions { gap: 10px; }

.hero-metrics {
  gap: 10px;
  margin-top: 24px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

body.dark .metric-card { background: rgba(17,24,39,.82); }

.section-head,
.catalog-hero,
.breadcrumb,
.content-grid,
.product-detail-layout,
.product-info-grid,
.reviews-section,
.related-section,
.form-layout,
.admin-layout {
  width: min(1280px, calc(100% - 32px));
}

.section-head {
  align-items: end;
  margin: 30px auto 14px;
}

.section-head h2,
.catalog-hero h1,
.panel h2,
.buy-box h1 {
  color: var(--ink);
  letter-spacing: 0;
}

.section-head p,
.catalog-hero p,
.panel p,
.buy-box p,
.product-card p {
  color: var(--muted);
}

.toolbar {
  width: min(1280px, calc(100% - 32px));
  margin: 14px auto 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-box,
.toolbar select,
.filter-field input,
.form-card input,
.form-card select,
.form-card textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.search-box:focus-within,
.toolbar select:focus,
.filter-field input:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: rgba(15, 118, 110, .52);
  outline: 3px solid rgba(15, 118, 110, .12);
}

.smart-panel,
.side-panel,
.panel,
.finance-card,
.risk-card,
.method-card,
.legal-card,
.form-card,
.admin-card,
.buy-box,
.review-card,
.cart-drawer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.smart-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 8px auto 24px;
  padding: 16px;
}

.content-grid {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.side-panel {
  top: 92px;
  padding: 16px;
}

.category-pill {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  border-color: rgba(15, 118, 110, .2);
  background: var(--brand-soft);
  color: var(--brand);
}

.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, .24);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.product-art {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15,118,110,.14), rgba(245,158,11,.14)),
    linear-gradient(180deg, #ffffff, #f1f5f9);
  color: var(--brand);
  font-size: 42px;
}

body.dark .product-art {
  background:
    linear-gradient(135deg, rgba(20,184,166,.18), rgba(245,158,11,.12)),
    linear-gradient(180deg, #1f2937, #111827);
}

.product-body { padding: 16px; }

.product-card h3 {
  min-height: 48px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.42;
}

.product-card p {
  min-height: 64px;
  font-size: 14px;
  line-height: 1.65;
}

.badge {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

body.dark .badge { color: #cbd5e1; }

.price-row {
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.price {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.mini-button {
  min-height: 40px;
  padding: 9px 10px;
  text-align: center;
  text-decoration: none;
}

.catalog-hero {
  margin: 24px auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-grid {
  width: min(1280px, calc(100% - 32px));
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  text-decoration: none;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, .24);
}

.catalog-art {
  height: 106px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15,118,110,.16), rgba(245,158,11,.12)),
    var(--surface-soft);
  color: var(--brand);
  font-size: 34px;
}

.breadcrumb {
  margin: 18px auto 0;
  color: var(--muted);
}

.product-detail-layout {
  grid-template-columns: minmax(0, 1.18fr) 420px;
  gap: 22px;
  margin-top: 18px;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.12), rgba(245,158,11,.12)),
    linear-gradient(180deg, #fff, #f1f5f9);
  box-shadow: var(--shadow);
}

.gallery-thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 118, 110, .12);
}

.buy-box {
  top: 94px;
  padding: 24px;
}

.detail-price {
  color: var(--brand);
  font-size: 34px;
  font-weight: 900;
}

.seller-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.quantity-row input { border-radius: 10px; }

.product-info-grid,
.reviews-section,
.related-section {
  margin-top: 22px;
}

.spec-row {
  border-radius: 12px;
  background: var(--surface-soft);
}

.review-card {
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.cart-drawer {
  border-radius: 0;
  box-shadow: -18px 0 44px rgba(15, 23, 42, .16);
}

@media (max-width: 1080px) {
  .content-grid,
  .product-detail-layout,
  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .buy-box {
    position: static;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand { min-width: 0; }

  .brand small { display: none; }

  .top-actions { margin-inline-start: auto; }

  .nav-link {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .hero {
    width: calc(100% - 20px);
    min-height: 520px;
    margin-top: 12px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.94) 46%, #fff 100%),
      linear-gradient(0deg, rgba(15,23,42,.12), rgba(15,23,42,0));
  }

  body.dark .hero::after {
    background:
      linear-gradient(180deg, rgba(17,24,39,.10), rgba(17,24,39,.94) 46%, #111827 100%),
      linear-gradient(0deg, rgba(0,0,0,.12), rgba(0,0,0,0));
  }

  .hero-copy {
    align-self: end;
    width: auto;
    margin-inline: 16px;
    padding-block: 210px 32px;
  }

  .hero h1 { font-size: 34px; }

  .hero p { font-size: 15px; }

  .hero-actions,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .section-head,
  .catalog-hero,
  .breadcrumb,
  .content-grid,
  .product-detail-layout,
  .product-info-grid,
  .reviews-section,
  .related-section,
  .form-layout,
  .admin-layout,
  .toolbar,
  .smart-panel,
  .catalog-grid {
    width: calc(100% - 20px);
  }

  .products-grid,
  .catalog-grid,
  .gallery-thumbs,
  .reviews-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .product-card h3,
  .product-card p {
    min-height: auto;
  }

  .gallery-main { min-height: 330px; }

  .detail-price { font-size: 29px; }
}

body.dark {
  color-scheme: dark;
  --bg: #141816;
  --surface: #1e2421;
  --surface-2: #27322e;
  --ink: #eef6f2;
  --muted: #b6c3bd;
  --line: #394640;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

/* Final commerce-card polish */
.product-card .price-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.product-card .card-actions {
  width: 100%;
  justify-content: stretch;
}

.product-card .mini-button,
.secondary-link.full {
  width: 100%;
}

.mini-button.ghost {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.gallery-thumb {
  background:
    linear-gradient(135deg, var(--art-a), var(--art-b)),
    var(--surface-soft);
  color: #fff;
}

/* Nest-inspired professional marketplace refresh */
:root {
  --nest-green: #3bb77e;
  --nest-green-dark: #249563;
  --nest-mint: #def9ec;
  --nest-yellow: #fff3d6;
  --nest-blue: #e8f3ff;
  --nest-ink: #253d4e;
  --nest-muted: #7e7e7e;
  --nest-border: #ececec;
  --nest-bg: #fafafa;
}

body {
  background: var(--nest-bg);
  color: var(--nest-ink);
}

.app-shell {
  width: 100%;
  max-width: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--nest-border);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 6px 22px rgba(37, 61, 78, .05);
  backdrop-filter: blur(14px);
}

.store-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--nest-border);
  color: var(--nest-muted);
  font-size: 13px;
}

.store-strip span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--nest-green);
  vertical-align: middle;
}

.site-header .topbar {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(260px, 680px) auto;
  gap: 18px;
  align-items: center;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header .brand-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--nest-green), #86d9ad);
}

.site-header .brand strong {
  color: var(--nest-green);
  font-size: 24px;
}

.header-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 2px solid #bce3c9;
  border-radius: 6px;
  background: #fff;
}

.header-search span {
  padding-inline: 15px 6px;
  color: var(--nest-green);
  font-size: 18px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--nest-ink);
  background: transparent;
}

.header-search button,
.hero-subscribe button {
  align-self: stretch;
  border: 0;
  background: var(--nest-green);
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
}

.site-header > .main-nav {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-header .nav-link {
  color: var(--nest-ink);
  font-weight: 800;
}

.site-header .nav-link.active,
.site-header .nav-link:hover {
  background: var(--nest-mint);
  color: var(--nest-green-dark);
}

.nest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  gap: 28px;
  align-items: center;
  width: min(1400px, calc(100% - 32px));
  min-height: 420px;
  margin: 24px auto 18px;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 22%, rgba(59, 183, 126, .16), transparent 28%),
    linear-gradient(135deg, #f2fbf6, #fff7e7);
  border: 1px solid #edf4ee;
}

.hero-offer h1 {
  max-width: 680px;
  margin: 8px 0 16px;
  color: var(--nest-ink);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.08;
}

.hero-offer p {
  max-width: 620px;
  color: var(--nest-muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(540px, 100%);
  min-height: 56px;
  margin: 24px 0 18px;
  overflow: hidden;
  border: 1px solid var(--nest-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(37, 61, 78, .08);
}

.hero-subscribe input {
  min-width: 0;
  padding: 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-product-wall {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(37, 61, 78, .12);
  transform: rotate(-1deg);
}

.hero-product-wall img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.featured-categories,
.promo-grid,
.shop-layout {
  width: min(1400px, calc(100% - 32px));
  margin: 28px auto;
}

.category-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.category-mini {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 156px;
  padding: 18px 12px;
  border: 1px solid var(--nest-border);
  border-radius: 10px;
  background: #fff;
  color: var(--nest-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(37, 61, 78, .04);
  transition: transform .18s ease, border-color .18s ease;
}

.category-mini:hover {
  transform: translateY(-3px);
  border-color: #bce3c9;
}

.category-mini-art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 18%, #fff), color-mix(in srgb, var(--art-b) 18%, #fff));
  color: var(--nest-green-dark);
  font-weight: 900;
}

.category-mini small {
  color: var(--nest-muted);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promo-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 24px;
  border-radius: 12px;
  color: var(--nest-ink);
  text-decoration: none;
  background-repeat: no-repeat;
  background-position: left 20px bottom 10px;
  box-shadow: 0 10px 28px rgba(37, 61, 78, .06);
}

.promo-card span {
  color: var(--nest-green-dark);
  font-weight: 800;
}

.promo-card strong {
  max-width: 310px;
  font-size: 22px;
  line-height: 1.35;
}

.promo-card small {
  width: max-content;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--nest-green);
  color: #fff;
  font-weight: 800;
}

.promo-green { background: linear-gradient(135deg, #f1fff6, #dff7e8); }
.promo-yellow { background: linear-gradient(135deg, #fff8e4, #ffedbd); }
.promo-blue { background: linear-gradient(135deg, #eef7ff, #dceeff); }

.shop-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.deal-sidebar {
  position: sticky;
  top: 154px;
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 26px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(59,183,126,.82), rgba(36,149,99,.9)),
    url("../images/products/catalog-sheet.jpg") center bottom / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.deal-sidebar::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px -40px;
  height: 180px;
  background: rgba(255,255,255,.16);
  filter: blur(30px);
}

.deal-sidebar h2,
.deal-sidebar p,
.deal-sidebar a,
.deal-sidebar .deal-badge {
  position: relative;
  z-index: 1;
}

.deal-sidebar h2 {
  font-size: 32px;
  line-height: 1.15;
}

.deal-sidebar p {
  color: rgba(255,255,255,.9);
  line-height: 1.8;
}

.deal-badge {
  width: max-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-weight: 900;
}

.product-area {
  min-width: 0;
}

.section-head.compact {
  width: 100%;
  margin-top: 0;
}

.home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.home-filters select {
  min-height: 38px;
  border: 1px solid var(--nest-border);
  border-radius: 6px;
  background: #fff;
  color: var(--nest-ink);
  padding: 0 10px;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: -4px 0 14px;
  color: var(--nest-muted);
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 16px;
}

.product-card {
  border-color: var(--nest-border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(37, 61, 78, .04);
}

.product-card:hover {
  border-color: #bce3c9;
  box-shadow: 0 16px 32px rgba(37, 61, 78, .10);
}

.product-art {
  position: relative;
  display: block;
  aspect-ratio: 1 / .82;
  padding: 12px;
  background: #fff;
}

.product-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.sale-ribbon,
.badge.featured {
  background: #fde68a;
  color: #7c4a03;
}

.sale-ribbon {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.product-card h3 {
  min-height: 46px;
  color: var(--nest-ink);
  font-size: 16px;
}

.product-card p {
  min-height: 52px;
  color: var(--nest-muted);
  font-size: 13px;
}

.price {
  color: var(--nest-green);
}

.mini-button {
  background: var(--nest-green);
  border-radius: 6px;
}

.mini-button.ghost {
  background: #f3f4f6;
}

.gallery-main {
  background: #fff;
}

.gallery-main img {
  display: block;
  width: min(100%, 760px);
  max-height: 520px;
  object-fit: contain;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 62px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

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

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .nest-hero,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .deal-sidebar {
    position: static;
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .store-strip {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-header .topbar,
  .site-header > .main-nav,
  .nest-hero,
  .featured-categories,
  .promo-grid,
  .shop-layout {
    width: calc(100% - 20px);
  }

  .site-header .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-search,
  .hero-subscribe {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .header-search span {
    display: none;
  }

  .header-search input,
  .hero-subscribe input {
    min-height: 46px;
    padding: 0 14px;
  }

  .header-search button,
  .hero-subscribe button {
    min-height: 42px;
  }

  .site-header > .main-nav {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .nest-hero {
    padding: 24px 18px;
  }

  .hero-offer h1 {
    font-size: 34px;
  }

  .hero-product-wall {
    transform: none;
  }

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

  .home-filters {
    width: 100%;
  }

  .home-filters select {
    width: 100%;
  }
}

/* Mobile overflow guard */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.app-shell,
.site-header,
main {
  max-width: 100%;
  overflow-x: clip;
}

/* Fixed cart drawer layering for RTL header */
.cart-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  z-index: 120;
  width: min(430px, 94vw);
  height: 100dvh;
  padding: 22px;
  overflow-y: auto;
  background: #fff;
  border: 0;
  border-inline-end: 1px solid var(--match-line, #ececec);
  border-radius: 0;
  box-shadow: 24px 0 60px rgba(37, 61, 78, .22);
  transform: none;
}

.cart-drawer.open {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
}

.cart-head {
  position: sticky;
  top: -22px;
  z-index: 2;
  margin: -22px -22px 0;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid var(--match-line, #ececec);
}

.cart-head h2 {
  margin: 0;
  color: var(--match-deep, #253d4e);
  font-size: 24px;
  font-weight: 900;
}

.cart-head .icon-button {
  min-width: 42px;
  color: var(--match-deep, #253d4e);
}

.cart-items {
  align-content: start;
}

.cart-total {
  margin-top: auto;
  color: var(--match-deep, #253d4e);
}

.scrim {
  z-index: 110;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(2px);
}

/* Product page and CTA polish */
.nest-main-banner h1 {
  max-width: 500px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.14;
}

.nest-main-banner p {
  font-size: 16px;
}

.product-page {
  width: min(1410px, calc(100% - 30px));
  margin: 0 auto 70px;
}

.product-breadcrumb {
  width: 100%;
  margin: 24px 0;
  padding: 12px 16px;
  border: 1px solid var(--match-line, #ececec);
  border-radius: 10px;
  background: #fff;
}

.nest-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .8fr);
  gap: 32px;
  align-items: start;
}

.nest-product-gallery,
.nest-buy-panel,
.nest-info-card {
  border: 1px solid var(--match-line, #ececec);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 61, 78, .05);
}

.nest-product-gallery {
  padding: 18px;
}

.nest-product-image {
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: 14px;
  background: #f8faf9;
}

.nest-product-image img {
  width: min(100%, 760px);
  max-height: 520px;
  object-fit: contain;
}

.nest-product-image span {
  color: var(--match-green, #3bb77e);
  font-size: 90px;
  font-weight: 900;
}

.nest-product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.nest-thumb {
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--match-line, #ececec);
  border-radius: 12px;
  background: #fff;
}

.nest-thumb img {
  width: 100%;
  height: 74px;
  object-fit: contain;
}

.nest-buy-panel {
  position: sticky;
  top: 148px;
  padding: 28px;
}

.nest-buy-panel h1 {
  margin: 16px 0 12px;
  color: var(--match-deep, #253d4e);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.22;
  font-weight: 900;
}

.nest-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--match-muted, #7e7e7e);
}

.stars {
  color: #f9b53b;
  letter-spacing: 0;
}

.product-summary {
  margin: 18px 0;
  color: var(--match-muted, #7e7e7e);
  font-size: 16px;
  line-height: 1.9;
}

.nest-price-row {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 12px;
  background: #f2fce4;
}

.nest-price-row strong {
  color: var(--match-green, #3bb77e);
  font-size: 42px;
  font-weight: 900;
}

.nest-price-row span {
  color: var(--match-muted, #7e7e7e);
}

.nest-purchase-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: end;
}

.nest-purchase-row label {
  display: grid;
  gap: 7px;
  color: var(--match-muted, #7e7e7e);
  font-weight: 800;
}

.nest-purchase-row input {
  min-height: 48px;
  border: 1px solid var(--match-line, #ececec);
  border-radius: 8px;
  color: var(--match-deep, #253d4e);
  text-align: center;
}

.add-cart-pro,
.add-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(135deg, var(--match-green, #3bb77e), #2da66f);
  color: #fff;
  box-shadow: 0 12px 24px rgba(59, 183, 126, .25);
}

.add-cart-pro {
  min-height: 50px;
  border-radius: 8px;
  font-weight: 900;
}

.add-cart-button {
  border-radius: 7px;
}

.add-cart-pro:hover,
.add-cart-button:hover {
  background: linear-gradient(135deg, #2da66f, #21885b);
}

.ask-seller-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid #bce3c9;
  border-radius: 8px;
  color: var(--match-green, #3bb77e);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.product-trust-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--match-muted, #7e7e7e);
  list-style: none;
}

.product-trust-list li::before {
  content: "✓";
  margin-inline-end: 8px;
  color: var(--match-green, #3bb77e);
  font-weight: 900;
}

.nest-product-info {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr);
  gap: 24px;
  margin-top: 30px;
}

.nest-info-card {
  padding: 24px;
}

.nest-info-card h2 {
  margin-bottom: 14px;
  color: var(--match-deep, #253d4e);
  font-size: 26px;
  font-weight: 900;
}

.nest-reviews,
.nest-related {
  width: 100%;
  margin-top: 40px;
}

.mini-button {
  font-weight: 900;
}

/* Product card action buttons refinement */
.product-card .price-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.product-card .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.product-card .mini-button {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  box-shadow: none;
}

.product-card .mini-button.ghost {
  border: 1px solid #dfe5e8;
  background: #f8fafb;
  color: var(--match-deep, #253d4e);
}

.product-card .mini-button.ghost:hover {
  border-color: #bce3c9;
  background: #fff;
  color: var(--match-green, #3bb77e);
}

.product-card .add-cart-button {
  gap: 7px;
  background: var(--match-green, #3bb77e);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 183, 126, .18);
}

.product-card .add-cart-button span {
  display: inline-flex;
  font-size: 15px;
  line-height: 1;
}

.product-card .add-cart-button:hover {
  background: #2da66f;
  transform: translateY(-1px);
}

@media (max-width: 460px) {
  .product-card .card-actions {
    grid-template-columns: 1fr;
  }
}

/* Final product card button override */
.nest-product-grid .product-card .card-actions,
.products-grid .product-card .card-actions {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
  gap: 10px !important;
}

.nest-product-grid .product-card .mini-button,
.products-grid .product-card .mini-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.nest-product-grid .product-card .add-cart-button,
.products-grid .product-card .add-cart-button {
  background: #3bb77e !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(59, 183, 126, .18) !important;
}

.nest-product-grid .product-card .mini-button.ghost,
.products-grid .product-card .mini-button.ghost {
  background: #f8fafb !important;
  color: #253d4e !important;
  border: 1px solid #dfe5e8 !important;
}

/* Product card image frame polish */
.nest-product-grid .product-card,
.products-grid .product-card {
  border: 1px solid #edf1f2 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 61, 78, .045) !important;
  overflow: hidden !important;
}

.nest-product-grid .product-card:hover,
.products-grid .product-card:hover {
  border-color: #bce3c9 !important;
  box-shadow: 0 18px 42px rgba(37, 61, 78, .10) !important;
}

.nest-product-grid .product-card .product-art,
.products-grid .product-card .product-art {
  display: grid !important;
  place-items: center !important;
  aspect-ratio: 1 / .76 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  background: #fff !important;
  overflow: hidden !important;
}

.nest-product-grid .product-card .product-art img,
.products-grid .product-card .product-art img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: transform .22s ease !important;
}

.nest-product-grid .product-card:hover .product-art img,
.products-grid .product-card:hover .product-art img {
  transform: scale(1.04);
}

.nest-product-grid .product-card .sale-ribbon,
.products-grid .product-card .sale-ribbon {
  inset-block-start: 12px !important;
  inset-inline-start: 12px !important;
  border-radius: 8px !important;
  background: #ffe27a !important;
  color: #7a4a00 !important;
  box-shadow: 0 8px 16px rgba(122, 74, 0, .12) !important;
}

.nest-product-grid .product-card .product-body,
.products-grid .product-card .product-body {
  padding: 16px 18px 18px !important;
}

.nest-product-grid .product-card h3,
.products-grid .product-card h3 {
  min-height: 48px !important;
  margin: 12px 0 10px !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
}

.nest-product-grid .product-card p,
.products-grid .product-card p {
  min-height: 58px !important;
  margin-bottom: 12px !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

@media (max-width: 1100px) {
  .nest-product-detail,
  .nest-product-info {
    grid-template-columns: 1fr;
  }

  .nest-buy-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .product-page {
    width: calc(100% - 20px);
  }

  .nest-product-image {
    min-height: 330px;
  }

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

  .nest-purchase-row {
    grid-template-columns: 1fr;
  }
}

/* Category imagery and final Nest-like polish */
.category-mini {
  min-height: 172px;
  background: linear-gradient(180deg, #fff, #fbfffd);
}

.category-mini-art {
  width: 104px;
  height: 84px;
  overflow: hidden;
  border-radius: 18px;
}

.category-mini-art img,
.catalog-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card {
  padding: 0;
  gap: 8px;
  border-color: var(--nest-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 61, 78, .05);
}

.catalog-art {
  width: 100%;
  height: 164px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.catalog-card strong,
.catalog-card small {
  padding-inline: 16px;
}

.catalog-card small {
  padding-bottom: 16px;
}

.nest-hero {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78), 0 18px 48px rgba(37, 61, 78, .06);
}

.hero-product-wall {
  border: 10px solid rgba(255,255,255,.72);
}

.promo-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(37, 61, 78, .10);
}

.product-card {
  background: #fff;
}

.product-body .product-meta:first-child {
  min-height: 27px;
}

.badge {
  border-radius: 6px;
}

.product-title-link:hover,
.catalog-card:hover strong,
.category-mini:hover strong {
  color: var(--nest-green-dark);
}

@media (max-width: 760px) {
  .category-mini-art {
    width: 96px;
    height: 78px;
  }

  .catalog-art {
    height: 150px;
  }
}

/* Close Nest reference match pass */
:root {
  --match-green: #3bb77e;
  --match-deep: #253d4e;
  --match-muted: #7e7e7e;
  --match-line: #ececec;
  --match-soft: #f4f6fa;
  --match-cream: #fffceb;
}

.nest-header,
.nest-home-hero,
.nest-section,
.nest-promo-row,
.nest-products-section,
.nest-main-banner,
.nest-section-title,
.nest-results-line,
.nest-product-grid,
.nest-header input,
.nest-header select,
.nest-products-section select {
  direction: rtl;
}

.nest-main-banner > div,
.nest-section-title > div,
.nest-results-line {
  text-align: right;
}

body {
  background: #fff;
  color: var(--match-deep);
}

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

.nest-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 36px;
  padding: 0 max(15px, calc((100% - 1410px) / 2));
  border-bottom: 1px solid var(--match-line);
  color: var(--match-muted);
  font-size: 13px;
}

.topline-links,
.topline-help {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topline-links a {
  color: var(--match-muted);
  text-decoration: none;
}

.topline-links a + a {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--match-line);
}

.nest-topline strong,
.topline-help b {
  color: var(--match-green);
}

.topline-help {
  justify-content: flex-end;
}

.nest-middle {
  display: grid;
  grid-template-columns: 210px minmax(360px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 0 max(15px, calc((100% - 1410px) / 2));
}

.nest-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--match-green);
  text-decoration: none;
}

.nest-logo-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #d8f3e5;
  color: var(--match-green);
  font-size: 30px;
  font-weight: 900;
}

.nest-logo strong {
  display: block;
  color: var(--match-green);
  font-size: 38px;
  line-height: .95;
  font-weight: 900;
}

.nest-logo small {
  color: var(--match-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nest-search {
  display: grid;
  grid-template-columns: 170px 1fr 92px;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 2px solid #bce3c9;
  border-radius: 4px;
  background: #fff;
}

.nest-search select,
.nest-search input {
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--match-deep);
}

.nest-search select {
  padding-inline: 14px;
  border-inline-end: 1px solid var(--match-line);
  font-weight: 700;
}

.nest-search input {
  padding-inline: 16px;
}

.nest-search button {
  height: 100%;
  border: 0;
  background: var(--match-green);
  color: #fff;
  font-weight: 800;
}

.vendor-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--match-line);
  border-radius: 4px;
  color: var(--match-green);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}

.header-actions a,
.header-cart {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--match-deep);
  font-weight: 700;
  text-decoration: none;
}

.header-actions span {
  color: var(--match-deep);
  font-size: 22px;
}

.header-cart b {
  position: absolute;
  inset-block-start: -12px;
  inset-inline-start: 8px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--match-green);
  color: #fff;
  font-size: 12px;
}

.nest-navline {
  display: grid;
  grid-template-columns: 260px 150px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 70px;
  padding: 0 max(15px, calc((100% - 1410px) / 2));
  border-top: 1px solid var(--match-line);
}

.browse-cats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 5px;
  background: var(--match-green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.hot-deals {
  color: var(--match-deep);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.nest-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nest-menu a {
  color: var(--match-deep);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.nest-menu a.active,
.nest-menu a:hover {
  color: var(--match-green);
}

.nest-home-hero,
.nest-section,
.nest-promo-row,
.nest-products-section {
  width: min(1410px, calc(100% - 30px));
  margin-inline: auto;
}

.nest-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
  gap: 24px;
  margin-top: 30px;
}

.nest-main-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  padding: 54px 58px;
  border-radius: 22px;
  background: #d8f1e5;
}

.nest-main-banner h1 {
  max-width: 560px;
  margin: 10px 0 18px;
  color: var(--match-deep);
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.05;
  font-weight: 900;
}

.nest-main-banner p {
  max-width: 480px;
  color: var(--match-muted);
  font-size: 18px;
  line-height: 1.7;
}

.nest-main-banner img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(37,61,78,.12);
}

.nest-email {
  display: grid;
  grid-template-columns: 1fr 130px;
  width: min(480px, 100%);
  min-height: 64px;
  overflow: hidden;
  margin-top: 36px;
  border-radius: 999px;
  background: #fff;
}

.nest-email input {
  min-width: 0;
  padding: 0 28px;
  border: 0;
  outline: 0;
}

.nest-email button {
  border: 0;
  background: var(--match-green);
  color: #fff;
  font-weight: 900;
}

.nest-side-banners {
  display: grid;
  gap: 24px;
}

.side-banner,
.promo-tile {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 203px;
  padding: 30px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--match-deep);
  text-decoration: none;
}

.side-banner strong,
.promo-tile strong {
  max-width: 310px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.side-banner small,
.promo-tile small {
  width: max-content;
  padding: 9px 16px;
  border-radius: 4px;
  background: var(--match-green);
  color: #fff;
  font-weight: 900;
}

.side-green { background: linear-gradient(135deg, #fff4de, #ecf8ee); }
.side-yellow { background: linear-gradient(135deg, #eef7ff, #fff3d7); }

.nest-section {
  margin-top: 50px;
}

.nest-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.nest-section-title h2 {
  margin: 0 0 6px;
  color: var(--match-deep);
  font-size: 32px;
  font-weight: 900;
}

.nest-section-title p {
  margin: 0;
  color: var(--match-muted);
}

.nest-section-title a {
  color: var(--match-green);
  font-weight: 900;
  text-decoration: none;
}

.nest-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 16px;
}

.nest-category-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 182px;
  padding: 14px 12px;
  border: 1px solid var(--match-line);
  border-radius: 10px;
  background: #f4fbf7;
  color: var(--match-deep);
  text-align: center;
  text-decoration: none;
  transition: .18s ease;
}

.nest-category-card:nth-child(2n) { background: #fffceb; }
.nest-category-card:nth-child(3n) { background: #f2fce4; }
.nest-category-card:nth-child(4n) { background: #fff3f0; }

.nest-category-card:hover {
  transform: translateY(-4px);
  border-color: #bce3c9;
  box-shadow: 0 14px 30px rgba(37,61,78,.08);
}

.nest-category-card img {
  width: 106px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.nest-category-card strong {
  font-size: 16px;
}

.nest-category-card small {
  color: var(--match-muted);
}

.nest-promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tile-one { background: linear-gradient(135deg, #f1f8e9, #fff7df); }
.tile-two { background: linear-gradient(135deg, #fff4e5, #eef8ef); }
.tile-three { background: linear-gradient(135deg, #eef7ff, #fff4e0); }

.nest-products-section {
  margin-top: 48px;
  margin-bottom: 60px;
}

.product-title-row {
  align-items: center;
}

.nest-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nest-filter-tabs select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--match-line);
  border-radius: 6px;
  background: #fff;
  color: var(--match-deep);
  font-weight: 700;
}

.nest-results-line {
  margin-bottom: 16px;
  color: var(--match-muted);
}

.nest-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 22px;
}

.nest-product-grid .product-card {
  border-radius: 15px;
}

.nest-product-grid .product-art {
  aspect-ratio: 1 / .86;
  padding: 18px;
}

.nest-product-grid .product-body {
  padding: 0 18px 18px;
}

.nest-product-grid .price-row {
  margin-top: 16px;
}

.nest-product-grid .mini-button {
  min-height: 36px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .nest-topline {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 8px;
  }

  .topline-help {
    justify-content: center;
  }

  .nest-middle {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 14px;
  }

  .vendor-button,
  .header-actions {
    justify-content: center;
  }

  .nest-navline {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 12px;
  }

  .nest-menu {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nest-home-hero,
  .nest-main-banner,
  .nest-promo-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nest-topline {
    display: none;
  }

  .nest-logo strong {
    font-size: 32px;
  }

  .nest-search {
    grid-template-columns: 1fr;
  }

  .nest-search select {
    display: none;
  }

  .nest-search input,
  .nest-search button {
    min-height: 46px;
  }

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

  .nest-menu {
    gap: 18px;
  }

  .nest-home-hero,
  .nest-section,
  .nest-promo-row,
  .nest-products-section {
    width: calc(100% - 20px);
  }

  .nest-main-banner {
    min-height: auto;
    padding: 28px 18px;
    border-radius: 16px;
  }

  .nest-main-banner h1 {
    font-size: 40px;
  }

  .nest-main-banner img {
    height: 220px;
  }

  .nest-email {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .nest-email input,
  .nest-email button {
    min-height: 48px;
  }

  .nest-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .nest-filter-tabs {
    width: 100%;
  }

  .nest-filter-tabs select {
    width: 100%;
  }
}

.cart-drawer {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.open {
  display: block;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .store-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    overflow-x: clip;
    white-space: normal;
  }
}
