/*
Theme Name: PrismaFind
Theme URI: https://prismafind.com
Author: PrismaFind
Author URI: https://prismafind.com
Description: Tema afiliado de Amazon optimizado para AAWP, con panel de administración, catálogo de productos, categorías estructuradas y diseño moderno y premium.
Version: 2.2.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prismafind
Tags: e-commerce, affiliate, amazon, aawp, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, grid-layout
*/

/* ================================================================
   VARIABLES Y RESET
   ================================================================ */
:root {
    --pf-primary: #232f3e;
    --pf-accent: #ff9900;
    --pf-primary-dark: #131a22;
    --pf-primary-light: #2d4156;
    --pf-accent-dark: #e88b00;
    --pf-accent-light: #ffb84d;
    --pf-text-dark: #0f1923;
    --pf-text-muted: #565959;
    --pf-text-light: #848688;
    --pf-bg-light: #f7f8fa;
    --pf-bg-white: #ffffff;
    --pf-card-bg: #ffffff;
    --pf-border: #e7e9ec;
    --pf-border-light: #f0f2f5;
    --pf-price: #b12704;
    --pf-success: #2e7d32;
    --pf-warning: #f9a825;
    --pf-error: #c62828;
    --pf-radius-sm: 8px;
    --pf-radius: 12px;
    --pf-radius-lg: 16px;
    --pf-radius-xl: 24px;
    --pf-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --pf-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --pf-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --pf-shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --pf-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pf-font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --pf-container: 1280px;
    --pf-header-h: 64px;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--pf-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pf-text-dark);
    background: var(--pf-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pf-font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: var(--pf-text-dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

a { color: var(--pf-primary); text-decoration: none; transition: color var(--pf-transition); }
a:hover { color: var(--pf-accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem 1.5rem; padding: 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100000;
    background: var(--pf-accent);
    color: #111;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--pf-radius-sm) 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; top: 0; }

/* ================================================================
   LAYOUT
   ================================================================ */
.pf-container {
    max-width: var(--pf-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.pf-narrow { max-width: 800px; }

.pf-site { min-height: 100vh; display: flex; flex-direction: column; }
.pf-site-content { flex: 1; }
.pf-site-main { padding: 2rem 0; }

/* ================================================================
   HEADER
   ================================================================ */
.pf-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--pf-primary);
    transition: box-shadow var(--pf-transition);
}
.pf-header-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.pf-top-bar {
    background: var(--pf-primary-dark);
    color: #adb5bd;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}
.pf-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pf-top-bar a { color: #adb5bd; }
.pf-top-bar a:hover { color: var(--pf-accent); }
.pf-top-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.pf-top-tagline { opacity: 0.8; }

.pf-social-icons { display: flex; gap: 0.6rem; align-items: center; }
.pf-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #adb5bd;
    transition: all var(--pf-transition);
}
.pf-social-icons a:hover {
    background: var(--pf-accent);
    color: #111;
    transform: translateY(-2px);
}

.pf-header-main {
    background: var(--pf-primary);
    padding: 0.75rem 0;
}
.pf-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pf-mobile-toggle { display: none; }

.pf-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pf-menu-toggle-bar {
    width: 24px; height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--pf-transition);
}

.pf-site-branding { flex-shrink: 0; }
.pf-site-title {
    font-family: var(--pf-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.pf-site-title:hover { text-decoration: none; }
.pf-logo-text { color: #fff; letter-spacing: -0.02em; }
.pf-logo-accent { color: var(--pf-accent); }
.pf-site-logo img { max-height: 48px; width: auto; }

.pf-header-search {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}

.pf-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--pf-radius-sm);
    overflow: hidden;
    transition: all var(--pf-transition);
}
.pf-search-form:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: var(--pf-accent);
}
.pf-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    font-family: var(--pf-font-body);
}
.pf-search-input::placeholder { color: rgba(255,255,255,0.5); }
.pf-search-btn {
    background: var(--pf-accent);
    border: none;
    color: #111;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--pf-transition);
}
.pf-search-btn:hover { background: var(--pf-accent-dark); }

.pf-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pf-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

/* Primary nav */
.pf-primary-nav {
    background: var(--pf-primary-light);
    padding: 0;
}
.pf-primary-nav .pf-container {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}
.pf-primary-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.pf-primary-nav li { position: relative; }
.pf-primary-nav a {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
    transition: all var(--pf-transition);
    position: relative;
}
.pf-primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: var(--pf-accent);
    transition: all var(--pf-transition);
    transform: translateX(-50%);
}
.pf-primary-nav a:hover,
.pf-primary-nav a.active {
    color: var(--pf-accent);
    background: rgba(255,255,255,0.05);
}
.pf-primary-nav a:hover::after,
.pf-primary-nav a.active::after { width: 60%; }

/* Sub-menu */
.pf-primary-nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 0 0 var(--pf-radius-sm) var(--pf-radius-sm);
    box-shadow: var(--pf-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--pf-transition);
    z-index: 100;
}
.pf-primary-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pf-primary-nav .sub-menu a {
    color: var(--pf-text-dark);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--pf-border-light);
}
.pf-primary-nav .sub-menu a:hover { background: var(--pf-bg-light); color: var(--pf-accent); }

/* Mobile overlay */
.pf-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--pf-transition);
}
.pf-mobile-overlay.active { display: block; opacity: 1; }
body.pf-nav-overflow { overflow: hidden; }

