/* Overrides: icons, nav, search, centered modals, hero, mobile */

/* Kill solid SVG fills from legacy CSS */
.shop-body svg.shop-icon {
  width: 1.25em !important;
  height: 1.25em !important;
  display: inline-block !important;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.shop-body svg.shop-icon * {
  fill: none !important;
  stroke: currentColor !important;
}
.shop-body svg.shop-icon circle[r="1.2"] {
  fill: currentColor !important;
  stroke: none !important;
}
.shop-body svg.shop-icon-points,
.shop-body svg.shop-icon-points * {
  stroke: none !important;
}
.shop-body svg.shop-icon-points .hex {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
}
.shop-body svg.shop-icon-points .star {
  fill: currentColor !important;
  stroke: none !important;
}

.shop-logo .logo-desk { display: none; }
.shop-logo .logo-mob { display: block; height: 36px; }
@media (min-width: 640px) {
  .shop-logo .logo-desk { display: block; height: 42px; }
  .shop-logo .logo-mob { display: none; }
}
@media (min-width: 1100px) {
  .shop-logo .logo-desk { height: 48px; }
}

.shop-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 0.95rem;
  border: 1.5px solid rgba(3, 27, 78, 0.06);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(3, 27, 78, 0.07);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.shop-icon-btn:hover {
  border-color: rgba(36, 72, 198, 0.3);
  box-shadow: 0 12px 28px rgba(36, 72, 198, 0.14);
  transform: translateY(-1px);
}
.shop-icon-btn svg.shop-icon { width: 20px !important; height: 20px !important; color: var(--blue); }
.shop-icon-btn-primary {
  background: linear-gradient(135deg, #2448c6, #1a3594);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(36, 72, 198, 0.35);
}
.shop-icon-btn-primary svg.shop-icon { color: #fff !important; }
.shop-icon-btn-primary:hover {
  background: linear-gradient(135deg, #3d5fd9, #2448c6);
  color: #fff;
}
@media (max-width: 699px) {
  .shop-icon-btn span { display: none; }
  .shop-icon-btn { width: 44px; padding: 0; justify-content: center; }
}

/* Hide legacy pills if any remain */
.shop-pill { display: none !important; }

/* Search replaces navbar row — no overlap */
.shop-nav {
  position: relative;
  overflow: hidden;
}
.shop-nav.is-search-open .shop-nav-inner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
}
.shop-nav-inner {
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.shop-search {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  transform: translateY(-110%) !important;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98) !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 1rem !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s !important;
}
.shop-search.is-open {
  transform: translateY(0) !important;
  opacity: 1;
  pointer-events: auto;
}
.shop-search-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 !important;
  gap: 0.35rem !important;
  background: var(--blue-wash);
  border: 1.5px solid rgba(36, 72, 198, 0.18);
  border-radius: 999px;
  box-shadow: none;
  height: 44px;
  align-items: stretch;
  overflow: hidden;
}
.shop-search-field {
  flex: 1;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 0.35rem 0 1rem !important;
  gap: 0.5rem !important;
}
.shop-search-field:focus-within {
  box-shadow: none !important;
  background: transparent !important;
}
.shop-search-inner:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 72, 198, 0.12);
}
.shop-search-field > svg.shop-icon {
  width: 17px !important;
  height: 17px !important;
  color: var(--blue) !important;
  flex-shrink: 0;
}
.shop-search-field input {
  font-size: 0.95rem !important;
  font-weight: 500;
}
.shop-search-go,
.shop-search-x {
  width: 36px;
  height: 36px;
  margin: 4px 4px 4px 0;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.shop-search-go {
  background: linear-gradient(135deg, #2448c6, #1a3594);
  color: #fff;
}
.shop-search-go:hover { transform: scale(1.04); }
.shop-search-go svg { width: 16px !important; height: 16px !important; color: #fff !important; }
.shop-search-x {
  background: #fff;
  color: var(--ink);
  margin-right: 4px;
  border: 1px solid var(--line);
}
.shop-search-x:hover { background: var(--blue-mist); }
.shop-search-x svg { width: 15px !important; height: 15px !important; }
.shop-search-ico,
.shop-search-kbd,
.shop-search-submit { display: none !important; }

@media (max-width: 559px) {
  .shop-search { padding: 0 0.65rem !important; }
  .shop-search-inner { height: 42px; }
}

/* Centered modals */
.shop-overlay {
  background: rgba(3, 27, 78, 0.55) !important;
  backdrop-filter: blur(8px);
}
.shop-drawer { display: none !important; }

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.shop-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.shop-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90vh, 840px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(3, 27, 78, 0.38);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 1.45rem 1.25rem 1.5rem;
}
.shop-modal.is-open .shop-modal-panel { transform: none; }
@media (min-width: 640px) {
  .shop-modal-panel { padding: 1.75rem; }
}
.shop-modal-cart { width: min(560px, 100%); }
.shop-modal-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.shop-modal-x:hover { background: #d9e3fb; }

.auth-modal-hero {
  background: linear-gradient(145deg, #031b4e 0%, #15358a 55%, #2448c6 120%);
  color: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  margin: 0 0 1.1rem;
}
.auth-modal-hero h2 {
  margin: 0.45rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  line-height: 1.15;
}
.auth-modal-hero p { margin: 0; opacity: 0.85; font-size: 0.92rem; line-height: 1.45; }
.auth-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: var(--blue-wash);
  margin-bottom: 1.1rem;
}
.auth-tabs button {
  height: 42px;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
}
.auth-tabs button.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}
.auth-pane { display: none; }
.auth-pane.is-active { display: block; }
.auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}
.auth-row > .af-field {
  min-width: 0;
  max-width: 100%;
}
/* Dwa pola obok siebie dopiero na szerszym modalu — na telefonie zawsze kolumna */
@media (min-width: 640px) {
  .auth-row { grid-template-columns: 1fr 1fr; }
}

.drawer-auth-form input { height: 48px; width: 100%; }
.empty-bubble {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--blue-mist);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.empty-bubble svg { width: 32px !important; height: 32px !important; }

.cart-modal-head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-right: 2.5rem;
}
.cart-modal-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #2448c6, #1a3594);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-modal-ico svg { width: 24px !important; height: 24px !important; color: #fff !important; }
.cart-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.cart-modal-head p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }
.cart-modal-body { max-height: 42vh; overflow: auto; }
.cart-modal-item {
  display: grid !important;
  grid-template-columns: 72px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
}
.cart-modal-info strong { display: block; }
.cart-modal-info span { font-size: 0.82rem; color: var(--muted); }
.cart-modal-qty { font-weight: 700; color: var(--muted); }
.cart-modal-line { font-weight: 700; white-space: nowrap; }
.cart-modal-foot {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.cart-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.65rem;
}
@media (max-width: 419px) {
  .cart-modal-actions { grid-template-columns: 1fr; }
  .cart-modal-item { grid-template-columns: 64px 1fr; }
  .cart-modal-qty, .cart-modal-line { grid-column: 2; }
}

