/* متجر صايع بحر — store-lite (mobile-first · محمي) */

body.store-lite-page {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.store-protected {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.sl-hero-pro {
  position: relative;
  padding: 1.5rem 0 1rem;
  text-align: center;
  overflow: hidden;
}

.sl-hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 200px;
  background: radial-gradient(circle, var(--hl-accent-a12), transparent 70%);
  pointer-events: none;
}

.sl-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.88rem;
  color: var(--hl-muted);
}

.sl-hero-stats strong { color: var(--hl-gold); font-size: 1.1rem; }

.store-tabs-wrap {
  position: sticky;
  top: var(--hl-header);
  z-index: 50;
  margin: 0 -1rem 1.25rem;
  padding: 0.5rem 0;
  background: var(--hl-overlay);
  border-block: 1px solid var(--hl-border);
  backdrop-filter: var(--pg-glass-blur);
  -webkit-backdrop-filter: var(--pg-glass-blur);
}

.store-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.store-tabs::-webkit-scrollbar { display: none; }

.store-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  color: var(--hl-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.store-tab.is-active,
.store-tab:hover {
  color: var(--hl-gold);
  border-color: var(--hl-accent-a45);
  background: var(--hl-accent-a08);
}

.store-tab-count {
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.store-auth-copy strong { display: block; font-size: 0.95rem; }
.store-auth-copy p { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--hl-muted); }

.store-user-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.store-user-pill small { display: block; font-size: 0.75rem; color: var(--hl-muted); }

.store-copyright-notice {
  text-align: center;
  font-size: 0.72rem;
  color: var(--hl-muted);
  padding: 1rem 0.5rem 2rem;
  border-top: 1px solid var(--hl-border);
  line-height: 1.6;
}

/* ── صور محمية — لا img مباشر ── */
.store-img-protect {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(253, 224, 71, 0.15);
}

.store-img-visual {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  filter: blur(9px) saturate(0.75);
  transform: scale(1.12);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.store-card:hover .store-img-visual,
.store-card:focus-within .store-img-visual,
.store-card.is-revealed .store-img-visual {
  filter: blur(0) saturate(1);
  transform: scale(1);
}

.store-img-protect::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    -42deg,
    transparent 0 14px,
    rgba(253, 224, 71, 0.045) 14px 28px
  );
}

.store-img-diag {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.store-img-diag span {
  transform: rotate(-32deg);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  user-select: none;
}

.store-img-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: default;
}

.store-img-watermark {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  padding: 3px 4px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.store-offer-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.78rem;
  color: #fca5a5;
}

.store-offer-countdown-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--hl-gold);
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  .store-img-visual {
    filter: blur(0) saturate(1);
    transform: none;
    transition: none;
  }
}

.store-card {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.store-card.is-popular {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(165deg, rgba(234, 179, 8, 0.06), var(--hl-surface));
}

.store-price small {
  font-size: 0.65em;
  font-weight: 600;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
  }

  .sl-why { grid-template-columns: repeat(4, 1fr); }

  .store-tabs-wrap { margin-inline: 0; border-radius: var(--hl-radius); }
}

@media (min-width: 1024px) {
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}


.sl-hero {
  padding: 1.25rem 0 0.75rem;
  text-align: center;
}

.sl-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--hl-cyan);
  font-size: 0.82rem;
  font-weight: 600;
}

.sl-hero h1 { font-size: clamp(1.6rem, 6vw, 2.35rem); font-weight: 800; margin-bottom: 0.5rem; }
.sl-hero h1 em { font-style: normal; color: var(--hl-gold); }

.sl-hero p { color: var(--hl-muted); font-size: 0.95rem; max-width: 34rem; margin: 0 auto 0.85rem; }

.sl-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.78rem;
  color: var(--hl-muted);
}

.sl-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 1rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

.store-auth-hint { font-size: 0.88rem; color: var(--hl-muted); margin: 0; }

.store-user-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.store-success {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--hl-radius);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.store-success-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.store-success-inner strong { display: block; }
.store-success-inner p { font-size: 0.88rem; color: var(--hl-muted); margin: 0; }

.sl-flash {
  text-align: center;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--hl-radius);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  font-size: 0.88rem;
  color: var(--hl-gold);
}

.store-main { padding-bottom: 1.5rem; }

.store-section { margin-bottom: 2rem; }

.store-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.store-section-icon { font-size: 1.75rem; line-height: 1; }

.store-section-head h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.15rem; }
.store-section-head p { font-size: 0.88rem; color: var(--hl-muted); margin: 0; }

