/* PC Prowler - Main Stylesheet
   Design: Ocean Blue + Coral, Michroma + Chakra Petch
   Diagonal clip-paths throughout, light + dark mode */

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
    --bg: #eef2f7;
    --bg-card: rgba(255,255,255,0.8);
    --bg-card-solid: #fff;
    --border-card: rgba(3,105,161,0.1);
    --primary: #0369a1;
    --accent: #f43f5e;
    --text: #0f172a;
    --text-mid: #334155;
    --text-light: #64748b;
    --cheapest-bg: #dbeafe;
    --cheapest-text: #0369a1;
    --gradient-start: #0369a1;
    --gradient-end: #f43f5e;
    --nav-bg: rgba(255,255,255,0.92);
    --nav-border: rgba(3,105,161,0.08);
    --search-bg: #f1f5f9;
    --search-border: rgba(3,105,161,0.15);
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --deco-color: rgba(3,105,161,0.06);
    --deco-shape: rgba(3,105,161,0.065);
}


/* ==================== BASE ==================== */
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

body {
    font-family: 'Chakra Petch', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Subtle diagonal gradient wash */
    background-image:
        linear-gradient(160deg, transparent 0%, var(--deco-color) 20%, transparent 45%, var(--deco-color) 65%, transparent 80%, var(--deco-color) 95%);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }


/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, .price-main, .logo-text, .footer-logo-text {
    font-family: 'Michroma', sans-serif;
}

h1 { font-size: 1.75rem; letter-spacing: 0.02em; }
h2 { font-size: 1.35rem; letter-spacing: 0.02em; }
h3 { font-size: 1.1rem; }

/* ==================== ACCENT BAR ==================== */
.accent-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.accent-line {
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    margin-top: 1px;
}

/* ==================== NAVIGATION ==================== */
.nav-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
}

.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
    color: var(--primary);
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-logo:hover .logo-mark {
    animation: none;
    color: var(--accent);
}

.logo-mark {
    width: 24px;
    height: 18px;
    animation: logoShift 8s ease-in-out infinite;
}

@keyframes logoShift {
    0%, 100% { color: var(--primary); }
    50% { color: #0ea5e9; }
}

.logo-text {
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
    letter-spacing: 0.02em;
}

.nav-search {
    flex: 1;
    max-width: 520px;
    margin-left: auto;
    position: relative;
}

.nav-search form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-right: 3rem;
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    color: var(--text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.875rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
}

/* Search suggest dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
}
.search-dropdown.open { display: block; }
.sd-section { border-bottom: 1px solid var(--border-card); }
.sd-section:last-of-type { border-bottom: none; }
.sd-heading {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    background: var(--search-bg);
}
.sd-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    transition: background 0.1s;
}
.sd-item:hover { background: var(--search-bg); }
.sd-item i { color: var(--text-light); font-size: 0.75rem; width: 16px; text-align: center; flex-shrink: 0; }
.sd-brand-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.sd-product-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.sd-no-img { display: flex; align-items: center; justify-content: center; background: var(--search-bg); color: var(--text-light); }
.sd-product-info { display: flex; flex-direction: column; min-width: 0; }
.sd-product-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.8rem; }
.sd-product-price { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.sd-empty { padding: 1rem 0.75rem; text-align: center; color: var(--text-light); font-size: 0.8rem; }
.sd-view-all {
    display: block;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-top: 1px solid var(--border-card);
}
.sd-view-all:hover { background: var(--search-bg); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}


/* ==================== CATEGORY BAR ==================== */
.cat-bar {
    background: var(--bg-card-solid);
    border-bottom: 1px solid var(--border-card);
    box-shadow: 0 4px 8px -2px rgba(0,0,0,0.08);
}

.cat-bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cat-links-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-links-wrap::-webkit-scrollbar { display: none; }

.cat-link {
    padding: 0.6rem 0.85rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;
}

.cat-link:first-child { padding-left: 0; }

.cat-link:hover {
    color: var(--accent);
    text-decoration: none;
    border-bottom-color: var(--accent);
}

.cat-link i { font-size: 0.75rem; }

/* Hamburger toggle (hidden on desktop) */
.cat-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.6rem 0;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile category overlay */
.cat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    backdrop-filter: blur(4px);
}

.cat-overlay.open {
    display: block;
}

.cat-overlay-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-card-solid);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    overflow-y: auto;
}

.cat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 0.5rem;
}

.cat-overlay-header span {
    font-family: 'Michroma', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.cat-overlay-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.cat-overlay-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.cat-overlay-links a:hover {
    background: var(--search-bg);
    color: var(--accent);
    border-left-color: var(--accent);
    text-decoration: none;
}

.cat-overlay-links a i { font-size: 0.8rem; width: 18px; text-align: center; }

/* ==================== MAIN ==================== */
.main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

/* ==================== CARDS (diagonal via skew) ==================== */
.card {
    position: relative;
    z-index: 0;
    padding: 1.25rem 1.5rem;
    background: transparent;
    transition: transform 0.2s;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-3deg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-2px);
}

