/* Zaryon.pk — premium storefront UI (high visibility) */

:root {
  --pm-primary: #f85606;
  --pm-primary-dark: #d94804;
  --pm-primary-rgb: 248, 86, 6;
  --pm-bg: #f4f6fb;
  --pm-surface: #ffffff;
  --pm-text: #0f172a;
  --pm-muted: #64748b;
  --pm-border: rgba(15, 23, 42, 0.08);
  --pm-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  --pm-radius: 16px;
  --pm-radius-lg: 22px;
}

body {
  background: linear-gradient(180deg, #fff8f4 0%, var(--pm-bg) 120px, var(--pm-bg) 100%) !important;
  -webkit-font-smoothing: antialiased;
}

/* Promo ticker */
.pm-promo-ticker {
  background: linear-gradient(90deg, var(--pm-primary), #ff8c42, var(--pm-primary));
  background-size: 200% 100%;
  animation: pmGradientMove 8s ease infinite;
  color: #fff;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

@keyframes pmGradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.pm-promo-ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: pmTicker 22s linear infinite;
  padding-left: 100%;
}

@keyframes pmTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.pm-promo-ticker-track span {
  flex: 0 0 auto;
}

/* Product cards — Daraz/Amazon-style */
.pm-product-card,
.pm-card-premium {
  border: 1px solid var(--pm-border) !important;
  border-radius: var(--pm-radius) !important;
  background: var(--pm-surface) !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.pm-product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--pm-shadow) !important;
  border-color: rgba(var(--pm-primary-rgb), 0.35) !important;
}

.pm-product-card .pm-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #fafafa, #eef2f7);
  padding: 12px;
}

.pm-product-card .pm-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.pm-fd-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #059669;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}

.pm-hot-pulse {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.pm-product-card .pm-product-title {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  color: var(--pm-text);
}

.pm-product-card .pm-price {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: var(--pm-primary) !important;
}

.pm-product-card .pm-old-price {
  font-size: 0.8rem;
  color: var(--pm-muted);
  text-decoration: line-through;
}

.pm-card-actions .btn-primary {
  background: linear-gradient(135deg, var(--pm-primary), #ff7a2f) !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(var(--pm-primary-rgb), 0.35);
}

.pm-card-actions .btn-outline-primary {
  font-weight: 700 !important;
  border-width: 2px !important;
}

/* Search page */
.pm-search-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #fff, #fff5ef);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.pm-sort-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--pm-muted);
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.pm-sort-pill:hover,
.pm-sort-pill.active {
  background: rgba(var(--pm-primary-rgb), 0.12);
  color: var(--pm-primary);
  border-color: rgba(var(--pm-primary-rgb), 0.25);
}

.pm-trust-strip .pm-trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #a7f3d0;
}

.pm-filter-card {
  border-radius: var(--pm-radius-lg) !important;
  border: 1px solid var(--pm-border) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
  background: #fff !important;
}

.pm-btn-load-more {
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 0.85rem 1.5rem !important;
  min-height: 52px;
  background: #fff !important;
  border: 2px solid var(--pm-primary) !important;
  color: var(--pm-primary) !important;
  transition: all 0.2s ease;
  cursor: pointer !important;
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}

.pm-btn-load-more:hover:not(:disabled) {
  background: var(--pm-primary) !important;
  color: #fff !important;
}

.pm-btn-load-more:disabled {
  opacity: 0.7;
}

/* Navbar */
.pm-nav-green,
.navbar {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
  background: #fff !important;
}

.navbar .btn-primary {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 800;
}

/* Mobile nav */
.pm-mobile-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12) !important;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  gap: 4px;
}

.pm-mobile-nav-item {
  color: var(--pm-muted) !important;
  border-radius: 14px !important;
  padding: 6px 4px !important;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex: 1;
  min-width: 0;
}

.pm-mobile-nav-item:active {
  transform: scale(0.96);
}

.pm-mobile-nav-item.active {
  color: var(--pm-primary) !important;
  background: linear-gradient(180deg, rgba(var(--pm-primary-rgb), 0.16), rgba(var(--pm-primary-rgb), 0.06)) !important;
}

.pm-mobile-nav-item.active .pm-mobile-nav-ico {
  background: var(--pm-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--pm-primary-rgb), 0.35);
}

.pm-mobile-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pm-mobile-nav-txt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Footer */
.pm-footer {
  background: var(--pm-primary) !important;
  color: #fff !important;
  border-top: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pm-footer a.text-white:hover {
  opacity: 0.85;
}

/* WhatsApp float (disabled — removed from engagement_strip) */
.pm-wa-float {
  display: none !important;
  position: fixed;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 1050;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  animation: pmWaPulse 2.5s ease infinite;
}

@keyframes pmWaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.pm-sticky-cart {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 1045;
}

.pm-sticky-cart-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pm-primary), #ff7a2f);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--pm-shadow);
}

.pm-sticky-cart-badge {
  background: #fff;
  color: var(--pm-primary);
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
}

/* Custom toasts */
.pm-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 24px));
}

.pm-toast {
  background: #fff;
  border-radius: 14px;
  padding: 12px 40px 12px 14px;
  box-shadow: var(--pm-shadow);
  border-left: 4px solid var(--pm-primary);
  transform: translateX(120%);
  transition: transform 0.28s ease;
  position: relative;
}

