﻿/* ============================================================
   استایل اختصاصی آسو کالکشن | Asoo Collection
   بر اساس رنگ‌های: #9f4a59, #e1b3b2, #f4dfde
   ============================================================ */

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-RD-Regular.woff2') format('woff2'), url('/assets/fonts/Vazirmatn-RD-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #fcf7f6; /* ملایم‌تر با تم رنگی */
    color: #2d2a2a;
}

/* ===== متغیرهای رنگی برند آسو کالکشن ===== */
:root {
    --primary: #9f4a59; /* رنگ اصلی */
    --primary-dark: #7a3a47; /* تیره‌تر */
    --primary-light: #e1b3b2; /* روشن */
    --primary-lighter: #f4dfde; /* خیلی روشن (پس‌زمینه‌ها) */
    --secondary: #1e1a2b;
    --gradient: linear-gradient(135deg, #9f4a59 0%, #c47a7a 100%);
    --gradient-soft: linear-gradient(135deg, #e1b3b2 0%, #f4dfde 100%);
}

/* ===== کلاس‌های کمکی ===== */
.text-primary-custom {
    color: var(--primary);
}

.bg-primary-custom {
    background: var(--gradient);
}

.btn-primary-custom {
    background: var(--gradient);
    border: none;
    transition: all 0.3s;
    color: #fff;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(159, 74, 89, 0.35);
    }

/* ===== تاپ بار ===== */
.top-bar {
    background: var(--secondary);
    color: #c5bdbd;
    font-size: 0.8rem;
}

/* ===== هدر ===== */
.navbar-brand {
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.search-box {
    background: #f4efee;
    border-radius: 50px;
    padding: 8px 20px;
    border: 1px solid #e1b3b2;
}

    .search-box input {
        background: transparent;
        border: none;
        outline: none;
        width: 100%;
    }

    .search-box button {
        background: none;
        border: none;
        color: var(--primary);
    }

    .search-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(159, 74, 89, 0.15);
    }

/* ===== بخش Hero ===== */
.hero-section {
    background: linear-gradient(135deg, #1e1a2b 0%, #2d2538 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* ===== کارت‌های دسته‌بندی ===== */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0e6e5;
}

    .category-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(159, 74, 89, 0.12);
    }

    .category-card i {
        font-size: 2rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* ===== کارت‌های محصول ===== */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f0e6e5;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(159, 74, 89, 0.10);
        border-color: var(--primary);
    }

.product-img {
    background: linear-gradient(135deg, #faf5f4 0%, #f4edec 100%);
    padding: 20px;
    text-align: center;
}

    .product-img img {
        /*height: 160px;*/
        object-fit: contain;
        transition: transform 0.3s;
    }

.product-card:hover .product-img img {
    transform: scale(1.04);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c0395a;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 1;
}

.price-current {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.price-old {
    color: #a58a88;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.rating {
    color: #e8b84b;
    font-size: 0.8rem;
}

.btn-outline-primary-custom {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: all 0.3s;
}

    .btn-outline-primary-custom:hover {
        background: var(--primary);
        color: white;
    }

/* ===== فلش سیل ===== */
.flash-sale {
    background: var(--gradient);
    border-radius: 25px;
}

.timer-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 70px;
}

.timer-number {
    font-size: 1.8rem;
    font-weight: 800;
}

/* ===== بنر ===== */
.banner-5g {
    background: linear-gradient(135deg, #1e1a2b 0%, #2d2538 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

/* ===== باکس‌های ویژگی ===== */
.feature-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #f0e6e5;
}

    .feature-box:hover {
        transform: translateY(-3px);
        border-color: var(--primary);
    }

    .feature-box i {
        font-size: 2rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* ===== برندها ===== */
.brand-slide {
    padding: 20px;
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s;
}

    .brand-slide:hover {
        opacity: 1;
        transform: scale(1.05);
    }

    .brand-slide img {
        max-width: 100px;
        filter: grayscale(100%);
    }

    .brand-slide:hover img {
        filter: grayscale(0);
    }

/* ===== مقالات ===== */
.article-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(159, 74, 89, 0.06);
    background: white;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(159, 74, 89, 0.10);
    }

.article-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ===== خبرنامه ===== */
.newsletter-section {
    background: linear-gradient(135deg, #1e1a2b 0%, #2d2538 100%);
    border-radius: 25px;
}

/* ===== فوتر ===== */
footer {
    background: #1e1a2b;
    color: #c5bdbd;
}

    footer a {
        color: #c5bdbd;
        text-decoration: none;
        transition: all 0.3s;
    }

        footer a:hover {
            color: var(--primary-light);
        }

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .timer-box {
        padding: 8px 12px;
        min-width: 55px;
    }

    .timer-number {
        font-size: 1.2rem;
    }
}

/* ===== مودال لاگین ===== */
.modal-login .modal-content {
    border-radius: 20px;
}

.modal-login .modal-header {
    border-bottom: 1px solid #e1b3b2;
    padding: 20px 25px;
}

.modal-login .modal-body {
    padding: 25px;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1b3b2;
    border-radius: 12px;
    margin-bottom: 15px;
}

    .login-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(159, 74, 89, 0.12);
    }

.login-btn {
    background: var(--gradient);
    border: none;
    padding: 12px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    width: 100%;
}

.login-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e1b3b2;
    margin-top: 15px;
}

/* ===== جستجوی زنده ===== */
.search-container {
    position: relative;
    flex: 1;
}

.search-box {
    background: #f4efee;
    border-radius: 50px;
    padding: 8px 15px;
    border: 1px solid #e1b3b2;
    transition: all 0.3s;
}

    .search-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(159, 74, 89, 0.12);
    }

    .search-box input {
        border: none;
        background: none;
        outline: none;
        padding: 8px 0;
    }

    .search-box button {
        background: var(--primary);
        border: none;
        padding: 8px 20px;
        border-radius: 40px;
        color: white;
        font-weight: 600;
    }

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f4edec;
}

    .live-search-item:hover {
        background: #faf5f4;
    }

    .live-search-item img {
        width: 45px;
        height: 45px;
        object-fit: cover;
        border-radius: 8px;
    }

    .live-search-item .info {
        flex: 1;
    }

    .live-search-item .title {
        font-weight: 600;
        font-size: 0.9rem;
        color: #2d2a2a;
        margin-bottom: 4px;
    }

    .live-search-item .price {
        color: var(--primary);
        font-size: 0.8rem;
        font-weight: 700;
    }

