/* =========================================================
   Alter Pixel Store — main.css
   Global components, layout, utilities
   ========================================================= */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background-color: var(--ap-bg);
    background-image: radial-gradient(circle, rgba(205, 53, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--ap-text);
    font-family: var(--ap-font-body);
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-secondary); text-decoration: none; transition: var(--ap-transition); }
a:hover { color: var(--ap-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ap-font-display); font-weight: 800; line-height: 1.15; color: var(--ap-text); letter-spacing: -0.01em; }

/* ── Skip link ───────────────────────────────────────────── */
.ap-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: .5rem 1rem;
    background: var(--ap-accent);
    color: #000;
    border-radius: var(--ap-radius);
    font-weight: 600;
    transition: top .15s;
}
.ap-skip-link:focus { top: 1rem; color: #000; }

/* ── Screen reader utility ───────────────────────────────── */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ── Container ───────────────────────────────────────────── */
.ap-container {
    max-width: var(--ap-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-display);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1;
    transition: var(--ap-transition);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.ap-btn:focus-visible { outline: 2px solid var(--ap-secondary); outline-offset: 3px; }

.ap-btn--accent {
    background: var(--ap-accent);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 0 0 0 var(--ap-accent-glow);
}
.ap-btn--accent:hover {
    background: var(--ap-secondary);
    color: #000000;
    box-shadow: 0 0 25px var(--ap-accent-glow-strong), 0 0 0 1px var(--ap-accent);
    transform: translateY(-2px);
}
.ap-btn--accent:active { transform: translateY(-0.5px); }

.ap-btn--outline {
    background: transparent;
    color: var(--ap-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.ap-btn--outline:hover {
    border-color: var(--ap-secondary);
    color: var(--ap-text);
    background: var(--ap-secondary-glow);
    transform: translateY(-2px);
    box-shadow: var(--ap-shadow-accent);
}
.ap-btn--outline:active { transform: translateY(-0.5px); }

.ap-btn--ghost {
    background: transparent;
    color: var(--ap-secondary);
    border: 1px solid transparent;
}
.ap-btn--ghost:hover { border-color: var(--ap-border); background: var(--ap-secondary-glow); color: var(--ap-text); }

.ap-btn--sm  { padding: .5rem 1rem; font-size: .875rem; }
.ap-btn--lg  { padding: 1rem 2rem;  font-size: 1.0625rem; }
.ap-btn--full { width: 100%; justify-content: center; }

/* ── Badges ──────────────────────────────────────────────── */
.ap-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .625rem;
    border-radius: var(--ap-radius-full);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.ap-badge--sale     { background: rgba(239,68,68,.15);  color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.ap-badge--new      { background: rgba(34,197,94,.15);  color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.ap-badge--featured { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.ap-badge--accent   { background: var(--ap-accent-glow); color: var(--ap-accent); border: 1px solid var(--ap-border-accent); }

/* ── Tags ────────────────────────────────────────────────── */
.ap-tag {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: var(--ap-radius-full);
    background: var(--ap-surface);
    color: var(--ap-text-muted);
    font-size: .8125rem;
    border: 1px solid var(--ap-border);
    transition: var(--ap-transition);
}
.ap-tag:hover { border-color: var(--ap-secondary); color: var(--ap-secondary); background: var(--ap-secondary-glow); }

/* ── Icons ───────────────────────────────────────────────── */
.ap-icon { flex-shrink: 0; }

/* ── Stars ───────────────────────────────────────────────── */
.ap-stars { display: inline-flex; align-items: center; gap: .125rem; font-size: 1rem; }
.ap-star--full { color: #f59e0b; }
.ap-star--half { color: #f59e0b; opacity: .6; }
.ap-star--empty { color: var(--ap-text-subtle); }
.ap-stars__count { margin-left: .35rem; font-size: .8125rem; color: var(--ap-text-muted); }

/* ── Site wrapper ────────────────────────────────────────── */
.ap-site { display: flex; flex-direction: column; min-height: 100vh; }
.ap-content { flex: 1; }

/* =========================================================
   HEADER
   ========================================================= */
.ap-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--ap-header-h);
    background: rgba(11, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ap-border);
    transition: backdrop-filter .3s, background .3s, border-color .3s;
}
.ap-header.ap-header--scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(20, 18, 36, 0.90);
    border-bottom-color: rgba(205, 53, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.ap-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

/* Logo */
.ap-header__logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; text-decoration: none; }
.ap-header__logo img { height: 40px; width: auto; }
.ap-header__logo-text { display: flex; align-items: center; gap: .625rem; }
.ap-header__logo-text span { font-family: var(--ap-font-display); font-weight: 800; font-size: 1.125rem; color: var(--ap-text); }

/* Nav */
.ap-nav { flex: 1; }
.ap-nav__list { display: flex; align-items: center; gap: .25rem; }
.ap-nav__list li a {
    display: block;
    padding: .4rem .75rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    border-radius: var(--ap-radius-sm);
    transition: var(--ap-transition);
}
.ap-nav__list li a:hover,
.ap-nav__list li.current-menu-item a,
.ap-nav__list li.current-page-ancestor a { color: var(--ap-text); background: var(--ap-secondary-glow); box-shadow: inset 0 -2px 0 0 var(--ap-secondary); }

/* Header actions */
.ap-header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.ap-header__icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--ap-radius-sm);
    color: var(--ap-text-muted);
    transition: var(--ap-transition);
    position: relative;
    text-decoration: none;
}
.ap-header__icon-btn:hover { color: var(--ap-text); background: rgba(255,255,255,.08); }

/* Cart count */
.ap-cart-count {
    position: absolute;
    top: 3px; right: 3px;
    min-width: 18px; height: 18px;
    background: var(--ap-accent);
    color: #000;
    border-radius: var(--ap-radius-full);
    font-size: .6875rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 .2rem;
    line-height: 1;
}
.ap-cart-count:empty,
.ap-cart-count[data-empty="true"] { display: none; }

/* Search flyout */
.ap-search-toggle { position: relative; }
.ap-search-flyout {
    position: fixed;            /* fixed so it can't bleed off-screen */
    top: calc(var(--ap-header-h) + .5rem);
    right: 1.5rem;              /* 1.5rem from viewport edge */
    width: min(320px, calc(100vw - 3rem)); /* never wider than viewport */
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: .75rem;
    box-shadow: var(--ap-shadow-lg);
    z-index: 1100;              /* above mobile menu */
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--ap-transition);
    pointer-events: none;
}
.ap-search-flyout:not([hidden]) { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ap-search-flyout__form { display: flex; gap: .5rem; }
.ap-search-flyout__input {
    flex: 1;
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    padding: .5rem .75rem;
    color: var(--ap-text);
    font-size: .9375rem;
    outline: none;
    transition: var(--ap-transition);
}
.ap-search-flyout__input:focus { border-color: var(--ap-accent); }
.ap-search-flyout__submit {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--ap-accent);
    color: #000;
    border-radius: var(--ap-radius-sm);
    flex-shrink: 0;
    transition: var(--ap-transition);
}
.ap-search-flyout__submit:hover { background: var(--ap-accent-dark); }

/* Hamburger */
.ap-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--ap-radius-sm); }
.ap-hamburger__line { display: block; width: 22px; height: 2px; background: var(--ap-text-muted); border-radius: 2px; transition: var(--ap-transition); }
.ap-hamburger:hover .ap-hamburger__line { background: var(--ap-text); }
.ap-hamburger--open .ap-hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ap-hamburger--open .ap-hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ap-hamburger--open .ap-hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu
   Strategy: always display:flex on mobile, visually hidden via transform+visibility.
   Desktop gets display:none via the @media guard below.
   This avoids the display:none→flex transition bug. */
.ap-mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: 0;                        /* inset: 0 shorthand for older engines */
    width: 100%;
    height: 100%;
    z-index: 1001;
    background: #1a1a2e;            /* dark navy fallback */
    background: var(--ap-surface-2, #1e1e1e);
    overflow-y: auto;
    overflow-x: hidden;
    /* hidden state */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                opacity   .3s ease,
                visibility 0s linear .35s;   /* delay visibility so transition plays */
    /* iOS momentum scroll */
    -webkit-overflow-scrolling: touch;
}
.ap-mobile-menu--open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                opacity   .3s ease,
                visibility 0s linear 0s;    /* instant on open */
}
.ap-mobile-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: calc(var(--ap-header-h, 72px) + 1rem) 1.25rem 2rem;
    min-height: 100%;
}
.ap-mobile-menu__close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}
.ap-mobile-menu__close {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--ap-text, #f5f5f5);
    font-size: 1.25rem;
    line-height: 1;
    transition: background .2s, border-color .2s;
}
.ap-mobile-menu__close:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--ap-accent, #00d4ff);
    color: var(--ap-accent, #00d4ff);
}
.ap-mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}
.ap-mobile-menu__list li a {
    display: flex;
    align-items: center;
    padding: 1rem 1rem;
    font-family: var(--ap-font-display, 'Space Grotesk', sans-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ap-text, #f5f5f5);
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    transition: color .2s, background .2s, padding-left .2s;
    border-radius: 0;
}
.ap-mobile-menu__list li:last-child a { border-bottom: none; }
.ap-mobile-menu__list li a:hover,
.ap-mobile-menu__list li.current-menu-item a {
    color: var(--ap-accent, #00d4ff);
    background: rgba(0,212,255,.06);
    padding-left: 1.375rem;
}
.ap-mobile-menu__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
/* Dark backdrop behind the menu */
.ap-mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity .3s;
}
.ap-mobile-menu-backdrop--open { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.ap-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ap-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
}
.ap-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(205, 53, 255, 0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(255, 0, 133, 0.03) 0%, transparent 50%);
}
.ap-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-block: 5rem;
}
.ap-hero__eyebrow { margin-bottom: 1.25rem; }
.ap-hero__headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--ap-text);
    letter-spacing: -.025em;
}
.ap-hero__sub {
    font-size: 1.125rem;
    color: var(--ap-text-muted);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.ap-hero__trust { display: flex; flex-wrap: wrap; gap: .75rem; }
.ap-hero__trust-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .875rem; color: var(--ap-text-muted);
}
.ap-hero__trust-chip svg { color: var(--ap-accent); width: 16px; height: 16px; }

