* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050607;
  --surface: #111418;
  --surface-soft: #171b21;
  --surface-strong: #0b0d10;
  --line: #2a313a;
  --text: #f8fafc;
  --muted: #aab4c2;
  --gold: #ffbf00;
  --gold-dark: #e2a800;
  --green: #22c55e;
  --red: #dc2626;
  --purple: #8b5cf6;
}

:root[data-theme="standard"] {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --surface-soft: #eef5ef;
  --surface-strong: #fbfcfa;
  --line: #dce6df;
  --text: #10241d;
  --muted: #667a72;
  --gold: #0f5b43;
  --gold-dark: #0a3d2e;
  --green: #2fa86d;
  --red: #d4523f;
  --purple: #6f5ca8;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 191, 0, 0.12), transparent 28rem),
    linear-gradient(180deg, #090a0c 0%, var(--bg) 38%, #030303 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

:root[data-theme="standard"] body {
  background:
    radial-gradient(circle at top left, rgba(200, 239, 122, 0.2), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 42%, #eef2eb 100%);
}

:root[data-theme="standard"] .header {
  border-bottom-color: rgba(16, 36, 29, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="standard"] .logo {
  border-color: rgba(15, 91, 67, 0.2);
  background: #eef5ef;
}

:root[data-theme="standard"] .status {
  border-color: rgba(47, 168, 109, 0.3);
  background: #dff4e8;
  color: #12633f;
}

:root[data-theme="standard"] .tracking-btn:hover {
  background: rgba(15, 91, 67, 0.08);
}

:root[data-theme="standard"] .account-btn {
  border-color: var(--line);
}

:root[data-theme="standard"] .cart-button {
  background: #c8ef7a;
  color: #10241d;
}

:root[data-theme="standard"] #cartCount {
  background: #10241d;
}

:root[data-theme="standard"] .product-card,
:root[data-theme="standard"] .cart-content,
:root[data-theme="standard"] .checkout-content,
:root[data-theme="standard"] .tracking-content,
:root[data-theme="standard"] .customer-auth-content,
:root[data-theme="standard"] .customer-account-content,
:root[data-theme="standard"] .customer-order-details,
:root[data-theme="standard"] .location-card,
:root[data-theme="standard"] .checkout-step,
:root[data-theme="standard"] .order-card,
:root[data-theme="standard"] .summary-card {
  box-shadow: 0 16px 45px rgba(16, 36, 29, 0.08);
}

:root[data-theme="standard"] input,
:root[data-theme="standard"] select,
:root[data-theme="standard"] textarea {
  color-scheme: light;
}

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

button {
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  padding: 14px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 17, 0.94);
  backdrop-filter: blur(14px);
}

.store-menu-button {
  width: 44px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}

.store-menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--text);
}

.store-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(2, 6, 5, 0.55);
  backdrop-filter: blur(3px);
}

.store-menu-panel {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(380px, calc(100% - 24px));
  height: 100dvh;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.3);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.store-menu-panel.open {
  transform: translateX(0);
}

body.store-menu-open {
  overflow: hidden;
}

.store-menu-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.store-menu-heading span,
.store-menu-links small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.store-menu-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.store-menu-heading button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
}

.store-menu-links {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.store-menu-links button {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 12px;
}

.store-menu-links button > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
}

.store-menu-links strong {
  display: block;
  margin-bottom: 3px;
}

.category-nav {
  position: sticky;
  z-index: 45;
  top: 82px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.category-nav-track {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  gap: 9px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 11px 0;
  scrollbar-width: none;
}

.category-nav-track::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.category-chip.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--surface-strong);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-copy {
  min-width: 0;
}

.logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: cover;
  border: 1px solid rgba(255, 191, 0, 0.25);
  border-radius: 14px;
  background: #0d0d0d;
}