.offers-hot-badge {
  margin-inline-start: auto;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-weight: 700;
}

.store-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}

.store-vip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

.store-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.store-card.is-popular { border-color: rgba(234, 179, 8, 0.45); }

.store-card.is-buy-highlight {
  border-color: var(--hl-gold);
  box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.35);
}

.store-card-img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto; }

.store-card-emoji { font-size: 2rem; text-align: center; }

.store-card-title { font-size: 0.95rem; font-weight: 800; margin: 0; text-align: center; }

.store-card-reward { font-size: 0.82rem; color: #86efac; text-align: center; font-weight: 600; }

.store-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.store-tag, .store-bonus, .store-popular {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--hl-cyan);
}

.store-popular { background: rgba(234, 179, 8, 0.15); color: var(--hl-gold); }

.store-perks {
  list-style: none;
  font-size: 0.78rem;
  color: var(--hl-muted);
  padding: 0;
  margin: 0.25rem 0 0;
}

.store-perks li { padding: 0.1rem 0; }

.store-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  align-items: stretch;
}

.store-price { font-size: 1.1rem; font-weight: 800; color: var(--hl-gold); text-align: center; }

.store-card-skeleton { min-height: 180px; opacity: 0.5; }
.store-skel-block {
  height: 120px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-sm { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn-primary, .btn-gold {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  color: #1c1917;
}

.btn-outline {
  background: transparent;
  color: var(--hl-text);
  border: 1px solid var(--hl-border);
}

.sl-why {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.sl-why-card {
  padding: 0.85rem;
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  font-size: 0.88rem;
}

.sl-why-card strong { display: block; margin-bottom: 0.2rem; }
.sl-why-card p { color: var(--hl-muted); margin: 0; font-size: 0.82rem; }

.vip-table-wrap { margin-top: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.vip-table-title { font-size: 1rem; margin-bottom: 0.65rem; }

.vip-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.vip-table th, .vip-table td {
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--hl-border);
  text-align: center;
}

.vip-table th { background: var(--hl-surface); font-weight: 700; }
.vip-table td:first-child { text-align: start; font-weight: 600; }
.vip-table .is-popular { background: rgba(234, 179, 8, 0.08); }

.sl-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--hl-muted);
  border-top: 1px solid var(--hl-border);
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.auth-modal[hidden] { display: none !important; }

.auth-modal.is-open { opacity: 1; visibility: visible; }

.auth-modal-panel {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem;
  border-radius: var(--hl-radius) var(--hl-radius) 0 0;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

@media (min-width: 480px) {
  .auth-modal { align-items: center; }
  .auth-modal-panel { border-radius: var(--hl-radius); }
}

.auth-modal-close {
  float: left;
  border: none;
  background: transparent;
  color: var(--hl-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.auth-modal-header { text-align: center; margin-bottom: 1rem; clear: both; }
.auth-modal-icon { font-size: 2rem; display: block; margin-bottom: 0.35rem; }
.auth-modal-header h2 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.auth-modal-header p { font-size: 0.88rem; color: var(--hl-muted); }

.btn-google {
  width: 100%;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--hl-border);
  margin-bottom: 0.75rem;
}

.auth-google-g {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
}

.auth-divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--hl-muted);
  margin: 0.75rem 0;
}

.auth-divider span {
  background: var(--hl-surface);
  padding: 0 0.5rem;
}

.auth-field { margin-bottom: 0.65rem; }
.auth-field label { display: block; font-size: 0.82rem; margin-bottom: 0.25rem; color: var(--hl-muted); }

.auth-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--hl-border);
  background: var(--hl-bg);
  color: var(--hl-text);
  font-family: inherit;
  font-size: 1rem;
}

.auth-msg { font-size: 0.85rem; min-height: 1.2em; margin: 0.35rem 0; color: #fca5a5; }
.auth-switch { font-size: 0.82rem; text-align: center; margin-top: 0.75rem; }
.auth-note { font-size: 0.78rem; color: var(--hl-muted); text-align: center; margin-top: 0.5rem; }

.store-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 300;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  font-size: 0.88rem;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: min(90vw, 360px);
  text-align: center;
}

.store-toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.store-toast.is-ok { border-color: rgba(34, 197, 94, 0.5); }
.store-toast.is-warn { border-color: rgba(234, 179, 8, 0.5); }
.store-toast.is-err { border-color: rgba(239, 68, 68, 0.5); }

@media (min-width: 768px) {
  .sl-why { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal { transition: none; }
  .store-toast { transition: none; }
}
