:root {
  --bg: #f6e9d7;
  --bg-2: #f2d0a9;
  --card: rgba(255, 250, 243, 0.82);
  --text: #2b1b12;
  --muted: #725442;
  --line: rgba(92, 60, 38, 0.14);
  --brand: #a43d1a;
  --brand-2: #d66b2d;
  --brand-3: #f7b24d;
  --shadow: 0 24px 60px rgba(83, 43, 20, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 240, 212, 0.9), transparent 40%),
    linear-gradient(180deg, var(--bg), #fff7ec 52%, #fbe8cf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 117, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 117, 59, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
}

.backdrop {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.65;
  z-index: 0;
}

.backdrop-one {
  width: 300px;
  height: 300px;
  background: rgba(247, 178, 77, 0.38);
  right: -80px;
  top: -40px;
}

.backdrop-two {
  width: 240px;
  height: 240px;
  background: rgba(214, 107, 45, 0.24);
  left: -100px;
  bottom: 60px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.is-hidden {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  border-radius: 32px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(247, 178, 77, 0.42), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 10ch;
}

.lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.6;
}

.store-card {
  border-radius: 18px;
  border: 1px solid rgba(163, 102, 52, 0.16);
  background: rgba(255, 255, 255, 0.64);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.storefront-art {
  width: min(100%, 520px);
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(83, 43, 20, 0.12);
  border: 1px solid rgba(163, 102, 52, 0.16);
  background: rgba(255, 255, 255, 0.64);
  aspect-ratio: 1690 / 1000;
}

.storefront-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card {
  padding: 18px;
}

.store-card.accent {
  background: linear-gradient(135deg, rgba(164, 61, 26, 0.96), rgba(214, 107, 45, 0.9));
  color: #fff8f1;
  border-color: transparent;
}

.store-title {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 0.82;
}

.store-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.store-card p {
  margin: 0;
  line-height: 1.5;
}

.club-card {
  background:
    radial-gradient(circle at top right, rgba(247, 178, 77, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.64);
}

.club-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.club-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 18px rgba(164, 61, 26, 0.22);
}

.club-card-head .store-title {
  margin-bottom: 2px;
}

.club-card-head strong {
  display: block;
  margin: 0;
  font-size: 1rem;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(164, 61, 26, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.season-badge::before {
  content: "•";
  font-size: 1rem;
  line-height: 1;
}

.season-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.season-switch {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(92, 60, 38, 0.08);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.season-switch.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}

.season-switch:hover {
  background: rgba(92, 60, 38, 0.12);
}

.season-switch.is-active:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.club-switch {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(92, 60, 38, 0.08);
  color: var(--text);
  font-weight: 800;
}

.club-switch:hover {
  background: rgba(92, 60, 38, 0.12);
}

.club-login {
  background: rgba(255, 255, 255, 0.64);
}

.account-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin: 12px 0;
  border-radius: 18px;
  border: 1px solid rgba(92, 60, 38, 0.12);
  background: rgba(255, 248, 236, 0.82);
}

.account-panel strong {
  margin-bottom: 2px;
  font-size: 1rem;
}

.account-panel small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff8f1;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(164, 61, 26, 0.16);
}

.auth-link.secondary {
  background: rgba(92, 60, 38, 0.08);
  color: var(--text);
  box-shadow: none;
}

.auth-link:hover {
  transform: translateY(-1px);
}

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

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  margin-top: 6px !important;
  color: var(--text) !important;
  font-weight: 600 !important;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.builder select:disabled,
.builder input:disabled {
  opacity: 0.8;
  background: rgba(255, 248, 236, 0.95);
  color: var(--muted);
  cursor: not-allowed;
}

.club-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.club-history-item {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 60, 38, 0.1);
}

.club-history-item strong {
  font-size: 0.92rem;
}

.club-history-item span,
.club-empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.layout {
  display: grid;
  grid-template-columns: 1.6fr 0.95fr;
  gap: 24px;
  margin-top: 24px;
}

