/* Ficha de producto Chef Urbano: misma lógica, jerarquía y acabado responsive. */
.product-sheet {
  --product-sheet-line: #e7e5de;
  --product-sheet-muted: #66645d;
  --product-sheet-surface: #fffefa;
  --product-sheet-inset: #f6f4ee;
}

.overlay-product.product-sheet { width: min(100%, var(--shell-w)); }

.product-sheet .sheet-full { background: var(--product-sheet-surface); }

.product-sheet .sheet-scroll-area {
  background: var(--product-sheet-surface);
  scrollbar-gutter: stable;
}

.product-sheet .sheet-hero {
  height: clamp(330px, 96vw, 400px);
  min-height: 330px;
  max-height: 400px;
  border-bottom: 1px solid var(--product-sheet-line);
  background: #fff;
}

.product-sheet .sheet-hero img {
  padding: 0 0 54px;
  object-fit: contain;
  object-position: center;
}

.product-sheet .sheet-topbar { padding: max(12px, env(safe-area-inset-top)) 14px 12px; }

.product-sheet .sheet-topbar .icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(33, 31, 26, 0.1);
  border-radius: 50%;
  color: #26241f;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(34, 31, 24, 0.1);
  backdrop-filter: blur(8px);
}

.product-sheet .sheet-qty-wrap {
  bottom: 8px;
  z-index: 3;
}

.product-sheet .sheet-qty {
  min-width: 128px;
  min-height: 44px;
  border: 1px solid var(--product-sheet-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(42, 38, 29, 0.1);
}

.product-sheet .sheet-qty button {
  width: 44px;
  height: 44px;
  color: #25231f;
  background: transparent;
}

.product-sheet .sheet-qty #sheetQtyVal {
  min-width: 30px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.product-sheet .sheet-content {
  margin-top: 0;
  padding: 20px 20px 124px;
  border-radius: 0;
  background: var(--product-sheet-surface);
}

.sheet-product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet-product-heading > div:first-child { min-width: 0; }

.product-sheet .sheet-title {
  margin: 0;
  color: #25231f;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.product-sheet .sheet-price-inline {
  flex: 0 0 auto;
  margin: 2px 0 0;
  color: #25231f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-sheet .sheet-desc {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--product-sheet-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.product-sheet .sheet-group {
  margin: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--product-sheet-line);
  border-bottom: 1px solid var(--product-sheet-line);
  border-radius: 0;
  background: transparent;
}

.product-sheet .sheet-group summary {
  min-height: 52px;
  padding: 12px 0 8px;
  cursor: pointer;
}

.product-sheet .sheet-group-label {
  color: #25231f;
  font-size: 16px;
  font-weight: 700;
}

.product-sheet .sheet-group-hint {
  color: var(--product-sheet-muted);
  font-size: 13px;
}

.product-sheet .sheet-ingredients-list {
  display: block;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}

.product-sheet .sheet-ingredients-list li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: #3d3a34;
  background: transparent;
  font-size: 14px;
  line-height: 1.35;
}

.product-sheet .sheet-ingredients-list li::before {
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: #d8aa00;
  content: '';
}

.product-sheet .sheet-ingredient-name { font-weight: 500; }

.product-sheet .sheet-ingredient-amount {
  color: #747067;
  font-variant-numeric: tabular-nums;
}

.product-sheet .sheet-ingredients-list li.is-included-side {
  border: 0;
  color: #3d3a34;
  background: transparent;
}

.sheet-personalization { margin-top: 24px; }

.sheet-personalization > h3 {
  margin: 0 0 10px;
  color: #25231f;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-sheet .sheet-personalization :is(.menu-row, .toggle-row) {
  box-sizing: border-box;
  width: 100%;
  min-height: 70px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--product-sheet-line);
  border-bottom: 0;
  color: #25231f;
  background: #fff;
  font-family: inherit;
  text-align: left;
}

.product-sheet .sheet-personalization :is(.menu-row, .toggle-row):first-of-type {
  border-radius: 14px 14px 0 0;
}

.product-sheet .sheet-personalization .menu-row:last-of-type {
  border-bottom: 1px solid var(--product-sheet-line);
  border-radius: 0 0 14px 14px;
}

.sheet-customization-summary {
  margin-top: 12px;
  padding: 12px 0 4px 14px;
  border: 0;
  border-left: 3px solid #d8aa00;
  border-radius: 0;
  background: transparent;
}

.sheet-customization-summary > strong {
  display: block;
  margin-bottom: 7px;
  color: #39331f;
  font-size: 14px;
}

.sheet-customization-summary ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-customization-summary li {
  padding: 3px 0;
  border-radius: 0;
  color: #514a32;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.product-mod-intro {
  margin: 0 0 12px;
  color: var(--product-sheet-muted, #66645d);
  font-size: 14px;
  line-height: 1.45;
}

.ingredient-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  margin-bottom: 6px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--product-sheet-line, #e7e5de);
  border-radius: 12px;
  background: #fff;
}

