/* Esta propuesta cambia únicamente la vista de teléfono. */
.mobile-shop-footer, .mobile-recommendations,
.mobile-recommendations-subtitle, .mobile-recommendations-title { display: none; }
#detail-back-link { display: none !important; }
.mobile-art-picture { display: contents; }
.collection-art > picture.mobile-art-picture { display: block; width: 100%; height: 100%; min-width: 0; }
.mobile-material-card > picture.mobile-art-picture { grid-area: art; display: block; width: 100%; min-width: 0; }
.mobile-gallery-tools { display: none; }

.mobile-product-extras { display: block; min-width: 0; max-width: 100%; margin-top: 58px; overflow-x: clip; }
.mobile-product-extras > section { padding: 39px 0; border-top: 1px solid #e8e3ee; }
.mobile-product-extras h2 { margin-bottom: 13px; color: #26205b; font-size: 30px; letter-spacing: -.045em; }
.mobile-product-extras p { color: #656279; font-size: 14px; line-height: 1.7; }
.mobile-product-extras .mobile-section-kicker { margin-bottom: 8px; color: #8b56b9; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.mobile-material-card { width: min(760px, 100%); display: grid; grid-template-areas: "art copy"; grid-template-columns: minmax(180px, .65fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 16px; margin: 22px 0 15px; border: 1px solid #ebe2f5; border-radius: 14px; background: linear-gradient(130deg, #faf7ff, #fff4fa); direction: ltr; }
.mobile-material-card > img, .mobile-material-card > picture.mobile-art-picture > img { display: block; width: 100%; max-height: 300px; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 8px; background: white; }
.mobile-material-card > div { grid-area: copy; min-width: 0; }
.mobile-material-card span { color: #8753b2; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.mobile-material-card h3 { margin: 8px 0; font-size: 28px; line-height: 1.08; letter-spacing: -.04em; }
.mobile-material-card p { margin: 0; }
.mobile-product-facts { max-width: 870px; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.mobile-product-facts > div { padding: 16px 0; border-bottom: 1px solid #f0ecf4; }
.mobile-product-facts dt { font-size: 15px; font-weight: 750; }
.mobile-product-facts dt span { display: inline-block; width: 29px; color: #8a53c8; font-size: 19px; }
.mobile-product-facts dd { margin: 7px 0 0 29px; color: #656279; font-size: 13px; line-height: 1.6; }
.mobile-review-details { max-width: 720px; margin-top: 18px; border: 1px solid #e4d9f0; border-radius: 10px; background: white; }
.mobile-review-details summary { display: flex; justify-content: space-between; align-items: center; padding: 17px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 750; }
.mobile-review-details summary::-webkit-details-marker { display: none; }
.mobile-review-details[open] summary { border-bottom: 1px solid #eee6f5; }
#mobile-review-form { max-width: 600px; display: grid; gap: 15px; padding: 18px; }
#mobile-review-form fieldset { margin: 0; padding: 0; border: 0; }
#mobile-review-form legend, #mobile-review-form > label { color: #28274f; font-size: 13px; font-weight: 650; }
#mobile-review-form > label { display: grid; gap: 8px; }
#mobile-review-form input:not([type=radio]), #mobile-review-form textarea { width: 100%; padding: 11px; border: 1px solid #ded5e9; border-radius: 6px; color: var(--ink); background: white; font: inherit; font-size: 15px; }
#mobile-review-form textarea { resize: vertical; }
#mobile-review-form p { margin: 0; font-size: 12px; }
#mobile-review-form .button { color: white; background: #171944; font-size: 12px; }
.mobile-rating { display: flex; gap: 7px; margin-top: 7px; }
.mobile-rating label { position: relative; width: 42px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.mobile-rating input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mobile-rating span[aria-hidden] { color: #d7d0df; font-size: 32px; }
.mobile-rating label.is-selected span[aria-hidden] { color: #d89a26; }
.mobile-rating label:has(input:focus-visible) { outline: 2px solid #8752d4; border-radius: 5px; }
.mobile-similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-width: 0; max-width: 100%; margin-top: 22px; }
.mobile-similar-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #e9e1f1; border-radius: 11px; background: white; box-shadow: 0 5px 17px rgba(82,53,143,.06); }
.mobile-similar-card > a { color: inherit; text-decoration: none; }
.mobile-similar-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border: 1px solid #ece7f1; border-radius: 8px; background: white; }
.mobile-similar-card h3 { margin: 9px 0 0; font-size: 15px; line-height: 1.3; }
.mobile-similar-card > strong { font-size: 19px; }
.mobile-similar-card select { width: 100%; min-height: 39px; padding: 5px 8px; border: 1px solid #dfd9e8; border-radius: 6px; color: var(--ink); background: #fff; font-size: 12px; }
.mobile-similar-card button { min-height: 41px; padding: 7px; border: 0; border-radius: 24px; color: white; background: linear-gradient(105deg, #7040d5, #a746c6 58%, #df569e); cursor: pointer; font-size: 12px; font-weight: 750; }
.mobile-similar-pages, .mobile-swipe-hint { display: none; }
.mobile-view-collection { display: inline-flex; padding: 13px 18px; margin-top: 22px; border-radius: 8px; color: #7041a6; background: #f7f1fc; font-size: 13px; font-weight: 750; }
.mobile-recommendation button.is-added, .mobile-similar-card button.is-added { background: #178b68; }

@media (max-width: 680px) {
  html, body, .detail-page-body { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
  .products-section .section-wrap { width: min(calc(100% - 20px), 520px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 10px; }
  .product-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .product-image-wrap { padding: 0; gap: 0; border-radius: 10px; overflow: hidden; }
  .product-number, .product-category { display: none; }
  .canvas-mockups-enabled .product-art-stage { aspect-ratio: 4 / 5; border: 1px solid #ece7f1; border-radius: 10px; }
  .product-info { padding: 10px 1px 0; }
  .product-info h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; letter-spacing: -.025em; }
  .product-meta { align-items: stretch; gap: 7px; flex-direction: column; margin-bottom: 9px; }
  .product-price { font-size: 19px; line-height: 1.3; white-space: nowrap; }
  .product-size-picker, .product-size { width: 100%; max-width: none; }
  .product-size { min-height: 35px; padding: 5px 6px; font-size: 12px; background-color: #fff; border-radius: 6px; }
  .add-to-cart { width: 100%; min-height: 40px; padding: 7px 3px; border: 0; border-radius: 24px; font-size: 11px; color: #fff; background: #171944; box-shadow: none; }
  .add-to-cart span { display: none; }
  .collection-heading h3 { font-size: 26px; }
  .product-card:hover { transform: none; }
  .site-footer { display: none; }

  .detail-shell { width: min(calc(100% - 20px), 500px); }
  .product-detail-main { padding: 18px 0 40px; }
  .detail-breadcrumbs { margin-bottom: 15px; font-size: 11px; line-height: 1.5; }
  .detail-layout { gap: 22px; }
  .canvas-mockups-enabled .detail-art-stage { width: calc(100% + 20px); margin-inline: -10px; aspect-ratio: var(--detail-art-ratio, 4 / 5); border: 1px solid #eee9f3; border-radius: 10px; box-shadow: none; cursor: zoom-in; }
  .detail-image-caption { display: none; }
  .mobile-gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11px; color: #777184; }
  .mobile-gallery-tools button { min-height: 40px; padding: 7px 12px; border: 1px solid #e4d9f0; border-radius: 22px; background: white; color: #7041a6; font-weight: 650; font-size: 12px; cursor: pointer; }
  .detail-purchase > .eyebrow { display: none; }
  .detail-category-label { font-size: 11px; margin-bottom: 7px; letter-spacing: .1em; }
  .detail-purchase h1 { font-size: 30px; margin-bottom: 12px; letter-spacing: -.04em; }
  .detail-price { font-size: 29px; margin-bottom: 23px; }
  .detail-size-options { gap: 7px; }
  .detail-size-option { min-height: 60px; padding: 7px 3px; border-radius: 7px; }
  .detail-size-option span { font-size: 11px; }
  .detail-size-option strong { font-size: 13px; }
  .detail-purchase-actions { grid-template-columns: 102px minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .detail-quantity { min-height: 48px; border-radius: 7px; }
  .detail-add-button { border-radius: 26px; min-height: 48px; font-size: 13px; background: #171944; box-shadow: none; padding-inline: 10px; }
  .detail-stock-note { text-align: left; margin-left: 113px; }
  .detail-order-note { margin-top: 18px; padding: 13px; font-size: 12px; background: #f8f6fc; }
  .detail-added-message:empty { display: none; }
  #detail-back-link { display: none !important; }
  .recommendations { margin-top: 29px; padding-top: 25px; }
  .recommendations-heading .eyebrow, .recommendation-list { display: none; }
  .desktop-recommendations-title { display: none; }
  .mobile-recommendations-title { display: block; }
  .recommendations-heading h2 { font-size: 21px; letter-spacing: -.035em; }
  .mobile-recommendations-subtitle { display: block; font-size: 12px; color: var(--muted); margin: 7px 0 0; }
  .mobile-recommendations { display: grid; }
  .mobile-recommendation { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 78px; gap: 8px 10px; padding: 18px 0; border-bottom: 1px solid #ece8f1; align-items: center; }
  .mobile-recommendation-name { grid-column: 1 / -1; font-size: 14px; font-weight: 750; }
  .mobile-recommendation-image { width: 76px; height: 95px; }
  .mobile-recommendation-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 5px; border: 1px solid #f0ecf4; }
  .mobile-recommendation-options { display: grid; gap: 7px; }
  .mobile-recommendation-options select { width: 100%; min-height: 35px; padding: 3px 5px; border: 1px solid #ded9e7; border-radius: 5px; background: #fff; font-size: 12px; color: var(--ink); }
  .mobile-recommendation-options strong { font-size: 14px; }
  .mobile-recommendation button { min-height: 36px; padding: 5px; border: 0; border-radius: 22px; color: #fff; background: #8149c7; cursor: pointer; font-size: 12px; font-weight: 750; }
  .mobile-product-extras { display: block; min-width: 0; max-width: 100%; margin-top: 34px; overflow-x: clip; }
  .mobile-product-extras > section { padding: 28px 0; border-top: 1px solid #e8e3ee; }
  .mobile-product-extras h2 { margin-bottom: 15px; font-size: 24px; letter-spacing: -.04em; }
  .mobile-product-extras p { font-size: 14px; line-height: 1.7; color: #656279; }
  .mobile-product-extras .mobile-section-kicker { margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .13em; color: #8b56b9; }
  .mobile-material-card { display: grid; grid-template-areas: "art copy"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; margin: 23px 0 13px; align-items: center; border: 1px solid #ebe2f5; border-radius: 13px; background: linear-gradient(130deg, #faf7ff, #fff4fa); direction: ltr; }
  .mobile-material-card > img, .mobile-material-card > picture.mobile-art-picture > img { width: 100%; max-height: none; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 7px; }
  .mobile-material-card > div { grid-area: copy; min-width: 0; }
  .mobile-material-card span { font-size: 8px; letter-spacing: .1em; font-weight: 800; color: #8753b2; }
  .mobile-material-card h3 { margin: 7px 0; font-size: 21px; line-height: 1.12; letter-spacing: -.04em; }
  .mobile-material-card p { margin: 0; font-size: 11px; line-height: 1.6; }
  .mobile-product-facts { margin-bottom: 0; }
  .mobile-product-facts > div { padding: 15px 0; border-bottom: 1px solid #f0ecf4; }
  .mobile-product-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .mobile-product-facts dt { font-size: 15px; font-weight: 750; }
  .mobile-product-facts dt span { color: #8a53c8; font-size: 19px; display: inline-block; width: 27px; }
  .mobile-product-facts dd { margin: 7px 0 0 27px; font-size: 13px; line-height: 1.6; color: #656279; }
  .mobile-review-details { margin-top: 18px; border: 1px solid #e4d9f0; border-radius: 9px; }
  .mobile-review-details summary { display: flex; justify-content: space-between; align-items: center; padding: 15px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 750; }
  .mobile-review-details summary::-webkit-details-marker { display: none; }
  .mobile-review-details[open] summary { border-bottom: 1px solid #eee6f5; }
  #mobile-review-form { display: grid; gap: 16px; padding: 16px; }
  #mobile-review-form fieldset { margin: 0; border: 0; padding: 0; }
  #mobile-review-form legend, #mobile-review-form > label { font-size: 13px; font-weight: 650; }
  #mobile-review-form > label { display: grid; gap: 8px; }
  #mobile-review-form input:not([type=radio]), #mobile-review-form textarea { width: 100%; padding: 11px; font-size: 16px; border: 1px solid #ded5e9; border-radius: 6px; color: var(--ink); background: white; }
  #mobile-review-form textarea { resize: vertical; }
  #mobile-review-form p { font-size: 12px; margin: 0; }
  #mobile-review-form .button { background: #171944; color: #fff; font-size: 12px; }
  .mobile-rating { display: flex; gap: 7px; margin-top: 7px; }
  .mobile-rating label { position: relative; width: 42px; height: 44px; display: grid; place-items: center; cursor: pointer; }
  .mobile-rating input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .mobile-rating span[aria-hidden] { color: #d7d0df; font-size: 32px; }
  .mobile-rating label.is-selected span[aria-hidden] { color: #d89a26; }
  .mobile-rating label:has(input:focus-visible) { outline: 2px solid #8752d4; border-radius: 5px; }
  .mobile-similar-grid { display: flex; flex-flow: row nowrap; gap: 13px; min-width: 0; max-width: 100%; margin-top: 22px; padding-bottom: 4px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .mobile-similar-grid::-webkit-scrollbar { display: none; }
  .mobile-product-extras .mobile-swipe-hint { margin: -7px 0 0; font-size: 12px; }
  .mobile-swipe-hint span { color: #8752d4; margin-left: 5px; }
  .mobile-similar-card { flex: 0 0 calc((100% - 13px) / 2); width: calc((100% - 13px) / 2); scroll-snap-align: start; }
  .mobile-similar-pages { display: flex; justify-content: center; margin-top: 10px; gap: 0; }
  .mobile-similar-pages button { width: 36px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
  .mobile-similar-pages span { width: 7px; height: 7px; border: 1px solid #a090b5; border-radius: 50%; background: #fff; }
  .mobile-similar-pages [aria-current=true] span { border-color: #7047b7; background: #7047b7; }
  .mobile-similar-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .mobile-similar-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border: 1px solid #ece7f1; border-radius: 8px; background: white; }
  .mobile-similar-card h3 { margin: 9px 0 0; font-size: 14px; line-height: 1.3; }
  .mobile-similar-card > strong { font-size: 19px; }
  .mobile-similar-card select { width: 100%; min-height: 35px; border: 1px solid #dfd9e8; background: #fff; padding: 5px; border-radius: 6px; font-size: 12px; color: var(--ink); }
  .mobile-similar-card button { min-height: 39px; padding: 6px 4px; border: 0; border-radius: 24px; background: #171944; color: white; font-size: 11px; cursor: pointer; font-weight: 700; }
  .mobile-view-collection { display: block; padding: 16px 12px; margin-top: 25px; border-radius: 8px; background: #f7f1fc; text-align: center; font-size: 13px; font-weight: 750; color: #7041a6; }
  .mobile-recommendation button.is-added, .mobile-similar-card button.is-added { background: #178b68; }
  .mobile-shop-footer { display: block; padding: 29px 21px 22px; background: #f8f6fb; border-top: 1px solid #e7dfef; }
  .mobile-footer-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.05em; }
  .mobile-footer-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
  .mobile-shop-footer > p { margin: 17px 0; max-width: 430px; font-size: 13px; line-height: 1.7; color: #656279; }
  .mobile-footer-socials { display: grid; gap: 9px; padding: 0 0 22px; }
  .mobile-footer-socials a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid #e4ddeb; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
  .mobile-footer-socials a > span:last-child { margin-left: auto; color: #7d55bd; }
  .mobile-social-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: white; background: linear-gradient(135deg, #7040d5, #db539e); font-size: 20px; line-height: 1; }
  .mobile-footer-socials a:last-child .mobile-social-icon { background: #1eaa68; font-size: 14px; }
  .mobile-shop-footer details { border-top: 1px solid #e5ddeb; }
  .mobile-shop-footer summary { padding: 19px 0; list-style: none; display: flex; justify-content: space-between; cursor: pointer; font-size: 14px; font-weight: 700; }
  .mobile-shop-footer summary::after { content: "+"; font-size: 19px; font-weight: 400; }
  .mobile-shop-footer details[open] summary::after { content: "−"; }
  .mobile-shop-footer summary::-webkit-details-marker { display: none; }
  .mobile-shop-footer nav { display: grid; gap: 0; padding-bottom: 15px; }
  .mobile-shop-footer nav a { padding: 10px 0; font-size: 13px; }
  .mobile-shop-footer > small { display: block; margin-top: 17px; color: #787183; font-size: 11px; }
  body.mobile-image-open { overflow: hidden; }
  .mobile-art-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100%; padding: 17px 12px; border: 0; margin: 0; background: #fff; color: var(--ink); }
  .mobile-art-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
  .mobile-art-dialog::backdrop { background: rgba(23,25,68,.65); }
  .mobile-art-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .mobile-art-dialog header small { font-size: 11px; color: #796593; }
  .mobile-art-dialog h2 { font-size: 20px; margin: 4px 0 0; }
  .mobile-art-dialog [data-close-art] { width: 44px; height: 44px; border: 1px solid #e6deef; border-radius: 50%; font-size: 27px; background: #fff; cursor: pointer; }
  .mobile-art-scroll { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #eee9f4; border-radius: 8px; }
  .mobile-art-scroll img { display: block; width: 100%; height: 100%; object-fit: contain; max-width: none; }
  .mobile-art-dialog.is-zoomed .mobile-art-scroll img { width: 190%; height: auto; }
  .mobile-art-zoom { min-height: 46px; border: 0; border-radius: 25px; background: #171944; color: #fff; font-weight: 700; cursor: pointer; }
  .mobile-art-dialog > p { text-align: center; margin: 0; color: #777184; font-size: 11px; }
}

/* Evita que Safari reduzca la página para compensar el ancho del encabezado o de la ficha. */
@media (max-width: 680px) {
  html,
  body,
  .detail-page-body,
  .product-detail-main,
  .detail-layout,
  .detail-gallery,
  .detail-purchase,
  .mobile-product-extras {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detail-shell { width: min(calc(100% - 24px), 500px); }

  html,
  body,
  .detail-page-body {
    overflow-x: clip;
  }

  .detail-layout { grid-template-columns: minmax(0, 1fr); }

  .canvas-mockups-enabled .detail-art-stage {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

/* Dos accesos completos debajo del logo; el carrito conserva su propio espacio. */
@media (max-width: 900px) {
  .site-header,
  .detail-page-body .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 44px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 104px;
    padding: 4px 12px 0;
    gap: 0 12px;
  }
  .site-header .brand { grid-column: 1; grid-row: 1; min-width: 0; gap: 6px; }
  .site-header .brand img { flex: 0 0 auto; width: 36px; height: 36px; }
  .site-header .brand span { min-width: 0; }
  .site-header .brand strong { font-size: 16px; }
  .site-header .brand small { font-size: 7px; }
  .site-header .cart-trigger { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; padding-inline: 9px; white-space: nowrap; font-size: 11px; }
  .site-header .cart-trigger > span { display: inline; }
  .site-header .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    width: 100%;
    min-width: 0;
    margin: 0;
    gap: 8px;
    border-top: 1px solid #eee8f5;
    font-size: 12px;
  }
  .site-header .main-nav a:nth-child(-n+2) { display: flex; align-items: center; justify-content: center; align-self: stretch; min-width: 0; padding: 4px 2px; text-align: center; white-space: normal; line-height: 1.2; }
  .site-header .main-nav a:nth-child(n+3) { display: none; }
  .site-header .main-nav a:nth-child(2) { color: #7040b1; }
  .site-header .main-nav a[aria-current="page"] { color: #7040b1; box-shadow: inset 0 -3px #a457d0; background: linear-gradient(0deg, #f4edfc, transparent); }
  .hero { scroll-margin-top: 104px; }
  .product-collection, .collections, .products-section, .how-order, .custom-entry { scroll-margin-top: 120px; }
}

@media (max-width: 360px) {
  .site-header .brand strong { font-size: 14px; }
  .site-header .main-nav { font-size: 11px; }
}
