/* ============================================================
   PROMPT MARKET — DARK PREMIUM
   Реф: Iconific (тёмная тема, glassmorphism, категории)
        Awwwards (тонкие бордеры, скругления 8-12px)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg:          #0b0b0f;
  --bg-2:        #111117;
  --bg-3:        #17171f;
  --bg-4:        #1e1e28;
  --bg-card:     #13131b;
  --bg-hover:    #1a1a24;

  /* Borders — thin, visible but subtle (ref2 style) */
  --border:      rgba(255,255,255,.06);
  --border-hi:   rgba(255,255,255,.10);
  --border-focus:#8b5cf6;

  /* Text */
  --text:        #f0f0f5;
  --text-2:      #8b8b9e;
  --text-3:      #55556a;

  /* Accent — purple */
  --purple:      #8b5cf6;
  --purple-hi:   #a78bfa;
  --purple-lo:   #7c3aed;
  --purple-g:    rgba(139,92,246,.15);
  --purple-g2:   rgba(139,92,246,.06);

  /* Status */
  --green:       #34d399;
  --red:         #f87171;
  --yellow:      #fbbf24;

  /* Glass */
  --glass:       rgba(255,255,255,.03);
  --glass-border:rgba(255,255,255,.07);
  --glass-blur:  16px;

  /* Radius — ref2: 8-12px buttons, 4-6px filters, 12px search */
  --r-xs:        4px;
  --r-sm:        6px;
  --r:           8px;
  --r-md:        10px;
  --r-lg:        12px;
  --r-xl:        16px;
  --r-2xl:       20px;
  --r-full:      9999px;

  /* Layout */
  --hdr:         60px;
  --max:         1200px;
  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.pm-hero {
width: 1200px;
    height: 423px;
    display: flex;
    position: relative;
    margin: 0 auto;
}

.hero-banner-img {
  background-image: url("../images/banner.png");
  width: 100%;
  height: 100%;
  background-size: contain;
  border-radius: 20px;
}

.pm-main {
  margin-top: 80px;
}

a { color: var(--purple-hi); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }
::selection { background: var(--purple); color: #fff; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Buttons ───────────────────────────────────────────── */
.pm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0;
  text-transform: none; font-family: inherit;
  transition: all .2s var(--ease); position: relative; overflow: hidden;
  white-space: nowrap;
}
.pm-btn-primary {
  background: var(--purple); color: #fff; border-color: var(--purple);
}
.pm-btn-primary:hover {
  background: var(--purple-lo); border-color: var(--purple-lo); color: #fff;
  box-shadow: 0 0 0 1px var(--purple), 0 8px 32px var(--purple-g);
  transform: translateY(-1px);
}
.pm-btn-outline {
  background: transparent; color: var(--text-2);
  border-color: var(--border-hi);
}
.pm-btn-outline:hover { border-color: var(--text-3); color: var(--text); background: var(--glass); }
.pm-btn-lg { padding: 14px 32px; font-size: 14px; border-radius: var(--r-lg); }
.pm-btn-full { width: 100%; }

.pm-btn-icon {
  width: 38px; height: 38px; border-radius: var(--r);
  border: 1px solid var(--border-hi); background: var(--glass);
  color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease); backdrop-filter: blur(var(--glass-blur));
}
.pm-btn-icon:hover { border-color: var(--purple); color: var(--purple-hi); background: var(--purple-g); }
.pm-btn-icon-lg { width: 44px; height: 44px; border-radius: var(--r-md); }

/* ── Badges ────────────────────────────────────────────── */
.pm-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--purple); color: #fff; font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.pm-badge:empty { display: none; }
.pm-badge-free {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: #0b0b0f;
  padding: 4px 10px; border-radius: var(--r);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
}

