:root {
  --bg: #f4f5f3;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eff2ef;
  --text: #171b18;
  --muted: #66716a;
  --dark-text: #171b18;
  --line: rgba(30, 40, 34, 0.14);
  --emerald: #0b8f68;
  --copper: #a97942;
  --copper-soft: #d6a86f;
  --danger: #d35b4d;
  --shadow: 0 22px 58px rgba(22, 31, 27, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(111, 124, 116, 0.22), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgba(11, 143, 104, 0.09), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f4f5f3 54%, #ecefec 100%);
  color: var(--text);
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

img {
  max-width: 100%;
  display: block;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(241, 244, 241, 0.9);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.age-gate.hidden {
  display: none;
}

.age-card,
.modal,
.auth-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 243, 241, 0.96));
  box-shadow: var(--shadow);
}

.age-card {
  width: min(440px, 100%);
  border-radius: 8px;
  padding: 34px;
  text-align: center;
}

.fine {
  color: var(--copper-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.age-card h1,
.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.age-card p:not(.fine),
.hero-copy p,
.section-heading p,
.account-copy p,
.tracking p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.age-actions,
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 20px;
  color: #191b17;
  background: linear-gradient(90deg, var(--copper-soft), #f8e4bc);
  font-size: 0.8rem;
  font-weight: 700;
}

.navbar {
  width: min(1220px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 40px rgba(41, 52, 46, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald), var(--copper));
  color: #fff;
}

.nav-links,
.nav-actions,
.filters,
.tabs,
.trust-row,
.footer-links {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 20px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-actions {
  gap: 10px;
}

.search {
  position: relative;
}

.search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search input,
.tracking-form input,
.auth-form input,
.profile-form input,
.profile-form textarea,
.seller-form input,
.seller-form select,
.seller-form textarea,
.checkout-form input,
.checkout-form textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

.search input {
  width: 190px;
  padding: 10px 12px;
}

.btn,
.icon-btn,
.cart-btn,
.filter,
.tab,
.close-btn,
.menu-toggle {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.btn:hover,
.icon-btn:hover,
.cart-btn:hover,
.filter:hover,
.tab:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, var(--emerald), #0b684e);
  color: #fff;
}

.secondary,
.icon-btn,
.cart-btn,
.filter,
.tab,
.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.cart-btn span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  background: var(--copper);
  border-radius: 99px;
  color: #fff;
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero {
  width: min(1220px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  min-height: auto;
  margin: 0 auto;
  display: block;
  padding: 36px 0 42px;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  top: 34px;
  max-width: min(650px, calc(100% - 68px));
  color: #fff;
}

.hero-copy p {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero-copy h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

.trust-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid rgba(169, 121, 66, 0.22);
  color: var(--copper);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #050505;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.38) 34%, rgba(0, 0, 0, 0.08) 68%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.25));
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.hero-note {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.hero-note sup {
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.floating-stat {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.floating-stat.top {
  top: 22px;
  left: 22px;
}

.floating-stat.bottom {
  right: 22px;
  bottom: 22px;
}

.service-strip,
.catalogue,
.account-section,
.tracking,
.reviews,
.site-footer {
  width: min(1220px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.mobile-tabbar {
  display: none;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.service-strip article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.service-strip strong,
.service-strip span {
  display: block;
}

.service-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.catalogue,
.account-section,
.tracking,
.reviews,
.reviews-section {
  padding: 66px 0 0;
}

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

.section-heading h2,
.account-copy h2,
.tracking h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
}

.section-heading p {
  max-width: 460px;
  margin: 0;
}

.filters {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter,
.tab {
  padding: 10px 14px;
}

.filter.active,
.tab.active {
  background: var(--surface-2);
  color: var(--dark-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  min-height: 398px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(169, 121, 66, 0.35);
  background: #fff;
}

.product-visual {
  height: 100%;
  min-height: 398px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(180, 190, 184, 0.34), transparent 44%),
    linear-gradient(145deg, #f9faf8, #e7ebe7);
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack {
  width: 96px;
  height: 130px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--pack-a), var(--pack-b));
  box-shadow: 14px 18px 30px rgba(0, 0, 0, 0.38);
  transform: rotate(-8deg);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stock {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.stock.in {
  background: rgba(14, 143, 104, 0.92);
  color: #fff;
}

.stock.out {
  background: rgba(211, 91, 77, 0.92);
  color: #fff;
}

.product-card.is-out {
  opacity: 0.72;
}

.product-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 11px;
  display: flex;
  min-height: 94px;
  flex-direction: column;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.44));
  backdrop-filter: blur(3px);
  border-top: 1px solid rgba(255, 255, 255, 0.58);
}

.product-info h3 {
  position: static;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  color: #101411;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  text-align: left;
  text-shadow: none;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}

.product-card.is-out .product-info h3 {
  color: #101411;
  background: transparent;
}

.product-info p {
  min-height: 0;
  margin: 3px 0 6px;
  color: #303a34;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-size: 1.08rem;
  font-weight: 900;
  color: #101411;
}

.product-info .qty-control {
  grid-template-columns: 34px 38px 34px;
  min-height: 36px;
}

.compare {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: line-through;
}

.qty-control {
  display: grid;
  grid-template-columns: 38px 44px 38px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
}

.product-card.is-out .product-info {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.44));
}

.qty-control button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.qty-control button:hover {
  background: var(--surface-2);
}

.qty-control button:disabled,
.qty-control.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.qty-control span {
  display: grid;
  place-items: center;
  height: 100%;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
}

.qty-control.compact {
  grid-template-columns: 30px 34px 30px;
  min-height: 34px;
}

.account-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 36px;
  align-items: center;
}

.account-copy ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.auth-panel {
  border-radius: 8px;
  padding: 24px;
}

.tabs {
  gap: 10px;
  margin-bottom: 20px;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

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

.account-tabs {
  display: grid;
  gap: 14px;
}

.account-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(214, 168, 111, 0.24), transparent 52%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(239, 242, 239, 0.9));
  border: 1px solid var(--line);
}

.account-identity {
  min-width: 0;
}

.account-identity h2,
.account-identity p {
  margin: 0;
}

.account-identity h2 {
  font-size: 1.28rem;
}

.account-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.account-shortcuts svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-shortcuts button {
  min-height: 60px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.account-shortcuts button.active {
  border-color: rgba(14, 143, 104, 0.28);
  background: rgba(240, 253, 250, 0.92);
  color: var(--emerald);
}

.account-shortcuts strong {
  font-size: 0.74rem;
}

.account-pane {
  display: none;
}

.account-pane.active {
  display: grid;
}

.orders-pane {
  gap: 10px;
}

.coupon-pane {
  gap: 12px;
}

.coupon-feature,
.coupon-wallet-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.coupon-feature p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.coupon-feature a {
  color: var(--copper);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.coupon-redeem-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.coupon-redeem-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.coupon-redeem-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coupon-share-btn {
  padding: 12px;
  border: 1px dashed rgba(180, 83, 9, 0.4);
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.76);
  color: var(--copper);
  font-weight: 900;
}

.coupon-wallet {
  display: grid;
  gap: 8px;
}

.coupon-wallet-card {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.coupon-wallet-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.coupon-wallet-card.selected {
  border-color: rgba(14, 143, 104, 0.36);
  background: rgba(240, 253, 250, 0.82);
}

.payment-pane {
  gap: 12px;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-methods article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.payment-methods strong,
.payment-methods span {
  display: block;
}

.payment-methods span {
  margin-top: 4px;
  color: var(--muted);
}

.payment-page {
  position: fixed;
  inset: 0;
  z-index: 74;
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 0%, rgba(111, 124, 116, 0.18), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #eef1ee 100%);
}

.payment-page.open {
  display: grid;
}

body.payment-open {
  overflow: hidden;
}

.payment-page-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.payment-page-head h2,
.payment-page-head p {
  margin: 0;
}

.payment-page-head p {
  color: var(--muted);
}

.payment-page-body {
  width: min(720px, 100%);
  min-height: 0;
  overflow-y: auto;
  margin: 0 auto;
  padding: 18px 16px max(28px, env(safe-area-inset-bottom));
}

.payment-review-list,
.payment-action-list {
  display: grid;
  gap: 9px;
}

.payment-review-item,
.payment-review-total,
.payment-action {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  text-align: left;
}

.payment-review-item {
  min-height: 58px;
  padding: 10px 12px;
}

.payment-review-item strong {
  line-height: 1.15;
}

.payment-review-item span,
.payment-action > span:not(.payment-icon) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.payment-review-total {
  min-height: 54px;
  margin: 10px 0 14px;
  font-size: 1.1rem;
}

.payment-action {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
  justify-content: flex-start;
  font-size: 1rem;
}

.payment-action:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 143, 104, 0.34);
}

.payment-action.pay-now {
  background: linear-gradient(135deg, #ffffff, #e8f7f3 52%, #dff3ff);
  border-color: rgba(14, 143, 104, 0.34);
  box-shadow: 0 14px 32px rgba(14, 143, 104, 0.1);
}

.payment-action.pay-now > span {
  color: var(--text);
}

.payment-action.pay-now strong {
  color: #111827;
  font-weight: 950;
}

.payment-action.revolut {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 240, 0.72));
}

.payment-action.bank {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.72));
}

.payment-action.whatsapp {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(209, 250, 229, 0.72));
}

.payment-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  margin: 0;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 25, 0.12);
  box-shadow: 0 5px 12px rgba(20, 30, 25, 0.08);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.visa-badge {
  color: #173b8f;
  font-style: italic;
}

.mastercard-badge {
  position: relative;
  min-width: 34px;
  gap: 0;
}

.mastercard-badge i,
.mastercard-badge b {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.mastercard-badge i {
  background: #eb001b;
  margin-right: -5px;
}

.mastercard-badge b {
  background: rgba(247, 158, 27, 0.9);
}

.apple-pay-badge {
  background: #111827;
  color: #ffffff;
}

.amex-badge {
  background: #2e77bc;
  color: #ffffff;
}

.discover-badge {
  background: linear-gradient(90deg, #ffffff, #f59e0b);
  color: #111827;
}

.maestro-badge {
  color: #0f4c81;
}

.google-pay-badge b {
  color: #2563eb;
  margin-right: 2px;
}

.payment-action small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.revolut-icon {
  background: #111827;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
}

.whatsapp-icon {
  background: #20b15a;
  color: #ffffff;
}

.bank-icon {
  background: #0f766e;
  color: #ffffff;
}

.bank-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 0%, rgba(111, 124, 116, 0.2), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #eef1ee 100%);
}

.return-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.return-card {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.return-card h1,
.return-card p {
  margin: 0;
}

.return-order {
  display: grid;
  gap: 10px;
}

.payment-proof-card {
  max-width: 560px;
  gap: 10px;
}

.payment-proof-card .seller-form,
.payment-proof-card .seller-form label,
.payment-proof-card input[type="file"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.payment-proof-card input[type="file"] {
  width: 100%;
}

.return-summary-card {
  display: grid;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.return-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.return-summary-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #f7f8f6;
}

.return-summary-grid span,
.return-item-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.return-summary-grid strong,
.return-item-row strong {
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.return-item-list {
  display: grid;
  gap: 0;
  padding: 0 10px 8px;
}

.return-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(20, 30, 25, 0.08);
}

.payment-proof-card .seller-form {
  gap: 9px;
}

.payment-proof-card .seller-form label {
  gap: 5px;
}

.payment-proof-card .btn {
  min-height: 44px;
}

.bank-transfer-card {
  max-width: 560px;
  gap: 12px;
  text-align: center;
}

.bank-transfer-head {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.bank-transfer-icon {
  display: grid;
  place-items: center;
  width: 120px;
  min-height: 48px;
  border: 1px solid rgba(14, 143, 104, 0.32);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f3fbf8);
  color: var(--emerald);
  box-shadow: 0 10px 24px rgba(14, 143, 104, 0.12);
}

.bank-transfer-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bank-transfer-card #bankMessage {
  display: none;
  color: var(--muted);
  line-height: 1.55;
}

.bank-amount-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(14, 143, 104, 0.18);
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.72);
}

.bank-amount-card span {
  color: var(--muted);
}

.bank-amount-card strong {
  font-size: clamp(1.75rem, 7vw, 2.55rem);
  line-height: 1;
  color: var(--text);
}

.bank-details-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.bank-detail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  text-align: left;
}

.bank-detail-row:nth-child(odd) {
  background: #f3f4f2;
}

.bank-detail-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.bank-detail-row span::after {
  content: ":";
}

.bank-detail-row strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.bank-copy-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(14, 143, 104, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--emerald);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.bank-copy-btn:hover {
  transform: translateY(-1px);
  background: rgba(14, 143, 104, 0.08);
}

.bank-copy-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bank-copy-btn.copied {
  background: var(--emerald);
  color: #ffffff;
}

.bank-copy-btn.copy-failed {
  background: #fee2e2;
  color: #991b1b;
}

.amount-copy {
  display: inline-flex;
  width: auto;
  height: 30px;
  gap: 6px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 520px) {
  .payment-action.pay-now {
    align-items: flex-start;
  }

  .payment-page-body {
    padding: 12px 12px max(22px, env(safe-area-inset-bottom));
  }

  .payment-review-list,
  .payment-action-list {
    gap: 8px;
  }

  .payment-review-item,
  .payment-review-total,
  .payment-action {
    border-radius: 9px;
    padding: 10px;
  }

  .payment-review-item {
    min-height: 52px;
  }

  .bank-detail-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .bank-detail-row span {
    grid-column: auto;
  }

  .return-page {
    align-items: start;
    min-height: 100dvh;
    padding: 10px;
    place-items: start stretch;
  }

  .return-card {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
  }

  .payment-proof-card {
    gap: 8px;
  }

  .payment-proof-card h1 {
    font-size: 1.45rem;
  }

  .payment-proof-card #returnMessage {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .return-summary-grid {
    grid-template-columns: 1fr;
  }

  .return-summary-grid > div {
    padding: 8px 10px;
  }

  .return-item-row {
    padding: 7px 0;
  }
}

