/* ==================== PREMIUM ADVANCED HEADER ==================== */

:root {
    --primary: #76b175;
    --primary-dark: #3f5c3e;
    --primary-light: #32835c;
    --oring-dark: #c37004;
    --accent: #ff6b35;
    --success: #27ae60;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-light: #f8f9fa;
    --border: #e1e8ed;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --accent-color: #76b175;
    --accent-color-dark: #3f5c3e;
    --accent-color-light: #8bc98a;
    --accent-orange: #c37004;

    --footer-bg-main: #f8f9fa;
    --footer-bg-soft: #ffffff;
    --footer-text: #2c3e50;
    --footer-text-muted: #6b7280;
    --footer-border: #e1e8ed;

    --footer-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --footer-shadow-md: 0 10px 30px rgba(63, 92, 62, 0.10);
    --footer-shadow-lg: 0 18px 45px rgba(63, 92, 62, 0.16);

    --footer-radius-sm: 8px;
    --footer-radius-md: 12px;
    --footer-radius-lg: 16px;
    --footer-radius-xl: 24px;

    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
}

.header-premium-modern {
    position: relative;
    z-index: 1000;
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
}

/* Top Bar */
.header-topbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 4px 0;
    transition: var(--transition);
    flex-direction: row-reverse;
}

.topbar-link:hover {
    color: white;
    transform: translateX(2px);
}

.topbar-link i {
    font-size: 14px;
    margin-left: 6px;
    margin-right: 0;
}

.topbar-divider {
    color: rgba(255,255,255,0.3);
}

/* Main Header */
.header-main-advanced {
    background: white;
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.header-container {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 40px;
    align-items: center;
    direction: rtl;
}

/* Logo */
.logo-link-advanced {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition);
    flex-direction: row-reverse;
}

.logo-link-advanced:hover {
    transform: translateY(-2px);
}

.logo-icon-advanced {
    /*width: 55px;*/
    /*height: 55px;*/
    /*background: linear-gradient(135deg, var(--primary), var(--primary-light));*/
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    /*box-shadow: 0 4px 12px rgba(26, 50, 99, 0.2);*/
    /*margin-left: 14px;*/
    margin-right: 0;
}

.logo-text-advanced {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: center;
}