/* Hero upgrade — mobile-first */
.hero-carousel {
  position: relative;
  width: calc(100% - 1.5rem);
  max-width: 1280px;
  margin: 0.75rem auto 0;
  border-radius: 20px;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
@media (min-width: 768px) {
  .hero-carousel {
    width: auto;
    margin: 1rem auto 0;
    border-radius: 28px;
  }
}
.hero-track {
  display: flex !important;
  width: 100% !important;
  will-change: transform;
  backface-visibility: hidden;
}
.hero-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  position: relative;
}
.hero-slide a {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}
.hero-slide .hero-desk,
.hero-slide .hero-mob {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide .hero-desk { display: none; aspect-ratio: 1280 / 480; }
.hero-slide img.hero-mob {
  display: block;
  width: 100%;
  height: auto;
}
.hero-slide div.hero-mob {
  display: none;
}
@media (min-width: 768px) {
  .hero-slide .hero-desk { display: block; }
  .hero-slide img.hero-mob { display: none; }
}

/* Mobile: tylko kropki (swipe), bez strzałek — jak benefiteo.com */
.hero-side {
  display: none;
}
@media (min-width: 768px) {
  .hero-side {
    display: inline-flex;
    position: absolute;
    top: 50%;
    bottom: auto;
    z-index: 8;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
  }
  .hero-side svg { width: 22px !important; height: 22px !important; }
  .hero-side-prev { left: 1rem; }
  .hero-side-next { right: 1rem; }
}

.hero-caption {
  display: none;
}
@media (min-width: 768px) {
  .hero-caption {
    display: block;
    position: absolute;
    left: 2.5rem;
    right: auto;
    bottom: 2.5rem;
    z-index: 3;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 28rem;
    pointer-events: none;
  }
}
.hero-caption span {
  display: inline-flex;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-caption strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 2.1rem);
  line-height: 1.12;
}
/* Pod slajdem, poza obszarem CTA w grafice banera */
.hero-chrome {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: auto;
  pointer-events: auto;
}
.hero-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}
@media (max-width: 767px) {
  /* CTA jest w niższej części banera — kropki pod nim, poza grafikią */
  .hero-carousel {
    margin-bottom: 0.35rem;
  }
  .hero-chrome {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    margin: 0.65rem auto 0;
    width: 100%;
  }
  .hero-dots {
    background: rgba(3, 27, 78, 0.55);
  }
}
@media (min-width: 768px) {
  .hero-chrome {
    bottom: 1.25rem;
    gap: 0.35rem;
    width: min(140px, 40%);
  }
  .hero-dots {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.hero-dot.is-active { width: 18px; background: #fff; }
.hero-progress {
  display: none;
}
@media (min-width: 768px) {
  .hero-progress {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
  }
}
.hero-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
}
.hero-nav-desktop, .hero-nav-mobile { display: none !important; }

/* Gift scroller mobile */
@media (max-width: 767px) {
  .gift-item { min-width: 240px !important; max-width: 250px !important; }
  .gift-scroll { padding-left: 1rem !important; padding-right: 1rem !important; }
  .scroll-nav button { width: 42px; height: 42px; }
}

.shop-btn-all .btn-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shop-btn-all .btn-ico svg { width: 15px !important; height: 15px !important; }

.feature-icon svg { width: 28px !important; height: 28px !important; }
.footer-icon svg { width: 24px !important; height: 24px !important; }
.pcard-go svg { width: 20px !important; height: 20px !important; color: #fff !important; }
.pcard-go svg * { stroke: #fff !important; }

/* Mobile polish */
@media (max-width: 767px) {
  .shop-section { padding: 2.5rem 1rem; }
  .shop-h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .shop-h2 { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }
  .catalog-stats { width: 100%; }
  .catalog-stat { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .special-banner { margin: 0 0.75rem; border-radius: 22px; }
  .special-banner-inner { padding: 2rem 1.1rem; text-align: center; }
  .special-banner .special-left { text-align: center !important; }
  .gift-wrap { padding: 0 0.75rem; margin-top: 2rem; }
  .gift-item { min-width: 250px; }
  .gift-footer a { min-height: 60px; padding: 0 0.5rem; font-size: 0.82rem; }
  .popular-card { min-width: 260px; }
  .feature-grid { gap: 0.75rem; }
  .feature-card { min-height: 128px; padding: 1rem 0.6rem; }
  .feature-card span { font-size: 0.82rem; }
  .shop-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
  }
  .pcard { max-width: none; border-radius: 16px; }
  .pcard-go { width: 42px; height: 42px; margin-top: -22px; }
  .pcard-price { font-size: 0.9rem; }
  .small-gift-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .small-gift-tile { max-width: none; padding: 0.65rem; }
  .footer-card { flex-direction: column; }
}

/* ——— Auth + Cart modals v2 ——— */
.shop-modal-auth {
  width: min(440px, 100%) !important;
  max-width: min(440px, 100vw) !important;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.shop-modal-auth .shop-modal-x {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 14px rgba(3,27,78,0.12);
}
.auth-modal-top {
  padding: 1.75rem 1.5rem 1.25rem;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(61,95,217,0.35), transparent 60%),
    linear-gradient(155deg, #031b4e 0%, #15358a 55%, #2448c6 120%);
  color: #fff;
  text-align: center;
}
.auth-modal-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  padding: 8px;
}
.auth-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.auth-modal-top .auth-modal-badge {
  margin-bottom: 0.75rem;
}
.auth-modal-top h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  line-height: 1.15;
}
.auth-modal-top p {
  margin: 0 auto;
  max-width: 28ch;
  opacity: 0.85;
  font-size: 0.92rem;
  line-height: 1.45;
}
.shop-modal-auth .auth-tabs {
  margin: 1.1rem 1.25rem 0.9rem;
}
.shop-modal-auth .auth-pane {
  padding: 0 1.25rem 1.4rem;
}
@media (min-width: 640px) {
  .shop-modal-auth .auth-tabs,
  .shop-modal-auth .auth-pane { padding-left: 1.5rem; padding-right: 1.5rem; }
  .shop-modal-auth .auth-pane { padding-bottom: 1.65rem; }
}

.auth-form-modern {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.af-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
}
.af-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 50px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--blue-wash);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.af-input:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36,72,198,0.14);
}
.af-input svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--blue);
  flex-shrink: 0;
}
.af-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  height: 100%;
}
.af-eye,
.apage-eye {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -0.25rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.af-eye:hover,
.apage-eye:hover {
  color: var(--blue);
  background: rgba(36, 72, 198, 0.1);
}
.af-eye .shop-icon,
.af-eye svg,
.apage-eye .shop-icon,
.apage-eye svg {
  width: 18px !important;
  height: 18px !important;
  color: inherit;
}
.shop-btn-lg {
  height: 52px !important;
  min-height: 52px !important;
  font-size: 1rem !important;
  margin-top: 0;
  margin-bottom: 0;
}
.auth-foot-note {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.auth-perk {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--blue-mist);
  color: var(--ink);
}
.auth-perk svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--blue);
  margin-top: 0.1rem;
}
.auth-perk strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.auth-perk span { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

.auth-logged-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1.25rem;
  margin: 1.5rem 1.25rem 0.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-wash), #fff);
  border: 1px solid var(--line);
}
.drawer-links a.is-danger { color: #b91c1c; }
.drawer-links a.is-danger svg { color: #b91c1c !important; }

/* ——— Logged-in account menu ——— */
.shop-modal-auth:has(.auth-account-menu) {
  width: min(400px, 100%) !important;
  padding: 0 !important;
  overflow: hidden;
}
.auth-account-menu {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.aam-head {
  padding: 1.35rem 1.25rem 1.15rem;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(36, 72, 198, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
  border-bottom: 1px solid rgba(3, 27, 78, 0.08);
}
.aam-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
  padding-right: 2rem;
}
.aam-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2448c6, #15358a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(36, 72, 198, 0.28);
}
.aam-meta {
  min-width: 0;
}
.aam-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.aam-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aam-points {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(36, 72, 198, 0.14);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, background 0.15s;
}
.aam-points:hover {
  border-color: rgba(36, 72, 198, 0.35);
  background: var(--blue-mist);
}
.aam-points > .shop-icon:first-child {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
}
.aam-points > .shop-icon:last-child {
  width: 16px;
  height: 16px;
  color: var(--blue);
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.7;
}
.aam-points span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.aam-points em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.aam-points small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.aam-head .shop-btn {
  height: 46px;
  margin: 0;
}

.aam-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
  max-height: min(58vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.aam-section {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0 0.5rem;
}
.aam-section + .aam-section {
  border-top: 1px solid rgba(3, 27, 78, 0.1);
  background: #fafbfd;
  padding-bottom: 0.25rem;
}
.aam-section-label {
  margin: 0;
  padding: 0.7rem 1.25rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.aam-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.aam-nav a .shop-icon,
.aam-nav a svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}
.aam-nav a span { flex: 1; }
.aam-nav a:hover {
  background: var(--blue-mist);
  color: var(--blue);
}
.aam-nav a:active {
  background: rgba(36, 72, 198, 0.12);
}
.aam-section-out a:not(.aam-logout) {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}
.aam-nav a.aam-logout {
  color: #b42318;
  margin-top: 0.15rem;
}
.aam-nav a.aam-logout .shop-icon,
.aam-nav a.aam-logout svg {
  color: #b42318;
}
.aam-nav a.aam-logout:hover {
  background: #fef3f2;
  color: #912018;
}

@media (max-width: 479px) {
  .shop-modal:has(.auth-account-menu) {
    align-items: flex-end;
    padding: 0;
  }
  .shop-modal-auth:has(.auth-account-menu) {
    width: 100% !important;
    max-height: min(92vh, 720px);
    border-radius: 22px 22px 0 0 !important;
    margin: 0;
  }
  .aam-head { padding: 1.15rem 1.1rem 1rem; }
  .aam-nav a { padding: 0.85rem 1.1rem; }
  .aam-section-label { padding-left: 1.1rem; padding-right: 1.1rem; }
  .aam-nav { max-height: min(62vh, 480px); }
}

/* Cart modal empty + filled */
.shop-modal-cart {
  width: min(440px, 100%) !important;
  padding: 1.5rem 1.35rem 1.45rem !important;
}
.cart-modal-top {
  text-align: center;
  padding: 0.25rem 2rem 1rem;
}
.cart-modal-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
}
.cart-modal-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.cart-empty {
  text-align: center;
  padding: 0.25rem 0.25rem 0.15rem;
}
.cart-empty-art {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0.25rem auto 1.1rem;
}
.cart-empty-ring {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(61,95,217,0.25), transparent 55%),
    linear-gradient(145deg, var(--blue-mist), #fff);
  border: 1px solid rgba(36,72,198,0.12);
  box-shadow: var(--shadow);
}
.cart-empty-ico {
  position: absolute;
  inset: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, #2448c6, #1a3594);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(36,72,198,0.35);
}
.cart-empty-ico svg {
  width: 30px !important;
  height: 30px !important;
  color: #fff !important;
}
.cart-empty h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.cart-empty > p {
  margin: 0 auto 1.15rem;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.cart-empty-perks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--blue-wash);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cart-empty-perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.cart-empty-perks svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--blue);
}

