﻿.loading span {
    animation: loading 1s infinite alternate;
    background: #007DB6;
    border-radius: .6em;
    display: inline-block;
    height: .6em;
    margin: .19em;
    vertical-align: middle;
    width: .6em;
}

    /*
 * Dots Colors
 * Smarter targeting vs nth-of-type?
 */



    .loading span:nth-of-type(2) {
        animation-delay: 0.2s;
        background: #008FB2;
    }

    .loading span:nth-of-type(3) {
        animation-delay: 0.4s;
        background: #009B9E;
    }

    .loading span:nth-of-type(4) {
        animation-delay: 0.6s;
        background: #00A77D;
    }

    .loading span:nth-of-type(5) {
        animation-delay: 0.8s;
        background: #00B247;
    }

    .loading span:nth-of-type(6) {
        animation-delay: 1.0s;
        background: #5AB027;
    }

    .loading span:nth-of-type(7) {
        animation-delay: 1.2s;
        background: #A0B61E;
    }

/*
 * Animation keyframes
 * Use transition opacity instead of keyframes?
 */

@keyframes loading {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



.button-17 {
    -webkit-user-select: none;
    align-items: center;
    appearance: none;
    background-color: #fff;
    border-radius: 24px;
    border-style: none;
    box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px, rgba(0, 0, 0, .14) 0 6px 10px 0, rgba(0, 0, 0, .12) 0 1px 18px 0;
    box-sizing: border-box;
    color: #3c4043;
    cursor: pointer;
    display: inline-flex;
    fill: currentcolor;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    justify-content: center;
    letter-spacing: .25px;
    line-height: normal;
    max-width: 100%;
    overflow: visible;
    padding: 2px 24px;
    position: relative;
    text-align: center;
    text-transform: none;
    touch-action: manipulation;
    transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, .2, 1) 0ms;
    user-select: none;
    width: auto;
    will-change: transform, opacity;
    z-index: 0;
}

    .button-17:hover {
        background: #F6F9FE;
        color: #174ea6;
    }

    .button-17:active {
        box-shadow: 0 4px 4px 0 rgb(60 64 67 / 30%), 0 8px 12px 6px rgb(60 64 67 / 15%);
        outline: none;
    }

    .button-17:focus {
        border: 2px solid #4285f4;
        outline: none;
    }




    .button-17:not(:disabled) {
        box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
    }

        .button-17:not(:disabled):hover {
            box-shadow: rgba(60, 64, 67, .3) 0 2px 3px 0, rgba(60, 64, 67, .15) 0 6px 10px 4px;
        }

        .button-17:not(:disabled):focus {
            box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
        }

        .button-17:not(:disabled):active {
            box-shadow: rgba(60, 64, 67, .3) 0 4px 4px 0, rgba(60, 64, 67, .15) 0 8px 12px 6px;
        }

    .button-17:disabled {
        box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
    }


/* استایل کلی جدول */
.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 15px;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

    /* هدر جدول */
    .size-guide-table thead {
        background: linear-gradient(135deg, #ff6b6b, #f06595);
        color: #fff;
        font-weight: bold;
    }

    /* سلول‌ها */
    .size-guide-table th,
    .size-guide-table td {
        padding: 12px 15px;
        border: 1px solid #eee;
    }

    /* سطرهای زوج */
    .size-guide-table tbody tr:nth-child(even) {
        background-color: #fafafa;
    }

    /* سطر hover */
    .size-guide-table tbody tr:hover {
        background-color: #fff3f6;
        transition: background 0.3s;
    }

/*video upload*/
.upload-container {
    border: 2px dashed #ccc;
    padding: 20px;
    position: relative;
    cursor: pointer;
    text-align: center;
}

    .upload-container:hover {
        background-color: #f9f9f9;
    }

    .upload-container input[type="file"] {
        display: none;
    }

.preview-images-zone {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-image {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    overflow: hidden;
    border-radius: 4px;
}

    .preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.image-cancel {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-weight: bold;
}


.form-group-video {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

input[type="file"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

    input[type="file"]:hover,
    input[type="file"]:focus {
        border-color: #007bff;
    }

#uploadVideoBtn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

    #uploadVideoBtn:hover {
        background-color: #007bff;
        color: #fff;
        box-shadow: 0 0 6px rgba(0,123,255,0.5);
    }

#uploadStatus {
    margin-top: 10px;
    font-weight: bold;
    color: green;
    font-size: 14px;
}

#videoPreview {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    #videoPreview {
        width: 100%;
    }
}



/*VIP BOX*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    }
}

.vip-box {
    max-width: 520px;
    margin: 0px auto;
    padding: 25px;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    border: 2px solid #d4af37; /* طلایی */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    color: #fff;
    font-family: "IRANSans", sans-serif;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.vip-header {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #d4af37;
}