/* ── Layout ────────────────────────────────────────────── */
.pm-section { padding: 64px 20px; }
.pm-section-inner { max-width: var(--max); margin: 0 auto; }
.pm-page-section { padding: 96px 20px 64px; min-height: 50vh; }
.pm-page-inner { max-width: var(--max); margin: 0 auto; }
.pm-page-title {
  font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pm-page-desc { color: var(--text-2); margin-bottom: 32px; font-size: 14px; }
.pm-empty { text-align: center; color: var(--text-3); padding: 64px 20px; grid-column: 1/-1; font-size: 13px; letter-spacing: .5px; }
.pm-empty-state { text-align: center; padding: 64px 20px; color: var(--text-3); }
.pm-empty-state p { margin-bottom: 16px; font-size: 13px; letter-spacing: .5px; }
.pm-alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 13px; }
.pm-alert-error { background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.15); color: #fca5a5; }

/* ── Header ────────────────────────────────────────────── */
.pm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,11,15,.80); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--hdr);
}
.pm-header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pm-logo {
  font-size: 16px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 2px;
  text-decoration: none; flex-shrink: 0; letter-spacing: -.5px;
}
.pm-logo:hover { color: var(--text); }
.pm-logo-accent { color: var(--purple-hi); }

.pm-nav { display: flex; }
.pm-nav-list { list-style: none; display: flex; gap: 2px; }
.pm-nav-list a {
  color: var(--text-2); font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r);
  transition: all .2s var(--ease);
}
.pm-nav-list a:hover { color: var(--text); background: var(--glass); }

.pm-header-actions { display: flex; align-items: center; gap: 6px; }
.pm-header-btn {
  position: relative; background: none; border: none;
  color: var(--text-2); cursor: pointer; padding: 8px;
  border-radius: var(--r); transition: all .2s var(--ease);
}
.pm-header-btn:hover { color: var(--text); background: var(--glass); }
.pm-header-btn svg { display: block; }

.pm-mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: var(--r);
}
.pm-mobile-menu-btn span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
  transition: all .2s var(--ease);
}

/* ── Popups ───────────────────────────────────────────── */
.pm-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: all .3s var(--ease); backdrop-filter: blur(6px);
}
.pm-popup-overlay.active { opacity: 1; visibility: visible; }

.pm-popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  background: var(--bg-2); border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); z-index: 201;
  width: 420px; max-width: calc(100vw - 32px); max-height: 80vh;
  opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
}
.pm-popup.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.pm-popup-sm { width: 380px; }
.pm-popup-search {
  width: 560px; top: 76px;
  transform: translate(-50%, 0) scale(.95);
  border-radius: var(--r-lg);
}
.pm-popup-search.active { transform: translate(-50%, 0) scale(1); }

.pm-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.pm-popup-header h3 { font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.pm-popup-close {
  background: none; border: none; color: var(--text-3);
  font-size: 20px; cursor: pointer; padding: 4px 8px; line-height: 1;
  transition: color .15s; border-radius: var(--r-sm);
}
.pm-popup-close:hover { color: var(--text); background: var(--glass); }
.pm-popup-body { padding: 16px 24px 24px; overflow-y: auto; flex: 1; }

.pm-mini-cart-empty { text-align: center; color: var(--text-3); padding: 32px 0; font-size: 13px; }

.pm-mini-cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.pm-mini-cart-item:last-child { border-bottom: none; }
.pm-mini-cart-item img { width: 44px; height: 44px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--border); }
.pm-mini-cart-info { flex: 1; min-width: 0; }
.pm-mini-cart-info a { color: var(--text); font-size: 13px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-mini-cart-info a:hover { color: var(--purple-hi); }
.pm-mini-cart-price { color: var(--text-3); font-size: 12px; }
.pm-mini-cart-remove { background: none; border: none; color: var(--text-3); font-size: 16px; cursor: pointer; padding: 4px; border-radius: var(--r-sm); }
.pm-mini-cart-remove:hover { color: var(--red); background: rgba(248,113,113,.08); }

.pm-mini-cart-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border-hi);
  font-size: 13px;
}
.pm-mini-cart-footer strong { color: var(--purple-hi); font-size: 16px; }