/* Hero mockup visual */
.ap-hero__visual { display: flex; justify-content: flex-end; }
.ap-hero__mockup {
    width: 100%;
    max-width: 420px;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    overflow: hidden;
    box-shadow: var(--ap-shadow-accent), var(--ap-shadow-lg);
    animation: floatY 4s ease-in-out infinite;
}
.ap-hero__mockup-bar {
    display: flex; gap: .4rem; padding: .75rem 1rem;
    background: var(--ap-surface-2);
    border-bottom: 1px solid var(--ap-border);
}
.ap-hero__mockup-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--ap-border); }
.ap-hero__mockup-bar span:first-child { background: #ef4444; }
.ap-hero__mockup-bar span:nth-child(2) { background: #f59e0b; }
.ap-hero__mockup-bar span:nth-child(3) { background: #22c55e; }
.ap-hero__mockup-content { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.ap-hero__mockup-line { height: 8px; background: var(--ap-border); border-radius: 4px; }
.ap-hero__mockup-line--accent { background: var(--ap-accent); opacity: .6; width: 60%; }
.ap-hero__mockup-line--short { width: 40%; }
.ap-hero__mockup-line--sm { width: 70%; height: 6px; }
.ap-hero__mockup-card { display: flex; gap: .75rem; padding: .75rem; background: var(--ap-surface-2); border-radius: var(--ap-radius); border: 1px solid var(--ap-border); }
.ap-hero__mockup-thumb { width: 60px; height: 45px; background: var(--ap-accent-glow); border-radius: var(--ap-radius-sm); border: 1px solid var(--ap-border-accent); flex-shrink: 0; }
.ap-hero__mockup-thumb--alt { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.2); }
.ap-hero__mockup-meta { flex: 1; display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.ap-hero__mockup-price { font-family: var(--ap-font-display); font-weight: 700; font-size: .875rem; color: var(--ap-accent); }

/* =========================================================
   STATS BAR
   ========================================================= */
.ap-stats {
    background: var(--ap-surface-2);
    border-block: 1px solid var(--ap-border);
    padding: 2rem 0;
}
.ap-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}
.ap-stats__item {
    display: flex; flex-direction: column; align-items: center;
    padding: 1.5rem 1rem; text-align: center;
    border-right: 1px solid var(--ap-border);
}
.ap-stats__item:last-child { border-right: none; }
.ap-stats__value {
    font-family: var(--ap-font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ap-accent);
    line-height: 1;
    margin-bottom: .375rem;
}
.ap-stats__label { font-size: .875rem; color: var(--ap-text-muted); }

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.ap-section { padding: 5rem 0; }
.ap-section__header { text-align: center; margin-bottom: 3rem; }
.ap-section__header--left { text-align: left; margin-bottom: 1.5rem; }
.ap-section__eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ap-accent);
    margin-bottom: .75rem;
}
.ap-section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}
.ap-section__title--sm { font-size: 1.5rem; }
.ap-section__desc { color: var(--ap-text-muted); font-size: 1.0625rem; max-width: 600px; margin-inline: auto; }
.ap-section__cta { text-align: center; margin-top: 3rem; }

