/* هدر مدرن */
.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding:0 10px;
}

/* لوگو */
.header-logo-wrapper img {
    max-height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}
.header-logo-wrapper img:hover {
    transform: scale(1.05);
}

/* استایل آیکون‌های هدر - برای راست‌چین */
.header-actions a {
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}
.header-actions a:hover {
    color: var(--main-color-theme);
    transform: translateY(-2px);
}
.header-actions a i {
    font-size: 1.3rem;
}

/* لبل‌های زیر آیکون */
.user-label, .cart-label {
    font-size: 11px;
    font-weight: 500;
    color: #7f8c8d;
    letter-spacing: 0.3px;

    position: relative;
    top:15px;
}
.header-actions a:hover .user-label,
.header-actions a:hover .cart-label {
    color: var(--main-color-theme);
}

/* سبد خرید */
.cart-count {
    font-size: 11px;
    padding: 3px 7px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
    background: var(--main-color-theme);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
    animation: pulse-cart 2s infinite;
    right: auto !important;
    left: 0 !important;
    transform: translate(-50%, -50%) !important;
}

@keyframes pulse-cart {
    0% { box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 2px 15px rgba(52, 152, 219, 0.7); }
    100% { box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4); }
}

/* دکمه منوی همبرگری - سمت راست برای راست‌چین */
.menu-toggle-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 16px;
    background: var(--main-color-theme);
    border-radius: 30px;
    color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    order: -1; /* برای راست‌چین - اولین آیتم */
}
.menu-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
    background: var(--main-color-theme);
}
.menu-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* آیکون همبرگری */
.hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}
.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.menu-toggle-btn:hover .hamburger-icon .bar:nth-child(1) {
    transform: translateY(-2px);
}
.menu-toggle-btn:hover .hamburger-icon .bar:nth-child(3) {
    transform: translateY(2px);
}

/* استایل آیکون جستجو */
.search-icon {
    color: #2c3e50 !important;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.search-icon:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: rotate(-15deg) !important; /* برای راست‌چین منفی */
}

/* ریسپانسیو برای راست‌چین */
@media (max-width: 767px) {
    .header-logo-wrapper img {
        max-height: 40px;
    }
    
    .user-label, .cart-label {
        display: none !important;
    }
    
    .menu-toggle-btn {
        padding: 6px 12px;
        border-radius: 25px;
    }
    .menu-text {
        display: none !important;
    }
    .hamburger-icon {
        width: 20px;
        gap: 4px;
    }
    .hamburger-icon .bar {
        height: 2px;
    }
    
    .header-actions a i {
        font-size: 1.1rem;
    }
}
/* تنظیم فاصله بین لوگو و دکمه منو */
.header-logo-wrapper {
    margin-right: 5px;
}
.header-logo-wrapper a.site-title{
    text-decoration: none;
    color:#000;
}
@media (max-width: 767px) {
    .header-logo-wrapper img {
        max-height: 40px;
    }
    .d-flex.align-items-center.gap-3 {
        gap: 0.5rem !important;
    }
}
@media (max-width: 576px) {
    .header-logo-wrapper a.site-title{
    font-size: 14px;
}
    .header-actions {
        gap: 0.8rem !important;
    }
    .header-actions a i {
        font-size: 1rem;
    }
    .cart-count {
        font-size: 9px;
        padding: 2px 5px;
        min-width: 18px;
        height: 18px;
    }
}


/*drawer*/
/* ==================== دریپر اصلی ==================== */
.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.drawer.open {
    right: 0;
}

/* هدر دریپر */
.drawer-header {
    background: var(--main-color-theme);
    padding: 20px 25px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.drawer-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.drawer-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.drawer-logo img {
    max-height: 40px;
    width: auto;
  /*  filter: brightness(0) invert(1);*/
}
.drawer-logo .site-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
ins{
    text-decoration: unset !important;
}
del .woocommerce-Price-amount{
 font-size: 12px;
 color:#999;
}
.close-drawer-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-drawer-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* بدنه دریپر */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}
.drawer-body::-webkit-scrollbar {
    width: 6px;
}
.drawer-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.drawer-body::-webkit-scrollbar-thumb {
    background: var(--main-color-theme);
    border-radius: 10px;
}

.drawer-section {
    margin-bottom: 25px;
}
.drawer-section:last-child {
    margin-bottom: 0;
}

.drawer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}
.drawer-section-title i {
    color: var(--main-color-theme);
    font-size: 18px;
}