.bank-note-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.8);
  color: #9a3412;
  line-height: 1.5;
  text-align: center;
}

.bank-note-box p {
  color: inherit;
}

.strong-warning {
  color: #991b1b;
  font-weight: 800;
}

.chat-page {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  overflow: hidden;
  background: #f7f8f6;
  color: var(--text);
}

.chat-page.open {
  display: grid;
}

@media (min-width: 641px) {
  .chat-page {
    inset: auto 26px 26px auto;
    width: min(420px, calc(100vw - 52px));
    height: min(680px, calc(100vh - 52px));
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
}

body.chat-open {
  overflow: hidden;
}

.chat-page-head {
  display: grid;
  grid-template-columns: 48px 50px 1fr;
  gap: 10px;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.chat-back,
.chat-send {
  border: 0;
  cursor: pointer;
}

.chat-back {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(239, 242, 239, 0.95);
  color: var(--text);
}

.account-back {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.chat-back svg,
.chat-send svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--copper));
  color: #fff;
  font-weight: 900;
}

.chat-page-head h2,
.chat-page-head p {
  margin: 0;
}

.chat-page-head p {
  color: var(--muted);
}

.chat-thread {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 14px 14px;
  background: #f7f8f6;
}

.seller-chat-thread {
  border: 0;
  border-radius: 0;
}