.card:hover::before {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.grid-categories .card:hover i,
.grid-categories .card:hover span {
    color: var(--accent) !important;
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
    position: relative;
    z-index: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.2s;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-2deg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-card:hover::before {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Refurbished badge on cards */
.product-card-badges {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.product-card-refurb,
.product-card-pricedrop {
    transform: skewX(-4deg);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    font-style: normal !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 4px 10px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-card-refurb {
    background: #f5c518;
    color: #3a2e00;
}
.product-card-pricedrop {
    background: #4fc3f7;
    color: #0a2a3a;
}
.product-card-refurb *,
.product-card-pricedrop * {
    font-style: normal !important;
}
.product-card-featured {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-card-featured-logo {
    width: 1em;
    height: 0.7em;
}

/* Featured badge on product detail page */
.pp-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    margin-bottom: 0.5rem;
}
.pp-featured-badge svg {
    width: 1.1em;
    height: 0.8em;
}

/* Featured badge on table view */
.pt-featured {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    white-space: nowrap;
    margin-left: 4px;
    vertical-align: middle;
}
.pt-featured svg {
    width: 0.85em;
    height: 0.6em;
}

/* Featured badge on price drop cards */
.hp-drop-featured {
    position: absolute;
    top: -10px;
    left: 3px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.hp-drop-featured svg {
    width: 1em;
    height: 0.7em;
}

/* Featured badge on trending cards */
.hp-trend-featured {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    margin-left: 6px;
}
.hp-trend-featured svg {
    width: 0.85em;
    height: 0.6em;
}

.product-card-saving {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #5b9bd5;
    margin-top: 2px;
    text-decoration: line-through;
}

/* Refurbished toggle button */
.refurb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 1rem;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.08);
    color: var(--text-mid);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transform: skewX(-4deg);
    transition: all 0.2s;
    opacity: 0.7;
    cursor: pointer;
}
.refurb-toggle > * {
    transform: skewX(4deg);
}
.refurb-toggle:hover {
    opacity: 1;
    border-color: #94a3b8;
    color: #334155;
}
.refurb-toggle.active {
    opacity: 1;
    background: #f5c518;
    border-color: #f5c518;
    color: #3a2e00;
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 0.75rem;
    background: var(--bg);
    padding: 0.5rem;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.product-card-brand {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    min-height: 1.1em;
}

.product-card-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin: 0.25rem 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.price-retailers {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* ==================== CHEAPEST BADGE ==================== */
.badge-cheapest {
    display: inline-block;
    color: var(--cheapest-text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    position: relative;
    z-index: 0;
}

.badge-cheapest::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cheapest-bg);
    transform: skewX(-4deg);
}

/* ==================== BUTTONS (diagonal via skew) ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 0;
    background: transparent;
    color: inherit;
    transition: transform 0.15s;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: skewX(-4deg);
    transition: box-shadow 0.25s, background 0.4s, background-position 0.4s;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary,
.btn-primary:hover {
    color: #fff;
}

.btn-primary::before {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 40%, #fb7185 100%);
    background-size: 150% 150%;
    background-position: 0% 50%;
    box-shadow: 0 1px 4px rgba(244,63,94,0.15);
}

.btn-primary:hover::before {
    background-position: 100% 50%;
    box-shadow: 0 3px 10px rgba(244,63,94,0.25);
}

.btn-outline,
.btn-outline:hover {
    color: var(--primary);
}

.btn-outline::before {
    background: transparent;
    border: 1px solid var(--primary);
    box-shadow: 0 1px 4px rgba(3,105,161,0.1);
}

.btn-outline:hover::before {
    background: rgba(3,105,161,0.04);
    box-shadow: 0 4px 12px rgba(3,105,161,0.2);
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
}

/* ==================== PILLS ==================== */
.pill {
    display: inline-block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    position: relative;
    z-index: 0;
}

.pill::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: skewX(-5deg);
}

.pill-primary {
    color: #fff;
}

.pill-primary::before {
    background: var(--primary);
}

.pill-outline {
    color: var(--primary);
}

.pill-outline::before {
    background: transparent;
    border: 1px solid var(--primary);
}

/* ==================== GRID LAYOUTS ==================== */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.grid-categories .card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Brand cards */
.grid-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.brand-card {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    text-decoration: none;
    transition: transform 0.2s;
}

.brand-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-3deg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s;
}

.brand-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.brand-card:hover::before {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-card-thumb {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.6rem 0 0;
}

.brand-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.brand-card:hover .brand-card-thumb img {
    transform: scale(1.06);
}

.brand-card-thumb i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.brand-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.4rem 0.5rem;
}

.brand-card-name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

.brand-card-count {
    font-size: 0.55rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

/* Retailers showcase */
.retailers-showcase {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.retailers-info {
    flex: 0 0 61.8%;
}

.retailers-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Michroma', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.retailers-names {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.8;
}

.retailers-sep {
    color: var(--border-card);
    margin: 0 0.3rem;
}

.retailers-mosaic {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.retailer-tile {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
}

.retailer-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==================== HOMEPAGE STATS SECTION ==================== */
.hp-stats-section {
    margin: 2.5rem calc(-50vw + 50%) 0;
    padding: 3rem calc(50vw - 50%);
    background: linear-gradient(165deg, #e2e8f0 0%, #dbeafe 50%, #e2e8f0 100%);
    clip-path: polygon(0 16px, 100% 0, 100% calc(100% - 16px), 0 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 2.5rem;
}

.hp-stats-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding: 0.5rem 0;
}

.hp-stats-numbers {
    flex: 0 0 38.1%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.hp-stats-numbers .hp-stat:nth-child(4),
.hp-stats-numbers .hp-stat:nth-child(5) {
    grid-column: span 1;
}

.hp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: rgba(255,255,255,0.7);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: transform 0.2s;
}

.hp-stat:hover {
    transform: translateY(-2px);
}

.hp-stat-emoji {
    font-size: 1rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.hp-stat-number {
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.hp-stat-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.hp-stats-about {
    flex: 1;
}

.hp-stats-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hp-stats-title span {
    color: var(--primary);
}

.hp-stats-desc {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hp-stats-desc strong {
    color: var(--primary);
    font-weight: 700;
}

.hp-stats-retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.hp-stats-retailer {
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(255,255,255,0.85);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hp-stats-retailer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== PRICE DISTRIBUTION CHARTS ==================== */
.price-dist-section,
.hp-pricedist {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.price-dist-section > .section-header,
.hp-pricedist > .section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-card);
}

.price-dist-section > .section-header h2,
.hp-pricedist > .section-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.price-dist-wrap,
.hp-pd-chart-wrap {
    position: relative;
    z-index: 0;
    height: 300px;
    padding: 1.25rem;
    background: transparent;
}

.price-dist-wrap::before,
.hp-pd-chart-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-1deg);
}

.price-dist-wrap canvas,
.hp-pd-chart-wrap canvas {
    display: block;
    width: 100%;
}

.price-dist-summary,
.hp-pd-summary {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.75rem;
}

.price-dist-summary strong,
.hp-pd-summary strong {
    color: var(--text);
}

/* Homepage price dist tabs */
.hp-pd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.hp-pd-tab {
    flex: 1 1 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border: none;
    background: var(--bg-card);
    color: var(--text-mid);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-align: center;
}

.hp-pd-tab:hover {
    color: var(--primary);
    background: var(--bg-card-solid);
}

.hp-pd-tab.active {
    background: var(--primary);
    color: #fff;
}

.hp-pd-tab i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

/* ==================== FAQ SECTIONS ==================== */
.pp-faq-section,
.cat-faq-section {
    margin-bottom: 2.5rem;
}

.pp-faq-section .pp-section-title,
.pp-faq-section > h2,
.cat-faq-section > h2 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-card);
}

.pp-faq-list {
    position: relative;
    z-index: 0;
    padding: 1.25rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pp-faq-list::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-1deg);
}

.pp-faq-item {
    position: relative;
    z-index: 0;
    background: transparent;
}

.pp-faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    transform: skewX(-1deg);
}

.pp-faq-q {
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pp-faq-q:hover {
    color: var(--primary);
}

.pp-faq-q::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.pp-faq-item[open] .pp-faq-q::after {
    content: '\2212';
}

.pp-faq-q::-webkit-details-marker {
    display: none;
}

.pp-faq-a {
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ==================== HOMEPAGE LAZY LOAD ==================== */
.hp-lazy {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hp-lazy-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HOMEPAGE HERO ==================== */
.hp-hero {
    position: relative;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.breadcrumb + .hp-hero {
    margin: 1.2rem 1.5rem 0;
}

.hp-hero + .category-page,
.hp-hero + .brand-page {
    padding-top: 1.2rem;
}

.hp-hero-slides {
    position: relative;
    height: 380px;
}

.hp-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hp-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hp-hero-slide.hp-hero-out {
    opacity: 0;
    z-index: 2;
}

.hp-hero-text {
    flex: 0 0 42%;
    background: linear-gradient(165deg, #0c4a6e, var(--primary));
    color: #fff;
    padding: 2.5rem 4rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.hp-hero-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 0.2rem 0.7rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    margin-bottom: 0.5rem;
    width: fit-content;
}
.hp-hero-featured-logo {
    width: 1.1em;
    height: 0.8em;
}
.hp-hero-cat {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}

.hp-hero-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.35rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-hero-brand {
    font-family: 'Michroma', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.hp-hero-prices {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.hp-hero-price {
    font-family: 'Michroma', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hp-hero-was {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
}

.hp-hero-drop {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
}

.hp-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1.25rem;
}

.hp-hero-from {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
}

.hp-hero-retailers {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
}

.hp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-end);
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: background 0.25s, transform 0.25s;
    align-self: flex-start;
}

.hp-hero-cta:hover {
    background: #e11d48;
    transform: translateX(3px);
}

.hp-hero-img {
    flex: 1 1 auto;
    margin-left: -50px;
    background-color: #f0f4f8;
    background-size: 118%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: background-size 12s linear, filter 12s linear;
    filter: saturate(1.6) hue-rotate(8deg) brightness(1.1);
    overflow: hidden;
}

.hp-hero-img.zoomed {
    background-size: 99%;
    filter: saturate(1) hue-rotate(0deg) brightness(1);
}

/* RGB split pseudo-elements for glitch */
.hp-hero-img::before,
.hp-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}
.hp-hero-img::before {
    background-color: rgba(0, 255, 255, 0.18);
}
.hp-hero-img::after {
    background-color: rgba(255, 0, 80, 0.18);
}

/* Glitch-out phase */
.hp-hero-img.glitch-out {
    animation: heroGlitchOut 0.2s steps(1, end) infinite;
    filter: grayscale(1) brightness(1.1) !important;
    transition: none !important;
}
.hp-hero-img.glitch-out::before {
    animation: rgbSplitCyan 0.2s steps(1, end) infinite;
}
.hp-hero-img.glitch-out::after {
    animation: rgbSplitRed 0.2s steps(1, end) infinite;
}

@keyframes heroGlitchOut {
    0%   { transform: translate(0); opacity: 1; }
    6%   { transform: translate(-8px, 5px); opacity: 0.6; }
    12%  { transform: translate(10px, -3px); opacity: 1; }
    18%  { transform: translate(-6px, -7px); opacity: 0.4; }
    24%  { transform: translate(9px, 4px); opacity: 0.9; }
    30%  { transform: translate(-11px, -2px); opacity: 0.3; }
    36%  { transform: translate(7px, 6px); opacity: 0.8; }
    42%  { transform: translate(-5px, -8px); opacity: 0.5; }
    48%  { transform: translate(12px, 3px); opacity: 0.2; }
    54%  { transform: translate(-9px, -4px); opacity: 0.7; }
    60%  { transform: translate(6px, 7px); opacity: 0.3; }
    66%  { transform: translate(-10px, 2px); opacity: 0.6; }
    72%  { transform: translate(8px, -6px); opacity: 0.2; }
    78%  { transform: translate(-7px, 5px); opacity: 0.5; }
    84%  { transform: translate(11px, -3px); opacity: 0.15; }
    90%  { transform: translate(-8px, 4px); opacity: 0.4; }
    96%  { transform: translate(5px, -7px); opacity: 0.1; }
    100% { transform: translate(0); opacity: 0.2; }
}

@keyframes rgbSplitCyan {
    0%   { opacity: 0; transform: translate(0); }
    6%   { opacity: 0.9; transform: translate(-10px, 4px); }
    12%  { opacity: 0; transform: translate(0); }
    18%  { opacity: 0.85; transform: translate(8px, -5px); }
    24%  { opacity: 0; transform: translate(0); }
    30%  { opacity: 0.9; transform: translate(-12px, 3px); }
    36%  { opacity: 0; transform: translate(0); }
    42%  { opacity: 0.8; transform: translate(9px, -6px); }
    48%  { opacity: 0; transform: translate(0); }
    54%  { opacity: 0.85; transform: translate(-7px, 5px); }
    60%  { opacity: 0; transform: translate(0); }
    66%  { opacity: 0.7; transform: translate(11px, -4px); }
    72%  { opacity: 0; transform: translate(0); }
    78%  { opacity: 0.6; transform: translate(-8px, 3px); }
    84%  { opacity: 0; transform: translate(0); }
    90%  { opacity: 0.5; transform: translate(6px, -5px); }
    96%  { opacity: 0; transform: translate(0); }
    100% { opacity: 0; transform: translate(0); }
}

@keyframes rgbSplitRed {
    0%   { opacity: 0; transform: translate(0); }
    3%   { opacity: 0; transform: translate(0); }
    9%   { opacity: 0.9; transform: translate(11px, -3px); }
    15%  { opacity: 0; transform: translate(0); }
    21%  { opacity: 0.85; transform: translate(-9px, 6px); }
    27%  { opacity: 0; transform: translate(0); }
    33%  { opacity: 0.9; transform: translate(10px, -4px); }
    39%  { opacity: 0; transform: translate(0); }
    45%  { opacity: 0.8; transform: translate(-11px, 5px); }
    51%  { opacity: 0; transform: translate(0); }
    57%  { opacity: 0.75; transform: translate(8px, -6px); }
    63%  { opacity: 0; transform: translate(0); }
    69%  { opacity: 0.7; transform: translate(-10px, 4px); }
    75%  { opacity: 0; transform: translate(0); }
    81%  { opacity: 0.6; transform: translate(7px, -3px); }
    87%  { opacity: 0; transform: translate(0); }
    93%  { opacity: 0.5; transform: translate(-6px, 5px); }
    100% { opacity: 0; transform: translate(0); }
}

.hp-hero-pips {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0 0.5rem;
    position: relative;
    z-index: 3;
}

.hp-hero-pip {
    width: 36px;
    height: 7px;
    border: none;
    background: #b0c4d8;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
    padding: 0;
}

.hp-hero-pip:hover {
    background: #7da3c2;
}

.hp-hero-pip.active {
    background: var(--primary);
    width: 52px;
}

.hp-hero-pip.pip-featured {
    background: #fbbf24;
}

.hp-hero-pip.pip-featured:hover {
    background: #f59e0b;
}

.hp-hero-pip.pip-featured.active {
    background: #f59e0b;
}

@media (max-width: 1150px) {
    .hp-hero-slides { height: 260px; }
    .hp-hero-text {
        flex: 0 0 52%;
        padding: 1.2rem 3rem 1.2rem 1.8rem;
        clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
    }
    .hp-hero-img { margin-left: -35px; }
    .hp-hero-name { font-size: 1rem; -webkit-line-clamp: 2; }
    .hp-hero-price { font-size: 1.5rem; }
    .hp-hero-was { font-size: 0.75rem; }
    .hp-hero-brand { margin-bottom: 0.4rem; font-size: 0.5rem; }
    .hp-hero-meta { margin-bottom: 0.5rem; }
    .hp-hero-from { font-size: 0.65rem; }
    .hp-hero-retailers { font-size: 0.6rem; }
    .hp-hero-cta { font-size: 0.7rem; padding: 0.45rem 1rem; }
    .hp-hero-cat { font-size: 0.6rem; margin-bottom: 0.3rem; }
    .hp-hero-featured { font-size: 0.55rem; margin-bottom: 0.25rem; padding: 0.15rem 0.6rem; }
    .hp-hero-prices { margin-bottom: 0.3rem; }
    .hp-hero-pip { width: 30px; height: 5px; }
    .hp-hero-pip.active { width: 44px; }
}
@media (max-width: 768px) {
    .hp-hero-slides { height: 220px; }
    .hp-hero-text {
        flex: 0 0 57%;
        padding: 1rem 2.5rem 1rem 1.4rem;
        clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
    }
    .hp-hero-img { margin-left: -28px; }
    .hp-hero-name { font-size: 0.85rem; -webkit-line-clamp: 2; }
    .hp-hero-price { font-size: 1.3rem; }
    .hp-hero-was { font-size: 0.7rem; }
    .hp-hero-drop { font-size: 0.6rem; }
    .hp-hero-cat { font-size: 0.5rem; margin-bottom: 0.2rem; }
    .hp-hero-brand { font-size: 0.45rem; margin-bottom: 0.3rem; }
    .hp-hero-meta { margin-bottom: 0.4rem; }
    .hp-hero-from { font-size: 0.55rem; }
    .hp-hero-retailers { font-size: 0.5rem; }
    .hp-hero-cta { font-size: 0.65rem; padding: 0.35rem 0.9rem; }
    .hp-hero-featured { font-size: 0.5rem; margin-bottom: 0.2rem; padding: 0.1rem 0.5rem; }
    .hp-hero-prices { margin-bottom: 0.2rem; }
    .hp-hero-pip { width: 24px; height: 4px; }
    .hp-hero-pip.active { width: 36px; }
}
@media (max-width: 500px) {
    .hp-hero { display: none; }
}

/* ==================== HOMEPAGE TRENDING ==================== */
.hp-trending {
    margin-bottom: 2.5rem;
}

.hp-trend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 170px);
    gap: 0.75rem;
    position: relative;
}

.hp-trend-slot {
    position: relative;
    overflow: hidden;
    clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.hp-trend-card {
    display: flex;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-card-solid);
    overflow: hidden;
    height: 170px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hp-trend-card.active {
    opacity: 1;
    transform: scale(1);
}

.hp-trend-card.hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.hp-trend-fadeout {
    animation: trendScaleOut 0.5s ease forwards;
    pointer-events: none;
}

.hp-trend-fadein {
    animation: trendScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes trendScaleOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.92); }
}

@keyframes trendScaleIn {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.hp-trend-card.active:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 28px rgba(3,105,161,0.12));
}

.hp-trend-img {
    flex: 0 0 33%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.75rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    margin-right: -18px;
    position: relative;
    z-index: 1;
}

.hp-trend-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.hp-trend-card.active:hover .hp-trend-img img {
    transform: scale(1.08);
}

.hp-trend-noimg {
    color: var(--text-light);
    font-size: 2rem;
    opacity: 0.3;
}

.hp-trend-info {
    flex: 1;
    padding: 1.25rem 1.75rem 1.25rem 2.25rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #0c4a6e, var(--primary));
    color: #fff;
    min-width: 0;
}

.hp-trend-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.hp-trend-cat {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
}

.hp-trend-rank {
    font-family: 'Michroma', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
}

.hp-trend-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-trend-brand {
    font-family: 'Michroma', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
}

.hp-trend-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 0.5rem;
    gap: 0.5rem;
}

.hp-trend-price-block {
    display: flex;
    flex-direction: column;
}

.hp-trend-price {
    font-family: 'Michroma', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.hp-trend-was {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
}

.hp-trend-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.hp-trend-from {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
}

.hp-trend-retailers {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 1000px) {
    .hp-trending { display: none; }
}

/* ==================== HOMEPAGE PRICE DROPS ==================== */
.hp-drops {
    margin-bottom: 2rem;
}

.hp-drops-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.hp-drops-tab {
    flex: 1 1 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border: none;
    background: var(--bg-card);
    color: var(--text-mid);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    position: relative;
    text-align: center;
}

.hp-drops-tab:hover {
    color: var(--primary);
    background: var(--bg-card-solid);
}

.hp-drops-tab.active {
    background: var(--primary);
    color: #fff;
}

.hp-drops-tab i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

.hp-drops-panel {
    display: none;
}

.hp-drops-panel.active {
    display: block;
}

.hp-drops-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1150px) {
    .hp-drops-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-stats-inner { flex-direction: column; gap: 2rem; }
    .hp-stats-numbers { flex: none; width: 100%; }
    .hp-stats-title { font-size: 1.2rem; text-align: center; }
    .hp-stats-section { padding: 3rem calc(50vw - 50%); }
    .hp-stats-about { text-align: center; }
    .hp-stats-desc { text-align: center; }
    .hp-stats-retailers { justify-content: center; }
}

@media (max-width: 680px) {
    .hp-drops-grid { grid-template-columns: repeat(2, 1fr); }
}

.hp-drop-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: visible;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
    position: relative;
    margin-top: 0.75rem;
}

.hp-drop-card:hover {
    transform: translateY(-4px);
}

.hp-drop-card-imgwrap {
    position: relative;
}

.hp-drop-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.hp-drop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.hp-drop-card:hover .hp-drop-card-img img {
    transform: scale(1.05);
}

.hp-drop-noimg {
    color: var(--text-light);
    font-size: 2rem;
    opacity: 0.3;
}

.hp-drop-tag {
    position: absolute;
    top: -0.5rem;
    right: -0.35rem;
    font-family: 'Michroma', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    padding: 0.4rem 0.75rem;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    z-index: 3;
    filter: drop-shadow(0 3px 6px rgba(3,105,161,0.3));
}

.hp-drops-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #e11d48);
    padding: 0.4rem 1.1rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: all 0.2s;
    white-space: nowrap;
}

