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

:root {
    /* Fonts */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* THEME VARIABLES */
.light-theme {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --header-bg: linear-gradient(to right, #f97316, #ef4444, #ec4899);
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --blob-1: rgba(251, 146, 60, 0.3);
    --blob-2: rgba(244, 114, 182, 0.3);
}

.dark-theme {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --header-bg: linear-gradient(to right, #1f2937, #111827, #000000);
    --card-bg: #1f2937;
    --shadow: rgba(0, 0, 0, 0.5);
    --blob-1: rgba(127, 29, 29, 0.5);
    --blob-2: rgba(127, 29, 29, 0.5);
}

/* UTILITIES & ICONS */
.hidden { display: none !important; }

.icon { width: 20px; height: 20px; }
.icon-small { width: 12px; height: 12px; }

/* 4. HEADER & NAVIGATION */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    box-shadow: 0 4px 6px -1px var(--shadow);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo specific styles */

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px var(--shadow);
    transition: transform 0.6s;
}

.light-theme .logo-icon {
    background: white;
    
}

.dark-theme .logo-icon {
    background: none;
    box-shadow: none;
}

/* Target the image/SVG inside */
.logo-icon img, 
.logo-icon .icon-small {
    width: 80%;  
    height: 80%;
    object-fit: contain; /* Ensures it doesn't stretch weirdly */
}
.logo-text {
    display: none;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.025em;
}

.logo-text .location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.light-theme .logo-text .location {
    color: rgba(254, 215, 170, 0.9);
}

.dark-theme .logo-text .location {
    color: #9ca3af;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-button {
    padding: 0.75rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.light-theme .icon-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-theme .icon-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

.icon-button:hover {
    transform: scale(1.1) rotate(180deg);
}

.light-theme .icon-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dark-theme .icon-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Nav Dropdown */
/* Menu Dropdown */
.dropdown-content {
    flex-direction: column;
    display: none;
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 224px;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px var(--shadow);
    overflow: hidden;
    /* opacity: 0; */
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s;
}

.dropdown-content.show {
    display: flex; 
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-dropdown {
    position: relative;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.light-theme .menu-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-theme .menu-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-button:hover {
    transform: scale(1.05);
}

.light-theme .menu-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dark-theme .menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-text {
    display: none;
}

.light-theme .dropdown-content {
    background: white;
    border: 1px solid #e5e7eb;
}

.dark-theme .dropdown-content {
    background: #1f2937;
    border: 1px solid #374151;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.light-theme .dropdown-item {
    color: #111827;
}

.dark-theme .dropdown-item {
    color: white;
}

.light-theme .dropdown-item:hover {
    background: #fff7ed;
}

.dark-theme .dropdown-item:hover {
    background: #374151;
}

.dropdown-emoji {
    font-size: 1.25rem;
}

.dropdown-title {
    font-weight: 600;
}

.dropdown-desc {
    font-size: 0.75rem;
}

.light-theme .dropdown-desc {
    color: #6b7280;
}

.dark-theme .dropdown-desc {
    color: #9ca3af;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

.light-theme .dropdown-divider {
    border-color: #e5e7eb;
}

.dark-theme .dropdown-divider {
    border-color: #374151;
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.2); /* Slightly brighter glass */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.dropdown-item.active .dropdown-title {
    color:  #fbbf24; /* Keep text readable over the blur */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cart Button */
.cart-button {
    position: relative;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px var(--shadow);
    transition: all 0.3s;
}

.light-theme .cart-button {
    background: white;
    color: #813803;
}

.dark-theme .cart-button {
    background: linear-gradient(to right, #ea580c, #dc2626);
    color: white;
}

.cart-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px var(--shadow);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(to right, #4ade80, #22c55e);
    color: white;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    animation: pulse 0.3s;
}
/* =========================================
   FOOTER STYLES (Accessible & Liquid Glass)
   ========================================= */

.footer {
    color: #ffffff;
    transition: background-color 0.3s ease;
    position: relative;
    width: 100%;
}

/* Note: In your design, both themes use a dark footer for branding consistency */
.light-theme .footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
}

.dark-theme .footer {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Animations */
.footer-section {
    animation: fadeIn 0.5s both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }

/* Logo Styling */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    color: white;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(to bottom right, #f97316, #ef4444);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-logo:hover .footer-logo-icon {
    transform: rotate(360deg) scale(1.1);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--heading-font);
    letter-spacing: -0.02em;
}

/* Content Text - ACCESSIBILITY FIX: Changed to #d1d5db for high contrast */
.footer-desc {
    color: #d1d5db; 
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}


.social-link {
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: scale(1.15) translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Navigation Links */
.footer-title {
    font-weight: 800;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #fb923c; /* Brand Orange for Wayfinding */
    font-family: var(--heading-font);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(6px);
}

.footer-links a {
    text-decoration: none;
    color: #d1d5db; /* Accessible Gray */
    transition: color 0.2s ease;
    font-size: 0.938rem;
}

.footer-links a:hover {
    color: #ffffff;
}




/* Contact Info */
.footer-contacts {
    list-style: none;
    padding: 0;
    color: white;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.footer-contacts .icon {
    width: 20px;
    height: 20px;
    color: #f97316; /* Wayfinding orange for icons */
    flex-shrink: 0;
    margin-top: 2px;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    animation: fadeIn 0.8s 0.4s both;
}

.footer-bottom p {
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}
