/*
Theme Name:        Qori Collectibles
Theme URI:         https://qoricollectibles.com
Author:            Qori Collectibles
Description:       Custom WordPress theme for Qori Collectibles — premium TCG collectibles e-commerce.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      7.0
Requires PHP:      8.0
License:           GNU General Public License v2 or later
Text Domain:       qoricollectibles
Tags:              woocommerce, e-commerce, custom-logo, custom-menu, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
    /* Brand */
    --gold:          #c9a84c;
    --gold-light:    #e8c96a;
    --gold-dark:     #9a7a2e;
    --gold-glow:     rgba(201,168,76,0.25);
    --gold-border:   rgba(201,168,76,0.35);

    /* Backgrounds */
    --bg-black:      #0a0a0a;
    --bg-dark:       #111111;
    --bg-card:       #161616;
    --bg-card-hover: #1e1e1e;
    --bg-surface:    #1a1a1a;
    --bg-topbar:     #050505;

    /* Text */
    --text-white:    #ffffff;
    --text-light:    #e8e8e8;
    --text-muted:    #888888;
    --text-faint:    #555555;

    /* Borders */
    --border:        rgba(255,255,255,0.08);
    --border-gold:   rgba(201,168,76,0.4);

    /* Accents */
    --badge-red:     #e94560;
    --success:       #4caf50;

    /* Typography */
    --font-display:  'Bebas Neue', 'Impact', sans-serif;
    --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-accent:   'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --container:    1280px;
    --header-h:     80px;
    --topbar-h:     38px;

    /* Radius */
    --r-sm:   4px;
    --r-md:   8px;
    --r-lg:   12px;
    --r-xl:   16px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-gold: 0 0 20px rgba(201,168,76,0.3);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.6);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.8);

    /* Transition */
    --t-fast:   150ms ease;
    --t-normal: 250ms ease;
    --t-slow:   400ms ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-light); text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ============================================================
   LAYOUT
============================================================ */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.container--wide  { max-width: 1440px; }
.container--narrow { max-width: 900px; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

p { margin-bottom: var(--space-md); color: var(--text-light); }

/* Display font utility */
.font-display { font-family: var(--font-display); letter-spacing: 0.04em; }

/* Gold gradient text */
.text-gold {
    color: var(--gold);
}
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   TOP BAR
============================================================ */
.site-topbar {
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    z-index: 101;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.topbar-left svg { color: var(--gold); }

.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-follow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: color var(--t-fast);
}

.topbar-social a:hover { color: var(--gold); }

/* Links de contacto rápido (WhatsApp y Email) en el topbar */
.topbar-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color var(--t-fast);
    padding: 2px 8px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.topbar-contact-link svg { color: var(--gold); flex-shrink: 0; }

.topbar-contact-link:hover {
    color: var(--gold);
    text-decoration: none;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-xl);
}

/* Logo */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-branding a { display: flex; align-items: center; text-decoration: none; }

.custom-logo { height: 64px; width: auto; }

/* ——— LOGO IMAGE (uploaded PNG) ——————————————————————— */
/* Se usa !important en dimensiones críticas para evitar
   que WooCommerce o WordPress sobreescriban el tamaño. */

.site-logo-img {
    display: block !important;
    height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* Logo en el footer: ligeramente más pequeño */
.site-logo-img--footer,
.site-footer .site-logo-img {
    height: 48px !important;
    max-width: 160px !important;
    max-height: 48px !important;
}

/* WordPress custom_logo wrapper — quita estilos por defecto */
.site-branding .custom-logo-link,
.footer-brand-link {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.site-branding .custom-logo-link img.custom-logo,
.site-branding a img.custom-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: 60px !important;
    object-fit: contain !important;
}

.wc-page-full {
    padding: 48px 0 64px;
}

.container--wc {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

/* Logo placeholder */
.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    user-select: none;
}

.logo-shield {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    clip-path: polygon(50% 0%, 90% 15%, 100% 50%, 90% 85%, 50% 100%, 10% 85%, 0% 50%, 10% 15%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--bg-black);
    font-weight: 900;
    position: relative;
}

.logo-shield::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-black);
    clip-path: polygon(50% 0%, 90% 15%, 100% 50%, 90% 85%, 50% 100%, 10% 85%, 0% 50%, 10% 15%);
}

.logo-shield span { position: relative; z-index: 1; color: var(--gold); font-size: 14px; }

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: var(--space-sm);
}

.logo-name {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold);
    letter-spacing: 0.12em;
    line-height: 1;
}