/* ================================================================
   HERO
   ================================================================ */
.pf-hero {
    position: relative;
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}
.pf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35,47,62,0.85) 0%, rgba(45,65,86,0.75) 100%);
}
.pf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.pf-hero-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.pf-hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.pf-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--pf-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--pf-font-body);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--pf-transition);
    line-height: 1.4;
}
.pf-btn-primary {
    background: var(--pf-accent);
    color: #111;
}
.pf-btn-primary:hover {
    background: var(--pf-accent-dark);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.3);
}
.pf-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.pf-btn-outline:hover {
    border-color: var(--pf-accent);
    color: var(--pf-accent);
}
.pf-btn-amazon {
    background: var(--pf-accent);
    color: #111;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: var(--pf-radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--pf-transition);
}
.pf-btn-amazon:hover {
    background: var(--pf-accent-dark);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.35);
}
.pf-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ================================================================
   SECTION TITLES
   ================================================================ */
.pf-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.pf-section-subtitle {
    text-align: center;
    color: var(--pf-text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ================================================================
   CATEGORY CARDS
   ================================================================ */
.pf-categories { padding: 3.5rem 0; background: #fff; }
.pf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.pf-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--pf-bg-light);
    border-radius: var(--pf-radius-lg);
    text-decoration: none;
    color: var(--pf-text-dark);
    transition: all var(--pf-transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.pf-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,153,0,0.05) 100%);
    opacity: 0;
    transition: opacity var(--pf-transition);
}
.pf-category-card:hover {
    background: #fff;
    border-color: var(--pf-accent);
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-md);
    color: var(--pf-text-dark);
}
.pf-category-card:hover::before { opacity: 1; }
.pf-category-icon {
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pf-primary);
    color: var(--pf-accent);
    margin-bottom: 1rem;
    transition: all var(--pf-transition);
}
.pf-category-card:hover .pf-category-icon {
    background: var(--pf-accent);
    color: var(--pf-primary);
    transform: scale(1.1);
}
.pf-cat-mujer .pf-category-icon { background: #8e3a6b; color: #f8b4d9; }
.pf-cat-hombre .pf-category-icon { background: #1a3a5c; color: #6bb6ff; }
.pf-cat-ninas .pf-category-icon { background: #c2185b; color: #f8bbd0; }
.pf-cat-ninos .pf-category-icon { background: #1565c0; color: #90caf9; }
.pf-cat-bebes .pf-category-icon { background: #6a1b9a; color: #ce93d8; }
.pf-category-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.pf-category-desc { font-size: 0.82rem; color: var(--pf-text-muted); margin-bottom: 0.75rem; line-height: 1.4; }
.pf-category-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pf-accent-dark);
    background: rgba(255,153,0,0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

/* ================================================================
   WELCOME TEXT
   ================================================================ */
.pf-welcome-text {
    padding: 2.5rem 0;
    background: var(--pf-bg-light);
    text-align: center;
}
.pf-welcome-text p {
    font-size: 1.05rem;
    color: var(--pf-text-muted);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================================================
   PRODUCT GRID & CARDS
   ================================================================ */
.pf-products { padding: 3rem 0 4rem; }
.pf-featured {
    padding: 3rem 0;
    background: linear-gradient(180deg, #fffaf2 0%, #fff 100%);
    border-top: 1px solid rgba(255, 153, 0, 0.12);
    border-bottom: 1px solid var(--pf-border-light);
}
.pf-featured-list { margin-top: 1.25rem; }

/* Most viewed section */
.pf-most-viewed { padding: 2.5rem 0 1rem; }
.pf-most-viewed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
@media (max-width: 600px) {
    .pf-most-viewed-list { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 400px) {
    .pf-most-viewed-list { grid-template-columns: 1fr; }
}
.pf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pf-product-card {
    background: var(--pf-card-bg);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    border: 1px solid var(--pf-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--pf-transition);
    position: relative;
    opacity: 1;
    transform: translateY(0);
}
html.pf-js-ready .pf-product-card {
    opacity: 0;
    transform: translateY(20px);
}
html.pf-js-ready .pf-product-card.pf-animate-in {
    opacity: 1;
    transform: translateY(0);
}
.pf-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-lg);
    border-color: var(--pf-accent);
}

.pf-discount-badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    background: var(--pf-price);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: var(--pf-radius-sm);
    box-shadow: 0 2px 8px rgba(177,39,4,0.3);
}
.pf-discount-large { font-size: 0.9rem; padding: 0.35rem 0.7rem; }

.pf-prime-badge {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    background: var(--pf-primary);
    color: var(--pf-accent);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: var(--pf-radius-sm);
    letter-spacing: 0.03em;
}

.pf-product-image {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.pf-product-image a { display: block; width: 100%; text-align: center; }
.pf-product-image img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.4s ease;
}
.pf-product-card:hover .pf-product-image img { transform: scale(1.08); }
.pf-no-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pf-bg-light);
    color: var(--pf-text-light);
    font-size: 0.85rem;
}

.pf-product-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.pf-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.pf-product-title a { color: var(--pf-text-dark); }
.pf-product-title a:hover { color: var(--pf-accent); }

.pf-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.pf-star { color: #ddd; line-height: 1; }
.pf-star-full { color: #ffa41c; }
.pf-star-half {
    color: #ffa41c;
    background: linear-gradient(90deg, #ffa41c 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pf-review-count {
    margin-left: 0.4rem;
    font-size: 0.75rem;
    color: var(--pf-text-light);
    font-weight: 500;
}

.pf-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.pf-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pf-price);
}
.pf-old-price {
    font-size: 0.9rem;
    color: var(--pf-text-light);
    text-decoration: line-through;
}

.pf-product-excerpt {
    font-size: 0.82rem;
    color: var(--pf-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-product-footer { padding: 0 1.25rem 1.25rem; }

/* ================================================================
   SINGLE PRODUCT
   ================================================================ */
.pf-single-main { padding: 1.5rem 0 3rem; }

.pf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    color: var(--pf-text-light);
}
.pf-breadcrumb a { color: var(--pf-text-muted); }
.pf-breadcrumb a:hover { color: var(--pf-accent); }
.pf-breadcrumb-sep { opacity: 0.5; }
.pf-breadcrumb-current { color: var(--pf-text-dark); font-weight: 600; }

.pf-single-product { background: #fff; }

.pf-single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-align: left;
}

.pf-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.pf-single-image-wrap {
    position: relative;
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pf-border);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-single-image-wrap img { max-height: 450px; width: auto; margin: 0 auto; }

.pf-single-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.pf-single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.pf-single-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1rem 0;
}
.pf-single-price { font-size: 1.75rem; font-weight: 800; color: var(--pf-price); }
.pf-single-old-price { font-size: 1.1rem; color: var(--pf-text-light); text-decoration: line-through; }
.pf-single-save {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pf-success);
    background: rgba(46,125,50,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
.pf-single-prime {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-primary);
    margin-bottom: 1.25rem;
}
.pf-single-prime svg { color: var(--pf-accent); }
.pf-single-actions { margin: 1.5rem 0; }
.pf-single-meta {
    font-size: 0.8rem;
    color: var(--pf-text-light);
    margin-top: 1rem;
}
.pf-meta-label { font-weight: 600; }

.pf-single-content {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pf-border);
}
.pf-content-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.pf-single-content p { line-height: 1.7; color: var(--pf-text-muted); }
.pf-single-content h2, .pf-single-content h3 { margin-top: 2rem; }

.pf-affiliate-disclaimer {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(255,153,0,0.06);
    border-left: 4px solid var(--pf-accent);
    border-radius: var(--pf-radius-sm);
    font-size: 0.82rem;
    color: var(--pf-text-muted);
    line-height: 1.5;
}

.pf-single-tags { margin: 2rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pf-tags-label { font-size: 0.85rem; font-weight: 600; color: var(--pf-text-muted); margin-right: 0.25rem; }
.pf-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: var(--pf-bg-light);
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--pf-text-muted);
    transition: all var(--pf-transition);
}
.pf-tag:hover { background: var(--pf-accent); color: #111; border-color: var(--pf-accent); }

.pf-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--pf-border); }
.pf-aawp-extra { margin: 2rem 0; }

/* ================================================================
   CONTENT LAYOUT (sidebar + main)
   ================================================================ */
.pf-content-layout {
    display: grid;
    gap: 2rem;
}
.pf-content-layout.has-sidebar {
    grid-template-columns: 1fr 320px;
}
.pf-content-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.pf-sidebar { position: sticky; top: calc(var(--pf-header-h) + 1rem); }
.pf-sidebar .widget {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--pf-shadow-sm);
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pf-accent);
}

