﻿
body {
    background: #040b24;
    color: #fff;
}

.product-card {
    background: #121a33;
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,.45);
}

.image-box {
    /*    background: #fff;*/
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

    .image-box img {
        max-height: 380px;
        object-fit: contain;
    }

.product-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.4;
    background: linear-gradient(90deg,#d4af37,#f5d76e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-meta {
    margin-top: 10px;
}

.stock-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

.in-stock {
    background: rgba(0,200,100,.18);
    color: #19c37d;
}

.out-stock {
    background: rgba(255,60,60,.18);
    color: #ff6b6b;
}

.price-box {
    margin-top: 25px;
    background: #0f1730;
    padding: 22px;
    border-radius: 16px;
}

.price-main {
    font-size: 34px;
    font-weight: 900;
    color: #d4af37;
}

    .price-main span {
        font-size: 15px;
        color: #ccc;
        margin-right: 6px;
    }

.old-price {
    text-decoration: line-through;
    color: #888;
}

.variant-box {
    margin-top: 25px;
}

    .variant-box label {
        margin-bottom: 6px;
        display: block;
        font-weight: 600;
    }

.form-select-dark {
    background: #0c1433;
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 12px;
}

.buy-box {
    margin-top: 30px;
}

.buy-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    background: #d4af37;
    color: #091022;
    transition: .2s;
}

    .buy-btn:hover {
        transform: translateY(-2px);
    }

.description-card {
    margin-top: 40px;
    background: #121a33;
    border-radius: 20px;
    padding: 30px;
}

    .description-card h3 {
        color: #d4af37;
        margin-bottom: 20px;
    }

    .description-card p {
        line-height: 2;
        color: rgba(255,255,255,.8);
    }

.stock-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
}


.image-box {
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: #fff;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.price-box {
    margin: 20px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-bottom: 4px;
}

.price-main {
    font-size: 28px;
    font-weight: 900;
    color: #d4af37;
}

    .price-main span {
        font-size: 14px;
    }

.discount-save {
    margin-top: 6px;
    font-size: 14px;
    color: #19c37d;
    font-weight: 700;
}
/* اسلایدر اصلی */
.gallery-top {
    height: 450px;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 10px;
    /*    background: #fff;*/
}

    .gallery-top img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* بندانگشتی‌ها */
.gallery-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

    .gallery-thumbs .swiper-slide {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border: 2px solid #007bff; /* رنگ لبه عکس فعال */
        border-radius: 5px;
    }

    .gallery-thumbs img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }





/* اصلاح کلی اسلایدر اصلی */
.gallery-top {
    height: 400px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    /*    background: #fff;*/
}

    .gallery-top .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* عکس رو توی باکس جا میده بدون دفرمه شدن */
        padding: 10px;
    }

/* بندانگشتی‌ها - کاملاً جدا از باکس اصلی */
.gallery-thumbs {
    height: 90px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

    .gallery-thumbs .swiper-slide {
        width: 25%; /* 4 تا در هر ردیف */
        height: 100%;
        opacity: 0.5;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 10px;
        overflow: hidden;
        transition: 0.3s;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border-color: #d4af37; /* رنگ طلایی برندت */
    }

    .gallery-thumbs .swiper-slide img {
        /* width: 500px; */
        /* height: 400px; */
        object-fit: cover;
    }
