:root {
    --brz-brand: #FDD504;
    --brz-brand-alt: #E6C004;
    --brz-heading: #FFFFFF;
    --brz-text: #F0F0F0;
    --brz-secondary: #0C0C0C;
    --brz-bg-soft: #1A1A1A;
    --brz-border: #FDD504;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, Arial, sans-serif;
}

body {
    padding-top: 90px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--brz-secondary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--brz-brand);
    border-radius: 10px;
    border: 2px solid var(--brz-secondary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brz-brand-alt);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brz-brand) var(--brz-secondary);
}

.brz-header {
    background: var(--brz-secondary);
    border-bottom: 2px solid var(--brz-border);
    box-shadow: 0 4px 20px rgba(253, 213, 4, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    direction: rtl;
    transition: all 0.3s ease;
}
.brz-header.scrolled {
    background: #0C0C0C;
    box-shadow: 0 4px 30px rgba(253, 213, 4, 0.25);
}

.brz-container {
    max-width: 100%;
    margin: 0;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

@media (min-width: 1600px) {
    .brz-container {
        padding: 10px 50px;
    }
}

@media (min-width: 1920px) {
    .brz-container {
        padding: 10px 80px;
    }
}

.brz-logo-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.brz-logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.brz-logo-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 213, 4, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.brz-logo-link:hover::after {
    opacity: 1;
    width: 130%;
    height: 130%;
}

.brz-logo-link:hover .brz-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--brz-brand));
}

.brz-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .brz-logo-section {
        flex: 1;
        display: flex;
        align-items: center;
        position: relative;
        gap: 15px;
    }

    .brz-logo-link {
        flex: 0 0 auto;
        z-index: 2;
    }

    .brz-hamburger-btn {
        margin-right: 0;
        z-index: 2;
    }

    .brz-site-title {
        position: absolute;
        left: 40%;
        transform: translateX(-50%);
        width: auto;
        text-align: center;
        pointer-events: none;
        z-index: 1;
        white-space: nowrap;
    }

    .brz-user-icons {
        margin-right: auto;
        padding-left: 0;
    }
}

.brz-site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    color: var(--brz-text);
    line-height: 1.5;
}
.brz-site-title .title-line1 {
    font-size: 14px;
    font-weight: 400;
}
.brz-site-title .title-line2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--brz-brand);
    letter-spacing: 1px;
    margin-top: 2px;
}

.brz-hamburger-btn {
    background: transparent;
    border: 2px solid var(--brz-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.brz-hamburger-btn span {
    width: 22px;
    height: 2px;
    background: var(--brz-brand);
    transition: all 0.3s;
    border-radius: 2px;
}
.brz-hamburger-btn:hover {
    background: var(--brz-brand);
    transform: rotate(180deg);
}
.brz-hamburger-btn:hover span {
    background: var(--brz-secondary);
}
.brz-hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.brz-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.brz-hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.brz-user-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 auto;
    margin-left: 0;
    padding-left: 0;
}

.brz-icon-link, .brz-home-icon {
    color: var(--brz-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    position: relative;
}
.brz-icon-link i, .brz-home-icon i {
    font-size: 22px;
    color: var(--brz-brand);
    transition: all 0.3s;
}
.brz-icon-link span, .brz-home-icon span {
    font-size: 12px;
}
.brz-icon-link:hover, .brz-home-icon:hover {
    transform: translateY(-3px);
}
.brz-icon-link:hover i, .brz-home-icon:hover i {
    color: var(--brz-heading);
    text-shadow: 0 0 10px var(--brz-brand);
}

.brz-search-section {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.brz-search-toggle {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--brz-brand);
}
.brz-search-toggle span {
    font-size: 12px;
    color: var(--brz-text);
}
.brz-search-toggle:hover {
    transform: translateY(-3px);
}
.brz-search-toggle:hover i {
    color: var(--brz-heading);
}

.brz-search-box {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: var(--brz-secondary);
    border: 2px solid var(--brz-brand);
    border-radius: 50px;
    padding: 5px;
    margin-top: 15px;
    display: none;
    box-shadow: 0 15px 40px rgba(253, 213, 4, 0.3);
    z-index: 1001;
}
.brz-search-box.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.brz-search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 50px;
    padding: 3px;
}

.brz-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--brz-heading);
    font-size: 14px;
    outline: none;
}
.brz-search-input::placeholder {
    color: rgba(240, 240, 240, 0.5);
}

