.mdp {
  --mdp-paper: #fffdf0;
  --mdp-edge: #d9d6b9;
  max-width: 1240px;
  margin-inline: auto;
  padding-block: clamp(12px, 2.5vw, 32px) 56px;
}

.mdp-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 14px;
  color: var(--muted);
  font-size: .79rem;
}
.mdp-crumbs a {
  padding-block: 5px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .28em;
}
.mdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 62px);
}
.mdp-gallery { min-width: 0; }
.mdp-stage {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(700px, 75svh);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.mdp-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 9%;
}
.mdp-photo-bar {
  position: absolute;
  inset-inline: 13px;
  inset-block-end: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mdp-photo-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  background: var(--mdp-paper);
  padding: 2px;
  box-shadow: 0 0 0 1px #2a302118;
}
.mdp-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  border: 1px solid var(--mdp-edge);
  border-radius: 50%;
  background: var(--mdp-paper);
  color: var(--ink);
}
.mdp-photo-controls .mdp-icon-button { border-color: transparent; }
.mdp-icon-button:hover { background: var(--beige); }
.mdp-photo-count { min-width: 3ch; white-space: nowrap; font-weight: 600; font-size: .78rem; direction: ltr; }
.mdp-chevron { width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.mdp-chevron-right { transform: rotate(225deg); }
.mdp-zoom-icon { position: relative; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; transform: translate(-1px,-1px); }
.mdp-zoom-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); top: 11px; left: 8px; }
.mdp-thumbnails { display: flex; overflow-x: auto; gap: 9px; padding: 6px 4px; margin-block-start: 10px; }
.mdp-thumbnail { position: relative; display: block; flex: 0 0 clamp(51px, 6vw, 70px); aspect-ratio: 1; overflow: hidden; }
.mdp-thumbnail[aria-current="true"]::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 4px;
  margin-inline: auto;
  width: 19px;
  height: 3px;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
}
.mdp-thumbnail img { height: 100%; width: 100%; object-fit: cover; }
.mdp-lightbox { width: fit-content; max-width: calc(100% - 20px); background: transparent; overflow: visible; }
.mdp-lightbox::backdrop { background: #171b14d9; }
.mdp-lightbox-inner { position: relative; }
.mdp-lightbox [data-lightbox-photo] { width: auto; height: auto; max-width: min(940px, calc(100vw - 20px)); max-height: 90dvh; }
.mdp-lightbox-close { position: absolute; inset-inline-end: 12px; inset-block-start: 12px; font: 1.7rem/1 Arial, sans-serif; }
.mdp-lightbox-controls { position: absolute; inset-inline-start: 12px; inset-block-end: 12px; }

.mdp-buy {
  position: relative;
  min-width: 0;
  margin-block-start: clamp(0px, 2vw, 24px);
  padding: clamp(20px, 3vw, 39px);
  border: 1px solid var(--mdp-edge);
  border-radius: 18px 54px 18px 18px;
  background: var(--mdp-paper);
}
.mdp-buy-solo { grid-column: 1 / -1; max-width: 680px; }
.mdp-buy h1 {
  font-size: clamp(1.55rem, 3.1vw, 2.8rem);
  font-weight: 900;
  line-height: 1.43;
  text-wrap: pretty;
}
.mdp-buy .product-short-description { margin-block: 9px 16px; color: var(--muted); font-size: .91rem; line-height: 1.95; }
.mdp-buy .product-short-description > p { margin: 0; }
.mdp-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; padding-block-end: 14px; border-block-end: 1px solid var(--mdp-edge); }
.mdp-price:empty { display: none; }
.mdp-price-main { display: flex; align-items: baseline; gap: 6px; font-weight: 600; white-space: nowrap; }
.mdp-price bdi { font-size: clamp(1.48rem, 2.7vw, 2.24rem); font-weight: 900; line-height: 1.25; }
.mdp-price span span, .mdp-price s { font-size: .8rem; color: var(--muted); }
.mdp-axes { display: grid; gap: 11px; }
.mdp-options { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.mdp-options > legend { padding: 0; margin-block-end: 4px; font-size: .84rem; font-weight: 600; }
.mdp-cart { margin-block-start: 17px; }
.mdp-choice, .mdp-chip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 47px;
  min-height: 44px;
  padding: 4px 11px;
  gap: 6px;
  border: 1px solid var(--mdp-edge);
  border-radius: 12px;
  background: var(--mdp-paper);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
}
.mdp-choice[aria-pressed="true"], .mdp-chip input:checked + span { border-color: var(--ink); background: var(--sage); }
.mdp-choice:disabled, .mdp-chip input:disabled + span { color: #686753; background: #f1efdc; text-decoration: line-through; cursor: default; }
.mdp-choice:not(:disabled):hover, .mdp-chip > span:hover { border-color: var(--ink); }
.mdp-chip > span { cursor: pointer; }
.mdp-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.mdp-swatch { width: 14px; height: 14px; border: 1px solid #2a30214d; border-radius: 50%; flex: none; }
.mdp-stock { min-height: 1.65em; margin-block: 10px 8px; color: var(--muted); font-size: .81rem; }
.mdp-order { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; }
.mdp-quantity { display: flex; align-items: center; direction: ltr; border: 1px solid var(--mdp-edge); border-radius: 12px; }
.mdp-quantity button { min-height: 48px; min-width: 32px; padding: 0; background: transparent; border: 0; font-size: 1.2rem; line-height: 1; }
.mdp-quantity button:disabled { opacity: .44; cursor: default; }
.mdp-quantity input { width: 3.2ch; height: 42px; border: 0; background: transparent; text-align: center; padding: 0; color: var(--ink); appearance: textfield; }
.mdp-quantity input::-webkit-inner-spin-button, .mdp-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.mdp-quantity:not(:has(button:not([hidden]))) { padding-inline: 9px; }
.mdp-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 51px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 13px 13px 13px 5px;
  background: var(--magnet-red);
  color: white;
  font: 600 .87rem/1.5 Estedad, Tahoma, sans-serif;
}
.mdp-add:hover { background: #8f2025; }
.mdp-add:disabled { opacity: .72; cursor: progress; }
.mdp-cart-feedback { color: var(--accent); font-size: .82rem; }
.mdp-cart-feedback:not(:empty) { margin-block-start: 8px; }
.mdp-details-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.mdp-personal { margin-block-start: 5px; border-block-start: 1px solid var(--mdp-edge); }
.mdp-personal summary { min-height: 42px; padding-block: 8px; cursor: pointer; color: var(--muted); font-size: .8rem; }
.mdp-personal .product-personal-actions { display: flex; align-items: center; font-size: .73rem; }
.mdp-personal .product-personal-actions button { min-height: 39px; padding: 5px 8px; border: 1px solid var(--mdp-edge); border-radius: 8px; background: none; }
.mdp-personal a { text-decoration: underline; text-underline-offset: .16em; }
.mdp-details { margin-block-start: clamp(24px, 5vw, 64px); padding: clamp(16px, 3vw, 38px); border: 1px solid var(--mdp-edge); border-radius: 25px 25px 7px 25px; background: var(--mdp-paper); scroll-margin-top: 15px; }
.mdp-details-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; border-block-end: 1px solid var(--mdp-edge); margin-block-end: 18px; padding-block-end: 9px; }
.mdp-details-head h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 900; }
.mdp-details-head p, .mdp-brand { font-size: .79rem; color: var(--muted); }
.mdp-details .product-richtext, .mdp-description { max-width: 900px; overflow-wrap: break-word; }
.mdp-details .product-richtext > section > :first-child { margin-block-start: 0; }
.mdp-details .product-richtext th { background: var(--beige); }
.mdp-details .product-richtext :is(td, th) { padding-inline: clamp(4px, 1.6vw, 14px); }
.mdp-notice { display: block; padding: 8px 12px; margin-block: 8px; border-radius: 8px; background: var(--papaya); }

@media (max-width: 760px) {
  .mdp-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mdp-stage { max-height: min(480px, 58svh); }
  .mdp-buy { margin-block-start: 0; border-radius: 14px 30px 14px 14px; }
  .mdp-buy h1 { font-size: clamp(1.42rem, 6vw, 1.95rem); }
  .mdp-details .product-richtext table { font-size: clamp(.69rem, 3vw, .87rem); }
}
@media (max-width: 365px) {
  .mdp-buy { padding: 15px; }
  .mdp-order { gap: 6px; }
  .mdp-quantity button { min-width: 27px; }
  .mdp-add { font-size: .79rem; }
}