.vip-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.vip-body .highlight {
    color: #d4af37;
    font-weight: bold;
}

.vip-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    color: #1e1e2f;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.glow-btn {
    animation: glow 2s infinite ease-in-out;
}

.vip-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(45deg, #ffd700, #d4af37);
}


.vip-contact-box {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    border: 2px solid #d4af37;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    font-family: "IRANSans", sans-serif;
}

.vip-contact-header {
    font-size: 20px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 15px;
}

.vip-contact-btn {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    border: none;
    border-radius: 8px;
    color: #1e1e2f;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(212,175,55,0.4);
}

    .vip-contact-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(212,175,55,0.6);
    }




.size-form {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e6ecf5, #d9e2ef); /* خاکستری-آبی روشن‌تر ولی پررنگ‌تر */
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-family: "IRANSans", sans-serif;
    text-align: center;
    color: #222;
}

.size-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
}

    .size-title span {
        font-weight: bold;
        color: #007bff;
    }

.size-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

    .size-inputs div {
        flex: 1;
        text-align: right;
    }

    .size-inputs label {
        display: block;
        font-size: 12px;
        margin-bottom: 4px;
        color: #444;
    }

    .size-inputs input {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #bbb;
        border-radius: 6px;
        font-size: 13px;
        transition: all 0.3s;
    }

        .size-inputs input:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 4px rgba(0,123,255,0.25);
        }

.size-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #ff758c, #ff7eb3);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

    .size-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 111, 135, 0.35);
    }

.size-result {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

    .size-result span {
        font-weight: bold;
        font-size: 15px;
        color: #28a745;
    }





/* ریسپانسیو برای گوشی */
@media (max-width: 768px) {
    .size-guide-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .size-guide-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scroll-hint {
        display: block;
        text-align: center;
        font-size: 12px;
        color: #888;
        margin-top: 6px;
        font-style: italic;
    }
}

@media (min-width: 769px) {
    .scroll-hint {
        display: none;
    }
}


@media (max-width: 480px) {
    /* متن دسته‌بندی */
    .product-meta {
        font-size: 0.75rem;
    }

    /* عنوان محصول */
    .product-title.fs-sm {
        font-size: 0.80rem !important;
    }

    /* قیمت محصول */
    .product-price {
        font-size: 0.8rem;
    }
    /* عنوان carousel */
    h2.h3.mb-0.pt-3.me-3 {
        font-size: 0.85rem !important; /* کمی کوچکتر از حالت معمول */
        margin-right: 5px; /* کمی فاصله کمتر */
    }

        /* دکمه "محصولات بیشتر" */
        h2.h3.mb-0.pt-3.me-3 + div.pt-3 a.btn-sm {
            font-size: 0.75rem !important; /* کمی کوچکتر */
            padding: 0.25rem 0.5rem; /* جمع و جورتر */
        }
}


/* Container for floating buttons */
.floating-buttons {
    position: fixed; /* دکمه‌ها را ثابت نگه می‌دارد */
    bottom: 62px; /* فاصله از پایین */
    right: 20px; /* فاصله از راست */
    display: flex; /* برای مرتب‌سازی دکمه‌ها */
    flex-direction: column; /* دکمه‌ها را به صورت عمودی زیر هم قرار می‌دهد */
    gap: 10px; /* فاصله بین دکمه‌ها */
    z-index: 1000; /* اطمینان از قرارگیری بالای سایر عناصر */
}

    /* Base style for all buttons */
    .floating-buttons a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px; /* اندازه دکمه */
        height: 50px; /* اندازه دکمه */
        border-radius: 50%; /* گرد کردن کامل دکمه */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* سایه زیبا */
        transition: transform 0.3s ease, background-color 0.3s ease; /* انیمیشن نرم */
        text-decoration: none; /* حذف زیر خط */
    }

    /* Style for WhatsApp button */
    .floating-buttons .whatsapp {
        background-color: #25D366; /* رنگ سبز واتساپ */
    }

    /* Style for Telegram button */
    .floating-buttons .telegram {
        background-color: #0088CC; /* رنگ آبی تلگرام */
    }

    /* Image style inside the buttons */
    .floating-buttons img {
        filter: invert(100%); /* برای سفید کردن آیکون‌ها */
        width: 26px; /* اندازه آیکون */
        height: 26px; /* اندازه آیکون */
    }

    /* Hover effect */
    .floating-buttons a:hover {
        transform: scale(1.1); /* بزرگ‌تر شدن دکمه هنگام هاور */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* سایه بیشتر هنگام هاور */
    }
