/* Product Detail Page Styles */

/* Hero Banner - Red Theme Override */
.hero-banner {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    color: #ffffff;
    border-bottom: 3px solid #a93226;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h1 {
    color: #ffffff;
}

.hero-content p {
    color: #ffffff;
    opacity: 0.95;
}

.product-detail-section {
    padding: clamp(40px, 6vh, 60px) 5vw;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: clamp(30px, 5vw, 40px);
}

/* Sidebar - same as category pages */
.products-sidebar {
    background: #f8f9fa;
    padding: clamp(20px, 3vw, 25px);
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.products-sidebar h3 {
    font-size: clamp(16px, 2.5vw, 18px);
    color: #1a1a1a;
    margin-bottom: 15px;
    margin-top: 25px;
}

.products-sidebar h3:first-child {
    margin-top: 0;
}

.category-menu, .product-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li, .product-submenu li {
    margin-bottom: 8px;
}

.category-menu a, .product-submenu a {
    display: block;
    padding: 10px 15px;
    color: #666666;
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(13px, 1.8vw, 14px);
    transition: all 0.3s ease;
}

.category-menu a:hover, .product-submenu a:hover {
    background: #ffffff;
    color: #e74c3c;
}

.category-menu a.active {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #ffffff;
    font-weight: 600;
}

.product-submenu a.active {
    background: #ffffff;
    color: #e74c3c;
    font-weight: 600;
    border-left: 3px solid #e74c3c;
}

/* Main Content */
.product-detail-main {
    min-width: 0;
}

/* Product Header */
.product-header {
    margin-bottom: clamp(30px, 5vh, 40px);
}

.product-header h1 {
    font-size: clamp(28px, 5vw, 36px);
    color: #1a1a1a;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #666666;
    margin-bottom: 20px;
}

/* Product Main Image */
.product-main-image {
    width: 100%;
    height: clamp(300px, 50vh, 500px);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: clamp(30px, 5vh, 40px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Description */
.product-description {
    background: #ffffff;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(25px, 4vh, 35px);
}

.product-description h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    color: #c0392b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.product-description p {
    font-size: clamp(14px, 2vw, 16px);
    color: #666666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Technical Specifications */
.product-specs {
    background: #ffffff;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(25px, 4vh, 35px);
}

.product-specs h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    color: #c0392b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

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

.specs-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 600;
    color: #1a1a1a;
    width: 30%;
}

.specs-table td {
    padding: 15px;
    font-size: clamp(13px, 1.8vw, 15px);
    color: #666666;
}

/* Applications */
.product-applications {
    background: #ffffff;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(25px, 4vh, 35px);
}

.product-applications h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    color: #c0392b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.application-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: clamp(13px, 1.8vw, 15px);
    color: #666666;
    transition: all 0.3s ease;
}

.application-item:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

/* Product Gallery */
.product-gallery {
    background: #ffffff;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(25px, 4vh, 35px);
}

.product-gallery h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    color: #c0392b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    height: 180px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related Products */
.related-products {
    background: #ffffff;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(25px, 4vh, 35px);
}

.related-products h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    color: #c0392b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-card-image {
    height: 150px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-content {
    padding: 15px;
}

.related-card-content h3 {
    font-size: clamp(14px, 2vw, 16px);
    color: #1a1a1a;
    margin-bottom: 8px;
}

.related-card-content p {
    font-size: clamp(12px, 1.6vw, 13px);
    color: #666666;
    margin-bottom: 12px;
}

.related-card-link {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-size: clamp(12px, 1.6vw, 13px);
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-card-link:hover {
    text-decoration: underline;
    color: #c0392b;
}

/* Quote CTA */
.quote-cta {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    padding: clamp(30px, 5vh, 40px);
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.quote-cta h2 {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 15px;
}

.quote-cta p {
    font-size: clamp(14px, 2vw, 16px);
    margin-bottom: 25px;
    opacity: 0.95;
}

.quote-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ffffff;
    color: #c0392b;
    text-decoration: none;
    border-radius: 8px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.quote-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px;
        font-size: 13px;
    }

    .specs-table th {
        width: 40%;
    }

    .applications-grid,
    .gallery-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