/* ================================================================
   POST LIST (archives, front page, search)
   ================================================================ */
.pf-post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.pf-post-item {
    background: var(--pf-card-bg, #fff);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    border: 1px solid var(--pf-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--pf-transition);
    position: relative;
}
.pf-post-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-lg);
    border-color: var(--pf-accent);
}

.pf-post-entry-title-wrap {
    padding: 0.6rem 1rem;
    background: var(--pf-bg-light, #f8f9fa);
    border-bottom: 1px solid var(--pf-border-light, #f0f0f0);
    text-align: center;
}
.pf-post-entry-title-wrap a {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pf-text-light);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--pf-transition);
}
.pf-post-entry-title-wrap a:hover { color: var(--pf-accent); }

.pf-post-thumb {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    aspect-ratio: 1;
}
.pf-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}
.pf-post-thumb img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.4s ease;
}
.pf-post-item:hover .pf-post-thumb img { transform: scale(1.08); }
.pf-post-thumb .pf-no-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pf-bg-light);
    color: var(--pf-text-light);
    font-size: 0.85rem;
}

.pf-post-card-info {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-post-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    text-align: left;
}
.pf-post-product-name a { color: var(--pf-text-dark); }
.pf-post-product-name a:hover { color: var(--pf-accent); }
.pf-post-item-excerpt {
    font-size: 0.82rem;
    color: var(--pf-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-post-card-footer { padding: 0 1.25rem 1.25rem; }

/* ================================================================
   ARCHIVE HEADER
   ================================================================ */
.pf-archive-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: #fff;
    border-radius: var(--pf-radius-lg);
    box-shadow: var(--pf-shadow-sm);
}
.pf-archive-title { margin-bottom: 0.5rem; }
.pf-archive-description { color: var(--pf-text-muted); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }
.pf-subcategory-nav {
    max-width: 960px;
    margin: 1.75rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pf-border-light);
}
.pf-subcategory-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.pf-subcategory-label {
    color: var(--pf-text-dark);
    font-size: 0.95rem;
    font-weight: 700;
}
.pf-subcategory-description {
    color: var(--pf-text-light);
    font-size: 0.78rem;
}
.pf-subcategory-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.pf-subcategory-links li {
    min-width: 0;
}
.pf-subcategory-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 58px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    color: var(--pf-text-dark);
    background: #fff;
    box-shadow: var(--pf-shadow-sm);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--pf-transition);
}
.pf-subcategory-links a:hover {
    color: var(--pf-primary);
    border-color: var(--pf-accent);
    background: var(--pf-bg-light);
    box-shadow: var(--pf-shadow-md);
    transform: translateY(-2px);
}
.pf-subcategory-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-subcategory-count {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    gap: 0.25rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: var(--pf-bg-light);
    color: var(--pf-text-light);
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
}
.pf-subcategory-count strong {
    color: var(--pf-primary);
    font-size: 0.78rem;
    font-weight: 700;
}
.pf-archive-meta {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--pf-text-light);
    font-weight: 600;
}
.pf-search-query { color: var(--pf-accent); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--pf-radius-sm);
    background: #fff;
    border: 1px solid var(--pf-border);
    color: var(--pf-text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--pf-transition);
}
.pf-pagination .page-numbers:hover {
    background: var(--pf-primary);
    color: #fff;
    border-color: var(--pf-primary);
}
.pf-pagination .page-numbers.current {
    background: var(--pf-accent);
    color: #111;
    border-color: var(--pf-accent);
}
.pf-pagination .page-numbers.dots { border: none; background: none; }

