:root {
  --paper: #f7efe6;
  --paper-2: #ead9c8;
  --ivory: #fffaf4;
  --ink: #241a14;
  --muted: #74675e;
  --brand: #70331f;
  --brand-dark: #4b2117;
  --brass: #c18a5a;
  --copper: #a86643;
  --moss: #59694e;
  --steel: #2d3438;
  --night: #0d0b09;
  --night-2: #17110d;
  --line: rgba(36, 26, 20, 0.14);
  --light-line: rgba(255, 250, 244, 0.18);
  --shadow: 0 22px 54px rgba(36, 26, 20, 0.16);
  --dark-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--night) 0 620px, var(--paper) 620px 100%);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.cart-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: rgba(13, 11, 9, 0.94);
  border-bottom: 1px solid rgba(193, 138, 90, 0.22);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: clamp(132px, 18vw, 220px);
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.brand span {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: rgba(255, 250, 244, 0.86);
  font-size: clamp(0.95rem, 1.4vw, 1.18rem);
}

.nav-links a,
.cart-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(193, 138, 90, 0.6);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(143, 45, 29, 0.96), rgba(92, 49, 31, 0.96));
  color: #fff;
  box-shadow: 0 14px 28px rgba(13, 11, 9, 0.28), 0 0 0 1px rgba(255, 250, 244, 0.06) inset;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cart-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 168, 0.86);
  box-shadow: 0 18px 36px rgba(13, 11, 9, 0.34), 0 0 0 1px rgba(255, 250, 244, 0.12) inset;
}

.cart-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ffd7b0;
}

.cart-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.cart-count {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff8ef;
  color: var(--brand-dark);
  font-size: 0.92rem;
  box-shadow: 0 8px 16px rgba(13, 11, 9, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(34px, 5vw, 70px) clamp(16px, 4vw, 56px);
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 20%, rgba(193, 138, 90, 0.24), transparent 34%),
    linear-gradient(105deg, rgba(13, 11, 9, 0.76), rgba(13, 11, 9, 0.9) 48%, rgba(13, 11, 9, 0.98)),
    linear-gradient(180deg, var(--night), var(--night-2));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(16px, 4vw, 56px) 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193, 138, 90, 0.5), transparent);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  display: block;
  opacity: 0.24;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.86), rgba(13, 11, 9, 0.2), rgba(13, 11, 9, 0.9)),
    linear-gradient(180deg, rgba(13, 11, 9, 0.58), rgba(13, 11, 9, 0.88));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 900px;
  text-align: center;
}

.hero-logo {
  width: min(440px, 82vw);
  margin-bottom: clamp(20px, 3vw, 34px);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.5));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 250, 244, 0.76);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span,
