:root {
  --primary: #6a2f16;
  --primary-foreground: #fffaf2;
  --primary-soft: #f7ead6;
  --success: #2f7d46;
  --success-soft: #eaf6ec;
  --background: #f8f4ee;
  --foreground: #2b1a12;
  --muted-foreground: #78655a;
  --border: #eadfd3;
  --best-badge: #d49a31;
  --best-badge-text: #3f220f;
}

html { scroll-behavior: smooth; }
body { background: var(--background); color: var(--foreground); }
body.modal-open { overflow: hidden; }

.pudim-banner {
  background: #c69a68;
}

.pudim-banner img {
  filter: saturate(.95) contrast(1.03);
}

.product-card-button {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.product-card-button:focus-visible,
.product-card-details:focus-visible,
.cup-carousel-open:focus-visible,
.cup-carousel-arrow:focus-visible,
.modal-carousel-arrow:focus-visible,
.pudim-nav a:focus-visible,
.pudim-modal button:focus-visible,
.pudim-modal select:focus-visible,
.pudim-modal input:focus-visible,
.cart-bar button:focus-visible,
.cart-panel button:focus-visible {
  outline: 3px solid #d49a31;
  outline-offset: 3px;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card-button:hover .product-photo { transform: scale(1.04); }

.product-gallery-card { isolation: isolate; }
.product-card-details,
.cup-carousel-open {
  appearance: none;
  width: 100%;
  border: 0;
  background: white;
  color: inherit;
  cursor: pointer;
}
.cup-carousel-open { position: absolute; inset: 0; overflow: hidden; }
.cup-card-carousel,
.cup-card-slide { position: absolute; inset: 0; display: block; overflow: hidden; }
.cup-card-slide { opacity: 0; transition: opacity .5s ease; }
.cup-card-slide.is-active { opacity: 1; }
.cup-individual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.98) contrast(1.02);
}
.cup-carousel-arrow,
.modal-carousel-arrow {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(106, 47, 22, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(48, 24, 10, .2);
}
.cup-carousel-arrow { top: 50%; transform: translateY(-50%); }
.cup-carousel-prev { left: 8px; }
.cup-carousel-next { right: 8px; }
.cup-carousel-dots,
.modal-carousel-dots {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 9px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.cup-carousel-dot,
.modal-carousel-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 4px rgba(49, 23, 8, .35);
  transition: width .2s ease, background .2s ease;
}
.cup-carousel-dot.is-active,
.modal-carousel-dot.is-active { width: 18px; border-radius: 999px; background: var(--primary); }

.pudim-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  border-radius: 999px;
  background: #f3c664;
  color: #4b250f;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(67, 33, 13, .15);
}

.section-symbol {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 16px;
}

.region-trigger { display: inline-flex; align-items: center; gap: 7px; border: 1px dashed rgba(120, 101, 90, .35); border-radius: 999px; background: transparent; padding: 5px 12px; color: var(--foreground); font-size: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.region-trigger:hover { border-color: var(--primary); background: var(--primary-soft); }
.region-trigger:focus-visible { outline: 3px solid #d49a31; outline-offset: 3px; }
.location-pin { display: block; width: 18px; height: 18px; object-fit: contain; }
.inline-emoji-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }
.region-change { color: var(--primary); font-size: 12px; font-weight: 700; }
.region-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 18px; background: rgba(35, 19, 10, .64); }
.region-modal[hidden] { display: none; }
.region-dialog { position: relative; width: min(460px, 100%); max-height: 88vh; overflow: auto; border-radius: 24px; background: white; padding: 26px 22px 22px; box-shadow: 0 24px 80px rgba(31, 16, 8, .35); }
.region-close { position: absolute; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--primary-soft); color: var(--foreground); font-size: 20px; cursor: pointer; }
.region-heading-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 24px; }
.location-pin-large { display: block; width: 32px; height: 32px; object-fit: contain; }
.region-dialog h2 { text-align: center; color: var(--primary); font-size: 22px; font-weight: 900; }
.region-subtitle { margin: 6px auto 18px; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; text-align: center; }
.region-list { display: grid; gap: 8px; }
.region-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 12px; background: #faf8f5; padding: 11px 13px; color: #8b7b71; text-align: left; }
.region-option span { font-weight: 700; }
.region-option em { border-radius: 999px; background: #eee9e4; padding: 3px 8px; color: #8b7b71; font-size: 11px; font-style: normal; font-weight: 700; }
.region-option:disabled { cursor: not-allowed; opacity: .72; }
.region-option.is-available { border-color: rgba(47, 125, 70, .35); background: var(--success-soft); color: var(--foreground); cursor: pointer; }
.region-option.is-available strong { color: var(--success); font-size: 12px; }
.region-option.is-available:hover { border-color: var(--success); }
.region-option.is-available:focus-visible, .region-close:focus-visible { outline: 3px solid #d49a31; outline-offset: 2px; }

.pudim-modal,
.cart-panel-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(35, 19, 10, .64);
}

.pudim-modal[hidden],
.cart-panel-wrap[hidden] { display: none; }

.pudim-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 80px rgba(31, 16, 8, .35);
}