.chat-bubble {
  width: fit-content;
  max-width: min(78%, 620px);
  padding: 10px 14px;
  border: 0;
  border-radius: 22px;
  background: #e9ece9;
  color: #fff;
}

.chat-bubble.buyer {
  justify-self: end;
  align-self: flex-end;
  background: #0a84ff;
  border-bottom-right-radius: 6px;
}

.chat-bubble.seller {
  justify-self: start;
  align-self: flex-start;
  background: #e5e5ea;
  color: #111411;
  border-bottom-left-radius: 6px;
}

.chat-bubble strong,
.chat-bubble span {
  display: block;
}

.chat-bubble p {
  margin: 5px 0;
  line-height: 1.45;
}

.chat-bubble span {
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.76rem;
}

.message-state {
  margin-top: 3px;
  font-size: 0.72rem;
  text-align: right;
}

.message-state.seen {
  color: #0e8f68;
  font-weight: 800;
}

.message-state.delivered,
.message-state.sent {
  color: rgba(0, 0, 0, 0.46);
}

.online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
  background: #a8b1aa;
  box-shadow: 0 0 0 3px rgba(168, 177, 170, 0.16);
  vertical-align: middle;
}

.online-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: end;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
}

.chat-reply-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-form textarea {
  width: 100%;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  background: #fff;
  resize: none;
  outline: none;
}

