
/* =====================================================
 مشخصات فنی 
   ===================================================== */

.specs-table-view {
    margin-top: 8px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.specs-table-view table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table-view tr {
    border-bottom: 1px solid #f0f0f1;
}

.specs-table-view tr:last-child {
    border-bottom: none;
}

.specs-table-view tr:nth-child(odd) {
    background: #fff;
}

.specs-table-view tr:nth-child(even) {
    background: #f9f9f9;
}

.specs-table-view td {
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.7;
    vertical-align: middle;
}

/* عنوان مشخصه (سمت راست در RTL) */
.specs-table-view .spec-key {
    width: 35%;
    color: #81858b;
    font-weight: 400;
    background: transparent;
}

/* مقدار مشخصه */
.specs-table-view .spec-value {
    width: 65%;
    color: #0c0c0c;
    font-weight: 500;
}

/* هاور ملایم */
.specs-table-view tr:hover {
    background: #f3f3f3;
}

/* عنوان بخش */
#specifications h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0c0c0c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e2;
}

/* حالت خالی */
.empty-specs {
    padding: 48px 20px;
    text-align: center;
    color: #a1a3a8;
    background: #f9f9f9;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    font-size: 14px;
}

/* رسپانسیو */
@media (max-width: 767px) {
    .specs-table-view td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .specs-table-view .spec-key {
        width: 40%;
    }

    .specs-table-view .spec-value {
        width: 60%;
    }
}

.product-layout{

    display:grid;

    grid-template-columns:420px 1fr 360px;

    gap:30px;

    align-items:start;


}

.product-gallery-card{

    background:#fff;

    border-radius:20px;

    padding:25px;

    border:1px solid #edf2f7;

}

.gallery-main{

    display:flex;

    justify-content:center;

    align-items:center;

    min-height:360px;

}

.gallery-main img{

    max-width:100%;

    max-height:340px;

    object-fit:contain;

    transition:.3s;

}

.gallery-main img:hover{

    transform:scale(1.05);

}

.gallery-thumbs{

    display:flex;

    gap:10px;

    margin-top:20px;

    justify-content:center;

}

.thumb{

    width:70px;

    height:70px;

    border-radius:12px;

    border:2px solid transparent;

    overflow:hidden;

    cursor:pointer;

}

.thumb.active{

    border-color:#0d6efd;

}

.thumb img{

    width:100%;

    height:100%;

    object-fit:contain;

}

.product-info-card{

    background:#fff;

    border-radius:20px;

    padding:28px;

    border:1px solid #eceff5;

}

.product-category{

    color:#3b82f6;

    font-size:14px;

    margin-bottom:10px;

}

.product-title{

    font-size:28px;

    font-weight:700;

    color:#1e293b;

    line-height:1.8;

    margin-bottom:20px;
    
    padding-block-end: 169px;
    
}

.product-rating{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:30px;

}

.stars{

    color:#f59e0b;

    font-size:18px;

}

.product-rating span{

    color:#64748b;

    font-size:14px;

}

.product-meta{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.meta-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding-bottom:14px;

    border-bottom:1px solid #edf2f7;

}

.meta-title{

    color:#64748b;

    font-size:14px;

}

.meta-value{

    color:#1e293b;

    font-weight:600;

}

.stock{

    color:#16a34a;

    font-weight:600;

}

.stock i{
    color: green;
    margin-left:6px;

}

.feature-box{

    margin-top:35px;

}

.feature-box h3{

    font-size:17px;

    margin-bottom:18px;

    color:#1e293b;

}

.feature-box ul{

    list-style:none;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:14px;

}

.feature-box li{

    display:flex;

    align-items:center;

    gap:10px;

    color:#475569;

}

.feature-box i{

    color:#3b82f6;

}

.buy-box{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:24px;

    position:sticky;

    top:25px;

}

.buy-header{

    border-bottom:1px solid #edf2f7;

    padding-bottom:18px;

    margin-bottom:20px;

}

.buy-label{

    display:block;

    color:#64748b;

    font-size:13px;

}

.buy-price{

    margin-top:8px;

    font-size:30px;

    font-weight:700;

    color:#2563eb;

}

.buy-price small{

    font-size:15px;

    color:#64748b;

}

.buy-items{

    display:flex;

    flex-direction:column;

    gap:18px;

    margin-bottom:30px;

}