.hp-drops-viewall:hover {
    filter: brightness(1.1);
    color: #fff;
}

.hp-drops-viewall i {
    font-size: 0.6rem;
}
.hp-drops-timeframe {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #e11d48);
    padding: 0.2rem 0.7rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    margin-left: 0.5rem;
    position: relative;
    top: 2px;
}

.hp-drop-overlay {
    padding: 1.1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    background: var(--primary);
    color: #fff;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    margin-top: -2px;
    position: relative;
}


.hp-drop-brand {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
}

.hp-drop-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-drop-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.hp-drop-prices {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-drop-now {
    font-family: 'Michroma', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hp-drop-was {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    text-decoration: line-through;
}

/* ==================== PRODUCT CARD HOT BADGE ==================== */
.product-card-hot {
    transform: skewX(-4deg);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0.15rem 0.5rem;
    background: #fbbf24;
    color: #78350f;
}

/* ==================== HOMEPAGE BUYING GUIDES ==================== */
.hp-guides-section {
    margin-top: -16px;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 3.5rem 1.5rem 3rem;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    clip-path: polygon(0 16px, 100% 0, 100% calc(100% - 16px), 0 100%);
}

.hp-guides-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.hp-guides-section .section-header h2 {
    color: #e2e8f0;
}

.hp-guides-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #e11d48);
    padding: 0.4rem 1.1rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: all 0.2s;
    white-space: nowrap;
}
.hp-guides-viewall:hover {
    filter: brightness(1.1);
    color: #fff;
}

.hp-guides-slider-wrap {
    position: relative;
}

.hp-guides-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.25rem 0;
}
.hp-guides-track::-webkit-scrollbar { display: none; }

