/* Product Detail Page Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #4b5563;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.product-detail {
    padding: 3rem 0 5rem;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    margin: 1.5rem 0 0.7rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
	justify-content: left;
    /*background-color: #f8fafc;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);*/
    text-align: left;
    /*display: inline-block;
     width: auto;
    max-width: 100%;*/
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb a:hover {
    background-color: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

.breadcrumb a:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-light);
    display: inline-block;
    transform: translateY(-1px);
}

/* Product Layout */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    align-items: flex-start;
}

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

.main-image {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    background: #fff;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

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

/* Product Info */
.product-info {
    padding: 0 0 0 2rem;
}

.product-info h1 {
    font-size: 2.25rem;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-availability {
    color: #10b981;
    font-weight: 500;
}

.product-description {
    margin: 1.5rem 0;
    color: var(--text-color);
    line-height: 1.7;
}

/* Product Features */
.product-features {
    margin: 2rem 0;
}

.product-features h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    gap: 0.5rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
/* Product Tabs */
.product-tabs {
    margin: 4rem 0 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
    padding: 1.5rem 0;
    animation: fadeIn 0.3s ease;
}

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

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    width: 30%;
    color: var(--text-light);
    font-weight: 500;
}

/* Inquiry Form */
.inquiry-form {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    /* margin-top: 4rem; */
}

.inquiry-form h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text-color);
}

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

.compact-form .form-group {
    margin-bottom: 0;
}

.compact-form input,
.compact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.compact-form input:focus,
.compact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.compact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 0;
    }
    
    .product-gallery {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .compact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
    }
}

/* Related Products */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.related-product {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.related-product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-product-image {
    height: 180px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.related-product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-product:hover img {
    transform: scale(1.05);
}

.related-product h4 {
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.related-product:hover h4 {
    color: var(--primary-color);
}

.related-product .view-details {
    display: inline-block;
    padding: 0 1.5rem 1.25rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.related-product .view-details i {
    margin-left: 0.25rem;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.related-product:hover .view-details i {
    transform: translateX(3px);
}

/* Documents List */
.documents-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.document-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.document-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--text-color);
}

.document-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-download {
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.document-download:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-image {
    width: 100%;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.main-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    aspect-ratio: 1/1;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    padding: 0.5rem;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

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

/* Product Info */
.product-info {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-info h1 {
    font-size: 2.25rem;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-description {
    line-height: 1.8;
    /* color: var(--text-light); */
    font-size: 1.1rem;
    max-width: 100%;
}

/* Compact Quote Form */
.quote-form-container {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.quote-form-container h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.compact-quote-form .form-group {
    margin-bottom: 1rem;
}

.compact-quote-form input,
.compact-quote-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.compact-quote-form input:focus,
.compact-quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.compact-quote-form textarea {
    min-height: 100px;
    resize: vertical;
}

.full-width {
    width: 100%;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--light-bg);
    transform: translateY(-1px);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-container {
        gap: 3rem;
    }
    
    .product-info {
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-areas: "images" "info";
        gap: 1.5rem;
    }
    
    .product-images {
        position: static;
        margin-bottom: 0;
    }
    
    .product-info {
        padding-right: 0;
    }
    
    .main-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .thumbnail-container {
        max-width: 100%;
        margin: 1rem 0 0;
    }
    
    .product-info h1 {
        font-size: 1.75rem;
        margin-top: 0;
    }
    
    .quote-form-container {
        padding: 1.25rem;
    }
    
    .quote-form-container h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .compact-quote-form input,
    .compact-quote-form textarea {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .product-detail-container {
        padding: 1rem 0;
        gap: 1.5rem;
    }
    
    .product-info h1 {
        font-size: 1.75rem;
    }
    
    .product-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .thumbnail-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .product-actions {
        margin: 1.5rem 0;
    }
}

.product-specs {
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.product-specs h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.product-specs h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

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

.spec-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.75rem;
    border-radius: 4px;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item:hover {
    background-color: #f9fafb;
    transform: translateX(5px);
}

.spec-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 150px;
    padding-right: 1rem;
}

.spec-value {
    color: var(--gray-color);
    flex: 1;
}

/* Quote Form */
.quote-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.quote-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-images,
    .product-info {
        width: 100%;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
}

/* Add these variables to your :root if not already present */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004080;
    --primary-color-rgb: 0, 86, 179;
    --dark-color: #333;
    --light-bg: #f5f5f5;
}