.cart-modal-item {
  grid-template-columns: 76px 1fr auto !important;
  padding: 0.85rem !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  margin-bottom: 0.65rem;
  background: #fff;
}
.cart-modal-item img {
  width: 76px !important;
  height: 42px !important;
  border-radius: 10px;
}
.cart-modal-body {
  max-height: 38vh;
  padding: 0.15rem 0;
}
.cart-modal-foot {
  background: var(--blue-wash);
  margin: 0.85rem -1.35rem -1.45rem;
  padding: 1.15rem 1.35rem 1.35rem;
  border-radius: 0 0 28px 28px;
  border-top: 1px solid var(--line);
}
.cart-modal-total .sum {
  font-size: 1.65rem !important;
}

@media (max-width: 419px) {
  .auth-modal-top { padding: 1.4rem 1.1rem 1.1rem; }
  .shop-modal-cart { padding: 1.25rem 1rem 1.2rem !important; }
  .cart-modal-foot { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
}

/* ——— Cart modal v3 — rich ——— */
.shop-modal-cart {
  width: min(480px, 100%) !important;
  padding: 0 !important;
  overflow: hidden !important;
  max-height: min(92vh, 860px) !important;
  display: flex;
  flex-direction: column;
}
.shop-modal-cart .shop-modal-x {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.cart-hero {
  padding: 1.5rem 1.35rem 1.25rem;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(61,95,217,0.4), transparent 55%),
    linear-gradient(150deg, #031b4e 0%, #15358a 50%, #2448c6 115%);
  color: #fff;
}
.cart-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.cart-hero-badge svg { width: 14px !important; height: 14px !important; color: #fff !important; }
.cart-hero h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  line-height: 1.15;
  padding-right: 2rem;
}
.cart-hero > p {
  margin: 0 0 0.95rem;
  opacity: 0.88;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 34ch;
}
.cart-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cart-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.78rem;
  font-weight: 600;
}
.cart-hero-chips svg { width: 14px !important; height: 14px !important; color: #fff !important; }

.cart-body {
  padding: 1.15rem 1.25rem 1.35rem;
  overflow: auto;
  flex: 1;
}
.cart-suggest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cart-suggest-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.cart-suggest-head a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.cart-suggest {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.cart-suggest-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.cart-suggest-card:hover {
  border-color: rgba(36,72,198,0.35);
  box-shadow: 0 10px 24px rgba(3,27,78,0.08);
  transform: translateY(-1px);
}
.cart-suggest-card img {
  width: 72px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--blue-wash);
}
.cart-suggest-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}
.cart-suggest-card span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.cart-suggest-card em {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.cart-suggest-card em svg { width: 15px !important; height: 15px !important; }

.cart-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.cart-trust div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  border-radius: 14px;
  background: var(--blue-wash);
  text-align: center;
}
.cart-trust b {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(3,27,78,0.06);
  font-weight: 400;
}
.cart-trust b svg { width: 16px !important; height: 16px !important; }
.cart-trust span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.25;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
  max-height: 36vh;
  overflow: auto;
}
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(3,27,78,0.04);
}
.cart-line-media {
  width: 84px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-wash);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-line-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.cart-line-meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.cart-line-pts {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  width: fit-content;
}
.cart-summary-pts {
  color: var(--blue) !important;
  font-weight: 700;
}
.cart-summary-pts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-summary-pts .shop-icon,
.cart-summary-pts svg {
  width: 16px;
  height: 16px;
}
.cart-summary-pts strong {
  color: var(--blue);
  font-weight: 800;
}
.cart-line-qty {
  margin-top: 0.2rem !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
}
.cart-line-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}
.cart-summary {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--blue-wash);
  margin-bottom: 0.9rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.25rem 0;
}
.cart-summary-row .ok { color: #0a7a4a; font-weight: 700; }
.cart-summary-row.is-total {
  margin-top: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(3,27,78,0.15);
  font-size: 1rem;
  color: var(--ink);
}
.cart-summary-row.is-total strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue);
}
.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.6rem;
  align-items: stretch;
}
.cart-actions .shop-btn {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  box-sizing: border-box;
}

