/* ══════════════════════════════════════════════
   ROSEBELLA — phone layout fixes, shared by every storefront page.
   Loaded last on each page so it wins over the older per-page responsive rules.
   ══════════════════════════════════════════════ */
html, body { max-width: 100%; overflow-x: clip; }
.hs-mob { display: none; }

@media (max-width: 768px) {
  /* ── Top bar: logo + icons always fit on one line ── */
  nav .nav-brand { min-width: 0; flex-shrink: 1; }
  nav .nav-wordmark, nav .nav-logo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  nav .nav-right { gap: 6px !important; flex-shrink: 0; }
  /* Homepage: language + "Shop Now" are in the ☰ menu */
  nav .nav-right #btnEN, nav .nav-right #btnAR, nav:has(.nav-hamburger) .nav-cta { display: none !important; }
  /* Other pages: smaller "All Collections" / "Home" button */
  nav .nav-cta { padding: 8px 10px !important; font-size: 8px !important; letter-spacing: .06em !important; line-height: 1.2; white-space: nowrap; }
  nav:has(.nav-cta) .nav-wordmark, nav:has(.nav-cta) .nav-logo { letter-spacing: .1em !important; }

  /* Our Story / Contact: the logo already goes home, so drop "Back to Home" */
  nav .nav-back { display: none !important; }
  nav .nav-shop { padding: 9px 14px !important; font-size: 8.5px !important; letter-spacing: .12em !important; white-space: nowrap; }

  /* ── Hero: swipe instead of the side arrows (they covered the headline and button) ── */
  .hero-slider .hs-arrow { display: none !important; }

  /* ── Product cards: two per row, smaller photos, no long descriptions ── */
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .prod-card .prod-img { padding-top: 108% !important; }
  .prod-card .prod-desc { display: none !important; }
  .prod-card .prod-body { padding: 10px 10px 12px !important; }
  .prod-card .prod-cat { font-size: 8px !important; letter-spacing: .12em !important; }
  .prod-card .prod-body h3 { font-size: 15px !important; line-height: 1.25 !important; margin: 3px 0 0 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
  .prod-card .prod-footer { flex-wrap: wrap; gap: 6px; margin-top: 8px !important; padding-top: 8px !important; }
  .prod-card .prod-price { font-size: 14px !important; }
  .prod-card .prod-add { height: auto !important; min-height: 0 !important; padding: 7px 11px !important; font-size: 9px !important; letter-spacing: .1em !important; }
  .prod-card .prod-wishlist { width: 30px !important; height: 30px !important; font-size: 14px !important; top: 8px !important; right: 8px !important; }
  .prod-card .prod-badge { font-size: 7.5px !important; padding: 3px 7px !important; top: 8px !important; left: 8px !important; }
  .rb-qty button { width: 28px !important; height: 28px !important; }
  .rb-qty-n { min-width: 44px !important; font-size: 9px !important; }

  /* Homepage sliding rows: two cards visible with a peek of the next */
  .rb-row { gap: 10px !important; }
  .rb-row .prod-card { flex: 0 0 43vw !important; max-width: 190px !important; }
  .rb-hs .prod-card .prod-img { padding-top: 112% !important; }
  .rb-hs .prod-card .prod-body h3 { font-size: 14px !important; }
  .rb-hs { padding-top: 36px !important; }

  /* Shop page cards */
  .sp-card-img { aspect-ratio: 1 / 1.08 !important; }

  /* ── Product page ── */
  .pd-main { aspect-ratio: 1 / 1 !important; }
  .pd-extras { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .pd-extra .vm-addon-visual { height: 64px !important; }
  .pd-extra-foot { padding: 6px 8px 8px !important; }
  .pd-extra-label { font-size: 10.5px !important; }
  .pd-add { font-size: 9px !important; letter-spacing: .05em !important; gap: 6px !important; padding: 0 12px !important; white-space: nowrap; min-height: 50px; }
  .pd-add svg { flex-shrink: 0; }

  /* ── Checkout ── */
  #coLeft { padding-top: 16px !important; }
  #coRight { margin-top: 26px !important; padding-top: 18px !important; border-top: 1px solid rgba(198,146,42,0.15); }
  /* one Place Order button on phones: the sticky one at the bottom */
  #coRight #coPlaceBtn { display: none !important; }

  /* ── Floating buttons never cover what you are reading ── */
  #waBubble { padding: 11px !important; }
  #waBubble svg { width: 20px !important; height: 20px !important; }
  body.rb-has-bar footer, body.rb-has-bar .story-footer, body.rb-has-bar .contact-footer { padding-bottom: 96px !important; }
}

@media (max-width: 480px) {
  /* Room for logo + liked + bag: the breadcrumb below already links to Collections, the logo goes home */
  nav .nav-right .nav-cta { display: none !important; }
}

@media (max-width: 380px) {
  nav .nav-wordmark { font-size: 13px !important; letter-spacing: .1em !important; }
  .prod-card .prod-body h3 { font-size: 14px !important; }
  .pd-extras { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ══ Mobile menu (☰) ══ */
#mobNav { height: 100vh; height: 100dvh; width: min(340px, 86vw) !important; background: #14120d !important; }
#mobNav .mob-nav-hd { padding: 18px 20px !important; padding-top: max(18px, env(safe-area-inset-top)) !important; }
#mobNav .mob-nav-close { width: 38px !important; height: 38px !important; font-size: 14px !important; }
#mobNav .mob-nav-links { padding: 10px 0 !important; }
#mobNav .mob-nav-links a { justify-content: flex-start !important; gap: 14px; padding: 15px 22px !important; font-size: 12px !important;
  letter-spacing: .14em !important; color: rgba(255,255,255,0.86) !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
#mobNav .mob-nav-links a::after { margin-left: auto; color: var(--gold); opacity: .6 !important; }
#mobNav .mn-ico { width: 22px; text-align: center; font-size: 15px; filter: saturate(.85); }
#mobNav .mob-nav-langs { flex-direction: column; gap: 10px !important; padding: 18px 22px 6px !important; }
#mobNav .mob-nav-langs-lbl { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
#mobNav .mob-nav-seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
#mobNav .mob-lang-btn { border: none !important; border-radius: 999px !important; padding: 10px !important; font-size: 11px !important; letter-spacing: .08em !important; color: rgba(255,255,255,0.65) !important; }
#mobNav .mob-lang-btn.active { background: var(--gold) !important; color: #fff !important; }
#mobNav .mob-nav-bottom { padding: 20px 22px !important; padding-bottom: max(20px, env(safe-area-inset-bottom)) !important; gap: 10px !important; }
#mobNav .mob-nav-cta, #mobNav .mob-nav-wa, #mobNav .mob-nav-app { border-radius: 999px !important; padding: 14px !important; font-size: 10.5px !important; }
#mobNav .mob-nav-app { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #fff; background: #000; border: 1px solid rgba(255,255,255,0.25); }

@media (max-width: 768px) {
  /* ══ Hero on phones (Floward-style): edge-to-edge square banner, headline + pill button bottom-left,
        thin dashes for slides, no extra controls ══ */
  .hero-slider { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 1 / 1;
    margin: 0 !important; width: 100% !important; border-radius: 0 !important; border: none !important; box-shadow: none !important; }
  .hs-mob { display: block; }
  .hs-slide:has(.hs-mob) .hs-desk { display: none !important; }
  .hs-overlay { background: linear-gradient(to top, rgba(8,6,3,0.62) 0%, rgba(8,6,3,0.18) 38%, rgba(8,6,3,0) 60%) !important; animation: none !important; }
  .hs-content { justify-content: flex-end !important; align-items: flex-start !important; text-align: left !important;
    max-width: none !important; margin: 0 !important; padding: 0 20px 44px !important; }
  .hs-h1 { font-size: 30px !important; line-height: 1.08 !important; margin-bottom: 14px !important; max-width: 85%; }
  .hs-tagline { display: none !important; }
  .hs-cta { background: #fff !important; color: var(--charcoal) !important; padding: 11px 24px !important; font-size: 10px !important;
    letter-spacing: .14em !important; box-shadow: none !important; }
  .hs-dots { left: 50% !important; right: auto !important; bottom: 16px !important; transform: translateX(-50%) !important; gap: 5px !important; align-items: center; }
  .hs-dot { min-height: 0 !important; height: 2px !important; width: 18px !important; border-radius: 2px; padding: 0 !important; background: rgba(255,255,255,0.45) !important; }
  .hs-dot.hs-dot-active { width: 18px !important; background: #fff !important; }
  .hs-controls { display: none !important; }

  /* ══ Floating buttons: the bag bar takes priority over the WhatsApp bubble ══ */
  body.rb-has-bar #waBubble { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; animation: none !important; }
  #waBubble { transition: opacity .25s, transform .25s; }
  #rbReviewBar { left: 12px !important; right: 12px !important; bottom: max(12px, env(safe-area-inset-bottom)) !important; padding: 8px 8px 8px 18px !important; border-radius: 999px !important; }
  #rbReviewBar button { padding: 11px 16px !important; font-size: 10px !important; letter-spacing: .12em !important; }
}
