/* ============================================
   MOBILE OPTIMIZATIONS - Ultra Fast Loading
   Minimal, Critical Styles Only
   ============================================ */

/* Header Mobile Optimization */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text, #333);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-icon>span:first-child {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #DC3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    background: transparent !important;
    border: none;
    min-width: 40px;
    min-height: 40px;
}

.logo-image-small {
    height: 40px;
    width: 40px;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Three Dot Menu */
.three-dot-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 36px;
    min-height: 36px;
}

.three-dot-menu:hover {
    background: rgba(0, 0, 0, 0.05);
}

.three-dot-menu .dot {
    width: 5px;
    height: 5px;
    background: var(--color-text, #333);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: block;
}

.three-dot-menu:hover .dot {
    background: var(--color-primary, #2C2826);
}

/* Main Container - Footer content */
.container {
    margin-top: var(--spacing-6, 1.5rem);
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-content h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-block;
    padding: 0.15rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #d4a574;
}

.social-icon {
    background: #25D366;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.whatsapp:hover {
    background: #20BA5A;
}

.dropdown-item-empty {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text, #333);
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.dropdown-item-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.dropdown-item-empty {
    display: block;
    padding: 1rem;
    color: #999;
    text-align: center;
}

/* Mobile Specific - 768px and below */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .site-nav {
        display: none;
    }
    
    .header-right {
        margin-left: auto;
        gap: 0.5rem;
    }
    
    .site-logo {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .menu-dropdown {
        display: block;
    }
    
    .three-dot-menu {
        padding: 10px 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .three-dot-menu .dot {
        width: 6px;
        height: 6px;
        background: #000;
    }
    
    .logo-image-small {
        height: 28px;
    }
    
    .cart-icon {
        padding: 4px 6px;
    }
    
    .dropdown-menu {
        position: fixed;
        left: 50%;
        top: 60px;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 320px;
        z-index: 9999;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-menu-right {
        left: 50%;
        right: auto;
    }
    
    .dropdown-item {
        padding: 1rem 1.25rem;
        font-size: 16px;
        min-height: 48px;
    }
    
    .dropdown-item-icon {
        font-size: 1.5rem;
    }
    
    /* Footer 2 columns on mobile */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Extra Small - 390px and below */
@media (max-width: 390px) {
    .site-logo {
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .header-content {
        gap: 0.25rem;
    }
    
    .header-right {
        gap: 0.35rem;
    }
    
    .logo-image-small {
        height: 24px;
    }
    
    .three-dot-menu {
        padding: 8px 10px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .three-dot-menu .dot {
        width: 7px;
        height: 7px;
    }
    
    .footer-content {
        gap: 1rem !important;
    }
}
