
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section4 {
    width: 100%;
    height: 60vh;
    margin-top: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.7)), url("../assets/jpg/Solar-Footer.jpg");

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-section4 h1{
    color: white;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.breadcrumb {
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* margin-bottom: 30px; */
    color: #dc2626;
    font-size: 15px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
}

.breadcrumb .separator {
    color: #86a4ce;
    margin: 0 4px;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);;
    margin-bottom: 30px;
}

/* ===== Gallery with zoom cursor ===== */
.gallery {
    background: white;
    overflow: hidden;
}

.main-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}


.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.05);
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid gray;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}

.no-images {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

/* ===== Product Info ===== */
.product-info {
    padding: 10px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.product-category {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

.reviews-count {
    color: #64748b;
    font-size: 14px;
}

.product-description {
    color: #334155;
    margin-bottom: 5px;
    line-height: 1.7;
    font-size: 16px;
}

/* ===== Variations ===== */
.variations-section {
    margin: 5px 0;
}

.variation-label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 16px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variation-option {
    padding: 5px 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s;
    font-size: 13px;
}

.variation-option:hover {
    border-color: #3b82f6;
}

.variation-option.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* ===== Details Table - Directly below variations ===== */
.specs-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
}

.specs-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0f172a;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.specs-table tr:last-child {
    border-bottom: none;

}

.specs-table td {
    padding: 8px 0;
    color: #334155;
    font-size: 13px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #0f172a;
    width: 150px;
}

.no-specs {
    color: #94a3b8;
    font-style: italic;
    padding: 5px 0;
    text-align: center;
}


/* ===== Actions ===== */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    flex: 1;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.feature-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.feature-desc {
    color: #64748b;
    font-size: 12px;
}

.additional-info {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.25);
}

.additional-info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.additional-info-content {
    color: #334155;
    line-height: 1.8;
}

.additional-info-content h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #0f172a;
}

.additional-info-content h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #0f172a;
}

.additional-info-content p {
    margin: 15px 0;
}


.additional-info-content ul,
.additional-info-content ol {
    margin: 15px 0 15px 30px;
}

.additional-info-content li {
    margin: 5px 0;
}


/* ===== Lightbox for zoom =====
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgb(255, 0, 0);
    font-size: 40px;
    cursor: pointer;
} */

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .pages-hero-section h1{
        font-size: 2rem;
    }
    .product-actions {
        flex-direction: column;
    }
    
    .specs-table td:first-child {
        width: 120px;
    }
}

.additional-img-con{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.additional-info-img {
    max-width: 50% !important;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .additional-info-img{
        max-width: 100% !important;

    }
    .additional-img-con{
        display: flex;
        align-items: center;
        justify-content: center !important;
    }
}

/* .additional-info-content */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .product-title {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gallery {
        max-width: 100%;
    }
    .main-image-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 15px;
    }
    .product-main {
        padding: 20px;
    }
    .main-image-container {
        height: 300px;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .product-title {
        font-size: 24px;
    }
    .variation-option {
        padding: 8px 16px;
        font-size: 14px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .additional-info {
        padding: 20px;
    }
    .additional-info-content h2 {
        font-size: 22px;
    }
    .additional-info-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    .product-main {
        padding: 15px;
    }
    .main-image-container {
        height: 250px;
    }
    .thumbnail-list {
        padding: 10px;
    }
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    .product-title {
        font-size: 20px;
    }
    .variation-options {
        gap: 8px;
    }
    .variation-option {
        padding: 6px 12px;
        font-size: 13px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .specs-table td {
        font-size: 13px;
    }
    .specs-table td:first-child {
        width: 100px;
    }
    .additional-info {
        padding: 15px;
    }
    .additional-info-content {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .main-image-container {
        height: 200px;
    }
    .thumbnail {
        width: 40px;
        height: 40px;
    }
    .product-title {
        font-size: 18px;
    }
    .variation-option {
        padding: 5px 10px;
        font-size: 12px;
    }
    .specs-table td {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* ===== بهینه‌سازی تصاویر ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-image-container {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== بهبود نمایش Additional Information ===== */
.additional-info-content {
    overflow-x: auto;
    word-wrap: break-word;
}

.additional-info-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.additional-info-content th,
.additional-info-content td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
}

.additional-info-content th {
    background: #f8fafc;
    font-weight: 600;
}

/* ===== بهبود نمایش تگلر ===== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.specs-table td:first-child {
    width: 150px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .specs-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .specs-table td:first-child {
        width: 100%;
        padding-bottom: 0;
    }
    
    .specs-table tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* ===== Lightbox improved ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
}