.menu-column {
  min-width: 0;
  padding: 22px;
  border-radius: 30px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-header.compact {
  margin-bottom: 16px;
}

.builder {
  display: grid;
  gap: 14px;
}

.builder label {
  display: grid;
  gap: 8px;
}

.builder span,
.options-group legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.builder input,
.builder select,
.builder textarea {
  width: 100%;
  border: 1px solid rgba(92, 60, 38, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.options-group {
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(92, 60, 38, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.options-group legend {
  padding: 0 6px;
}

.options-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
}

.options-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

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

button {
  border: 0;
  cursor: pointer;
}

.ghost,
.primary,
.secondary,
.stepper-btn {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ghost {
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(164, 61, 26, 0.22);
}

.ghost:hover,
.primary:hover,
.secondary:hover,
.stepper-btn:hover {
  transform: translateY(-1px);
}

.ghost:active,
.primary:active,
.secondary:active,
.stepper-btn:active {
  transform: translateY(0);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(164, 61, 26, 0.08);
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
}

.qty {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.cart-column {
  border-radius: 30px;
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(92, 60, 38, 0.12);
  margin-bottom: 16px;
}

.summary-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand);
}

.summary-card h3 {
  font-size: 1.8rem;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 60, 38, 0.1);
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  font-size: 1rem;
}

.summary-row.total {
  padding-top: 4px;
  margin-top: 2px;
  border-top: 1px dashed rgba(92, 60, 38, 0.16);
}

.pickup-meta {
  display: grid;
  gap: 4px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(92, 60, 38, 0.1);
}

.pickup-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.pickup-meta strong {
  font-size: 1rem;
}

.pickup-meta small {
  color: var(--muted);
  font-size: 0.9rem;
}

.pickup-meta a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.pickup-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.club-meta {
  display: grid;
  gap: 4px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(92, 60, 38, 0.1);
}

.club-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.club-meta strong {
  font-size: 1rem;
}

.club-meta small {
  color: var(--muted);
  font-size: 0.9rem;
}

.club-meta + .club-meta {
  margin-top: 6px;
}

.confirmation-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 236, 0.92));
  border: 1px solid rgba(164, 61, 26, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.confirmation-card h3 {
  font-size: 1.9rem;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 60, 38, 0.1);
}

.confirmation-row span {
  color: var(--muted);
}

.confirmation-row strong {
  font-size: 1rem;
}

.primary,
.secondary {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  width: 100%;
}

.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 16px 28px rgba(164, 61, 26, 0.22);
}

.secondary {
  background: rgba(92, 60, 38, 0.08);
  color: var(--text);
}

.mobile-bar {
  display: none;
}

body.show-confirmation .mobile-bar {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(43, 27, 18, 0.94);
  color: white;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(43, 27, 18, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .cart-column {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: 100%;
    margin: 0;
    padding: 12px 12px 92px;
  }

  .hero,
  .cart-column,
  .menu-column {
    padding: 18px;
    border-radius: 22px;
  }

  .hero {
    gap: 18px;
  }

  .account-panel {
    grid-template-columns: 1fr;
  }

  .account-actions {
    justify-content: flex-start;
  }

  .hero::after {
    inset: auto -120px -120px auto;
    width: 220px;
    height: 220px;
  }

  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(92, 60, 38, 0.14);
    background: rgba(255, 250, 243, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(83, 43, 20, 0.18);
  }

  .mobile-bar span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .mobile-bar strong {
    font-size: 1.1rem;
  }

  .mobile-bar .primary {
    width: auto;
    min-width: 112px;
  }

  body.show-confirmation .shell {
    padding: 0;
    margin: 0;
  }

  body.show-confirmation .hero {
    display: none;
  }

  body.show-confirmation .layout {
    display: block;
    margin: 0;
  }

  body.show-confirmation .menu-column {
    display: none;
  }

  body.show-confirmation .cart-column {
    position: fixed;
    inset: 0;
    z-index: 6;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    overflow: auto;
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  body.show-confirmation .cart-column > .section-header,
  body.show-confirmation .cart-column > .primary,
  body.show-confirmation .cart-column > .secondary:not(#newOrder) {
    display: none;
  }

  body.show-confirmation .confirmation-card {
    display: grid !important;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    overflow: auto;
    padding: 24px 18px 30px;
  }

body.show-confirmation .summary-card,
  body.show-confirmation #copyOrder,
  body.show-confirmation #placeOrder,
  body.show-confirmation #orderNow,
  body.show-confirmation #mobileOrderNow,
  body.show-confirmation .mobile-bar {
    display: none !important;
  }
}