.chat-reply-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #30d158;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.chat-form .form-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: var(--muted);
}

.chat-update {
  display: grid;
}

.buyer-order-card {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
}

.buyer-order-card span,
.order-detail-item span,
.tracking-card span,
.tracking-card p {
  color: var(--muted);
}

.order-detail-list,
.tracking-card {
  display: grid;
  gap: 10px;
}

.order-detail-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.order-detail-item img,
.mini-pack {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-pack {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--pack-a), var(--pack-b));
  color: #fff;
  font-weight: 900;
}

.tracking-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.reviews-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.review-form,
.review-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.review-login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.review-login-prompt p {
  margin: 0;
  color: var(--muted);
}

.review-form,
.review-list {
  display: grid;
  gap: 12px;
}

.review-form {
  margin-bottom: 14px;
  align-items: start;
}

.review-form textarea {
  min-height: 140px;
  resize: vertical;
}

.review-form .btn {
  width: fit-content;
  min-width: 132px;
  justify-self: start;
}

.compact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-card {
  display: grid;
  gap: 10px;
}

.review-rating-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.star-picker {
  display: flex;
  gap: 6px;
}

.star-picker button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #cbd5e1;
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease;
}

.star-picker button.active,
.star-picker button:hover {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.35);
  transform: translateY(-1px);
}

.review-stars {
  font-weight: 900;
}

.review-stars span {
  color: #cbd5e1;
}

.review-stars span.filled {
  color: #b45309;
}

.review-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.review-photos button {
  display: block;
  max-width: min(240px, 100%);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.review-photos img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f8fafc;
}

.image-lightbox.open {
  display: grid;
  place-items: center;
}

.image-lightbox-modal {
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.image-lightbox-modal img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}

.review-comments {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.review-comments p {
  margin: 0;
  color: var(--muted);
}

.review-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.review-comment-form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
}

.review-comment-form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  font-weight: 800;
}

.order-status-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 7px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.order-status-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 9px 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.order-status-tabs button.active {
  background: var(--text);
  color: #fff;
}

