/* The Pixtale — shared styles: offer ticker, examples gallery, picture-only banners, and the phone/tablet layout.
   Page layouts use inline styles, so the phone rules below use !important to adjust them. */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; }

/* ---------- Offer ticker (top line, scrolls right to left) ---------- */
.px-ticker { overflow: hidden; position: relative; }
.px-ticker-track { display: flex; width: max-content; animation: pxTicker 38s linear infinite; }
.px-ticker:hover .px-ticker-track, .px-ticker:focus-within .px-ticker-track { animation-play-state: paused; }
.px-ticker-set { display: flex; align-items: center; flex-shrink: 0; }
.px-ticker-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 22px; white-space: nowrap; }
.px-ticker-item svg { flex-shrink: 0; }
.px-ticker-item strong { color: #F5B955; font-weight: 800; letter-spacing: 0.04em; }
@keyframes pxTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .px-ticker-track { animation: none; width: 100%; justify-content: center; }
  .px-ticker-set + .px-ticker-set, .px-ticker-rep { display: none; }
}

/* ---------- Examples gallery (photos + videos) ---------- */
.px-exgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.px-excard { border: 0; padding: 0; background: #FFFFFF; border-radius: 22px; overflow: hidden; cursor: zoom-in; display: flex; flex-direction: column; text-align: left; font-family: inherit; color: #283140; box-shadow: 0 2px 0 #E9E2D6; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.px-excard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40, 49, 64, 0.14); }
.px-excard.is-video { cursor: pointer; }
.px-exmedia { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: #F1ECE4; overflow: hidden; }
.px-exmedia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-excard.is-video .px-exmedia { background: linear-gradient(135deg, #283140, #2F7F93); }
.px-exblank { position: absolute; inset: 0; background: linear-gradient(135deg, #283140, #2F7F93); }
.px-explay { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.px-excard:hover .px-explay { transform: scale(1.08); }
.px-extag { position: absolute; left: 12px; top: 12px; background: #283140; color: #FBF8F3; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.px-excap { padding: 14px 16px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.px-zoom { position: fixed; inset: 0; z-index: 60; background: rgba(28, 33, 43, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; box-sizing: border-box; cursor: zoom-out; }
.px-zoombox { position: relative; max-width: 100%; cursor: default; }
.px-zoombox.is-image { display: flex; justify-content: center; }
.px-zoombox.is-wide { width: min(100%, 1000px, calc((100vh - 170px) * 16 / 9)); aspect-ratio: 16 / 9; }
.px-zoombox.is-tall { width: min(100%, 420px, calc((100vh - 170px) * 9 / 16)); aspect-ratio: 9 / 16; }
.px-zoomimg { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 16px; background: #FFFFFF; display: block; }
.px-zoomframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; background: #000000; }
.px-zoomcap { font-size: 18px; font-weight: 700; color: #FFFFFF; text-align: center; max-width: 900px; }
.px-zoomacts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.px-zoombtn { height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: #FFFFFF; color: #283140; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.px-zoombtn.is-ghost { background: transparent; color: #FFFFFF; border: 2px solid rgba(255, 255, 255, 0.6); }
a.px-zoombtn:hover { color: #283140; }
a.px-zoombtn.is-ghost:hover { color: #F5B955; }

/* ---------- Banner: "Picture only" slides fill the full width ---------- */
.px-car.px-car-img { height: auto !important; aspect-ratio: 36 / 13; }
.px-car.px-car-mix { height: auto !important; aspect-ratio: 36 / 13; min-height: 520px; }
.px-bimg { position: absolute; inset: 0; display: block; }
.px-bimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-bcta { position: absolute; left: 64px; bottom: 64px; z-index: 2; height: 56px; padding: 0 30px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: #283140; color: #FBF8F3 !important; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 26px rgba(40, 49, 64, 0.35); }
.px-bcta:hover { background: #F5B955; color: #283140 !important; }

/* ---------- Reviews strip ---------- */
.px-revgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Tablet (861px to 1180px) ---------- */
@media (max-width: 1180px) and (min-width: 861px) {
  .px-page [style*="padding: 0 64px"], .px-page [style*="px 64px"], .px-page [style*="padding: 64px;"] { padding-left: 32px !important; padding-right: 32px !important; }
  .px-page [style*="padding: 0 128px"] { padding-left: 88px !important; padding-right: 88px !important; }
  .px-page [style*="width: 560px; flex-shrink: 0"] { width: 46% !important; }
  .px-nav { gap: 16px !important; font-size: 15px !important; }
  .px-bcta { left: 32px; bottom: 56px; }
}

/* ---------- Phones (up to 860px) ---------- */
@media (max-width: 860px) {
  .px-page { width: 100% !important; }
  .px-sec { min-height: 0 !important; }

  /* spacing */
  .px-page [style*="padding: 0 64px"] { padding-left: 16px !important; padding-right: 16px !important; }
  .px-page [style*="px 64px"], .px-page [style*="padding: 64px;"] { padding: 44px 16px !important; }
  .px-page [style*="padding: 72px 64px 96px"] { padding-bottom: 56px !important; }
  .px-page [style*="padding: 36px;"], .px-page [style*="padding: 32px;"] { padding: 20px !important; }
  .px-page [style*="padding: 28px;"] { padding: 18px !important; }
  .px-page [style*="gap: 36px"], .px-page [style*="gap: 44px"], .px-page [style*="gap: 40px"] { gap: 24px !important; }

  /* type */
  .px-page [style*="font-size: 60px"], .px-page [style*="font-size: 56px"] { font-size: 34px !important; line-height: 1.1 !important; }
  .px-page [style*="font-size: 52px"], .px-page [style*="font-size: 48px"], .px-page [style*="font-size: 46px"] { font-size: 31px !important; line-height: 1.12 !important; }
  .px-page [style*="font-size: 44px"], .px-page [style*="font-size: 38px"] { font-size: 28px !important; line-height: 1.15 !important; }
  .px-page [style*="font-size: 36px"], .px-page [style*="font-size: 34px"] { font-size: 26px !important; }
  .px-page [style*="font-size: 32px"] { font-size: 24px !important; }
  .px-page [style*="font-size: 19px"], .px-page [style*="font-size: 18px"] { font-size: 16px !important; }

  /* fixed widths become full width */
  .px-page [style*="width: 560px"], .px-page [style*="width: 820px"], .px-page [style*="width: 380px"],
  .px-page [style*="width: 360px"], .px-page [style*="width: 540px"], .px-page [style*="width: 340px"] { width: 100% !important; max-width: 100% !important; }
  .px-page [style*="width: 580px"] { width: calc(100vw - 32px) !important; padding: 26px 20px !important; max-height: calc(100vh - 32px); overflow-y: auto; }
  .px-page [style^="height: 640px"], .px-page [style^="height: 600px"] { height: 470px !important; }

  /* side-by-side blocks stack */
  .px-page [style*="display: flex; gap: 40px; align-items: flex-start"],
  .px-page [style*="display: flex; gap: 32px; align-items: flex-start"] { flex-direction: column !important; align-items: stretch !important; }
  .px-page [style*="justify-content: space-between; align-items: flex-end"],
  .px-page [style*="display: flex; align-items: center; justify-content: space-between"],
  .px-page [style*="display: flex; gap: 16px; align-items: center"],
  .px-page [style*="display: flex; gap: 14px; align-items: center"],
  .px-page [style*="display: flex; gap: 12px; align-items: center"],
  .px-page [style*="display: flex; gap: 12px\""],
  .px-page [style*="display: flex; gap: 16px\""] { flex-wrap: wrap !important; gap: 12px !important; }
  .px-page [style*="justify-content: space-between; align-items: center; background: #F5B955"] { flex-direction: column !important; align-items: stretch !important; gap: 20px !important; }
  .px-page form[name="newsletter"] { flex-wrap: wrap; }
  .px-page form[name="newsletter"] input[type="email"] { flex: 1 1 200px; width: auto !important; }

  /* grids */
  .px-page [style*="repeat(4, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  .px-page [style*="repeat(3, minmax(0, 1fr))"], .px-revgrid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .px-page [style*="repeat(2, minmax(0, 1fr))"]:not([style*="width: 260px"]) { grid-template-columns: minmax(0, 1fr) !important; }
  .px-page [style*="repeat(2, minmax(0, 280px))"] { grid-template-columns: minmax(0, 1fr) !important; }
  .px-grid1 { grid-template-columns: minmax(0, 1fr) !important; }
  .px-exgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .px-excap { padding: 10px 12px; font-size: 14px; }
  .px-explay { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .px-extag { left: 8px; top: 8px; font-size: 12px; padding: 4px 10px; }

  /* header: logo + cart on top, categories scroll sideways underneath */
  .px-hdr { height: auto !important; flex-wrap: wrap; padding: 10px 16px 0 !important; row-gap: 4px; }
  .px-logo { height: 46px !important; }
  .px-hdr-act button[aria-label="Search"] { display: none !important; }
  .px-nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 10px 16px 12px; box-sizing: border-box; gap: 20px !important; font-size: 15px !important; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .px-nav::-webkit-scrollbar { display: none; }
  .px-nav a { flex-shrink: 0; }

  /* banner carousel */
  .px-car { height: 600px !important; }
  .px-car.px-car-mix { aspect-ratio: auto; min-height: 0; }
  .px-car .px-slide > div, .px-car .px-slide > div > div[style*="padding: 0 128px"] { padding: 28px 20px 84px !important; flex-direction: column !important; justify-content: center !important; gap: 18px !important; }
  .px-car .px-slide svg[width="480"], .px-car .px-slide svg[width="520"], .px-car .px-slide svg[width="500"], .px-car .px-slide > div > svg { width: 100% !important; max-width: 300px; height: auto !important; max-height: 220px; flex-shrink: 1 !important; }
  .px-car .px-slide img[style*="width: 540px"] { height: 210px !important; }
  .px-car .px-slide [style*="max-width: 820px"] { padding: 28px 20px 84px !important; max-width: 100% !important; }
  .px-car .px-slide a[style*="height: 56px"] { height: 50px !important; padding: 0 22px !important; font-size: 16px !important; }
  .px-car > button[aria-label="Previous slide"], .px-car > button[aria-label="Next slide"] { width: 42px !important; height: 42px !important; top: auto !important; bottom: 22px !important; transform: none !important; }
  .px-car > button[aria-label="Previous slide"] { left: 12px !important; }
  .px-car > button[aria-label="Next slide"] { right: 12px !important; }
  .px-car.px-car-img { aspect-ratio: auto; height: calc(100vw * 13 / 36 + 58px) !important; background: #FBF8F3 !important; }
  .px-car.px-car-img .px-slide { bottom: 58px !important; }
  .px-car.px-car-img > div[style*="bottom: 20px"] { bottom: 6px !important; }
  .px-car.px-car-img > button[aria-label="Previous slide"], .px-car.px-car-img > button[aria-label="Next slide"] { bottom: 8px !important; }
  .px-bcta { left: 10px; bottom: 10px; height: 34px; padding: 0 14px; font-size: 13px; box-shadow: 0 4px 12px rgba(40, 49, 64, 0.35); }

  /* offer card */
  .px-page [style*="border-radius: 32px; background: #283140"] { flex-direction: column !important; align-items: stretch !important; padding: 30px 20px !important; gap: 18px !important; }
  .px-page [style*="border-radius: 32px; background: #283140"] > svg { display: none !important; }

  /* shop product picker */
  .px-page [role="tablist"] { overflow-x: auto; flex-wrap: nowrap !important; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .px-page [role="tablist"]::-webkit-scrollbar { display: none; }
  .px-page [role="tablist"] > button { flex-shrink: 0; }
  .px-page button[aria-pressed][style*="min-width: 130px"] { min-width: 0 !important; flex: 1 1 calc(50% - 10px); }
  .px-page [style*="width: 330px; height: 420px"] { transform: scale(0.86); }
  .px-page [style*="right: -24px; bottom: 28px"] { right: -6px !important; }
  .px-page [style*="display: flex; gap: 24px; align-items: center"] { flex-wrap: wrap; justify-content: center; }

  /* checkout */
  .px-page ol[aria-label="Checkout steps"] { flex-wrap: wrap; }
  .px-page button[style*="height: 58px"] { width: 100%; }

  /* footer */
  .px-foot-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px !important; }
  .px-foot-brand { grid-column: 1 / -1; }
  .px-foot-bottom { flex-direction: column; gap: 14px; }
  .px-foot-bottom > div { flex-wrap: wrap; gap: 12px 20px !important; }
  /* filter chips (blog, reviews) scroll sideways; FAQ columns stack */
  .px-page [role="group"][aria-label^="Filter"] { overflow-x: auto; flex-wrap: nowrap !important; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .px-page [role="group"][aria-label^="Filter"]::-webkit-scrollbar { display: none; }
  .px-page [role="group"][aria-label^="Filter"] > button { flex-shrink: 0; }
  .px-page [style*="display: flex; gap: 80px"] { flex-direction: column !important; gap: 28px !important; }
  .px-page summary[style*="font-size: 19px"] { font-size: 17px !important; }
  .px-page [style*="gap: 40px 28px"] { gap: 28px !important; }
  /* banner: a picture-only slide mixed with text slides shows the whole picture */
  .px-car:not(.px-car-img) .px-bimg { bottom: 84px; }
  .px-car:not(.px-car-img) .px-bimg img { object-fit: contain; }
  .px-car:not(.px-car-img) .px-bcta { left: 50%; transform: translateX(-50%); bottom: 96px; height: 44px; font-size: 15px; padding: 0 20px; }
  .px-page input { min-width: 0; }
  .px-page #coupon { width: 100%; }
}

@media (max-width: 380px) {
  .px-exgrid { grid-template-columns: minmax(0, 1fr); }
}