.buy-item{

    display:flex;

    align-items:center;

    gap:10px;

    color:#475569;

    font-size:15px;

}

.buy-item i{

    color:#2563eb;

    width:22px;

}

.buy-button{

    width:100%;

    height:55px;

    border:none;

    border-radius:14px;

    background:#2563eb;

    color:#fff;

    font-family:inherit;

    font-size:16px;

    cursor:pointer;

    transition:.25s;

}

.buy-button:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.product-tabs{

display:flex;

gap:35px;

margin-top:40px;

border-bottom:1px solid #e5e7eb;

}

.tab-btn{

background:none;

border:none;

cursor:pointer;

padding:18px 0;

font-family:inherit;

font-size:16px;

color:#64748b;

position:relative;

}

.tab-btn.active{

color:#2563eb;

font-weight:700;

}

.tab-btn.active::after{

content:"";

position:absolute;

bottom:-1px;

left:0;

width:100%;

height:3px;

background:#2563eb;

border-radius:10px;

}

.tab-pane{

display:none;

padding:35px 0;

}

.tab-pane.active{

display:block;

}

.product-gallery-card{

background:#fff;

border-radius:18px;

padding:18px;

border:1px solid #edf1f7;

}

.gallery-main-wrapper{

position:relative;

}

.gallery-main{

height:460px;

display:flex;

justify-content:center;

align-items:center;

overflow:hidden;

cursor:zoom-in;

}

.gallery-main img{

max-width:100%;

max-height:100%;

transition:.25s;

object-fit:contain;

}

.gallery-main:hover img{

transform:scale(1.15);

}

.gallery-thumbs{

display:flex;

gap:10px;

margin-top:18px;

justify-content:center;

flex-wrap:wrap;

}

.thumb{

width:74px;

height:74px;

border:2px solid transparent;

border-radius:12px;

cursor:pointer;

overflow:hidden;

transition:.2s;

}

.thumb.active{

border-color:#2563eb;

}

.thumb img{

width:100%;

height:100%;

object-fit:cover;

}

.gallery-arrow{

position:absolute;

top:50%;

transform:translateY(-50%);

width:42px;

height:42px;

border:none;

border-radius:50%;

background:#fff;

box-shadow:0 8px 25px rgba(0,0,0,.12);

cursor:pointer;

z-index:5;

}

.gallery-arrow.prev{

right:12px;

}

.gallery-arrow.next{

left:12px;

}

.gallery-arrow:hover{

background:#2563eb;

color:#fff;

}

.gallery-upload{

margin-top:18px;

display:flex;

justify-content:flex-end;

}

.gallery-upload a{

display:flex;

align-items:center;

gap:8px;

padding:10px 16px;

background:#2563eb;

color:#fff;

border-radius:12px;

text-decoration:none;

font-size:14px;

transition:.2s;

}

.gallery-upload a:hover{

background:#1d4ed8;

}

.gallery-lightbox{

position:fixed;

inset:0;

background:rgba(0,0,0,.88);

display:flex;

justify-content:center;

align-items:center;

opacity:0;

visibility:hidden;

transition:.25s;

z-index:99999;

}

.gallery-lightbox.show{

opacity:1;

visibility:visible;

}

.gallery-lightbox img{

max-width:90%;

max-height:90%;

transition:.25s;

cursor:grab;

}

.gallery-close{

position:absolute;

top:25px;

right:25px;

width:46px;

height:46px;

border-radius:50%;

background:#fff;

display:flex;

justify-content:center;

align-items:center;

font-size:22px;

cursor:pointer;

}

.gallery-main img{

transition:.25s;

}

.gallery-main.zoom img{

transform:scale(2);

cursor:zoom-out;

}

.gallery-main{

position:relative;

height:460px;

display:flex;

justify-content:center;

align-items:center;

overflow:hidden;

border-radius:18px;

}

.gallery-upload-btn{

position:absolute;

left:18px;

bottom:18px;

display:flex;

align-items:center;

gap:8px;

padding:10px 16px;

background:rgba(255,255,255,.18);

backdrop-filter:blur(16px);

-webkit-backdrop-filter:blur(16px);

border:1px solid rgba(255,255,255,.35);

border-radius:14px;

color:#fff;

text-decoration:none;

font-size:13px;

font-weight:600;

transition:.25s;

z-index:20;

}

.gallery-upload-btn:hover{

background:rgba(37,99,235,.85);

transform:translateY(-2px);

color:#fff;

}