/* ── Auth Popup ────────────────────────────────────────── */
.pm-form-group { margin-bottom: 16px; }
.pm-form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); letter-spacing: .2px; }
.pm-form-group input, .pm-form-group select, .pm-form-group textarea {
  width: 100%; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border-hi); border-radius: var(--r);
  color: var(--text); font-size: 13px; font-family: inherit;
  transition: all .2s var(--ease);
}
.pm-form-group input:focus, .pm-form-group select:focus, .pm-form-group textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-g);
}
.pm-form-group small { color: var(--text-3); font-size: 11px; margin-top: 4px; display: block; }
.pm-required { color: var(--red); }
.pm-auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.pm-auth-switch a { color: var(--purple-hi); cursor: pointer; }

/* ── Search Popup ──────────────────────────────────────── */
.pm-search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
}
.pm-search-bar svg { color: var(--text-3); flex-shrink: 0; }
.pm-search-bar input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 14px; font-family: inherit;
}
.pm-search-bar input:focus { outline: none; }
.pm-search-bar input::placeholder { color: var(--text-3); }
.pm-search-bar .pm-popup-close { margin-left: auto; }
.pm-search-hint { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Iconific-style large hero with glassmorphism
   ═══════════════════════════════════════════════════════════ */
.pm-hero-slider-section { padding-top: var(--hdr); }
.pm-hero-swiper { width: 100%; }

.pm-banner {
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.pm-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139,92,246,.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(99,102,241,.08), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168,85,247,.06), transparent);
}
/* Subtle grid pattern */
.pm-banner::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .3; pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.pm-banner-content {
  position: relative; text-align: center; padding: 48px 20px; z-index: 1;
  max-width: 700px;
}
.pm-banner-content h2 {
  font-size: clamp(28px, 5vw, 48px); font-weight: 900;
  margin-bottom: 14px; letter-spacing: -1.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--purple-hi) 50%, var(--text-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pm-banner-content p {
  font-size: 16px; color: var(--text-2); margin-bottom: 28px;
  line-height: 1.6; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* Decorative glassmorphism orbs */
.pm-hero-decor {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.pm-hero-orb {
  position: absolute; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
}
.pm-hero-orb:nth-child(1) { width: 120px; height: 120px; top: 15%; left: 8%; opacity: .5; }
.pm-hero-orb:nth-child(2) { width: 80px; height: 80px; top: 60%; left: 15%; opacity: .3; }
.pm-hero-orb:nth-child(3) { width: 100px; height: 100px; top: 20%; right: 10%; opacity: .4; }
.pm-hero-orb:nth-child(4) { width: 60px; height: 60px; top: 65%; right: 12%; opacity: .3; }

/* Swiper pagination */
.swiper-pagination-bullet { background: var(--text-3) !important; opacity: .25 !important; width: 24px !important; border-radius: 3px !important; height: 3px !important; }
.swiper-pagination-bullet-active { background: var(--purple) !important; opacity: 1 !important; width: 32px !important; }

/* ═══════════════════════════════════════════════════════════
   CATEGORIES SECTION — Iconific-style category cards
   ═══════════════════════════════════════════════════════════ */
.pm-categories-section { padding: 48px 20px 0; }
.pm-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; max-width: var(--max); margin: 0 auto;
}
.pm-category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  cursor: pointer; transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.pm-category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cat-color, var(--purple)), transparent);
  opacity: 0; transition: opacity .25s var(--ease);
}
.pm-category-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.pm-category-card:hover::before { opacity: 1; }

.pm-category-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  background: var(--cat-bg, var(--purple-g));
  border: 1px solid var(--cat-border, rgba(139,92,246,.15));
}
.pm-category-card h3 {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.3;
}
.pm-category-card p {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS GRID — ref2 border style + ref1 dark theme
   ═══════════════════════════════════════════════════════════ */
.pm-section-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.pm-section-header h2 {
  font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--text);
}

.pm-filters { display: flex; gap: 8px; }
.pm-filters select {
  padding: 8px 32px 8px 12px; background: var(--bg-2);
  border: 1px solid var(--border-hi); border-radius: var(--r);
  color: var(--text); font-size: 12px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all .2s var(--ease);
}
.pm-filters select:hover { border-color: var(--text-3); }
.pm-filters select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-g); }