/* kill old empty cart clutter */
.cart-modal-top,
.cart-empty,
.cart-modal-head,
.cart-modal-foot { display: none !important; }
.shop-modal-cart .cart-body .shop-btn,
.shop-modal-cart .cart-actions,
.shop-modal-cart .cart-suggest-head { display: flex; }
.shop-modal-cart .cart-body > .shop-btn { display: inline-flex; width: 100%; }
.shop-modal-cart .cart-actions { display: grid; }

@media (max-width: 419px) {
  .cart-hero { padding: 1.25rem 1.1rem 1.1rem; }
  .cart-body { padding: 1rem; }
  .cart-trust { gap: 0.35rem; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line-price { grid-column: 2; justify-self: start; }
  .cart-actions { grid-template-columns: 1fr; }
}

/* ——— Empty cart v4 — carousel ——— */
.shop-modal-cart.is-empty {
  width: min(440px, 100%) !important;
  padding: 0 !important;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(36,72,198,0.08), transparent 60%),
    #fff !important;
}
.shop-modal-cart.is-empty .cart-hero,
.shop-modal-cart.is-empty .cart-suggest,
.shop-modal-cart.is-empty .cart-trust,
.shop-modal-cart.is-empty .cart-suggest-head { display: none !important; }

.cart-empty-v4 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cev-top {
  text-align: center;
  padding: 1.75rem 1.35rem 0.85rem;
}
.cev-icon {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
}
.cev-bag {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8eefc, #fff);
  border: 1px solid rgba(36,72,198,0.14);
  box-shadow: 0 14px 32px rgba(36,72,198,0.12);
  color: var(--blue);
}
.cev-bag svg { width: 30px !important; height: 30px !important; }
.cev-zero {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2448c6, #1a3594);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(36,72,198,0.35);
  border: 2px solid #fff;
}
.cev-top h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.15;
  padding: 0 1.5rem;
}
.cev-top p {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cev-carousel {
  padding: 0.85rem 0 0.35rem;
}
.cev-carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.25rem 0.7rem;
}
.cev-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.2rem;
}
.cev-carousel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.cev-nav {
  display: flex;
  gap: 0.35rem;
}
.cev-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.cev-nav button:hover {
  background: var(--blue-mist);
  border-color: rgba(36,72,198,0.3);
  color: var(--blue);
}
.cev-nav svg { width: 16px !important; height: 16px !important; }

