/* Tneen Express customer storefront — retail design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-main: #090d16;
  --accent-amber: #FF4747;
  --brand-orange: #FF4747;
  --brand-navy: #1e3a8a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 68px;
  --mobile-cart-dock-height: 72px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Header respects the notch */
.app-header {
  padding-top: calc(0.75rem + var(--safe-top));
}

/* Reserve space for the fixed bottom nav on mobile */
@media (max-width: 767.98px) {
  .app-body {
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 0.75rem);
    max-width: none;
  }
}
@media (min-width: 768px) {
  .toast-container {
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: 24rem;
  }
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
}

.font-display {
  font-family: 'Syne', 'Outfit', sans-serif;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.inline-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 0.75rem;
}

.profile-sidebar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (max-width: 767px) {
  .profile-sidebar nav {
    padding-bottom: 0.25rem;
  }
}

.home-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}
.home-rail > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 9.5rem;
}
@media (min-width: 640px) {
  .home-rail > * { width: 11rem; }
}

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.65rem;
  color: #cbd5e1;
  font-weight: 600;
}
.cat-chip:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.banner-slide {
  animation: none;
}
.banner-enter {
  animation: bannerRise 0.7s ease-out;
}
@keyframes bannerRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#banner-slides {
  will-change: transform;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dropdown {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Scrollbars hidden storewide (scroll still works) */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ------------------------------------------------------------------------ */
/* Reusable controls                                                         */
/* ------------------------------------------------------------------------ */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus {
  border-color: #fbbf24;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  color: #020617;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 10px 25px -10px rgba(245, 158, 11, 0.5);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  color: #fff;
  border-color: rgba(251, 191, 36, 0.4);
}

.chip {
  white-space: nowrap;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  transition: background 0.15s ease;
}
.chip:hover {
  background: #1e293b;
}

/* Profile hub cards */
.hub-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hub-card:hover {
  border-color: rgba(251, 191, 36, 0.35);
}
.hub-card:active {
  transform: scale(0.99);
}
.hub-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

/* Payment pills */
.pay-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pay-zaad {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.pay-edahab {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pay-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-option:has(input:checked) {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 0 1px #fbbf24 inset;
}

/* Checkout address radio cards */
.addr-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.addr-option:has(input:checked) {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 0 1px #fbbf24 inset;
}

/* Status badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-pending {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
}
.badge-payment_submitted {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.badge-staged,
.badge-processing {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.badge-paid,
.badge-shipped,
.badge-fulfilled,
.badge-completed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.badge-cancelled {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* ------------------------------------------------------------------------ */
/* Product cards                                                             */
/* ------------------------------------------------------------------------ */
.product-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px 0 rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ------------------------------------------------------------------------ */
/* PDP gallery — always fills its grid column                                */
/* ------------------------------------------------------------------------ */
.pdp-gallery {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pdp-main-image {
  position: relative;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.25rem;
}
@media (min-width: 768px) {
  .pdp-main-image {
    min-height: 420px;
    max-height: 560px;
  }
}
.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.pdp-main-image:hover img {
  transform: scale(1.04);
}
.pdp-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar {
  display: none;
}
.thumb-btn {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.thumb-btn.active {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Buy box sticky on desktop */
@media (min-width: 768px) {
  .buybox-sticky {
    position: sticky;
    top: 100px;
  }
}

/* Mobile sticky buy bar */
.pdp-mobile-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  z-index: 35;
  padding: 0.6rem 1rem;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .pdp-mobile-buybar {
    display: none;
  }
}
.has-buybar .app-main {
  padding-bottom: 5rem;
}

/* Rating histogram */
.rating-bar-bg {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.rating-bar-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease-out;
}

/* ------------------------------------------------------------------------ */
/* Mobile bottom navigation — professional dock                              */
/* ------------------------------------------------------------------------ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0 10px calc(8px + var(--safe-bottom));
  pointer-events: none;
}
.bottom-nav.hidden {
  display: none !important;
}
.bottom-nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  height: var(--bottom-nav-height);
  padding: 6px 6px;
  border-radius: 22px;
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(249, 115, 22, 0.06) inset;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}
.bottom-nav-btn {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  border-radius: 16px;
  color: #64748b;
  transition: color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.bottom-nav-btn .bn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}
.bottom-nav-btn .bn-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
.bottom-nav-btn.active {
  color: #fdba74;
}
.bottom-nav-btn.active .bn-icon {
  background: rgba(249, 115, 22, 0.16);
  color: #E62E04;
}
.bottom-nav-btn:active {
  transform: scale(0.96);
}
.bottom-nav-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #FF4747;
  color: #0f172a;
  font-size: 0.58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #0c1220;
}

/* ------------------------------------------------------------------------ */
/* Profile — Amazon-style hub + detail pages                                 */
/* ------------------------------------------------------------------------ */
body.profile-mode #store-main {
  padding-top: 0.75rem;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 1.25rem);
  max-width: 100%;
}
@media (min-width: 768px) {
  body.profile-mode #store-main {
    max-width: 1200px;
    padding-top: 1.5rem;
  }
}
@media (min-width: 1280px) {
  body.profile-mode #store-main {
    max-width: 1400px;
  }
}

.profile-hub {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-hub-hero {
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(30, 58, 138, 0.28), transparent 50%),
    rgba(12, 18, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
  background: linear-gradient(135deg, #FF4747, #E62E04);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28);
  flex-shrink: 0;
}
.profile-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.profile-stat {
  text-align: center;
  padding: 0.65rem 0.4rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-stat-n {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: #E62E04;
  line-height: 1.1;
}
.profile-stat-l {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-row-group {
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 32, 0.72);
  overflow: hidden;
}
.profile-row-group-label {
  padding: 0.65rem 1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: inherit;
  transition: background 0.15s ease;
}
.profile-row:first-of-type,
.profile-row-group-label + .profile-row {
  border-top: none;
}
.profile-row:hover,
.profile-row:active {
  background: rgba(255, 255, 255, 0.04);
}
.profile-row-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  color: #E62E04;
  flex-shrink: 0;
}
.profile-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.profile-row-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}
.profile-row-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.3;
}
.profile-row-meta {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
  max-width: 5.5rem;
  text-align: right;
}
.profile-row-chevron {
  color: #475569;
  flex-shrink: 0;
}
.profile-row-danger .profile-row-icon {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
}
.profile-row-danger .profile-row-title {
  color: #fda4af;
}

.profile-detail-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.25rem -0.25rem 1rem;
  padding: 0.65rem 0.35rem;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  .profile-detail-bar {
    top: 4.5rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}
body.profile-mode .profile-detail-bar {
  top: 0;
}
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #E62E04;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.profile-detail-title {
  font-family: 'Syne', 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  flex: 1;
}
.profile-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.profile-guest {
  max-width: 22rem;
  margin: 0 auto;
}