.pm-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.pm-load-more-wrap { text-align: center; margin-top: 40px; }

/* ── Product Card ─────────────────────────────────────── */
.pm-product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .3s var(--ease);
  display: flex; flex-direction: column;
}
.pm-product-card:hover {
  border-color: rgba(139,92,246,.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(139,92,246,.1);
}

.pm-product-thumb {
  display: block; aspect-ratio: 16/10; overflow: hidden;
  position: relative; background: var(--bg-2);
}
.pm-product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease); filter: brightness(.92);
}
.pm-product-card:hover .pm-product-thumb img { transform: scale(1.05); filter: brightness(1); }

.pm-product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }

.pm-product-cat {
  font-size: 11px; font-weight: 600; color: var(--purple-hi);
  letter-spacing: .3px; margin-bottom: 6px; display: inline-block;
}
.pm-product-cat:hover { color: var(--text); }

.pm-product-title {
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
  line-height: 1.4; letter-spacing: -.2px;
}
.pm-product-title a { color: var(--text); }
.pm-product-title a:hover { color: var(--purple-hi); }

.pm-product-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 14px;
}
.pm-product-seller { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.pm-seller-avatar-sm { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.pm-product-rating { display: flex; align-items: center; gap: 4px; }
.pm-stars-sm { color: var(--yellow); font-size: 10px; letter-spacing: 1px; }
.pm-rating-count { color: var(--text-3); font-size: 10px; }

.pm-product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.pm-product-price-block { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pm-price { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.pm-price-old { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.pm-price-discount { font-size: 10px; font-weight: 700; color: var(--green); }
.pm-price-free { font-size: 14px; color: var(--green); font-weight: 700; letter-spacing: .5px; }
.pm-product-actions { display: flex; gap: 6px; }
.pm-in-wishlist { color: var(--red) !important; border-color: rgba(248,113,113,.3) !important; background: rgba(248,113,113,.06) !important; }

/* ═══════════════════════════════════════════════════════════
   MID-PAGE BANNER — CTA section
   ═══════════════════════════════════════════════════════════ */
.pm-mid-banner {
  padding: 0 20px;
}
.pm-mid-banner-inner {
  max-width: var(--max); margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; position: relative; overflow: hidden;
}
.pm-mid-banner-inner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple-g), transparent 70%);
  pointer-events: none;
}
.pm-mid-banner-text { position: relative; z-index: 1; max-width: 500px; }
.pm-mid-banner-text h2 {
  font-size: 24px; font-weight: 800; margin-bottom: 10px;
  letter-spacing: -.5px;
}
.pm-mid-banner-text p {
  color: var(--text-2); font-size: 14px; line-height: 1.7;
}
.pm-mid-banner-action { position: relative; z-index: 1; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION — Accordion
   ═══════════════════════════════════════════════════════════ */
.pm-faq-section { padding: 48px 20px 0; }
.pm-faq-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pm-faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .2s var(--ease);
}
.pm-faq-item:hover { border-color: var(--border-hi); }
.pm-faq-question {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 18px 20px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; transition: color .15s;
}
.pm-faq-question:hover { color: var(--purple-hi); }
.pm-faq-arrow {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform .3s var(--ease); color: var(--text-3);
}
.pm-faq-item.open .pm-faq-arrow { transform: rotate(180deg); color: var(--purple-hi); }
.pm-faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease);
}
.pm-faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--text-2); font-size: 13px; line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   SUPPORT / CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.pm-support-section { padding-bottom: 72px; }
.pm-support-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 56px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.pm-support-block::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple-g), transparent 70%);
  pointer-events: none;
}
.pm-support-content { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.pm-support-content h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.pm-support-content p { color: var(--text-2); margin-bottom: 28px; line-height: 1.7; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT PAGE
   ═══════════════════════════════════════════════════════════ */
.pm-product-page { padding: calc(var(--hdr) + 36px) 20px 64px; }
.pm-product-page-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}

.pm-pp-gallery {
  border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--border);
}
.pm-pp-swiper { height: 100%; }
.pm-pp-swiper img { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.pm-pp-main-image { width: 100%; border-radius: var(--r-xl); object-fit: cover; }

.pm-pp-info { display: flex; flex-direction: column; gap: 14px; }
.pm-pp-category {
  font-size: 11px; font-weight: 600; color: var(--purple-hi);
  letter-spacing: .5px; align-self: flex-start;
  padding: 4px 10px; background: var(--purple-g);
  border-radius: var(--r-full); border: 1px solid rgba(139,92,246,.15);
}
.pm-pp-title { font-size: 26px; font-weight: 900; line-height: 1.2; letter-spacing: -.8px; }

.pm-pp-rating { display: flex; align-items: center; gap: 8px; }
.pm-stars { color: var(--yellow); font-size: 16px; letter-spacing: 2px; }
.pm-pp-rating-text { font-weight: 700; font-size: 13px; }
.pm-pp-reviews-count { color: var(--text-3); font-size: 12px; }

.pm-pp-price { font-size: 30px; font-weight: 900; margin: 4px 0; letter-spacing: -1px; }

.pm-pp-seller {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--r);
}
.pm-seller-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.pm-pp-seller-label { display: block; font-size: 11px; color: var(--text-3); letter-spacing: .3px; }
.pm-pp-seller-name { font-weight: 700; font-size: 13px; color: var(--text); }