/* ================================================================
   NO PRODUCTS
   ================================================================ */
.pf-no-products {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}
.pf-no-products svg { color: var(--pf-text-light); margin: 0 auto 1rem; opacity: 0.4; }
.pf-no-products h2 { margin-bottom: 0.5rem; }
.pf-no-products p { color: var(--pf-text-muted); margin-bottom: 1.5rem; }

/* ================================================================
   404
   ================================================================ */
.pf-404-content { text-align: center; padding: 4rem 1rem; }
.pf-404-title {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.pf-404-subtitle { font-size: 1.5rem; margin-bottom: 1rem; }
.pf-404-text { color: var(--pf-text-muted); margin-bottom: 1.5rem; }
.pf-404-actions { margin-top: 1.5rem; }

/* ================================================================
   COMMENTS
   ================================================================ */
.pf-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--pf-border); }
.pf-comments-title { font-size: 1.2rem; margin-bottom: 1.5rem; }
.pf-comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.pf-comment { padding: 1rem 0; border-bottom: 1px solid var(--pf-border-light); }
.pf-comment-body { display: flex; gap: 1rem; }
.pf-comment-avatar { flex-shrink: 0; }
.pf-comment-avatar img { border-radius: 50%; }
.pf-comment-content { flex: 1; }
.pf-comment-meta { margin-bottom: 0.5rem; }
.pf-comment-author { font-weight: 700; font-size: 0.9rem; }
.pf-comment-date { font-size: 0.78rem; color: var(--pf-text-light); margin-left: 0.5rem; }
.pf-comment-text { font-size: 0.88rem; color: var(--pf-text-muted); line-height: 1.6; }
.pf-comment-reply { margin-top: 0.5rem; }
.pf-comment-reply a { font-size: 0.8rem; font-weight: 600; }
.pf-comment-awaiting { font-style: italic; color: var(--pf-warning); }

.pf-comment-form { margin-top: 1.5rem; }
.pf-comment-field { margin-bottom: 1rem; }
.pf-comment-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.pf-comment-field input,
.pf-comment-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    font-family: var(--pf-font-body);
    font-size: 0.9rem;
    transition: border-color var(--pf-transition);
}
.pf-comment-field input:focus,
.pf-comment-field textarea:focus { outline: none; border-color: var(--pf-accent); }

/* ================================================================
   FOOTER
   ================================================================ */
