/* ============================================
   PREMIUM HEADER - SINGLE LINE LAYOUT
   ============================================ */

.main-header {
    border-bottom: 1px solid #e3e6f0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%) !important;
    padding: 0.5rem 1rem !important;
    min-height: 70px;
}

/* Single Line Center Content */
.header-center-content-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    padding: 0 20px;
}

/* ============================================
   BIG RED PURCHASE BUTTON
   ============================================ */

.btn-purchase-big-red {
    background: linear-gradient(135deg, #ff0844 0%, #ff5858 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 8, 68, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.btn-purchase-big-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.btn-purchase-big-red:hover::before {
    left: 100%;
}

.btn-purchase-big-red:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 8, 68, 0.6);
    background: linear-gradient(135deg, #ff5858 0%, #ff0844 100%);
}

.btn-purchase-big-red:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============================================
   BIG COLORFUL SHOPPING CART ICON
   ============================================ */

.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-colorful {
    font-size: 32px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 12px rgba(255, 165, 0, 0.4))
            drop-shadow(0 0 16px rgba(255, 99, 71, 0.3));
    animation: cartBounceColorful 2s ease-in-out infinite;
}

@keyframes cartBounceColorful {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-4px) rotate(-3deg) scale(1.05);
    }
    50% { 
        transform: translateY(-6px) rotate(0deg) scale(1.1);
    }
    75% { 
        transform: translateY(-4px) rotate(3deg) scale(1.05);
    }
}

/* Cart Badge (Item Count) */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.6),
                0 0 0 3px rgba(255, 255, 255, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
    border: 2px solid #ffffff;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 165, 0, 0.6),
                    0 0 0 3px rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.8),
                    0 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

/* Button Text */
.btn-purchase-big-red .btn-text {
    font-weight: 800;
    letter-spacing: 1.2px;
    font-size: 18px;
}

.btn-purchase-big-red .btn-price {
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 20px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-purchase-big-red:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Pulsing glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 8, 68, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 8, 68, 0.8),
                    0 0 40px rgba(255, 8, 68, 0.4);
    }
}

.btn-purchase-big-red {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Rainbow shimmer effect on hover */
@keyframes rainbowShimmer {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.btn-purchase-big-red:hover .cart-icon-colorful {
    animation: cartBounceColorful 2s ease-in-out infinite,
               rainbowShimmer 3s linear infinite;
}

/* ============================================
   INLINE CONTACT LINKS
   ============================================ */

.contact-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

/* WhatsApp Link - Inline */
.whatsapp-link-inline {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-link-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-link-inline i {
    font-size: 22px;
    animation: whatsappBounce 2s ease-in-out infinite;
}

@keyframes whatsappBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Email Link - Inline */
.email-link-inline {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
}

.email-link-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(66, 133, 244, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.email-link-inline i {
    font-size: 20px;
}

.contact-text-inline {
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 15px;
}

/* ============================================
   RIGHT SIDE BUTTONS
   ============================================ */

.btn-settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    margin-right: 10px;
}

.btn-settings-header:hover {
    transform: translateY(-3px) rotate(90deg);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.btn-settings-header i {
    font-size: 20px;
}

.btn-signout-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 87, 108, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-signout-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(245, 87, 108, 0.5);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.btn-signout-header i {
    font-size: 18px;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector-header {
    margin: 0;
    padding: 0;
}

.language-selector-header select {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.4);
    margin-right: 10px;
}

.language-selector-header select:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(79, 172, 254, 0.5);
}

.language-selector-header select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1400px) {
    .btn-purchase-big-red {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .cart-icon-colorful {
        font-size: 28px !important;
    }
    
    .btn-purchase-big-red .btn-text {
        font-size: 16px;
    }
    
    .btn-purchase-big-red .btn-price {
        font-size: 18px;
        padding: 5px 14px;
    }
    
    .contact-link-inline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .header-center-content-inline {
        gap: 12px;
    }
    
    .contact-text-inline {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .btn-purchase-big-red .btn-text {
        display: none;
    }
    
    .btn-purchase-big-red {
        padding: 12px 24px;
    }
    
    .cart-icon-colorful {
        font-size: 26px !important;
    }
    
    .contact-text-inline {
        display: none;
    }
    
    .contact-link-inline {
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .header-center-content-inline {
        gap: 8px;
        padding: 0 8px;
    }
    
    .btn-purchase-big-red {
        padding: 10px 20px;
    }
    
    .cart-icon-colorful {
        font-size: 24px !important;
    }
    
    .btn-purchase-big-red .btn-price {
        font-size: 16px;
        padding: 4px 12px;
    }
    
    .contact-link-inline {
        padding: 8px 12px;
    }
    
    .btn-signout-header span {
        display: none;
    }
    
    .btn-signout-header {
        padding: 10px 14px;
    }
}

@media (max-width: 576px) {
    .email-link-inline {
        display: none;
    }
    
    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header {
    animation: slideInDown 0.6s ease-out;
}

/* Tooltip styling */
.tooltip-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #667eea;
}

.tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #667eea;
}
