:root {
  --ap-bg: #050505;
  --ap-surface: #101010;
  --ap-card: #171717;
  --ap-border: #2b2b2b;
  --ap-gold: #ffe600;
  --ap-gold-dark: #c7aa00;
  --ap-text: #ffffff;
  --ap-muted: #a6a6a6;
  --ap-danger: #ff5b32;
  --ap-radius: 12px;
  --ap-content: 1180px;
  --ap-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ap-bg); color: var(--ap-text); font-family: var(--ap-font); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ap-content-width { width: min(calc(100% - 32px), var(--ap-content)); margin-inline: auto; }
.ap-page-space { padding-block: 48px; }

.ap-site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,5,5,.96); border-bottom: 1px solid var(--ap-border); backdrop-filter: blur(10px); }
.ap-site-header-inner { width: min(calc(100% - 32px), var(--ap-content)); min-height: 64px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ap-site-brand { display: flex; gap: 10px; align-items: center; color: var(--ap-text); text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.ap-site-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; border: 1px solid rgba(255,230,0,.45); background: #000; }
.ap-site-menu, .ap-footer-menu { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; }
.ap-site-menu a, .ap-footer-menu a { text-decoration: none; color: var(--ap-muted); font-size: 14px; font-weight: 700; }
.ap-site-menu a:hover, .ap-site-menu .current-menu-item > a, .ap-footer-menu a:hover { color: var(--ap-gold); }
.ap-menu-toggle { display: none; border: 1px solid var(--ap-border); background: var(--ap-card); color: var(--ap-text); border-radius: 8px; padding: 6px 10px; font-size: 20px; cursor: pointer; }

.ap-site-footer { border-top: 1px solid var(--ap-border); background: #090909; color: var(--ap-muted); }
.ap-site-footer-inner { width: min(calc(100% - 32px), var(--ap-content)); margin-inline: auto; display: flex; justify-content: space-between; gap: 24px; padding: 30px 0; }
.ap-site-footer p { margin: 6px 0 0; max-width: 560px; }
.ap-site-footer-bottom { border-top: 1px solid var(--ap-border); padding: 14px 16px; text-align: center; font-size: 13px; }

.ap-catalog-shell { max-width: 1180px; margin: 20px auto; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 18px; overflow: hidden; }
.ap-store-profile { position: relative; isolation: isolate; display: grid; gap: 18px; padding: 18px; background: var(--ap-header-background) center/cover; }
.ap-store-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(0,0,0,.98), rgba(0,0,0,.84) 58%, rgba(255,230,0,.12)); }
.ap-store-topbar, .ap-store-profile-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-back-link { color: #fff; text-decoration: none; font-size: 24px; font-weight: 800; }
.ap-outline-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ap-gold); color: var(--ap-gold); padding: 7px 13px; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 800; transition: .2s; }
.ap-outline-button:hover { background: rgba(255,230,0,.12); }
.ap-store-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ap-store-avatar-wrap { position: relative; width: 70px; height: 70px; flex: 0 0 auto; }
.ap-store-avatar { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; border: 2px solid var(--ap-gold); background: #000; }
.ap-store-badge { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 7px; border-radius: 5px; background: #d0011b; color: #fff; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.ap-store-name { margin: 0; color: #fff; font-size: clamp(17px, 4vw, 23px); }
.ap-store-username { margin: 2px 0 0; color: #c5c5c5; font-size: 13px; }
.ap-store-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,230,0,.12); background: rgba(255,255,255,.055); border-radius: 10px; padding: 10px; }
.ap-stat-item { display: grid; gap: 2px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.ap-stat-item:last-child { border-right: 0; }
.ap-stat-item strong { color: var(--ap-gold); font-size: 15px; }
.ap-stat-item span { color: #cecece; font-size: 11px; }

.ap-slider-section { background: #000; padding-bottom: 8px; }
.ap-slider { position: relative; overflow: hidden; }
.ap-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.ap-slider-track::-webkit-scrollbar { display: none; }
.ap-slide { position: relative; flex: 0 0 100%; aspect-ratio: 21 / 9; scroll-snap-align: start; background: #000; }
.ap-slide-media { width: 100%; height: 100%; object-fit: cover; }
.ap-slide-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px; background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.18) 70%, transparent); }
.ap-slide-content h2 { margin: 0; color: var(--ap-gold); font-size: clamp(21px, 4vw, 38px); line-height: 1.1; text-transform: uppercase; font-style: italic; }
.ap-slide-content p { max-width: 520px; margin: 6px 0 12px; color: #fff; }
.ap-slide-button, .ap-primary-button { display: inline-flex; padding: 8px 13px; border-radius: 7px; background: var(--ap-gold); color: #000; text-decoration: none; font-size: 13px; font-weight: 900; }
.ap-slide-button:hover, .ap-primary-button:hover { background: var(--ap-gold-dark); }
.ap-slider-dots { position: absolute; right: 0; bottom: 14px; left: 0; display: flex; justify-content: center; gap: 7px; }
.ap-slider-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.ap-slider-dot.is-active { width: 23px; background: var(--ap-gold); }

.ap-catalog-section { padding: 16px; }
.ap-search-row { position: sticky; top: 74px; z-index: 20; display: flex; gap: 8px; padding-bottom: 10px; background: var(--ap-surface); }
.ap-search-row input { flex: 1; min-width: 0; border: 1px solid var(--ap-border); border-radius: 9px; background: var(--ap-card); color: #fff; padding: 12px 14px; outline: none; font: inherit; }
.ap-search-row input:focus { border-color: var(--ap-gold); }
.ap-search-row button { border: 0; border-radius: 9px; background: var(--ap-gold); padding: 0 16px; cursor: pointer; }
.ap-category-pills { display: flex; gap: 8px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; }
.ap-category-pills::-webkit-scrollbar { display: none; }
.ap-category-pill { flex: 0 0 auto; border: 1px solid var(--ap-border); border-radius: 999px; background: var(--ap-card); color: var(--ap-muted); padding: 8px 15px; cursor: pointer; font-size: 13px; font-weight: 800; }
.ap-category-pill:hover { color: #fff; border-color: var(--ap-gold); }
.ap-category-pill.is-active { border-color: var(--ap-gold); background: var(--ap-gold); color: #000; }
.ap-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.ap-section-heading h2 { margin: 0; color: var(--ap-gold); font-size: 16px; letter-spacing: .4px; text-transform: uppercase; }
.ap-section-heading a { color: var(--ap-muted); text-decoration: none; font-size: 13px; }
.ap-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ap-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--ap-border); border-radius: 9px; background: var(--ap-card); transition: transform .2s, border-color .2s; }
.ap-product-card:hover { border-color: rgba(255,230,0,.5); transform: translateY(-3px); }
.ap-product-card-main { display: flex; flex: 1; flex-direction: column; text-decoration: none; }
.ap-product-image-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #050505; }
.ap-product-image { width: 100%; height: 100%; object-fit: contain; }
.ap-promo-badge { position: absolute; bottom: 0; left: 0; max-width: 100%; border-radius: 0 7px 0 0; background: linear-gradient(90deg, #ff3b00, #ff8500); color: #fff; padding: 3px 7px; font-size: 10px; font-weight: 900; }
.ap-product-body { display: grid; flex: 1; gap: 8px; padding: 10px 9px; }
.ap-product-name { margin: 0; min-height: 36px; overflow: hidden; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ap-product-price { align-self: end; color: var(--ap-gold); font-size: 16px; font-weight: 900; }
.ap-product-price del { color: var(--ap-muted); font-size: 11px; font-weight: 500; }
.ap-product-price ins { color: var(--ap-gold); text-decoration: none; }
.ap-product-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--ap-muted); font-size: 11px; }
.ap-product-meta span:first-child { color: var(--ap-gold); }
.ap-marketplace-actions { display: flex; border-top: 1px solid var(--ap-border); background: #1e1e1e; }
.ap-marketplace-link { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 38px; border-right: 1px solid var(--ap-border); }
.ap-marketplace-link:last-child { border-right: 0; }
.ap-marketplace-link:hover { background: #282828; }
.ap-marketplace-link img { width: 18px; height: 18px; object-fit: contain; }
.ap-empty-state { padding: 38px 10px; color: var(--ap-muted); text-align: center; }
.ap-notice { margin: 24px 16px; border: 1px solid rgba(255,230,0,.35); border-radius: 10px; padding: 20px; background: #151515; }

.ap-top-products { margin-top: 16px; border-top: 8px solid #000; padding: 10px 16px 24px; }
.ap-section-heading-center { justify-content: center; }
.ap-top-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap-top-product-item { display: flex; gap: 13px; align-items: center; border: 1px solid var(--ap-border); border-radius: 9px; background: var(--ap-card); padding: 12px; text-decoration: none; transition: .2s; }
.ap-top-product-item:hover { border-color: rgba(255,230,0,.55); transform: translateY(-2px); }
.ap-top-product-item img { width: 92px; aspect-ratio: 3 / 4; object-fit: contain; border: 1px solid var(--ap-border); border-radius: 6px; background: #050505; }
.ap-top-product-item strong, .ap-top-price { color: var(--ap-gold); }
.ap-top-product-item h3 { margin: 3px 0 4px; color: #fff; font-size: 14px; line-height: 1.4; }
.ap-top-product-item span { color: var(--ap-muted); font-size: 12px; }

.ap-woocommerce-content { color: #111; background: #fff; border-radius: 14px; margin-block: 34px; padding: 24px; }
.ap-woocommerce-content a { color: #252525; }

@media (max-width: 760px) {
  .ap-site-header-inner { min-height: 58px; }
  .ap-menu-toggle { display: block; }
  .ap-primary-navigation { display: none; position: absolute; top: 58px; right: 0; left: 0; border-bottom: 1px solid var(--ap-border); background: rgba(5,5,5,.98); padding: 13px 16px; }
  .ap-primary-navigation.is-open { display: block; }
  .ap-site-menu { flex-direction: column; align-items: flex-start; gap: 11px; }
  .ap-site-footer-inner { flex-direction: column; }
  .ap-footer-menu { flex-wrap: wrap; }
  .ap-catalog-shell { margin: 0 auto; border-width: 0; border-radius: 0; }
  .ap-store-profile { padding: 15px; }
  .ap-store-avatar-wrap { width: 64px; height: 64px; }
  .ap-store-profile-row > .ap-outline-button { padding: 6px 9px; font-size: 11px; }
  .ap-stat-item strong { font-size: 13px; }
  .ap-stat-item span { font-size: 10px; }
  .ap-slide { aspect-ratio: 16 / 9; }
  .ap-slide-content { padding: 20px; }
  .ap-slide-content p { margin: 4px 0 10px; font-size: 13px; }
  .ap-slide-button { padding: 6px 10px; font-size: 12px; }
  .ap-catalog-section { padding: 12px 8px; }
  .ap-search-row { top: 66px; padding-inline: 0; }
  .ap-category-pills { padding-inline: 0; }
  .ap-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ap-product-name { font-size: 12px; }
  .ap-product-price { font-size: 15px; }
  .ap-top-products { padding-inline: 8px; }
  .ap-top-product-list { grid-template-columns: 1fr; }
}