.hp-guides-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) skewX(-2deg);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 40%, #fb7185 100%);
    background-size: 150% 150%;
    background-position: 0% 50%;
    box-shadow: 0 1px 4px rgba(244,63,94,0.15);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-position 0.4s ease, box-shadow 0.25s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-guides-arrow:hover {
    background-position: 100% 50%;
    box-shadow: 0 3px 10px rgba(244,63,94,0.25);
}
.hp-guides-arrow-left { left: -18px; }
.hp-guides-arrow-right { right: -18px; }

.hp-guide-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    flex: 0 0 calc(25% - 0.75rem);
    min-width: 0;
    scroll-snap-align: start;
}

.hp-guide-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

.hp-guide-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.hp-guide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-guide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 2rem;
}

.hp-guide-cat {
    position: absolute;
    bottom: 0.5rem;
    left: 1.2rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    background: var(--primary);
    color: #fff;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.hp-guide-body {
    padding: 1rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.hp-guide-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-guide-excerpt {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-guide-date {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: auto;
}

.hp-guide-date i {
    margin-right: 0.25rem;
}


/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-card);
}

.section-header h2 {
    color: var(--text);
    display: flex;
    align-items: center;
}

/* ==================== PRICE TABLE ==================== */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-card);
}

.price-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-card);
    font-size: 0.875rem;
}

