/**
 * Empire Five Athletics - Single Product Pages
 *
 * Beautiful product page styling matching category page design
 *
 * @package Empire_Five_Child
 * @since 1.0.0
 */

/* ==========================================================================
   CSS VARIABLES (Fallback)
   ========================================================================== */
:root {
    --empire-primary: #002868;
    --empire-secondary: #003580;
    --empire-accent: #BF0A30;
    --empire-accent-hover: #A00828;
    --empire-accent-light: rgba(191, 10, 48, 0.08);
    --empire-white: #FFFFFF;
    --empire-text: #1F2937;
    --empire-text-light: #6B7280;
    --empire-gray-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --container-width: 1320px;
    --container-padding: 20px;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES
   ========================================================================== */

/* Sports Page Main Container - Center content */
.sports-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.sports-page .empire-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Full-Width Overrides */
.empire-single-product {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.empire-single-product section {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.empire-single-product .empire-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.product-breadcrumbs {
    padding: 16px 0;
    background: var(--empire-gray-light);
    font-size: 0.9rem;
}

.product-breadcrumbs a {
    color: var(--empire-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.product-breadcrumbs span {
    color: var(--empire-text-light);
    margin: 0 10px;
}

.product-breadcrumbs .current {
    color: var(--empire-primary);
    font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.product-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--empire-primary) 0%, var(--empire-secondary) 100%);
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>') repeat;
    background-size: 100px 100px;
    z-index: 1;
}

.product-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.product-hero .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--empire-accent);
    color: var(--empire-white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.product-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--empire-white);
    line-height: 1.2;
    margin: 0 0 20px;
}

.product-hero .hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-hero .stat-item {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.product-hero .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--empire-white);
    line-height: 1;
    margin-bottom: 6px;
}

.product-hero .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   PRODUCT OVERVIEW SECTION
   ========================================================================== */
.product-overview {
    padding: 80px 0;
    background: var(--empire-white);
}

.product-overview .overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-overview .product-gallery {
    position: sticky;
    top: 100px;
}

.product-overview .product-image-main {
    position: relative;
}

.product-overview .product-image-main .main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.product-overview .product-image-main .image-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: var(--empire-gray-light);
    border-radius: var(--radius-lg);
    justify-content: center;
}

.product-overview .product-image-main .image-thumbnails .thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: var(--empire-white);
    box-shadow: var(--shadow-sm);
}

.product-overview .product-image-main .image-thumbnails .thumb:hover {
    border-color: var(--empire-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-overview .product-image-main .image-thumbnails .thumb.active {
    border-color: var(--empire-primary);
    box-shadow: 0 0 0 2px var(--empire-primary);
}

.product-overview .product-details {
    padding: 20px 0;
}

.product-overview .product-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--empire-primary);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-overview .product-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--empire-text);
    margin-bottom: 30px;
}

.product-overview .product-description strong {
    color: var(--empire-accent);
    font-weight: 700;
}

/* Quick Features List */
.quick-features {
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.quick-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--empire-gray-light);
    font-size: 1rem;
    color: var(--empire-text);
}

.quick-features li:last-child {
    border-bottom: none;
}

.quick-features .feature-icon {
    width: 24px;
    height: 24px;
    color: var(--empire-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.quick-features strong {
    color: var(--empire-primary);
}

/* CTA Buttons in Overview */
.overview-cta {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.overview-cta .btn-primary,
.overview-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overview-cta .btn-primary {
    background: var(--empire-accent);
    color: var(--empire-white);
    border: 2px solid var(--empire-accent);
}

.overview-cta .btn-primary:hover {
    background: var(--empire-accent-hover);
    border-color: var(--empire-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.overview-cta .btn-secondary {
    background: transparent;
    color: var(--empire-primary);
    border: 2px solid var(--empire-primary);
}

.overview-cta .btn-secondary:hover {
    background: var(--empire-primary);
    color: var(--empire-white);
    transform: translateY(-3px);
}

.overview-cta svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.product-features {
    padding: 80px 0;
    background: var(--empire-gray-light);
}

.product-features .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.product-features .section-title,
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--empire-primary);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.product-features .section-title::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--empire-accent), var(--empire-primary));
    border-radius: 2px;
}

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

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--empire-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--empire-accent-light);
    border-radius: var(--radius-full);
    color: var(--empire-accent);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--empire-accent);
    color: var(--empire-white);
    transform: scale(1.1);
}

.feature-card .feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--empire-primary);
    margin: 0 0 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--empire-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CUSTOMIZATION SECTION
   ========================================================================== */
.product-customization {
    padding: 80px 0;
    background: var(--empire-white);
}