/* ------------------------------------------------------------------------ */
/* Checkout sheet (bottom sheet on mobile, centered dialog on desktop)       */
/* ------------------------------------------------------------------------ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet.hidden {
  display: none;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sheet-panel {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-bottom));
  animation: sheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.sheet-handle {
  width: 2.5rem;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 0.9rem;
}
@media (min-width: 768px) {
  .sheet {
    align-items: center;
    padding: 1rem;
  }
  .sheet-panel {
    max-width: 30rem;
    border-radius: 1.25rem;
    padding: 1.5rem;
    animation: fadeScale 0.2s ease;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.safe-bottom {
  padding-bottom: calc(1.5rem + var(--safe-bottom));
}

/* Toast */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.toast-enter {
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Line clamp helpers (Tailwind CDN includes these, kept for safety) */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 {
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  -webkit-line-clamp: 3;
}

/* Customer mobile-native additions */
.pb-safe { padding-bottom: max(0.5rem, env(safe-area-inset-bottom)); }
.chip {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-weight: 600;
}
.chip:hover { border-color: rgba(245,158,11,0.4); color: #fbbf24; }

/* Mobile cart dock */
body.cart-dock-open {
  padding-bottom: calc(var(--mobile-cart-dock-height) + var(--safe-bottom)) !important;
}
#mobile-cart-dock {
  animation: cartDockIn 0.22s ease-out;
}
@keyframes cartDockIn {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
#mobile-cart-sheet {
  animation: cartSheetIn 0.2s ease-out;
}
@keyframes cartSheetIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.brand-mark {
  /* Emblem already cropped tight — fill the circle edge-to-edge */
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
.input-field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: #f1f5f9;
  font-size: 0.875rem;
  outline: none;
}
.input-field:focus { border-color: rgba(245,158,11,0.6); }
.label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.pay-option span {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0f172a;
  font-weight: 700;
  font-size: 0.8rem;
  color: #94a3b8;
  cursor: pointer;
}
.pay-option input:checked + span {
  border-color: rgba(245,158,11,0.5);
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
}

/* Rich Amazon-style product cards */
.card-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}
.chip-badge {
  background: rgba(245, 158, 11, 0.9);
  color: #0f172a;
}
.chip-prime {
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
}
.chip-sponsored {
  background: rgba(100, 116, 139, 0.85);
  color: #e2e8f0;
}
.chip-save {
  background: rgba(244, 63, 94, 0.9);
  color: #fff;
}

