:root {
  --bg-0: #06080c;
  --bg-1: #0d1017;
  --bg-2: #141a25;
  --bg-3: #1b2230;
  --text-1: #f2f5fc;
  --text-2: #c8cfdf;
  --muted: #8a94a8;
  --line: rgba(196, 206, 229, 0.22);
  --accent: #f0b153;
  --accent-2: #cb4318;
  --danger: #84291d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at 12% 4%, rgba(240, 177, 83, 0.12), transparent 28%),
    radial-gradient(circle at 88% 7%, rgba(80, 118, 185, 0.12), transparent 24%),
    linear-gradient(180deg, #04060a 0%, #070b12 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1320px, calc(100% - 1.2rem));
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 17, 26, 0.96), rgba(19, 25, 35, 0.94));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.promo-strip {
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 177, 83, 0.26);
  background: linear-gradient(90deg, rgba(28, 15, 8, 0.97), rgba(32, 17, 10, 0.97));
}

.promo-track {
  width: max-content;
  display: flex;
  gap: 2rem;
  padding: 0.45rem 0;
  white-space: nowrap;
  will-change: transform;
  animation: promo-scroll 22s linear infinite;
}

.promo-track span {
  color: #ffd9a7;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  white-space: nowrap;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.45rem 0.7rem;
  background: rgba(7, 10, 16, 0.9);
}

.top-search {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.top-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 10, 17, 0.85);
  color: var(--text-1);
  padding: 0.6rem 0.95rem;
  font: inherit;
}

.top-search input::placeholder {
  color: var(--muted);
}

.theme-toggle {
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  line-height: 1;
  color: #f0f4ff;
  background: rgba(12, 17, 26, 0.88);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(240, 177, 83, 0.5);
}

.top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.profile-wrap {
  position: relative;
}

.profile-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.54rem 0.82rem;
  color: #e9f0ff;
  font-weight: 700;
  cursor: pointer;
  background: rgba(14, 20, 31, 0.92);
}

.profile-button:hover {
  border-color: rgba(240, 177, 83, 0.45);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.42rem);
  right: 0;
  width: min(240px, 72vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  background: rgba(10, 14, 22, 0.98);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  z-index: 85;
}

.profile-menu-label {
  margin: 0;
  font-size: 0.84rem;
  color: #c9d4e8;
}

.profile-menu-action {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.5rem 0.55rem;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #121826, #3f2216 65%, #b75122);
}

.cart-button {
  border: 1px solid rgba(240, 177, 83, 0.45);
  border-radius: 999px;
  padding: 0.54rem 0.88rem;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(92deg, #151a26, #3f2216 62%, #bd5624);
}

.main-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.45rem 0.45rem 0.95rem;
  background: rgba(7, 10, 16, 0.9);
}

.main-nav::-webkit-scrollbar {
  height: 0;
}

.nav-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 21, 0.85);
  color: #d6deef;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.48rem 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.nav-chip.active,
.nav-chip:hover {
  border-color: rgba(240, 177, 83, 0.5);
  color: #fff2dd;
  background: linear-gradient(90deg, rgba(240, 177, 83, 0.25), rgba(203, 67, 24, 0.2));
}

.hero {
  padding: 1.25rem 0 0.9rem;
}

.hero-main {
  padding: clamp(1rem, 2.7vw, 1.8rem);
}

.eyebrow {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.14rem;
  font-size: 0.88rem;
  color: #ffc883;
}

h1 {
  margin: 0.42rem 0 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-main p {
  margin: 0.85rem 0 0;
  max-width: 56ch;
  color: var(--text-2);
}

.hero-tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-weight: 700;
  font-size: 0.74rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 1rem;
  border-radius: 12px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.shop-categories {
  padding: 0.35rem 0 0.85rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.72rem;
}

.section-title-row h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.view-all-link {
  text-transform: uppercase;
  color: #ffd8a6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.category-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 0.9rem;
  min-height: 132px;
  display: flex;
  align-items: end;
  justify-content: start;
  text-align: left;
  cursor: pointer;
  color: #fff;
  transition: transform 180ms ease, border-color 180ms ease;
  background: linear-gradient(145deg, rgba(17, 22, 33, 0.95), rgba(13, 17, 26, 0.95));
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 177, 83, 0.45);
}

.category-label {
  font-family: "Oswald", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.03rem;
}