.product-customization .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.product-customization .section-subtitle {
    font-size: 1.1rem;
    color: var(--empire-text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.customization-card {
    padding: 30px;
    background: var(--empire-gray-light);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.customization-card:hover {
    border-color: var(--empire-accent);
    background: var(--empire-white);
    box-shadow: var(--shadow-lg);
}

.customization-card .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--empire-accent);
    border-radius: var(--radius-md);
    color: var(--empire-white);
}

.customization-card .card-icon svg {
    width: 24px;
    height: 24px;
}

.customization-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--empire-primary);
    margin: 0 0 10px;
}

.customization-card p {
    font-size: 0.95rem;
    color: var(--empire-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   ORDER INFO SECTION
   ========================================================================== */
.order-info {
    padding: 80px 0;
    background: var(--empire-gray-light);
}

.order-info .section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.order-info-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--empire-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.order-info-card .info-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--empire-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.order-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--empire-primary);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-info-card p {
    font-size: 0.9rem;
    color: var(--empire-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.product-faq {
    padding: 80px 0;
    background: var(--empire-white);
}

.product-faq .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--empire-gray-light);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 24px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--empire-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 40, 104, 0.05);
}

.faq-question .icon {
    color: var(--empire-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question .icon svg {
    width: 20px;
    height: 20px;
}

.faq-item.active .faq-question {
    background: var(--empire-accent-light);
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    padding: 0 28px 24px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--empire-text-light);
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   RELATED PRODUCTS SECTION
   ========================================================================== */
.related-products {
    padding: 80px 0;
    background: var(--empire-gray-light);
}

.related-products .section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.related-product-card {
    display: block;
    text-decoration: none;
    background: var(--empire-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-product-card .product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--empire-primary) 0%, var(--empire-secondary) 100%);
}

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

.related-product-card:hover .product-image img {
    transform: scale(1.1);
}

.related-product-card .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 104, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.related-product-card:hover .product-overlay {
    opacity: 1;
}

.related-product-card .view-btn {
    color: var(--empire-white);
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid var(--empire-white);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-product-card .product-content {
    padding: 24px;
}

.related-product-card .product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--empire-primary);
    margin: 0 0 8px;
}

.related-product-card .product-desc {
    font-size: 0.9rem;
    color: var(--empire-text-light);
    margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.product-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.product-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--empire-accent) 0%, #8B0020 100%);
    z-index: 0;
}

.product-cta .empire-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--empire-white);
    margin: 0 0 16px;
}

.product-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-cta .cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.product-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--empire-white);
    color: var(--empire-accent);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--empire-white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-cta .btn-primary:hover {
    background: transparent;
    color: var(--empire-white);
    transform: translateY(-4px);
}

.product-cta .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: transparent;
    color: var(--empire-white);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-cta .btn-outline:hover {
    background: var(--empire-white);
    color: var(--empire-accent);
    border-color: var(--empire-white);
    transform: translateY(-4px);
}

.product-cta svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .features-grid,
    .customization-grid,
    .order-info-grid,
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-overview .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-overview .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-hero {
        min-height: auto;
    }

    .product-hero .hero-content {
        padding: 60px 20px;
    }

    .product-hero h1 {
        font-size: 1.5rem;
    }

    .product-hero .hero-stats {
        gap: 16px;
    }

    .product-hero .stat-item {
        padding: 12px 16px;
    }

    .product-overview,
    .product-features,
    .product-customization,
    .order-info,
    .product-faq,
    .related-products,
    .product-cta {
        padding: 60px 0;
    }

    .features-grid,
    .customization-grid,
    .order-info-grid,
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview-cta {
        flex-direction: column;
    }

    .overview-cta .btn-primary,
    .overview-cta .btn-secondary {
        width: 100%;
    }

    .product-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-cta .btn-primary,
    .product-cta .btn-outline {
        width: 100%;
        max-width: 320px;
    }

    .section-title {
        font-size: 1.5rem !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 480px) {
    .product-hero .hero-content {
        padding: 50px 15px;
    }

    .product-hero .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .product-hero .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .product-hero .stat-item {
        width: 100%;
    }

    .feature-card,
    .customization-card,
    .order-info-card {
        padding: 30px 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .product-cta,
    .related-products {
        display: none;
    }

    .product-hero {
        min-height: auto;
        padding: 40px 0;
        background: #f5f5f5 !important;
    }

    .product-hero h1 {
        color: #000 !important;
    }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .customization-card:hover,
    .related-product-card:hover {
        transform: none;
    }

    .feature-card:active,
    .customization-card:active,
    .related-product-card:active {
        transform: scale(0.98);
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