.order-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-edit-form {
  display: grid;
  gap: 8px;
}

.auth-form label,
.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.auth-form input,
.profile-form input,
.profile-form textarea,
.tracking-form input,
.seller-form input,
.seller-form select,
.seller-form textarea,
.checkout-form input,
.checkout-form textarea {
  padding: 13px 14px;
}

.checkout-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.checkout-form label,
.seller-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.checkout-buyer {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.form-status,
.tracking-result {
  color: var(--copper-soft);
  min-height: 24px;
}

.tracking {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.tracking-form {
  display: flex;
  gap: 10px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hidden {
  display: none !important;
}

.seller-dashboard {
  width: min(1220px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 86px 0 0;
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.seller-stats article,
.seller-form,
.seller-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.seller-stats article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(22, 31, 27, 0.08);
}

.seller-stats article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(11, 143, 104, 0.1);
}

.seller-stats strong {
  display: block;
  font-size: 1.55rem;
}

.seller-stats span {
  color: var(--muted);
}

.seller-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.seller-grid.lower {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.seller-form,
.seller-panel {
  padding: 22px;
}

.seller-form {
  display: grid;
  gap: 14px;
}

.seller-form h3,
.seller-panel h3 {
  margin: 0 0 8px;
}

.panel-note {
  margin: -2px 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-row {
  align-content: center;
  grid-template-columns: auto 1fr;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.form-actions,
.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.image-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.image-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-photo-preview {
  position: relative;
  margin: 0;
  border-radius: 8px;
}

.product-photo-preview.main img {
  outline: 3px solid rgba(11, 143, 104, 0.28);
}

.product-photo-preview figcaption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.product-photo-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 27, 24, 0.76);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.admin-list {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 246, 0.86));
  box-shadow: 0 12px 30px rgba(40, 50, 44, 0.07);
}

.order-update {
  display: grid;
}

.order-summary {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.order-update.collapsed .tracking-edit {
  display: none;
}

.payment-verification-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(14, 143, 104, 0.18);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.78);
}

.payment-verification-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.completed-orders-panel {
  margin-top: 18px;
}

.completed-earnings {
  margin: 0 0 12px;
  color: var(--emerald);
  font-weight: 900;
}

.tracking-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tracking-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.tracking-edit input,
.tracking-edit select,
.tracking-edit textarea {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
}

.tracking-edit label:nth-child(5),
.tracking-edit button {
  grid-column: 1 / -1;
}

.admin-row span,
.admin-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.row-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 850;
}

.row-actions button:hover,
.buyer-card-main:hover {
  border-color: rgba(11, 143, 104, 0.3);
  color: var(--emerald);
}

.row-actions .danger-action,
.danger-action {
  border-color: rgba(211, 91, 77, 0.28);
  color: #b42318;
  background: rgba(254, 242, 242, 0.92);
}

.seller-body {
  min-height: 100vh;
  display: block;
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 12% 0%, rgba(11, 143, 104, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(111, 124, 116, 0.2), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #eef1ee 100%);
}

.seller-app {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 80px;
}

.seller-appbar {
  position: sticky;
  top: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 40, 34, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86));
  backdrop-filter: blur(18px);
}

.seller-app-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.seller-appbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
}

.seller-back {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.seller-page {
  display: none;
  animation: fadeUp 220ms ease both;
}

.seller-page.active {
  display: block;
}

.seller-tabbar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 42;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(520px, calc(100% - 20px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(40, 50, 44, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.seller-tabbar button {
  position: relative;
  min-height: 55px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  background: rgba(239, 242, 239, 0.92);
  color: var(--text);
  font-weight: 900;
}

.seller-tabbar svg,
.mobile-tabbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seller-tabbar small,
.mobile-tabbar small {
  font-size: 0.7rem;
  font-weight: 800;
}

.seller-tabbar button.has-alert::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 13px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16);
}

.seller-tabbar button.active {
  background: var(--emerald);
  color: #fff;
}

.app-grid {
  margin-top: 16px;
}

.buyer-card {
  width: 100%;
  text-align: left;
}

.buyer-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.buyer-card strong,
.visit-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.buyer-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.visit-card {
  min-height: 96px;
}

.live-pill {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 143, 104, 0.12);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 900;
}

.alert-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

.buyer-card.has-alert {
  border-color: rgba(225, 29, 72, 0.34);
}

.product-admin-card.needs-attention {
  border-color: rgba(225, 29, 72, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(254, 226, 226, 0.62));
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.12), 0 16px 40px rgba(225, 29, 72, 0.12);
  opacity: 0.86;
}

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

.buyer-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.buyer-detail-head h2,
.buyer-detail-head p {
  margin: 0;
}

body.seller-chat-open {
  overflow: hidden;
  padding-bottom: 0;
}