.pm-pp-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pm-pp-cart-btn { flex: 1; }
.pm-btn-in-cart {
  background: transparent !important; color: var(--green) !important;
  border-color: rgba(52,211,153,.25) !important;
}
.pm-btn-in-cart:hover {
  background: rgba(52,211,153,.06) !important;
}
.pm-pp-purchased {
  padding: 14px 20px;
  background: rgba(52,211,153,.05); border: 1px solid rgba(52,211,153,.15);
  border-radius: var(--r); color: var(--green); font-weight: 700;
  font-size: 13px; letter-spacing: .3px;
}

.pm-pp-description, .pm-pp-reviews {
  max-width: var(--max); margin: 0 auto;
  padding: 32px 0; border-top: 1px solid var(--border);
}
.pm-pp-description h2, .pm-pp-reviews h2 {
  font-size: 14px; font-weight: 700; letter-spacing: .3px; color: var(--text-2); margin-bottom: 20px;
}
.pm-pp-description-content { color: var(--text-2); line-height: 1.9; font-size: 14px; }
.pm-pp-description-content p { margin-bottom: 16px; }

/* ── Reviews ───────────────────────────────────────────── */
.pm-review-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 28px;
}
.pm-review-form h3 { font-size: 13px; font-weight: 700; letter-spacing: .3px; margin-bottom: 16px; }
.pm-rating-input { display: flex; gap: 4px; margin-bottom: 12px; }
.pm-rating-star { font-size: 24px; color: var(--text-3); cursor: pointer; transition: color .1s; }
.pm-rating-star:hover, .pm-rating-star.active { color: var(--yellow); }
.pm-review-form textarea {
  width: 100%; min-height: 80px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border-hi);
  border-radius: var(--r); color: var(--text);
  font-family: inherit; font-size: 13px; resize: vertical; margin-bottom: 12px;
  transition: all .2s var(--ease);
}
.pm-review-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-g); }
.pm-review-login-hint { color: var(--text-3); margin-bottom: 20px; font-size: 13px; }

