/* ================================================
   فروشگاه چرخ خیاطی حضرتی
   فایل اصلی استایل - main.css
   طراح: ایلیا آخوندزاده | 09145537547
================================================ */

/* ================================================
   1. CSS CUSTOM PROPERTIES 
================================================ */
:root {
    --brand-primary: #982067;
    --brand-primary-dark: #6b0048;
    --brand-primary-light: #c4387f;
    --brand-primary-rgb: 152, 32, 103;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #888;
    --border-color: #e5e7eb;

    --primary: #982067;
    --primary-dark: #6e1649;
    --primary-darker: #4f1034;
    --primary-light: #b8447f;
    --primary-soft: #f8ecf3;
    --gold: #c79a45;
    --ink: #2c1b27;
    --muted: #8d7b87;
    --bg: #f7f5f7;
    --card: #ffffff;
    --border: #ece2e9;
    --success: #258c5e;
    --success-soft: #e6f5ee;
    --warning: #b8790f;
    --warning-soft: #fbf0dc;
    --danger: #c23b3b;
    --danger-soft: #fbe9e9;
    --info: #2f7fb8;
    --info-soft: #e8f1fa;
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-w: 272px;

    --primary-darker: #4f1034;
    --primary-light: #b8447f;
    --primary-soft: #f8ecf3;
    --gold: #c79a45;
    --ink: #2c1b27;
    --muted: #8d7b87;
    --bg: #f7f5f7;
    --border: #ece2e9;
    --success: #258c5e;
    --success-soft: #e6f5ee;
    --warning: #b8790f;
    --warning-soft: #fbf0dc;
    --danger: #c23b3b;
    --danger-soft: #fbe9e9;
    --info: #2f7fb8;
    --info-soft: #e8f1fa;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --header-height: 60px;
    --transition: 0.25s ease;
    --font-persian: 'Vazirmatn', 'IranSans', Tahoma, Arial, sans-serif;
}

/*  2. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-persian);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-primary);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: var(--font-persian);
}
.toast{font-size: 16px !important;}
.form-control {
    font-size: unset;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 .2rem rgba(152, 32, 103, .12);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    /* background: var(--brand-primary); */
    border-radius: 3px;
}


/* ================================================
   3. UTILITY CLASSES
================================================ */
.text-primary-brand {
    color: var(--brand-primary) !important;
}

.bg-primary-brand {
    background-color: var(--brand-primary) !important;
}

.btn-primary-brand {
    background: var(--brand-primary);
    color: var(--white);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-family: var(--font-persian);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-brand:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.3);
}

.btn-outline-brand {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-family: var(--font-persian);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: var(--white);
}

.section-pad {
    padding: 50px 0;
}

.bg-light-subtle {
    background: var(--bg-light);
}

.btn-gold {
    background: #c99a4b;
    color: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.35rem;
    padding: 1.2rem 2.2rem;
    border-radius: 10px;
    transition: transform 0.18s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.18s cubic-bezier(0.22, 0.9, 0.3, 1), background 0.18s cubic-bezier(0.22, 0.9, 0.3, 1);
    white-space: nowrap;
}

.badge-new,
.badge-hot,
.badge-discount,
.badge-recommended {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.badge-new {
    background: #43a047;
    color: #fff;
}

.badge-hot {
    background: #e53935;
    color: #fff;
}

.badge-discount {
    background: #e53935;
    color: #fff;
}

.badge-recommended {
    background: #f57c00;
    color: #fff;
}

.text-primary {
    color: var(--primary) !important;
}

/* ================================================
   4. NOTIFICATION BAR
================================================ */
.notification-bar {
    background: var(--brand-primary);
    color: var(--white);
    padding: 10px 0;
    position: relative;
    z-index: 1050;
    text-align: center;
}

.notif-content {
    font-size: 13px;
    gap: 8px;
}

.notif-link {
    color: #ffe;
    text-decoration: underline;
    font-weight: 600;
}

.notif-link:hover {
    color: #fff;
}

.notif-close {
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    font-size: 16px;
    padding: 0 8px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.notif-close:hover {
    color: #fff;
}

/* ================================================
   5. HEADER
================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Header Top */
.header-top {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-medium);
}

.header-top .divider {
    opacity: 0.3;
}

.top-link {
    color: var(--text-medium);
    font-size: 12px;
    transition: color var(--transition);
}

.top-link:hover {
    color: var(--brand-primary);
}

/* Header Main */
.header-main {
    padding: 12px 16px;
    background: var(--white);
}

.header-main .container-fluid {
    padding: 0 16px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 50px;
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary);
}