.pudim-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.pudim-modal-photo {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: var(--primary-soft);
}

.modal-image-viewport { position: absolute; inset: 0; overflow: hidden; background: var(--primary-soft); }

#modal-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}

#modal-image.is-individual-cup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
  filter: saturate(.98) contrast(1.02);
}

.modal-carousel-arrow { top: 50%; transform: translateY(-50%); }
.modal-carousel-prev { left: 12px; }
.modal-carousel-next { right: 12px; }
.modal-carousel-dots { bottom: 14px; }
.modal-carousel-arrow[hidden],
.modal-carousel-dots[hidden] { display: none; }

.pudim-modal-content { padding: 34px 30px 30px; }

.pudim-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--foreground);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
}

.pudim-field { margin-top: 18px; }
.pudim-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.pudim-field select,
.pudim-field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 12px 14px;
  color: var(--foreground);
  font: inherit;
}

.quantity-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; }
.modal-price { font-size: 24px; font-weight: 900; color: var(--success); text-align: right; padding-bottom: 8px; }
.modal-add {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cart-bar {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 14px;
  width: min(680px, calc(100% - 24px));
  transform: translateX(-50%);
  border-radius: 18px;
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 34px rgba(62, 28, 10, .35);
}

.cart-bar[hidden] { display: none; }
.cart-bar button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px 18px;
  font: inherit;
  cursor: pointer;
}

.cart-count {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.cart-panel-wrap { place-items: end center; padding: 0; }
.cart-panel {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: white;
  padding: 22px 20px 26px;
  box-shadow: 0 -18px 70px rgba(31, 16, 8, .28);
}

.cart-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-panel-head button { border: 0; background: var(--primary-soft); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.cart-item-remove { border: 0; background: #f5f2ee; color: #806e62; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 20px; font-weight: 900; }
.cart-whatsapp { display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 999px; background: #168c45; color: white; padding: 14px 18px; font: inherit; font-weight: 800; cursor: pointer; }
.cart-note { margin-top: 9px; color: var(--muted-foreground); font-size: 12px; text-align: center; }
.empty-cart { padding: 30px 0; color: var(--muted-foreground); text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.step-card { border: 1px solid var(--border); border-radius: 16px; background: white; padding: 18px; }
.step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-weight: 900; }

.reviews-section { background: white; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.reviews-summary { padding: 22px 20px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.reviews-score { display: block; font-size: 38px; line-height: 1; color: #111827; }
.reviews-stars { margin-top: 6px; color: #ffb000; font-size: 28px; line-height: 1; letter-spacing: 1px; }
.reviews-summary p { margin-top: 10px; font-size: 16px; color: #111827; }
.reviews-summary p span, .reviews-summary small { color: var(--muted-foreground); }
.reviews-summary small { display: block; margin-top: 2px; font-size: 14px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; column-gap: 30px; }
.review-item { min-width: 0; padding: 16px 0 20px; border-bottom: 1px solid var(--border); }
.review-item h3 { color: #0f172a; font-size: 18px; font-weight: 800; }
.review-rating { margin-top: 3px; color: #ffb000; font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.review-rating span { font-weight: 500; }
.review-item p { margin-top: 7px; color: #64748b; font-size: 16px; line-height: 1.5; }
.google-review-cta { margin: 4px 20px 20px; padding: 30px 20px; border: 2px solid var(--primary); border-radius: 20px; background: #fffaf5; text-align: center; }
.google-review-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-size: 29px; line-height: 1; }
.google-review-cta h3 { color: var(--primary); font-size: 22px; font-weight: 900; }
.google-review-cta p { margin-top: 5px; color: var(--muted-foreground); font-size: 16px; }
.google-review-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; border-radius: 999px; background: var(--primary); color: white; padding: 12px 26px; font-size: 16px; font-weight: 800; box-shadow: 0 3px 8px rgba(62, 28, 10, .18); }
.google-review-cta a:hover { filter: brightness(1.08); }
.google-review-cta a:focus-visible { outline: 3px solid #d49a31; outline-offset: 3px; }

.vanpex-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid #202020;
  background: #050505;
  color: #d7d7d7;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.vanpex-credit img {
  width: 120px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 700px) {
  .pudim-modal-grid { grid-template-columns: 1fr; }
  .pudim-modal-photo { min-height: 270px; max-height: 34vh; }
  .pudim-modal-content { padding: 24px 20px 22px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; padding: 10px 20px 18px; }
  .review-item:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
  .steps-grid { grid-template-columns: 1fr; }
  .quantity-row { grid-template-columns: 95px 1fr; }
}
