﻿/* اسکرول بار اصلی صفحه (Webkit browsers) */
::-webkit-scrollbar {
    width: 10px; /* عرض اسکرول بار عمودی */
    height: 10px; /* ارتفاع اسکرول بار افقی */
}

/* مسیر اسکرول (Track) */
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f3e8ff 0%, #fce7f3 100%);
    border-radius: 10px;
}

/* دستگیره اسکرول (Thumb) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec489a, #a855f7);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    /* دستگیره اسکرول در حالت هاور */
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #db2777, #9333ea);
        transform: scale(1.05);
    }

    /* دستگیره اسکرول در حالت اکتیو (کلیک) */
    ::-webkit-scrollbar-thumb:active {
        background: linear-gradient(135deg, #be185d, #7e22ce);
    }

/* گوشه اسکرول بار (کرنر) */
::-webkit-scrollbar-corner {
    background: #fce7f3;
}
/* ==================== اسکرول بار سفارشی ==================== */

/* اسکرول بار اصلی */
html, body {
    scroll-behavior: smooth; /* اسکرول نرم */
}

/* Webkit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(243, 232, 255, 0.8) 0%, rgba(252, 231, 243, 0.8) 100%);
    border-radius: 20px;
    margin: 5px 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec489a, #a855f7);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
    transition: all 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #db2777, #9333ea);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    ::-webkit-scrollbar-thumb:active {
        background: linear-gradient(135deg, #be185d, #7e22ce);
    }

/* اسکرول بار در حالت دارک (اگر دارید) */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: linear-gradient(180deg, #2d1b3a, #1a1a2e);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #f472b6, #c084fc);
    }
}

/* ==================== برای Firefox ==================== */
* {
    scrollbar-width: thin;
    scrollbar-color: #ec489a #f3e8ff;
}

/* Firefox با رنگ‌های پیشرفته */
@supports (scrollbar-color: auto) {
    * {
        scrollbar-color: #ec489a #fce7f3;
        scrollbar-width: thin;
    }
}

/* ==================== اسکرول بار برای المان‌های خاص ==================== */

/* اسکرول بار برای مودال‌ها */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec489a, #a855f7);
    border-radius: 10px;
}

/* اسکرول بار برای منوی موبایل */
.mobile-menu-container::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-container::-webkit-scrollbar-track {
    background: #fce7f3;
}

.mobile-menu-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec489a, #a855f7);
    border-radius: 10px;
}

/* اسکرول بار برای بخش محصولات */
.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: #f3e8ff;
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ec489a, #a855f7);
    border-radius: 10px;
}





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Delnia','Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFFFFF 50%, #F3E8FF 100%);
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
}
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
}
    .glass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

/* Advanced Mega Menu */
.mega-menu-wrapper {
    /*position: absolute;*/
    position: fixed;
    margin: auto;

    top: 100%;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    width: 950px;
}

.nav-item:hover .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FFD6E0 #f1f1f1;
}

    .mega-menu-content::-webkit-scrollbar {
        width: 8px;
    }

    .mega-menu-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .mega-menu-content::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #FFD6E0, #E8D5F2);
        border-radius: 10px;
    }

/* Multi-level Menu Items */
.menu-parent-item {
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

    .menu-parent-item:hover {
        background: linear-gradient(135deg, rgba(255, 214, 224, 0.3), rgba(199, 245, 212, 0.3));
        border-right-color: #FF6B9D;
        transform: translateX(-5px);
    }

.menu-child-item {
    transition: all 0.2s ease;
    padding-right: 2.5rem;
}

    .menu-child-item:hover {
        background: rgba(255, 214, 224, 0.2);
        padding-right: 3rem;
    }

/* Mobile Menu */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

    .mobile-menu-container.active {
        right: 0;
    }

.mobile-menu-level {
    position: absolute;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

    .mobile-menu-level.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-level.exit {
        right: 0;
        opacity: 0;
        visibility: hidden;
    }

/* Breadcrumb */
.mobile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgb(255, 214, 224);
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.3s;
}

    .breadcrumb-item:hover {
        color: #FF6B9D;
    }

.breadcrumb-separator {
    color: #999;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Search in Menu */
.menu-search {
    position: relative;
}

    .menu-search input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border: 2px solid rgba(255, 107, 157, 0.2);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.3s;
    }

        .menu-search input:focus {
            outline: none;
            border-color: #FF6B9D;
            box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
        }

.menu-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-new {
    background: linear-gradient(135deg, #FFD6E0, #FFE5D0);
    color: #C44569;
}

.badge-sale {
    background: linear-gradient(135deg, #FF6B9D, #FF8FA3);
    color: white;
}

/* Mobile Menu Item */
.mobile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s;
}

    .mobile-item:hover {
        background: rgba(255, 214, 224, 0.2);
    }

.mobile-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(123, 104, 238, 0.1));
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease;
}