.cev-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 1.25rem 0.85rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cev-track::-webkit-scrollbar { display: none; }

.cev-card {
  flex: 0 0 min(220px, 72vw);
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(3,27,78,0.08);
  box-shadow: 0 12px 30px rgba(3,27,78,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(36,72,198,0.16);
}
.cev-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--blue-wash);
}
.cev-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cev-rank {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(3,27,78,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.cev-card-body {
  padding: 0.85rem 0.9rem 1rem;
}
.cev-card-body strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.cev-card-body > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.cev-card-body em {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}
.cev-card-body em svg { width: 14px !important; height: 14px !important; }

.cev-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0 0.85rem;
}
.cev-dots button {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 999px;
  background: rgba(3,27,78,0.18);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.cev-dots button.is-active {
  width: 20px;
  background: var(--blue);
}

.cev-foot {
  padding: 0 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--blue-wash));
}
.cev-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 0 0.85rem;
}
.cev-perks span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.cev-perks svg {
  width: 13px !important;
  height: 13px !important;
  color: var(--blue);
}

@media (max-width: 419px) {
  .cev-top { padding: 1.45rem 1rem 0.7rem; }
  .cev-carousel-head { padding-left: 1rem; padding-right: 1rem; }
  .cev-track { padding-left: 1rem; padding-right: 1rem; }
  .cev-foot { padding-left: 1rem; padding-right: 1rem; }
  .cev-card { flex-basis: min(200px, 78vw); }
}

