﻿
:root {
    --primary-color: #787755;
    --primary-color-dark: #5a5d4a;
    --search-button-color: #6d715d;
    --font-family-base: 'Vazirmatn', Tahoma, sans-serif;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-hero-slider {
        display: none; /* مخفی کردن اسلایدر دسکتاپ */
    }

    .mobile-slider {
        display: block !important; /* نمایش اسلایدر موبایل */
    }
}


body {
    margin-bottom: 60px;
    font-family: var(--font-family-base);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.hero-slider-full {
    width: 100%;
    overflow: hidden;
}

.single-slider {
    width: 100%;
    height: 90vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: kenburns 20s ease-out infinite alternate both;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, 2%);
    }
}

.single-slider.reverse-animation {
    animation-direction: alternate-reverse;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owl-item.active .single-slider .button {
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.4s;
}

.single-slider .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: bold;
}

    .single-slider .btn:hover {
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        border-color: white;
        transform: translateY(-3px);
    }

.hero-slider-full .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-slider-full .owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.hero-slider-full .owl-theme .owl-dots .owl-dot.active span,
.hero-slider-full .owl-theme .owl-dots .owl-dot:hover span {
    background: #ffffff;
    width: 25px;
    border-radius: 8px;
}

/* =====================================
                    بخش ۳: استایل‌های اجزای سایت
                ======================================== */
.product-container {
    overflow: hidden;
    display: inline-block;
}

.product-img {
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-container:hover .product-img {
    transform: scale(1.1);
}

.size-option {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

    .size-option:hover {
        background-color: #eee;
    }

    .size-option.selected {
        background-color: #000;
        color: #fff;
        border-color: #000;
    }

.imgbannner {
    border: 1px solid #e6e5e5;
}

.banner-content-rtl {
    padding-right: 16px !important;
}

.show-brand-btn {
    background-color: var(--primary-color) !important;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f8f8;
    padding: 5px;
    box-sizing: border-box;
}

#search-form {
    display: flex;
    border: none;
    border-radius: 25px;
    overflow: hidden;
    height: 50px;
}

#search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 17px;
    direction: rtl;
    text-align: right;
    background-color: transparent;
    transition: all 0.3s ease;
}

    #search-input:focus {
        background-color: #ffffff;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    }

    #search-input::placeholder {
        color: #888;
    }

#search-form button {
    background-color: var(--search-button-color);
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 17px;
    border-radius: 0 25px 25px 0;
    transition: background-color 0.3s ease, transform 0.1s ease;
    flex-shrink: 0;
}

    #search-form button:hover {
        background-color: var(--primary-color-dark);
        transform: translateY(-1px);
    }

    #search-form button:active {
        transform: translateY(0);
    }

#search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    padding: 10px 0;
    margin: 0;
    display: none;
}

    #search-results ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #search-results li {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 15px;
    }

        #search-results li:last-child {
            border-bottom: none;
        }

        #search-results li:hover {
            background-color: #f5f5f5;
            cursor: pointer;
        }

        #search-results li a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #333;
            width: 100%;
        }

        #search-results li img {
            margin-left: 15px;
            border-radius: 6px;
            width: 50px;
            height: 50px;
            object-fit: cover;
            flex-shrink: 0;
        }

        #search-results li a span:first-of-type {
            flex-grow: 1;
            font-weight: 600;
            font-size: 15px;
        }

        #search-results li a span:last-of-type {
            font-weight: bold;
            color: #007bff;
            font-size: 14px;
            white-space: nowrap;
        }

    #search-results p {
        text-align: center;
        padding: 15px;
        color: #777;
        font-style: italic;
    }
