﻿/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* Header */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .logo-tagline {
        display: none;
    }
}

/* Header Actions (right side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-order-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 14px rgba(37, 99, 235, 0.35);
}

.header-order-btn:hover {
    box-shadow: 0 5px 22px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 20px 14px;
    color: #0f172a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.cart-icon:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.cart-icon svg {
    width: 28px;
    height: 28px;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification svg {
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0f172a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 94px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    max-height: calc(100vh - 94px);
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #e0f2fe;
    color: #2563eb;
}

/* Mobile Dropdown */
.mobile-has-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.mobile-dropdown-toggle:hover {
    background-color: #e0f2fe;
    color: #2563eb;
}

.mobile-dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8fafc;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-menu li {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-dropdown-menu .mobile-nav-link {
    padding-left: 40px;
    font-size: 13px;
    color: #475569;
}

.mobile-dropdown-menu .mobile-nav-link:hover {
    color: #2563eb;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-link {
        padding: 20px 10px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
        top: 94px;
    }

    .mobile-nav.active {
        max-height: calc(100vh - 94px);
    }

    .header-container {
        padding: 0 16px;
        height: 94px;
        gap: 8px;
    }

    .logo-img {
        height: 68px;
    }

    .header-order-btn {
        display: none;
    }

    .cart-icon {
        width: 40px;
        height: 40px;
    }

    .cart-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        height: 82px;
    }

    .logo-img {
        height: 58px;
    }

    .mobile-nav {
        top: 82px;
    }

    .mobile-nav.active {
        max-height: calc(100vh - 82px);
    }
}

/* ─── Footer contact links (shared across all pages) ─── */
.footer-contact-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.25s;
}
.footer-contact-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