/* =========================================================
   CATEGORY CARDS
   ========================================================= */
.ap-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.ap-cat-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    text-decoration: none;
    color: var(--ap-text);
    transition: var(--ap-transition-slow);
    position: relative;
    overflow: hidden;
}
.ap-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, var(--ap-secondary-glow), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}
.ap-cat-card:hover { border-color: rgba(205, 53, 255, 0.25); transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(205, 53, 255, 0.12); color: var(--ap-text); }
.ap-cat-card:hover::before { opacity: 1; }
.ap-cat-card:focus-visible { outline: 2px solid var(--ap-secondary); outline-offset: 3px; }
.ap-cat-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ap-secondary-glow);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    color: var(--ap-secondary);
}
.ap-cat-card__icon svg { width: 28px; height: 28px; }
.ap-cat-card__title { font-size: 1.0625rem; font-weight: 800; margin-bottom: .25rem; }
.ap-cat-card__desc { font-size: .875rem; color: var(--ap-text-muted); line-height: 1.5; }
.ap-cat-card__count {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--ap-surface-2);
    color: var(--ap-text-muted);
    font-size: .75rem; font-weight: 600;
    padding: .2rem .5rem;
    border-radius: var(--ap-radius-full);
    border: 1px solid var(--ap-border);
}
.ap-cat-card__arrow { color: var(--ap-secondary); opacity: 0; transform: translateX(-8px); transition: var(--ap-transition); margin-top: auto; }
.ap-cat-card:hover .ap-cat-card__arrow { opacity: 1; transform: translateX(0); }

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.ap-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.ap-products-grid--shop { grid-template-columns: repeat(3, 1fr); }

.ap-product-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    overflow: hidden;
    transition: var(--ap-transition-slow);
    display: flex;
    flex-direction: column;
}
.ap-product-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 40px rgba(205, 53, 255, 0.12); border-color: rgba(205, 53, 255, 0.25); }