.logo-sub {
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
}

/* Search */
.header-search {
    max-width: 600px;
    position: relative;
}

.search-form {
    position: relative;
}

.search-wrapper {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-wrapper:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
}

.search-category {
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--bg-gray);
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-medium);
    font-family: var(--font-persian);
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-persian);
    outline: none;
    background: transparent;
}

.search-btn {
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background var(--transition);
}

.search-btn:hover {
    background: var(--brand-primary-dark);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

/* Header Actions */
.header-actions {
    flex-shrink: 0;
}

.action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    color: var(--text-dark);
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
}

.action-btn.auth-btn {
    background: var(--brand-primary);
    color: var(--white);
    gap: 6px;
    width: auto;
    padding: 0 14px;
    font-size: 14px;
}

.action-btn.auth-btn:hover {
    background: var(--brand-primary-dark);
    color: var(--white);
}

.action-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--brand-primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

@media (max-width:768px) {
    .header-actions {
        display: none !important;
    }
}

/* Hamburger */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ================================================
   6. MEGA MENU
================================================ */
.mega-menu-nav {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--brand-primary);
}

.mega-menu-list {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.mega-item {
    position: relative;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    transition: color var(--transition);
}

.mega-link:hover,
.mega-item:hover .mega-link {
    color: var(--brand-primary);
}

.mega-item.has-mega:hover .mega-dropdown {
    display: block;
}

.mega-link.hot-deal {
    color: #e53935;
}

.mega-link.hot-deal:hover {
    color: #b71c1c;
}

/* Mega Dropdown */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 800px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 999;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--brand-primary);
}

.mega-sub-list li {
    margin-bottom: 6px;
}

.mega-sub-list a {
    font-size: 13px;
    color: var(--text-medium);
    transition: color var(--transition);
    display: block;
    padding: 2px 0;
}

.mega-sub-list a:hover {
    color: var(--brand-primary);
    padding-right: 6px;
}

/* ================================================
   7. MOBILE MENU
================================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--white);
    z-index: 1100;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--brand-primary);
    color: var(--white);
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.mobile-menu-logo img {
    width: 30%;
}

.mobile-menu-close {
    color: var(--white);
    font-size: 20px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.mobile-search {
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-dark);
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-menu-link:hover {
    background: rgba(var(--brand-primary-rgb), 0.06);
    color: var(--brand-primary);
}

.mobile-menu-link i {
    font-size: 18px;
    color: var(--brand-primary);
    width: 24px;
}

.mobile-sub-toggle {
    justify-content: space-between;
}

.sub-arrow {
    margin-right: auto;
    font-size: 12px;
    transition: transform var(--transition);
}

.mobile-sub-toggle.open .sub-arrow {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    display: none;
    padding: 0 0 8px 0;
    background: var(--bg-gray);
}

.mobile-sub-menu li a {
    display: block;
    padding: 10px 20px 10px 44px;
    font-size: 13px;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-sub-menu li a:hover {
    color: var(--brand-primary);
}

.mobile-sub-menu.open {
    display: block;
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-contact-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 50%;
    font-size: 20px;
    color: var(--brand-primary);
    transition: all var(--transition);
}

.mobile-contact-link:hover {
    background: var(--brand-primary);
    color: var(--white);
}



/* ================================================
   20. FOOTER
================================================ */

.site-footer {
    background: #2b2230;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4.8rem;
}

