/*
 * PAIDEIA WOOCOMMERCE — Custom Design System
 * Basado en las maquetas aprobadas
 */

:root {
    /* Brand Colors */
    --paideia-teal: #2D7A7B;
    --paideia-teal-dark: #1F5455;
    --paideia-terracotta: #C8673B;
    --paideia-terracotta-dark: #A04525;
    --paideia-green: #7A9E7E;
    --paideia-blue: #2E5266;
    --paideia-cream: #FAFAF8;
    --paideia-warm-white: #FFFFFF;
    
    /* Typography */
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* UI Tokens */
    --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 16px 32px rgba(0,0,0,0.12);
    --border-radius: 12px;
}

/* --------------------------------------------------------------------------
 * SHOP ARCHIVE — Layout & Hero
 * -------------------------------------------------------------------------- */

.woocommerce-products-header {
    display: none; /* Hide default header, we use our Hero */
}

.paideia-shop-hero {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding: 60px 20px;
    clear: both;
}

/* Force vertical behavior on main containers */
#primary, #content, .site-content, .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.paideia-main-shop-content {
    display: block !important;
    width: 100% !important;
    background: var(--paideia-cream);
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.paideia-breadcrumbs {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-actions {
    margin-top: 10px;
}

.paideia-btn-premium {
    background: transparent;
    color: white !important;
    border: 2px solid white;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.paideia-btn-premium:hover {
    background: white;
    color: var(--paideia-teal) !important;
}

.paideia-shop-hero h1 {
    font-family: var(--font-headings);
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    max-width: 900px;
    line-height: 1.1;
}

.paideia-shop-hero p {
    font-family: var(--font-body);
    font-size: 22px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Category Filters */
.paideia-category-filters {
    background: var(--paideia-cream);
    padding: 40px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.paideia-category-filters h2 {
    font-family: var(--font-headings);
    font-size: 32px;
    margin-bottom: 24px;
}

.filter-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid #E0E0E0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.filter-pill.active, .filter-pill:hover,
.filter-pill.pill-filosofia-y-teologia.active,
.filter-pill.pill-filosofia-y-teologia:hover {
    background: var(--paideia-terracotta);
    color: white;
    border-color: transparent;
}

.filter-pill.pill-ciencias.active,
.filter-pill.pill-ciencias:hover {
    background: var(--paideia-blue);
    color: white;
    border-color: transparent;
}

.filter-pill.pill-artes-y-humanidades.active,
.filter-pill.pill-artes-y-humanidades:hover {
    background: var(--paideia-green);
    color: white;
    border-color: transparent;
}

/* --------------------------------------------------------------------------
 * PRODUCT GRID
 * -------------------------------------------------------------------------- */

.paideia-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
    padding: 60px 0 !important;
    max-width: 1200px;
    margin: 0 auto !important;
}

.paideia-products-grid::before,
.paideia-products-grid::after {
    display: none !important; /* Fix for WooCommerce default float clearers */
}

/* Course Card */
.paideia-course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paideia-course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

/* Course Image Area */
.paideia-course-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.paideia-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.paideia-course-card:hover .paideia-course-image img {
    transform: scale(1.08);
}

.paideia-course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--paideia-terracotta);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.paideia-course-badge.cat-teologia { background: var(--paideia-terracotta); }
.paideia-course-badge.cat-artes { background: var(--paideia-green); }
.paideia-course-badge.cat-ciencias { background: var(--paideia-blue); }

/* Course Content */
.paideia-course-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.paideia-course-title {
    font-family: var(--font-headings);
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.paideia-course-mentor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #444;
}

.paideia-course-mentor img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.paideia-course-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #777;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #EEE;
}

/* Buttons and Price */
.paideia-course-footer {
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.paideia-course-price {
    font-family: var(--font-headings);
    font-size: 24px;
    color: var(--paideia-terracotta);
    font-weight: 700;
}

.paideia-btn-teal {
    background: var(--paideia-teal);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
}

.paideia-btn-teal:hover {
    background: var(--paideia-teal-dark);
}

/* --------------------------------------------------------------------------
 * RESPONSIVE
 * -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .paideia-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 40px 20px !important;
    }
}

@media (max-width: 600px) {
    .paideia-products-grid {
        grid-template-columns: 1fr !important;
    }
    .paideia-shop-hero h1 {
        font-size: 36px;
    }
}