.gallery-upload-btn i{

font-size:16px;

}

.specs-table-view table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table-view tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table-view td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.specs-table-view .spec-key {
    width: 40%;
    color: #64748b;
    font-weight: 500;
}

.specs-table-view .spec-value {
    color: #1e293b;
    font-weight: 600;
}

.empty-specs {
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
}

.gallery-modal{

position:fixed;
inset:0;
background:rgba(0,0,0,.55);

display:none;
align-items:center;
justify-content:center;

z-index:99999;

backdrop-filter:blur(8px);

}

.gallery-modal.show{

display:flex;

}

.gallery-modal-box{

width:520px;
max-width:95%;

background:#fff;

border-radius:22px;

padding:24px;

box-shadow:0 25px 70px rgba(0,0,0,.18);

}

.gallery-modal-header{

display:flex;
justify-content:space-between;
align-items:center;

margin-bottom:20px;

}

.gallery-modal-header h3{

margin:0;
font-size:20px;

}

.gallery-modal-header button{

width:42px;
height:42px;

border:none;

border-radius:12px;

background:#f5f5f5;

cursor:pointer;

}

#galleryFiles{

width:100%;

padding:18px;

border:2px dashed #d8d8d8;

border-radius:16px;

margin-bottom:20px;

}

.gallery-save-btn{

width:100%;

height:52px;

border:none;

border-radius:16px;

background:#0d6efd;

color:#fff;

font-size:16px;

cursor:pointer;

}

.thumb{

position:relative;

}

.delete-gallery-image{

position:absolute;

top:6px;

left:6px;

width:26px;

height:26px;

border:none;

border-radius:50%;

background:#ef4444;

color:#fff;

cursor:pointer;

display:flex;

align-items:center;

justify-content:center;

opacity:0;

transition:.25s;

}

.thumb:hover .delete-gallery-image{

opacity:1;

}

.product-gallery-card{
    display:flex;
    flex-direction:column;
}

.gallery-main-wrapper{
    margin-bottom:18px;
}

.gallery-thumbs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    min-height:92px;   /* جای ثابت */
    padding-top:10px;
}

.thumb{
    flex:0 0 82px;
    width:82px;
    height:82px;
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:12px;
}

.gallery-upload-btn{
    margin-top:16px;
    align-self:flex-start;
}


.gallery-upload-loading,
.gallery-upload-success,
.gallery-upload-error{

margin-top:18px;

padding:14px;

border-radius:14px;

text-align:center;

font-weight:700;

}

.gallery-upload-loading{

background:#eef5ff;

color:#2563eb;

}

.gallery-upload-success{

background:#eafaf1;

color:#16a34a;

}

.gallery-upload-error{

background:#fff0f0;

color:#dc2626;

}

.buy-button.out-of-stock {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    opacity: .85;
}

.buy-button.out-of-stock:hover {
    transform: none !important;
    box-shadow: none !important;
}

.stock.unavailable {
    color: #dc2626;
}

.stock.unavailable i {
    color: #dc2626;
}

   /* =====================================================
   Responsive slug
   ===================================================== */

@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: 380px 1fr 300px;
        gap: 22px;
    }
}