/* Empty cart compact + filled qty */
.cart-empty-v4 .cev-top {
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
}
.cev-status {
  display: inline-flex;
  margin: 0 0 0.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cart-empty-v4 .cev-top h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}
.cev-lead {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cev-carousel.is-compact .cev-carousel-head {
  padding: 0.5rem 1.15rem 0.45rem;
}
.cev-carousel.is-compact .cev-carousel-head h3 {
  font-size: 0.9rem;
  margin: 0;
}
.cev-carousel.is-compact .cev-nav button {
  width: 30px;
  height: 30px;
}
.cev-carousel.is-compact .cev-track {
  padding: 0.2rem 1.15rem 0.65rem;
  gap: 0.55rem;
}
.cev-carousel.is-compact .cev-card {
  flex: 0 0 148px;
  border-radius: 14px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 6px 16px rgba(3,27,78,0.06);
}
.cev-carousel.is-compact .cev-card img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--blue-wash);
}
.cev-carousel.is-compact .cev-card strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.2;
}
.cev-carousel.is-compact .cev-card span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.cev-carousel.is-compact .cev-card-media,
.cev-carousel.is-compact .cev-rank,
.cev-carousel.is-compact .cev-card-body,
.cev-carousel.is-compact .cev-dots { display: none !important; }