.pm-toast.show { transform: translateX(0); }
.pm-toast-success { border-left-color: #16a34a; }
.pm-toast-danger { border-left-color: #dc2626; }
.pm-toast-warning { border-left-color: #f59e0b; }

.pm-toast-title { font-weight: 800; font-size: 0.85rem; }
.pm-toast-body { font-size: 0.88rem; color: var(--pm-muted); }
.pm-toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--pm-muted);
}

/* Homepage category cards */
.pm-dz-cat-card {
  border-radius: var(--pm-radius) !important;
  background: #fff !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.pm-dz-cat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--pm-shadow) !important;
}

.pm-section-title {
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  font-size: 1.35rem !important;
}

/* Scroll reveal */
.pm-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.pm-reveal.pm-reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* Trust cards row (homepage) */
.pm-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 1rem 0 1.5rem;
}

.pm-trust-compact {
  margin: 0.75rem 0 1rem;
}

.pm-trust-compact .pm-trust-card {
  padding: 0.65rem 0.5rem;
}

.pm-trust-card {
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.pm-trust-card strong {
  display: block;
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.pm-trust-card span {
  font-size: 0.75rem;
  color: var(--pm-muted);
}

@media (max-width: 991.98px) {
  .pm-trust-row { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage spacing */
.pm-home-sections {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pm-hero.pm-hero-full {
  margin-bottom: 0 !important;
}

.pm-home-cats-tight {
  margin: 0 0 4px !important;
  padding-top: 0 !important;
}

.pm-home-block {
  margin-top: 0.5rem !important;
}

.pm-home-flash {
  margin-top: 0.35rem !important;
}

#categories {
  margin-top: 0.5rem !important;
}

.pm-home-sections > section:first-child {
  margin-top: 0 !important;
}

.pm-trust-section {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

@media (min-width: 992px) {
  .pm-home-sections {
    margin-top: 0.5rem !important;
  }
  #categories {
    margin-top: 0.35rem !important;
  }
}

@media (max-width: 991.98px) {
  .pm-hero-inner {
    padding-bottom: 4px !important;
  }
  .pm-mobile-greeting {
    margin-bottom: 2px !important;
  }
  #categories {
    display: none !important;
  }
  .pm-home-flash {
    margin-top: 0 !important;
  }
  .pm-dz-cat.pm-home-cats-tight + section[data-hs-key="flash_sale"],
  .pm-home-cats-tight ~ section[data-hs-key="flash_sale"] {
    margin-top: 0 !important;
  }
}

/* Affiliate engagement banner (search) */
.pm-affiliate-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--pm-radius);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 55%, #fef3c7 100%);
  border: 1px solid rgba(var(--pm-primary-rgb), 0.25);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(var(--pm-primary-rgb), 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pm-affiliate-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--pm-shadow);
  color: inherit;
}

.pm-affiliate-banner-ico {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pm-affiliate-banner-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-affiliate-banner-body strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.pm-affiliate-banner-body span {
  font-size: 0.78rem;
  color: var(--pm-muted);
  line-height: 1.35;
}

.pm-affiliate-banner-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--pm-primary);
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .pm-affiliate-banner {
    flex-wrap: wrap;
  }
  .pm-affiliate-banner-cta {
    width: 100%;
    text-align: right;
  }
}

/* About page */
.pm-about-hero {
  border-radius: var(--pm-radius-lg);
  background: linear-gradient(135deg, var(--pm-primary) 0%, #ff8a4c 50%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
}

.pm-about-hero-inner {
  padding: 2rem 1.5rem;
}

.pm-about-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pm-about-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.pm-about-lead {
  margin: 0;
  max-width: 52ch;
  opacity: 0.95;
  font-size: 1.05rem;
}

.pm-about-card {
  border: none;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.pm-ceo-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--pm-radius);
  background: linear-gradient(135deg, rgba(var(--pm-primary-rgb), 0.08), rgba(15, 23, 42, 0.04));
  border: 1px solid var(--pm-border);
}

.pm-ceo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pm-primary), #ff8a4c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(var(--pm-primary-rgb), 0.35);
}

.pm-ceo-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pm-primary);
}

.pm-ceo-name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pm-ceo-title {
  font-weight: 700;
  color: var(--pm-muted);
  margin-bottom: 10px;
}

.pm-ceo-quote {
  font-style: italic;
  color: #334155;
  line-height: 1.55;
}

.pm-about-pillar {
  padding: 16px;
  border-radius: var(--pm-radius);
  border: 1px solid var(--pm-border);
  background: #fff;
}

.pm-about-pillar-ico {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* Mobile profile */
.pm-profile-page {
  padding-bottom: 8px;
}

.pm-profile-mobile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--pm-radius);
  background: linear-gradient(135deg, var(--pm-primary), #ff8a4c);
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(var(--pm-primary-rgb), 0.25);
}

.pm-profile-mobile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pm-profile-mobile-name {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}

.pm-profile-mobile-email {
  font-size: 0.82rem;
  opacity: 0.9;
}

.pm-profile-mobile-points {
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
}

.pm-profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pm-profile-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--pm-border);
  text-decoration: none;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  min-height: 76px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pm-profile-quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: var(--pm-primary);
}

.pm-profile-quick-affiliate {
  background: linear-gradient(180deg, #fff7ed, #fff);
  border-color: rgba(var(--pm-primary-rgb), 0.35);
}

.pm-profile-quick-ico {
  font-size: 1.25rem;
  line-height: 1;
}

.pm-profile-affiliate-card {
  padding: 14px;
  border-radius: var(--pm-radius);
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid rgba(var(--pm-primary-rgb), 0.25);
}

.pm-profile-ref-code {
  font-size: 1rem;
  font-weight: 900;
  color: var(--pm-primary);
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.pm-profile-form-card {
  border: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
  .pm-profile-quick-grid {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .pm-ceo-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pm-card-actions { flex-direction: column; }
  .pm-card-actions .btn { width: 100%; }
  .pm-wa-float { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 10px 14px; }
  .pm-wa-float-txt { display: none; }
}