.ap-product-card__img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ap-surface-2); }
.ap-product-card__img-link { display: block; width: 100%; height: 100%; }
.ap-product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ap-product-card:hover .ap-product-card__img { transform: scale(1.04); }

.ap-product-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .35rem; z-index: 1; }

.ap-product-card__overlay {
    position: absolute; inset: 0;
    background: rgba(11,10,15,.75);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.ap-product-card:hover .ap-product-card__overlay { opacity: 1; }
.ap-product-card__quick-view {
    padding: .5rem 1.25rem;
    background: var(--ap-secondary);
    color: #000000;
    border-radius: var(--ap-radius-full);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(8px);
    transition: var(--ap-transition);
}
.ap-product-card__quick-view:hover { background: var(--ap-accent); box-shadow: 0 0 15px var(--ap-accent-glow); }
.ap-product-card:hover .ap-product-card__quick-view { transform: translateY(0); }

.ap-product-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.ap-product-card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-secondary); text-decoration: none; }
.ap-product-card__title { font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.ap-product-card__title a { color: var(--ap-text); text-decoration: none; }
.ap-product-card__title a:hover { color: var(--ap-secondary); }
.ap-product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--ap-border); }
.ap-product-card__price { font-family: var(--ap-font-display); font-weight: 700; font-size: 1.0625rem; color: var(--ap-text); }
.ap-product-card__price .woocommerce-Price-amount { color: var(--ap-text); }
.ap-product-card__price del { color: var(--ap-text-subtle); font-size: .875rem; font-weight: 400; }
.ap-product-card__price ins { text-decoration: none; color: var(--ap-accent); }
.ap-from { font-size: .8125rem; color: var(--ap-text-muted); font-weight: 400; font-family: var(--ap-font-body); }
.ap-product-card__out-of-stock { font-size: .8125rem; color: var(--ap-danger); }

/* Placeholder cards */
.ap-product-card--placeholder { pointer-events: none; }
.ap-product-card__placeholder-img { width: 100%; height: 100%; background: linear-gradient(90deg, var(--ap-surface) 0%, var(--ap-surface-2) 50%, var(--ap-surface) 100%); background-size: 200%; animation: shimmer 1.5s infinite; }
.ap-placeholder-line { height: 12px; background: var(--ap-surface-2); border-radius: 4px; animation: shimmer 1.5s infinite; }
.ap-placeholder-line--short { width: 60%; }
.ap-placeholder-line--price { width: 40%; margin-top: .25rem; }

/* Tab filter */
.ap-tab-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; padding: .375rem; background: var(--ap-surface-2); border-radius: var(--ap-radius); border: 1px solid var(--ap-border); width: fit-content; }
.ap-tab-filter__btn {
    padding: .5rem 1.125rem;
    border-radius: var(--ap-radius-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    transition: var(--ap-transition);
}
.ap-tab-filter__btn:hover { color: var(--ap-text); background: rgba(255,255,255,.06); }
.ap-tab-filter__btn--active { background: var(--ap-accent); color: #000 !important; }
.ap-tab-filter__btn--active:hover { background: var(--ap-accent-dark); }

/* =========================================================
   PRICING / HOSTING PLANS
   ========================================================= */
.ap-hosting { background: var(--ap-surface-2); }
.ap-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.ap-pricing-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    transition: var(--ap-transition-slow);
}
.ap-pricing-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 40px rgba(205, 53, 255, 0.10); border-color: rgba(205, 53, 255, 0.15); }
.ap-pricing-card--popular {
    border-color: var(--ap-accent);
    box-shadow: var(--ap-accent-glow-strong);
    transform: scale(1.02);
}
.ap-pricing-card--popular:hover { transform: scale(1.02) translateY(-4px); box-shadow: 0 12px 40px rgba(255, 0, 133, 0.2); border-color: var(--ap-accent); }
.ap-pricing-card__popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--ap-accent); color: #000;
    padding: .25rem .875rem;
    border-radius: var(--ap-radius-full);
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap;
}
.ap-pricing-card__name { font-size: 1.125rem; font-weight: 800; margin-bottom: .5rem; }
.ap-pricing-card__amount { font-size: 2.5rem; font-weight: 800; font-family: var(--ap-font-display); color: var(--ap-text); }
.ap-pricing-card__period { font-size: .875rem; color: var(--ap-text-muted); }
.ap-pricing-card__features { display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.ap-pricing-card__feature { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; }
.ap-pricing-card__feature--ok svg { color: var(--ap-success); }
.ap-pricing-card__feature--no { color: var(--ap-text-muted); }
.ap-pricing-card__feature--no svg { color: var(--ap-text-subtle); }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.ap-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ap-why__card {
    padding: 1.75rem;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    transition: var(--ap-transition-slow);
}
.ap-why__card:hover { border-color: rgba(205, 53, 255, 0.25); box-shadow: 0 12px 40px rgba(205, 53, 255, 0.1); transform: translateY(-4px) scale(1.02); }
.ap-why__icon {
    width: 48px; height: 48px; border-radius: var(--ap-radius);
    background: var(--ap-secondary-glow); border: 1px solid var(--ap-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--ap-secondary); margin-bottom: 1.25rem;
}
.ap-why__title { font-size: 1.0625rem; font-weight: 800; margin-bottom: .625rem; }
.ap-why__desc { font-size: .9375rem; color: var(--ap-text-muted); line-height: 1.6; }

/* =========================================================
   BLOG GRID
   ========================================================= */
.ap-blog-grid, .ap-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.ap-post-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    overflow: hidden;
    transition: var(--ap-transition-slow);
    display: flex;
    flex-direction: column;
}
.ap-post-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 40px rgba(205, 53, 255, 0.1); border-color: rgba(205, 53, 255, 0.2); }
.ap-post-card__img-link { display: block; aspect-ratio: 3/2; overflow: hidden; }
.ap-post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ap-post-card:hover .ap-post-card__img { transform: scale(1.04); }
.ap-post-card__img--placeholder { background: var(--ap-surface-2); width: 100%; aspect-ratio: 3/2; }
.ap-post-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .625rem; }
.ap-post-card__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ap-post-card__cat a, .ap-post-card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-secondary); text-decoration: none; }
.ap-post-card__date { font-size: .8125rem; color: var(--ap-text-subtle); }
.ap-post-card__title { font-size: 1.0625rem; font-weight: 800; line-height: 1.35; }
.ap-post-card__title a { color: var(--ap-text); text-decoration: none; }
.ap-post-card__title a:hover { color: var(--ap-secondary); }
.ap-post-card__excerpt { font-size: .9375rem; color: var(--ap-text-muted); line-height: 1.6; flex: 1; }
.ap-post-card__more { font-size: .875rem; font-weight: 600; color: var(--ap-secondary); text-decoration: none; margin-top: auto; }
.ap-post-card__more:hover { color: var(--ap-secondary-dark); }