.brand h1 {
  color: var(--gold);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.status,
.tracking-btn,
.account-btn,
.cart-button {
  min-height: 42px;
  border-radius: 8px;
  white-space: nowrap;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  background: rgba(6, 63, 32, 0.72);
  color: #7bed9b;
  font-size: 14px;
  font-weight: 800;
  padding: 0 14px;
}

.status.closed {
  color: #fca5a5;
}

.status.closed span {
  background: var(--red);
}

.status span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.tracking-btn {
  border: 1px solid rgba(255, 191, 0, 0.5);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 0 15px;
}

.tracking-btn:hover {
  background: rgba(255, 191, 0, 0.12);
}

.account-btn {
  border: 1px solid rgba(170, 180, 194, 0.32);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 0 15px;
}

.account-btn.is-logged {
  border-color: rgba(34, 197, 94, 0.5);
  color: #7bed9b;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: var(--gold);
  color: #050505;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 0 16px;
}

#cartCount {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  background: #050505;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 0 7px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: clamp(34px, 7vw, 72px) 0 clamp(22px, 4vw, 42px);
  text-align: center;
}

.hero h2 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.hero h2 span {
  color: var(--gold);
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.menu {
  display: block;
  padding: 10px 0 56px;
}

.menu-category-section {
  scroll-margin-top: 148px;
  padding: 10px 0 34px;
}

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

.menu-category-heading h2 {
  font-size: clamp(25px, 4vw, 36px);
}

.menu-category-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.menu-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0c0c0c;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.card-title h3 {
  min-width: 0;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.card-title .product-price {
  color: var(--gold);
  font-size: 23px;
  line-height: 1.1;
  white-space: nowrap;
}

.card-title .product-price span,
.card-title .product-price small {
  display: block;
  text-align: right;
}

.card-title .product-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  text-decoration: line-through;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--green);
  color: #052e16;
  font-size: 14px;
  font-weight: 900;
  padding: 0 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.card-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 14px 0 18px;
}

.btn-order {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: #050505;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  margin-top: auto;
  padding: 0 14px;
}

.btn-order:hover {
  filter: brightness(1.05);
}

.hidden {
  display: none !important;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.76);
  padding: 18px;
}

.cart-content {
  width: min(100%, 640px);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  padding: clamp(18px, 4vw, 26px);
}

.tracking-content-shell {
  width: min(100%, 680px);
}

.account-content-shell {
  width: min(100%, 720px);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.cart-header h2 {
  color: var(--gold);
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.1;
}

.cart-header button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

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

.empty-cart {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 14px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h4 {
  overflow-wrap: anywhere;
  margin-bottom: 5px;
}

.cart-item-info p {
  color: var(--gold);
  font-weight: 800;
}

.remove-item {
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 0 12px;
}

.product-addons-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e12;
  margin: 12px 0;
  padding: 12px;
}

.product-addons-box strong {
  color: var(--gold);
  font-size: 14px;
}

.product-addons-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.product-addons-box input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.cart-item-addons {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0;
}

.store-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
  color: #03130a;
  font-weight: 900;
  padding: 14px 18px;
  text-decoration: none;
}

.cart-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding: 15px 0;
}

.cart-summary p,
.cart-summary h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary p {
  color: var(--muted);
  margin-bottom: 10px;
}

.cart-summary strong {
  color: var(--text);
}

.cart-summary h3 {
  color: var(--gold);
  font-size: 22px;
  margin-top: 15px;
}

#deliveryFee {
  color: var(--green);
}

#cartTotal {
  color: var(--gold);
}

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

#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  color: var(--text);
  font-size: 15px;
  padding: 0 13px;
}

#checkoutForm input:focus,
#checkoutForm textarea:focus,
#checkoutForm select:focus {
  border-color: var(--gold);
  outline: none;
}

#checkoutForm input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#customerEmail,
#customerComplement,
#customerAddress,
#useCustomerLocation,
#customerLocationText,
#customerLocationMap,
#paymentMethod,
#paymentMethodInfo,
#customerNote,
#addMoreItems,
#checkoutForm .checkout-btn,
.delivery-distance-text {
  grid-column: 1 / -1;
}

.no-number-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  padding: 0 13px;
}

.no-number-option input {
  width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  flex: 0 0 18px;
  accent-color: var(--gold);
  padding: 0;
}