.hero-location-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(193, 138, 90, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.06);
  color: rgba(255, 250, 244, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-location-button {
  border-color: rgba(193, 138, 90, 0.76);
  background: linear-gradient(135deg, #8f2d1d, #5c311f);
  color: #fff8ef;
  box-shadow: 0 14px 28px rgba(13, 11, 9, 0.28);
}

.hero-location-button:hover {
  background: linear-gradient(135deg, #a84b2d, #6a3924);
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  border-color: var(--copper);
  background: linear-gradient(135deg, var(--copper), var(--brand));
  color: #fff;
}

.button.primary:hover {
  background: linear-gradient(135deg, #b8744b, var(--brand-dark));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ivory);
  border-color: rgba(255, 250, 244, 0.22);
}

.button.full {
  width: 100%;
}

.catalog-section,
.info-section {
  padding: clamp(42px, 7vw, 90px) clamp(16px, 4vw, 56px);
}

.catalog-section {
  position: relative;
  background:
    radial-gradient(circle at 92% 8%, rgba(193, 138, 90, 0.16), transparent 32%),
    linear-gradient(180deg, #fff8ef 0%, var(--paper) 42%, #f4e6d7 100%);
}

.catalog-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 26, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 26, 20, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 36%);
}

.catalog-section > * {
  position: relative;
}

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

.section-heading > p {
  color: var(--muted);
  white-space: nowrap;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 260px);
  gap: 12px;
  margin-bottom: 16px;
}

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

.search-field span,
.select-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(112, 51, 31, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.78);
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
}

.search-field input:focus,
.select-field select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(193, 138, 90, 0.2);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-row button {
  min-height: 38px;
  border: 1px solid rgba(112, 51, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.72);
  color: var(--muted);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 800;
}

.filter-row button.is-active {
  border-color: var(--steel);
  background: var(--steel);
  color: #fff;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 51, 31, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.88);
  box-shadow: 0 18px 36px rgba(36, 26, 20, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card.is-sold-out {
  border-color: rgba(36, 26, 20, 0.18);
  background: rgba(220, 214, 207, 0.78);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 138, 90, 0.44);
  box-shadow: 0 24px 46px rgba(36, 26, 20, 0.16);
}

.product-card.is-sold-out:hover {
  transform: none;
  box-shadow: 0 18px 36px rgba(36, 26, 20, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}

.product-card.is-sold-out img {
  filter: grayscale(0.9) brightness(0.54);
}

.product-card.is-sold-out .product-body {
  opacity: 0.68;
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(13, 11, 9, 0.86);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(13, 11, 9, 0.28);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price {
  color: var(--brand);
  font-weight: 900;
}

.price.is-sale,
.modal-price.is-sale {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.sale-badge {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f2d1d, var(--copper));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-stack {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.old-price {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.sale-price {
  color: #8f2d1d;
  font-size: 1.18rem;
  font-weight: 950;
}

.product-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-attributes {
  display: grid;
  gap: 8px;
  margin: 0;
}

.product-attributes div {
  display: grid;
  grid-template-columns: minmax(82px, 0.42fr) 1fr;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(36, 26, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.product-attributes dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-attributes dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.pending {
  color: var(--steel);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions .button {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.card-actions .button.ghost {
  background: rgba(36, 26, 20, 0.04);
  color: var(--ink);
  border-color: rgba(36, 26, 20, 0.14);
}

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 38px minmax(34px, 1fr) 38px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid rgba(193, 138, 90, 0.44);
  border-radius: var(--radius);
  background: rgba(36, 26, 20, 0.05);
}

.quantity-stepper button {
  width: 38px;
  height: 40px;
  border: 0;
  background: var(--steel);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.quantity-stepper strong {
  min-width: 0;
  text-align: center;
  font-weight: 900;
}

.quantity-stepper button:disabled,
.quantity-row button:disabled {
  cursor: default;
  opacity: 0.38;
}

.card-stepper {
  width: 100%;
}

.empty-state {
  padding: 42px 16px;
  color: var(--muted);
  text-align: center;
}

.info-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid rgba(193, 138, 90, 0.24);
  background:
    radial-gradient(circle at 12% 15%, rgba(193, 138, 90, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(13, 11, 9, 0.96), rgba(75, 33, 23, 0.9));
  color: var(--ivory);
}

.info-section p {
  color: rgba(255, 250, 244, 0.72);
  line-height: 1.6;
}

.schedule-list {
  display: grid;
  gap: 7px;
  margin: 18px 0 22px;
  padding: 0;
  color: rgba(255, 250, 244, 0.78);
  line-height: 1.45;
  list-style: none;
}

.schedule-list li {
  display: grid;
  gap: 2px;
}

.schedule-list strong {
  color: var(--brass);
}

.schedule-list.compact {
  margin: 0;
  color: var(--muted);
}

.schedule-list.compact strong {
  color: var(--brand);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list article {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 250, 244, 0.16);
}

.contact-list span {
  color: var(--brass);
  font-size: 0.85rem;
}

.contact-list strong {
  font-size: 1.04rem;
  line-height: 1.35;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.cart-panel.is-open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 9, 0.68);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(620px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--dark-shadow);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.checkout-progress span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.checkout-progress span.is-active {
  background: linear-gradient(135deg, var(--copper), #7b402b);
  color: #fff;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.cart-items {
  grid-row: 3;
  overflow: auto;
  padding: 18px 22px;
}

.checkout-form {
  grid-row: 3;
  overflow: auto;
  padding: 18px 22px;
}

.checkout-section {
  display: grid;
  gap: 16px;
}

.checkout-section h3 {
  margin-top: 4px;
  font-size: 1.05rem;
}

.option-list,
.payment-list,
.shipping-options {
  display: grid;
  gap: 10px;
}

.checkout-option,
.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.checkout-option:has(input:checked),
.payment-option:has(input:checked) {
  border-color: rgba(143, 45, 29, 0.42);
  background: rgba(255, 248, 241, 0.94);
  box-shadow: 0 14px 30px rgba(36, 26, 20, 0.08);
}

.checkout-option input,
.payment-option input,
.invoice-toggle input {
  accent-color: var(--copper);
}

.checkout-option span,
.payment-option span:not(.payment-logo) {
  display: grid;
  gap: 4px;
}

.checkout-option small,
.payment-option small,
.checkout-note {
  color: var(--muted);
  line-height: 1.35;
}

.checkout-option.compact {
  padding: 10px 12px;
}

.pickup-info {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(143, 45, 29, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 248, 241, 0.82);
}

.pickup-info h3 {
  margin: 0;
}

.pickup-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pickup-info .pickup-map-button {
  margin-top: 4px;
  box-shadow: 0 14px 28px rgba(143, 45, 29, 0.22);
}

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

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.field input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.field input:focus {
  outline: 2px solid rgba(193, 138, 90, 0.32);
  border-color: var(--copper);
}

.invoice-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.invoice-fields {
  display: grid;
  gap: 12px;
}

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

.payment-logo {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.payment-logo.jardin {
  background: #161d27;
}

.payment-logo.pichincha {
  background: #ffd600;
  color: #12285d;
}

.payment-logo.guayaquil {
  background: #d60072;
}

.payment-logo.delivery {
  background: #1f7a4d;
}

.cart-empty {
  color: var(--muted);
  line-height: 1.55;
}

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

.cart-item img {
  width: 70px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item h3 {
  margin-bottom: 4px;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.quantity-row button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.cart-summary {
  grid-row: 4;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 900;
}

.cart-summary .checkout-hint {
  display: block;
  min-height: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.cart-summary .checkout-hint.is-error {
  color: #c40000;
  font-weight: 950;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cart-summary .button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.checkout-actions:has(#checkoutBack:not([hidden])) {
  grid-template-columns: 0.9fr 1.1fr;
}

.button.is-disabled,
.button:disabled {
  cursor: default;
  opacity: 0.48;
  pointer-events: none;
}

.product-modal {
  width: min(920px, calc(100vw - 28px));
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--dark-shadow);
  padding: 0;
}

.product-modal::backdrop {
  background: rgba(13, 11, 9, 0.68);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
}

.modal-image img,
.zoom-open img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.zoom-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.zoom-open span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(193, 138, 90, 0.42);
  border-radius: var(--radius);
  background: rgba(13, 11, 9, 0.72);
  color: var(--ivory);
  font-size: 0.86rem;
  font-weight: 900;
}

.modal-content {
  padding: clamp(26px, 5vw, 46px);
}

.modal-price {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 900;
}

.modal-price .sale-price {
  font-size: 1.55rem;
}

.spec-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin: 24px 0 0;
}

.spec-list dt {
  color: var(--muted);
  font-weight: 900;
}

.spec-list dd {
  margin: 0;
}

.zoom-modal {
  width: min(1100px, calc(100vw - 24px));
  height: min(860px, calc(100vh - 24px));
  border: 0;
  border-radius: var(--radius);
  background: #0e0b09;
  color: var(--ivory);
  padding: 0;
  box-shadow: var(--dark-shadow);
}

.zoom-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.zoom-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 250, 244, 0.14);
}

.zoom-toolbar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.zoom-control {
  min-width: 42px;
  height: 40px;
  border: 1px solid rgba(193, 138, 90, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.08);
  color: var(--ivory);
  cursor: pointer;
  font-weight: 900;
}

.zoom-control:disabled {
  cursor: default;
  opacity: 0.38;
}

.zoom-stage {
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(193, 138, 90, 0.16), transparent 34%),
    #0e0b09;
}

.zoom-stage img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform-origin: top center;
}

.zoom-help {
  margin: 0;
  padding: 10px 14px 14px;
  color: rgba(255, 250, 244, 0.72);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 82px;
  }

  .brand img {
    width: 128px;
    height: 62px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.92rem;
  }

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

  .hero-copy {
    justify-self: center;
    text-align: center;
  }

  .section-heading,
  .info-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .section-heading > p {
    white-space: normal;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-image img,
  .zoom-open,
  .zoom-open img {
    max-height: 56vh;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 8px 14px;
  }

  .nav-links a {
    display: none;
  }

  .hero,
  .catalog-section,
  .info-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-media img {
    height: 100%;
  }

  .hero-points {
    display: grid;
  }

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

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

  .checkout-progress {
    padding: 10px 14px;
  }

  .checkout-progress span {
    min-height: 30px;
    font-size: 0.7rem;
  }

  .cart-items,
  .checkout-form,
  .cart-summary {
    padding-left: 14px;
    padding-right: 14px;
  }

  .checkout-actions,
  .checkout-actions:has(#checkoutBack:not([hidden])) {
    grid-template-columns: 1fr;
  }

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

  .payment-logo {
    display: none;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .zoom-toolbar {
    align-items: flex-start;
    display: grid;
  }

  .zoom-actions {
    width: 100%;
  }

  .zoom-control {
    flex: 1;
  }
}
