/* ========== Product Detail Page Styles ========== */

/* Hero Section */
.product-detail-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-top: 70px;
}

.product-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85), rgba(13, 20, 66, 0.9));
}

.product-detail-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-detail-hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* Social Sidebar - Removed old positioning, now using sticky */
.product-detail-social-sidebar {
    display: none;
    /* Old sidebar hidden */
}

/* Main Content */
.product-detail-main {
    padding: 60px 0;
    background: #ffffff;
}

/* Product Header */
.product-detail-header {
    margin-bottom: 50px;
}

.product-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
}

.product-detail-subtitle {
    font-size: 1rem;
    color: #757575;
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-more-colors {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #1a237e;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-more-colors:hover {
    background: #0d1442;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.3);
}

/* Product Display */
.product-detail-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
}

.product-detail-showcase {
    text-align: center;
}

.showcase-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.showcase-subtitle {
    font-size: 0.95rem;
    color: #757575;
    margin-bottom: 40px;
}

.product-images-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-image-main,
.product-image-inner {
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.product-image-main img,
.product-image-inner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image-main:hover img,
.product-image-inner:hover img {
    transform: scale(1.05);
}

.product-plus-sign {
    font-size: 3rem;
    font-weight: 300;
    color: #1a237e;
}

/* Single Product Image (for standalone products like Road Barrier) */
.product-single-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.product-single-image img {
    max-width: 400px;
    max-height: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-single-image img:hover {
    transform: scale(1.05);
}

/* Section Headings */
.section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 10px;
}

.section-subheading {
    font-size: 0.95rem;
    color: #757575;
    margin-bottom: 30px;
}

/* Specifications Table */
.product-specifications {
    margin-bottom: 60px;
}

.specs-table-container {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.specs-table thead {
    background: linear-gradient(135deg, #1a237e, #3949ab);
}

.specs-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #1a1a1a;
    font-size: 15px;
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

.specs-table tbody tr:hover {
    background: #f5f7ff;
}

/* Liner Selection */
.product-liner-section {
    margin-bottom: 60px;
}

.liner-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    /* justify-content: center;
        align-items: center; */
}

.liner-option {
    text-align: center;
}

.liner-image {
    width: 70%;
    height: 70%;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.liner-image:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.liner-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.liner-label {
    font-weight: 500;
    color: #1a1a1a;
}

/* Caps Section */
.product-caps-section {
    margin-bottom: 60px;
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 600px;
}

.cap-item {
    text-align: center;
}

.cap-image {
    width: 100%;
    height: 220px;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cap-image:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cap-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cap-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Valves Section */
.valves-section {
    margin-bottom: 60px;
}

.section-subheading {
    color: #c0392b;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 25px;
}

.valves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.valve-item {
    text-align: center;
}

.valve-image {
    width: 100%;
    height: 150px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.valve-image:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.valve-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.valve-label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Accessories Section */
.product-accessories-section {
    margin-bottom: 60px;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.accessory-item {
    text-align: center;
}

.accessory-image {
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.accessory-image:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accessory-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.accessory-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Valves Section */
.product-valves-section {
    margin-bottom: 60px;
}

.valves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.valve-item {
    text-align: center;
}

.valve-image {
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.valve-image:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.valve-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.valve-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Product Meta Row (Category + Availability) */
.product-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.product-availability.in-stock {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.product-availability.limited-stock {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.product-availability.made-to-order {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}


.product-price {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 5px;
}

.product-price-note {
    font-size: 13px;
    color: #757575;
}

/* Customer Reviews Section */
.product-reviews-section {
    margin-bottom: 60px;
}

.reviews-summary {
    margin-bottom: 30px;
}

.reviews-average {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.average-rating {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
}

.average-stars {
    display: flex;
    gap: 4px;
    color: #f39c12;
    font-size: 1.2rem;
}

.total-reviews {
    font-size: 14px;
    color: #757575;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.review-date {
    font-size: 12px;
    color: #9e9e9e;
}

.review-stars {
    display: flex;
    gap: 3px;
    color: #f39c12;
    font-size: 14px;
}

.review-stars i.far {
    color: #e0e0e0;
}

.review-comment {
    font-size: 14px;
    color: #616161;
    line-height: 1.7;
}

/* CTA Section */
.product-cta {
    text-align: center;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    padding: 50px 40px;
    border-radius: 16px;
    color: #ffffff;
}

.product-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1DA851;
    border-color: #1DA851;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-images-row {
        gap: 20px;
    }

    .product-plus-sign {
        font-size: 2rem;
    }




}

@media (max-width: 768px) {
    .product-detail-hero {
        height: 220px;
    }

    .product-detail-hero-content h1 {
        letter-spacing: 4px;
    }



    .product-detail-display {
        padding: 25px 20px;
    }

    .product-images-row {
        flex-direction: column;
    }

    .product-image-main,
    .product-image-inner {
        max-width: 280px;
    }

    .product-plus-sign {
        transform: rotate(90deg);
    }

    .caps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-cta {
        padding: 35px 25px;
    }

    .product-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail-hero {
        height: 180px;
        margin-top: 60px;
    }

    .product-detail-main {
        padding: 40px 0;
    }

    .liner-image {
        width: 100%;
        height: 100%;
    }

    .cap-image {
        height: 120px;
    }
}