:root {
    --text-color : #303030; 
    --text-color-01 : #17431f;
    --text-color-02 : #4B6352;
    --text-color-03: #98B88D;
    --background-color: #faf9f6;
    --primary-color: #D2E2CD;
    --secondary-color: #15371A;
    --hover-color: #668862;
    --gray: #fcfbf9;
    --font-size-text: clamp(0.805vw, 13.5px, 0.87vw);
    --font-size-headings: clamp(0.85vw, 15px, 0.95vw);
    --font-size-btn : clamp(0.7vw, 12px, 0.9vw);
    --section-spacing: clamp(130px, 5vh, 140px) 0 clamp(98px, 5vh, 100px) ;
    --header-menus: clamp(0.81vw, 15px, 0.93vw);
} 


/* =========================================
   Single Product Layout (V2 - Figma Aligned)
========================================= */
section.single-product-section {
    width: 100%;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    padding: 7vh 0 clamp(8.5vh, 100px, 10.3vh);
    direction: rtl; 
    background-color: var(--gray);
    position: relative;
    z-index: 10;
}

.sp-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 1%;
}

.sp-details {
    width: 50%;
    direction: rtl;
    padding: 0;
    color: var(--text-color-01);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5vh;
}

.sp-title {
    font-size: clamp(0.95vw, 16px, 1.1vw);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-color);
}

.sp-tabs-container {
    margin: 3.6vh 0; 
    width: 95%;
}

.sp-tabs-header {
    display: flex;
    gap: 4.6vw;
    margin-bottom: clamp(19px, 2.3vh, 19px);
}

.sp-tab-btn {
    position: relative;
    padding: 0 0 0 27px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: clamp(0.77vw, 16px, 0.78vw);
    color: #636161;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.sp-tab-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; 
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sp-tab-btn.active {
    color: var(--text-color);
    font-weight: bold;
}

.sp-tab-btn.active .sp-tab-icon {
    opacity: 1;
    visibility: visible;
}

.sp-tabs-content {
    border-top: 1px solid #82828221;
    border-bottom: 1px solid #82828221;
    height: auto; 
    overflow: hidden;
    position: relative;
}

.sp-tabs-track {
    display: flex;
    width: 400%;
    height: auto; 
    align-items: stretch; 
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    direction: rtl;
}

.sp-tab-panel {
    width: 25%;
    height: auto; 
    flex-shrink: 0;
    padding: clamp(20px, 2.1vh, 20px) 0; 
    overflow: hidden; 
}

.sp-tab-panel::-webkit-scrollbar {
    display: none;
}

.sp-care-text {
    color: var(--text-color);
    font-size: clamp(0.68vw, 15px, 0.72vw);
    line-height: 3;
    padding: 0;
}

.sp-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-specs-list li {
    display: grid;
    grid-template-columns: 100px auto; 
    align-items: center;
    margin-bottom: 0.8rem; 
    position: relative;
    padding-right: 0; 
    font-size: clamp(0.68vw, 15px, 0.72vw);
}

.sp-spec-key {
    font-weight: 600;
    color: #333;
}

.sp-spec-val {
    color: var(--text-color);
}

.sp-care-list { 
    color: var(--text-color);
    font-size: clamp(0.7vw, 16px, 0.7vw);
    padding: 0 !important;
}

/* بخش رنگ‌ها */
.sp-colors-section {
    display: flex;
    align-items: center; 
    gap: clamp(16px, 1.5vw, 18px); 
    margin: clamp(10px, 1vh, 10px) 0 0;
}

.sp-colors-title {
    font-size: clamp(0.7vw, 16px, 0.83vw);
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0; 
}

.sp-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 0.6vw, 15px); 
    align-items: center;
}

/* ظاهر مستطیل‌های رنگ */
.sp-color-swatch {
    width: 1.9vw; 
    height: 3.9vh; 
    border: 1px solid #dcdcdc; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5; 
    position: relative; 
    z-index: 1;
}