.live-search-loading,
.live-search-empty {
    padding: 20px;
    text-align: center;
    color: #a58a88;
}

/* ===== دکمه شناور ارتباط با ما ===== */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    direction: ltr;
}

.floating-button {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(159, 74, 89, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

    .floating-button i {
        font-size: 28px;
        color: white;
        transition: all 0.3s;
    }

    .floating-button:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(159, 74, 89, 0.5);
    }

    .floating-button .ripple {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        animation: ripple 2s infinite;
    }

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.floating-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(20px) scale(0.8);
}

    .floating-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

.floating-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
    transition: all 0.3s;
    position: relative;
    direction: rtl;
}

    .floating-item i {
        font-size: 24px;
        color: white;
        transition: all 0.3s;
    }

    .floating-item:hover {
        transform: scale(1.1) translateX(-5px);
    }

    .floating-item .item-label {
        position: absolute;
        right: 65px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        font-weight: 500;
        font-family: 'Vazirmatn', sans-serif;
        direction: rtl;
    }

    .floating-item:hover .item-label {
        opacity: 1;
        visibility: visible;
        right: 70px;
    }

.phone-item {
    background: linear-gradient(135deg, #10b981, #059669);
}

.whatsapp-item {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.instagram-item {
    background: linear-gradient(135deg, #E4405F, #833AB4);
}

.telegram-item {
    background: linear-gradient(135deg, #0088cc, #005a8a);
}

.floating-item:nth-child(1) {
    animation-delay: 0s;
}

.floating-item:nth-child(2) {
    animation-delay: 0.05s;
}

.floating-item:nth-child(3) {
    animation-delay: 0.1s;
}

.floating-item:nth-child(4) {
    animation-delay: 0.15s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-menu.open .floating-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(50px);
}

    .floating-menu.open .floating-item:nth-child(1) {
        animation-delay: 0s;
    }

    .floating-menu.open .floating-item:nth-child(2) {
        animation-delay: 0.05s;
    }

    .floating-menu.open .floating-item:nth-child(3) {
        animation-delay: 0.1s;
    }

    .floating-menu.open .floating-item:nth-child(4) {
        animation-delay: 0.15s;
    }

/* ===== موبایل ===== */
@media (max-width: 768px) {
    .floating-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-button {
        width: 50px;
        height: 50px;
    }

        .floating-button i {
            font-size: 24px;
        }

    .floating-menu {
        bottom: 70px;
    }

    .floating-item {
        width: 45px;
        height: 45px;
    }

        .floating-item i {
            font-size: 20px;
        }

        .floating-item .item-label {
            font-size: 10px;
            padding: 4px 10px;
            right: 55px;
        }

        .floating-item:hover .item-label {
            right: 60px;
        }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.06);
        z-index: 1000;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 12px !important;
        max-height: 70vh;
        overflow-y: auto;
    }

        .navbar-nav .nav-item {
            width: 100%;
        }

        .navbar-nav .nav-link {
            display: block;
            padding: 10px 15px;
            border-radius: 12px;
            transition: all 0.3s;
        }

            .navbar-nav .nav-link:hover {
                background: var(--primary-lighter);
            }

    .search-box input {
        font-size: 14px;
    }

    .search-box button {
        padding: 6px 15px;
        font-size: 12px;
    }

    .btn-outline-primary, .btn-primary-custom {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 11px;
    }

        .top-bar .container {
            flex-direction: column;
            text-align: center;
        }
}

@media print {
    .floating-container {
        display: none;
    }
}

/* ===== کارت‌های درباره محصول ===== */
.about-product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .about-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(159, 74, 89, 0.08);
    }

    .about-product-card h6,
    .about-product-card small {
        color: inherit;
    }

@media (max-width: 768px) {
    .about-product-card {
        padding: 10px !important;
    }

        .about-product-card i {
            font-size: 1.5rem !important;
        }

        .about-product-card h6 {
            font-size: 0.8rem;
        }

        .about-product-card small {
            font-size: 0.6rem;
        }
}

/* ===== دکمه‌های ناوبری ===== */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background: var(--primary-lighter);
    border-radius: 12px;
}

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%239f4a59' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