.cart-empty-v4 .cev-foot {
  padding: 0.85rem 1.15rem 1.2rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cart-empty-v4 .cev-icon,
.cart-empty-v4 .cev-perks { display: none !important; }

.cart-filled {
  padding: 1.35rem 1.2rem 1.25rem;
}
.cart-filled-head {
  margin-bottom: 0.9rem;
  padding-right: 2.2rem;
}
.cart-filled-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.cart-filled-head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.cart-qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.cart-qty button:hover { background: var(--blue-mist); }
.cart-qty button:disabled { opacity: 0.5; cursor: wait; }
.cart-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.cart-filled .cart-list {
  max-height: 40vh;
  margin-bottom: 0.85rem;
}
.cart-filled .cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.55rem;
  align-items: stretch;
}
.cart-filled .cart-actions .shop-btn {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
}
.cart-filled .cart-actions .shop-btn-primary {
  box-shadow: 0 10px 24px rgba(36,72,198,0.28);
}
@media (max-width: 419px) {
  .cart-filled .cart-actions { grid-template-columns: 1fr; }
  .cev-carousel.is-compact .cev-card { flex-basis: 136px; }
}

/* ============================================
   MOBILE FINAL — hero full image + modals
   ============================================ */
@media (max-width: 767px) {
  /* Hero: natural 768×1152 (2:3) — no crop */
  .hero-carousel {
    width: calc(100% - 1rem) !important;
    margin: 0.65rem auto 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: transparent;
  }
  .hero-slide {
    background: transparent !important;
  }
  .hero-slide a {
    display: block;
    line-height: 0;
  }
  .hero-slide .hero-desk { display: none !important; }
  .hero-slide img.hero-mob,
  .hero-slide .hero-mob {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: none !important;
    border: 0;
  }
  .hero-chrome {
    position: static !important;
    transform: none !important;
    margin: 0.55rem auto 0.15rem !important;
    width: 100% !important;
  }
  .hero-dots {
    background: rgba(3, 27, 78, 0.5) !important;
  }

  /* Modals — full usable viewport, not cut off */
  .shop-modal {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
  }
  .shop-modal.is-open .shop-modal-panel {
    transform: none !important;
  }
  .shop-modal-panel,
  .shop-modal-auth,
  .shop-modal-cart {
    width: 100% !important;
    max-width: 100vw !important;
    max-height: min(92dvh, 92vh) !important;
    margin: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box !important;
  }
  .shop-modal-auth {
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .shop-modal-cart.is-empty,
  .shop-modal-cart.is-filled,
  .shop-modal-cart {
    padding: 0 !important;
  }
  .shop-modal-x {
    position: sticky !important;
    top: 0.75rem;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    z-index: 5;
  }
  .shop-modal-auth .shop-modal-x,
  .shop-modal-cart .shop-modal-x {
    position: absolute !important;
    float: none;
    margin: 0;
    top: 0.75rem;
    right: 0.75rem;
  }
  .auth-modal-top {
    padding: 1.35rem 1.1rem 1rem !important;
    padding-top: 1.5rem !important;
  }
  .auth-modal-top h2 {
    font-size: 1.35rem !important;
    padding-right: 2.5rem;
  }
  .shop-modal-auth .auth-tabs {
    margin: 0.9rem 1rem 0.75rem !important;
  }
  .shop-modal-auth .auth-pane {
    padding: 0 1rem 1.25rem !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .shop-modal-auth .auth-form-modern,
  .shop-modal-auth .auth-row,
  .shop-modal-auth .af-field,
  .shop-modal-auth .af-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .shop-modal-auth .auth-row {
    grid-template-columns: 1fr !important;
  }
  .shop-modal-auth .auth-modal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .shop-modal-auth .auth-perk {
    max-width: 100%;
    box-sizing: border-box;
  }
  .shop-modal-auth .auth-perk span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .shop-modal-auth .af-check {
    max-width: 100%;
    align-items: flex-start;
    white-space: normal;
  }
  .shop-modal-auth .shop-btn-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .cart-empty-v4 .cev-top {
    padding: 1.35rem 1rem 0.5rem !important;
  }
  .cart-empty-v4 .cev-top h2 {
    font-size: 1.25rem !important;
    padding: 0 2rem;
  }
  .cev-carousel.is-compact .cev-track {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .cart-empty-v4 .cev-foot {
    padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0)) !important;
  }
  .cart-filled {
    padding: 1.15rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0)) !important;
  }
  .cart-filled .cart-list {
    max-height: none !important;
  }
  .cart-filled .cart-actions {
    grid-template-columns: 1fr !important;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 0.5rem;
  }

  /* General page mobile polish */
  .shop-nav-inner {
    padding: 0.65rem 0.85rem !important;
    min-height: 60px !important;
  }
  .shop-logo .logo-mob { height: 32px !important; }
  .hero-points-bar {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    gap: 0.45rem !important;
  }
  .special-banner-inner {
    grid-template-columns: 1fr !important;
  }
  .gift-footer {
    grid-template-columns: 1fr !important;
  }
  .gift-footer a:first-child {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .footer-bottom {
    grid-template-columns: 1fr !important;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 767px) {
    .shop-modal-panel,
    .shop-modal-auth,
    .shop-modal-cart {
      max-height: 92dvh !important;
    }
  }
}