body.seller-chat-open .seller-appbar,
body.seller-chat-open .seller-tabbar {
  display: none;
}

body.seller-chat-open .seller-app {
  width: 100%;
  padding: 0;
}

.seller-chat-page.active {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f7f8f6;
}

.seller-chat-head {
  display: grid;
  grid-template-columns: 44px 50px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.seller-chat-head h2,
.seller-chat-head p {
  margin: 0;
}

.seller-chat-head p {
  color: var(--muted);
}

.seller-chat-form {
  bottom: 0;
}

body.product-edit-open {
  overflow: hidden;
}

body.product-edit-open::before {
  content: none;
}

.seller-form.product-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 71;
  width: 100%;
  max-height: none;
  height: 100dvh;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  padding: max(18px, env(safe-area-inset-top)) max(16px, calc((100vw - 720px) / 2)) max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 75% 0%, rgba(111, 124, 116, 0.2), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #eef1ee 100%);
  box-shadow: none;
}

.order-group {
  display: grid;
  gap: 10px;
}

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

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  backdrop-filter: blur(18px);
}

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

.portal-nav {
  position: sticky;
  top: 70px;
  z-index: 23;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 245, 243, 0.86));
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.portal-nav::-webkit-scrollbar {
  display: none;
}

.portal-nav a {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.portal-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(239, 242, 239, 0.9);
}

.portal-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 70px;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.portal-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
}

.portal-header p:not(.fine),
.portal-section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.portal-stats {
  margin: 18px 0;
}

.portal-section {
  scroll-margin-top: 140px;
  padding-top: 34px;
}

.portal-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.portal-section-head h2 {
  margin: 0;
  font-size: 2rem;
}

.settings-form {
  max-width: none;
}

.review-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.review-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 0 46px;
}

