/* Product page — phone layout (2026-11-17). Desktop unchanged. */
.pp-specs, .pp-chat, .pp-rel, .pp-bar { display: none; }
@media all {
  .product-details .product-details-image {
    min-height: 300px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 85% at 50% 28%, #2b2b2b 0%, #171717 55%, #0a0a0a 100%) !important;
  }
  .product-details .product-details-image #product-gallery-main { max-height: 280px !important; width: auto; max-width: 100%; object-fit: contain; }
  .product-details > h1 { font-size: 22px !important; line-height: 1.25 !important; margin-top: 12px !important; }
  .product-details .product-price-container .regular-price, .product-details .product-price-container { font-size: 24px !important; font-weight: 800 !important; color: #ff9a3d !important; }

  .pp-specs { display: grid; gap: 0; margin: 14px 0 6px; border: 1px solid #2e2e2e; border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #1d1d1d 0%, #131313 60%, #0b0b0b 100%); font-family: Poppins, Arial, sans-serif; }
  .pp-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid #262626; }
  .pp-specs > div:first-child { border-top: 0; }
  .pp-specs dt { margin: 0; font-size: 13px; color: #b8b8b8; font-weight: 600; }
  .pp-specs dd { margin: 0; font-size: 14px; color: #fff; font-weight: 600; }
  .pp-specs a { color: #ff9a3d; }
  .pp-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
  .pp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
  .pp-dot.is-in { color: #7ddc8f; } .pp-dot.is-in::before { background: #3fbf5a; }
  .pp-dot.is-out { color: #c4c4c4; } .pp-dot.is-out::before { background: #8a8a8a; }

  .pp-chat, .pp-rel { display: block; max-width: 100%; margin: 18px 16px 0; font-family: Poppins, Arial, sans-serif; color: #fff; }
  .pp-chat { padding: 16px; border-radius: 14px; border: 1px solid #333; background: radial-gradient(130% 120% at 0% 0%, #262626 0%, #151515 50%, #0a0a0a 100%); }
  .pp-chat h2, .pp-rel h2 { margin: 0 0 6px; font-size: 17px; font-weight: 800; text-transform: uppercase; padding-left: 10px; border-left: 4px solid #f58220; }
  .pp-chat p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: #d6d6d6; }
  .pp-chat-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pp-chat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 10px;
    border: 1px solid #3a3a3a; background: #1b1b1b; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
  .pp-chat-btn.is-viber { border-color: #7360f2; }
  .pp-chat-btn .bi { color: #f58220; } .pp-chat-btn.is-viber .bi { color: #a89bff; }
  .pp-chat-btn:focus-visible, .pp-rel-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

  .pp-rel h2 { margin-bottom: 12px; }
  .pp-rel-list { list-style: none; margin: 0 -16px; padding: 2px 16px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
    gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  .pp-rel-list::-webkit-scrollbar { display: none; }
  .pp-rel-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding-bottom: 10px; border-radius: 12px; overflow: hidden;
    border: 1px solid #2e2e2e; background: linear-gradient(180deg, #1d1d1d 0%, #131313 60%, #0b0b0b 100%); color: #fff; text-decoration: none; scroll-snap-align: start; }
  .pp-rel-img { display: block; aspect-ratio: 1 / 1; background: radial-gradient(120% 85% at 50% 28%, #2b2b2b 0%, #171717 55%, #0a0a0a 100%); border-bottom: 1px solid #262626; }
  .pp-rel-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
  .pp-rel-name { padding: 0 10px; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
  .pp-rel-price { padding: 0 10px; font-size: 15px; font-weight: 800; color: #ff9a3d; }
  .pp-rel-card .pp-dot { padding: 0 10px; font-size: 12px; }

  .pp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(20,20,20,.97), rgba(8,8,8,.99));
    border-top: 1px solid #333; box-shadow: 0 -8px 24px rgba(0,0,0,.5); font-family: Poppins, Arial, sans-serif; }
  .pp-bar[hidden] { display: none; }
  .pp-bar-price { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
  .pp-bar-label { font-size: 11.5px; color: #b8b8b8; }
  .pp-bar-price strong { font-size: 17px; font-weight: 800; color: #ff9a3d; white-space: nowrap; }
  .pp-bar-chat { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px;
    border: 1px solid #7360f2; background: #15131f; color: #a89bff; font-size: 20px; text-decoration: none; flex: none; }
  .pp-bar-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px;
    background: #f58220; color: #111; font: 700 15px Poppins, Arial, sans-serif; cursor: pointer; flex: none; }
  .pp-bar-main:focus-visible, .pp-bar-chat:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  body.has-pp-bar { padding-bottom: 84px; }
  body.has-pp-bar .bs-quick-menu { bottom: 88px !important; }
}

@media all {
  .product-details > .bs-heart--page { order: 3; align-self: flex-start; }
  .product-details > .pp-specs { order: 7; }
}

/* 2026-11-18: Messenger + WhatsApp chat, simpler buy area */
@media all {
  .pp-chat-actions { grid-template-columns: 1fr 1fr; }
  .pp-chat-actions > .pp-chat-btn:last-child { grid-column: 1 / -1; }
  .pp-chat-btn.is-messenger { border-color: #0a7cff; } .pp-chat-btn.is-messenger .bi { color: #5aa9ff; }
  .pp-chat-btn.is-whatsapp { border-color: #25d366; } .pp-chat-btn.is-whatsapp .bi { color: #4ee28a; }
  .inquiry-form.pp-cart-only .bs-inquiry-cta-heading,
  .inquiry-form.pp-cart-only .bs-purchase-or,
  .inquiry-form.pp-cart-only .inquiry-subtitle,
  .inquiry-form.pp-cart-only #inquiry-questionnaire { display: none !important; }
  .inquiry-form.pp-cart-only .bs-purchase-alternative { margin: 0; }
  .inquiry-form.pp-cart-only .bs-cart-add { width: 100%; min-height: 50px; font-size: 16px; font-weight: 700; background: #f58220; border-color: #f58220; color: #111; }
  .inquiry-form.pp-cart-only .bs-cart-add .bi { color: #111; }
  .pp-pick-note { display: none; }
  .inquiry-form.pp-cart-only .pp-pick-note { display: block; margin: 0; font-size: 14px; line-height: 1.45; color: #d6d6d6; }
  .inquiry-form.pp-cart-only [data-stock-cart-controls]:not([hidden]) ~ .pp-pick-note { display: none; }
  .inquiry-form.pp-merge #inquiry-questionnaire > summary { display: none !important; }
}

/* 2026-11-18b: added-to-cart sheet + one-step checkout (phones) */
.pp-sheet, .pp-sheet-scrim { display: none; }
@media all {
  .pp-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font: 600 12.5px Poppins, Arial, sans-serif; color: #9a9a9a; }
  .pp-steps li { flex: 1; display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 3px solid #333; }
  .pp-steps li.is-done, .pp-steps li.is-current { border-top-color: #f58220; color: #fff; }
  .pp-step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
    background: #2a2a2a; color: #cfcfcf; font-size: 11.5px; flex: none; }
  .pp-steps li.is-done .pp-step-n, .pp-steps li.is-current .pp-step-n { background: #f58220; color: #111; }
  .pp-sheet-scrim { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .pp-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0; border-top: 1px solid #3a3a3a; background: linear-gradient(180deg, #1e1e1e 0%, #121212 60%, #0a0a0a 100%);
    font-family: Poppins, Arial, sans-serif; color: #fff; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -12px 32px rgba(0,0,0,.6); }
  .pp-sheet.is-open { transform: none; }
  .pp-sheet-scrim.is-open { opacity: 1; pointer-events: auto; }
  .pp-sheet-head { display: flex; align-items: center; gap: 10px; }
  .pp-sheet-head > div { flex: 1; min-width: 0; }
  .pp-sheet-ok { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #2f9e4f; color: #fff; font-weight: 800; flex: none; }
  .pp-sheet h2 { margin: 0; font-size: 18px; font-weight: 800; }
  .pp-sheet-count { margin: 0; font-size: 13px; color: #b8b8b8; }
  .pp-sheet-x { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #ddd; font-size: 28px; line-height: 1; cursor: pointer; }
  .pp-sheet-item { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 10px; border: 1px solid #2e2e2e; border-radius: 12px; background: #151515; }
  .pp-sheet-img { width: 64px; height: 64px; flex: none; border-radius: 10px; background: radial-gradient(120% 85% at 50% 28%, #2b2b2b 0%, #171717 55%, #0a0a0a 100%); overflow: hidden; }
  .pp-sheet-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
  .pp-sheet-item strong { display: block; font-size: 14px; line-height: 1.3; }
  .pp-sheet-price { font-size: 15px; font-weight: 800; color: #ff9a3d; }
  .pp-sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
  .pp-sheet-keep, .pp-sheet-go { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; font: 700 14.5px Poppins, Arial, sans-serif; text-decoration: none; cursor: pointer; }
  .pp-sheet-keep { border: 1px solid #f58220; background: #111; color: #ff9a3d; }
  .pp-sheet-go { border: 1px solid #f58220; background: #f58220; color: #111; }
  .pp-sheet-note { margin: 10px 0 0; font-size: 12.5px; color: #a8a8a8; text-align: center; }
  .pp-sheet-x:focus-visible, .pp-sheet-keep:focus-visible, .pp-sheet-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

  body.pp-checkout .pp-steps { margin-bottom: 12px; }
  .inquiry-form.pp-co .bs-inquiry-cta-heading,
  .inquiry-form.pp-co .inquiry-subtitle,
  .inquiry-form.pp-co #inquiry-questionnaire > summary { display: none !important; }
  .inquiry-form.pp-co-guest #inquiry-questionnaire { display: none !important; }
  .pp-co-title { margin: 0 0 10px; font: 800 18px Poppins, Arial, sans-serif; color: #fff; }
  .pp-co-note { margin: 4px 0 10px; font-size: 13px; line-height: 1.45; color: #cfcfcf; }
  .inquiry-form.pp-co .send-inquiry-btn { width: 100%; min-height: 52px; font-size: 16px; font-weight: 800; }
  .pp-co-login { padding: 16px; border: 1px solid #f58220; border-radius: 14px; background: #141414; font-family: Poppins, Arial, sans-serif; color: #fff; }
  .pp-co-login h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
  .pp-co-login p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #d6d6d6; }
  .pp-co-login button { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: #f58220; color: #111; font: 700 15px Poppins, Arial, sans-serif; cursor: pointer; }
  .pp-co-login button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .pp-sheet, .pp-sheet-scrim { transition: none; } }

@media all { body.pp-sheet-open .bs-quick-menu, body.pp-sheet-open .pp-bar { visibility: hidden !important; } }

/* Desktop (2026-11-19): buy buttons and key facts sit under the price; no bottom bar, no duplicate form */
@media (min-width: 769px) {
  .pp-bar.pp-bar--inline { position: static !important; inset: auto !important; transform: none !important; z-index: auto; display: flex !important; align-items: stretch; gap: 10px;
    width: auto; max-width: 440px; margin: 16px 0 14px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  .pp-bar--inline .pp-bar-price { display: none !important; }
  .pp-bar--inline .pp-bar-main { flex: 1; min-height: 54px; font-size: 16px; cursor: pointer; }
  .pp-bar--inline .pp-bar-chat { flex: none; width: 54px; height: 54px; }
  .pp-bar--inline ~ .pp-specs { max-width: 440px; margin: 0; }
  body:has(.pp-bar--inline) .inquiry-form.pp-cart-only { display: none !important; }
  /* "Added to cart" as a centered dialog */
  .pp-sheet { left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; width: 440px !important; max-width: calc(100vw - 48px);
    border: 1px solid #3a3a3a !important; border-radius: 16px !important; box-shadow: 0 24px 60px rgba(0,0,0,.65);
    transform: translate(-50%, -46%) !important; opacity: 0; visibility: hidden; transition: transform .18s ease, opacity .18s ease, visibility .18s; }
  .pp-sheet.is-open { transform: translate(-50%, -50%) !important; opacity: 1; visibility: visible; }
  .pp-sheet-actions button, .pp-sheet-actions a { cursor: pointer; }
}
/* Desktop checkout: form on the left, order summary stays in view on the right */
@media (min-width: 1000px) {
  html body.pp-checkout .bs-product-page .inquiry-container { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) !important; grid-template-areas: none !important; gap: 24px !important; align-items: start; }
  html body.pp-checkout .bs-product-page .inquiry-container > .inquiry-form { grid-column: 1 !important; grid-row: 1 !important; margin-top: 0 !important; }
  html body.pp-checkout .bs-product-page .inquiry-container > .product-details { grid-column: 2 !important; grid-row: 1 !important; position: sticky; top: 96px; margin: 0 !important; }
}