#checkoutForm textarea {
  min-height: 88px;
  resize: vertical;
  padding-top: 13px;
}

.delivery-distance-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  min-height: 20px;
}

.checkout-btn,
.add-more-btn,
.pix-payment-box button {
  min-height: 50px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.checkout-btn {
  background: var(--gold);
  color: #050505;
}

.checkout-btn.needs-disabled {
  background: #353b45;
  color: var(--muted);
  box-shadow: none;
}

.secondary-action {
  background: #28303a;
  color: var(--text);
  border: 1px solid var(--line);
}

.add-more-btn {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.location-btn {
  min-height: 48px;
  border: 1px solid rgba(77, 163, 255, 0.38);
  border-radius: 8px;
  background: rgba(77, 163, 255, 0.1);
  color: #9ed0ff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.location-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.customer-location-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  min-height: 20px;
}

.customer-location-text.success {
  color: #7bed9b;
}

.customer-location-text.info {
  color: #9ed0ff;
}

.customer-location-text.error {
  color: #fca5a5;
}

.customer-location-map {
  display: grid;
  gap: 10px;
}

.location-map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  aspect-ratio: 16 / 9;
}

.location-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.location-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.location-map-footer a {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.payment-method-info {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 14px;
}

.tracking-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.tracking-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px 14px;
}

.tracking-steps li.done {
  border-color: rgba(34, 197, 94, 0.5);
  color: #7bed9b;
}

.tracking-steps li.current {
  background: rgba(6, 63, 32, 0.62);
}

.payment-link {
  display: block;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #00a650;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.order-cancellation-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.12);
  padding: 14px;
}

.order-cancellation-box.pending {
  border-color: rgba(255, 191, 0, 0.5);
  background: rgba(255, 191, 0, 0.08);
}

.order-cancellation-box.resolved {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.35);
}

.request-cancellation-button,
.confirm-cancellation-button {
  min-height: 46px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #991b1b;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

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

.cancellation-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.cancellation-form select,
.cancellation-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07090c;
  color: var(--text);
  padding: 12px;
}

.cancellation-form textarea {
  min-height: 88px;
  resize: vertical;
}

.cancellation-warning,
.cancellation-rejected {
  color: #fbbf24;
  line-height: 1.45;
}

.cancellation-form-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.cancellation-form-actions button:first-child {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202630;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

@media (max-width: 620px) {
  .cancellation-form-actions {
    grid-template-columns: 1fr;
  }
}

.pix-payment-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pix-payment-box img {
  width: 220px;
  max-width: 100%;
  justify-self: center;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.pix-payment-box label {
  color: var(--gold);
  font-weight: 800;
}

.pix-payment-box textarea,
.pix-payment-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  color: var(--text);
  padding: 12px;
}

.pix-payment-box textarea {
  min-height: 90px;
  resize: vertical;
}

.pix-payment-box button {
  background: #00a650;
  color: #fff;
}

.payment-error {
  color: #fca5a5;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.account-tabs button,
#customerLogoutButton {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.account-tabs button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #050505;
}

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

.customer-auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  color: var(--text);
  padding: 0 13px;
}

#customerLoginInput,
#customerLoginPassword,
#customerLoginForm button,
#registerCustomerEmail,
#registerCustomerPassword,
#registerCustomerAddress,
.marketing-option,
.privacy-note,
#customerRegisterForm button {
  grid-column: 1 / -1;
}

.marketing-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 0 13px;
}

.marketing-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.privacy-note,
.customer-auth-message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.customer-forgot-button {
  border: none;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
  min-height: auto;
  padding: 2px 0;
}

.customer-manual-recovery {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 191, 0, 0.25);
  border-radius: 8px;
  background: rgba(255, 191, 0, 0.08);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 12px;
  padding: 14px;
}

.customer-manual-recovery strong {
  color: var(--gold);
}

.customer-manual-recovery.hidden {
  display: none;
}

.customer-auth-message {
  min-height: 22px;
  margin-top: 12px;
}

.customer-auth-message.success {
  color: #7bed9b;
}