.drawer-divider {
    height: 1px;
    background: linear-gradient(90deg, #e9ecef, transparent);
    margin: 20px 0;
}

/* استایل منوی دریپر */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    margin-bottom: 2px;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}
.sidebar-menu li a:hover {
    background: linear-gradient(135deg, #ebf5fb, #d6eaf8);
    color: var(--main-color-theme);
    padding-right: 20px;
}
.sidebar-menu li a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--main-color-theme);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}
.sidebar-menu li a:hover::before {
    height: 70%;
}
.sidebar-menu li.current-menu-item a {
    background: linear-gradient(135deg, #ebf5fb, #d6eaf8);
    color: var(--main-color-theme);
}
.sidebar-menu li.current-menu-item a::before {
    height: 70%;
}

/* استایل دسته‌بندی دریپر */
.woo-category-item {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woo-category-item li {
    margin-bottom: 2px;
    position: relative;
}
.woo-category-item li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}
.woo-category-item li a:hover {
    background: #f8f9fa;
    color: var(--main-color-theme);
    padding-right: 20px;
}
.woo-category-item li .count {
    background: #e9ecef;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #7f8c8d;
    transition: all 0.3s ease;
    position: absolute;
    left:10px;top:10px;
}
.woo-category-item li a:hover .count {
    background: var(--main-color-theme);
    color: #fff;
}
.woo-category-item li ul.children {
    padding-right: 20px;
    list-style: none;
}

/* فوتر دریپر */
.drawer-footer {
    flex-shrink: 0;
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}
.drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.drawer-contact a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}
.drawer-contact a:hover {
    color: var(--main-color-theme);
}
.drawer-contact a i {
    margin-left: 8px;
    width: 18px;
    color: var(--main-color-theme);
}

.drawer-social {
    display: flex;
    gap: 12px;
}
.drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}
.drawer-social a:hover {
    background: var(--main-color-theme);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ==================== دریپر سبد خرید ==================== */
.cartdrawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cartdrawer.open {
    left: 0;
}

/* هدر سبد خرید */
.cart-drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-drawer-title i {
    font-size: 22px;
}
.cart-items-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* محتوای سبد خرید */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}
.cart-drawer-body::-webkit-scrollbar {
    width: 6px;
}
.cart-drawer-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.cart-drawer-body::-webkit-scrollbar-thumb {
    background: var(--main-color-theme);
    border-radius: 10px;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
}
.empty-cart-message i {
    color: #dce1e8;
    margin-bottom: 15px;
}
.empty-cart-message p {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 20px;
}
.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background:var(--main-color-theme);;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
.btn-shop-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
    color: #fff;
}

/* فوتر سبد خرید */
.cart-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}
.cart-footer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}
.cart-total-price {
    color: #e74c3c;
    font-size: 20px;
}
.cart-footer-actions {
    display: flex;
    gap: 10px;
}
.cart-footer-actions a {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn-view-cart {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}
.btn-view-cart:hover {
    background: #e9ecef;
    color: #2c3e50;
}
.btn-checkout {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}
.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.4);
    color: #fff;
}

/* ==================== اوورلی ==================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 576px) {
    .drawer {
        width: 300px;
        right: -320px;
    }
    .cartdrawer {
        width: 300px;
        left: -320px;
    }
    .drawer-header {
        padding: 15px 20px;
    }
    .drawer-body {
        padding: 15px 20px;
    }
    .drawer-footer {
        padding: 15px 20px;
    }
    .cart-footer-actions {
        flex-direction: column;
    }
}




/* استایل بخش پیشنهاد ویژه */
.special-offer-col {
    margin-bottom: 20px;
}

.special-offer-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.special-offer-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.special-offer-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.special-offer-box:hover::before {
    transform: rotate(0deg);
}

.special-offer-icon {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    
    transition: all 0.3s ease;
}

.special-offer-box:hover .special-offer-icon {
    transform: scale(1.1) rotate(-5deg);
}

.special-offer-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
    color: #fff;
}

.special-offer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(5px);
}

.special-offer-link {
    display: inline-block;
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
    padding: 8px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.special-offer-link:hover {
    background: #fff;
    color: #764ba2;
    border-color: #fff;
    text-decoration: none;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .special-offer-box {
        min-height: auto;
        padding: 25px 20px;
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .special-offer-icon {
        max-width: 60px;
    }
    .special-offer-title {
        font-size: 18px;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .special-offer-box {
        flex-direction: column;
        padding: 20px;
    }
    .special-offer-icon {
        max-width: 50px;
    }
    .special-offer-title {
        font-size: 16px;
    }
}