:root {
  --bg: #ffe4ee;
  --surface: rgba(255, 248, 251, 0.88);
  --surface-solid: #ffffff;
  --ink: #3f2132;
  --muted: #7a5d6b;
  --line: rgba(63, 33, 50, 0.1);
  --yellow: #ff8fba;
  --yellow-deep: #ff6aa0;
  --green: #c44b7d;
  --green-soft: #ffd5e6;
  --shadow: 0 20px 45px rgba(116, 48, 79, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 160, 198, 0.5), transparent 28%),
    radial-gradient(circle at right 20%, rgba(255, 212, 230, 0.5), transparent 20%),
    linear-gradient(180deg, #fff8fb 0%, var(--bg) 50%, #ffdce9 100%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
}

.topbar,
.hero,
.category-section,
.products-section,
.app-banner,
.cart-page-panel,
.checkout-panel,
.product-detail-card,
.mini-product-card,
.payment-panel {
  backdrop-filter: blur(14px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link,
.button-link,
.clickable-card,
.product-card-link,
.cart-item-link,
.inline-link-button,
.mini-product-card {
  text-decoration: none;
}

.brand-lockup h1,
.hero-copy h2,
.section-heading h3,
.app-banner h3,
.checkout-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.brand-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffd4e4 100%);
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.searchbar {
  min-height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

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

.search-input::placeholder {
  color: #6a725f;
}

.search-clear {
  border: 0;
  background: #ffe0ec;
  color: var(--green);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.header-actions,
.hero-actions,
.banner-points,
.product-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ghost-button,
.primary-button,
.cart-pill,
.add-button,
.checkout-button {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-button,
.cart-pill,
.add-button,
.checkout-button {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: #111;
  font-weight: 700;
}

.cart-pill strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #111;
  color: white;
  font-size: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 24px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 249, 252, 0.88), rgba(255, 228, 238, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stats-grid article,
.floating-card,
.spotlight-card,
.category-card,
.promo-card,
.product-card,
.vendor-card,
.app-banner,
.cart-page-panel,
.checkout-panel,
.product-detail-card,
.mini-product-card,
.payment-panel {
  border: 1px solid rgba(22, 33, 18, 0.08);
  box-shadow: var(--shadow);
}

.stats-grid article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.stats-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.stats-grid span,
.spotlight-card p,
.promo-card span,
.product-card p,
.vendor-card p,
.section-note {
  color: var(--muted);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
}

.floating-card,
.spotlight-card,
.category-card,
.promo-card,
.product-card,
.vendor-card,
.app-banner,
.cart-page-panel,
.checkout-panel,
.product-detail-card,
.mini-product-card,
.payment-panel {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 24px;
}

.floating-card {
  padding: 20px;
  background: linear-gradient(135deg, #8b365b 0%, #c44b7d 100%);
  color: white;
}

.floating-card p,
.floating-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.floating-card strong {
  display: block;
  margin: 4px 0;
  font-size: 1.45rem;
}

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

.spotlight-card {
  padding: 20px;
  min-height: 172px;
}

.spotlight-card.white {
  grid-column: span 2;
}

.spotlight-card.lime {
  background: linear-gradient(180deg, #ffd3e4 0%, #fff0f6 100%);
}

.spotlight-card.dark {
  background: linear-gradient(180deg, #54293d 0%, #8b365b 100%);
  color: white;
}

.spotlight-card.dark p,
.spotlight-card.dark span {
  color: rgba(255, 255, 255, 0.75);
}

.spotlight-card.white {
  background: linear-gradient(135deg, #ffffff 0%, #ffdbe8 100%);
}

.spotlight-card span,
.promo-card p {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.spotlight-card strong,
.promo-card strong,
.product-card h4,
.vendor-card h4 {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.18rem;
  font-family: "Space Grotesk", sans-serif;
}

.category-section,
.products-section {
  margin-top: 26px;
}

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

.section-heading a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.category-grid,
.product-grid,
.vendor-grid,
.promo-strip {
  display: grid;
  gap: 16px;
}

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

.category-card {
  padding: 20px 16px;
  text-align: center;
}

.category-card span {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card small {
  margin-top: 4px;
  color: var(--muted);
}

.promo-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0;
}

.promo-card {
  padding: 22px;
  min-height: 150px;
}

.promo-card.neon {
  background: linear-gradient(135deg, #ffb7d1 0%, #ffe6f0 100%);
}

.promo-card.mint {
  background: linear-gradient(135deg, #ffd9e8 0%, #fff1f6 100%);
}

.promo-card.cream {
  background: linear-gradient(135deg, #ffe8f1 0%, #fffafb 100%);
}

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

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

.vendor-grid-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.product-card {
  padding: 18px;
}

.product-card[hidden],
.vendor-card[hidden] {
  display: none;
}

.vendor-card.vendor-card-collapsed {
  display: none;
}

.product-card-link {
  display: block;
}

.vendor-card {
  padding: 20px 16px;
  text-align: center;
}

.vendor-card-link {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.vendor-logo-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.vendor-logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff7fa 0%, #ffe7f0 100%);
  border: 1px solid rgba(63, 33, 50, 0.08);
}

.vendor-logo-fallback {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green);
}

.vendor-card-copy {
  display: block;
}

.vendor-card-copy h4 {
  margin: 0;
  font-size: 1rem;
}

.vendor-store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vendor-store-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3f8;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.vendor-store-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  border: 1px solid rgba(22, 33, 18, 0.08);
  box-shadow: var(--shadow);
}

.vendor-store-copy {
  display: grid;
  gap: 16px;
}

.vendor-store-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.vendor-store-visual .product-image {
  height: 100%;
  min-height: 260px;
  margin: 0;
}

.vendor-store-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.vendor-store-search {
  width: min(360px, 100%);
}

.inline-search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.vendor-store-empty {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 248, 251, 0.9);
  text-align: center;
  border: 1px solid rgba(22, 33, 18, 0.08);
}

.delivery-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffe7f0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-image {
  display: grid;
  place-items: center;
  height: 110px;
  margin: 14px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7fa 0%, #ffe7f0 100%);
  font-size: 3rem;
}

.catalog-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.product-meta {
  justify-content: space-between;
  margin-top: 16px;
}

.add-button {
  padding: 10px 16px;
}

.clickable-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-banner {
  margin: 26px 0 48px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.search-empty-state {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 248, 251, 0.9);
  border: 1px solid rgba(22, 33, 18, 0.08);
  text-align: center;
  box-shadow: var(--shadow);
}

.search-empty-state strong,
.search-empty-state span {
  display: block;
}

.search-empty-state span {
  margin-top: 8px;
  color: var(--muted);
}

.banner-points {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.banner-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffe7f0;
  color: var(--green);
  font-weight: 700;
}

.cart-page-layout,
.product-page-layout {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.checkout-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.account-page-layout {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.cart-page-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
}

.cart-page-panel,
.checkout-panel,
.product-detail-card,
.payment-panel {
  padding: 24px;
}

.cart-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cart-page-item,
.cart-page-empty,
.checkout-stats,
.mini-product-card {
  background: #fff3f8;
  border-radius: 18px;
}

.cart-page-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.cart-page-empty {
  padding: 28px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.cart-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.cart-item-link strong,
.cart-item-link span,
.cart-item-icon,
.checkout-stats strong {
  display: block;
}

.cart-item-link strong,
.cart-item-link span,
.checkout-stats span,
.mini-product-card span,
.product-description {
  color: var(--muted);
}

.cart-item-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7fa 0%, #ffe7f0 100%);
  font-size: 2rem;
}

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

.qty-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #ffdbe8;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-panel {
  position: sticky;
  top: 110px;
}

.payment-options {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.account-card,
.account-address-card,
.order-history-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: #fff3f8;
}

.account-card span,
.account-address-card span,
.order-history-card span {
  color: var(--muted);
}

.account-addresses,
.order-history {
  display: grid;
  gap: 14px;
}

.account-logout-button {
  justify-self: start;
  margin-top: 8px;
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(63, 33, 50, 0.08);
}

.admin-table th {
  font-family: "Space Grotesk", sans-serif;
}

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

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.admin-subnav-link {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-weight: 700;
}

.admin-subnav-link.active {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: #111;
}

.sales-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.sales-bar-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 20px;
  background: #fff3f8;
  border: 1px solid rgba(196, 75, 125, 0.12);
}

.sales-bar-track {
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 8px 0;
}

.sales-bar-fill {
  width: 64px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, var(--yellow-deep) 0%, var(--green) 100%);
  box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.08);
}

.sales-bar-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.sales-bar-card span,
.sales-bar-card small {
  color: var(--muted);
}

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

.admin-stat-card,
.admin-report-card,
.admin-vendor-card {
  padding: 18px;
  border-radius: 20px;
  background: #fff3f8;
  border: 1px solid rgba(196, 75, 125, 0.12);
}

.admin-stat-card span,
.admin-report-card span,
.admin-report-card small,
.admin-vendor-card span,
.admin-vendor-stock {
  display: block;
  color: var(--muted);
}

.admin-stat-card strong,
.admin-report-card strong,
.admin-vendor-topline strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.admin-report-card,
.admin-vendor-card,
.admin-vendor-list {
  display: grid;
  gap: 10px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.admin-export-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: flex-end;
}

.compact-field span {
  margin-bottom: 6px;
}

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

.admin-vendor-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-vendor-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-vendor-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(196, 75, 125, 0.12);
  color: var(--ink);
}

.admin-status-select {
  min-width: 180px;
}

.address-list,
.address-form {
  display: grid;
  gap: 14px;
}

.address-form {
  margin: 22px 0;
}

.address-form h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.address-form-header,
.address-form-actions,
.address-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.payment-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: #fff3f8;
  cursor: pointer;
}

.address-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff3f8;
  border: 1px solid transparent;
}

.address-card-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}

.address-card.selected {
  border-color: rgba(196, 75, 125, 0.45);
  box-shadow: 0 10px 24px rgba(116, 48, 79, 0.08);
}

.address-card strong,
.address-card span {
  display: block;
}

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

.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #9d2f60;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-button {
  color: #c6425f;
}

.role-pill {
  pointer-events: none;
  opacity: 0.9;
}

.add-address-button {
  justify-self: start;
}

.payment-option input {
  margin-top: 4px;
}

.payment-option strong,
.payment-option span,
.checkout-note {
  display: block;
}

.payment-option span,
.checkout-note,
.payment-message {
  color: var(--muted);
}

.payment-message {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffe4ef;
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-shell[hidden],
.login-form[hidden],
.login-success[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 33, 50, 0.35);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.login-modal {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 24px));
  padding: 24px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 24px;
  background: #fffafb;
  border: 1px solid rgba(22, 33, 18, 0.08);
  box-shadow: var(--shadow);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.login-modal-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.login-subtitle {
  margin: 10px 0 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  padding: 10px 14px;
}

.login-form,
.login-success {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-switcher,
.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-context-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 199, 95, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 250, 0.96));
  border: 1px solid rgba(196, 75, 125, 0.1);
}