/* =========================================================
   NEWSLETTER / CTA BANNER
   ========================================================= */
.ap-cta-banner { background: var(--ap-surface-2); }
.ap-cta-banner__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3.5rem;
    background: linear-gradient(135deg, var(--ap-surface) 0%, rgba(205, 53, 255, 0.03) 100%);
    border: 1px solid var(--ap-border-accent);
    border-radius: var(--ap-radius-xl);
}
.ap-cta-banner__title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.ap-cta-banner__desc { color: var(--ap-text-muted); font-size: 1rem; }
.ap-cta-banner__form { flex-shrink: 0; width: 100%; max-width: 420px; }

.ap-newsletter-form__group { display: flex; gap: .5rem; margin-bottom: .5rem; }
.ap-newsletter-form__input {
    flex: 1;
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: .75rem 1rem;
    color: var(--ap-text);
    font-size: .9375rem;
    outline: none;
    min-width: 0;
    transition: var(--ap-transition);
}
.ap-newsletter-form__input:focus { border-color: var(--ap-accent); }
.ap-newsletter-form__note { font-size: .8125rem; color: var(--ap-text-subtle); }

/* =========================================================
   FOOTER
   ========================================================= */
.ap-footer { background: var(--ap-surface-3); border-top: 1px solid var(--ap-border); }
.ap-footer__top { padding: 4rem 0; }
.ap-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 2.5rem; }
.ap-footer__logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-bottom: 1.25rem; }
.ap-footer__logo span { font-family: var(--ap-font-display); font-size: 1.125rem; font-weight: 700; color: var(--ap-text); }
.ap-footer__tagline { font-size: .9375rem; color: var(--ap-text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.ap-footer__socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.ap-footer__social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--ap-radius-sm); background: var(--ap-surface); border: 1px solid var(--ap-border); color: var(--ap-text-muted); transition: var(--ap-transition); text-decoration: none; }
.ap-footer__social-link:hover { color: var(--ap-accent); border-color: var(--ap-border-accent); background: var(--ap-accent-glow); }
.ap-footer__col-title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-text-muted); margin-bottom: 1.25rem; }
.ap-footer__links { display: flex; flex-direction: column; gap: .625rem; }
.ap-footer__links li a { font-size: .9375rem; color: var(--ap-text-muted); text-decoration: none; transition: var(--ap-transition); }
.ap-footer__links li a:hover { color: var(--ap-text); }
.ap-footer__contact { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.5rem; }
.ap-footer__contact li { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--ap-text-muted); }
.ap-footer__contact li a { color: var(--ap-text-muted); text-decoration: none; transition: var(--ap-transition); }
.ap-footer__contact li a:hover { color: var(--ap-accent); }
.ap-footer__contact-icon { color: var(--ap-accent); }
.ap-footer__contact-note { font-size: .8125rem; color: var(--ap-text-subtle); }
.ap-footer__newsletter p { font-size: .875rem; color: var(--ap-text-muted); margin-bottom: .625rem; font-weight: 600; }
.ap-footer__newsletter .ap-newsletter-form__input { padding: .5rem .875rem; font-size: .875rem; }

