/* SeoCraft Product Page Styles */
/* Product page specific styles - Based on modern design reference */

/* ============================================
   Product Banner Section
   ============================================ */
.product-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.product-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-hero-content {
    flex: 1;
}

.product-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.product-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.product-hero-image {
    text-align: center;
}

.product-main-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
}

.product-main-img:hover {
    transform: scale(1.02);
}

/* ============================================
   Section Title Decoration
   ============================================ */
.section-title {
    position: relative;
    padding-bottom: 8px;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* ============================================
   Product Features Enhancement
   ============================================ */
.product-features {
    padding: var(--spacing-3xl) 0;
    background: var(--background-light);
}

/* Ensure features-grid styles are correct */
.product-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

/* Product feature card styles - Override default feature-card */
.product-features .feature-item,
.product-features .feature-card {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--background-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.product-features .feature-item:hover,
.product-features .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-features .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.product-features .feature-item h3,
.product-features .feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.product-features .feature-item p,
.product-features .feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.feature-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: auto;
    justify-content: center;
}

.chip {
    background: var(--background-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   Technical Specifications Table Card Style
   ============================================ */
.product-specs {
    padding: var(--spacing-3xl) 0;
    background: var(--background-color);
}

.specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.specs-image {
    text-align: center;
}

.specs-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.specs-image img:hover {
    transform: scale(1.02);
}

.specs-table {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.specs-table:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.specs-table-content {
    width: 100%;
    border-collapse: collapse;
}

.specs-table-content tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.specs-table-content tr:last-child {
    border-bottom: none;
}

.specs-table-content tr:hover {
    background-color: var(--background-light);
}

.spec-label {
    padding: var(--spacing-md) 0;
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
}

.spec-value {
    padding: var(--spacing-md) 0;
    color: var(--text-secondary);
    text-align: right;
}

/* ============================================
   Function Details Image-Text Alternating Layout
   ============================================ */
.product-functions {
    padding: var(--spacing-3xl) 0;
    background: var(--background-light);
}

.functions-list {
    display: grid;
    gap: var(--spacing-3xl);
}

.function-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--background-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.function-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.function-image {
    text-align: center;
}

.function-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.function-image img:hover {
    transform: scale(1.02);
}

.function-content {
    padding: var(--spacing-md);
}

.function-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.function-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.function-features {
    list-style: none;
    padding: 0;
}

.function-features li {
    padding: var(--spacing-sm) 0;
    color: var(--primary-color);
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.function-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Alternating layout */
.function-row:nth-child(even) .function-content {
    order: 1;
}

.function-row:nth-child(even) .function-image {
    order: 2;
}

/* ============================================
   Usage Scenarios Display
   ============================================ */
.product-scenarios {
    padding: var(--spacing-3xl) 0;
    background: var(--background-color);
}

.scenarios-alt {
    display: grid;
    gap: var(--spacing-3xl);
}

.scenario-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--background-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.scenario-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.scenario-row img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.scenario-row img:hover {
    transform: scale(1.02);
}

.scenario-row h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.scenario-row p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Alternating layout */
.scenario-row:nth-child(even) > div:first-child {
    order: 1;
}

.scenario-row:nth-child(even) > div:last-child {
    order: 2;
}

/* ============================================
   Usage Instructions Steps
   ============================================ */
.product-guide {
    padding: var(--spacing-3xl) 0;
    background: var(--background-light);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--background-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FAQ Section
   ============================================ */
.product-faq {
    padding: var(--spacing-3xl) 0;
    background: var(--background-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.faq-question {
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-base);
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-xl);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Purchase Buttons
   ============================================ */
.purchase-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
}

.purchase-buttons .btn {
    min-width: 200px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .product-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-hero-content {
        padding-right: 0;
    }

    .product-hero-image {
        margin-top: var(--spacing-xl);
    }

    .function-row {
        grid-template-columns: 1fr;
    }

    .function-row:nth-child(even) .function-content,
    .function-row:nth-child(even) .function-image {
        order: 0;
    }

    .scenario-row {
        grid-template-columns: 1fr;
    }

    .scenario-row:nth-child(even) > div:first-child,
    .scenario-row:nth-child(even) > div:last-child {
        order: 0;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .purchase-buttons {
        flex-direction: column;
    }

    .purchase-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2.5rem;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .product-features .features-grid {
        grid-template-columns: 1fr;
    }

    .specs-table-container {
        padding: var(--spacing-lg);
    }

    .function-content h3 {
        font-size: 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 2rem;
    }

    .product-subtitle {
        font-size: 0.9rem;
    }

    .badge {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .product-features .feature-item,
    .product-features .feature-card {
        padding: var(--spacing-lg);
        min-height: unset;
    }

    .product-features .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-icon img {
        width: 30px;
        height: 30px;
    }

    .chip {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