/* PDP lightbox */
#pdp-lightbox .lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  padding: 0.65rem;
  border-radius: 0.75rem;
  background: rgba(15, 22, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}
#pdp-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  padding: 0.85rem;
  border-radius: 999px;
  background: rgba(15, 22, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#pdp-lightbox .lightbox-nav:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}
#pdp-lightbox .lightbox-prev { left: 0.75rem; }
#pdp-lightbox .lightbox-next { right: 0.75rem; }
@media (min-width: 640px) {
  #pdp-lightbox .lightbox-prev { left: 1.25rem; }
  #pdp-lightbox .lightbox-next { right: 1.25rem; }
}

/* Share sheet actions */
.share-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 22, 35, 0.7);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
}
.share-action:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

/* Product detail — ensure full page scrolls (gallery + Amazon-like sections) */
.pdp-page,
#tab-product-detail {
  overflow: visible;
}
.pdp-layout {
  min-height: 0;
}
#pdp-main-stage {
  -webkit-overflow-scrolling: touch;
}
.pdp-sections {
  padding-bottom: 1.5rem;
}
.pdp-thumbs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ==========================================================================
   Amazon-style Product Detail Page (scoped)
   ========================================================================== */
:root {
  --az-bg: #ffffff;
  --az-text: #0f1111;
  --az-muted: #565959;
  --az-link: #007185;
  --az-border: #d5d9d9;
  --az-price: #b12704;
  --az-star: #de7921;
  --az-atc: #ffd814;
  --az-atc-border: #fcd200;
  --az-buy: #ffa41c;
  --az-buy-border: #ff8f00;
  --az-box-bg: #ffffff;
  --az-strip: #fff6e0;
  --az-strip-border: #f0c14b;
}

body.az-pdp-mode {
  background: var(--az-bg) !important;
}
body.az-pdp-mode #seo-footer,
body.az-pdp-mode .bottom-nav,
body.az-pdp-mode header.site-header {
  /* keep chrome; PDP content itself is light */
}

.az-pdp-shell {
  background: var(--az-bg);
  color: var(--az-text);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding: 0 0 6rem;
  overflow: visible;
}
@media (min-width: 768px) {
  .az-pdp-shell { padding-bottom: 2.5rem; }
}

.az-pdp-topbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.35rem 1rem 0;
}
.az-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--az-link);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.15rem 0;
}
.az-back:hover { text-decoration: underline; color: #c45500; }

.az-pdp-root {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.25rem 1rem 2rem;
  font-family: "Amazon Ember", Arial, sans-serif;
  color: var(--az-text);
}

.az-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  background: linear-gradient(90deg, #232f3e 0%, #37475a 55%, #232f3e 100%);
  color: #fff;
  border-radius: 4px;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.35;
}
.az-trust strong { color: #FF4747; font-weight: 700; }
.az-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FF4747;
  color: #111;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
}

.az-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 900px) {
  .az-grid {
    grid-template-columns: minmax(280px, 42%) minmax(240px, 1fr) minmax(220px, 280px);
    gap: 1.5rem 1.75rem;
  }
}

/* Gallery: vertical thumbs + main (Amazon desktop) */
.az-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 700px) {
  .az-gallery {
    grid-template-columns: 48px 1fr;
    gap: 0.75rem;
  }
}
.az-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
@media (min-width: 700px) {
  .az-thumbs {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 480px;
  }
}
.az-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--az-border);
  border-radius: 2px;
  background: #fff;
  padding: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.az-thumb img { width: 100%; height: 100%; object-fit: contain; }
.az-thumb.is-active {
  border-color: #e77600;
  box-shadow: 0 0 0 1px #e77600;
}
.az-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 0.65rem;
}
.az-main-stage {
  border: 1px solid var(--az-border);
  border-radius: 2px;
  background: #fff;
  min-height: 320px;
  max-height: 560px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.75rem;
}
.az-main-stage img,
.az-main-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.az-main-stage img { cursor: zoom-in; }
.az-badge-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #232f3e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}
.az-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.7rem;
  color: var(--az-link);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--az-border);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  cursor: pointer;
}