.logo-tagline {
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Primary nav */
.primary-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.primary-nav li { position: relative; }

.primary-nav a {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
    color: var(--gold);
    /* background: var(--gold-glow); */
    text-decoration: none;
}

/* Active underline */
.primary-nav .current-menu-item > a {
    position: relative;
}
.primary-nav .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    border-radius: var(--r-full);
}

/* Dropdown */
.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    flex-direction: column;
    gap: 2px;
    z-index: 200;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }

.primary-nav .sub-menu a {
    border-radius: var(--r-sm);
    font-size: 12px;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-action-btn:hover {
    color: var(--gold);
    background: var(--gold-glow);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--gold);
    color: var(--bg-black);
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: var(--r-sm);
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--text-light);
    align-items: center;
    gap: var(--space-sm);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-section {
    position: relative;
    min-height: 580px;
    background: var(--bg-black);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Animated BG */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(30,15,5,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 30% 50%, rgba(10,5,0,0.95) 0%, transparent 60%),
        linear-gradient(135deg, #0a0600 0%, #120800 40%, #1a0d00 60%, #0a0600 100%);
    z-index: 0;
}

/* Gold particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(201,168,76,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 80%, rgba(201,168,76,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(201,168,76,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 70%, rgba(201,168,76,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 40%, rgba(201,168,76,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 65%, rgba(201,168,76,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 65% 85%, rgba(201,168,76,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 30%, rgba(201,168,76,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 55%, rgba(201,168,76,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 10%, rgba(201,168,76,0.7) 0%, transparent 100%);
    animation: particleFloat 8s ease-in-out infinite alternate;
}

.hero-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 55% 25%, rgba(201,168,76,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 25% 45%, rgba(201,168,76,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 55%, rgba(201,168,76,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 75%, rgba(201,168,76,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 95% 40%, rgba(201,168,76,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 90%, rgba(201,168,76,0.3) 0%, transparent 100%);
    animation: particleFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes particleFloat {
    0%   { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-12px) scale(1.1); opacity: 1; }
}

/* Radial glow left */
.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 50% 60% at 25% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-2xl);
    width: 100%;
    padding: var(--space-3xl) 0;
}

.hero-content { padding-right: var(--space-xl); }

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.hero-title .accent {
    color: var(--gold);
    display: block;
    text-shadow: 0 0 40px rgba(201,168,76,0.4);
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 380px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: var(--r-sm);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-normal);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--bg-black);
    text-decoration: none;
    box-shadow: 0 0 24px rgba(201,168,76,0.5);
}

.hero-cta:hover::before { transform: scaleX(1); }

.hero-cta svg { transition: transform var(--t-fast); }
.hero-cta:hover svg { transform: translateX(4px); }

/* Hero image area */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.hero-products-display {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-preventa-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
    animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-product-placeholder {
    position: absolute;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-product-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.05) 100%);
}

.hero-product-placeholder svg { opacity: 0.3; }

/* Positions for the 3 boxes visible in reference */
.hero-product--main {
    left: 10%;
    top: 5%;
    width: 40%;
    height: 65%;
    z-index: 3;
    transform: perspective(800px) rotateY(8deg);
}

.hero-product--right1 {
    right: 5%;
    top: 0;
    width: 36%;
    height: 58%;
    z-index: 2;
    transform: perspective(800px) rotateY(-5deg);
}

.hero-product--right2 {
    right: 0;
    bottom: 5%;
    width: 30%;
    height: 45%;
    z-index: 2;
    transform: perspective(800px) rotateY(-8deg);
}

.hero-product--card {
    left: 22%;
    bottom: 3%;
    width: 22%;
    height: 35%;
    z-index: 4;
    transform: perspective(800px) rotateY(3deg) rotate(-3deg);
    box-shadow: var(--shadow-gold), var(--shadow-lg);
}

/* PREVENTA badge on hero */
.hero-preventa-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gold);
    color: var(--bg-black);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(201,168,76,0.5);
}

/* Hero trust badges */
.hero-trust {
    position: relative;
    z-index: 2;
    background: rgba(10,10,10,0.9);
    border-top: 1px solid var(--border-gold);
}

.hero-trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-right: 1px solid var(--border);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.8;
}

.trust-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.trust-desc {
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ============================================================
   CATEGORIES SECTION
============================================================ */
.categories-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
    cursor: pointer;
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 0 1px var(--border-gold);
    text-decoration: none;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(201,168,76,0.03) 100%);
    transition: opacity var(--t-normal);
}

.category-card:hover::before { opacity: 2; }

.category-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 1.2;
    margin: 0;
}

.category-image-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 75%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    transition: transform var(--t-normal);
}

.category-card:hover .category-image-wrap img {
    transform: scale(1.1) translateY(-4px);
}

