/* ==========================================================================
   RoasTronix V2 - Product Detail Page Styles
   Reuses patterns from products.css (modal hero, specs card, features grid)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product Detail Hero
   -------------------------------------------------------------------------- */

.pd-hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(160, 28, 46, 0.15) 100%);
}

.pd-hero-overlay {
    position: relative;
    padding: 80px 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* 2-column hero when product image exists */
.pd-hero--with-image .pd-hero-overlay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pd-hero-text {
    /* text column */
}

.pd-hero-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pd-hero-product-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
}

.pd-hero-overlay h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.pd-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.pd-hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* --------------------------------------------------------------------------
   Overview Section
   -------------------------------------------------------------------------- */

.pd-overview {
    padding: 80px 0;
}

.pd-overview .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-overview h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.pd-overview-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 800px;
}

.pd-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pd-feature-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s;
}

.pd-feature-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.pd-feature-card-img {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pd-feature-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pd-feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Specifications Section
   -------------------------------------------------------------------------- */

.pd-specs {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(160, 28, 46, 0.05) 100%);
}

.pd-specs .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-specs h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.pd-specs-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
}

.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.pd-specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-specs-table tr:last-child {
    border-bottom: none;
}

.pd-specs-table td {
    padding: 14px 0;
}

.pd-specs-table .spec-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 50%;
}

.pd-specs-table .spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */

.pd-features {
    padding: 80px 0;
}

.pd-features .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-features h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pd-feature-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s;
}

.pd-feature-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.pd-feature-item .feature-icon {
    display: none;
}

.pd-feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.pd-feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */

.pd-testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(160, 28, 46, 0.05) 100%);
}

.pd-testimonials .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-testimonials h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.pd-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pd-testimonial {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 35px;
    transition: border-color 0.3s;
}

.pd-testimonial:hover {
    border-color: var(--primary-gold);
}

.pd-testimonial blockquote {
    margin: 0;
    padding: 0;
}

.pd-testimonial blockquote p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.pd-testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pd-testimonial-author span {
    font-size: 0.8rem;
    color: var(--primary-gold);
}

/* --------------------------------------------------------------------------
   Related Products Section
   -------------------------------------------------------------------------- */

.pd-related {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(160, 28, 46, 0.05) 100%);
}

.pd-related .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-related h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

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

.pd-related-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.pd-related-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.pd-related-card-image {
    height: 220px;
    overflow: hidden;
}

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

.pd-related-card:hover .pd-related-card-image img {
    transform: scale(1.05);
}

.pd-related-card-info {
    padding: 25px;
}

.pd-related-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pd-related-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.pd-related-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
    transition: color 0.3s;
}

.pd-related-card:hover .pd-related-link {
    color: #fff;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */

.pd-cta {
    padding: 80px 0;
    text-align: center;
}

.pd-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.pd-cta > .pd-container > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pd-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pd-cta .leasing-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pd-cta .leasing-note span {
    color: var(--primary-gold);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Back Link
   -------------------------------------------------------------------------- */

.pd-back {
    padding: 30px 60px 60px;
}

.pd-back a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.pd-back a:hover {
    color: var(--primary-gold);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .pd-container {
        padding: 0 40px;
    }

    .pd-hero-overlay {
        padding: 60px 40px 40px;
    }

    .pd-hero--with-image .pd-hero-overlay {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .pd-feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */

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

    .pd-container {
        padding: 0 25px;
    }

    .pd-hero-overlay {
        padding: 40px 25px 30px;
    }

    .pd-hero--with-image .pd-hero-overlay {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pd-hero-product-image img {
        max-height: 250px;
    }

    .pd-hero-overlay h1 {
        font-size: 2rem;
    }

    .pd-hero-cta {
        flex-direction: column;
    }

    .pd-hero-cta .btn-primary,
    .pd-hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .pd-overview,
    .pd-specs,
    .pd-features,
    .pd-testimonials,
    .pd-related,
    .pd-cta {
        padding: 50px 0;
    }

    .pd-feature-cards {
        grid-template-columns: 1fr;
    }

    .pd-features-grid {
        grid-template-columns: 1fr;
    }

    .pd-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
    }

    .pd-specs-card {
        padding: 25px;
    }

    .pd-cta-buttons {
        flex-direction: column;
    }

    .pd-cta-buttons .btn-primary,
    .pd-cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .pd-back {
        padding: 20px 25px 40px;
    }
}