/* ——— Cart page ——— */
.cart-page { padding: 1.5rem 1.25rem 3rem; background: var(--paper, #f5f7fc); }
.cart-page-inner { max-width: 1100px; margin: 0 auto; }
.cart-page-head { margin-bottom: 1.5rem; }
.cart-page-head .shop-lead { margin: 0.35rem 0 0; max-width: 42ch; }
.cart-page-empty { display: grid; gap: 1.5rem; }
.cart-page-empty-card {
  background: #fff; border-radius: 24px; padding: 2.25rem 1.5rem; text-align: center;
  border: 1px solid rgba(3,27,78,.08); box-shadow: var(--shadow);
}
.cart-page-empty-card h2 { margin: 0 0 .4rem; font-family: var(--font-display); color: var(--ink); font-size: 1.55rem; }
.cart-page-empty-card p { margin: 0 auto 1.25rem; color: var(--muted); max-width: 34ch; }
.cart-page-suggest h3 { margin: 0 0 .85rem; font-size: 1.05rem; color: var(--ink); }
.cart-page-suggest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem;
}
.cart-page-suggest-card {
  background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(3,27,78,.08); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.cart-page-suggest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cart-page-suggest-card img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.cart-page-suggest-card strong, .cart-page-suggest-card span { display: block; padding: 0 .75rem; }
.cart-page-suggest-card strong { padding-top: .65rem; font-size: .92rem; }
.cart-page-suggest-card span { padding-bottom: .75rem; color: var(--muted); font-size: .8rem; }
.cart-page-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .cart-page-grid { grid-template-columns: 1.4fr .9fr; align-items: start; }
}
.cart-page-line {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center;
  background: #fff; border-radius: 18px; padding: 1rem; margin-bottom: .75rem;
  border: 1px solid rgba(3,27,78,.08); box-shadow: var(--shadow);
}
.cart-page-line-media img { width: 120px; height: 60px; object-fit: cover; border-radius: 10px; display: block; }
.cart-page-line-meta { display: flex; flex-direction: column; gap: .25rem; }
.cart-page-line-meta strong { font-size: 1.05rem; color: var(--ink); }
.cart-page-line-meta > span { color: var(--muted); font-size: .85rem; }
.cart-page-line-pts { color: var(--blue) !important; font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }
.cart-page-line-pts svg { width: 14px; height: 14px; }
.cart-page-qty { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.cart-page-qty input {
  width: 72px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  padding: 0 .65rem; font-weight: 700; color: var(--ink);
}
.cart-page-line-side { text-align: right; display: flex; flex-direction: column; gap: .45rem; align-items: flex-end; }
.cart-page-line-side strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.cart-page-remove {
  background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .82rem;
}
.cart-page-list-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cart-page-summary {
  background: #fff; border-radius: 22px; padding: 1.35rem 1.25rem;
  border: 1px solid rgba(3,27,78,.08); box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-h, 72px) + 12px);
}
.cart-page-summary h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.cart-page-sum-list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .65rem; }
.cart-page-sum-list li { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .92rem; }
.cart-page-sum-list li strong { color: var(--ink); }
.cart-page-sum-list li .ok { color: #0a7a4a; }
.cart-page-sum-list li.is-total {
  margin-top: .35rem; padding-top: .75rem; border-top: 1px solid var(--line);
  font-size: 1rem; color: var(--ink);
}
.cart-page-sum-list li.is-total strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--blue); }
.cart-page-summary .shop-btn { margin-bottom: .5rem; }
.cart-page-note { margin: .75rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.cart-page-trust {
  margin-top: 1.75rem; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cart-page-trust > div {
  background: linear-gradient(160deg, #031b4e, #2448c6); color: #fff;
  border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .25rem;
}
.cart-page-trust strong { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.cart-page-trust strong svg { width: 16px; height: 16px; }
.cart-page-trust span { font-size: .8rem; opacity: .82; line-height: 1.4; }
@media (max-width: 700px) {
  .cart-page-line { grid-template-columns: 88px 1fr; }
  .cart-page-line-side { grid-column: 2; text-align: left; align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .cart-page-line-media img { width: 88px; height: 44px; }
}