.customer-auth-message.error {
  color: #fca5a5;
}

.customer-account-panel {
  display: grid;
  gap: 16px;
}

.customer-profile-box {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 14px;
}

.customer-profile-box span {
  color: var(--muted);
  font-size: 13px;
}

.customer-profile-box strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
  margin-top: 3px;
}

.customer-profile-box p {
  color: var(--muted);
  margin-top: 4px;
}

#customerLogoutButton {
  flex: 0 0 auto;
  padding: 0 16px;
}

.customer-account-panel h3 {
  color: var(--gold);
}

.customer-orders-list {
  display: grid;
  gap: 10px;
}

.customer-order-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  padding: 14px;
}

.customer-order-item strong {
  color: var(--gold);
}

.customer-order-item p {
  color: var(--muted);
  margin-top: 5px;
}

@media (max-width: 920px) {
  .header {
    min-height: 74px;
  }

  .header-actions {
    width: auto;
    display: flex;
    margin-left: auto;
  }

  .status {
    justify-content: center;
  }

  .category-nav {
    top: 74px;
  }
}

@media (max-width: 620px) {
  .header {
    padding: 12px;
  }

  .brand {
    flex: 1;
  }

  .logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .brand p {
    max-width: min(44vw, 220px);
    font-size: 12px;
  }

  .brand h1 {
    max-width: min(46vw, 230px);
    font-size: 18px;
  }

  .header-actions {
    gap: 7px;
  }

  .status {
    position: absolute;
    left: 68px;
    bottom: -13px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
  }

  .cart-button {
    min-width: 44px;
    padding: 0 10px;
    font-size: 12px;
  }

  .category-nav {
    top: 80px;
  }

  .category-nav-track {
    width: 100%;
    padding: 10px 12px;
  }

  .hero {
    padding: 42px 0 22px;
    text-align: left;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .menu-category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-content {
    padding: 16px;
  }

  .card-title {
    grid-template-columns: 1fr;
  }

  .card-title .product-price span,
  .card-title .product-price small {
    text-align: left;
  }

  .location-map-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-modal {
    align-items: stretch;
    padding: 10px;
  }

  .cart-content {
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }

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

  .remove-item {
    width: 100%;
  }

  #checkoutForm {
    grid-template-columns: 1fr;
  }

  .customer-auth-form,
  .account-tabs {
    grid-template-columns: 1fr;
  }

  .customer-profile-box {
    flex-direction: column;
  }
}

/* CHECKOUT EM ETAPAS */

.checkout-modal-shell {
  width: min(100%, 1080px);
  max-height: min(94vh, 920px);
  padding: 22px;
}

.checkout-eyebrow {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.checkout-step {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e12;
  color: var(--muted);
  padding: 8px 12px;
  text-align: left;
}

.checkout-step span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #252b33;
  color: var(--text);
  font-weight: 900;
}

.checkout-step.active,
.checkout-step.complete {
  border-color: rgba(255, 191, 0, 0.65);
}

.checkout-step.active {
  background: rgba(255, 191, 0, 0.1);
  color: var(--text);
}

.checkout-step.active span,
.checkout-step.complete span {
  background: var(--gold);
  color: #050505;
}

.checkout-step.complete span {
  font-size: 0;
}

.checkout-step.complete span::after {
  content: "✓";
  font-size: 15px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 18px;
}

.checkout-order-panel,
#checkoutForm {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0e12;
}

.checkout-order-panel {
  position: sticky;
  top: 0;
  padding: 16px;
}

.checkout-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-panel-heading h3 {
  font-size: 20px;
}

.checkout-panel-heading .add-more-btn {
  min-height: 38px;
  padding: 0 11px;
}

.checkout-order-panel .cart-items {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 3px;
}

.checkout-order-panel .cart-item {
  padding: 11px;
}

.checkout-order-panel .remove-item {
  min-height: 34px;
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0.55);
  color: #fca5a5;
}

.checkout-order-panel .cart-summary {
  margin: 4px 0 0;
  padding-bottom: 0;
}