.category-image-placeholder {
    font-size: 36px;
    color: var(--text-faint);
    margin: auto var(--space-md) var(--space-md) auto;
}


.category-placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: var(--r-sm) 0 var(--r-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 11px;
    flex-direction: column;
    gap: 4px;
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: 8px 16px;
    border: 1px solid var(--border-gold);
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: all var(--t-fast);
    width: fit-content;
    position: relative;
    z-index: 1;
}

.category-cta:hover {
    background: var(--gold);
    color: var(--bg-black);
    text-decoration: none;
}

/* ============================================================
   FEATURED PRODUCTS SECTION
============================================================ */
.featured-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--bg-black);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.section-diamond {
    color: var(--gold);
    font-size: 18px;
    opacity: 0.8;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0;
    line-height: 1;
}

.section-title .accent { color: var(--gold); }

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

/* Product card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--t-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold), var(--shadow-card);
    transform: translateY(-4px);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--gold);
    color: var(--bg-black);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    z-index: 2;
}

.product-badge--sale { background: var(--badge-red); color: #fff; }

.product-image-wrap {
    position: relative;
    background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
    aspect-ratio: 4/5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--t-slow);
    display: block;
}

.product-card:hover .product-image-wrap img { 
  transform: scale(1.05); 
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    color: var(--text-faint);
    font-size: 11px;
    text-align: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
}

.product-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }

.product-category {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    min-height: 34px; /* 12px * 1.4 * 2 lines = 33.6px */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
}

.product-price del { color: var(--text-muted); font-size: 12px; font-weight: 400; margin-right: 4px; }
.product-price ins { text-decoration: none; }

.product-date {
    font-size: 9px;
    color: var(--badge-red);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.product-add-btn {
    display: block;
    width: 100%;
    padding: 10px var(--space-md);
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: var(--r-sm);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-fast);
    margin-top: auto;
}

.product-add-btn:hover {
    background: var(--gold);
    color: var(--bg-black);
    text-decoration: none;
    box-shadow: 0 0 16px rgba(201,168,76,0.4);
}

/* Estado: producto ya añadido al carrito (.added lo pone WooCommerce via JS) */
.product-add-btn.added {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
    opacity: 0.7;
    cursor: default;
}

/* Link "Ver Carrito" inyectado por WooCommerce AJAX en el home
   Clases: added_to_cart wc-forward (idéntico al del archive)  */
.product-body a.added_to_cart,
.product-body .wc-forward,
.product-card a.added_to_cart,
.product-card .wc-forward {
    display: block;
    width: 100%;
    margin-top: -2px;
    margin-bottom: 0;
    text-align: center;
    background: var(--gold);
    color: var(--bg-black) !important;
    border: 1px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all var(--t-fast);
    animation: fadeInUp 0.25s ease both;
    cursor: pointer;
}

.product-body a.added_to_cart:hover,
.product-body .wc-forward:hover,
.product-card a.added_to_cart:hover,
.product-card .wc-forward:hover {
    background: var(--gold-light, #d4a955);
    color: var(--bg-black) !important;
    box-shadow: 0 0 16px rgba(201,168,76,0.5);
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ============================================================
   PRODUCT CARD — Estado SIN STOCK (global para todas las secciones)
   Funciona con .product-card.outofstock en front-page, secciones, etc.
   Para el archive nativo de WooCommerce ya está en woocommerce.css
   con li.product.outofstock
   ============================================================ */

/* La card necesita position relative para posicionar el badge */
.product-card {
    position: relative;
}

/* Badge qori-badge dentro de cualquier .product-card */
.product-card .qori-badge {
    position: absolute;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 3;
    line-height: 1;
}

.product-card .qori-badge--outofstock {
    top: 8px;
    right: 8px;
    background: rgba(200, 30, 50, 0.92);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Card completa: atenuada cuando está sin stock */
.product-card.outofstock {
    opacity: 0.8;
}

/* Imagen atenuada + escala de grises */
.product-card.outofstock .product-image-wrap img,
.product-card.outofstock .product-thumb {
    opacity: 0.5;
    filter: grayscale(40%);
    transition: none;
}

/* Deshabilitar el hover de zoom en agotados */
.product-card.outofstock:hover .product-image-wrap img,
.product-card.outofstock:hover .product-thumb {
    transform: none;
}

/* Botón "SIN STOCK" deshabilitado — span no clicable */
.product-add-btn--disabled {
    display: block;
    width: 100%;
    padding: 10px var(--space-md);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
    user-select: none;
    margin-top: auto;
}

/* WooCommerce product overrides for grid */
ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); list-style: none; justify-content: start !important; }
ul.products::before,
ul.products::after {
    display: none !important;
}


/* ============================================================
   INFO STRIP (Why buy / Preventas / Social)
============================================================ */
.info-strip {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3xl) 0;
}

