/* Ensure content sits below fixed header */
body {
    padding-top: 95px; /* announcement bar (~40px) + navbar (~70px) */
}

/* Announcement Bar */
.announcement-bar {
    background: #162950;
    color: #E93713;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.9rem;
    position: fixed;   /* stays at top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;  /* above navbar */
}

/* Navigation Header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 40px;      /* below announcement bar (approx height) */
    left: 0;
    width: 100%;
    z-index: 1001;  /* below announcement bar */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: -80px;  /* moved logo further right to provide more space before menu */
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: #008080;
    background: rgba(0, 128, 128, 0.1);
}

.nav-menu li a.active {
    color: #008080;
    background: rgba(0, 128, 128, 0.15);
}

/* Cart Icon */
.nav-cart {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
    color: #333;
    margin-left: 20px;
}

.nav-cart:hover {
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 4px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.cart-badge.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cart-content {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.cart-modal.active .cart-content {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    color: #008080;
    font-size: 1.3rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: #e0e0e0;
    color: #333;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #008080;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-display {
    width: 35px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 0;
    background: white;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    margin-left: 8px;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #c0392b;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.cart-total {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
    color: #333;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #008080, #87CEEB);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #008080;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-close-item {
  display: none;
}


/* Mobile Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 60px; /* Make room for cart icon */
    }

    .nav-cart {
        position: absolute;
        right: 20px;
        margin-left: 0;
    }

    .nav-logo {
        position: static;
        margin: 0 auto;
    }

    .nav-menu {
        position: fixed;
        top: 0; /* Start from the very top */
        right: -350px; /* Adjust slide position for new width */
        width: 350px; /* Reasonable menu width */
        height: 100vh; /* Full viewport height */
        background: white;
        flex-direction: column;
        padding: 95px 20px 30px 20px; /* Top padding to account for navbar */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
        margin: 0;
        z-index: 1500; /* Above navbar but below cart modal */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 1.1rem;
        border: 1px solid transparent;
    }

    .nav-menu li a:hover {
        border-color: rgba(0, 128, 128, 0.3);
    }

 /* 3) Show & style the close button on mobile */
    .nav-close-item {
        display: block;           /* override desktop hide */
        position: absolute;
        top: 16px;
        right: 16px;
        list-style: none;
    }
    .nav-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #008080;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .nav-close-btn:hover {
        background: #006666;
        transform: scale(1.1);
    }
    .nav-close-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,128,128,0.5);
    }
    .nav-logo img {
        height: 45px;
    }

    /* Mobile cart modal */
    .cart-content {
        width: 100vw;
        right: -100vw;
    }

    .cart-modal.active .cart-content {
        right: 0;
    }
}

/* Footer Section */
.footer {
    background: #162950;
    color: white;
    padding: 60px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-left h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #87CEEB;
}

.footer-left ul {
    list-style: none;
}

.footer-left ul li {
    margin-bottom: 10px;
}

.footer-left ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left ul li a:hover {
    color: #87CEEB;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info h4 {
    color: #87CEEB;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.directions-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #008080;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.directions-btn:hover {
    background: #006666;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #334d6d;
    color: #87CEEB;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content,
    .footer-right {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 15px;
    }
}