.pm-reviews-list { display: flex; flex-direction: column; gap: 10px; }
.pm-review-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
  transition: border-color .15s;
}
.pm-review-item:hover { border-color: var(--border-hi); }
.pm-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pm-review-author { font-weight: 700; font-size: 12px; letter-spacing: .3px; }
.pm-review-stars { color: var(--yellow); letter-spacing: 1px; font-size: 12px; }
.pm-review-date { color: var(--text-3); font-size: 11px; margin-left: auto; }
.pm-review-text { color: var(--text-2); font-size: 13px; line-height: 1.8; }
.pm-review-product-link { color: var(--text-3); font-size: 12px; }
.pm-review-product-link:hover { color: var(--purple-hi); }
.pm-reviews-empty { color: var(--text-3); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════ */
.pm-cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pm-cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .15s;
}
.pm-cart-item:hover { border-color: var(--border-hi); }
.pm-cart-item-thumb { flex-shrink: 0; }
.pm-cart-item-thumb img { width: 60px; height: 60px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--border); }
.pm-cart-item-info { flex: 1; min-width: 0; }
.pm-cart-item-title { color: var(--text); font-weight: 700; font-size: 13px; display: block; }
.pm-cart-item-title:hover { color: var(--purple-hi); }
.pm-cart-item-price { color: var(--text-3); font-size: 12px; display: block; margin-top: 4px; }
.pm-cart-remove { font-size: 20px; }
.pm-cart-remove:hover { color: var(--red) !important; border-color: var(--red) !important; background: rgba(248,113,113,.06) !important; }

.pm-cart-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border-hi);
}
.pm-cart-total { font-size: 14px; color: var(--text-2); letter-spacing: .3px; }
.pm-cart-total strong { color: var(--text); font-size: 22px; letter-spacing: -1px; }

/* ═══════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════ */
.pm-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; margin-top: 24px; }
.pm-checkout-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px;
}
.pm-checkout-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  height: fit-content; position: sticky; top: calc(var(--hdr) + 20px);
}
.pm-checkout-summary h3 { font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--text-2); margin-bottom: 16px; }
.pm-checkout-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.pm-checkout-total { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 8px; font-size: 16px; }
.pm-checkout-total strong { color: var(--purple-hi); }

.pm-success-block {
  text-align: center; padding: 56px 20px;
  background: var(--bg-card); border: 1px solid rgba(52,211,153,.15);
  border-radius: var(--r-xl);
}
.pm-success-block h2 { color: var(--green); margin-bottom: 12px; font-size: 22px; letter-spacing: -.5px; }

/* ═══════════════════════════════════════════════════════════
   ACCOUNT
   ═══════════════════════════════════════════════════════════ */
.pm-account-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.pm-account-avatar {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--purple), var(--purple-lo));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff; flex-shrink: 0;
  border: 1px solid rgba(139,92,246,.3);
}
.pm-account-header h1 { margin-bottom: 0; }
.pm-account-email { color: var(--text-3); font-size: 13px; }

.pm-account-tabs {
  display: flex; gap: 0; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pm-tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-3); padding: 12px 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: .3px;
  transition: all .15s var(--ease);
}
.pm-tab-btn:hover { color: var(--text-2); }
.pm-tab-btn.active { color: var(--purple-hi); border-bottom-color: var(--purple); }

.pm-tab-content { display: none; }
.pm-tab-content.active { display: block; }

.pm-purchases-list { display: flex; flex-direction: column; gap: 8px; }
.pm-purchase-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color .15s;
}
.pm-purchase-item:hover { border-color: var(--border-hi); }
.pm-purchase-info { display: flex; flex-direction: column; gap: 4px; }
.pm-purchase-status { display: inline-block; width: fit-content; padding: 3px 8px; border-radius: var(--r-xs); font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.pm-status-paid { background: rgba(52,211,153,.1); color: var(--green); }
.pm-purchase-title { color: var(--text); font-weight: 700; font-size: 13px; }
.pm-purchase-title:hover { color: var(--purple-hi); }
.pm-purchase-date { color: var(--text-3); font-size: 11px; }
.pm-purchase-price { font-weight: 800; font-size: 15px; flex-shrink: 0; letter-spacing: -.3px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — Volume, 5-column, spacious
   ═══════════════════════════════════════════════════════════ */
.pm-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 64px 20px 24px; margin-top: auto;
}
.pm-footer-inner { max-width: var(--max); margin: 0 auto; }

.pm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.pm-footer-logo { margin-bottom: 14px; }
.pm-footer-desc { color: var(--text-3); font-size: 13px; line-height: 1.8; max-width: 280px; }

.pm-footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  margin-bottom: 16px; color: var(--text-2);
  text-transform: uppercase;
}
.pm-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pm-footer-col a { color: var(--text-3); font-size: 13px; transition: color .15s; }
.pm-footer-col a:hover { color: var(--purple-hi); }