.password-mode-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff3f8;
  border: 1px solid rgba(196, 75, 125, 0.14);
}

.password-mode-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.password-mode-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(196, 75, 125, 0.12);
}

.password-mode-note {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.password-reset-panel {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(196, 75, 125, 0.16);
  border-radius: 20px;
  background: #fff8fb;
}

.password-reset-note {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.text-button {
  border: 0;
  background: transparent;
  color: #b13d6f;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.text-button:hover,
.text-button:focus-visible {
  color: #922f5b;
  text-decoration: underline;
}

.text-button:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

.auth-role-switcher {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.auth-role-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-tab {
  border: 1px solid rgba(28, 42, 23, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-tab.active {
  background: linear-gradient(135deg, #ffd879 0%, #ffb86a 100%);
  border-color: rgba(170, 94, 24, 0.12);
}

.auth-role-tab {
  border: 1px solid rgba(28, 42, 23, 0.08);
  background: linear-gradient(180deg, #fffdfd 0%, #fff6fa 100%);
  color: var(--ink);
  border-radius: 18px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-width: 110px;
  text-align: center;
}

.auth-role-tab.active {
  background: linear-gradient(180deg, #ffe6ef 0%, #ffd7e6 100%);
  border-color: rgba(196, 75, 125, 0.28);
  box-shadow: 0 10px 22px rgba(196, 75, 125, 0.12);
}

.auth-feedback,
.demo-otp-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
}

.auth-feedback[data-state="error"] {
  background: #ffe6ec;
  color: #8b365b;
}

.auth-feedback[data-state="success"],
.demo-otp-box {
  background: #fff3f8;
  color: var(--ink);
}

.demo-otp-box strong,
.demo-otp-box span,
.demo-otp-box code {
  display: block;
}

.demo-otp-box code {
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.otp-input {
  flex: 1;
  min-width: 120px;
}

.field-label span,
.login-success span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.field-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
}

.field-input:focus {
  border-color: rgba(196, 75, 125, 0.45);
  box-shadow: 0 0 0 4px rgba(196, 75, 125, 0.1);
}

.delivery-window {
  display: block;
  margin: 12px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.checkout-stats {
  padding: 16px;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkout-button {
  width: 100%;
  padding: 15px 18px;
}

.inline-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  margin-top: 24px;
}

.product-hero-visual {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffe7f0 0%, #fff6fa 100%);
}

.product-image.jumbo {
  height: 280px;
}

.product-image.small {
  height: 88px;
}

.jumbo-photo {
  border-radius: 20px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #fff3f8;
}

.product-video-link {
  margin-top: 14px;
  display: inline-flex;
}

.video-modal {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 24px));
  padding: 22px;
  border-radius: 26px;
  background: #fffafb;
  box-shadow: var(--shadow);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.video-modal-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.video-modal-body {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #1f1119;
}

.video-frame,
.video-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.product-copy h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 0.98;
}

.product-description {
  max-width: 54ch;
  line-height: 1.7;
}

.product-page-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
}

.product-page-meta strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

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

.mini-product-card {
  padding: 16px;
}

.ghost-button:hover,
.primary-button:hover,
.cart-pill:hover,
.add-button:hover,
.checkout-button:hover,
.clickable-card:hover,
.mini-product-card:hover,
.product-card:hover,
.vendor-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 48, 25, 0.14);
}

@media (max-width: 1080px) {
  .topbar,
  .hero,
  .app-banner {
    grid-template-columns: 1fr;
  }

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

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

  .cart-page-layout,
  .product-detail-card,
  .vendor-store-hero,
  .mini-product-grid,
  .checkout-page-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-stat-grid,
  .admin-report-grid,
  .admin-vendor-list,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    margin: 10px auto;
  }

  .topbar {
    padding: 16px;
    position: static;
    top: auto;
  }

  .header-actions,
  .hero-actions,
  .section-heading,
  .app-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding: 20px;
  }

  .hero-products,
  .promo-strip,
  .category-grid,
  .product-grid,
  .vendor-grid,
  .stats-grid,
  .mini-product-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card.white {
    grid-column: auto;
  }

  .cart-page-layout,
  .product-detail-card,
  .vendor-store-hero,
  .checkout-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-page-item {
    flex-direction: column;
    align-items: stretch;
  }

  .login-modal {
    width: min(100%, calc(100vw - 16px));
    padding: 18px;
    max-height: calc(100vh - 16px);
  }

  .auth-switcher,
  .auth-role-switcher,
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-role-tab {
    width: 100%;
  }

  .modal-close,
  .auth-tab,
  .auth-role-tab,
  .auth-actions .ghost-button,
  .auth-actions .checkout-button {
    width: 100%;
  }

  .checkout-panel {
    position: static;
  }

  .app-banner {
    margin-bottom: 24px;
  }
}