#checkoutForm {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.checkout-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 20px;
  animation: checkout-stage-in 0.2s ease;
}

.checkout-stage[hidden] {
  display: none;
}

@keyframes checkout-stage-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkout-stage-heading,
.checkout-stage-actions,
.checkout-next,
.full-field,
.optional-address-fields,
.payment-options,
.payment-method-info,
.delivery-distance-text,
#calculateDelivery {
  grid-column: 1 / -1;
}

.checkout-stage-heading {
  margin-bottom: 5px;
}

.checkout-stage-heading > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-stage-heading h3 {
  font-size: 23px;
  margin: 4px 0 6px;
}

.checkout-stage-heading p {
  color: var(--muted);
  line-height: 1.45;
}

.field-group {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.field-group input,
.field-group textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07090c;
  color: var(--text);
  font-size: 15px;
  padding: 0 13px;
}

.field-group textarea {
  min-height: 112px;
  padding-top: 13px;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(255, 191, 0, 0.12);
}

.field-group.invalid input,
.field-group.invalid textarea {
  border-color: #ef4444;
}

.field-error {
  min-height: 15px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
}

.optional-address-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
}

.optional-address-fields summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  padding: 14px;
}

.optional-address-fields > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.location-control,
.address-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  padding: 13px;
}

.location-control strong {
  display: block;
  margin-bottom: 4px;
}

.location-control .location-btn {
  flex: 0 0 auto;
  min-height: 42px;
}

.address-confirmation {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.08);
}

.address-confirmation span {
  display: block;
  color: #7bed9b;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.address-confirmation strong,
.address-confirmation p {
  display: block;
  line-height: 1.4;
}

.address-confirmation p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.address-confirmation button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202630;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
}

.payment-method-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-option {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  color: var(--text);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.payment-option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-option.selected {
  border-color: var(--gold);
  background: rgba(255, 191, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 0, 0.2);
}

.payment-method-info:empty {
  display: none;
}

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

.payment-method-info strong {
  color: var(--gold);
  margin-bottom: 4px;
}

.delivery-distance-text.error,
.payment-method-info.error {
  color: #fca5a5;
}

.note-field > small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.checkout-trust span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0e;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
  text-align: center;
}

.checkout-stage-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.checkout-next,
.checkout-back {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.checkout-next {
  background: var(--gold);
  color: #050505;
}

.checkout-back {
  background: #202630;
  color: var(--text);
}

.checkout-submit {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.checkout-submit span {
  font-size: 17px;
}

@media (max-width: 920px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-order-panel {
    position: static;
  }

  .checkout-order-panel .cart-items {
    max-height: 210px;
  }
}

@media (max-width: 620px) {
  .cart-modal {
    align-items: flex-end;
    padding: 0;
  }

  .cart-content {
    width: 100%;
    max-height: 96vh;
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
    padding: 16px;
  }

  .checkout-modal-shell {
    padding: 14px;
  }

  .checkout-progress {
    position: sticky;
    top: -14px;
    z-index: 4;
    background: var(--surface);
    padding: 8px 0;
  }

  .checkout-step {
    min-height: 46px;
    justify-content: center;
    padding: 6px;
  }

  .checkout-step strong {
    display: none;
  }

  .checkout-stage,
  .optional-address-fields > div,
  .payment-options,
  .checkout-trust {
    grid-template-columns: 1fr;
  }

  .checkout-stage {
    padding: 16px;
  }

  .checkout-order-panel {
    padding: 14px;
  }

  .checkout-order-panel .cart-items {
    max-height: 180px;
  }

  .checkout-order-panel .cart-item {
    align-items: center;
    flex-direction: row;
  }

  .checkout-order-panel .remove-item {
    width: auto;
  }

  .location-control,
  .address-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .location-control .location-btn,
  .address-confirmation button {
    width: 100%;
  }

  .payment-option {
    min-height: 66px;
  }

  .checkout-stage-actions {
    grid-template-columns: 1fr;
  }

  .checkout-stage-actions .checkout-back {
    order: 2;
  }
}
