/* Additional CSS for Product Detail Pages */

.product-detail {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-gallery {
    display: flex;
    gap: 1rem;
}

.gallery-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item.active {
    border-color: #0d6efd;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a2a4a;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.popular {
    background-color: #dc3545;
    color: white;
}

.badge.stock {
    background-color: #198754;
    color: white;
}

.badge.heavy-duty {
    background-color: #fd7e14;
    color: white;
}

.badge.industrial {
    background-color: #6f42c1;
    color: white;
}

.badge.reinforced {
    background-color: #20c997;
    color: white;
}

.badge.premium {
    background-color: #212529;
    color: white;
}

.badge.special {
    background-color: #e83e8c;
    color: white;
}

.badge.eco {
    background-color: #28a745;
    color: white;
}

.price-section {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
}

.price-info {
    font-size: 1rem;
    color: #6c757d;
}

.product-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    margin-bottom: 1rem;
    color: #1a2a4a;
}

.product-features ul {
    padding-left: 1.2rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.product-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.quantity-section {
    margin-bottom: 2rem;
}

.quantity-section h3 {
    margin-bottom: 1rem;
    color: #1a2a4a;
}

.quantity-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-selector button {
    background-color: #f8f9fa;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-selector button:hover {
    background-color: #e9ecef;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

.add-to-cart-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.add-to-cart-btn:hover {
    background-color: #0b5ed7;
}

.product-tabs {
    margin-bottom: 3rem;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.tab-header {
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-header:hover {
    color: #0d6efd;
}

.tab-header.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.technical-specs {
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-label {
    font-weight: 600;
    width: 200px;
    color: #1a2a4a;
}

.spec-value {
    flex: 1;
    color: #495057;
}

.technical-drawing {
    text-align: center;
}

.technical-drawing img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.usage-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.usage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.usage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: #e7f1ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-icon img {
    width: 30px;
    height: 30px;
}

.usage-item h3 {
    margin-bottom: 0.5rem;
    color: #1a2a4a;
}

.usage-item p {
    color: #6c757d;
}

.installation-steps {
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: #1a2a4a;
}

.installation-tools {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.installation-tools h4 {
    margin-bottom: 1rem;
    color: #1a2a4a;
}

.installation-tools ul {
    padding-left: 1.2rem;
}

.installation-tools li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.shipping-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.shipping-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.shipping-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.shipping-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: #e7f1ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-icon img {
    width: 30px;
    height: 30px;
}

.shipping-item h3 {
    margin-bottom: 0.5rem;
    color: #1a2a4a;
}

.shipping-item p {
    color: #6c757d;
}

.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #1a2a4a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-link {
    display: inline-block;
    background-color: #0d6efd;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.product-link:hover {
    background-color: #0b5ed7;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quantity-options {
        grid-template-columns: 1fr;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .current-price {
        font-size: 2rem;
    }
    
    .image-gallery {
        justify-content: center;
    }
    
    .add-to-cart-section {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .quantity-selector input {
        flex-grow: 1;
    }
}

@media (max-width: 576px) {
    .product-badges {
        flex-direction: column;
    }
    
    .badge {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}