.info-strip-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
}

.info-strip-col {
    padding: var(--space-xl) var(--space-2xl);
    border-right: 1px solid var(--border);
}

.info-strip-col:last-child { border-right: none; }

.info-col-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.info-col-title .accent { color: var(--gold); }

/* Why buy list */
.why-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.why-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-muted);
}

.why-item::before {
    content: '•';
    color: var(--gold);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Gold shield icon */
.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    clip-path: polygon(50% 0%, 90% 15%, 100% 50%, 90% 85%, 50% 100%, 10% 85%, 0% 50%, 10% 15%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 0 30px rgba(201,168,76,0.3);
}

.why-icon svg { color: var(--bg-black); }

/* Preventas col */
.preventa-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.preventa-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.preventa-visual {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-faint);
    margin-bottom: var(--space-lg);
}

.preventa-col-wrap {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    background: var(--gold);
    color: var(--bg-black);
    border: none;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-fast);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--bg-black);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(201,168,76,0.5);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--bg-black);
}

/* Social col */
.social-icons-large {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 18px;
    transition: all var(--t-fast);
}

.social-icon-link:hover {
    border-color: var(--border-gold);
    color: var(--gold);
    background: var(--gold-glow);
    text-decoration: none;
}

.social-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Playing card visual in social col */
.social-cards-visual {
    position: relative;
    width: 100px;
    height: 80px;
}

.playing-card {
    position: absolute;
    width: 55px;
    height: 75px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
    box-shadow: var(--shadow-card);
}

.playing-card:first-child { left: 0; top: 0; transform: rotate(-10deg); z-index: 1; }
.playing-card:last-child { right: 0; bottom: 0; transform: rotate(8deg); z-index: 2; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--bg-topbar);
    border-top: 1px solid var(--border-gold);
}

.footer-main {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
}

.footer-logo-wrap { display: flex; flex-direction: column; }

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t-fast);
}

.footer-social a:hover {
    color: var(--bg-black) !important;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.footer-social a svg {
    transition: transform var(--t-fast);
}

.footer-social a:hover svg {
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: var(--space-lg);
    line-height: 1.5;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.footer-nav { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-nav a {
    font-size: 12px;
    color: var(--text-faint);
    text-decoration: none;
    transition: color var(--t-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-nav a:hover { color: var(--gold); text-decoration: none; }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 12px;
    color: var(--text-faint);
}

.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-payments { display: flex; flex-direction: column; gap: var(--space-sm); }

.payment-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.payment-icon {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    height: 32px;
}

.payment-icon.visa { color: #1a1fae; background: #fff; }
.payment-icon.mastercard { color: #eb001b; background: #fff; }
.payment-icon.paypal { color: #003087; background: #fff; }
.payment-icon.mercadopago { background: #fff; color: #009ee3; }

/* Footer bottom bar */
.footer-bottom {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-faint);
}

/* ============================================================
   PAGE / CONTENT TEMPLATES
============================================================ */
.entry-title.page-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

/* ============================================================
   BUTTONS & FORMS (global)
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-fast);
    line-height: 1;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-white);
    font-size: 13px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   ACCESSIBILITY
============================================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-lg);
    background: var(--gold);
    color: var(--bg-black);
    font-weight: 700;
    z-index: 9999;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1199px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    ul.products  { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; }
    .hero-products-display { height: 320px; }
    .info-strip-grid { grid-template-columns: 1fr; }
    .info-strip-col { border-right: none; border-bottom: 1px solid var(--border); }
    .info-strip-col:last-child { border-bottom: none; }
    .hero-trust-inner { grid-template-columns: 1fr; }
    .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
    .trust-item:last-child { border-bottom: none; }
    .menu-toggle { display: flex; }
    .primary-nav ul {
        display: none;
        position: fixed;
        top: calc(var(--topbar-h) + var(--header-h));
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-gold);
        padding: var(--space-md);
        gap: 2px;
        z-index: 99;
    }
    .primary-nav.is-active ul { display: flex; }
    .primary-nav a { padding: 12px 16px; }
}

@media (max-width: 767px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    ul.products { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topbar-center { display: none; }
    .hero-title { font-size: 48px; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
    .products-grid { grid-template-columns: 1fr; }
    ul.products { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .topbar-left { display: none; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
    .site-header, .site-footer, .hero-section { display: none; }
    body { background: #fff; color: #000; }
}
