/* Product Detail Styles */

.product-detail-section {
    padding: 60px 0 80px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    cursor: zoom-in;
}

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

.image-zoom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(26, 54, 93, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumb:hover,
.thumb.active {
    border-color: var(--secondary-color);
}

/* Product Info */
.product-info h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.category-badge,
.alloy-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-badge {
    background: var(--light-color);
    color: var(--primary-color);
}

.alloy-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.product-description {
    padding: 25px;
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 30px;
    line-height: 2;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-features ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.product-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-label {
    font-size: 0.95rem;
    color: #718096;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.request-btn {
    white-space: nowrap;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 12px;
}

.product-share span {
    font-weight: 600;
    color: var(--primary-color);
}

.product-share a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.product-share a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 60px;
}

.tab-buttons {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

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

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

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.tab-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

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

.specs-table td {
    padding: 20px;
}

.specs-table td:first-child {
    background: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
    width: 250px;
}

.specs-table td:last-child {
    background: var(--white);
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.application-item {
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.application-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.application-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.application-item p {
    color: #718096;
    line-height: 1.8;
}

/* Standards List */
.standards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.standard-item {
    padding: 25px;
    background: var(--light-color);
    border-radius: 12px;
    border-right: 4px solid var(--secondary-color);
}

.standard-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.standard-item p {
    color: #718096;
    line-height: 1.8;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--light-color);
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 60px;
}

.contact-form-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.contact-form-section > p {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
}

.product-contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.product-contact-form button[type="submit"] {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .applications-grid,
    .standards-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .specs-table td:first-child {
        width: 150px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .product-price {
        flex-direction: column;
        text-align: center;
    }
    
    .request-btn {
        width: 100%;
    }
}

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