@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
/* Responsive layout for every page. Phone first; tablet and desktop add room. */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }
body { min-height: 100vh; }
main, .container, .help-page, .checkout-page, .auth-layout {
  width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto;
  padding-left: 16px; padding-right: 16px;
}
#dashNav { display: flex; gap: 8px; overflow-x: auto; padding: 8px; background: #fff; border-radius: 14px; }
#dashNav a { white-space: nowrap; }
#dashMain { min-height: 60vh; padding: 20px; background: #fff; border-radius: 14px; }
.auth-card, .panel, .transfer-panel, .notice { border-radius: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { min-width: 0; flex: 1 1 140px; }
table { width: 100%; border-collapse: collapse; }
.bank-details, .order-items { padding-left: 18px; }
@media (max-width: 767px) {
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .inline-form input, .inline-form select, .inline-form button { width: 100%; }
}
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  #dashNav { flex-wrap: wrap; overflow: visible; }
  #dashMain { padding: 28px; }
}
@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  main, .container, .help-page, .checkout-page, .auth-layout { padding-left: 32px; padding-right: 32px; }
}

/* ===== Typography (Manrope) ===== */
body, button, input, select, textarea { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
body { -webkit-font-smoothing: antialiased; }

/* ===== Product grid and cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.06); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.10); }
.product-card .product-image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4f4f4; }
.product-card .product-info { padding: 12px 12px 0; flex: 1; }
.product-card .vendor-name { font-size: 12px; color: #6b6b6b; margin: 0 0 4px; }
.product-card .product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 14px; flex-wrap: wrap; }
.product-price { font-weight: 800; font-size: 16px; }
.was-price { color: #8a8a8a; font-weight: 500; margin-right: 4px; font-size: 13px; }
.size-select { margin: 0 12px 8px; width: calc(100% - 24px); padding: 8px; border-radius: 10px; border: 1px solid #ddd; }
.add-button { border-radius: 999px; padding: 8px 14px; font-weight: 700; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ===== Home page ===== */
.landing-page { background: #faf8f6; }
.landing-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #eee; }
.landing-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #741f2b; letter-spacing: .04em; font-size: 14px; text-decoration: none; }
.landing-brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; }
.landing-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; }
.landing-nav a { color: #2a2a2a; text-decoration: none; }
.landing-btn-small { background: #741f2b; color: #fff !important; padding: 8px 14px; border-radius: 999px; }
.hero { background: linear-gradient(135deg, #5c1721 0%, #741f2b 55%, #8c2a36 100%); color: #fff; padding: 48px 20px 40px; }
.hero-copy { max-width: 1100px; margin: 0 auto; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 6vw, 58px); margin: 0 0 14px; }
.hero-lead { font-size: clamp(16px, 2vw, 19px); opacity: .92; max-width: 560px; margin: 0 0 24px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-ghost, .btn-ghost-dark { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn-primary { background: #fff; color: #741f2b; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost-dark { border: 1.5px solid #741f2b; color: #741f2b; }
.hero-points { list-style: none; padding: 0; margin: 36px auto 0; max-width: 1100px; display: grid; gap: 12px; }
.hero-points li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.hero-points strong { font-size: 15px; }
.hero-points span { font-size: 14px; opacity: .9; }
.section { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { color: #741f2b; font-weight: 700; text-decoration: none; font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.cat-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; display: block; text-decoration: none; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card span { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.95); color: #1f1f1f; font-weight: 800; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.steps { display: grid; gap: 16px; }
.step-card { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 8px 26px rgba(0,0,0,.06); }
.step-card-alt { background: #1f1f1f; color: #fff; }
.step-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #741f2b; margin: 0 0 6px; }
.step-card-alt .step-label { color: #f2c6cc; }
.step-card h2 { font-size: 22px; margin: 0 0 12px; }
.step-card ol { padding-left: 20px; margin: 0 0 20px; line-height: 1.7; font-size: 15px; }
.step-card .btn-primary { background: #741f2b; color: #fff; }
.step-card-alt .btn-primary { background: #fff; color: #1f1f1f; }
.cta-band { text-align: center; background: #fff; border-radius: 24px; margin: 8px auto 40px; box-shadow: 0 8px 26px rgba(0,0,0,.05); }
.cta-band h2 { font-size: 26px; margin: 0 0 8px; }
.cta-band p { color: #5a5a5a; margin: 0 0 20px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: #741f2b; color: #fff; }
.landing-foot { background: #1f1f1f; color: #d6d6d6; padding: 36px 20px; margin-top: auto; }
.foot-cols { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; font-size: 14px; }
.foot-cols a { display: block; color: #d6d6d6; text-decoration: none; margin-bottom: 8px; }
.foot-title { font-weight: 800; color: #fff; margin: 0 0 10px; }
.foot-cols p { margin: 0 0 8px; line-height: 1.6; }
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero-points { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero { padding: 72px 32px 56px; }
}

/* ===== Glass style (frosted cards) ===== */
/* Shop page background: soft colour blobs so the glass has something to blur */
body:has(#productGrid) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(240,170,180,.55) 0, transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(170,200,255,.55) 0, transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(250,220,170,.5) 0, transparent 40%),
    linear-gradient(160deg, #fbf5f2 0%, #eef2fa 100%);
  background-attachment: scroll;
}

/* Product cards */
.product-card {
  background: rgba(255,255,255,.52) !important;
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 10px 34px rgba(31,38,135,.12), inset 0 1px 0 rgba(255,255,255,.6);
  border-radius: 22px;
}
.product-card .product-image { border-radius: 0; }
.product-card .product-bottom .product-price {
  background: rgba(255,255,255,.7);
  padding: 6px 10px;
  border-radius: 999px;
}
.product-card .add-button {
  background: #741f2b; color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(116,31,43,.3);
}
.product-card .sold-out-tag {
  background: rgba(31,31,31,.8); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px;
}
.size-select { background: rgba(255,255,255,.75); border-radius: 12px; }

/* Category chips on the shop page */
.category-link {
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.8) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px !important;
  padding: 9px 16px !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31,38,135,.08);
}
.category-link.selected { background: #741f2b !important; color: #fff !important; border-color: #741f2b !important; }

/* ===== Home page ===== */
.landing-page {
  background:
    radial-gradient(circle at 10% 30%, rgba(240,170,180,.35) 0, transparent 35%),
    radial-gradient(circle at 90% 60%, rgba(170,200,255,.4) 0, transparent 38%),
    #faf6f4;
}
.landing-top {
  background: rgba(255,255,255,.45) !important;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.7) !important;
}
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(60,14,22,.92) 0%, rgba(116,31,43,.78) 55%, rgba(60,14,22,.55) 100%),
    url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}
.hero-points li {
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.btn-primary { box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn-ghost { backdrop-filter: blur(8px); background: rgba(255,255,255,.08); }

.cat-card { border-radius: 22px; box-shadow: 0 10px 30px rgba(31,38,135,.14); }
.cat-card span {
  background: rgba(255,255,255,.35) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  font-size: 15px !important;
}

.step-card {
  background: rgba(255,255,255,.5) !important;
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-radius: 24px !important;
  box-shadow: 0 12px 36px rgba(31,38,135,.12);
}
.step-card-alt {
  background:
    linear-gradient(160deg, rgba(20,20,28,.78), rgba(20,20,28,.9)),
    url('https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1200&q=80') center / cover no-repeat !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12);
}
.step-card:not(.step-card-alt) {
  background:
    linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.62)),
    url('https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1200&q=80') center / cover no-repeat !important;
}
.step-card-alt .btn-primary { background: #fff !important; color: #1f1f1f !important; }

.cta-band {
  background:
    linear-gradient(120deg, rgba(116,31,43,.88), rgba(60,14,22,.92)),
    url('https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat !important;
  color: #fff;
  border-radius: 30px !important;
  padding: 48px 24px !important;
  box-shadow: 0 16px 44px rgba(60,14,22,.3) !important;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9) !important; }
.cta-band .btn-primary { background: #fff !important; color: #741f2b !important; }
.cta-band .btn-ghost-dark { border-color: rgba(255,255,255,.8) !important; color: #fff !important; }

.landing-foot {
  background: rgba(20,20,28,.88) !important;
  backdrop-filter: blur(12px);
  border-radius: 30px 30px 0 0;
  margin-top: 40px;
}

/* ===== Shop top bar: glass search and neat category row ===== */
body:has(#productGrid) header {
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 24px rgba(31,38,135,.08);
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.5) !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-radius: 999px !important;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 8px 26px rgba(31,38,135,.10);
  width: 100%;
}
.search input[type="search"] {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; padding: 10px 4px; color: #1f1f1f;
}
.search input[type="search"]::placeholder { color: #6b6b6b; }
.search:focus-within { box-shadow: 0 10px 30px rgba(116,31,43,.18); border-color: rgba(116,31,43,.35) !important; }
.search-icon { opacity: .7; font-size: 18px; }
.search button {
  flex: 0 0 auto; border: none; border-radius: 999px; background: #741f2b; color: #fff;
  padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(116,31,43,.3);
}
.search button:hover { background: #5c1721; }

/* Category row: one neat line that scrolls on phones, wraps neatly on desktop */
.category-list {
  display: flex; gap: 10px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
  padding: 10px; margin: 16px 0 8px;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(31,38,135,.08);
}
.category-list::-webkit-scrollbar { display: none; }
.category-list .category-link { flex: 0 0 auto; white-space: nowrap; font-size: 14px; }
@media (min-width: 900px) {
  .category-list { flex-wrap: wrap; overflow: visible; justify-content: center; gap: 10px 10px; }
  .category-list .category-link { white-space: normal; text-align: center; }
}

/* =====================================================================
   SITE-WIDE GLASS STYLE, CENTRED FORMS, DESKTOP vs PHONE LAYOUT
   ===================================================================== */

/* Background for every page */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(240,170,180,.45) 0, transparent 36%),
    radial-gradient(circle at 92% 16%, rgba(170,200,255,.45) 0, transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(250,220,170,.4) 0, transparent 40%),
    linear-gradient(160deg, #fbf5f2 0%, #eef2fa 100%);
  background-attachment: scroll;
  color: #1f1f1f;
}

/* Glass surfaces */
.site-header, header.auth-top, .landing-top {
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.8) !important;
  box-shadow: 0 6px 24px rgba(31,38,135,.07);
}
.auth-card, .panel, .stat, .notice, .transfer-panel, .empty-state, .dash-side, .dash-main, .checkout-section, .products-section {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 10px 32px rgba(31,38,135,.10);
  border-radius: 20px;
}
.stat { padding: 16px; text-align: left; }
.stat b { font-size: 26px; font-weight: 800; display: block; color: #741f2b; }
.stat small { color: #555; font-size: 13px; }
.notice.show { background: rgba(255,246,214,.7); border: 1px solid rgba(230,200,120,.6); color: #5a4300; padding: 12px 14px; }
.button, .btn-small, .btn-green, .auth-submit {
  box-shadow: 0 6px 18px rgba(116,31,43,.22);
  border-radius: 999px;
}
input, select, textarea {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(190,190,200,.7);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #1f1f1f;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #741f2b; box-shadow: 0 0 0 3px rgba(116,31,43,.15); }

/* Sign-in and create-account pages: centred, one column */
.auth-layout {
  display: grid; grid-template-columns: 1fr; justify-items: center; align-content: start;
  gap: 24px; min-height: calc(100vh - 80px); padding: 32px 16px 56px;
}
.auth-intro { text-align: center; max-width: 640px; margin: 0 auto; }
.auth-intro h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 12px; }
.auth-intro p { color: #4d4d4d; line-height: 1.6; }
.auth-card { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px; }
.auth-card h2 { margin-top: 0; text-align: center; }
.auth-card .card-sub { text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #741f2b; }
main[style*="max-width:420px"] { margin: 56px auto !important; padding: 0 16px !important; }
main[style*="max-width:420px"] > * { background: rgba(255,255,255,.55); border-radius: 20px; }

/* Dashboards: sidebar on desktop, scrolling tabs on phones */
:has(> .dash-side) {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px;
}
.dash-side { padding: 10px; }
#dashNav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
#dashNav::-webkit-scrollbar { display: none; }
#dashNav a { white-space: nowrap; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: #2a2a2a; font-weight: 700; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); }
#dashNav a.active { background: #741f2b; color: #fff; }
.dash-main { padding: 18px; min-height: 60vh; }
.dash-main h2 { margin-top: 0; }

/* Phones: stay compact */
@media (max-width: 899px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth-card { padding: 22px; }
}

/* Tablets and desktops: real sidebar, bigger text, wider content */
@media (min-width: 900px) {
  html { font-size: 17px; }
  :has(> .dash-side) { grid-template-columns: 240px minmax(0,1fr); padding: 24px 32px; align-items: start; }
  .dash-side { position: sticky; top: 96px; }
  #dashNav { flex-direction: column; overflow: visible; }
  #dashNav a { border-radius: 14px; }
  .dash-main { padding: 28px 32px; }
  .auth-layout { grid-template-columns: 1fr; padding-top: 48px; }
  .auth-intro h1 { font-size: 44px; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  main, .container, .help-page, .checkout-page { max-width: 1200px; }
}
@media (min-width: 1280px) {
  html { font-size: 18px; }
  :has(> .dash-side) { grid-template-columns: 260px minmax(0,1fr); }
}

/* =====================================================================
   FINAL LAYOUT PASS: compact on phones, full sidebar from 700px up
   ===================================================================== */

/* ---- Product cards: compact on phones ---- */
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card { border-radius: 14px; }
.product-card .product-image { aspect-ratio: 4 / 3; max-height: 150px; }
.product-card .product-info { padding: 8px 10px 0; }
.product-card .vendor-name { font-size: 11px; margin-bottom: 2px; }
.product-card .product-info h3,
.product-card .product-info strong,
.product-card .product-info .product-name { font-size: 14px; line-height: 1.3; margin: 0; }
.product-card .product-bottom { padding: 8px 10px 10px; gap: 6px; }
.product-card .product-bottom .product-price { font-size: 14px; padding: 4px 8px; }
.product-card .add-button { font-size: 12px; padding: 7px 11px; }
.product-card .sold-out-tag { font-size: 12px; padding: 5px 10px; }
.size-select { font-size: 12px; padding: 6px 8px; margin: 0 10px 6px; width: calc(100% - 20px); }
.was-price { font-size: 11px; }

/* ---- Tablets and desktops (700px and up) ---- */
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .product-card { border-radius: 20px; }
  .product-card .product-image { aspect-ratio: 1 / 1; max-height: none; }
  .product-card .product-info { padding: 14px 16px 0; }
  .product-card .vendor-name { font-size: 13px; }
  .product-card .product-info h3,
  .product-card .product-info strong,
  .product-card .product-info .product-name { font-size: 17px; }
  .product-card .product-bottom { padding: 12px 16px 16px; }
  .product-card .product-bottom .product-price { font-size: 17px; padding: 6px 12px; }
  .product-card .add-button { font-size: 14px; padding: 10px 16px; }
  .size-select { font-size: 14px; padding: 9px 12px; margin: 0 16px 8px; width: calc(100% - 32px); }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}

/* ---- Dashboards: sidebar on tablets and desktops ---- */
.dash { max-width: none; margin: 0; padding: 0; }
@media (min-width: 700px) {
  .dash { display: grid !important; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; align-items: start; }
  .dash-side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    border-bottom: 0; border-right: 1px solid rgba(255,255,255,.8);
    padding: 24px 16px; border-radius: 0;
  }
  .dash-side nav { flex-direction: column; overflow: visible; gap: 6px; }
  .dash-side nav a { padding: 12px 16px; font-size: 15px; border-radius: 12px; }
  .dash-main { padding: 32px 40px 72px; max-width: none; min-width: 0; }
  .dash-main h2 { font-size: 28px; }
  .dash-main .section-description { font-size: 15px; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat b { font-size: 28px; }
  .table-wrap { overflow-x: auto; }
  table { font-size: 14px; }
}
@media (min-width: 1280px) {
  .dash { grid-template-columns: 270px minmax(0, 1fr); }
  .dash-main { padding: 40px 56px 80px; }
}

/* =====================================================================
   BREAKPOINTS (final): phone 2 per row, tablet 3, desktop 4.
   Sidebar from 600px. Desktop-site mode on a phone is about 980px wide,
   so it gets the sidebar and four cards per row.
   ===================================================================== */
@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .product-card .product-image { aspect-ratio: 1 / 1; max-height: none; }
  .dash { display: grid !important; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; align-items: start; }
  .dash-side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    border-bottom: 0; border-right: 1px solid rgba(255,255,255,.8);
    padding: 24px 16px; border-radius: 0;
  }
  .dash-side nav { flex-direction: column; overflow: visible; gap: 6px; }
  .dash-side nav a { padding: 12px 16px; font-size: 15px; border-radius: 12px; }
  .dash-main { padding: 28px 32px 72px; max-width: none; min-width: 0; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .product-card .product-info h3,
  .product-card .product-info strong,
  .product-card .product-info .product-name { font-size: 17px; }
  .product-card .product-bottom .product-price { font-size: 17px; }
  .dash { grid-template-columns: 260px minmax(0, 1fr); }
  .dash-main { padding: 36px 44px 80px; }
  .dash-main h2 { font-size: 28px; }
}

/* =====================================================================
   DARK THEME (shop toggle): everything goes dark, nothing stays white
   ===================================================================== */
html.dark-theme {
  background:
    radial-gradient(circle at 10% 10%, rgba(116,31,43,.35) 0, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(60,80,140,.28) 0, transparent 40%),
    #101015 !important;
  color: #e8e8ee !important;
}
html.dark-theme header, html.dark-theme .site-header, html.dark-theme .landing-top,
html.dark-theme .category-list, html.dark-theme .products-section, html.dark-theme .product-card,
html.dark-theme .search, html.dark-theme .mobile-search, html.dark-theme .panel, html.dark-theme .stat,
html.dark-theme .notice, html.dark-theme .dash-side, html.dark-theme .dash-main, html.dark-theme .auth-card,
html.dark-theme .empty-state, html.dark-theme .transfer-panel, html.dark-theme .table-wrap,
html.dark-theme .checkout-section, html.dark-theme footer, html.dark-theme .landing-foot,
html.dark-theme .cart-drawer, html.dark-theme .cart-panel, html.dark-theme .menu-panel,
html.dark-theme .step-card, html.dark-theme .hero-points li, html.dark-theme .cta-band,
html.dark-theme .dash, html.dark-theme .section-heading {
  background: rgba(28,28,36,.78) !important;
  color: #e8e8ee !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
}
html.dark-theme .product-card { background: rgba(32,32,42,.85) !important; }
html.dark-theme .product-card .product-image { background: #1c1c24 !important; }
html.dark-theme input, html.dark-theme select, html.dark-theme textarea {
  background: rgba(42,42,54,.95) !important; color: #f2f2f6 !important; border-color: rgba(255,255,255,.14) !important;
}
html.dark-theme input::placeholder, html.dark-theme textarea::placeholder { color: #9a9aaa !important; }
html.dark-theme select option { background: #1c1c24; color: #f2f2f6; }
html.dark-theme .category-link {
  background: rgba(50,50,62,.85) !important; color: #e8e8ee !important; border-color: rgba(255,255,255,.14) !important;
}
html.dark-theme .category-link.selected { background: #8c2a36 !important; color: #fff !important; }
html.dark-theme .muted, html.dark-theme .section-description, html.dark-theme .vendor-name,
html.dark-theme .card-sub, html.dark-theme .eyebrow, html.dark-theme small, html.dark-theme .meta {
  color: #a9a9b8 !important;
}
html.dark-theme .product-card .product-bottom .product-price { background: rgba(255,255,255,.08) !important; color: #ffb3bd !important; }
html.dark-theme .was-price { color: #8a8a98 !important; }
html.dark-theme .notice.show { background: rgba(120,90,20,.35) !important; color: #ffe9a8 !important; }
html.dark-theme table, html.dark-theme th, html.dark-theme td { color: #e8e8ee !important; border-color: rgba(255,255,255,.1) !important; }
html.dark-theme a { color: #ffb3bd; }
html.dark-theme h1, html.dark-theme h2, html.dark-theme h3, html.dark-theme strong, html.dark-theme b { color: #f4f4f8; }
html.dark-theme .add-button { background: #8c2a36 !important; color: #fff !important; }
html.dark-theme .sold-out-tag { background: rgba(255,255,255,.14) !important; color: #f2f2f6 !important; }
html.dark-theme .search button { background: #8c2a36 !important; }
html.dark-theme .theme-switch { background: #55555f; }

/* =====================================================================
   DESKTOP SCROLLING AND CROWDING
   ===================================================================== */
/* Categories: one tidy scrolling row on every screen */
.category-list {
  flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important;
  scrollbar-width: none;
}
.category-list .category-link { white-space: nowrap; font-size: 13px; padding: 8px 14px !important; }
@media (min-width: 900px) {
  .category-list { padding: 8px; }
  .category-list .category-link { font-size: 14px; }
}

/* Sidebar scrolls on its own, and the main content scrolls normally */
@media (min-width: 600px) {
  .dash-side { height: auto !important; max-height: calc(100vh - 32px); top: 16px; overflow-y: auto; }
  .dash { min-height: 0 !important; }
}

/* ===== Dark theme on every page ===== */
html.dark-theme body, html.dark-theme body.landing-page { background: transparent !important; }
html.dark-theme { color-scheme: dark; }
html.dark-theme 
/* ===== Smaller product cards on phones ===== */
@media (max-width: 599px) {
  .product-grid { gap: 8px; }
  .product-card { border-radius: 12px; }
  .product-card .product-image { aspect-ratio: 5 / 4; max-height: 118px; }
  .product-card .product-info { padding: 6px 8px 0; }
  .product-card .vendor-name { font-size: 10px; }
  .product-card .product-info h3, .product-card .product-info strong, .product-card .product-info .product-name { font-size: 12.5px; }
  .product-card .product-bottom { padding: 6px 8px 8px; }
  .product-card .product-bottom .product-price { font-size: 12.5px; padding: 3px 6px; }
  .product-card .add-button { font-size: 11px; padding: 6px 9px; }
  .size-select { font-size: 11px; padding: 4px 6px; margin: 0 8px 4px; width: calc(100% - 16px); }
}

/* ===== Desktop: wide and roomy ===== */
@media (min-width: 900px) {
  main, .container, .help-page, .checkout-page, header .container, .header-main { max-width: 1600px !important; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 26px !important; }
  .product-card .product-image { aspect-ratio: 4 / 3 !important; }
  .product-card .product-info { padding: 18px 20px 0; }
  .product-card .product-info h3, .product-card .product-info strong, .product-card .product-info .product-name { font-size: 19px !important; }
  .product-card .vendor-name { font-size: 14px; }
  .product-card .product-bottom { padding: 14px 20px 20px; }
  .product-card .product-bottom .product-price { font-size: 19px !important; }
  .product-card .add-button { font-size: 15px; padding: 11px 20px; }
  .size-select { font-size: 15px; padding: 10px 14px; margin: 0 20px 10px; width: calc(100% - 40px); }
  .products-section { padding: 28px; }
  .section-heading h2 { font-size: 30px; }
  .dash-main { padding: 40px 56px 90px; }
  .dash { grid-template-columns: 280px minmax(0, 1fr) !important; }
  .category-list .category-link { font-size: 15px; padding: 10px 18px !important; }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
