/* Mobile presentation layer */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .product-page.details-modal-open {
    overflow: hidden;
  }

  .glass-nav > div {
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-page .book-landing-page {
    width: 100%;
    height: calc(100svh - 70px);
    min-height: 520px;
    padding: 0;
    overflow: hidden;
  }

  .product-page .book-landing-topbar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 5;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
  }

  .product-page .landing-buy,
  .product-page .landing-feedback {
    min-height: 40px;
    padding: 7px 12px;
    font-size: .9rem;
    animation: buttonPulse 1.8s ease-in-out infinite;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }

  .product-page .landing-buy:hover,
  .product-page .landing-feedback:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  }

  .product-page .landing-buy:active,
  .product-page .landing-feedback:active {
    transform: translateY(1px) scale(.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  }

  .product-page .book-landing-gallery {
    position: absolute;
    top: 58px;
    right: 12px;
    bottom: 72px;
    left: 12px;
    height: auto;
    max-height: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #241711;
  }

  .product-page .book-landing-shell {
    position: relative;
    height: 100%;
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  .product-page #landing-main-image {
    height: 100%;
    width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .product-page .landing-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(20, 12, 12, .58);
    color: #fff;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease;
  }

  .product-page .landing-gallery-arrow:hover {
    background: rgba(20, 12, 12, .82);
    transform: translateY(-50%) scale(1.08);
  }

  .product-page .landing-gallery-arrow:active {
    transform: translateY(-50%) scale(.92);
  }

  .product-page .landing-gallery-prev { left: 12px; }
  .product-page .landing-gallery-next { right: 12px; }

  .product-page .landing-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(55, 24, 30, .72);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    backdrop-filter: blur(6px);
  }

  .product-page .landing-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    transition: width .2s ease, background .2s ease, transform .2s ease;
  }

  .product-page .landing-dot.active {
    width: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(237, 120, 163, .65);
  }

  .product-page .book-landing-thumbs {
    display: none;
  }

  .product-page .landing-thumb {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .product-page .book-landing-copy {
    display: none;
  }

  .product-page .book-landing-shell.details-open .book-landing-copy {
    position: fixed !important;
    top: 16vh;
    right: 14px;
    bottom: 16vh;
    left: 14px;
    z-index: 200 !important;
    display: block !important;
    max-height: none;
    overflow-y: auto;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 16px;
    background: rgba(255, 250, 247, .96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  }

  .product-page.details-modal-open::after {
    position: fixed;
    inset: 0;
    z-index: 199;
    content: '';
    background: rgba(12, 7, 5, .58);
    backdrop-filter: blur(3px);
  }

  .landing-details-popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 7, 5, .62);
    backdrop-filter: blur(4px);
    overscroll-behavior: contain;
    animation: landingPopupIn .2s ease-out both;
  }

  .landing-details-card {
    position: relative;
    width: min(100%, 390px);
    max-height: 78vh;
    overflow-y: auto;
    padding: 28px 22px 22px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: #fffaf7;
    color: #4a2025;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
    text-align: center;
    animation: landingCardIn .24s cubic-bezier(.2, .8, .2, 1) both;
  }

  .landing-details-card h2 {
    margin: 8px 0 14px;
    color: #741529;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
  }

  .landing-details-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3dce0;
    color: #741529;
    transition: transform .18s ease, background .18s ease;
  }

  .landing-details-close:hover {
    transform: rotate(8deg) scale(1.06);
    background: #edcbd3;
  }

  .landing-details-close:active {
    transform: scale(.9);
  }

  .landing-details-description {
    margin: 0;
    font-size: .95rem;
    line-height: 1.75;
    text-align: left;
    color: #5d3a40;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .landing-details-price {
    margin: 16px 0;
    color: #c21f4a;
    font-size: 1.7rem;
    font-weight: 900;
  }

  .landing-details-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    text-align: left;
  }

  .landing-details-facts > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #f0d9df;
    border-radius: 10px;
    background: #fff;
  }

  .landing-details-facts span {
    color: #9c6874;
    font-size: .7rem;
    font-weight: 700;
  }

  .landing-details-facts strong {
    color: #5a2530;
    font-size: .82rem;
    line-height: 1.35;
  }

  .landing-details-buy {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #ed78a3;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(207, 70, 119, .22);
    animation: buttonPulse 1.8s ease-in-out infinite;
    transition: transform .2s ease, filter .2s ease;
  }

  .landing-details-buy:active {
    transform: translateY(1px);
  }

  @keyframes buttonPulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.045);
    }
  }

  @keyframes bottomButtonPulse {
    0%, 100% {
      transform: translateX(-50%) scale(1);
    }
    50% {
      transform: translateX(-50%) scale(1.045);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .product-page .landing-buy,
    .product-page .landing-feedback,
    .landing-details-buy,
    .product-page .landing-buy-bottom {
      animation: none;
    }
  }

  @keyframes landingPopupIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes landingCardIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .product-page .landing-buy-bottom {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 5;
    width: min(260px, calc(100% - 48px));
    margin: 0;
    transform: translateX(-50%);
    font-size: 1.15rem;
    min-height: 48px;
    animation: bottomButtonPulse 1.8s ease-in-out infinite;
  }

  .product-page #checkout-modal .mbox {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px;
  }

  .product-page #checkout-modal .sticky {
    position: sticky;
    top: 0;
  }

  .product-page .book-landing-page {
    height: auto;
    min-height: 0;
    padding: 0 0 28px;
    overflow: visible;
  }

  .product-page .book-landing-shell {
    height: auto;
    min-height: 0;
    border-radius: 0;
  }

  .product-page .book-landing-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
  }

  .product-page .landing-feedback {
    animation: none;
  }

  .product-page .book-landing-gallery {
    position: static;
    display: flex;
    height: auto;
    max-height: none;
    padding: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #f3dce0;
  }

  .product-page .book-landing-hero {
    display: none;
  }

  .product-page .landing-image-block {
    flex: none;
    width: 100%;
    border-radius: 10px;
  }

  .product-page .landing-image-block img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-page .landing-image-order-cta {
    top: 42%;
    left: 1%;
    width: 46%;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .product-page .book-landing-copy {
    display: block;
    padding: 28px 18px 22px;
  }

  .product-page .landing-buy-bottom {
    position: fixed;
    left: 50%;
    z-index: 60;
    width: min(360px, calc(100vw - 24px));
    bottom: max(12px, env(safe-area-inset-bottom));
    margin: 0;
    transform: translateX(-50%);
    animation: landingCtaPulse 2.4s ease-in-out infinite;
  }
}
