/**
 * Header Desktop Styles
 * ✅ حذف تعریف‌های تکراری فونت و استفاده از Font Manager متمرکز
 * Version: 7.4.2
 */

/* ============================================================
   ✅ فونت‌ها توسط Font Manager متمرکز بارگذاری می‌شوند
   ❌ تعریف @font-face در این فایل حذف شد
   ============================================================ */

/* --- تنظیمات کلی هدر --- */
.htk-header-d {
    background: var(--gradient-primary); 
    min-height: 85px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 8px 25px rgba(3, 115, 236, 0.25);
    position: relative;
    z-index: 1000;
}

.htk-header-d .htk-container {
    width: 98%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- لوگو و عنوان --- */
.htk-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.htk-logo-d {
    display: flex;
    align-items: center;
}

.htk-logo-d img {
    height: 60px !important;
    width: auto;
    max-height: unset !important;
    margin: 3px;
    transition: transform 0.3s ease;
}

.htk-logo-d:hover img {
    transform: scale(1.05);
}

.htk-titles {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 70px;
    padding: 5px 0;
    box-sizing: border-box;
}

.htk-titles h1 {
    font-size: 22px !important;
    font-weight: 900;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    color: #fff;
}

.htk-titles p {
    font-size: 12.5px;
    font-weight: 400;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    opacity: 0.95;
    color: #fff;
    margin-top: 3px !important;
}

/* --- منوی آیکونی وسط --- */
.htk-head-mid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.htk-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 50px;
}

.htk-nav-btn i {
    font-size: 22px;
    height: 24px;
    transition: color 0.3s ease;
}

.htk-nav-btn span {
    font-size: 11px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.htk-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.htk-nav-btn:hover i,
.htk-nav-btn:hover span {
    color: var(--secondary-color) !important;
}

/* --- آیکون سبد خرید --- */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-items-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse-count 2s infinite;
    font-family: Arial, sans-serif;
    z-index: 10;
}

@keyframes pulse-count {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.htk-cart-btn:hover .cart-items-count {
    background: #bb2d3b;
    animation: none;
    transform: scale(1.1);
}

/* --- بخش چپ (کیف پول و دکمه‌ها) --- */
.htk-head-left {
    display: flex;
    align-items: center;
    gap: 8px; 
}

/* دکمه انتخاب شهر */
.htk-city-btn {
    background: rgba(0, 36, 75, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0 15px; 
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.htk-city-btn:hover {
    background: rgba(0, 36, 75, 0.8);
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
}

.htk-city-btn i {
    color: var(--secondary-color) !important;
    font-size: 14px;
}

/* --- باکس کیف پول جدید و کلیکبل --- */
.htk-wallet-box {
    display: flex;
    align-items: center;
    background: #00244B;
    border-radius: 50px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 38px;
    box-sizing: border-box;
    padding: 5px;
    padding-left: 10px;
    min-width: auto;
    text-decoration: none;
    transition: all 0.3s ease;
}

.htk-wallet-box:hover {
    background: rgba(0, 36, 75, 0.8);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.htk-wallet-val {
    color: #fff;
    font-size: 13px; 
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-label {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.9;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 216, 0, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 5px rgba(255, 216, 0, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 216, 0, 0); transform: scale(1); }
}

.htk-add-credit-icon {
    background: var(--secondary-color);
    color: #252525;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 0;
    animation: pulse-gold 2s infinite;
}

/* --- دکمه‌های اکشن --- */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); transform: scale(1); }
}

.htk-action-btn {
    padding: 0 18px;
    height: 38px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    white-space: nowrap;
}

.htk-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff !important;
}

.htk-action-btn.btn-yellow {
    background: var(--secondary-color);
    color: #252525 !important;
    border: 1px solid var(--secondary-color);
}
.htk-action-btn.btn-yellow:hover {
    background: #ffdb4d;
    color: #000 !important;
}

.htk-action-btn.btn-red {
    background: #dc3545;
    color: #fff;
    animation: pulse-red 2s infinite;
}
.htk-action-btn.btn-red:hover {
    background: #bb2d3b;
    animation: none;
}

/* =========================================
   ریسپانسیو
   ========================================= */
@media (max-width: 1200px) {
    .cart-items-count { font-size: 10px; min-width: 16px; height: 16px; top: -6px; right: -6px; }
    .htk-titles h1 { font-size: 18px !important; }
    .htk-titles p { display: none; }
}

@media (max-width: 768px) {
    .cart-items-count { font-size: 9px; min-width: 14px; height: 14px; top: -5px; right: -5px; border-width: 1px; }
}