/* ==========================================================================
   Product Detail Page Styles - Redesigned
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 1.5rem 0;
    margin-bottom: 0;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2196F3;
}

.breadcrumb .separator {
    color: #dee2e6;
}

.breadcrumb span:last-child {
    color: #212529;
    font-weight: 500;
}

/* Product Details Section */
.product-details {
    padding: 4rem 0;
    background: #fff;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
}

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

.gallery-main .product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #FFC107;
    color: #000;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.thumbnail-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

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

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #2196F3;
    transform: translateY(-2px);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-type {
    display: inline-block;
    background: #2196F3;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-sku {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.product-description {
    color: #6c757d;
    line-height: 1.8;
    font-size: 1rem;
}

/* Dimensions Selection */
.product-dimensions {
    padding: 0;
}

.dimension-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    margin-bottom: 1rem;
}

.dimension-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dimension-option {
    position: relative;
}

.dimension-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.dimension-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.dimension-option input[type="radio"]:checked + label {
    border-color: #2196F3;
    background: #E3F2FD;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.dimension-option label:hover {
    border-color: #2196F3;
}

.dim-label {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
    min-width: 100px;
}

.dim-size {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: auto;
    margin-right: 1rem;
}

.dim-price {
    color: #2196F3;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Pricing */
.product-pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.price-item {
    padding: 2rem;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 16px;
    color: #fff;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s;
}

/* Stock Status */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.stock-status.in-stock {
    background: #E8F5E9;
    color: #2E7D32;
}

.stock-status.out-stock {
    background: #FFF3E0;
    color: #E65100;
}

/* Product Actions */
.product-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: #FFC107;
    color: #000;
}

.btn-primary:hover {
    background: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #2196F3;
    color: #2196F3;
}

.btn-secondary:hover {
    background: #2196F3;
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Specifications Section */
.product-specs-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.product-specs-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #212529;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.spec-item {
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    border-left: 4px solid #2196F3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.spec-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.spec-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.features-list {
    margin-top: 3rem;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.features-list h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.features-list li {
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: #2196F3;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Related Products */
.related-products {
    padding: 5rem 0;
    background: #fff;
}

.related-products h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #212529;
    text-align: center;
}

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

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FFC107;
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card .product-content {
    padding: 1.5rem;
}

.product-card .product-type {
    display: inline-block;
    background: #E3F2FD;
    color: #2196F3;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.product-card .product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.product-card .product-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card .product-title a:hover {
    color: #2196F3;
}

.product-card .product-specs {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-card .product-prices {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-card .price-item {
    flex: 1;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.product-card .price-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .price-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.product-card .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Quote Modal */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.quote-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #212529;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #212529;
}

.modal-content > p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Quote Form */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .product-pricing {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .product-layout {
        gap: 2rem;
    }
    
    .product-info {
        gap: 2rem;
    }
}