.ingredient-stepper-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ingredient-stepper-copy strong {
  color: #2d2a24;
  font-size: 14px;
  line-height: 1.25;
}

.ingredient-stepper-copy small {
  margin-top: 3px;
  color: var(--product-sheet-muted, #66645d);
  font-size: 12px;
  line-height: 1.25;
}

.ingredient-stepper {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 44px 28px 44px;
  align-items: center;
  border: 1px solid var(--product-sheet-line, #e7e5de);
  border-radius: 999px;
  overflow: hidden;
  background: var(--product-sheet-inset, #f6f4ee);
}

.ingredient-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  color: #292720;
  background: transparent;
  font: 700 20px/1 inherit;
  cursor: pointer;
}

.ingredient-stepper button:disabled {
  color: #aaa69c;
  cursor: default;
}

.ingredient-stepper output {
  color: #292720;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ingredient-stepper button:focus-visible,
.product-sheet .sheet-qty button:focus-visible {
  outline: 3px solid rgba(224, 165, 0, 0.35);
  outline-offset: -3px;
}

.product-sheet .sheet-personalization .menu-row {
  appearance: none;
  cursor: pointer;
}

.product-sheet .sheet-personalization :is(.menu-row, .toggle-row) strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.product-sheet .sheet-personalization :is(.menu-row, .toggle-row) small {
  display: block;
  margin-top: 2px;
  color: var(--product-sheet-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.product-sheet .sheet-personalization .icon,
.product-sheet .sheet-personalization .inline-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  flex: 0 0 38px;
  border-radius: 10px;
  color: #49463f;
  background: var(--product-sheet-inset);
}

.product-sheet .sheet-personalization :is(.icon, .inline-icon) svg {
  width: 20px;
  height: 20px;
  margin: 0;
}

.product-sheet .toggle-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.product-sheet .menu-row .chev { color: #858178; }

.product-sheet .toggle {
  width: 46px;
  height: 28px;
  min-width: 46px;
  flex: 0 0 46px;
}

.product-sheet .toggle::after { width: 22px; height: 22px; }
.product-sheet .toggle.on::after { transform: translateX(18px); }

.product-sheet .sheet-upsell {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--product-sheet-line);
  border-radius: 14px;
  background: var(--product-sheet-inset);
}

.product-sheet .sheet-footer {
  min-height: 82px;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  border-color: var(--product-sheet-line);
  background: rgba(255, 254, 250, 0.97);
  box-shadow: 0 -8px 24px rgba(37, 35, 31, 0.06);
  backdrop-filter: blur(12px);
}

.sheet-footer-total {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 94px;
}

.sheet-footer-total > small {
  color: var(--product-sheet-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-sheet .sheet-footer .price {
  min-width: 0;
  color: #25231f;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.product-sheet .sheet-footer .btn-primary {
  min-height: 52px;
  border-radius: 12px;
  color: #211f1a;
  box-shadow: none;
  font-size: 15px;
  font-weight: 750;
}

@media (hover: hover) {
  .product-sheet .sheet-personalization .menu-row:hover { background: #faf8f2; }
}

@media (min-width: 768px) {
  .overlay-product.product-sheet {
    top: 50%;
    width: min(620px, calc(100vw - 48px));
    height: min(900px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    border: 1px solid rgba(43, 39, 31, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 72px rgba(33, 30, 23, 0.22);
    transform: translate(-50%, calc(-50% + 10px));
  }

  .overlay-product.product-sheet.on { transform: translate(-50%, -50%); }
  .overlay-product.product-sheet.closing { transform: translate(-50%, calc(-50% + 10px)); }
  .product-sheet .sheet-hero { min-height: 390px; height: 390px; max-height: 390px; }
  .product-sheet .sheet-hero img { padding: 0 0 54px; }
  .product-sheet .sheet-content { padding-inline: 28px; }
  .product-sheet .sheet-footer { padding-inline: 28px; }
}

@media (min-width: 1024px) {
  .overlay-product.product-sheet { width: min(650px, calc(100vw - 64px)); }
  .product-sheet .sheet-hero { min-height: 400px; height: 400px; max-height: 400px; }
}

@media (max-width: 390px) {
  .product-sheet .sheet-content { padding-inline: 16px; }
  .product-sheet .sheet-product-heading { gap: 10px; }
  .product-sheet .sheet-price-inline { font-size: 20px; }
  .product-sheet .sheet-footer { gap: 10px; padding-inline: 16px; }
  .sheet-footer-total { min-width: 84px; }
  .ingredient-stepper-row { gap: 8px; padding-left: 12px; }
  .ingredient-stepper { grid-template-columns: 44px 28px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .overlay-product.product-sheet,
  .overlay-product.product-sheet.on,
  .overlay-product.product-sheet.closing { transform: translate(-50%, -50%) !important; }
}