@media (max-width: 991px) {
    .product-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .product-gallery-card {
        grid-column: 1 / -1;
        position: static;
    }

    .gallery-main {
        max-width: 420px;
        margin: 0 auto;
    }

    .gallery-arrow {
        opacity: 1;
    }

    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .reviews-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        

    }

    .product-gallery-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 12px 0;
        border-top: none;
        position: static;
    }

    .gallery-main {
        aspect-ratio: 1 / 1;
        border-radius: 0;
        max-width: 100%;
    }

    .gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 13px;
        opacity: 1;
        background: rgba(255, 255, 255, 0.95);
    }

    .gallery-arrow.prev { right: 8px; }
    .gallery-arrow.next { left: 8px; }

    .gallery-thumbs {
        padding: 4px 12px;
        gap: 8px;
    }

    .thumb {
        flex: 0 0 58px;
        width: 58px;
        height: 58px;
    }

    .product-info-card,
    .buy-box {
        margin: 0 12px;
        border-radius: 14px;
    }

    .buy-box {
        position: static;
        order: -1; /* باکس خرید بالاتر در موبایل */
    }

    .product-title {
        font-size: 19px;
    }

    .buy-price {
        font-size: 22px;
    }

    .feature-box ul {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        gap: 20px;
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        font-size: 14px;
        padding: 14px 0;
    }

    .tab-pane {
        padding: 20px 12px;
    }

    .reviews-layout {
        padding: 0 12px;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .thumb {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .gallery-upload-btn {
        bottom: 10px;
        left: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .product-info-card,
    .buy-box {
        padding: 18px;
    }
}

/* =====================================================
   موبایل و تبلت - باکس خرید ثابت پایین صفحه)
   ===================================================== */

@media (max-width: 991px) {

    .buy-box {
        position: fixed;
        bottom: 63px;
        right: 0;
        top: auto;
        z-index: 999;
        border-radius: 16px 16px 0 0;
        border: none;
        padding: 12px 16px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

.buy-box {
    position: fixed;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 110, 253, 0.07),
            rgba(255, 255, 255, 0.96)
        );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 10px 30px rgba(13, 110, 253, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* نوار بالای باکس */
.buy-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #0d6efd,
        #3d8bfd,
        #6ea8fe
    );
}

/* افکت خیلی ظریف گوشه باکس */
.buy-box::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    top: -70px;
    left: -50px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.06);
    pointer-events: none;
}

    /* مخفی کردن بخش‌های غیرضروری در حالت موبایل */
    .buy-box .buy-items,
    .buy-box .buy-header .buy-label {
        display: none;
    }

    .buy-box .buy-header {
        border: none;
        padding: 0;
        margin: 0;
        flex: 1;
    }

    .buy-box .buy-price {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #2563eb;
        line-height: 1.3;
    }

    .buy-box .buy-price small {
        font-size: 12px;
        display: block;
    }

    .buy-box .buy-button {
        width: auto;
        min-width: 160px;
        height: 48px;
        border-radius: 12px;
        font-size: 15px;
        flex-shrink: 0;
        margin: 0;
    }
}

/* گوشی‌های کوچکتر */
@media (max-width: 480px) {

    .buy-box {
        padding: 10px 12px;
        gap: 12px;
    }

    .buy-box .buy-price {
        font-size: 16px;
    }

    .buy-box .buy-button {
        min-width: 140px;
        height: 46px;
        font-size: 14px;
    }
}