.ap-footer__bottom { border-top: 1px solid var(--ap-border); padding: 1.25rem 0; }
.ap-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ap-footer__copyright { font-size: .875rem; color: var(--ap-text-muted); }
.ap-footer__payments { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ap-payment-icon { border-radius: 4px; opacity: .7; transition: opacity .2s; }
.ap-payment-icon:hover { opacity: 1; }

/* =========================================================
   SHOP PAGE
   ========================================================= */
.ap-shop-page { padding: 2.5rem 0 5rem; }
.ap-shop-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.ap-shop-header__title { font-size: 2rem; font-weight: 800; }
.ap-shop-header__right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ap-shop-result-count { font-size: .875rem; color: var(--ap-text-muted); }

.ap-shop-layout { display: grid; gap: 2rem; }
.ap-shop-layout--with-sidebar { grid-template-columns: 260px 1fr; }

.ap-shop-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.ap-shop-sidebar__close { display: none; }

.ap-filter-toggle { display: none; align-items: center; gap: .5rem; padding: .625rem 1rem; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); font-size: .875rem; font-weight: 600; color: var(--ap-text-muted); margin-bottom: 1rem; transition: var(--ap-transition); }
.ap-filter-toggle:hover { color: var(--ap-text); border-color: var(--ap-accent); }

/* Widget styles */
.ap-widget { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 1.25rem; }
.ap-widget__title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-text-muted); margin-bottom: 1rem; }
.ap-widget-cats { display: flex; flex-direction: column; gap: .25rem; }
.ap-widget-cats__item a { display: flex; justify-content: space-between; align-items: center; padding: .4rem .625rem; border-radius: var(--ap-radius-sm); color: var(--ap-text-muted); font-size: .9375rem; text-decoration: none; transition: var(--ap-transition); }
.ap-widget-cats__item a:hover { color: var(--ap-accent); background: var(--ap-accent-glow); }
.ap-widget-cats__item--active a { color: var(--ap-accent); font-weight: 600; }
.ap-widget-cats__count { font-size: .75rem; background: var(--ap-surface-2); padding: .1rem .4rem; border-radius: var(--ap-radius-full); }
.ap-widget-tags { display: flex; flex-wrap: wrap; gap: .375rem; }

/* Price filter */
.ap-price-filter { display: flex; flex-direction: column; gap: .875rem; }
.ap-price-filter__inputs { display: flex; align-items: center; gap: .5rem; }
.ap-price-filter__input { flex: 1; background: var(--ap-bg); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-sm); padding: .4rem .625rem; color: var(--ap-text); font-size: .875rem; min-width: 0; outline: none; }
.ap-price-filter__input:focus { border-color: var(--ap-accent); }

/* Shop search */
.ap-shop-search-form { display: flex; gap: .5rem; }
.ap-shop-search-form__input { flex: 1; background: var(--ap-bg); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-sm); padding: .5rem .75rem; color: var(--ap-text); font-size: .875rem; outline: none; min-width: 0; transition: var(--ap-transition); }
.ap-shop-search-form__input:focus { border-color: var(--ap-accent); }
.ap-shop-search-form__btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--ap-accent); color: #000; border-radius: var(--ap-radius-sm); flex-shrink: 0; transition: var(--ap-transition); }
.ap-shop-search-form__btn:hover { background: var(--ap-accent-dark); }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.ap-single-product-page { padding: 2rem 0 5rem; }
.ap-single-product { display: grid; grid-template-columns: 1fr .65fr; gap: 3rem; margin-bottom: 4rem; }

/* Gallery */
.ap-gallery__main { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-lg); overflow: hidden; aspect-ratio: 4/3; position: relative; }
.ap-gallery__lightbox-trigger { display: block; width: 100%; height: 100%; }
.ap-gallery__main-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ap-gallery__lightbox-trigger:hover .ap-gallery__main-img { transform: scale(1.02); }
.ap-gallery__zoom-hint { position: absolute; bottom: .75rem; right: .75rem; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); padding: .35rem; border-radius: var(--ap-radius-sm); color: var(--ap-accent); opacity: 0; transition: opacity .2s; }
.ap-gallery__lightbox-trigger:hover .ap-gallery__zoom-hint { opacity: 1; }
.ap-gallery__thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.ap-gallery__thumb {
    width: 72px; height: 54px;
    border: 2px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--ap-transition);
    cursor: pointer;
    padding: 0;
}
.ap-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-gallery__thumb:hover, .ap-gallery__thumb--active { border-color: var(--ap-accent); }
.ap-gallery__placeholder { display: flex; align-items: center; justify-content: center; background: var(--ap-surface-2); width: 100%; height: 100%; }

/* Lightbox */
.ap-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.95);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.ap-lightbox:not([hidden]) { display: flex; }
.ap-lightbox__close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.1); color: white; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; z-index: 1; transition: var(--ap-transition); }
.ap-lightbox__close:hover { background: rgba(255,255,255,.2); }
.ap-lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--ap-radius); }
.ap-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); color: white; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; transition: var(--ap-transition); display: flex; align-items: center; justify-content: center; }
.ap-lightbox__nav:hover { background: var(--ap-accent); color: #000; }
.ap-lightbox__nav--prev { left: 1rem; }
.ap-lightbox__nav--next { right: 1rem; }

/* Single product sidebar */
.ap-single-product__sticky { position: sticky; top: calc(var(--ap-header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.ap-single-product__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-accent); text-decoration: none; }
.ap-single-product__title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.2; }
.ap-single-product__price { font-family: var(--ap-font-display); font-size: 1.75rem; font-weight: 800; color: var(--ap-text); }
.ap-single-product__price del { font-size: 1.125rem; font-weight: 400; color: var(--ap-text-subtle); }
.ap-single-product__price ins { text-decoration: none; color: var(--ap-accent); }
.ap-single-product__short-desc { font-size: .9375rem; color: var(--ap-text-muted); line-height: 1.7; }
.ap-single-product__form .single_add_to_cart_button { width: 100% !important; }
.ap-single-product__features { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); }
.ap-single-product__features li { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--ap-text-muted); }
.ap-single-product__features li svg { color: var(--ap-success); }

