/**
 * Product Pages - Shared Styles
 *
 * Common CSS used across page-*.php templates.
 * Templates can override these with their own inline <style> blocks.
 */

/* ============================================
   Base Variables
   ============================================ */
:root {
    --product-primary: #0156b3;
    --product-dark: #003d82;
    --product-text: #000000;
    --product-text-body: #333333;
    --product-bg-light: #f8fafc;
    --product-white: #ffffff;
    --product-border: #e2e8f0;
}

/* ============================================
   Page Defaults
   ============================================ */
body.page-template-default {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    padding-top: 90px;
}

/* ============================================
   Header Banner
   ============================================ */
.product-header-banner {
    position: relative;
    background: linear-gradient(90deg, #e6f0fa 0%, #ffffff 50%);
    padding: 60px 0;
    margin-bottom: 0;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Vend Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.product-header-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(1, 86, 179, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(1, 86, 179, 0.2);
    pointer-events: none;
    z-index: 0;
}

.product-header-content {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 40px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.product-breadcrumbs a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumbs a:hover {
    color: var(--product-primary);
}

.breadcrumb-separator {
    color: #dadce0;
    font-size: .75rem;
}

.breadcrumb-current {
    color: #202124;
}

/* ============================================
   Page Title
   ============================================ */
.product-header-title {
    font-family: 'Vend Sans', -apple-system, sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: #000000;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ============================================
   Containers
   ============================================ */
.product-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Sections
   ============================================ */
.product-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--product-border);
}

.product-section:last-child {
    border-bottom: none;
}

.product-section-title {
    font-size: 2rem;
    font-weight: 300;
    color: #000000;
    margin: 0 0 20px;
    line-height: 1.3;
}

.product-section-content {
    font-size: 1.25rem;
    font-weight: 300;
    color: #000000;
    line-height: 1.6;
}

.product-section-content p {
    margin-bottom: 1rem;
}

.product-section-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Intro Section
   ============================================ */
.product-intro {
    padding: 60px 0 40px;
}

.product-intro-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: #000000;
    line-height: 1.6;
}

.product-intro-text p {
    margin-bottom: 1.5rem;
}

/* ============================================
   Cards
   ============================================ */
.product-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--product-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(1, 86, 179, 0.1);
}

.product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px;
}

.product-card p {
    font-size: .875rem;
    font-weight: 400;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   Highlight Box
   ============================================ */
.product-highlight-box {
    background: linear-gradient(135deg, rgba(1, 86, 179, 0.08) 0%, rgba(1, 86, 179, 0.03) 100%);
    border-left: 4px solid var(--product-primary);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.product-highlight-box p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
}

/* ============================================
   CTA Section
   ============================================ */
.product-cta-section {
    padding: 60px 0;
    background: #ffffff;
}

.product-cta-box {
    background: linear-gradient(135deg, var(--product-primary) 0%, var(--product-dark) 100%);
    border-radius: 16px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.product-cta-box h3 {
    font-size: 1.375rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 10px;
}

.product-cta-box p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.product-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: var(--product-primary);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Grid Layouts
   ============================================ */
.product-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid-2,
    .product-grid-3,
    .product-grid-4 {
        grid-template-columns: 1fr;
    }

    .product-cta-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-header-banner {
        padding: 40px 20px;
    }

    .product-header-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .product-container {
        padding: 0 20px;
    }

    .product-header-content {
        padding: 0 20px;
    }

    .product-cta-box {
        padding: 30px;
    }
}
