:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --panel: #fffdfa;
  --ink: #101522;
  --muted: #687083;
  --line: #e3ddd3;
  --brand: #101522;
  --brand-dark: #070a12;
  --accent: #d9af58;
  --accent-strong: #f4c96c;
  --teal: #0f766e;
  --coral: #d95b43;
  --soft: #f7f3ea;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(16, 21, 34, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(217, 175, 88, 0.18) 0%, rgba(244, 240, 232, 0) 34%),
    linear-gradient(225deg, rgba(15, 118, 110, 0.12) 0%, rgba(244, 240, 232, 0) 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(14px, 4vw, 48px);
  background: rgba(255, 252, 246, 0.9);
  border-bottom: 1px solid rgba(16, 21, 34, 0.08);
  box-shadow: 0 12px 34px rgba(16, 21, 34, 0.08);
  backdrop-filter: blur(16px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal), #5b6ee1, var(--coral));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 96px;
  height: 66px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.cart-button,
.primary-button,
.whatsapp-button,
.secondary-button,
.danger-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid rgba(16, 21, 34, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 21, 34, 0.05);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #101522, #1d2435);
  color: #fff;
  box-shadow: 0 14px 28px rgba(16, 21, 34, 0.22);
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: var(--ink);
}

.shop-head {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #080d18;
  color: #fff;
}

.shop-head::after {
  display: none;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

.shop-head > .hero-banner-img + div {
  position: relative;
  display: block;
  min-height: 82px;
  padding: 19px calc(clamp(14px, 4vw, 48px) + min(360px, 29vw) + 22px) 17px clamp(14px, 4vw, 48px);
  background: #080d18;
  white-space: nowrap;
  overflow: hidden;
}

.shop-head > .hero-banner-img + div .eyebrow {
  display: none;
}

.shop-head > .hero-banner-img + div h1 {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(21px, 2.08vw, 29px);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 0;
  color: inherit;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
}

.shop-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.shop-tools {
  position: absolute;
  right: clamp(14px, 4vw, 48px);
  bottom: 12px;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(360px, calc(100% - 28px));
  margin-left: auto;
  margin-right: 0;
}

.shop-head:has(.hero-banner-img) .shop-tools {
  bottom: 9px;
}

.search-box,
.field {
  display: grid;
  gap: 7px;
}

.search-box span,
.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.shop-head .search-box span {
  color: rgba(255, 255, 255, 0.78);
}

.search-box input,
.search-box select,
.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16, 21, 34, 0.11);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.shop-head .search-box input {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.shop-head .search-box input::placeholder {
  color: #7b8497;
}

.search-box input:focus,
.search-box select:focus,
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 175, 88, 0.22);
}

.catalog-wrap {
  padding: 18px clamp(14px, 4vw, 48px) 58px;
}

.brand-tabs {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 16px;
  background: rgba(244, 240, 232, 0.9);
  border-bottom: 1px solid rgba(16, 21, 34, 0.09);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}

.brand-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  white-space: nowrap;
  border: 1px solid rgba(16, 21, 34, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--tone-a, #111827) 42%, #fff), color-mix(in srgb, var(--tone-b, #d9af58) 36%, #fff)) border-box;
  color: var(--ink);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16, 21, 34, 0.06);
}

.brand-tab span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone-b, #d9af58) 18%, #f7f3ea);
  color: var(--muted);
  font-size: 11px;
}

.brand-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--tone-a, #101522), var(--tone-b, #d9af58));
  color: #fff;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--tone-a, #101522) 28%, transparent);
}