.price-table tr:hover {
    background: var(--search-bg);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #081425 0%, #0c1a30 25%, #132540 55%, #0a1628 80%, #081220 100%);
    color: var(--footer-text);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)) 1;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.footer-logo-mark {
    width: 24px;
    height: 18px;
    color: #e2e8f0;
}

.footer-logo-text {
    font-size: 1rem;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-copyright {
    font-size: 0.7rem;
    color: var(--text-light);
    width: 100%;
    padding-top: 1.5rem;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: 0.825rem;
    color: var(--footer-text);
    padding: 0.15rem 0;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1250px) {
    .cat-link {
        font-size: 0.7rem;
        padding: 0.5rem 0.5rem;
    }
    .cat-link i { font-size: 0.65rem; }
}

@media (max-width: 1000px) {
    .cat-link-secondary { display: none; }
}

@media (max-width: 600px) {
    .cat-link span { display: none; }
    .cat-link { padding: 0.65rem 0.85rem; }
    .cat-link:first-child { padding-left: 0.85rem; }
    .cat-link i { font-size: 1.15rem; }
    .cat-bar-inner { justify-content: center; }
    .cat-links-wrap { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }

    .hp-stats-section { display: none; }
    .hp-drops-timeframe { display: none; }
    .hp-drops .section-header h2 { font-size: 1.2rem; }
    .hp-drops-tabs { flex-wrap: wrap; }
    .hp-drops-tab { font-size: 0.68rem; padding: 0.4rem 0.7rem; }
    .hp-drops-tab i { display: none; }
    .hp-pd-tabs { flex-wrap: wrap; }
    .hp-pd-tab { font-size: 0.68rem; padding: 0.4rem 0.7rem; }
    .hp-pd-tab i { display: none; }
    .hp-guide-card { flex: 0 0 calc(50% - 0.5rem); }

    .grid-products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .grid-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .main { padding-top: 1rem; }

    .retailers-showcase {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
    .retailers-info { flex: none; width: 100%; }
    .retailers-stats { justify-content: center; }
    .retailers-mosaic { justify-content: center; }
    .grid-brands {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-links { gap: 2rem; }

}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light);
    min-height: 2.1rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--border-card);
    margin: 0 0.15rem;
}

.breadcrumb span:last-of-type {
    color: var(--text-mid);
    font-weight: 500;
}

.breadcrumb-share {
    margin-left: auto;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.breadcrumb-share a,
.breadcrumb-share button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.breadcrumb-share svg {
    width: 15px;
    height: 15px;
}
.breadcrumb-share a:hover,
.breadcrumb-share button:hover {
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--border-card);
}

/* ==================== PRODUCT PAGE ==================== */
.product-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

/* Top: image + info */
.pp-top {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.pp-image {
    position: relative;
    z-index: 0;
    background: transparent;
}

.pp-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-2deg);
}

.pp-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 1.5rem;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.image-modal.active {
    display: flex;
}
.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    cursor: default;
}
.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.image-modal-close:hover {
    opacity: 1;
}

.pp-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    color: var(--text-light);
    font-size: 3rem;
}

/* Info panel */
.pp-brand {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    text-decoration: none;
}

.pp-brand:hover {
    color: var(--accent);
}

.pp-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0.5rem 0 1rem;
    color: var(--text);
}

.pp-price-summary {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.pp-price-main {
    font-family: 'Michroma', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.pp-price-range {
    font-size: 1rem;
    color: var(--text-light);
}

.pp-retailer-count {
    font-size: 0.8rem;
    color: var(--text-light);
    position: relative;
    z-index: 0;
    padding: 0.15rem 0.6rem;
}

.pp-retailer-count::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cheapest-bg);
    transform: skewX(-4deg);
}

.pp-price-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pp-price-line-refurb {
    margin-top: 0.1rem;
}
.pp-price-line-refurb .pp-price-main {
    font-size: 1.2rem;
    color: #5b9bd5;
}
.pp-price-line-refurb .pp-retailer-count {
    font-size: 0.7rem;
}
.pp-price-line .pp-title-icon {
    font-size: 0.85rem;
    height: auto;
    padding: 0.3em 0.7em;
}
.pp-price-line-refurb .pp-title-icon {
    font-size: 0.6em;
    padding: 0.2em 0.6em;
}

/* Share buttons */
.pp-share {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pp-share a,
.pp-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 6.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-card);
    background: var(--bg-card-solid);
    color: var(--text-light);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s, color 0.2s;
}

.pp-share a:hover,
.pp-share button:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--text);
    text-decoration: none;
}

/* Key specs */
.pp-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.pp-spec {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-mid);
}

.pp-spec-label {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    margin-right: 0.4rem;
}

.pp-spec a {
    color: var(--primary);
    text-decoration: none;
}

.pp-spec a:hover { color: var(--accent); }

/* ==================== PRICE COMPARISON SECTION ==================== */
.pp-prices-section {
    margin-bottom: 2.5rem;
}

.pp-section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-card);
}

.pp-section-sub {
    font-weight: 400;
}

.pp-section-sub i {
    color: var(--primary);
    font-size: 0.85rem;
    opacity: 0.6;
    vertical-align: 1px;
    margin-right: 0.2rem;
}

/* Comparison header: title + last checked */
.pp-comparison-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-card);
}
.pp-comparison-header .pp-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.pp-last-checked {
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.5;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 0.02em;
}

/* Savings badge next to Cheapest */
.pp-savings-badge {
    font-size: 0.7rem;
    color: var(--primary);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
}

.pp-prices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pp-price-row {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
}

.pp-price-row::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-2deg);
    transition: box-shadow 0.25s;
}