/* Sticky Header */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
}

    .header-sticky.scrolled {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

/* Hide scrollbar but keep functionality */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

.footerimg {
    background-color: #fbfbfb;
    padding: 5px;
}
.DelniaBGC {
    background-image: linear-gradient(to bottom right,#432b82, #0a154c) !important;
}


/*404*/
.text-gradient {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    transition: all 0.3s;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255,107,157,0.3);
    }

.ma90 {
    margin: auto;
    margin-top: 95px;
}


.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

    .mobile-menu-container.active {
        right: 0;
    }

.mobile-menu-level {
    display: none;
    width: 100%;
    height: 100%;
}

    .mobile-menu-level.active {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}


/* استایل نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.3s ease;
    z-index: 9999;
    border-left: 4px solid #6b7280;
}

    .notification.show {
        transform: translateX(0);
    }

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content h4 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1f2937;
}

.notification-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    transition: color 0.2s;
}

    .notification-close:hover {
        color: #4b5563;
    }

/* انواع نوتیفیکیشن */
.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-info {
    border-left-color: #3b82f6;
}



.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

    .mini-cart-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Drawer */
.mini-cart-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

    .mini-cart-drawer.active {
        left: 0;
    }

/* Header */
.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
}

/* Items */
.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

    .mini-cart-items::-webkit-scrollbar {
        width: 6px;
    }

    .mini-cart-items::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #FFD6E0, #E8D5F2);
        border-radius: 10px;
    }

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .cart-item:hover {
        border-color: rgba(255,107,157,0.2);
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .cart-item.removing {
        opacity: 0;
        transform: translateX(50px);
        max-height: 0;
        padding: 0 16px;
        margin-bottom: 0;
    }

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFE5EC, #E8D5F2);
}

    .cart-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.08);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

    .qty-btn:hover {
        background: linear-gradient(135deg, #FF6B9D, #C44569);
        color: white;
    }

.qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #374151;
}

/* Empty Cart */
.mini-cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

/* Footer */
.mini-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: white;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 8px 20px rgba(255,107,157,0.3);
    text-decoration: none;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(255,107,157,0.45);
    }

.btn-checkout {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    color: white;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 28px rgba(255,107,157,0.35);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

    .btn-checkout::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s;
    }

    .btn-checkout:hover::before {
        left: 100%;
    }

    .btn-checkout:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(255,107,157,0.5);
    }

.btn-continue {
    display: block;
    text-align: center;
    padding: 14px;
    color: #FF6B9D;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s;
    border: 2px solid rgba(255,107,157,0.2);
}

    .btn-continue:hover {
        background: rgba(255,107,157,0.05);
        border-color: #FF6B9D;
    }



/* ============================================
   ❓ Confirm Dialog
   ============================================ */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.2s ease;
}

    .confirm-dialog h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 0.5rem;
    }

    .confirm-dialog p {
        color: #6b7280;
        margin-bottom: 1.5rem;
    }

.confirm-dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel-confirm, .btn-confirm-delete {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel-confirm {
    background: #f5f5f5;
    color: #6b7280;
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   🎨 استایل‌های کمکی
   ============================================ */
.dir-ltr {
    direction: ltr;
    text-align: right;
}


/* ============================================
     برای جلوگیری از اسکرول در سرچ
   ============================================ */
/* وقتی modal باز است */
body.modal-open {
    overflow: hidden;
}

/* یا فقط برای container منو */