.brand-tab.is-active span {
  background: var(--accent-strong);
  color: var(--ink);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(16, 21, 34, 0.08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(16, 21, 34, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone-b, #d9af58) 46%, #fff);
  box-shadow: 0 18px 34px rgba(16, 21, 34, 0.14);
}

.product-image {
  position: relative;
  display: grid;
  height: 158px;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--tone-a, #0f766e) 7%, #f9fafb), color-mix(in srgb, var(--tone-b, #d9af58) 10%, #ffffff));
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone-a, #0f766e) 22%, transparent), transparent 55%);
  opacity: 0.2;
}

.product-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stock-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(16, 21, 34, 0.88);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.product-body {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 152px;
  padding: 12px;
  border-top: 3px solid var(--tone-b, var(--accent));
}

.category {
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone-b, #d9af58) 17%, #fff);
  color: color-mix(in srgb, var(--tone-a, #101522) 74%, #111827);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 38px;
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.price {
  color: color-mix(in srgb, var(--tone-a, #101522) 82%, #111827);
  font-size: 12.5px;
  font-weight: 900;
}

.buy-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: center;
}

.quantity-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(16, 21, 34, 0.11);
  border-radius: 8px;
  padding: 0 9px;
  font-size: 14px;
  cursor: text;
}

.buy-row .primary-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.primary-button {
  background: linear-gradient(135deg, var(--tone-a, #101522), color-mix(in srgb, var(--tone-a, #101522) 72%, #000));
  color: #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--tone-a, #101522) 26%, transparent);
}

.primary-button:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone-b, #d9af58) 35%, var(--tone-a, #101522)), var(--tone-a, #101522));
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #a9b7b3;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(16, 21, 34, 0.46);
}

.drawer.is-open {
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(460px, 100%);
  height: 100%;
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 24px;
}

.cart-list {
  overflow: auto;
  padding: 10px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong {
  display: block;
  margin-bottom: 4px;
}

.cart-item small {
  color: var(--muted);
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cart-footer {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

.seller-choices {
  display: grid;
  gap: 10px;
}

.seller-choice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(16, 21, 34, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.seller-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(217, 175, 88, 0.18);
  transform: translateY(-1px);
}

.seller-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seller-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #c7c0b3;
  border-radius: 6px;
  background: #fff;
}

.seller-choice input:checked + .seller-check {
  border-color: #169b58;
  background: #169b58;
}

.seller-choice input:checked + .seller-check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.seller-choice strong,
.seller-choice small {
  display: block;
}

.seller-choice small,
.seller-empty {
  color: var(--muted);
}

.cart-addon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(16, 21, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.cart-addon input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.cart-addon strong,
.cart-addon small {
  display: block;
}

.cart-addon strong {
  font-size: 14px;
}

.cart-addon small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #169b58, #0f7a46);
  color: #fff;
}

.whatsapp-logo {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.modal {
  width: min(430px, calc(100vw - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(16, 21, 34, 0.46);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.product-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  box-shadow: var(--shadow);
}

.product-modal::backdrop {
  background: rgba(16, 21, 34, 0.58);
  backdrop-filter: blur(5px);
}

.product-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.95fr);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 8px;
  background: #fffdfa;
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
}

.product-modal-image {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(100vh - 48px);
  min-height: 440px;
  max-height: 680px;
  padding: 18px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.86), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--tone-a, #0f766e) 8%, #f9fafb), color-mix(in srgb, var(--tone-b, #d9af58) 12%, #ffffff));
}

.product-modal-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone-a, #0f766e) 24%, transparent), transparent 60%);
  opacity: 0.18;
}

.product-modal-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-modal-info {
  display: grid;
  align-content: start;
  gap: 16px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 44px);
  border-left: 5px solid var(--tone-b, var(--accent));
}

.product-modal-info h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.modal-price {
  color: color-mix(in srgb, var(--tone-a, #101522) 82%, #111827);
  font-size: 28px;
}

.product-modal-info p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}

.modal-buy-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin-top: 6px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-right: 48px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 800;
}

.tab.is-active {
  border-color: var(--accent);
  background: #fff7e5;
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  display: none;
  transform: translateX(-50%);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #263149);
  color: #fff;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.is-visible {
  display: block;
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    padding: 14px;
  }

  .brand-logo {
    width: 76px;
    height: 54px;
  }

  .nav-actions {
    gap: 6px;
  }

  .ghost-button,
  .cart-button {
    padding: 0 11px;
  }

  .shop-head {
    min-height: 0;
  }

  .shop-head::after {
    display: none;
  }

  .shop-tools {
    grid-template-columns: 1fr;
    position: static;
    width: calc(100% - 28px);
    margin: 10px 14px 12px;
    padding-top: 0;
  }

  .catalog-wrap {
    padding: 0 14px 34px;
  }

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-tabs {
    top: 73px;
    margin-inline: -14px;
    padding-inline: 14px;
  }

  h1 {
    max-width: none;
    font-size: 24px;
  }

  .shop-head > .hero-banner-img + div {
    min-height: 58px;
    padding: 10px 14px;
  }

  .shop-head > .hero-banner-img + div h1 {
    font-size: 18px;
    white-space: normal;
    line-height: 1.12;
  }

  .product-modal-card {
    grid-template-columns: 1fr;
  max-height: calc(100vh - 28px);
  }

  .product-modal-image {
    height: auto;
    min-height: 260px;
    max-height: 38vh;
    padding: 14px;
  }

  .product-modal-info {
    max-height: calc(62vh - 28px);
    border-left: 0;
    border-top: 5px solid var(--tone-b, var(--accent));
  }

  .modal-buy-row {
    grid-template-columns: 78px 1fr;
  }
}

.cart-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(16, 21, 34, 0.08);
  border-bottom: 1px solid rgba(16, 21, 34, 0.08);
  padding: 12px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.summary-row strong {
  color: var(--ink);
  white-space: nowrap;
}

.summary-row.is-added strong {
  color: var(--brand);
}
.entry-modal {
  width: min(880px, calc(100vw - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.entry-modal::backdrop {
  background: rgba(7, 14, 24, 0.62);
  backdrop-filter: blur(5px);
}

.entry-modal-card {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 175, 88, 0.42);
  border-radius: 10px;
  background: #fffaf2;
  box-shadow: 0 30px 90px rgba(7, 14, 24, 0.34);
}

.entry-modal-card img {
  display: block;
  width: 100%;
  max-height: min(78vh, 720px);
  object-fit: contain;
  background: #fffaf2;
}

.entry-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border-color: rgba(7, 14, 24, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(7, 14, 24, 0.14);
}

.entry-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(217, 175, 88, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(7, 14, 24, 0.16);
}

.entry-modal-prev {
  left: 14px;
}

.entry-modal-next {
  right: 14px;
}

.entry-modal-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.entry-modal-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.28);
  cursor: pointer;
}

.entry-modal-dots button.is-active {
  width: 24px;
  background: var(--accent);
}

@media (max-width: 720px) {
  .entry-modal {
    width: calc(100vw - 18px);
  }

  .entry-modal-nav {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}
.shipping-modal {
  width: min(760px, calc(100vw - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.shipping-modal::backdrop {
  background: rgba(7, 14, 24, 0.58);
  backdrop-filter: blur(5px);
}

.shipping-card {
  position: relative;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid rgba(217, 175, 88, 0.52);
  border-radius: 10px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 28px 80px rgba(7, 14, 24, 0.28);
}

.shipping-card h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.shipping-card .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shipping-grid .wide {
  grid-column: 1 / -1;
}

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

.shipping-actions .whatsapp-button {
  width: auto;
  min-width: 190px;
}

@media (max-width: 720px) {
  .shipping-grid {
    grid-template-columns: 1fr;
  }

  .shipping-actions,
  .shipping-actions .whatsapp-button {
    width: 100%;
  }
}
.catalog-layout {
  display: block;
}

.catalog-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-products {
  min-width: 0;
}

.subcategory-panel {
  position: sticky;
  top: 148px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 170px);
  overflow: auto;
  border: 1px solid rgba(16, 21, 34, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  padding: 14px;
  box-shadow: 0 14px 30px rgba(16, 21, 34, 0.08);
}

.subcategory-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 21, 34, 0.08);
}

.subcategory-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1;
}

.price-filter,
.brand-filter-block {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.price-filter h3,
.brand-filter-block h3 {
  margin: 0;
  color: #a9791e;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-filter-grid input,
.brand-filter-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(169, 121, 30, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.price-filter-grid input:focus,
.brand-filter-input:focus {
  border-color: #c6902f;
  box-shadow: 0 0 0 3px rgba(198, 144, 47, 0.14);
}

.price-filter-actions {
  display: grid;
  gap: 8px;
}

.price-filter-button,
.price-clear-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.price-filter-button {
  background: linear-gradient(135deg, #d9ae48, #b77918);
  color: #fff;
  box-shadow: 0 12px 22px rgba(183, 121, 24, 0.22);
}

.price-clear-button {
  border: 1px solid rgba(16, 21, 34, 0.08);
  background: #fff;
  color: var(--muted);
}

.price-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.subcategory-option-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.brand-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.subcategory-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 1px solid rgba(16, 21, 34, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.subcategory-option strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.subcategory-option.is-active {
  border-color: var(--accent-strong);
  background: linear-gradient(135deg, #101522, #18373a);
  color: #fff;
}

.subcategory-option.is-active strong {
  color: var(--accent);
}

@media (max-width: 860px) {
  .catalog-layout.has-sidebar {
    display: block;
  }

  .subcategory-panel {
    position: static;
    display: grid;
    max-height: none;
    overflow: visible;
    margin-bottom: 14px;
  }

  .subcategory-head {
    border-bottom: 1px solid rgba(16, 21, 34, 0.08);
    border-right: 0;
  }

  .subcategory-option-list {
    max-height: 220px;
  }
}

/* Nexus Power theme overrides */
:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --ink: #08111f;
  --muted: #617086;
  --line: #d9e1ec;
  --brand: #0b1730;
  --brand-dark: #030711;
  --accent: #d6a234;
  --accent-strong: #f0c75a;
  --teal: #136f8f;
  --coral: #c4472c;
  --soft: #f5f7fb;
  --shadow: 0 24px 60px rgba(8, 17, 31, 0.16);
}

body {
  background:
    linear-gradient(135deg, rgba(214, 162, 52, 0.16) 0%, rgba(238, 242, 247, 0) 32%),
    linear-gradient(225deg, rgba(26, 92, 170, 0.14) 0%, rgba(238, 242, 247, 0) 40%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 54%, #e7edf5 100%);
}

.topbar {
  min-height: 104px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(8, 17, 31, 0.1);
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.11);
}

.topbar::before {
  height: 4px;
  background: linear-gradient(90deg, #d6a234, #f0c75a 34%, #1451b8 68%, #08111f);
}

.brand-logo {
  width: 150px;
  height: 82px;
  filter: drop-shadow(0 10px 18px rgba(8, 17, 31, 0.12));
}

.ghost-button {
  border-color: rgba(8, 17, 31, 0.13);
  background: linear-gradient(180deg, #ffffff, #f6f8fb);
  color: var(--brand);
}

.cart-button,
.primary-button {
  background: linear-gradient(135deg, #091326, #14294d 56%, #07101f);
  box-shadow: 0 14px 28px rgba(8, 17, 31, 0.24);
}

.cart-button strong,
.brand-tab.is-active span {
  background: linear-gradient(135deg, #f3cf69, #d6a234);
  color: #08111f;
}

.shop-head {
  background: #050915;
}

.shop-head > .hero-banner-img + div {
  background: linear-gradient(90deg, #050915 0%, #0c1830 58%, #102f54 100%);
  border-top: 1px solid rgba(240, 199, 90, 0.18);
}

.shop-head > .hero-banner-img + div h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.shop-head .search-box input {
  border-color: rgba(240, 199, 90, 0.34);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(3, 7, 17, 0.26);
}

.catalog-wrap {
  background:
    radial-gradient(circle at top left, rgba(240, 199, 90, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(238, 242, 247, 0.72));
}

.brand-tabs {
  top: 104px;
  background: rgba(248, 250, 252, 0.94);
  border-bottom-color: rgba(8, 17, 31, 0.1);
}

.brand-tab {
  border-color: rgba(12, 24, 48, 0.12);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--tone-a, #12315e) 48%, #fff), color-mix(in srgb, var(--tone-b, #d6a234) 48%, #fff)) border-box;
  box-shadow: 0 8px 18px rgba(8, 17, 31, 0.07);
}

.brand-tab.is-active {
  background: linear-gradient(135deg, #0b1730, #1451b8 52%, #d6a234);
  box-shadow: 0 16px 32px rgba(20, 81, 184, 0.22);
}

.product-card {
  border-color: rgba(8, 17, 31, 0.09);
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.11);
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(8, 17, 31, 0.16);
}

.product-image {
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(135deg, rgba(20, 81, 184, 0.08), rgba(214, 162, 52, 0.13));
}

.stock-pill {
  background: linear-gradient(135deg, #08111f, #17325a);
  border: 1px solid rgba(240, 199, 90, 0.32);
}

.category {
  background: linear-gradient(135deg, rgba(240, 199, 90, 0.2), rgba(20, 81, 184, 0.09));
  color: #0b1730;
}

.price {
  color: #8a1717;
}

.price-filter-button,
.whatsapp-button {
  background: linear-gradient(135deg, #d6a234, #f0c75a 48%, #b67b17);
  color: #08111f;
}

.subcategory-panel {
  border-color: rgba(8, 17, 31, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.12);
}

.subcategory-head h2 {
  color: #0b1730;
}

.subcategory-option.is-active {
  border-color: #d6a234;
  background: linear-gradient(135deg, #091326, #14386b);
}

@media (max-width: 760px) {
  .topbar {
    min-height: 88px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 112px;
    height: 66px;
  }

  .brand-tabs {
    top: 88px;
  }
}
/* End Nexus Power theme overrides */