/* Trust badges */
.ap-trust-badges { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ap-border); flex-wrap: wrap; }
.ap-trust-badge { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .75rem; color: var(--ap-text-muted); text-align: center; }
.ap-trust-badge svg { width: 24px; height: 24px; color: var(--ap-accent); }

/* Product tabs */
.ap-product-tabs { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-lg); overflow: hidden; margin-bottom: 3rem; }
.ap-product-tabs__nav { display: flex; border-bottom: 1px solid var(--ap-border); overflow-x: auto; }
.ap-product-tabs__tab {
    padding: 1rem 1.5rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--ap-transition);
}
.ap-product-tabs__tab:hover { color: var(--ap-text); background: rgba(255,255,255,.04); }
.ap-product-tabs__tab--active { color: var(--ap-accent); border-bottom-color: var(--ap-accent); }
.ap-product-tabs__panel { padding: 2rem; }
.ap-product-tabs__panel[hidden] { display: none; }

/* =========================================================
   PROSE (rich text content)
   ========================================================= */
.ap-prose { color: var(--ap-text-muted); line-height: 1.8; font-size: .9375rem; }
.ap-prose h1, .ap-prose h2, .ap-prose h3, .ap-prose h4 { color: var(--ap-text); margin-top: 1.75em; margin-bottom: .75em; }
.ap-prose p { margin-bottom: 1.25em; }
.ap-prose ul, .ap-prose ol { margin-bottom: 1.25em; padding-left: 1.5em; }
.ap-prose ul { list-style: disc; }
.ap-prose ol { list-style: decimal; }
.ap-prose li { margin-bottom: .375em; }
.ap-prose a { color: var(--ap-accent); }
.ap-prose strong { color: var(--ap-text); font-weight: 600; }
.ap-prose code { font-family: var(--ap-font-mono); background: var(--ap-surface-2); padding: .15em .4em; border-radius: var(--ap-radius-sm); font-size: .875em; color: var(--ap-accent); }
.ap-prose pre { background: var(--ap-surface-2); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 1.25rem; overflow-x: auto; margin-bottom: 1.25em; }
.ap-prose pre code { background: none; padding: 0; font-size: .875rem; color: var(--ap-text); }
.ap-prose--mono { font-family: var(--ap-font-mono); font-size: .875rem; }

/* =========================================================
   PAGINATION
   ========================================================= */
.ap-pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.ap-pagination .page-numbers { display: flex; gap: .375rem; flex-wrap: wrap; justify-content: center; }
.ap-pagination .page-numbers a,
.ap-pagination .page-numbers span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 .625rem;
    border-radius: var(--ap-radius-sm);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    border: 1px solid var(--ap-border);
    text-decoration: none;
    transition: var(--ap-transition);
}
.ap-pagination .page-numbers a:hover { color: var(--ap-text); border-color: var(--ap-accent); }
.ap-pagination .page-numbers .current { background: var(--ap-accent); color: #000; border-color: var(--ap-accent); }
.ap-pagination .page-numbers .dots { border-color: transparent; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.ap-breadcrumb { margin-bottom: 1.5rem; font-size: .875rem; color: var(--ap-text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.ap-breadcrumb a { color: var(--ap-text-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-accent); }
.ap-breadcrumb__sep { margin-inline: .25rem; color: var(--ap-text-subtle); }

/* =========================================================
   404 PAGE
   ========================================================= */
.ap-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.ap-404__inner { text-align: center; max-width: 480px; }
.ap-404__code { font-size: 8rem; font-weight: 900; font-family: var(--ap-font-display); color: var(--ap-accent); text-shadow: 0 0 40px rgba(255, 0, 133, 0.4); line-height: 1; margin-bottom: 1rem; }
.ap-404__title { font-size: 2rem; font-weight: 800; margin-bottom: .875rem; }
.ap-404__desc { color: var(--ap-text-muted); font-size: 1.0625rem; margin-bottom: 2rem; line-height: 1.7; }
.ap-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.ap-single-post { padding: 2.5rem 0 5rem; }
.ap-single-post__layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.ap-single-post__hero-img { border-radius: var(--ap-radius-lg); overflow: hidden; margin-bottom: 2rem; }
.ap-single-post__hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.ap-single-post__meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .875rem; color: var(--ap-text-subtle); margin-bottom: 1rem; }
.ap-single-post__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 2rem; line-height: 1.2; }
.ap-single-post__footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ap-border); }
.ap-single-post__tags { display: flex; flex-wrap: wrap; gap: .375rem; }

