/* ============================================
   ZARCA SAFFRON - PREMIUM HEADER DESIGN
   Brand Colors & Professional UI/UX
   ============================================ */

:root {
    /* Saffron Brand Colors */
    --saffron-gold: #E0C26D;        /* Primary - Golden Saffron */
    --saffron-red: #DC143C;         /* Accent - Crimson Red */
    --saffron-brown: #8B4513;       /* Secondary - Warm Brown */
    --saffron-dark: #3D2817;        /* Dark Brown */
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --text-dark: #2C2C2C;
    --text-medium: #666666;
    --text-light: #999999;
    --border-light: #E8E8E8;
    --bg-light: #FAFAFA;
    --bg-cream: #FFF9F0;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'IranSans', Tahoma, Arial, sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.zarca-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HIDE MOBILE ON DESKTOP & VICE VERSA
   ============================================ */
.mobile-header,
.zarca-mobile-bottom-nav,
.mobile-menu-overlay,
.mobile-slide-menu {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-header {
        display: none !important;
    }
    .mobile-header,
    .zarca-mobile-bottom-nav {
        display: block;
    }
}

/* ============================================
   ANNOUNCEMENT BAR - PREMIUM STYLE
   ============================================ */
.zarca-announcement-bar {
    background: linear-gradient(135deg, var(--saffron-gold) 0%, #F0D98B 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.zarca-announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    pointer-events: none;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 40px;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.announcement-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--saffron-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.announcement-cta {
    padding: 6px 16px;
    background: var(--white);
    color: var(--saffron-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.announcement-cta:hover {
    background: var(--saffron-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.announcement-close {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--saffron-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.announcement-close:hover {
    background: var(--white);
    transform: translateY(-50%) rotate(90deg);
}

/* ============================================
   UTILITY BAR - PROFESSIONAL DESIGN
   ============================================ */
.zarca-utility-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.utility-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.utility-link:hover {
    color: var(--saffron-gold);
    background: var(--bg-cream);
}

.utility-link svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.utility-phone {
    font-weight: 600;
    color: var(--saffron-dark);
}

.utility-separator {
    color: var(--border-light);
}

.utility-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--bg-cream);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.utility-cart:hover {
    background: var(--saffron-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.utility-cart svg {
    stroke: currentColor;
}

.cart-count {
    background: var(--saffron-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ============================================
   MAIN HEADER - ELEGANT NAVIGATION
   ============================================ */
.zarca-main-header {
    background: var(--white);
    border-bottom: 2px solid var(--saffron-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.main-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.header-logo {
    flex-shrink: 0;
    order: 2;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo img {
    height: 65px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav-right {
    order: 1;
    flex: 1;
    justify-content: flex-end;
}

.main-nav-left {
    order: 3;
    flex: 1;
    justify-content: flex-start;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--saffron-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover {
    color: var(--saffron-gold);
    background: var(--bg-cream);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* ============================================
   TRUST BADGES BAR - PREMIUM FEATURE
   ============================================ */
.zarca-trust-bar {
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-light);
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 12px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 500;
}

.trust-badge svg {
    stroke: var(--saffron-gold);
    flex-shrink: 0;
}

/* ============================================
   MOBILE ANNOUNCEMENT BAR
   ============================================ */
.mobile-announcement .announcement-content {
    padding: 10px 40px;
    justify-content: center;
}

.mobile-announcement .announcement-text {
    font-size: 12px;
}

.mobile-announcement .announcement-close {
    width: 24px;
    height: 24px;
    font-size: 18px;
}

/* ============================================
   MOBILE MAIN HEADER
   ============================================ */
.zarca-mobile-main {
    background: var(--white);
    border-bottom: 2px solid var(--saffron-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
}

.mobile-menu-toggle {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--saffron-gold);
    border-color: var(--saffron-gold);
}

.mobile-menu-toggle svg {
    stroke: var(--text-dark);
    transition: stroke 0.3s ease;
}

.mobile-menu-toggle:hover svg {
    stroke: var(--white);
}

.mobile-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-logo img {
    height: 48px;
    width: auto;
}

.mobile-cart-icon {
    position: relative;
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-cart-icon:hover {
    background: var(--saffron-gold);
    border-color: var(--saffron-gold);
}

.mobile-cart-icon svg {
    stroke: var(--text-dark);
    transition: stroke 0.3s ease;
}

.mobile-cart-icon:hover svg {
    stroke: var(--white);
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--saffron-red);
    color: var(--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;
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.4);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION - PREMIUM
   ============================================ */
.zarca-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 999;
}

.mobile-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 4px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-item svg {
    stroke: currentColor;
    transition: all 0.3s ease;
}

.mobile-bottom-item:hover,
.mobile-bottom-item:active {
    color: var(--saffron-gold);
}

.mobile-bottom-item:hover svg {
    transform: scale(1.1);
}

.mobile-bottom-cart {
    transform: translateY(-8px);
    background: var(--saffron-gold);
    color: var(--white);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(224, 194, 109, 0.4);
}

.mobile-bottom-cart svg {
    stroke: var(--white);
}

.mobile-bottom-cart-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--saffron-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.4);
}

/* ============================================
   MOBILE SLIDE-IN MENU - ELEGANT
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--white);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 1600;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-slide-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--saffron-gold) 0%, #F0D98B 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--saffron-dark);
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.mobile-menu-close svg {
    stroke: var(--saffron-dark);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    flex: 1;
}

.mobile-menu-items a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-items a:hover {
    background: var(--bg-cream);
    color: var(--saffron-gold);
    padding-right: 32px;
}

.mobile-menu-items a svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.menu-item-home {
    background: var(--bg-cream);
    border-bottom-color: var(--saffron-gold);
}

.mobile-menu-footer {
    padding: 20px 24px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.menu-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--saffron-gold);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(224, 194, 109, 0.4);
    transition: all 0.3s ease;
}

.menu-phone-link:hover {
    background: var(--saffron-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 40, 23, 0.4);
}

.menu-phone-link svg {
    stroke: currentColor;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1200px) {
    .main-header-content {
        gap: 24px;
    }
    
    .main-nav {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .trust-badges {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 70px;
    }
    
    .trust-badges {
        display: none;
    }
}

@media (max-width: 480px) {
    .zarca-container {
        padding: 0 16px;
    }
    
    .mobile-logo img {
        height: 42px;
    }
    
    .mobile-bottom-item {
        font-size: 10px;
    }
    
    .mobile-slide-menu {
        width: 280px;
    }
}

/* ============================================
   ACCESSIBILITY & INTERACTIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--saffron-gold);
    outline-offset: 2px;
}

/* ============================================
   HIDE ELEMENTOR HEADER
   ============================================ */
.elementor-location-header {
    display: none !important;
}

.site-content,
main,
#content {
    padding-top: 0 !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .zarca-announcement-bar,
    .zarca-utility-bar,
    .zarca-trust-bar,
    .zarca-mobile-bottom-nav,
    .mobile-slide-menu {
        display: none !important;
    }
}