/* Center column */
.az-title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  color: var(--az-text);
}
.az-brand-link {
  color: var(--az-link);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.az-brand-link:hover { color: #c45500; text-decoration: underline; }
.az-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.875rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--az-border);
  margin-bottom: 0.75rem;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding-left: 0;
  padding-right: 0;
}
.az-stars { color: var(--az-star); letter-spacing: -0.05em; font-size: 0.95rem; }
.az-rating-num { color: var(--az-text); font-weight: 500; }
.az-rating-count { color: var(--az-link); }
.az-rating-count:hover { color: #c45500; text-decoration: underline; }

.az-price-block { margin: 0.5rem 0 0.75rem; }
.az-price {
  color: var(--az-price);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
}
.az-price .az-currency {
  font-size: 0.8rem;
  vertical-align: super;
  margin-right: 0.1rem;
}
.az-price-sub { font-size: 0.8rem; color: var(--az-muted); margin-top: 0.2rem; }
.az-avail { color: #007600; font-size: 1rem; font-weight: 500; margin: 0.35rem 0; }
.az-delivery { font-size: 0.875rem; color: var(--az-text); margin: 0.25rem 0; }
.az-delivery b { font-weight: 700; }
.az-ships { font-size: 0.8rem; color: var(--az-muted); margin: 0.35rem 0 0.75rem; }

.az-bullets {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
.az-bullets li { margin: 0.25rem 0; }
.az-bullets li::marker { color: var(--az-text); }

.az-h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--az-text);
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--az-border);
}
.az-section {
  background: #fff;
  border-top: 1px solid var(--az-border);
  padding: 1.25rem 0;
  margin-top: 0.25rem;
}
.az-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.az-table th,
.az-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e7e7e7;
  vertical-align: top;
  text-align: left;
}
.az-table th {
  width: 32%;
  color: var(--az-muted);
  font-weight: 400;
  background: #f7f7f7;
}
.az-table td { color: var(--az-text); }

/* Buy box */
.az-buybox {
  border: 1px solid var(--az-border);
  border-radius: 8px;
  padding: 1rem 1.05rem;
  background: var(--az-box-bg);
  position: sticky;
  top: 5.5rem;
}
.az-buybox .az-price { font-size: 1.35rem; }
.az-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
}
.az-qty-row select,
.az-qty-select {
  border: 1px solid #888c8c;
  border-radius: 8px;
  background: #f0f2f2;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
}
.az-btn {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  margin: 0.4rem 0;
}
.az-btn-atc {
  background: var(--az-atc);
  border-color: var(--az-atc-border);
  color: #0f1111;
}
.az-btn-atc:hover { background: #f7ca00; }
.az-btn-buy {
  background: var(--az-buy);
  border-color: var(--az-buy-border);
  color: #0f1111;
}
.az-btn-buy:hover { background: #fa8900; }
.az-btn-ghost {
  background: #fff;
  border-color: var(--az-border);
  color: var(--az-text);
  border-radius: 8px;
}
.az-btn-ghost:hover { background: #f7fafa; }
.az-secure {
  font-size: 0.75rem;
  color: var(--az-link);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.az-fulfill {
  font-size: 0.75rem;
  color: var(--az-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
  border-top: 1px solid var(--az-border);
  padding-top: 0.65rem;
}

/* Variations Amazon-style */
.az-var { margin: 0.85rem 0; }
.az-var-label { font-size: 0.875rem; margin-bottom: 0.35rem; }
.az-var-label b { font-weight: 700; }
.az-var-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.az-var-chip {
  border: 1px solid #888c8c;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  background: #fff;
  cursor: pointer;
  color: var(--az-text);
}
.az-var-chip.is-active {
  border-color: #e77600;
  box-shadow: 0 0 0 1px #e77600;
  background: #fffaf0;
}
.az-var-img {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 4px;
  overflow: hidden;
}
.az-var-img img { width: 100%; height: 100%; object-fit: contain; }

/* Rails / reviews in light theme */
.az-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.az-card {
  flex: 0 0 160px;
  border: 1px solid var(--az-border);
  border-radius: 4px;
  padding: 0.55rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.az-card:hover { border-color: #e77600; }
.az-card-img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  margin-bottom: 0.4rem;
}
.az-card-img img { max-width: 100%; max-height: 120px; object-fit: contain; }
.az-card-title {
  font-size: 0.8rem;
  color: var(--az-link);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.az-card-title:hover { color: #c45500; }
.az-card-price { color: var(--az-price); font-size: 0.9rem; margin-top: 0.25rem; }

.az-review-score { font-size: 2rem; font-weight: 400; color: var(--az-text); }
.az-bar-track {
  flex: 1;
  height: 8px;
  background: #f0f2f2;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e3e6e6;
}
.az-bar-fill {
  height: 100%;
  background: var(--az-star);
  border-radius: 4px;
}
.az-review-article {
  border-top: 1px solid var(--az-border);
  padding: 0.85rem 0;
}
.az-review-article h4 { margin: 0.25rem 0; font-size: 0.9rem; }
.az-verified { color: #c45500; font-size: 0.75rem; font-weight: 600; }

.az-below { margin-top: 1.5rem; }

@media (max-width: 700px) {
  .az-trust { flex-direction: column; align-items: flex-start; }
  #pdp-reviews > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