.sp-color-swatch:hover {
    z-index: 100; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.sp-color-swatch.active {
    border: 1.5px solid #a8a7a7c9;
    z-index: 10;
}

/* =========================================================
   تولتیپ (Tooltip)
   ========================================================= */
.sp-color-swatch::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #ffffff;
    color: #505050;
    border: 1px solid #e6e6e6; 
    padding: 2px 18px;
    font-size: 0.7rem;
    font-weight: normal;
    white-space: nowrap; 
    pointer-events: none; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 101; 
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.04);
    border-radius: 2px;
}

.sp-color-swatch::before {
    display: none !important;
}

.sp-color-swatch:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.sp-gallery {
    width: 51%; 
    display: flex;
    direction: ltr; 
    flex-direction: row-reverse; 
    gap: 0.9rem;
    justify-content: flex-end; 
}

.sp-main-image-container {
    flex: 1;
    aspect-ratio: 620 / 615; 
    max-width: 620px;
    max-height: 615px;
    background-color: #fff;
    border: 1px solid #bebebe33; 
    box-shadow: -1px 1px 4px rgba(66, 66, 66, 0.082); 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.sp-main-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.sp-main-track {
    display: flex;
    flex-direction: column; 
    width: 100%;
    height: 100%;
    transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-main-track img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغییر از contain به cover تا لبه‌ها دقیق پر شده و درز سفید ایجاد نشود */
    display: block;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.sp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f5f5ec00;
    border: none; 
    width: 30px;
    height: 30px;
    max-width: 35px;
    max-height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sp-nav-btn:hover { 
    background-color: rgb(245, 245, 235);
    transform: translateY(-50%) scale(1.05);
}

.sp-nav-btn svg {
    width: 25px;
    height: 25px;
    stroke: #5e5e5ec2;
    stroke-width: 2.2; 
    fill: none;
}

.sp-prev { left: 17px; } 
.sp-next { right: 15px; }

.sp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 12%; 
    min-width: 80px;
    max-width: 80px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none; 
}
.sp-thumbnails::-webkit-scrollbar { display: none; }

.sp-thumb {
    width: 100%;
    aspect-ratio: 77 / 75; 
    max-height: 75px;
    height: auto;
    cursor: pointer;
    background: #fff;
    border: 1px solid #8d8d8d33; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); 
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden; /* جلوگیری از درز تصویر یا کادر سفید اطراف */
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن دقیق کادر بدون باقی ماندن حاشیه داخلی سفید */
    display: block;
}

.sp-thumb.active {
    border-color: #a8a7a7c9;
    border-width: 1px;
}
.sp-thumb:not(.active):hover {
    opacity: 0.8;
}

/* =========================================
   POPULAR PRODUCTS SECTION
========================================= */
.popular-products,
.popular-products-section {
    background-color: rgb(135, 148, 121);
    margin-top: calc(var(--curve-h, 80px) * -1); 
    padding: calc(var(--curve-h, 17vh) + 25px) 0 19vh; 
    position: relative;
    z-index: 1; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-products .section-title,
.popular-products-section .section-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: right;
    margin-bottom: 2.1vh;
    width: 100%;
}

.popular-slider-wrapper {
    position: relative;
    width: 100%; 
    display: flex;
    align-items: center;
    padding: 0; 
}

.popular-slider-track {
    display: flex;
    gap: 20px; 
    justify-content: flex-start; 
    box-sizing: border-box;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    padding: 10px 0; 
    margin: 0; 
    direction: rtl; 
    will-change: scroll-position; 
}

.popular-slider-track::-webkit-scrollbar {
    display: none; 
}

.popular-slider-track:active {
    cursor: grabbing; 
}

.popular-card {
    flex: 0 0 calc((100% - 80px) / 5); 
    aspect-ratio: 1 / 1; 
    background-color: #ffffff; 
    border-radius: 3px; 
    scroll-snap-align: start; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    user-select: none;
    transition: transform 0.3s ease;
    margin: 0; 
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #f5f5ec;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #444444;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: rgb(245, 245, 235);
}

.slider-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.svg-right {
    margin-left: 6px;
}
.svg-left {
    margin-right: 6px;
}

.next-btn {
    left: -41px; 
}

.prev-btn {
    right: -41px; 
}

.popular-slider-track.no-smooth {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.sp-popular-overlay {
    position: absolute;
    bottom: -50px; 
    left: 0;
    width: 100%;
    height: clamp(35px, 0.7vh, 39px); 
    background: #f6f4f0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.popular-card:hover .sp-popular-overlay {
    bottom: 0; 
}

.sp-view-product-btn {
    color: var(--text-color);
    font-weight: 400;
    font-size: clamp(10px, 0.7vw, 15px);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.sp-selected-color-info {
    display: none;
}

a.popular-card {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    -webkit-user-drag: none;
}

a.popular-card:active,
a.popular-card:focus {
    outline: none;
}

@media (min-width: 601px) {
    .sp-selected-color-info {
        display: none !important;
    }
}

/* =========================================
   RESPONSIVE - TABLET ONLY (769px تا 1100px)
========================================= */
@media (min-width: 601px) and (max-width: 1200px) {
    section.single-product-section {
        padding: 4.5vh 0 1.7vh;
    }

    .sp-container {
        width: 85%; 
        max-width: none;
        margin: 0 auto;
        flex-direction: column;
        gap: 2.5vh;
    }

    .sp-details {
        display: contents; 
    }

    .sp-title {
        order: 1;
        font-size: 2.7vw; 
        text-align: right;
        width: 100%;
        margin-bottom: 0;
    }

    .sp-gallery {
        order: 2;
        width: 100%;
        flex-direction: row-reverse !important; 
        gap: 2.8vw;
        justify-content: center;
    }

    .sp-main-image-container {
        flex: 1;
        max-width: 75%; 
        aspect-ratio: 1 / 1;
    }

    .sp-thumbnails {
        display: flex !important;
        flex-direction: column !important; 
        width: 18% !important; 
        max-width: 100px !important;
        min-width: 70px !important;
        gap: 2vw; 
        padding: 0 !important;
        overflow-y: auto;
    }

    .sp-thumb {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important; 
    }

    .sp-colors-section {
        order: 3;
        width: 100%;
        display: flex !important;
        flex-direction: row !important; 
        align-items: center !important;
        gap: 18px !important;
        margin-top: 2vh;
        margin-bottom: 0.1vh;
    }
    .sp-colors-list {
        gap: 14px !important; 
    }

    .sp-reset-color-btn {
        display: none;
    }

    .sp-colors-title {
        font-size: 2.4vw; 
    }

    .sp-care-list { font-size: 2.2vw; }

    .sp-color-swatch {
        width: 4.5vw;
        height: 4.5vw;
        min-width: 35px;
        min-height: 35px;
    }
    
    .sp-color-swatch::after {
        font-size: 2vw; 
        padding: 6px 17px;
    }

    .sp-tabs-container {
        order: 4;
        width: 100%;
        margin-top: 3vh;
    }

    .sp-tabs-content {
        border-bottom: none;
    }

    .sp-tabs-header {
        justify-content: flex-start;
        gap: 8vw;
        margin-bottom: 2vh;
    }

    .sp-tab-btn {
        font-size: 2.4vw; 
        flex: none !important;
        white-space: nowrap !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: center; 
        align-items: center;
        gap: 8px;
    }
    
    .sp-tab-icon {
        position: relative !important; 
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .sp-spec-key, .sp-spec-val, .sp-care-text {
        font-size: 2.2vw; 
        line-height: 2;
    }

    .popular-products,
    .popular-products-section {
        padding: 12vh 0 8vh; 
        margin-top: -6vh;
    }

    .popular-products-section .section-title {
        font-size: 2.4vw; 
    }
    
    .popular-slider-track {
        gap: 20px;
    }
    
    .popular-card {
        flex: 0 0 calc((100% - 40px) / 3); 
    }

    .slider-btn {
        display: none !important; 
    }
    
    .color-text-prefix {
        display: none;
    }

    .sp-popular-overlay {
        bottom: 0 !important;
    }
}

/* =========================================
   RESPONSIVE - MOBILE ONLY (Max 768px)
========================================= */
@media (max-width: 600px) {
    section.single-product-section {
        padding: 4vh 0 2.5vh;
    }

    .sp-container {
        width: 86%;
        margin: 0 auto;
        flex-direction: column;
        gap: 35px;
    }

    .sp-details {
        display: contents;
    }

    .sp-title {
        order: 1;
        font-size: 1.1rem;
        text-align: right;
        width: 100%;
        margin-bottom: -10px;
        line-height: 1.5;
    }

    .sp-gallery {
        order: 2;
        width: 100%;
        flex-direction: column; 
        gap: 15px;
    }

    .sp-main-image-container {
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .sp-tab-icon { height: 15px !important; width: 15px !important;}

    .sp-nav-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        z-index: 10;
    }

    .sp-nav-btn.sp-prev { left: 5px }
    .sp-nav-btn.sp-next { right: 5px }

    .sp-thumbnails {
        display: flex !important;
        flex-direction: row !important; 
        width: 100% !important;
        max-width: 100% !important; 
        gap: 10px !important; 
        justify-content: flex-start !important; 
        overflow-x: auto;
        scrollbar-width: none; 
        -ms-overflow-style: none;
        padding: 2px !important; 
    }

    .sp-thumbnails::-webkit-scrollbar {
        display: none; 
    }

    .sp-thumb {
        flex: 0 0 calc((100% - 30px) / 4) !important; 
        width: calc((100% - 30px) / 4) !important; 
        min-width: 0 !important; 
        max-width: none !important;
        height: auto !important;
        max-height: none !important; 
        aspect-ratio: 1 / 1;
    }

    .sp-thumb:first-child:nth-last-child(n+3),
    .sp-thumb:first-child:nth-last-child(n+3) ~ .sp-thumb {
        flex: 1 1 0 !important;
        width: auto !important; 
    }

    .sp-selected-color-info {
        display: none;
    }

    .sp-colors-section {
        order: 3;
        width: 100%;
        display: flex !important;
        flex-direction: column !important; 
        align-items: flex-start !important;
        gap: 10px !important;
        margin-top: 15px;
    }

    .sp-colors-title {
        font-size: 15px;
        font-weight: 500;
        margin: 0 0 5px 0;
    }

    .sp-colors-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; 
        overflow: visible !important; 
        gap: 10px !important;
        width: 100%;
    }

    .sp-color-swatch {
        width: 32px !important; 
        height: 32px !important;
        flex-shrink: 0 !important;
        position: relative !important; 
        transform: none !important;
    }

    .sp-color-swatch:hover,
    .sp-color-swatch:active {
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    .sp-color-swatch.active {
        border: 1px solid #767676 !important;
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    .sp-selected-color-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        border-radius: 8px;
        margin-top: 12px;
        width: 100%;
        animation: fadeInColorBox 0.3s ease;
        background-color: rgb(255, 255, 255);
        border: 1px solid #f5efefbb;
    }

    .sp-selected-color-info .color-text-prefix {
        font-size: 14px;
        color: var(--text-color);
    }

    .sp-selected-color-info strong {
        font-weight: 500;
        color: var(--text-color);
        margin-right: 0px;
    }

    .sp-reset-color-btn {
        background: none;
        border: none;
        color: var(--secondary-color, #15371A);
        cursor: pointer;
        padding: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    @keyframes fadeInColorBox {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .sp-tabs-container {
        order: 4;
        width: 100%;
        margin-top: 15px;
    }

    .sp-tab-btn {
        font-size: 13px;
        padding: 0 0 0 17px;
    }
    
    .sp-tabs-header {
        justify-content: space-between;
        gap: 10px;
    }
    .sp-tabs-header span {
        font-size: 14px;
    }

    .sp-tab-icon {
        height: 16px;
        width: 16px;
        margin-right: 4px !important;
    }

    .sp-spec-key, .sp-spec-val {
        font-size: 13.5px;
    }
    .sp-care-list { font-size: 13.5px; }

    .sp-tabs-content {
        border-bottom: none;
    }

    .popular-products-section {
        padding: 120px 0 50px 0;
    }
    
    .popular-products-section .section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .popular-slider-track {
        gap: 15px; 
    }
    
    .popular-card {
        flex: 0 0 calc((100% - 15px) / 2); 
    }
    
    .next-btn { left: -5px; }
    .prev-btn { right: -5px; }

    .slider-btn {
        width: 35px;
        height: 35px;
        display: none; 
    }

    .sp-popular-overlay {
        bottom: 0 !important;
        height: 35px !important;
    }

    .sp-color-swatch::after {
        display: none !important;
    }
}

/* =========================================
   Single Product Layout - ENGLISH (LTR) Overrides
========================================= */

html[lang="en"] section.single-product-section,
html[dir="ltr"] section.single-product-section {
    direction: ltr;
    padding: 9vh 0 9vh;
}

html[lang="en"] .sp-title,
html[dir="ltr"] .sp-title { 
    font-weight: 700; 
    margin-bottom: 8px; 
    font-size: clamp(1.1vw, 16px, 1.1vw);
}

html[lang="en"] .sp-container,
html[dir="ltr"] .sp-container {
    flex-direction: row-reverse;
}

html[lang="en"] .sp-details,
html[dir="ltr"] .sp-details {
    direction: ltr;
    text-align: left;
    order: 1;
    margin-bottom: 12vh !important;
    gap: 10px !important;
}

html[lang="en"] .sp-tabs-track,
html[dir="ltr"] .sp-tabs-track {
    direction: ltr;
}

html[lang="en"] .sp-tab-btn,
html[dir="ltr"] .sp-tab-btn {
    padding: 0 27px 0 0 !important;
    flex-direction: row !important;
}

html[lang="en"] .sp-tab-icon,
html[dir="ltr"] .sp-tab-icon {
    left: auto !important;
    right: 0 !important;
}

html[lang="en"] .sp-colors-section,
html[dir="ltr"] .sp-colors-section {
    margin-top: 0 !important;
}

html[lang="en"] .sp-specs-list li,
html[dir="ltr"] .sp-specs-list li {
    padding-right: 0;
    padding-left: 0;
    text-align: left;
}

html[lang="en"] .sp-gallery,
html[dir="ltr"] .sp-gallery {
    direction: ltr;
    flex-direction: row; 
}

html[lang="en"] .sp-color-swatch::after,
html[dir="ltr"] .sp-color-swatch::after {
    padding: 3px 10px !important;
    font-size: 0.7rem !important;
}


html[lang="en"] div.sp-thumbnails,
html[dir="ltr"] div.sp-thumbnails {
    direction: ltr !important;
    order: 1 !important;
    padding: 2px 10px 0 0;
}

html[lang="en"] .sp-prev,
html[dir="ltr"] .sp-prev {
    right: 17px;
    left: auto;
}

html[lang="en"] .sp-nav-btn.sp-next,
html[dir="ltr"] .sp-nav-btn.sp-next { transform: scaleX(-1); }

html[lang="en"] .sp-nav-btn.sp-prev,
html[dir="ltr"] .sp-nav-btn.sp-prev { transform: scaleX(-1); }

html[lang="en"] .sp-next,
html[dir="ltr"] .sp-next {
    left: 15px;
    right: auto;
}

html[lang="en"] .popular-products .section-title,
html[lang="en"] .popular-products-section .section-title,
html[dir="ltr"] .popular-products .section-title,
html[dir="ltr"] .popular-products-section .section-title {
    text-align: left;
}

html[lang="en"] .popular-slider-track,
html[dir="ltr"] .popular-slider-track {
    direction: ltr;
}

/* =========================================
   ENGLISH RESPONSIVE - TABLET ONLY (601px تا 1200px)
========================================= */
@media (min-width: 601px) and (max-width: 1200px) {
    html[lang="en"] section.single-product-section,
    html[dir="ltr"] section.single-product-section {
        padding: 5vh 0 2vh;
    }

    html[lang="en"] .sp-container,
    html[dir="ltr"] .sp-container {
        flex-direction: column;
    }

    html[lang="en"] .sp-title,
    html[dir="ltr"] .sp-title { 
        font-size: 3vw;
        text-align: left;
    }

    html[lang="en"] .sp-gallery,
    html[dir="ltr"] .sp-gallery {
        flex-direction: row !important;
    }

    html[lang="en"] div.sp-thumbnails,
    html[dir="ltr"] div.sp-thumbnails {
        order: 1 !important;
    }

    html[lang="en"] .sp-tabs-header,
    html[dir="ltr"] .sp-tabs-header {
        justify-content: flex-start;
    }

    html[lang="en"] .sp-tab-btn,
    html[dir="ltr"] .sp-tab-btn {
        flex-direction: row-reverse !important; 
        gap: 8px;
    }

    html[lang="en"] .sp-spec-key,
    html[dir="ltr"] .sp-spec-key,
    html[lang="en"] .sp-spec-val,
    html[dir="ltr"] .sp-spec-val,
    html[lang="en"] .sp-care-text,
    html[dir="ltr"] .sp-care-text,
    html[lang="en"] .sp-care-list,
    html[dir="ltr"] .sp-care-list {
        font-size: 2.2vw !important;
        line-height: 2 !important;
        text-align: left !important;
    }

    html[lang="en"] .sp-specs-list li,
    html[dir="ltr"] .sp-specs-list li {
        text-align: left !important;
        justify-content: flex-start;
    }

    html[lang="en"] .sp-view-product-btn,
    html[dir="ltr"] .sp-view-product-btn {
        font-size: 1.6vw;
    }
    html[lang="en"] .sp-color-swatch::after,
    html[dir="ltr"] .sp-color-swatch::after {
    font-size: 1.2rem !important;
}
}

/* =========================================
   ENGLISH RESPONSIVE - MOBILE ONLY (Max 600px)
========================================= */
@media (max-width: 600px) {
    html[lang="en"] section.single-product-section,
    html[dir="ltr"] section.single-product-section {
        padding: 3vh 0 3vh;
    }

    html[lang="en"] .sp-container,
    html[dir="ltr"] .sp-container {
        flex-direction: column;
    }

    html[lang="en"] .sp-title,
    html[dir="ltr"] .sp-title {
        text-align: left;
        font-size: 20px;
        margin-bottom: -10px;
    }

    html[lang="en"] .sp-gallery,
    html[dir="ltr"] .sp-gallery {
        flex-direction: column;
    }

    html[lang="en"] .sp-thumbnails,
    html[dir="ltr"] .sp-thumbnails {
        justify-content: flex-start !important;
        order: 1 !important; 
    }

    html[lang="en"] .sp-next,
    html[dir="ltr"] .sp-next {
        left: 6px;
        right: auto;
    }

    html[lang="en"] .sp-prev,
    html[dir="ltr"] .sp-prev {
        right: 6px;
        left: auto;
    }

    html[lang="en"] .sp-nav-btn.sp-next,
    html[dir="ltr"] .sp-nav-btn.sp-next { transform: scaleX(-1)!important; }

    html[lang="en"] .sp-nav-btn.sp-prev,
    html[dir="ltr"] .sp-nav-btn.sp-prev { transform: scaleX(-1) !important;}

    html[lang="en"] .sp-colors-section,
    html[dir="ltr"] .sp-colors-section {
        align-items: flex-start !important;
    }

    html[lang="en"] .sp-colors-title,
    html[dir="ltr"] .sp-colors-title {
        font-size: 16px;
    }

    html[lang="en"] .sp-tab-btn,
    html[dir="ltr"] .sp-tab-btn {
        padding: 0 17px 0 0 !important;
    }
    
    html[lang="en"] .sp-selected-color-info strong,
    html[dir="ltr"] .sp-selected-color-info strong {
        margin-right: auto;
        margin-left: 0;
    }

    html[lang="en"] .sp-tabs-header span,
    html[dir="ltr"] .sp-tabs-header span {
        font-size: 14px;
        margin-right: 4px !important;
    }

    html[lang="en"] .sp-spec-val,
    html[dir="ltr"] .sp-spec-val {
        font-size: 14px;
    }

    html[lang="en"] .sp-spec-key,
    html[dir="ltr"] .sp-spec-key {
        font-size: 13px;
    }

    html[lang="en"] .color-text-prefix,
    html[dir="ltr"] .color-text-prefix {
        font-size: 15px !important;
    }

    html[lang="en"] .sp-care-list,
    html[dir="ltr"] .sp-care-list { font-size: 14px; }

    html[lang="en"] span.sp-view-product-btn,
    html[dir="ltr"] span.sp-view-product-btn { font-size: 2.8vw !important; }
}