.tone-one {
  background:
    linear-gradient(135deg, rgba(240, 177, 83, 0.18), rgba(10, 13, 20, 0.95)),
    linear-gradient(160deg, #111724, #1b2230);
}

.tone-two {
  background:
    linear-gradient(135deg, rgba(203, 67, 24, 0.22), rgba(10, 13, 20, 0.95)),
    linear-gradient(160deg, #111724, #1b2230);
}

.tone-three {
  background:
    linear-gradient(135deg, rgba(117, 154, 214, 0.17), rgba(10, 13, 20, 0.95)),
    linear-gradient(160deg, #111724, #1b2230);
}

.tone-four {
  background:
    linear-gradient(135deg, rgba(168, 176, 193, 0.14), rgba(10, 13, 20, 0.95)),
    linear-gradient(160deg, #111724, #1b2230);
}

.catalog-wrap {
  padding: 0.25rem 0 2rem;
}

.catalog-controls {
  padding: 1rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0.7rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.74rem;
  background: rgba(8, 11, 18, 0.94);
  color: #e7edf9;
  font: inherit;
}

.product-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 0.9rem;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(11, 15, 24, 0.98), rgba(18, 24, 35, 0.97));
  color: #fff;
  display: flex;
  flex-direction: column;
  animation: card-in 480ms ease both;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-image-link {
  display: block;
  background: #1e2531;
}

.product-image-link img {
  transition: transform 180ms ease;
}

.card:hover .product-image-link img {
  transform: scale(1.025);
}

.card-body {
  padding: 0.78rem 0.8rem 0.9rem;
}

.pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff0dc;
  background: rgba(240, 177, 83, 0.24);
}

.card h4 {
  margin: 0.55rem 0 0.36rem;
  font-size: 1.04rem;
}

.product-name-link:hover {
  color: #ffd4a0;
  text-decoration: underline;
}

.card p {
  margin: 0;
  min-height: 42px;
  color: #cbd4e6;
  font-size: 0.88rem;
}

.card-meta {
  margin-top: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card button {
  border: none;
  border-radius: 9px;
  padding: 0.45rem 0.62rem;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, #121826, #3f2216 65%, #b75122);
}

.about-section {
  padding: 1rem;
  margin-bottom: 2rem;
}

.about-section h3 {
  margin-top: 0;
  font-family: "Oswald", sans-serif;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.72rem;
}

.feature-row article {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.feature-row h4 {
  margin: 0 0 0.35rem;
  color: #fff2e1;
}

.feature-row p {
  margin: 0;
  color: #cad4e8;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 70;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  z-index: 80;
  transform: translateX(102%);
  transition: transform 220ms ease;
  border-left: 1px solid var(--line);
  background: linear-gradient(175deg, #111827, #1a2435);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-drawer.open {
  transform: translateX(0%);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.close-btn {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-items {
  padding: 0.8rem;
  overflow-y: auto;
}

.cart-item {
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item small {
  color: #cad3e6;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.qty-row button {
  border: none;
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  background: #0f1520;
  color: #fff;
}

.qty-row .danger {
  background: var(--danger);
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 1rem;
  background: rgba(13, 18, 27, 0.7);
}

.cart-summary p {
  margin: 0 0 0.45rem;
  display: flex;
  justify-content: space-between;
}

.total-line {
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  border-radius: 9px;
  padding: 0.68rem;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.checkout-dialog {
  width: min(580px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1rem;
  color: #ecf1f9;
  background: #101726;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.checkout-dialog h3 {
  margin-top: 0.2rem;
  font-family: "Oswald", sans-serif;
}

.checkout-shell {
  display: grid;
  gap: 0.7rem;
}

.checkout-step {
  display: grid;
  gap: 0.65rem;
}

.checkout-step[hidden],
.checkout-shell > form[hidden] {
  display: none !important;
}

.step-copy {
  margin: 0;
  color: #c8d3e7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(17, 24, 36, 0.75);
  color: #ecf2fc;
  font-weight: 700;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}

.tab-btn.active {
  border-color: rgba(240, 177, 83, 0.5);
  background: linear-gradient(90deg, rgba(203, 67, 24, 0.3), rgba(240, 177, 83, 0.25));
}

.auth-form {
  display: grid;
  gap: 0.65rem;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.text-link-btn {
  justify-self: start;
  border: none;
  background: transparent;
  color: #ffd7a4;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link-btn:hover {
  color: #ffe7c6;
}

.auth-submit {
  justify-self: start;
}

.auth-actions {
  justify-content: space-between;
  align-items: center;
}

.auth-actions .btn-primary,
.auth-actions .btn-secondary {
  min-width: 138px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.form-grid input[name="address"],
.form-grid select {
  grid-column: 1 / -1;
}

.signed-in-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
}

.signed-in-row p {
  margin: 0;
  color: #d6e0f3;
  font-size: 0.92rem;
}

.saved-addresses {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
}

.saved-addresses[hidden] {
  display: none !important;
}

.address-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.saved-addresses-list {
  display: grid;
  gap: 0.45rem;
}

.address-option {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.5rem 0.55rem;
}

.address-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.52rem;
  width: 100%;
  cursor: pointer;
}

.address-option input[type="radio"] {
  margin-top: 0.18rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-2);
}

.address-option strong {
  display: block;
  margin-bottom: 0.18rem;
}

.address-option small {
  color: #c6d0e4;
}

.address-option-actions {
  margin-top: 0.45rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.42rem;
}

.address-mini-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 22, 34, 0.88);
  color: #e9f0ff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
}

.address-mini-btn.danger {
  background: rgba(132, 41, 29, 0.9);
  border-color: rgba(210, 113, 101, 0.45);
}

.address-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.address-edit-grid input[data-edit-field="address"] {
  grid-column: 1 / -1;
}

.address-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.address-grid[hidden] {
  display: none !important;
}

.address-grid input[name="address"] {
  grid-column: 1 / -1;
}

.payment-methods {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.payment-methods label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #e6edf6;
  font-weight: 600;
}

.payment-methods input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent-2);
}

.checkout-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 9px;
  padding: 0.58rem 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #181e2c;
  color: #fff;
}

.btn-secondary {
  background: #2a3345;
  color: #edf2f9;
}

.checkout-message {
  margin: 0.7rem 0 0;
  min-height: 20px;
  color: #68dc9b;
  font-weight: 700;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #ced8e6;
  padding: 0.8rem;
}

@keyframes promo-scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "toggle actions"
      "search search";
  }

  .theme-toggle {
    grid-area: toggle;
    justify-self: start;
  }

  .top-actions {
    grid-area: actions;
  }

  .top-search {
    grid-area: search;
    max-width: 100%;
  }

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

body.light-mode {
  color: #111724;
  background:
    radial-gradient(circle at 12% 4%, rgba(240, 177, 83, 0.16), transparent 30%),
    radial-gradient(circle at 88% 7%, rgba(80, 118, 185, 0.15), transparent 28%),
    linear-gradient(180deg, #f2f5fb 0%, #e8edf6 100%);
}

body.light-mode .topbar,
body.light-mode .promo-strip,
body.light-mode .site-head,
body.light-mode .main-nav,
body.light-mode .panel,
body.light-mode .card,
body.light-mode .catalog-controls,
body.light-mode .about-section,
body.light-mode .feature-row article,
body.light-mode .category-card,
body.light-mode .cart-summary,
body.light-mode .cart-drawer,
body.light-mode .cart-item,
body.light-mode .checkout-dialog {
  color: #111724;
  border-color: rgba(30, 42, 66, 0.22);
  background: rgba(246, 249, 255, 0.92);
}

body.light-mode .top-search input,
body.light-mode input,
body.light-mode select,
body.light-mode .theme-toggle {
  color: #111724;
  border-color: rgba(30, 42, 66, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .top-search input::placeholder,
body.light-mode input::placeholder {
  color: #6a7892;
}

body.light-mode .promo-strip {
  background: linear-gradient(90deg, rgba(255, 242, 226, 0.98), rgba(255, 234, 214, 0.98));
}

body.light-mode .promo-track span {
  color: #8d3f11;
}

body.light-mode .hero-tags span,
body.light-mode .pill {
  border-color: rgba(30, 42, 66, 0.26);
  color: #21314c;
  background: rgba(240, 177, 83, 0.18);
}

body.light-mode .hero-main {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  border-color: rgba(30, 42, 66, 0.25);
}

body.light-mode .hero-main p {
  color: #3c4d68;
}

body.light-mode .hero-cta {
  color: #fff;
  background: linear-gradient(90deg, #cd4a1e, #f0b153);
}

body.light-mode .shop-categories {
  padding-top: 0.55rem;
}

body.light-mode .category-card {
  border-color: rgba(30, 42, 66, 0.22);
  box-shadow: 0 10px 20px rgba(53, 74, 112, 0.08);
}

body.light-mode .category-label {
  color: #1b2a44;
}

body.light-mode .tone-one {
  background:
    linear-gradient(135deg, rgba(240, 177, 83, 0.22), rgba(255, 255, 255, 0.95)),
    linear-gradient(160deg, #f5f8fd, #edf3fb);
}

body.light-mode .tone-two {
  background:
    linear-gradient(135deg, rgba(205, 74, 30, 0.2), rgba(255, 255, 255, 0.95)),
    linear-gradient(160deg, #f5f8fd, #edf3fb);
}

body.light-mode .tone-three {
  background:
    linear-gradient(135deg, rgba(80, 118, 185, 0.2), rgba(255, 255, 255, 0.95)),
    linear-gradient(160deg, #f5f8fd, #edf3fb);
}

body.light-mode .tone-four {
  background:
    linear-gradient(135deg, rgba(109, 124, 154, 0.18), rgba(255, 255, 255, 0.95)),
    linear-gradient(160deg, #f5f8fd, #edf3fb);
}

body.light-mode .card p,
body.light-mode .feature-row p,
body.light-mode .cart-item small,
body.light-mode .empty-state {
  color: #354560;
}

body.light-mode .feature-row h4,
body.light-mode .about-section h3,
body.light-mode .card h4,
body.light-mode .total-line,
body.light-mode .cart-header h3 {
  color: #111724;
}

body.light-mode .product-image-link {
  background: #eef3fb;
}

body.light-mode .cart-button,
body.light-mode .card button,
body.light-mode .checkout-btn {
  border-color: rgba(129, 66, 22, 0.32);
  color: #fff;
  background: linear-gradient(90deg, #cd4a1e, #f0b153);
}

body.light-mode .profile-button {
  color: #1b2a44;
  border-color: rgba(30, 42, 66, 0.26);
  background: rgba(255, 255, 255, 0.94);
}

body.light-mode .profile-menu {
  border-color: rgba(30, 42, 66, 0.22);
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode .profile-menu-label {
  color: #3e4f6a;
}

body.light-mode .checkout-dialog {
  border-color: rgba(30, 42, 66, 0.24);
  background: #f7f9ff;
  box-shadow: 0 24px 58px rgba(28, 42, 67, 0.22);
}

body.light-mode .qty-row button,
body.light-mode .btn-secondary,
body.light-mode .tab-btn {
  background: #e7edf8;
  color: #1f2d49;
}

body.light-mode .btn-primary,
body.light-mode .profile-menu-action {
  color: #fff;
  border-color: rgba(129, 66, 22, 0.32);
  background: linear-gradient(90deg, #cd4a1e, #f0b153);
}

body.light-mode .text-link-btn {
  color: #9a3f11;
}

body.light-mode .btn-primary:hover,
body.light-mode .profile-menu-action:hover {
  filter: brightness(1.03);
}

body.light-mode .tab-btn.active {
  border-color: rgba(205, 74, 30, 0.35);
  background: linear-gradient(90deg, rgba(205, 74, 30, 0.16), rgba(240, 177, 83, 0.22));
}

body.light-mode .step-copy,
body.light-mode .signed-in-row p {
  color: #3d4f6a;
}

body.light-mode .saved-addresses {
  border-color: rgba(30, 42, 66, 0.22);
  background: rgba(255, 255, 255, 0.85);
}

body.light-mode .address-option {
  border-color: rgba(30, 42, 66, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

body.light-mode .address-title,
body.light-mode .payment-methods label {
  color: #1f2d49;
}

body.light-mode .address-mini-btn {
  border-color: rgba(30, 42, 66, 0.22);
  background: #e7edf8;
  color: #1f2d49;
}

body.light-mode .address-mini-btn.danger {
  border-color: rgba(179, 62, 49, 0.4);
  background: #c74a3a;
  color: #fff;
}

body.light-mode .address-option small {
  color: #475b78;
}

body.light-mode .qty-row .danger {
  background: #c74a3a;
  color: #fff;
}

body.light-mode .close-btn {
  color: #1f2d49;
}

body.light-mode .checkout-dialog::backdrop {
  background: rgba(37, 49, 74, 0.46);
}

body.light-mode .view-all-link,
body.light-mode .eyebrow,
body.light-mode .section-title-row h2 {
  color: #8a360c;
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 1.2rem);
  }

  .promo-track {
    gap: 1.3rem;
  }

  .promo-track span {
    font-size: 0.72rem;
  }

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

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

  .address-edit-grid {
    grid-template-columns: 1fr;
  }

  .form-grid input[name="address"],
  .form-grid select {
    grid-column: auto;
  }

  .category-card {
    min-height: 112px;
  }

  .card img {
    height: 210px;
  }
}