.pp-price-row:hover::before {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Cheapest row highlight */
.pp-cheapest::before {
    border-color: var(--primary);
    background: var(--cheapest-bg);
}

/* Retailer column */
.pp-price-retailer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pp-retailer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.pp-retailer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.pp-cheapest-badge {
    display: inline-block;
    color: var(--cheapest-text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    position: relative;
    z-index: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pp-cheapest-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cheapest-bg);
    transform: skewX(-4deg);
}

.pp-cheapest .pp-cheapest-badge::before {
    background: rgba(3,105,161,0.15);
}


/* Details column (stock + shipping) */
.pp-price-details {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    text-align: right;
}

.pp-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pp-in-stock { color: #16a34a; }
.pp-out-stock { color: var(--accent); }

.pp-shipping {
    color: var(--text-light);
    font-size: 0.75rem;
    border-left: 1px solid var(--border-card);
    padding-left: 0.6rem;
}

.pp-free-delivery { color: #16a34a; }

/* Out of stock row - grey everything out */
.pp-oos {
    opacity: 0.4;
    filter: grayscale(100%);
}

.pp-oos .pp-cheapest-badge { display: none; }

/* Refurbished badge in price rows (parallelogram matching cheapest) */
.pp-refurb-badge {
    display: inline-block;
    color: #3a2e00;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.5rem;
    position: relative;
    z-index: 0;
}
.pp-refurb-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #f5c518;
    transform: skewX(-4deg);
}

/* Title icons (parallelogram) */
.pp-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 2.0em;
    height: 2.0em;
    padding: 0.2em 0.6em;
    font-size: 0.7em;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    top: 1px;
    z-index: 0;
    white-space: nowrap;
}
.pp-title-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: skewX(-4deg);
    border-radius: 2px;
}
.pp-title-icon-new { color: #0a4a5e; }
.pp-title-icon-new::before { background: #67e8f9; }
.pp-title-icon-refurb { color: #3a2e00; }
.pp-title-icon-refurb::before { background: #f5c518; }

/* Refurbished subheader */
.pp-refurb-subheader {
    padding: 0.75rem 0 0.25rem;
}
.pp-refurb-subheader-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

/* Price column */
.pp-price-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    justify-content: flex-end;
}

.pp-was-price {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #5b9bd5;
    text-decoration: line-through;
}

.pp-current-price {
    font-family: 'Michroma', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

/* Buy button */
.pp-buy-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* No prices message */
.pp-no-prices {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Description */
.pp-description {
    margin-bottom: 2.5rem;
}

.pp-desc-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    transition: max-height 0.4s ease;
}

.pp-desc-text p {
    margin-bottom: 1rem;
}

.pp-desc-text p:last-child {
    margin-bottom: 0;
}

.pp-desc-collapsed {
    max-height: 150px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.pp-desc-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0 0;
    transition: color 0.2s;
}

.pp-desc-toggle:hover {
    color: var(--accent);
}

/* ==================== PRICE HISTORY CHART ==================== */
.pp-history-section {
    margin-bottom: 2.5rem;
}

.pp-chart-wrap {
    position: relative;
    z-index: 0;
    padding: 1.25rem;
    background: transparent;
}

.pp-chart-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transform: skewX(-1deg);
}

.pp-chart-wrap canvas {
    display: block;
    width: 100%;
}

/* ==================== PRODUCT SLIDER ==================== */
.pp-related-section {
    margin-bottom: 2.5rem;
}

.pp-slider-wrap {
    position: relative;
}

.pp-slider-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0 1.5rem;
    scrollbar-width: none;
    cursor: grab;
}

.pp-slider-track:active {
    cursor: grabbing;
}

.pp-slider-track::-webkit-scrollbar {
    display: none;
}

.pp-slider-card {
    flex: 0 0 220px;
    min-width: 220px;
    scroll-snap-align: start;
}

.pp-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) skewX(-2deg);
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 40%, #fb7185 100%);
    background-size: 150% 150%;
    background-position: 0% 50%;
    box-shadow: 0 1px 4px rgba(244,63,94,0.15);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background-position 0.4s ease, box-shadow 0.25s;
}

.pp-slider-btn:hover {
    background-position: 100% 50%;
    box-shadow: 0 3px 10px rgba(244,63,94,0.25);
}

.pp-slider-left { left: -44px; }
.pp-slider-right { right: -44px; }

/* ==================== RETAILER INFO ON CARDS ==================== */
.card-cheapest-from {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.card-retailers {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-card);
}

.card-retailer-logo {
    width: 21px;
    height: 21px;
    overflow: hidden;
    transform: skewX(-2deg);
    border: 1px solid var(--border-card);
    background: var(--bg-card-solid);
}

.card-retailer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: skewX(2deg) scale(1.15);
}

/* ==================== CATEGORY PAGE ==================== */
.category-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.cp-intro {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 0;
    background: transparent;
}

.cp-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(3,105,161,0.04) 100%);
    border: 1px solid var(--border-card);
    border-left: 3px solid var(--primary);
    transform: skewX(-1deg);
}

.cp-intro p {
    margin: 0 0 0.6rem;
}

.cp-intro p:last-child {
    margin-bottom: 0;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.75;
}

.cp-intro p:first-child::first-line {
    color: var(--text);
    font-weight: 600;
}

.cp-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-card);
    flex-wrap: wrap;
}

.cp-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.5rem;
}

.cp-title i {
    color: var(--primary);
    font-size: 1.15rem;
    position: relative;
    top: -0.08em;
}

.cp-count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.cp-controls {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.cp-filter,
.cp-sort {
    display: flex;
}
.cp-filter select,
.cp-sort select {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    padding: 0.45rem 2.25rem 0.45rem 0.75rem;
    width: 100%;
    background: var(--bg-card-solid);
    color: var(--text);
    border: 1px solid var(--border-card);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.cp-filter select:focus,
.cp-sort select:focus {
    border-color: var(--primary);
}

/* Sub-search / keyword filter */
.cp-subsearch {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    background: var(--bg-card-solid);
    transition: border-color 0.2s;
}
.cp-subsearch:focus-within {
    border-color: var(--primary);
}
.cp-subsearch-input {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: transparent;
    color: var(--text);
    outline: none;
    width: 160px;
}
.cp-subsearch-input::placeholder {
    color: var(--text-light);
}
.cp-subsearch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}
.cp-subsearch-btn:hover {
    color: var(--accent);
}

/* In-stock toggle */
.cp-stock-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    box-sizing: border-box;
}
.cp-stock-toggle:hover {
    color: var(--text);
}
.cp-stock-toggle.active {
    color: var(--primary);
}
.cp-stock-toggle i {
    font-size: 0.95rem;
}