.footer-links {
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.cart-drawer,
.modal-backdrop {
  position: fixed;
  z-index: 40;
}

.cart-drawer {
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0;
  background: #f7f8f6;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

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

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-options label {
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.payment-options input {
  width: 18px;
  height: 18px;
}

.desktop-floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 34;
  display: grid;
  align-items: center;
  gap: 8px;
}

.desktop-floating-actions a,
.desktop-floating-actions button {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(20, 30, 25, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(40, 50, 44, 0.18);
  backdrop-filter: blur(16px);
}

.desktop-floating-actions svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-floating-actions b {
  display: none;
}

.desktop-floating-actions button {
  color: var(--text);
}

.desktop-floating-actions .whatsapp-float {
  position: static;
  background: #18a85f;
  color: #fff;
}

.desktop-floating-actions span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  position: absolute;
  top: -4px;
  right: -4px;
  border-radius: 99px;
  background: var(--copper);
  color: #fff;
  font-size: 0.76rem;
}

.desktop-floating-actions button {
  position: relative;
}

.desktop-floating-actions span.empty,
.mobile-tabbar span.empty {
  display: none;
}

.drawer-head,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.drawer-head h2,
.drawer-head p {
  margin: 0;
}

.drawer-head h2 {
  font-size: 1.7rem;
}

.drawer-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.close-btn {
  width: 36px;
  height: 36px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.3rem;
}

.close-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.cart-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  background: #fff;
}

.cart-line-media {
  width: 94px;
  min-height: 110px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-media .mini-pack {
  width: 54px;
  height: 74px;
  font-size: 0.68rem;
}

.cart-line-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 3px 0;
}

.cart-line-copy strong {
  display: block;
  color: var(--text);
}

.cart-line-copy > span {
  margin-top: 5px;
  padding: 4px 8px;
  width: fit-content;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-line-copy small {
  margin-top: 6px;
  color: var(--muted);
}

.cart-line-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.cart-line-price {
  font-size: 1.02rem;
  font-weight: 900;
}

.cart-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.cart-coupon strong,
.cart-coupon span {
  display: block;
}

.cart-coupon span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-coupon button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.cart-coupon select {
  max-width: 190px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
}

.cart-total small {
  color: var(--emerald);
  font-size: 0.77rem;
  font-weight: 900;
}

.coupon-saving strong:last-child {
  color: var(--emerald);
}

.coupon-guide-body {
  min-height: 100vh;
  background: #f7f8f6;
}

.coupon-guide-page {
  width: min(620px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.coupon-guide-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.coupon-guide-head .chat-back {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.coupon-guide-head h1,
.coupon-guide-head p {
  margin: 0;
}

.coupon-guide-card {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.coupon-guide-card h2 {
  margin: 0 0 12px;
}

.coupon-guide-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.coupon-guide-card p:last-child {
  margin-bottom: 0;
}
.cart-checkout-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -12px 32px rgba(30, 40, 34, 0.06);
}

.cart-total {
  display: grid;
  justify-content: start;
  gap: 2px;
}

.cart-total span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-total strong {
  font-size: 1.25rem;
}

.cart-total-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-total-main em {
  color: var(--emerald);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.cart-checkout-bar .btn {
  min-width: 140px;
  border-radius: 999px;
}

.cart-checkout-bar .form-status {
  grid-column: 1 / -1;
  margin: 0;
}

.full {
  width: 100%;
}

.modal-backdrop {
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 27, 24, 0.32);
  backdrop-filter: blur(10px);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(430px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  border-radius: 8px;
  padding: 26px;
}

.product-modal {
  width: min(860px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.product-detail.no-gallery {
  grid-template-columns: 1fr;
}

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

.product-detail-main,
.product-detail-pack {
  width: 100%;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #f9faf8, #e7ebe7);
}

.product-detail-pack {
  display: grid;
  place-items: center;
  font-size: 2rem;
  transform: none;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.product-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.product-thumbs button.active {
  outline: 3px solid rgba(11, 143, 104, 0.24);
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f8f6;
}

.product-detail-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-detail-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.product-detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-facts {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.price-row.detail {
  align-items: center;
  gap: 14px;
}

.variant-buy-list {
  display: grid;
  gap: 10px;
}

.variant-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.variant-buy-row strong,
.variant-buy-row small {
  display: block;
}

.variant-buy-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.modal .close-btn {
  float: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .announcement {
    display: none;
  }

  .navbar {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .account-section,
  .tracking {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-media,
  .hero-media img {
    min-height: 0;
  }

  .service-strip,
  .product-grid,
  .review-grid,
  .seller-stats,
  .seller-grid,
  .seller-grid.lower {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
    background:
      radial-gradient(circle at 80% 0%, rgba(111, 124, 116, 0.24), transparent 16rem),
      linear-gradient(180deg, #ffffff 0%, #f5f6f4 48%, #ecefec 100%);
  }

  .site-header {
    position: sticky;
    top: 0;
    padding-top: 8px;
  }

  .navbar {
    margin-top: 0;
    padding: 10px;
    grid-template-columns: 1fr auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav-links,
  .nav-actions,
  .nav-links.open,
  .nav-actions.open {
    display: none !important;
  }

  .age-card h1,
  .hero h1 {
    font-size: 2.7rem;
    line-height: 0.95;
  }

  .search input,
  .tracking-form,
  .tracking-form input {
    width: 100%;
  }

  .modal-backdrop {
    inset: 0;
    z-index: 70;
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 240ms ease;
  }

  .modal-backdrop.open {
    display: block;
    pointer-events: auto;
    transform: translateX(0);
  }

  .modal {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: max(18px, env(safe-area-inset-top)) 14px max(96px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f7f8f6;
  }

  #accountModal .modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 12px max(86px, env(safe-area-inset-bottom));
  }

  #accountModal .modal > h2 {
    display: none;
  }

  #accountModal .account-tabs:not(.hidden) {
    display: grid;
    gap: 12px;
  }

  #accountModal .account-tabs > .tabs {
    order: 3;
    margin: 0;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
  }

  #accountModal .account-tabs > .tabs .tab {
    flex: 1;
    border: 0;
    border-radius: 999px;
  }

  #accountModal .account-profile-head {
    order: 1;
  }

  #accountModal .account-shortcuts {
    order: 2;
  }

  #accountModal .account-pane {
    order: 4;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px;
    background: #fff;
  }

  #accountModal .profile-form .form-status {
    display: none;
  }

  .product-modal,
  .order-modal,
  .image-lightbox-modal {
    width: 100%;
    max-height: none;
  }

  .modal .close-btn {
    float: none;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-size: 0;
  }

  .modal .close-btn::before {
    content: "<";
    font-size: 1.5rem;
    font-weight: 900;
  }

  body:has(.modal-backdrop.open) {
    overflow: hidden;
  }

  .hero,
  .navbar,
  .service-strip,
  .catalogue,
  .account-section,
  .tracking,
  .reviews,
  .site-footer,
  .seller-dashboard {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .hero {
    display: block;
    padding: 18px 0 18px;
  }

  .hero-copy {
    left: 18px;
    top: 18px;
    max-width: calc(100% - 36px);
  }

  .hero-copy p {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .hero-copy,
  .hero-copy p,
  .section-heading,
  .account-copy,
  .tracking > div {
    min-width: 0;
    max-width: 100%;
  }

  .trust-row span,
  .filter {
    max-width: 100%;
    white-space: normal;
  }

  .floating-stat.bottom {
    right: 12px;
  }

  .hero-media {
    min-height: 0;
    height: auto;
    margin-top: 0;
    border-radius: 14px;
  }

  .hero-media img {
    min-height: 0;
    height: auto;
    object-position: center;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.14) 100%);
  }

  .floating-stat {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .floating-stat.top {
    top: 10px;
    left: 10px;
  }

  .floating-stat.bottom {
    right: 10px;
    bottom: 10px;
  }

  .service-strip {
    display: none;
  }

  .catalogue,
  .account-section,
  .tracking,
  .reviews,
  .seller-dashboard {
    padding-top: 24px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 14px;
  }

  .section-heading h2,
  .account-copy h2,
  .tracking h2 {
    font-size: 1.65rem;
  }

  .section-heading p,
  .account-copy p,
  .tracking p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .filters {
    position: sticky;
    top: 72px;
    z-index: 12;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 2px 10px;
    margin: 0 -2px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 246, 244, 0.88));
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 38px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0 13px;
  }

  .tracking-form,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-strip,
  .product-grid,
  .review-grid,
  .seller-stats,
  .seller-grid,
  .seller-grid.lower,
  .form-pair {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    border-radius: 14px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-visual {
    height: auto;
    min-height: 166px;
  }

  .pack {
    width: 62px;
    height: 86px;
    font-size: 0.82rem;
  }

  .stock {
    top: auto;
    right: auto;
    left: 8px;
    bottom: 8px;
    padding: 5px 7px;
    font-size: 0.66rem;
  }

  .product-info {
    position: static;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-top: 0;
  }

  .product-info h3 {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: #101411;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .product-card.is-out .product-info h3 {
    color: #101411;
    background: transparent;
  }

  .product-info p {
    min-height: 0;
    margin: 0 0 10px;
    color: #3f4842;
    font-weight: 400;
    text-shadow: none;
    font-size: 0.82rem;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
  }

  .price-row {
    align-items: end;
    gap: 8px;
  }

  .price {
    font-size: 1rem;
    color: #101411;
  }

  .compare {
    font-size: 0.72rem;
  }

  .qty-control {
    grid-template-columns: 32px 34px 32px;
    min-height: 36px;
    border-radius: 10px;
  }

  .product-info .qty-control {
    grid-template-columns: 32px 34px 32px;
    min-height: 36px;
  }

  .qty-control.compact {
    grid-template-columns: 28px 32px 28px;
    min-height: 32px;
  }

  .admin-row {
    flex-direction: column;
  }

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

  .auth-panel,
  .seller-form,
  .seller-panel,
  .review-grid article,
  .cart-drawer,
  .modal {
    border-radius: 14px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-main,
  .product-detail-pack {
    height: 54dvh;
    max-height: 560px;
    min-height: 390px;
    aspect-ratio: auto;
  }

  .product-thumbs,
  .image-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cart-drawer {
    width: 100%;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
  }

  .drawer-head {
    padding: max(16px, env(safe-area-inset-top)) 14px 12px;
  }

  .cart-scroll {
    padding: 12px;
  }

  .cart-line {
    grid-template-columns: 98px minmax(0, 1fr);
    padding: 9px;
  }

  .cart-line-media {
    width: 98px;
    min-height: 118px;
  }

  .cart-checkout-bar {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }

  .cart-checkout-bar .btn {
    min-width: 136px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(40, 50, 44, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    position: relative;
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 3px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(239, 242, 239, 0.92);
    color: var(--text);
    font-weight: 800;
  }

  .mobile-tabbar span {
    position: absolute;
    top: 5px;
    right: 14px;
    display: grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--copper);
    color: #fff;
    font-size: 0.65rem;
  }

  .mobile-tabbar svg {
    color: var(--copper);
  }

  .desktop-floating-actions {
    display: none;
  }

  .seller-body {
    display: block;
    padding-bottom: 90px;
  }

  .seller-app {
    width: calc(100% - 24px);
    padding: 8px 0 76px;
  }

  .seller-appbar {
    grid-template-columns: auto 1fr auto;
    padding: 10px 0;
  }

  .seller-appbar .icon-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .seller-app-actions {
    gap: 6px;
  }

  .buyer-detail-head {
    display: grid;
    padding: 16px;
  }

  .buyer-detail-head .btn {
    width: 100%;
  }

  .payment-link-grid {
    grid-template-columns: 1fr;
  }

  .portal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .portal-actions .btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .portal-nav {
    top: 61px;
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 12px;
  }

  .portal-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
  }

  .portal-main {
    width: 100%;
    padding: 16px 0 40px;
  }

  .portal-header {
    display: grid;
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 18px;
    border-radius: 14px;
  }

  .portal-header h1 {
    font-size: 2.35rem;
  }

  .portal-header .btn {
    width: 100%;
  }

  .portal-stats,
  .portal-section {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .portal-section {
    scroll-margin-top: 120px;
    padding-top: 24px;
  }

  .portal-section-head {
    display: block;
  }

  .seller-form,
  .seller-panel {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition: none !important;
  }
}