.footer-top {
    padding: 4.8rem 0 2.4rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-brand,
    .site-footer .social-row {
        justify-content: center;
    }

    .site-footer .footer-col {
        text-align: justify;
        padding: 0 14px;
    }

    .site-footer .footer-bottom {
        justify-content: center;
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 3.6rem;
    height: 2px;
    background: #c99a4b;
}

.footer-col li {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.footer-col a:hover {
    color: #c99a4b;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 1.7rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-contact-item svg {
    width: 2rem;
    height: 2rem;
    stroke: #c99a4b;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contact-item a,
.footer-contact-item span {
    line-height: 1.8;
}

.footer-map {
    border-radius: 10px;
    overflow: hidden;
    height: 16rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.2rem;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.2) invert(0.92) contrast(0.9);
}

.social-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-row a {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-row a svg {
    width: 1.8rem;
    height: 1.8rem;
    stroke: #ffffff;
}

.social-row a:hover {
    background: #982067;
}

.footer-bottom {
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

.footer-trust {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.enamad-badge {
    width: 8rem;
    height: 9.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    gap: 0.4rem;
    cursor: pointer;
}

.dev-credit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dev-credit a {
    color: #c99a4b;
    font-weight: 700;
}

.footer-newsletter {
    display: flex;
    gap: 0.4rem;
}

.footer-newsletter input {
    height: 4.6rem;
    border-radius: 10px;
    border: none;
    padding: 0 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    flex: 1;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* ================================================
   21. MOBILE BOTTOM NAV
================================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1080;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-light);
    text-decoration: none;
    padding: 6px 8px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
    font-family: var(--font-persian);
    min-width: 44px;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--brand-primary);
}

.bottom-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   22. CART MODAL
================================================ */
.modal-dialog-slideout {
    position: fixed !important;
    margin: 0 !important;
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.modal.show .modal-dialog-slideout {
    transform: translateX(0) !important;
}

.cart-modal-content {
    height: 100dvh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

.cart-modal-header {
    background: var(--brand-primary);
    color: #fff;
    padding: 16px 20px;
    flex-shrink: 0;
}

.cart-modal-header .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.cart-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    flex-shrink: 0;
}

.cart-total-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 16px;
    display: block;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: var(--bg-gray);
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--brand-primary);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: var(--bg-gray);
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-num {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: color var(--transition);
}

.cart-item-remove:hover {
    color: #e53935;
}

/* ================================================
   23. AUTH MODAL
================================================ */
.auth-modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.auth-modal-header {
    background: var(--brand-primary);
    color: #fff;
    padding: 16px 20px;
}

.auth-modal-header .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.auth-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.auth-tabs .nav-link {
    color: var(--text-medium);
    font-family: var(--font-persian);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
}

.auth-tabs .nav-link.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.auth-input {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    font-family: var(--font-persian);
    font-size: 14px;
}

.auth-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
    outline: none;
}

.auth-method-switch {
    display: flex;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.method-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-persian);
    transition: all var(--transition);
}

.method-btn.active {
    background: var(--brand-primary);
    color: #fff;
}

.auth-forgot-link {
    color: var(--brand-primary);
    font-size: 12px;
}

.auth-submit-btn {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-persian);
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    background: var(--brand-primary-dark);
}

/* OTP Inputs */
.otp-digit {
    width: 48px !important;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.otp-digit:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
}

.otp-timer {
    font-size: 13px;
    color: var(--brand-primary);
    font-weight: 700;
}

/* ================================================
   24. SWIPER OVERRIDES
================================================ */
.swiper-button-prev,
.swiper-button-next {
    color: var(--brand-primary) !important;
    background: var(--white);
    box-shadow: var(--shadow-md);
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px !important;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    background: rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 18px !important;
}

/* ================================================
   25. RESPONSIVE TWEAKS
================================================ */
@media (max-width:991.98px) {
    .header-main {
        padding: 10px 0;
    }

    body {
        padding-bottom: 64px;
    }
}

@media (max-width:767.98px) {
    .section-pad {
        padding: 32px 0;
    }

    .hero-swiper {
        height: 240px;
    }

    .slider-content {
        height: 240px;
    }

    .category-icon-placeholder {
        width: 60px;
        height: 60px;
    }

    .category-icon-placeholder i {
        font-size: 1.8rem !important;
    }

    .products-tabs-header {
        gap: 8px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .trust-section .col-6 {
        padding: 8px;
    }

    .trust-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .time-val {
        font-size: 18px;
        min-width: 36px;
    }

    .ad-banner-item {
        min-height: 100px;
        padding: 20px;
    }

    .ad-banner-content h3 {
        font-size: 15px;
    }
}

@media (max-width:575.98px) {

    .newsletter-input-wrap {
        flex-direction: column;
    }

    .newsletter-btn {
        padding: 12px;
    }

    .footer-copy,
    .footer-dev {
        text-align: center;
    }
}

/* ================================================
   26. LOADING SKELETON (برای محصولات)
================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ================================================
   27. BACK TO TOP (دکمه برگشت به بالا)
================================================ */
.back-to-top {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
}

@media (max-width:991.98px) {
    .back-to-top {
        display: none;
    }
}

/* ================================================
   28. PRINT STYLES
================================================ */
@media print {

    .site-header,
    .mobile-bottom-nav,
    .mobile-menu,
    .notification-bar,
    .back-to-top,
    .hero-slider-section,
    .ad-banner-section,
    .ad-banner-full,
    .newsletter-section {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}