.pf-site-footer {
    background: var(--pf-primary-dark);
    color: #adb5bd;
    margin-top: auto;
}
.pf-footer-widgets { padding: 3rem 0 2rem; }
.pf-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.pf-footer-col .widget-title,
.pf-footer-col h2,
.pf-footer-col h3 {
    color: var(--pf-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.pf-footer-col a { color: #adb5bd; }
.pf-footer-col a:hover { color: var(--pf-accent); }
.pf-footer-col ul { list-style: none; padding: 0; margin: 0; }
.pf-footer-col li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.pf-footer-col p { font-size: 0.85rem; line-height: 1.6; }
.pf-footer-col .pf-social-icons a { background: rgba(255,255,255,0.06); }
.pf-footer-col .pf-search-form { background: rgba(255,255,255,0.06); }

.pf-footer-affiliate {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.pf-footer-affiliate p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 700px;
    font-style: italic;
}
.pf-footer-affiliate-sub { margin-top: 0.3rem !important; font-size: 0.75rem !important; }

.pf-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.25rem 0; }
.pf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.pf-copyright { font-size: 0.8rem; color: #888; margin: 0; }
.pf-copyright a { color: var(--pf-accent); }
.pf-footer-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.pf-footer-nav a { font-size: 0.8rem; color: #888; }
.pf-footer-nav a:hover { color: var(--pf-accent); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.pf-back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--pf-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--pf-transition);
    z-index: 900;
    box-shadow: var(--pf-shadow-md);
}
.pf-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pf-back-to-top:hover { background: var(--pf-accent); color: #111; transform: translateY(-3px); }

/* ================================================================
   PAGE TEMPLATE
   ================================================================ */
.pf-page { background: #fff; border-radius: var(--pf-radius-lg); box-shadow: var(--pf-shadow-sm); padding: 2.5rem; }
.pf-page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--pf-accent); }
.pf-page-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.pf-page-content { line-height: 1.7; }
.pf-page-content p { color: var(--pf-text-muted); }

/* ================================================================
   AAWP COMPATIBILITY
   ================================================================ */
.aawp .aawp-product {
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    margin-bottom: 1.5rem;
    transition: all var(--pf-transition);
    overflow: hidden;
}
.aawp .aawp-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--pf-shadow-lg);
}
.aawp .aawp-product__title { font-size: 1rem; font-weight: 700; color: var(--pf-text-dark); }
.aawp .aawp-product__price { font-size: 1.25rem; font-weight: 800; color: var(--pf-price); }
.aawp .aawp-button {
    background: var(--pf-accent) !important;
    color: #111 !important;
    border: none !important;
    border-radius: var(--pf-radius-sm) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 700 !important;
    transition: all var(--pf-transition) !important;
}
.aawp .aawp-button:hover {
    background: var(--pf-accent-dark) !important;
    transform: translateY(-2px) !important;
}
.aawp .aawp-product__ribbon { background: var(--pf-accent) !important; }
.aawp.aawp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ================================================================
   CATEGORY WATERMARK BACKGROUNDS
   ================================================================ */
body.category-ninos,
body.category-ninas,
body.category-bebes {
    background-color: #fdfbf7;
    background-image: radial-gradient(rgba(255,153,0,0.06) 1px, transparent 1px), radial-gradient(rgba(35,47,62,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}
body.category-mujer { background: linear-gradient(180deg, #fff5f8 0%, var(--pf-bg-light) 200px); }
body.category-hombre { background: linear-gradient(180deg, #f0f4f8 0%, var(--pf-bg-light) 200px); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes pf-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pf-hero-content { animation: pf-fade-in 0.6s ease-out; }
.pf-category-card { animation: pf-fade-in 0.5s ease-out backwards; }
.pf-category-grid .pf-category-card:nth-child(1) { animation-delay: 0.05s; }
.pf-category-grid .pf-category-card:nth-child(2) { animation-delay: 0.1s; }
.pf-category-grid .pf-category-card:nth-child(3) { animation-delay: 0.15s; }
.pf-category-grid .pf-category-card:nth-child(4) { animation-delay: 0.2s; }
.pf-category-grid .pf-category-card:nth-child(5) { animation-delay: 0.25s; }

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 1024px) {
    .pf-content-layout.has-sidebar { grid-template-columns: 1fr; }
    .pf-sidebar { position: static; }
    .pf-single-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pf-single-image-wrap img { max-height: 350px; }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .pf-top-bar { display: none; }

    .pf-subcategory-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .pf-mobile-toggle { display: block; }
    .pf-search-toggle { display: flex; }
    .pf-header-search {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--pf-primary);
        padding: 0.75rem 1.5rem;
        display: none;
        z-index: 10;
    }
    .pf-header-search.pf-search-visible { display: block; }

    .pf-primary-nav {
        position: fixed;
        top: 0; left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--pf-primary);
        padding: 2rem 1.5rem;
        overflow-y: auto;
        transition: left var(--pf-transition);
        z-index: 1001;
    }
    .pf-primary-nav.pf-nav-open { left: 0; }
    .pf-primary-nav ul { flex-direction: column; gap: 0; }
    .pf-primary-nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .pf-primary-nav a::after { display: none; }
    .pf-primary-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
    }
    .pf-primary-nav .sub-menu a { color: #ccc; padding-left: 1.5rem; }

    .pf-hero { padding: 2.5rem 0; }
    .pf-hero-actions { flex-direction: column; }
    .pf-hero-actions .pf-btn { width: 100%; }

    .pf-category-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .pf-footer-bottom-inner { flex-direction: column; text-align: center; }
    .pf-footer-nav ul { flex-wrap: wrap; justify-content: center; }

    .pf-page { padding: 1.5rem; }
    .pf-back-to-top { bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
    .pf-category-grid { grid-template-columns: 1fr; }
    .pf-product-grid { grid-template-columns: 1fr; }
    .pf-container { padding: 0 1rem; }
    .pf-single-image-wrap { padding: 1rem; }
    .pf-single-image-wrap img { max-height: 250px; }
}

/* ================================================================
   COOKIE CONSENT MODAL
   ================================================================ */
.pf-cookie-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    animation: pf-cookie-slide-up 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes pf-cookie-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes pf-cookie-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pf-cookie-modal {
    background: #fff;
    border-radius: 0;
    max-width: 720px;
    width: 100%;
    position: relative;
    padding: 0 1rem;
}
/* cookie pop-in removed; now using slide-up on overlay */

.pf-cookie-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: var(--pf-text-light, #888);
    transition: all var(--pf-transition, 0.3s);
    z-index: 2;
}
.pf-cookie-close:hover {
    background: var(--pf-bg-light, #f5f5f5);
    color: var(--pf-text-dark, #222);
}

.pf-cookie-modal-header {
    text-align: center;
    padding: 1.5rem 1rem 0.75rem;
}
.pf-cookie-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-accent, #ff9900), #ffb84d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,153,0,0.25);
}
.pf-cookie-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--pf-text-dark, #232f3e);
    letter-spacing: -0.02em;
}

.pf-cookie-modal-body {
    padding: 0 0 0.75rem;
    text-align: center;
}
.pf-cookie-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pf-text-muted, #555);
    margin: 0 0 1rem;
}
.pf-cookie-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
}
.pf-cookie-links a {
    color: var(--pf-accent-dark, #cc7a00);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.pf-cookie-links a:hover { text-decoration: underline; color: var(--pf-accent, #ff9900); }

.pf-cookie-modal-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0 0 1rem;
    flex-wrap: wrap;
}
.pf-cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.2rem;
    border-radius: var(--pf-radius-sm, 8px);
    font-size: 0.88rem;
    font-weight: 700;
    border: 2px solid var(--pf-border, #e0e0e0);
    cursor: pointer;
    transition: all var(--pf-transition, 0.3s);
    background: #fff;
    color: var(--pf-text-dark, #222);
    text-align: center;
}
.pf-cookie-btn-accept {
    background: var(--pf-accent, #ff9900);
    color: #111;
    border-color: var(--pf-accent, #ff9900);
}
.pf-cookie-btn-accept:hover {
    background: var(--pf-accent-dark, #cc7a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,153,0,0.35);
}
.pf-cookie-btn-reject:hover { border-color: var(--pf-text-muted, #888); }
.pf-cookie-btn-settings { background: transparent; }
.pf-cookie-btn-settings:hover { border-color: var(--pf-accent, #ff9900); color: var(--pf-accent-dark, #cc7a00); }

.pf-cookie-settings-panel {
    padding: 0 0 1rem;
    animation: pf-cookie-slide-down 0.3s ease;
}
@keyframes pf-cookie-slide-down {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 400px; }
}
.pf-cookie-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.pf-cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pf-border, #e0e0e0);
    border-radius: var(--pf-radius-sm, 8px);
    cursor: pointer;
    transition: border-color 0.2s;
}
.pf-cookie-toggle:hover { border-color: var(--pf-accent, #ff9900); }
.pf-cookie-toggle input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--pf-accent, #ff9900);
}
.pf-cookie-toggle-label { display: flex; flex-direction: column; }
.pf-cookie-toggle-label strong { font-size: 0.85rem; color: var(--pf-text-dark, #222); }
.pf-cookie-toggle-label small { font-size: 0.76rem; color: var(--pf-text-light, #888); line-height: 1.4; margin-top: 0.15rem; }

.pf-cookie-btn-save {
    background: var(--pf-primary, #232f3e);
    color: #fff;
    border-color: var(--pf-primary, #232f3e);
    width: 100%;
}
.pf-cookie-btn-save:hover { background: var(--pf-primary-dark, #1a2530); }

/* ================================================================
   AD SLOTS
   ================================================================ */
.pf-ad-slot {
    margin: 1.5rem auto;
    text-align: center;
    min-height: 90px;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-ad-header { margin: 0 auto 1rem; }
.pf-ad-footer { margin: 1.5rem auto 0; }
.pf-ad-before_products,
.pf-ad-footer { max-width: 970px; }
.pf-ad-header { max-width: 970px; }
.pf-ad-after_product_1,
.pf-ad-after_product_3 { max-width: 728px; }
.pf-ad-sidebar_top { max-width: 300px; min-height: 250px; }
.pf-ad-after_content { max-width: 336px; min-height: 280px; }
.pf-ad-custom { padding: 0.25rem; }
.pf-ad-custom img,
.pf-ad-custom video { max-width: 100%; height: auto; }
.pf-ad-custom iframe { max-width: 100%; border: 0; }
.pf-ad-slot ins.adsbygoogle { display: block; width: 100%; }

/* ================================================================
   LEGAL NAV
   ================================================================ */
.pf-legal-nav ul { gap: 0.75rem !important; }
.pf-legal-nav a { font-size: 0.78rem; }

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .pf-site-header, .pf-site-footer, .pf-back-to-top, .pf-mobile-overlay, .pf-primary-nav, .pf-cookie-banner, .pf-ad-slot { display: none !important; }
    .pf-product-card { box-shadow: none; border: 1px solid #ccc; }
    body { background: #fff; }
}

@media (max-width: 768px) {
    .pf-cookie-modal-actions { flex-direction: column; }
    .pf-cookie-btn { width: 100%; }
}

/* ================================================================
   USER SYSTEM: FAVORITE STAR, AUTH MODAL, PROFILE
   ================================================================ */

/* Favorite star — now inside entry title row, not floating */
.pf-fav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.25s;
    padding: 0;
    flex-shrink: 0;
}
.pf-fav-btn:hover {
    background: #fff;
    color: var(--pf-accent, #ff9900);
    transform: scale(1.1);
}
.pf-fav-btn.is-active {
    background: var(--pf-accent, #ff9900);
    color: #fff;
}
.pf-fav-btn.is-active svg {
    fill: var(--pf-accent, #ff9900);
    stroke: #fff;
}
.pf-fav-btn svg { transition: all 0.25s; }

/* Entry title row now contains the star */
.pf-post-entry-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0;
}
.pf-post-entry-title-wrap a {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pf-text-muted, #555);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pf-post-entry-title-wrap a:hover { color: var(--pf-accent, #ff9900); }
.pf-post-entry-title-wrap.pf-fav-only {
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0;
}

/* Account icon — accent color for visibility on blue header */
.pf-account-toggle {
    background: transparent;
    border: none;
    color: var(--pf-accent, #ff9900);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.pf-account-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.pf-account-toggle.is-logged-in {
    color: var(--pf-accent, #ff9900);
}
.pf-account-toggle.is-logged-in:hover {
    color: #fff;
}

/* Nav login/register button */
.pf-cat-nav-right {
    margin-left: auto;
    flex-shrink: 0;
}
.pf-nav-account {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.pf-nav-account-guest {
    background: var(--pf-accent, #ff9900);
    color: #111;
}
.pf-nav-account-guest:hover {
    background: var(--pf-accent-dark, #cc7a00);
    color: #fff;
}
.pf-nav-account-loggedin {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.pf-nav-account-loggedin:hover {
    background: rgba(255,255,255,0.2);
}
.pf-nav-auth-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.pf-nav-login {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.pf-nav-login:hover {
    background: rgba(255,255,255,0.14);
}
.pf-nav-signup {
    background: var(--pf-accent, #ff9900);
    color: #111;
}
.pf-nav-signup:hover {
    background: var(--pf-accent-dark, #cc7a00);
    color: #fff;
}
.pf-nav-auth-guest {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
[hidden] { display: none !important; }

/* Auth Modal */
.pf-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: pf-auth-fade-in 0.3s ease;
}
@keyframes pf-auth-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pf-auth-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: pf-auth-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pf-auth-pop-in {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pf-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: #888;
    transition: all 0.2s;
}
.pf-auth-close:hover { background: #f5f5f5; color: #222; }

.pf-auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}
.pf-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-primary, #232f3e), #3a4a5e);
    color: #fff;
    box-shadow: 0 8px 24px rgba(35,47,62,0.25);
}
.pf-auth-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: var(--pf-text-dark, #232f3e);
}

.pf-auth-form {
    padding: 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pf-auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.pf-auth-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pf-text-dark, #232f3e);
}
.pf-auth-field input {
    padding: 0.7rem 1rem;
    border: 2px solid var(--pf-border, #e0e0e0);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.pf-auth-field input:focus {
    outline: none;
    border-color: var(--pf-accent, #ff9900);
}
.pf-auth-error {
    background: #fee;
    color: #c33;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.pf-auth-submit {
    padding: 0.8rem;
    background: var(--pf-accent, #ff9900);
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
}
.pf-auth-submit:hover {
    background: var(--pf-accent-dark, #cc7a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,153,0,0.35);
}
.pf-auth-submit:disabled { opacity: 0.6; cursor: wait; }

.pf-auth-switch {
    text-align: center;
    padding: 0 2rem 1.5rem;
    font-size: 0.88rem;
    color: var(--pf-accent-dark, #cc7a00);
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}
.pf-auth-switch:hover { text-decoration: underline; }
.pf-auth-forgot {
    align-self: flex-end;
    margin-top: -0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pf-accent-dark, #cc7a00);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.pf-auth-forgot:hover { text-decoration: underline; }
.pf-auth-success {
    background: #e8f7ee;
    color: #237a43;
}

/* Profile page */
.pf-profile-app { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }

.pf-profile-loading {
    text-align: center;
    padding: 3rem;
    color: #888;
}
.pf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--pf-accent, #ff9900);
    border-radius: 50%;
    animation: pf-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* Profile header card */
.pf-profile-header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}
.pf-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-primary, #232f3e), #3a4a5e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pf-profile-info { flex: 1; min-width: 0; }
.pf-profile-info h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--pf-text-dark, #232f3e);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-profile-stats { font-size: 0.82rem; color: var(--pf-text-muted, #888); font-weight: 600; }

/* Profile menu dropdown */
.pf-profile-menu { position: relative; flex-shrink: 0; }
.pf-profile-menu-btn {
    background: transparent;
    border: none;
    color: var(--pf-text-muted, #555);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.pf-profile-menu-btn:hover { background: var(--pf-bg-light, #f0f0f0); color: var(--pf-text-dark, #232f3e); }
.pf-profile-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid var(--pf-border, #e0e0e0);
    min-width: 200px;
    overflow: hidden;
    z-index: 10;
}
.pf-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pf-text-dark, #232f3e);
    text-align: left;
    transition: background 0.15s;
}
.pf-profile-menu-item:hover { background: var(--pf-bg-light, #f5f5f5); }
.pf-profile-menu-item.pf-profile-menu-danger { color: #c33; }
.pf-profile-menu-item.pf-profile-menu-danger:hover { background: #fee; }

/* Profile sections */
.pf-profile-section { margin-bottom: 2.5rem; }
.pf-profile-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pf-accent, #ff9900);
}
.pf-profile-section-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pf-text-dark, #232f3e);
    margin: 0;
}
.pf-profile-count {
    color: var(--pf-text-muted, #888);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--pf-bg-light, #f5f5f5);
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
}

.pf-profile-empty {
    color: #999;
    font-size: 0.9rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed #ddd;
}
.pf-profile-empty svg { color: #ddd; margin-bottom: 0.5rem; }
.pf-profile-empty p { margin: 0; }

.pf-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.pf-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    transition: all 0.25s;
    border: 1px solid var(--pf-border, #eee);
}
.pf-profile-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.pf-profile-card-img img { width: 100%; height: 160px; object-fit: cover; }
.pf-profile-card-noimg {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
}
.pf-profile-card-body { padding: 0.75rem; }
.pf-profile-card-body h4 { margin: 0 0 0.4rem; font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.pf-profile-card-body h4 a { color: var(--pf-text-dark, #232f3e); text-decoration: none; }
.pf-profile-card-body h4 a:hover { color: var(--pf-accent, #ff9900); }
.pf-profile-card-price { font-size: 0.95rem; font-weight: 800; color: var(--pf-primary, #232f3e); }
.pf-profile-remove-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #c33;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.pf-profile-remove-fav:hover { background: #c33; color: #fff; }

.pf-profile-login-prompt {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 420px;
    margin: 2rem auto;
}
.pf-profile-login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-primary, #232f3e), #3a4a5e);
    color: #fff;
}
.pf-profile-login-prompt h2 { font-size: 1.4rem; margin: 0 0 0.75rem; color: var(--pf-text-dark, #232f3e); }
.pf-profile-login-prompt p { color: var(--pf-text-muted, #555); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.5rem; }
.pf-profile-login-prompt .pf-auth-submit { width: 100%; max-width: 280px; margin: 0 auto; }

@media (max-width: 600px) {
    .pf-profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .pf-profile-grid { grid-template-columns: 1fr; }
}

/* Profile email line */
.pf-profile-email {
    display: block;
    font-size: 0.82rem;
    color: var(--pf-text-muted, #888);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

/* Profile avatar with image */
.pf-profile-avatar.pf-profile-avatar-img {
    overflow: hidden;
}
.pf-profile-avatar.pf-profile-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Edit profile section */
.pf-profile-edit-section { margin-bottom: 2rem; }
.pf-profile-edit-wrap {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--pf-bg-light, #f8f9fa);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}
.pf-profile-edit-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.pf-profile-edit-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #ddd;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.pf-profile-edit-avatar-btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: var(--pf-primary, #232f3e);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pf-profile-edit-avatar-btn:hover { background: var(--pf-accent, #ff9900); color: #111; }
.pf-profile-edit-avatar-hint {
    font-size: 0.75rem;
    color: var(--pf-text-muted, #888);
    text-align: center;
    max-width: 120px;
    line-height: 1.4;
}
.pf-profile-edit-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.pf-profile-edit-field { display: flex; flex-direction: column; gap: 0.3rem; }
.pf-profile-edit-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pf-text-muted, #555);
}
.pf-profile-edit-field input {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s ease;
}
.pf-profile-edit-field input:focus {
    outline: none;
    border-color: var(--pf-accent, #ff9900);
    box-shadow: 0 0 0 3px rgba(255,153,0,0.12);
}
.pf-profile-edit-actions { display: flex; gap: 0.6rem; margin-top: 0.3rem; }
.pf-profile-edit-save {
    padding: 0.55rem 1.4rem;
    border: none;
    border-radius: 8px;
    background: var(--pf-accent, #ff9900);
    color: #111;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pf-profile-edit-save:hover { background: var(--pf-accent-dark, #cc7a00); color: #fff; }
.pf-profile-edit-save:disabled { opacity: 0.6; cursor: not-allowed; }
.pf-profile-edit-cancel {
    padding: 0.55rem 1.2rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    background: transparent;
    color: var(--pf-text-dark, #232f3e);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pf-profile-edit-cancel:hover { background: rgba(0,0,0,0.05); }
.pf-profile-edit-msg {
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
}
.pf-profile-edit-msg-success { background: #e6f9ed; color: #1a7d3c; }
.pf-profile-edit-msg-error { background: #fee; color: #c33; }

/* Header avatar image */
.pf-account-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .pf-profile-edit-wrap { flex-direction: column; align-items: center; }
    .pf-profile-edit-form { width: 100%; }
}

/* Header account controls */
.pf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pf-account-wrap { position: relative; display: flex; align-items: center; }
.pf-account-toggle.pf-account-avatar {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--pf-primary, #232f3e);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}
.pf-account-toggle.pf-account-avatar:hover {
    background: var(--pf-accent, #ff9900);
    border-color: var(--pf-accent, #ff9900);
    color: #111;
}
.pf-account-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    min-width: 170px;
    padding: 0.35rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    z-index: 100;
}
.pf-account-dropdown[hidden] { display: none; }
.pf-account-menu-link {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--pf-text-dark, #232f3e);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.pf-account-menu-link:hover { background: var(--pf-bg-light, #f5f5f5); color: var(--pf-accent-dark, #cc7a00); }
.pf-header-auth-guest { display: flex; align-items: center; gap: 0.35rem; }
.pf-account-auth-user { position: relative; }
.pf-account-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pf-accent, #ff9900);
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
}
.pf-header-auth-btn {
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pf-header-login { background: transparent; color: #fff; }
.pf-header-login:hover { background: rgba(255,255,255,0.14); }

/* Product card favorite button — sits to the left of the Prime badge */
.pf-post-item > .pf-card-fav-btn { position: absolute; top: 10px; right: 60px; z-index: 4; }

@media (max-width: 600px) {
    .pf-header-auth-btn { padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.72rem; }
    .pf-account-dropdown { right: -0.25rem; }
}
