﻿
/* ======================== FONTS ========================  */

/* LIGTH */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* REGULAR */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* MEDIUM */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* BOLD */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ======================== OTHER ======================== */

:root {
    --brand-color: #ff3366;
    --brand-hover: #e02e5a;
    --brand-light: rgba(255, 51, 102, 0.08);
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 20px 40px rgba(255, 51, 102, 0.15);
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Utility Classes (بدون !important) --- */
/* چون این استایل‌ها بعد از بوت‌استرپ لود می‌شوند، به صورت طبیعی اعمال می‌شوند */
.text-brand {
    color: var(--brand-color);
}

.bg-brand {
    background-color: var(--brand-color);
    color: white;
}

.bg-brand-light {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

.border-brand {
    border-color: var(--brand-color);
}

.hover-brand {
    transition: color 0.3s ease;
}

    .hover-brand:hover {
        color: var(--brand-color);
    }

.cursor-pointer {
    cursor: pointer;
}

/* --- Header Styling --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1020;
}

/* برای غلبه بر استایل‌های بوت‌استرپ از سلکتور دقیق‌تر استفاده می‌کنیم */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:hover {
        color: var(--brand-color);
    }

    /* افکت خط زیر منو */
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        right: 0;
        background: var(--brand-color);
        transition: width 0.3s;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

/* --- Product Card --- */
.product-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--card-hover-shadow);
        border-color: rgba(255, 51, 102, 0.2);
    }

/*.product-img-wrapper {
    // background: #f8f9fa;
    border-radius: 15px;
    margin: 10px;
    position: relative;
    overflow: hidden;
}*/

/* دکمه سبد خرید شناور */
.btn-cart-circle {
    background: white;
    color: var(--text-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
    transform: translateY(10px);
    z-index: 2;
}

.product-card:hover .btn-cart-circle {
    opacity: 1;
    transform: translateY(0);
}

.btn-cart-circle:hover {
    background-color: var(--brand-color);
    color: white;
    transform: scale(1.1);
}

/* --- Form Elements --- */
.form-control, .form-select {
    border-radius: 12px;
    padding: 10px 15px;
    border: 1px solid #eee;
    background-color: #fdfdfd;
}

    /* استفاده از :focus برای غلبه بر سایه آبی پیش‌فرض بوت‌استرپ */
    .form-control:focus, .form-select:focus {
        box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
        border-color: var(--brand-color);
        background-color: #fff;
    }

/* Checkbox Customization */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    border-radius: 5px;
}

    .form-check-input:checked {
        background-color: var(--brand-color);
        border-color: var(--brand-color);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
        border-color: var(--brand-color);
    }

input[type=range] {
    accent-color: var(--brand-color);
}

/* --- Mobile Styles --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid #eee;
    padding-bottom: env(safe-area-inset-bottom);
}

    .mobile-bottom-nav a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 0.75rem;
        color: var(--text-gray);
        text-decoration: none;
        transition: 0.3s;
    }

        .mobile-bottom-nav a i {
            display: block;
            font-size: 1.4rem;
            margin-bottom: 4px;
            transition: 0.3s;
        }

        .mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
            color: var(--brand-color);
            font-weight: bold;
        }

@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }

    .btn-cart-circle {
        opacity: 1;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Brand Button */
.btn-brand {
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.25);
}

    .btn-brand:hover {
        background: var(--brand-hover);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(255, 51, 102, 0.35);
    }

    .btn-brand:active {
        transform: translateY(0);
        box-shadow: 0 5px 12px rgba(255, 51, 102, 0.25);
    }

/* معادل 14 پیکسل (با فرض اینکه فونت پایه 16 پیکسل باشد) */
.fs-7 {
    font-size: 0.875rem !important;
}

/* معادل 12 پیکسل (بسیار ریز، مناسب برای متون کپی‌رایت، تگ‌ها یا توضیحات خیلی فرعی) */
.fs-8 {
    font-size: 0.75rem !important;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

@media (max-width: 576px) {
    .g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}