.brz-search-submit {
    background: var(--brz-brand);
    border: none;
    padding: 10px 25px;
    color: var(--brz-secondary);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 3px;
    white-space: nowrap;
}
.brz-search-submit:hover {
    background: var(--brz-brand-alt);
    color: var(--brz-heading);
    transform: scale(1.05);
}

.brz-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FDD504;
    color: #0C0C0C;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #0C0C0C;
    line-height: 1;
    padding: 0 4px;
}

.brz-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1A1A1A;
    border: 1px solid #FDD504;
    color: #FFF;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 30px rgba(253,213,4,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    direction: rtl;
    white-space: nowrap;
}
.brz-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.brz-toast-icon {
    font-size: 20px;
}
.brz-toast-link {
    color: #FDD504;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .brz-toast {
        bottom: 90px;
        font-size: 12px;
        padding: 12px 22px;
    }
}

/* ============================================
   منوی همبرگری با انیمیشن و اسکرول صحیح
   ============================================ */

.brz-hamburger-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: var(--brz-secondary);
    z-index: 1001;
    padding: 80px 20px 100px 20px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    border-left: 2px solid var(--brz-border);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    direction: rtl;
}

/* اسکرول زیبا برای منو */
.brz-hamburger-menu::-webkit-scrollbar {
    width: 4px;
}
.brz-hamburger-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.brz-hamburger-menu::-webkit-scrollbar-thumb {
    background: var(--brz-brand);
    border-radius: 4px;
}