.pm-footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-3);
}
.pm-footer-credit a { color: var(--purple-hi); font-weight: 600; }
.pm-footer-credit a:hover { color: var(--text); }

/* ── Toast ────────────────────────────────────────────── */
.pm-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  padding: 14px 24px; background: var(--bg-3);
  border: 1px solid var(--border-hi); border-radius: var(--r-lg);
  color: var(--text); font-size: 13px; font-weight: 500;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  transform: translateY(16px); opacity: 0;
  transition: all .3s var(--ease); pointer-events: none;
  backdrop-filter: blur(var(--glass-blur));
}
.pm-toast.show { transform: translateY(0); opacity: 1; }

/* ── Swiper Nav ────────────────────────────────────────── */
.swiper-button-next, .swiper-button-prev {
  color: var(--text) !important; background: rgba(11,11,15,.7);
  width: 40px !important; height: 40px !important; border-radius: var(--r) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  transition: all .2s var(--ease);
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(11,11,15,.9); border-color: var(--border-hi); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; font-weight: bold; }

/* ── Skeleton ──────────────────────────────────────────── */
.pm-skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%; animation: pm-shimmer 1.5s infinite;
  border-radius: var(--r);
}
@keyframes pm-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .pm-nav { display: none; }
  .pm-mobile-menu-btn { display: flex; }
  .pm-nav.open {
    display: flex; position: fixed; top: var(--hdr); left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px 20px; z-index: 99;
    backdrop-filter: blur(24px);
  }
  .pm-nav.open .pm-nav-list { flex-direction: column; gap: 4px; }

  .pm-product-page-inner { grid-template-columns: 1fr; gap: 24px; }
  .pm-checkout-grid { grid-template-columns: 1fr; }
  .pm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pm-footer-bottom { flex-direction: column; text-align: center; }
  .pm-products-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
  .pm-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-faq-grid { grid-template-columns: 1fr; }
  .pm-banner { min-height: 280px; }
  .pm-banner-content { padding: 36px 20px; }
  .pm-mid-banner-inner { flex-direction: column; padding: 36px 24px; text-align: center; }
  .pm-support-block { padding: 36px 20px; }
  .pm-popup { width: calc(100vw - 24px); }
  .pm-popup-search { width: calc(100vw - 24px); }
  .pm-cart-footer { flex-direction: column; gap: 14px; text-align: center; }
  .pm-hero-orb { display: none; }
}
@media (max-width: 480px) {
  .pm-products-grid { grid-template-columns: 1fr 1fr; }
  .pm-footer-grid { grid-template-columns: 1fr; }
  .pm-account-header { flex-direction: column; text-align: center; }
  .pm-account-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pm-tab-btn { white-space: nowrap; }
  .pm-categories-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pm-category-card { padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE — Dark / Light
   ═══════════════════════════════════════════════════════════ */
body:not(.pm-light) .pm-icon-sun  { display: none; }
body.pm-light     .pm-icon-moon { display: none; }

body.pm-light {
  --bg:          #fafafa;
  --bg-2:        #ffffff;
  --bg-3:        #f5f5f7;
  --bg-4:        #eaeaef;
  --bg-card:     #ffffff;
  --bg-hover:    #f0f0f5;
  --border:      rgba(0,0,0,.06);
  --border-hi:   rgba(0,0,0,.10);
  --border-focus:#8b5cf6;
  --text:        #111118;
  --text-2:      #5a5a70;
  --text-3:      #9999ab;
  --purple:      #7c3aed;
  --purple-hi:   #6d28d9;
  --purple-lo:   #8b5cf6;
  --purple-g:    rgba(124,58,237,.08);
  --purple-g2:   rgba(124,58,237,.04);
  --green:       #059669;
  --red:         #dc2626;
  --yellow:      #d97706;
  --glass:       rgba(0,0,0,.02);
  --glass-border:rgba(0,0,0,.06);
}

body.pm-light .pm-header {
  background: rgba(255,255,255,.80);
}
body.pm-light .pm-banner::after { opacity: .15; }
body.pm-light .pm-product-card { border-color: rgba(0,0,0,.06); }
body.pm-light .pm-product-card:hover { border-color: var(--purple); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
body.pm-light .pm-popup {
  background: #fff; border-color: rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
body.pm-light .pm-popup-search { background: #fff; }
body.pm-light .pm-form-group input,
body.pm-light .pm-form-group select,
body.pm-light .pm-form-group textarea { background: #fff; border-color: rgba(0,0,0,.08); color: #111; }
body.pm-light .pm-review-form,
body.pm-light .pm-review-item,
body.pm-light .pm-cart-item,
body.pm-light .pm-purchase-item,
body.pm-light .pm-checkout-form,
body.pm-light .pm-checkout-summary { background: #f9f9fb; border-color: rgba(0,0,0,.06); }
body.pm-light .pm-pp-seller { background: #f5f5f7; border-color: rgba(0,0,0,.06); }
body.pm-light .pm-success-block { background: #f9f9fb; border-color: rgba(5,150,105,.15); }
body.pm-light .pm-banner { background: #f5f5f7; }
body.pm-light .pm-footer { background: #f5f5f7; border-top-color: rgba(0,0,0,.06); }
body.pm-light .pm-footer-bottom { border-top-color: rgba(0,0,0,.06); }
body.pm-light .pm-toast { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 8px 32px rgba(0,0,0,.1); color: #111; }
body.pm-light .pm-skeleton { background: linear-gradient(90deg, #f0f0f2 25%, #e8e8ec 50%, #f0f0f2 75%); background-size: 200% 100%; animation: pm-shimmer 1.5s infinite; }
body.pm-light ::-webkit-scrollbar-track { background: transparent; }
body.pm-light ::-webkit-scrollbar-thumb { background: #d0d0d8; }
body.pm-light .pm-alert-error { background: rgba(220,38,38,.04); border-color: rgba(220,38,38,.12); }
body.pm-light .pm-category-card { background: #fff; }
body.pm-light .pm-faq-item { background: #fff; }
body.pm-light .pm-mid-banner-inner { background: linear-gradient(135deg, #f5f5f7, #fff); border-color: rgba(0,0,0,.06); }
body.pm-light .pm-support-block { background: #fff; }
body.pm-light .pm-pp-gallery { background: #f5f5f7; border-color: rgba(0,0,0,.06); }
body.pm-light .swiper-button-next,
body.pm-light .swiper-button-prev { background: rgba(255,255,255,.8); border-color: rgba(0,0,0,.08); color: #111 !important; }

/* ── Text Page ─────────────────────────────────────────── */
.pm-text-page .pm-text-content { max-width: 740px; }
.pm-text-page .pm-text-content h2 {
  font-size: 16px; font-weight: 700; letter-spacing: .3px; color: var(--text-2); margin: 40px 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.pm-text-page .pm-text-content h2:first-child { margin-top: 0; }
.pm-text-page .pm-text-content p { color: var(--text-2); font-size: 14px; line-height: 1.9; margin-bottom: 16px; }
.pm-text-page .pm-text-content ul, .pm-text-page .pm-text-content ol {
  color: var(--text-2); font-size: 14px; line-height: 1.9;
  padding-left: 24px; margin-bottom: 16px;
}
.pm-text-page .pm-text-content li { margin-bottom: 8px; }
.pm-text-page .pm-text-content strong { color: var(--text); }
.pm-text-page .pm-text-content a { color: var(--purple-hi); }

/* ── Archive / Taxonomy ────────────────────────────────── */
.pm-archive-header {
  padding-top: calc(var(--hdr) + 24px); padding-bottom: 8px;
  margin-bottom: 8px;
}
.pm-archive-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.pm-archive-desc { color: var(--text-3); font-size: 13px; margin-top: 6px; }