/* =========================================================
   PRODUCT PAGE - SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 767px) {

    /* جلوگیری از اسکرول افقی کل صفحه */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .product-page,
    .product-container,
    .product-layout {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    /* =====================================================
       PRODUCT LAYOUT
       ===================================================== */

    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
    }


    /* =====================================================
       GALLERY
       ===================================================== */

    .product-gallery-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        padding: 8px;
        margin: 0;
        border-radius: 16px;
    }

    .gallery-main-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .gallery-main {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 250px;

        aspect-ratio: 1 / 1;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        overflow: hidden;
    }

    .gallery-main img {
        width: auto;
        height: auto;

        max-width: 88%;
        max-height: 88%;

        object-fit: contain;
    }


    /* فلش‌های گالری */

    .gallery-arrow {
        width: 30px;
        height: 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 11px;

        z-index: 5;
    }


    /* thumbnail ها */

    .gallery-thumbs {
        width: 100%;
        max-width: 100%;

        display: flex;
        gap: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 6px 2px;

        box-sizing: border-box;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .thumb {
        flex: 0 0 48px;

        width: 48px;
        height: 48px;

        box-sizing: border-box;
    }


    /* =====================================================
       PRODUCT INFO
       ===================================================== */

    .product-info-card {
        width: 100%;
        max-width: 100%;

        margin: 0;

        padding: 16px 14px;

        box-sizing: border-box;

        border-radius: 16px;
    }


    /* دسته */

    .product-category {
        width: 100%;

        font-size: 11px;
        line-height: 1.7;

        margin-bottom: 6px;

        overflow-wrap: anywhere;
    }


    /* عنوان */

    .product-title {
        width: 100%;
        max-width: 100%;

        margin: 0 0 12px;

        font-size: 17px;
        line-height: 1.8;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* امتیاز */

    .product-rating {
        width: 100%;

        display: flex;
        align-items: center;

        gap: 7px;

        margin-bottom: 18px;
    }

    .stars {
        font-size: 14px;
    }

    .product-rating span {
        font-size: 11px;
    }


    /* =====================================================
       META
       ===================================================== */

    .product-meta {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

        gap: 0;
    }

    .meta-item {
        width: 100%;
        max-width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 10px;

        padding: 10px 0;

        box-sizing: border-box;
    }

    .meta-title {
        flex: 0 0 auto;

        font-size: 12px;
    }

    .meta-value {
        min-width: 0;
        max-width: 70%;

        font-size: 12px;

        text-align: left;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .product-meta .stock {
        max-width: 75%;

        font-size: 11px;

        text-align: left;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       FEATURES
       ===================================================== */

    .feature-box {
        width: 100%;
        max-width: 100%;

        margin-top: 18px;

        box-sizing: border-box;
    }

    .feature-box h3 {
        font-size: 14px;

        margin-bottom: 12px;
    }

    .feature-box ul {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 8px;

        padding: 0;
        margin: 0;
    }

    .feature-box li {
        width: 100%;

        display: flex;
        align-items: center;

        gap: 8px;

        font-size: 11px;

        box-sizing: border-box;
    }


    /* =====================================================
       BUY BOX
       ===================================================== */

    .buy-box {

        position: fixed;

        right: 0;
        left: 0;
        bottom: 70px;

        width: 100%;
        max-width: 100%;

        margin: 0;

        padding:
            9px
            max(10px, env(safe-area-inset-right))
            calc(9px + env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));

        box-sizing: border-box;

        display: flex;
        align-items: center;

        gap: 9px;

        z-index: 9999;

        border-radius: 15px 15px 0 0;
    }


    /* قسمت قیمت */

    .buy-header {
        flex: 1 1 auto;

        min-width: 0;

        width: auto;

        display: flex;
        flex-direction: column;

        gap: 3px;
    }

    .buy-label {
        font-size: 10px;
        white-space: nowrap;
    }

    .buy-price {
        min-width: 0;

        font-size: 15px;

        line-height: 1.5;

        white-space: nowrap;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .buy-price small {
        font-size: 9px;
    }


    /* =====================================================
       BUY ITEMS
       ===================================================== */

    .buy-items {

        flex: 0 1 auto;

        width: auto;

        display: flex;
        align-items: center;

        gap: 7px;

        min-width: 0;

        overflow: hidden;
    }

    .buy-item {

        display: flex;
        align-items: center;

        gap: 4px;

        white-space: nowrap;

        font-size: 9px;
    }

    .buy-item i {
        font-size: 11px;
        flex: 0 0 auto;
    }


    /* =====================================================
       BUY BUTTON
       ===================================================== */

    .buy-button {

        flex: 0 0 auto;

        width: auto;

        min-width: 125px;
        max-width: 43%;

        height: 43px;

        padding: 0 11px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 6px;

        white-space: nowrap;

        font-size: 11px;

        box-sizing: border-box;
    }

}


/* =========================================================
   EXTRA SMALL
   320px - 380px
   ========================================================= */

@media (max-width: 380px) {

    .product-layout {
        padding: 0 6px;
    }

    .product-gallery-card {
        padding: 6px;
    }

    .gallery-main {
        min-height: 220px;
    }

    .gallery-main img {
        max-width: 84%;
        max-height: 84%;
    }

    .gallery-arrow {
        width: 27px;
        height: 27px;
        font-size: 10px;
    }

    .product-info-card {
        padding: 14px 12px;
    }

    .product-title {
        font-size: 16px;
        line-height: 1.85;
    }

    .meta-item {
        align-items: flex-start;
    }

    .meta-value {
        max-width: 65%;
    }

    .feature-box li {
        font-size: 10px;
    }


    /* Buy Box */

    .buy-box {
        gap: 6px;

        padding-top: 7px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }

    .buy-label {
        font-size: 9px;
    }

    .buy-price {
        font-size: 13px;
    }

    .buy-price small {
        font-size: 8px;
    }

    .buy-items {
        display: none;
    }

    .buy-button {
        min-width: 118px;

        max-width: 48%;

        height: 41px;

        padding: 0 8px;

        font-size: 10px;
    }

}


/* =========================================================
   VERY SMALL
   320px and below
   ========================================================= */

@media (max-width: 340px) {

    .product-title {
        font-size: 15px;
    }

    .product-info-card {
        padding: 13px 10px;
    }

    .gallery-main {
        min-height: 205px;
    }

    .buy-price {
        font-size: 12px;
    }

    .buy-button {
        min-width: 108px;
        font-size: 9px;
    }

}