.brz-hamburger-menu.active {
    right: 0;
    animation: slideInFromRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInFromRight {
    from {
        right: -400px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}

/* انیمیشن منو موبایل */
@media (max-width: 768px) {
    .brz-hamburger-menu {
        width: 280px !important;
        right: -280px !important;
        padding: 80px 15px 100px 15px !important;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    
    @keyframes slideInFromRightMobile {
        from {
            right: -280px;
            opacity: 0;
        }
        to {
            right: 0;
            opacity: 1;
        }
    }
    
    .brz-hamburger-menu.active {
        right: 0 !important;
        animation: slideInFromRightMobile 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    }
}

/* استایل هدر منو */
.brz-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--brz-border);
    margin-bottom: 20px;
}
.brz-menu-header h3 {
    color: var(--brz-brand);
    font-size: 24px;
}

.brz-close-menu {
    background: transparent;
    border: none;
    color: var(--brz-text);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.brz-close-menu:hover {
    background: var(--brz-brand);
    color: var(--brz-secondary);
    transform: rotate(90deg);
}

/* بخش‌های منو */
.brz-menu-section {
    margin-bottom: 20px;
}
.brz-menu-section-title {
    color: var(--brz-brand);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(253, 213, 4, 0.3);
    display: inline-block;
}

/* لیست منو */
.brz-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brz-menu-list li {
    margin-bottom: 6px;
}

/* ============================================
   استایل لینک‌های منو - با کادر ثابت
   ============================================ */

.brz-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: var(--brz-text, #F0F0F0) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(253, 213, 4, 0.15) !important;
}

.brz-menu-link i {
    font-size: 14px !important;
    color: var(--brz-brand, #FDD504) !important;
    min-width: 24px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.brz-menu-link span {
    flex: 1 !important;
    text-align: right !important;
}

/* ===== افکت هاور - طلایی با متن مشکی ===== */
.brz-menu-link:hover {
    background: var(--brz-brand, #FDD504) !important;
    color: var(--brz-secondary, #0C0C0C) !important;
    transform: translateX(-5px) !important;
    border-color: var(--brz-brand, #FDD504) !important;
}

.brz-menu-link:hover i {
    color: var(--brz-secondary, #0C0C0C) !important;
}

/* منوی موبایل پایین صفحه */
.brz-mobile-menu {
    display: none;
    background: var(--brz-secondary);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-top: 2px solid var(--brz-border);
    padding: 8px 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.brz-mobile-menu-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.brz-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--brz-text);
    text-decoration: none;
    gap: 4px;
    padding: 5px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}
.brz-mobile-item i {
    font-size: 22px;
    color: var(--brz-text);
    transition: all 0.3s;
}
.brz-mobile-item span {
    font-size: 11px;
}
.brz-mobile-item:hover i,
.brz-mobile-item.active i {
    color: var(--brz-brand);
}

/* اطمینان از کلیک روی کل دکمه تماس */
#phoneCallBtn {
    cursor: pointer;
}

#phoneCallBtn i,
#phoneCallBtn span {
    pointer-events: none;
}

.brz-mobile-cart-count {
    position: absolute;
    top: -5px;
    right: 10px;
    background: #FDD504;
    color: #0C0C0C;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #0C0C0C;
}

/* ============================================
   جلوگیری از تداخل توست با دکمه‌ها
   ============================================ */

.brz-toast:not(.show) {
    pointer-events: none;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1024px) {
    .brz-container {
        padding: 10px 20px;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 80px;
        padding-bottom: 70px;
    }

    .brz-container {
        padding: 8px 15px;
        max-width: 100%;
    }

    .brz-logo-img {
        width: 50px !important;
        height: 50px !important;
    }

    .brz-logo-link::after {
        width: 100%;
        height: 100%;
    }

    .brz-logo-link:hover::after {
        width: 140%;
        height: 140%;
    }

    .brz-site-title {
        position: absolute;
        left: 50%;
        transform: translate(calc(-50% + -35px), 0);
        width: auto;
        text-align: center;
        pointer-events: none;
        z-index: 1;
    }

    .brz-site-title .title-line1 {
        font-size: 11px;
    }
    .brz-site-title .title-line2 {
        font-size: 15px;
    }

    .brz-user-icons .brz-home-icon,
    .brz-user-icons .brz-icon-link:not(.brz-search-section) {
        display: none;
    }

    .brz-search-section {
        margin: 0;
        position: static;
    }
    .brz-search-toggle {
        position: relative;
        z-index: 1002;
    }
    .brz-search-box {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 320px;
        margin-top: 0;
    }

    .brz-user-icons {
        gap: 15px;
    }

    .brz-mobile-menu {
        display: block;
    }

    .brz-logo-section .brz-hamburger-btn {
        display: none;
    }

    .brz-logo-section {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        position: relative;
    }

    .brz-logo-link {
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 2;
    }

    .brz-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .brz-user-icons {
        flex: 0 0 auto;
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .brz-container {
        padding: 5px 12px;
    }

    .brz-logo-img {
        width: 45px !important;
        height: 45px !important;
    }

    .brz-site-title .title-line1 {
        font-size: 10px;
    }
    .brz-site-title .title-line2 {
        font-size: 14px;
    }

    .brz-search-box {
        width: calc(100% - 20px);
        max-width: 280px;
    }

    .brz-user-icons {
        gap: 10px;
    }
}

@media (max-width: 374px) {
    .brz-logo-img {
        width: 40px !important;
        height: 40px !important;
    }
    .brz-site-title .title-line1 {
        font-size: 9px;
    }
    .brz-site-title .title-line2 {
        font-size: 12px;
    }
    .brz-user-icons {
        gap: 8px;
    }
}