.logo-title-advanced {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-subtitle-advanced {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Search Advanced */
.search-advanced {
    position: relative;
    max-width: 650px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    flex-direction: row-reverse;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 50, 99, 0.1);
    background: white;
}

.search-icon-advanced {
    position: absolute;
    right: auto;
    left: 20px;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-input-wrapper:focus-within .search-icon-advanced {
    color: var(--primary);
}

.search-input-advanced {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 55px 15px 20px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    text-align: right;
}

.search-input-advanced::placeholder {
    color: var(--text-secondary);
}

.search-btn-advanced {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 32px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn-advanced:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateX(2px);
}

/* Header Actions */
.header-actions-advanced {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-item-advanced {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    flex-direction: row-reverse;
}

.action-item-advanced:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.action-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}

.action-badge {
    position: absolute;
    top: -6px;
    right: auto;
    left: -6px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.action-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
    text-align: right;
}

.action-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.action-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Dropdowns */
.cart-dropdown-advanced,
.user-dropdown-advanced {
    position: absolute;
    top: calc(100% + 20px);
    right: auto;
    left: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 380px;
    max-height: 600px;
    z-index: 100;
}

.cart-advanced:hover .cart-dropdown-advanced,
.user-advanced:hover .user-dropdown-advanced {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cart Dropdown */
.cart-empty-advanced {
    padding: 50px 30px;
    text-align: center;
    direction: rtl;
}

.empty-icon-advanced {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--text-secondary);
}

.cart-empty-advanced h6 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cart-empty-advanced p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cart-header-advanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header-advanced h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-header-advanced span {
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-items-advanced {
    max-height: 350px;
    overflow-y: auto;
    padding: 12px;
    direction: rtl;
}

.cart-item-advanced {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: var(--transition);
    flex-direction: row-reverse;
}

.cart-item-advanced:hover {
    background: var(--bg-light);
}

.item-image-advanced {
    width: 75px;
    height: 75px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.item-image-advanced img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details-advanced {
    flex: 1;
    text-align: right;
}

.item-title-advanced {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.5;
}

.item-title-advanced:hover {
    color: var(--primary);
}

.item-meta-advanced {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    flex-direction: row-reverse;
}

.item-price-advanced {
    font-weight: 600;
    color: var(--primary);
}

.item-discount-advanced {
    display: inline-block;
    background: #fff5f5;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.item-remove-advanced {
    width: 36px;
    height: 36px;
    background: #fff5f5;
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    margin-right: 0;
    margin-left: auto;
}

.item-remove-advanced:hover {
    background: var(--accent);
    color: white;
}

.cart-footer-advanced {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-total-advanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex-direction: row-reverse;
}

.total-price-advanced {
    color: var(--accent);
    font-size: 19px;
}

.cart-actions-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-direction: row-reverse;
}

/* Buttons */
.btn-advanced-primary,
.btn-advanced-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-advanced-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-advanced-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-advanced-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-advanced-outline:hover {
    background: var(--primary);
    color: white;
}

/* User Dropdown */
.user-info-advanced {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    flex-direction: row-reverse;
    text-align: right;
}

.user-avatar-advanced {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.user-info-advanced h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-info-advanced p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    direction: ltr;
    text-align: right;
}

.user-menu-advanced {
    list-style: none;
    padding: 12px;
    margin: 0;
}

.user-menu-advanced li {
    margin: 0;
}

.divider-advanced {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.user-menu-advanced a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    flex-direction: row-reverse;
    text-align: right;
}

.user-menu-advanced a:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateX(4px);
}

.user-menu-advanced a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-left: 0;
    margin-right: 14px;
}

.logout-link-advanced {
    color: var(--accent) !important;
}

.logout-link-advanced:hover {
    background: #fff5f5 !important;
}

.user-guest-advanced {
    padding: 36px 26px;
    text-align: center;
    direction: rtl;
}

.user-guest-advanced h6 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.user-guest-advanced p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Navigation */
.nav-advanced {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-list-advanced {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.nav-item-advanced {
    position: relative;
}

.nav-link-advanced {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    flex-direction: row-reverse;
}

.nav-link-advanced:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-link-advanced i {
    font-size: 16px;
    margin-left: 8px;
    margin-right: 0;
}

.nav-link-advanced i.sli-arrow-down {
    margin-right: 6px;
    margin-left: 0;
}

.nav-special-advanced .nav-link-advanced {
    color: var(--accent);
}

.special-badge-advanced {
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-left: 0;
}

/* Mega Menu */
.mega-menu-advanced {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    padding: 32px;
    min-width: 850px;
    z-index: 100;
    margin-top: 8px;
}

.nav-item-advanced:hover .mega-menu-advanced {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    direction: rtl;
}

.mega-title-advanced {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    text-align: right;
}

.mega-list-advanced {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.mega-list-advanced li {
    margin-bottom: 8px;
}

.mega-list-advanced a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-direction: row-reverse;
}

.mega-list-advanced a:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateX(4px);
}

.mega-list-advanced a i {
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
    transform: rotate(180deg);
    margin-left: 0;
    margin-right: 10px;
}

.mega-list-advanced a:hover i {
    opacity: 1;
}

/* Mobile */
.header-mobile-advanced {
    background: white;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.mobile-logo-advanced a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-direction: row-reverse;
}

.mobile-logo-advanced i {
    margin-left: 10px;
    margin-right: 0;
}

/* Mobile Actions */
.mobile-actions-advanced {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-actions-advanced button,
.mobile-actions-advanced a {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-actions-advanced button:hover,
.mobile-actions-advanced a:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn {
    background: var(--primary) !important;
    color: white !important;
}

.action-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
}


/* Responsive */
@media (max-width: 991px) {
    .header-topbar,
    .header-main-advanced,
    .nav-advanced {
        display: none !important;
    }
}

/* Scrollbar */
.cart-items-advanced::-webkit-scrollbar {
    width: 6px;
}

.cart-items-advanced::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.cart-items-advanced::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.cart-items-advanced::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Wishlist Action */
.wishlist-action .action-icon-wrapper {
    background: linear-gradient(135deg, #fff5f5, #ffefe9);
}

.wishlist-action .action-icon-wrapper i {
    color: var(--oring-dark);
}

/* Search Results */
.search-results-advanced {
    text-align: right;
    direction: rtl;
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-advanced,
.cart-dropdown-advanced,
.user-dropdown-advanced {
    animation: fadeInDown 0.3s ease;
}


/* Sub Menu Styles */
.has-sub-advanced > a,
.has-deep-advanced > a {
    position: relative;
    cursor: pointer;
}

.has-sub-advanced > a:after,
.has-deep-advanced > a:after {
    content: '+';
    position: absolute;
    left: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.has-sub-advanced > a.active:after,
.has-deep-advanced > a.active:after {
    content: '-';
}

/* زیرمنوهای تو در تو */
.mega-sub-list,
.mega-deep-list {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 8px 0 0 0;
}

.mega-sub-list li,
.mega-deep-list li {
    margin-bottom: 6px;
}

.mega-sub-list a,
.mega-deep-list a {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    background: transparent;
}

.mega-sub-list a:hover,
.mega-deep-list a:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateX(2px);
}

.mega-sub-list {
    border-right: 2px solid var(--border);
    padding-right: 15px;
}

.mega-deep-list {
    border-right: 2px solid #ddd;
    padding-right: 12px;
}
.mega-parent-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}

.mega-parent-title i {
    font-size: 12px;
}

/* والدهای دارای زیرمجموعه */
.has-children {
    position: relative;
}

.mega-parent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: transparent;
}

.mega-parent-item:hover {
    background: var(--bg-light);
    transform: translateX(-2px);
}

.mega-parent-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    flex: 1;
}

.toggle-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.has-children.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.has-children.active > .mega-parent-item {
    background: var(--bg-light);
    color: var(--primary);
}

.has-children.active > .mega-parent-item .mega-parent-title {
    color: var(--primary);
}

/* زیرمنوها - پیش‌فرض بسته */
.mega-sub-list,
.mega-deep-list {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    margin 0.3s ease;
    opacity: 0;
}

.has-children.active > .mega-sub-list,
.has-children.active > .mega-deep-list {
    max-height: 1000px;
    opacity: 1;
    margin-top: 8px;
}

.mega-sub-list li,
.mega-deep-list li {
    margin-bottom: 6px;
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.has-children.active > .mega-sub-list li,
.has-children.active > .mega-deep-list li {
    opacity: 1;
}

.has-children.active > .mega-sub-list li:nth-child(1) { animation-delay: 0.05s; }
.has-children.active > .mega-sub-list li:nth-child(2) { animation-delay: 0.1s; }
.has-children.active > .mega-sub-list li:nth-child(3) { animation-delay: 0.15s; }
.has-children.active > .mega-sub-list li:nth-child(4) { animation-delay: 0.2s; }
.has-children.active > .mega-sub-list li:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mega-sub-list a,
.mega-deep-list a {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    background: transparent;
    display: block;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mega-sub-list a:hover,
.mega-deep-list a:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateX(-4px);
}

.mega-sub-list {
    border-right: 2px solid var(--border);
    padding-right: 15px;
}

.mega-deep-list {
    border-right: 2px solid #ddd;
    padding-right: 12px;
}

/* ==================== MOBILE OFF CANVAS ==================== */
/* MOBILE CANVAS MODERN - جدا از قبلی */

.mobile-canvas-modern {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg,var(--accent-color) ,var(--accent-color-dark) );
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow-y: auto;
}

.panel-canvas-modern {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg,var(--accent-color) ,var(--accent-color-dark) );
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow-y: auto;
}


.mobile-canvas-modern.active {
    right: 0;
}

.mobile-close-modern {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-close-modern:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.mobile-wrap-modern {
    padding: 80px 20px 30px;
}

/* همون CSS‌های بقیه... */



.mobile-off-canvas-active {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
}

.mobile-off-canvas-active.active {
    right: 0;
}

.mobile-aside-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.mobile-aside-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.header-mobile-aside-wrap {
    padding: 80px 20px 30px;
}

/* Mobile Search */
.mobile-search-modern {
    margin-bottom: 30px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-input-group:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.search-icon {
    position: absolute;
    right: 18px;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

.search-input-mobile {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 50px 14px 50px;
    color: white;
    font-size: 14px;
    outline: none;
}

.search-input-mobile::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-btn-mobile {
    background: white;
    color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 2px;
}

.search-btn-mobile:hover {
    background: var(--accent);
    color: white;
}

/* Mobile Menu */
.mobile-menu-wrap-modern {
    margin-bottom: 30px;
}

.mobile-menu-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-modern > li {
    margin-bottom: 8px;
}

.menu-toggle-modern {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-link-modern {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.menu-link-modern:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-4px);
    color: white;
}

.menu-link-modern i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.dropdown-toggle-modern {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-toggle-modern i {
    transition: transform 0.3s ease;
}

.menu-item-has-children.active > .menu-toggle-modern .dropdown-toggle-modern {
    background: rgba(255,255,255,0.2);
}

.menu-item-has-children.active > .menu-toggle-modern .dropdown-toggle-modern i {
    transform: rotate(180deg);
}

/* Dropdown Levels */
.dropdown-modern {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 8px 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.menu-item-has-children.active > .dropdown-modern {
    max-height: 2000px;
    opacity: 1;
}

.sub-link {
    background: rgba(255,255,255,0.08);
    font-size: 14px;
}

.deep-link {
    background: rgba(255,255,255,0.06);
    font-size: 13px;
    padding: 12px 14px;
}

.deeper-link {
    background: rgba(255,255,255,0.04);
    font-size: 12px;
    padding: 10px 12px;
}

.deepest-link {
    background: rgba(255,255,255,0.02);
    font-size: 12px;
    padding: 10px 12px;
}

/* User Section */
.mobile-user-section {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-link-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.user-link-modern:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-4px);
    color: white;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
}

.user-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Social Links */
.mobile-social-modern {
    text-align: center;
}

.social-title {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px);
}

/* Scrollbar */
.mobile-off-canvas-active::-webkit-scrollbar {
    width: 6px;
}

.mobile-off-canvas-active::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.mobile-off-canvas-active::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.mobile-off-canvas-active::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* ==================== MOBILE HEADER ==================== */

.header-mobile-advanced {
    background: whitesmoke;
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Logo */
.mobile-logo-advanced a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-logo-advanced a img {
    width: 45px;
    height: auto;
}

.mobile-logo-advanced a span {
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-family: Vazir !important;
}

/* Mobile Actions */
.mobile-actions-advanced {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-action-btn {
    width: 44px;
    height: 44px;
    background-color: #1a3263 !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white !important;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.mobile-action-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: white;
}

.mobile-action-btn .action-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #ffc107;
    color: #1a3263;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #1a3263;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* Active state for menu button */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .mobile-logo-advanced a span {
        font-size: 18px;
    }

    .mobile-action-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
}


/* ==================== CART MOBILE DROPDOWN ==================== */

.cart-advanced-mobile {
    position: relative;

}

.cart-trigger-mobile {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cart-trigger-mobile:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.cart-trigger-mobile .action-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #ffc107;
    color: #1a3263;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #1a3263;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cart-dropdown-mobile {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 340px;
    max-height: calc(100vh - 90px);
    background: white;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    z-index: 9997;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-dropdown-mobile.show {
    right: 0;
}

@media only screen and (max-width: 767px) {
    .cart-dropdown-mobile {
        width: 300px;
    }
}

/* Cart Empty */
.cart-empty-advanced {
    text-align: center;
    padding: 60px 30px;
}

.empty-icon-advanced {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f6f8fb, #e9ecf2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-icon-advanced i {
    font-size: 40px;
    color: #bdc3c7;
}

.cart-empty-advanced h6 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cart-empty-advanced p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Cart Header */
.cart-header-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 2px solid #f1f3f5;
}

.cart-header-advanced h6 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.cart-header-advanced span {
    background: #e9ecf2;
    color: #5a6c7d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Cart Items */
.cart-items-advanced {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
}

.cart-items-advanced::-webkit-scrollbar {
    width: 5px;
}

.cart-items-advanced::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.cart-items-advanced::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.cart-item-advanced {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.cart-item-advanced:hover {
    background: #e9ecf2;
    transform: translateX(-3px);
}

.item-image-advanced {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 2px solid #e9ecf2;
}

.item-image-advanced img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details-advanced {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-title-advanced {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title-advanced:hover {
    color: #1a3263;
}

.item-meta-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.item-meta-advanced span:first-child {
    color: #7f8c8d;
}

.item-price-advanced {
    color: #27ae60;
    font-weight: 700;
}

.item-discount-advanced {
    background: #ffe5e5;
    color: #e74c3c;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.item-remove-advanced {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(231, 76, 60, 0.1);
    border: none;
    border-radius: 50%;
    color: #e74c3c;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.cart-item-advanced:hover .item-remove-advanced {
    opacity: 1;
}

.item-remove-advanced:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Cart Footer */
.cart-footer-advanced {
    padding: 20px;
    border-top: 2px solid #f1f3f5;
}

.cart-total-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px dashed #e9ecf2;
    margin-bottom: 20px;
}

.cart-total-advanced span:first-child {
    font-size: 15px;
    color: #7f8c8d;
}



/* Cart Plus Minus - دکمه های + و - */
.cart-plus-minus {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.cart-plus-minus .qtybutton {
    width: 40px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    border: none;
}

.cart-plus-minus .dec {
    border-left: 2px solid #e0e0e0;
}

.cart-plus-minus .inc {
    border-right: 2px solid #e0e0e0;
}

.cart-plus-minus .qtybutton:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cart-plus-minus .qtybutton:active {
    transform: scale(0.95);
}

.cart-plus-minus .cart-plus-minus-box {
    width: 70px;
    height: 45px;
    text-align: center;
    border: none;
    font-weight: 800;
    font-size: 18px;
    color: #333;
    background: white;
    order: 2;
}

.cart-plus-minus .dec {
    order: 1;
}

.cart-plus-minus .inc {
    order: 3;
}

.cart-plus-minus .cart-plus-minus-box:focus {
    outline: none;
}



/* ==================== GLOBAL ANIMATIONS ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== PROGRESS BAR ==================== */
.progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.progress-bar-container {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #f0f0f0 100%);
    border-radius: 100px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ==================== CARD CONTAINER ==================== */
.card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 30px;
    border: none;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.card-header h4 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-body {
    padding: 40px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

/* ==================== STEP SECTIONS ==================== */
.step-section {
    margin-bottom: 35px;
    opacity: 0;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step-section:nth-child(1) { animation-delay: 0.1s; }
.step-section:nth-child(2) { animation-delay: 0.2s; }
.step-section:nth-child(3) { animation-delay: 0.3s; }

.step-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.step-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    transition: width 0.8s ease;
}

.step-section:hover .step-header::after {
    width: 100%;
}

.step-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.step-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 17px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-body {
    background: white;
    border: 2px solid #f0f0f0;
    border-top: none;
    padding: 30px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: var(--transition);
}

.step-body:hover {
    border-color: #e0e0e0;
    box-shadow: var(--shadow-sm);
}

/* ==================== SELECT DROPDOWN ==================== */
.form-control-lg {
    height: 56px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    background: white;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    transform: translateY(-2px);
}

/* ==================== PRODUCT CARDS ==================== */
.product-item {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.product-card-modern {
    display: block;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid #f0f0f0;
    border-radius: var(--border-radius);
    padding: 0;
    background: white;
    margin-bottom: 0;
    overflow: hidden;
    height: 100%;
}

.product-card-modern:hover {
    border-color: #ffc1c1;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card-modern.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.25);
    transform: translateY(-2px);
}

.product-card-inner-modern {
    position: relative;
    padding: 20px;
}

.product-check-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.check-circle {
    width: 36px;
    height: 36px;
    background: white;
    border: 3px solid #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.check-circle i {
    color: transparent;
    font-size: 16px;
    transition: var(--transition);
}

.product-card-modern.selected .check-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(360deg);
}

.product-card-modern.selected .check-circle i {
    color: white;
}

.product-image-modern {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f8f8f8;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-modern:hover .product-img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.image-overlay i {
    color: white;
    font-size: 32px;
}

.product-card-modern:hover .image-overlay {
    opacity: 1;
}

.product-content-modern {
    text-align: center;
}

.product-title-modern {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge-modern {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-modern.badge-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-modern.badge-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.badge-modern.badge-light {
    background: #f0f0f0;
    color: #666;
}

.product-price-modern {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ==================== SELECTED COUNT ==================== */
#selectedCount {
    margin-top: 25px;
    padding: 0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.count-badge-modern {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition);
}

.count-badge-modern.empty {
    color: #6c757d;
}

#selectedCount.active .count-badge-modern {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-style: solid;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.count-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.count-icon i {
    color: white;
    font-size: 24px;
}

.count-text {
    text-align: right;
    font-size: 15px;
    color: #155724;
}

.count-number {
    font-size: 28px;
    font-weight: 800;
    color: #28a745;
}

/* ==================== TYPE CARDS ==================== */
.type-card-modern {
    display: block;
    border: 3px solid #e8e8e8;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.type-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,53,69,0.05), rgba(200,35,51,0.05));
    opacity: 0;
    transition: var(--transition);
}

.type-card-modern:hover {
    border-color: #ffc1c1;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.type-card-modern:hover::before {
    opacity: 1;
}

.type-card-modern.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.type-card-modern.active::before {
    opacity: 1;
}

.type-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition);
}

.type-card-modern:hover .type-icon {
    transform: scale(1.1) rotate(5deg);
}

.type-card-modern.active .type-icon {
    animation: pulse 1s ease-in-out infinite;
}

.type-card-modern h6 {
    font-weight: 700;
    font-size: 18px;
    margin: 15px 0 10px;
    color: #333;
}

.type-card-modern p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* ==================== REASON ITEMS ==================== */
.reason-item-modern {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reason-item-modern:hover {
    background: #fff5f5;
    border-color: #ffc1c1;
    transform: translateX(-4px);
    box-shadow: var(--shadow-sm);
}

.reason-item-modern.active {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.reason-icon {
    font-size: 32px;
    flex-shrink: 0;
    transition: var(--transition);
}

.reason-item-modern:hover .reason-icon {
    transform: scale(1.15);
}

.reason-content {
    flex: 1;
    text-align: right;
}

.reason-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.reason-content small {
    color: #6c757d;
    font-size: 13px;
}

/* ==================== FORM CONTROLS ==================== */
.form-control,
.form-control-file {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group.focused label {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== IMAGE PREVIEW ==================== */
.image-preview-item {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.image-preview-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
}

.image-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.preview-number {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-md);
}

/* ==================== SUBMIT BUTTON ==================== */
#submitBtn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    position: relative;
    overflow: hidden;
}

#submitBtn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

#submitBtn:hover::before {
    transform: translateX(100%);
}

#submitBtn.ready {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-xl);
    animation: pulse 2s ease-in-out infinite;
}

#submitBtn.ready:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 56px rgba(220, 53, 69, 0.4);
}

#submitBtn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==================== TOAST NOTIFICATION ==================== */
.custom-toast {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    min-width: 300px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-toast.show {
    right: 30px;
}

.custom-toast.toast-success {
    border-right: 4px solid var(--success);
}

.custom-toast.toast-success i {
    color: var(--success);
    font-size: 20px;
}

.custom-toast.toast-error {
    border-right: 4px solid var(--accent);
}

.custom-toast.toast-error i {
    color: var(--accent);
    font-size: 20px;
}

.custom-toast.toast-info {
    border-right: 4px solid var(--info-color);
}

.custom-toast.toast-info i {
    color: var(--info-color);
    font-size: 20px;
}

/* ==================== SKELETON LOADING ==================== */
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    height: 350px;
    border-radius: var(--border-radius);
}

/* ==================== ALERTS ==================== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-right: 4px solid #17a2b8;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-right: 4px solid #dc3545;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .card-body {
        padding: 25px 20px;
    }

    .step-body {
        padding: 20px;
    }

    .product-image-modern {
        height: 150px;
    }

    .type-icon {
        font-size: 48px;
    }

    .progress-container {
        padding: 15px 20px;
    }

    .custom-toast {
        min-width: 280px;
        right: -320px;
    }

    .custom-toast.show {
        right: 15px;
    }
}

@media (prefers-color-scheme: dark) {
    /* ==================== DARK MODE READY ==================== */
    /* Add dark mode styles if needed */
}


/* Carousel Enhancements */
.carousel-image {
    object-fit: cover;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item a:hover .carousel-image {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.carousel-item a:hover .carousel-overlay {
    opacity: 1;
}

.carousel-caption {
    bottom: 3rem;
    padding: 0 2rem;
}

.carousel-content {
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.carousel-title {
    font-size: 2.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out;
}

.carousel-text {
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.carousel-indicators {
    bottom: 1rem;
    margin-bottom: 0;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators li.active {
    width: 40px;
    border-radius: 6px;
    background-color: #fff;
    border-color: #fff;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover {
    transform: translateX(-5px);
}

.carousel-control-next:hover {
    transform: translateX(5px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.75rem;
    }

    .carousel-text {
        font-size: 0.95rem;
    }

    .carousel-caption {
        bottom: 1.5rem;
        padding: 0 1rem;
    }
}


/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/
/*footer*/

.footer-premium-modern {
    position: relative;
    margin-top: 80px;
    color: var(--footer-text);
    background:
        radial-gradient(circle at top right, rgba(118, 177, 117, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(195, 112, 4, 0.08), transparent 18%),
        linear-gradient(180deg, #f8faf8 0%, #f4f7f3 45%, #eef3ed 100%);
    border-top: 1px solid rgba(63, 92, 62, 0.10);
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .30;
    background-image:
        linear-gradient(rgba(63, 92, 62, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 92, 62, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.footer-main {
    position: relative;
    z-index: 2;
    padding: 80px 0 45px;
}

.footer-brand-box {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(118, 177, 117, 0.18);
    backdrop-filter: blur(14px);
    border-radius: var(--footer-radius-xl);
    padding: 5px 28px 28px 28px;
    box-shadow: var(--footer-shadow-md);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(63, 92, 62, 0.18);
}

.footer-brand-logo img {
    width: 52px;
    object-fit: contain;
}

.footer-brand-text h3 {
    margin: 0;
    color: var(--accent-color-dark);
    font-size: 24px;
    font-weight: 800;
}

.footer-brand-text span {
    color: var(--footer-text-muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-desc {
    color: var(--footer-text-muted);
    line-height: 2;
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list a,
.footer-contact-static {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--footer-text);
    transition: var(--footer-transition);
}

.footer-contact-list a:hover {
    color: var(--accent-color-dark);
    transform: translateX(-4px);
}

.footer-contact-list i,
.footer-contact-static i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(118, 177, 117, 0.14), rgba(63, 92, 62, 0.08));
    color: var(--accent-color-dark);
    border: 1px solid rgba(118, 177, 117, 0.15);
}

.footer-widget h4 {
    color: var(--accent-color-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    display: inline-block;
    position: relative;
    padding-right: 14px;
    text-decoration: none;
    color: var(--footer-text-muted);
    transition: var(--footer-transition);
}

.footer-links a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--accent-orange);
    transition: var(--footer-transition);
}

.footer-links a:hover {
    color: var(--accent-color-dark);
    transform: translateX(-6px);
}

.footer-links a:hover::before {
    box-shadow: 0 0 0 6px rgba(195, 112, 4, 0.14);
    background: var(--accent-color);
}

.footer-widget-text {
    color: var(--footer-text-muted);
    line-height: 2;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-socials a {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--accent-color-dark);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(118, 177, 117, 0.18);
    box-shadow: var(--footer-shadow-sm);
    transition: var(--footer-transition);
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
    box-shadow: 0 14px 30px rgba(63, 92, 62, 0.24);
}

.footer-newsletter-modern .newsletter-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(118, 177, 117, 0.18);
    box-shadow: var(--footer-shadow-sm);
}

.footer-newsletter-modern input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--footer-text);
    padding: 10px 14px;
    font-size: 14px;
}

.footer-newsletter-modern input::placeholder {
    color: #8b95a1;
}

.footer-newsletter-modern button {
    border: none;
    border-radius: 14px;
    color: #fff;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
    transition: var(--footer-transition);
    box-shadow: 0 8px 20px rgba(63, 92, 62, 0.18);
}

.footer-newsletter-modern button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px rgba(63, 92, 62, 0.24);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(63, 92, 62, 0.10);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-text-muted);
    font-size: 14px;
}

.footer-bottom p strong {
    color: var(--accent-color-dark);
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    text-decoration: none;
    color: var(--footer-text-muted);
    font-size: 14px;
    transition: var(--footer-transition);
}

.footer-bottom-links a:hover {
    color: var(--accent-orange);
}

@media (max-width: 991px) {
    .footer-main {
        padding: 60px 0 35px;
    }

    .footer-brand-box {
        padding: 22px;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer-premium-modern {
        margin-top: 50px;
    }

    .footer-brand-logo {
        width: 58px;
        height: 58px;
    }

    .footer-brand-text h3 {
        font-size: 20px;
    }

    .footer-widget h4 {
        font-size: 16px;
    }

    .footer-newsletter-modern .newsletter-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-newsletter-modern button {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 12px;
    }
}