/* =========================================================
   ARCHIVE / BLOG
   ========================================================= */
.ap-archive { padding: 2.5rem 0 5rem; }
.ap-archive__header { margin-bottom: 2.5rem; }
.ap-archive__title { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.ap-archive__desc { color: var(--ap-text-muted); font-size: 1.0625rem; }

/* =========================================================
   EMPTY / LOADING STATES
   ========================================================= */
.ap-empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--ap-text-muted); font-size: 1.0625rem; }
.ap-no-products { text-align: center; padding: 3rem; color: var(--ap-text-muted); grid-column: 1 / -1; }

/* =========================================================
   WC OVERRIDES (basic)
   ========================================================= */
.woocommerce-ordering select {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
    padding: .5rem 2rem .5rem 1rem;
    border-radius: var(--ap-radius);
    font-size: .875rem;
    cursor: pointer;
    outline: none;
    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='%23a0a0a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
}
.woocommerce-ordering select:focus { border-color: var(--ap-accent); }

/* =========================================================
   RESPONSIVE — TABLET (1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .ap-categories__grid { grid-template-columns: repeat(2, 1fr); }
    .ap-products-grid { grid-template-columns: repeat(2, 1fr); }
    .ap-products-grid--shop { grid-template-columns: repeat(2, 1fr); }
    .ap-why__grid { grid-template-columns: repeat(2, 1fr); }
    .ap-shop-layout--with-sidebar { grid-template-columns: 220px 1fr; }
    .ap-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .ap-stats__item { border-right: none; border-bottom: 1px solid var(--ap-border); }
    .ap-stats__item:nth-child(2n) { border-right: none; }
    .ap-footer__grid { grid-template-columns: 1fr 1fr; }
    .ap-single-post__layout { grid-template-columns: 1fr; }
    .ap-hero__inner { grid-template-columns: 1fr; }
    .ap-hero__visual { display: none; }
    .ap-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .ap-cta-banner__inner { flex-direction: column; text-align: center; padding: 2.5rem; }
    .ap-cta-banner__form { max-width: 100%; }
    .ap-single-product { grid-template-columns: 1fr; }
    .ap-single-product__sticky { position: static; }
    .ap-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   DESKTOP GUARD — mobile menu NEVER appears on desktop
   The menu is display:flex always, but transform-hidden on mobile.
   On desktop we force display:none so it never renders at all.
   ========================================================= */
@media (min-width: 769px) {
    /* Hide the entire mobile menu + backdrop on desktop */
    .ap-mobile-menu             { display: none !important; }
    .ap-mobile-menu-backdrop    { display: none !important; }
    /* Also ensure the hamburger is gone on desktop */
    .ap-hamburger               { display: none !important; }
}

/* =========================================================
   RESPONSIVE — MOBILE (768px)
   ========================================================= */
@media (max-width: 768px) {
    .ap-nav { display: none; }
    .ap-hamburger { display: flex !important; }          /* show hamburger */
    .ap-header__actions .ap-btn { display: none; }       /* hide Sign In on mobile header */
    .ap-header__actions .ap-header__cart { display: flex; } /* keep cart visible */

    .ap-hero__actions { flex-direction: column; }
    .ap-hero__actions .ap-btn { width: 100%; justify-content: center; }
    .ap-categories__grid { grid-template-columns: 1fr; }
    .ap-products-grid { grid-template-columns: 1fr; }
    .ap-products-grid--shop { grid-template-columns: 1fr; }
    .ap-why__grid { grid-template-columns: 1fr; }
    .ap-blog-grid, .ap-post-grid { grid-template-columns: 1fr; }
    .ap-stats__grid { grid-template-columns: 1fr 1fr; }
    .ap-footer__grid { grid-template-columns: 1fr; }
    .ap-footer__bottom-inner { flex-direction: column; text-align: center; }
    .ap-shop-layout--with-sidebar { grid-template-columns: 1fr; }
    .ap-shop-sidebar { display: none; position: fixed; inset: 0; z-index: 1000; background: var(--ap-surface-2); overflow-y: auto; padding: 1.5rem; }
    .ap-shop-sidebar--open { display: flex; flex-direction: column; }
    .ap-shop-sidebar__close { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 1rem; }
    .ap-filter-toggle { display: flex; }
    .ap-newsletter-form__group { flex-direction: column; }
    .ap-newsletter-form__input, .ap-newsletter-form__group .ap-btn { width: 100%; }
    .ap-shop-header { flex-direction: column; align-items: flex-start; }
    .ap-product-tabs__nav { overflow-x: auto; }
    .ap-product-tabs__tab { padding: .75rem 1rem; font-size: .875rem; }
    .ap-pricing-grid { max-width: 100%; }
    .ap-pricing-card--popular { transform: none; }
}

/* =========================================================
   RESPONSIVE — SMALL (480px)
   ========================================================= */
@media (max-width: 480px) {
    .ap-hero { min-height: 80vh; }
    .ap-hero__headline { font-size: 1.875rem; }
    .ap-tab-filter { width: 100%; }
    .ap-tab-filter__btn { flex: 1; text-align: center; }
    .ap-trust-badges { justify-content: center; }
    .ap-404__code { font-size: 5rem; }
}