/* Filter tab clear button */
.bp-tab-clear {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    color: var(--text-light);
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}
.bp-tab-clear:hover {
    opacity: 1;
    color: var(--danger, #e53e3e);
}

/* View toggle */
.cp-view-toggle {
    display: flex;
    gap: 4px;
    align-self: stretch;
}
.cp-view-toggle .view-btn {
    height: auto;
    padding: 0.35rem 0;
}
.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    border: 1px solid var(--border-card);
    background: rgba(0,0,0,0.08);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0;
    box-sizing: border-box;
    transform: skewX(-4deg);
    transition: all 0.15s;
}
.view-btn:hover { color: var(--text); border-color: var(--text-light); }
.view-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Products table */
.products-table-wrap {
    overflow-x: auto;
}
.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.products-table thead th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.products-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.products-table tbody tr:hover {
    background: rgba(0,0,0,0.04);
}
.pt-img-cell {
    width: 60px;
    padding: 0.4rem 0.5rem;
}
.pt-img-cell img,
.pt-no-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    transform: skewX(-4deg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.pt-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.pt-name-cell {
    padding: 0.5rem 0.75rem;
    max-width: 400px;
}
.pt-name-cell a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}
.pt-name-cell a:hover {
    color: var(--primary);
}
.pt-refurb,
.pt-pricedrop {
    display: inline-block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-left: 6px;
    transform: skewX(-4deg);
    vertical-align: middle;
}
.pt-refurb {
    background: #f5c518;
    color: #3a2e00;
}
.pt-pricedrop {
    background: #4fc3f7;
    color: #0a2a3a;
}
.pt-saving {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #5b9bd5;
    margin-top: 2px;
    text-decoration: line-through;
}
.pt-brand-cell {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    color: var(--text-mid);
}
.pt-price-cell {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    font-weight: 600;
    font-family: 'Chakra Petch', sans-serif;
    color: var(--primary);
}
.pt-retailers-cell {
    padding: 0.5rem 0.75rem;
}
.th-sort {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.15s;
}
.th-sort:hover {
    color: var(--text);
}
.th-sort.active {
    color: var(--primary);
}
.th-sort i {
    font-size: 0.6rem;
    opacity: 0.5;
}
.th-sort.active i {
    opacity: 1;
}

.pt-retailers-cell .card-retailers {
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Pagination */
.cp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-card);
}

.cp-page-info {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Empty state */
.cp-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
}

.cp-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

.cp-empty p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ==================== BRAND PAGE ==================== */
.brand-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.bp-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-card);
    flex-wrap: wrap;
}

.bp-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bp-title-logo {
    height: 1.5rem;
    width: auto;
    object-fit: contain;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.bp-count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.bp-description {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.bp-controls {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.bp-controls select {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    padding: 0.45rem 2.25rem 0.45rem 0.75rem;
    background: var(--bg-card-solid);
    color: var(--text);
    border: 1px solid var(--border-card);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.bp-controls select:focus {
    border-color: var(--primary);
}

.bp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-card);
    padding-bottom: 0;
}

.bp-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.bp-tab:hover {
    color: var(--accent);
}

.bp-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.bp-tab-count {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.bp-tab.active .bp-tab-count {
    color: var(--accent);
    opacity: 0.7;
}

.bp-tab-drops {
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 4px 4px 0 0;
}
.bp-tab-drops i {
    margin-right: 0.15rem;
}
.bp-tab-drops.active {
    color: #fff;
    background: #4fc3f7;
    border-bottom-color: #4fc3f7;
}
.bp-tab-drops.active .bp-tab-count {
    color: #fff;
    opacity: 0.85;
}

/* ==================== PRODUCT PAGE RESPONSIVE ==================== */
@media (max-width: 1000px) {
    .pp-price-row {
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto auto;
    }

    .pp-price-retailer { grid-column: 1; grid-row: 1; }
    .pp-price-amount { grid-column: 2; grid-row: 1; }
    .pp-buy-btn { grid-column: 3; grid-row: 1; }
    .pp-price-details { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
}

@media (max-width: 900px) {
    .pp-top {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pp-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pp-image img {
        max-width: 320px;
        margin: 0 auto;
    }

    .pp-price-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.4rem 1rem;
    }

    .pp-price-retailer { grid-column: 1; grid-row: 1; }
    .pp-price-amount { grid-column: 2; grid-row: 1; justify-content: flex-end; }
    .pp-price-details { display: none; }
    .pp-buy-btn { grid-column: 1 / -1; grid-row: 2; text-align: center; margin-top: 0.4rem; }

    .pp-title { font-size: 1.25rem; }
    .pp-price-main { font-size: 1.5rem; }
    .pp-price-line-refurb .pp-price-main { font-size: 1.1rem; }
    .pp-specs { display: none; }
    .pp-share { margin-bottom: 0; }
    .pp-history-section { display: none; }
    .price-dist-section { display: none; }
    .pp-comparison-header { flex-direction: column; gap: 0.25rem; }
    .pp-savings-badge { display: none; }
}

@media (max-width: 1000px) {
    .cp-header {
        flex-direction: column;
        align-items: stretch;
    }
    .cp-controls {
        flex-wrap: wrap;
    }
    .cp-filter,
    .cp-sort {
        flex: 1 1 0;
    }
    .cp-filter select,
    .cp-sort select {
        width: 100%;
    }
    .cp-subsearch {
        flex: 1 1 100%;
    }
    .cp-subsearch-input {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 500px) {
    .breadcrumb > a,
    .breadcrumb > span,
    .breadcrumb > .breadcrumb-sep { display: none; }
    .breadcrumb { padding: 0.35rem 1.5rem; margin-bottom: -0.5rem; }
    .breadcrumb-share {
        margin-left: 0;
        flex: 1;
        gap: 0.3rem;
    }
    .breadcrumb-share a,
    .breadcrumb-share button {
        flex: 1;
        width: auto;
        height: auto;
        padding: 0.45rem 0;
        border-radius: 0;
        clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    }
    .breadcrumb-share svg {
        width: 18px;
        height: 18px;
    }
    .pp-share { flex-wrap: nowrap; }
    .pp-share a span,
    .pp-share button span { display: none; }
    .pp-share a,
    .pp-share button { min-width: 0; flex: 1; padding: 0.5rem; }
}

@media (max-width: 480px) {
    .logo-text { display: none; }
    .grid-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .pp-cheapest-badge { display: none; }
    .retailers-stats { flex-wrap: wrap; gap: 1rem 1.5rem; }
    .retailer-tile { width: 2.5rem; height: 2.5rem; }
    .grid-brands { grid-template-columns: repeat(3, 1fr); }
    .hp-stats-numbers { grid-template-columns: repeat(2, 1fr); }
    .hp-stat { padding: 0.5rem 0.25rem; }
    .hp-stat-number { font-size: 0.85rem; }
    .hp-stat-emoji { font-size: 0.8rem; }
    .hp-stat-label { font-size: 0.45rem; }
    .hp-stats-section { padding-left: 1rem; padding-right: 1rem; }
    .hp-drops-tabs { gap: 0.2rem; }
    .hp-drops-tab { font-size: 0.58rem; padding: 0.3rem 0.5rem; }
    .hp-pd-tabs { gap: 0.2rem; }
    .hp-pd-tab { font-size: 0.58rem; padding: 0.3rem 0.5rem; }
    .hp-guide-card { flex: 0 0 calc(100% - 0.5rem); }
    .hp-guides-section { clip-path: polygon(0 10px, 100% 0, 100% calc(100% - 10px), 0 100%); }
}

/* ==================== 404 / ERROR PAGE ==================== */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 640px;
    margin: 0 auto;
}
.error-code {
    font-family: 'Michroma', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.error-text {
    color: var(--text-mid);
    margin-bottom: 2rem;
}
.error-search { margin-bottom: 2rem; }
.error-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}
.error-search-form .search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--search-border);
    border-radius: 6px;
    background: var(--search-bg);
    color: var(--text);
    font-size: 0.9rem;
}
.error-cats { margin-top: 1.5rem; }
.error-cats-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 1rem;
}
.error-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.error-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    color: var(--text-mid);
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.error-cat-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==================== STATIC PAGES ==================== */
.static-page {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.static-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.static-content h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}
.static-content p {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.static-content a {
    color: var(--primary);
}

/* ==================== IMAGE PLACEHOLDERS ==================== */
.product-card-img.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg);
    position: relative;
}
.product-card-img.no-image i {
    font-size: 2rem;
    opacity: 0.5;
}
.pp-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--bg);
    color: var(--text-light);
    border-radius: 8px;
}
.pp-no-image i { font-size: 3rem; opacity: 0.4; }

/* ==================== GUIDES / ARTICLES ==================== */
.guides-page {
    padding: 0 0 1.5rem;
}
.guides-page .section-title {
    margin-bottom: 1.5rem;
}
.guides-empty {
    color: var(--text-mid);
    text-align: center;
    padding: 3rem 1rem;
}
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover {
    transform: translateY(-3px);
    filter: brightness(0.97);
}
.guide-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
    margin-top: 2rem;
}
.guide-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.guide-card-img.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-light);
}
.guide-card-img.no-image i { font-size: 2rem; opacity: 0.4; }
.guide-card-cat {
    position: absolute;
    bottom: 0.5rem;
    left: 2rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    background: var(--primary);
    color: #fff;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.badge-pp-logo {
    width: 1.1em;
    height: 0.8em;
    vertical-align: -0.05em;
    margin-right: 0.15em;
}
.guide-card-body { padding: 2rem; }
.guide-card-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.guide-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.guide-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Article detail page */
.breadcrumb-guide {
    padding: 1rem 0 1.5rem;
}
.guide-article {
    padding: 0;
}
.guide-header {
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--bg-card-solid);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
    padding: 1.5rem calc(50vw - 50%) 2rem;
    overflow: hidden;
}
.guide-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}
.guide-header-text {
    max-width: 60%;
}
.guide-header-img {
    position: absolute;
    top: -1.5rem;
    bottom: -2rem;
    right: 0;
    width: 38%;
    overflow: hidden;
    z-index: 0;
}
.guide-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.guide-cat-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.75rem;
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.guide-cat-badge:hover { background: var(--accent); color: #fff; text-decoration: none; }
.guide-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.guide-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.guide-meta i { margin-right: 0.3rem; }
.guide-price-note {
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.7;
    margin-top: 0.6rem;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .guide-title { font-size: 1.4rem; }
    .guide-header-text { max-width: 65%; }
    .guide-header-img { width: 30%; }
}
@media (max-width: 500px) {
    .guide-header { padding: 1.25rem 0 1.5rem; }
    .guide-header-text { max-width: 100%; }
    .guide-header-img { display: none; }
}
.guide-image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.guide-image-row-item {
    margin: 0;
    overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.guide-image-row-item img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.guide-image-row-item figcaption {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
}
/* Image lightbox */
.guide-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.guide-lightbox.active { display: flex; }
.guide-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    object-fit: contain;
}
.guide-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.guide-lightbox-close:hover { opacity: 1; }
.guide-body {
    color: var(--text);
    line-height: 1.65;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}
.guide-section {
    position: relative;
    padding: 2.5rem calc(50vw - 50%);
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
}
.guide-section-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.guide-section:nth-child(even) {
    background: linear-gradient(165deg, #f1f5f9 0%, #e8f0fe 50%, #f1f5f9 100%);
    clip-path: polygon(0 14px, 100% 0, 100% calc(100% - 14px), 0 100%);
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.guide-body h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem;
    letter-spacing: 0.01em;
}
.guide-body h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.5rem;
    letter-spacing: 0.01em;
}
.guide-body p { margin-bottom: 1.1rem; }
.guide-body p:last-child { margin-bottom: 0; }
.guide-body p strong {
    color: var(--text);
    font-weight: 700;
}
.guide-body p em {
    color: var(--text-light);
    font-style: italic;
}
.guide-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.guide-body a:hover { color: var(--accent); }
.guide-body ul, .guide-body ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
}
.guide-body li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.guide-body li::marker { color: var(--primary); }
.guide-body img {
    max-width: 100%;
    margin: 1.25rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
/* Floated body images - parallelogram newspaper style */
.guide-float-img {
    width: 38%;
    margin-bottom: 1rem;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    box-shadow: 0 3px 16px rgba(0,0,0,0.1);
}
.guide-float-img.float-left {
    float: left;
    margin-right: 1.75rem;
    margin-left: 0;
}
.guide-float-img.float-right {
    float: right;
    margin-left: 1.75rem;
    margin-right: 0;
}
.guide-float-img img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.guide-float-img figcaption {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.85);
}
.guide-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: color-mix(in srgb, var(--primary) 5%, var(--bg-card-solid));
    font-style: italic;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    clear: both;
}
.guide-body blockquote strong {
    color: var(--primary);
    font-weight: 700;
}
.guide-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-card);
    clear: both;
}
.guide-body thead { background: var(--primary); }
.guide-body th {
    padding: 0.75rem 1rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    border: none;
    text-align: left;
}
.guide-body td {
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border-card);
    font-size: 0.95rem;
}
.guide-body tbody tr:last-child td { border-bottom: none; }
.guide-body tbody tr:nth-child(even) { background: var(--bg); }
.guide-body tbody tr:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }

.guide-section:last-child {
    padding-bottom: 1.5rem;
}

/* Article sign-off */
.guide-signoff {
    padding: 0.5rem 0 0;
    opacity: 0.15;
}
.guide-signoff-logo {
    width: 60px;
    height: 42px;
    color: var(--text);
}

/* Charts */
.guide-chart {
    margin: 1.5rem 0;
    padding: 1.75rem 4rem;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.guide-chart canvas {
    max-height: 400px;
}

@media (max-width: 800px) {
    .guide-chart { display: none; }
    .cp-intro { display: none; }
}

@media (max-width: 768px) {
    .guide-float-img { width: 45%; }
    .guide-float-img.float-left { margin-right: 1rem; }
    .guide-float-img.float-right { margin-left: 1rem; }
    .guide-section { padding: 1.75rem calc(50vw - 50%); }
    .guide-section:nth-child(even) { padding-top: 2.25rem; padding-bottom: 2.25rem; }
    .guide-section-inner { padding: 0 1rem; }
}
@media (max-width: 500px) {
    .guide-float-img { width: 100%; float: none; margin: 1rem 0; }
    .guide-float-img.float-left, .guide-float-img.float-right { margin-left: 0; margin-right: 0; }
    .guide-header { padding: 1.25rem 1rem 1rem; }
    .guide-title { font-size: 1.4rem; }
    .guide-body table { font-size: 0.85rem; }
    .guide-body td, .guide-body th { padding: 0.5rem 0.6rem; }
    .guide-section:nth-child(even) { clip-path: polygon(0 8px, 100% 0, 100% calc(100% - 8px), 0 100%); }
}

