/* =========================
   General Styles
========================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #111827, #020617);
    color: #f5f5f5;
}

/* =========================
   Navigation (Responsive)
========================= */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0f0f0f;
    padding: 10px 20px;
    position: relative;
    flex-wrap: wrap;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #c6c6c6;
}

.heading {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* =========================
   Card Container (GRID – FIXED)
========================= */
.card-container {
    display: grid;
    gap: 20px;
    padding: 20px;
}

/* =========================
   Card (UNCHANGED STYLE)
========================= */
.card {
    background-color: #1f2937;  /* dark blue-grey */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* =========================
   Image Fix (Preserved)
========================= */
.card-image {
    width: 100%;
    height: 200px;
    background-color: #1c1c1c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================
   Buttons (UNCHANGED)
========================= */
button {
    background: linear-gradient(135deg, #000000, #000000);
    color: #f5f5f5;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

button::after {
    
    font-size: 18px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* =========================
   Sections
========================= */
#cart, #about, #location, #contact {
    padding: 20px;
}

#cart {
    background: radial-gradient(circle at top, #111827, #020617);
}

/* =========================
   ADVANCED FOOTER
========================= */

.site-footer {
    background: radial-gradient(circle at top, #111827, #020617);
    padding: 60px 20px 40px;
    color: #cbd5e1;
    text-align: center;
}

/* Logo */
.footer-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

/* Sections */
.footer-section {
    max-width: 600px;
    margin: 0 auto 25px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

/* Social Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 30px 0;
}

.footer-social a {
    font-size: 20px;
    color: #9ca3af;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: #ffffff;
    transform: translateY(-4px);
}

/* Copyright */
.footer-copy {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-section {
        padding: 0 10px;
    }
}


/* =====================================================
   RESPONSIVE GRID — FINAL (NO 1 CARD EVER)
===================================================== */

/* 🖥 Desktop → 4 cards */
@media (min-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 📱 Tablet → 3 cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 📱 Mobile → ALWAYS 2 cards */
@media (max-width: 767px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .heading h1 {
        font-size: 32px !important;
        text-align: center;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    footer {
        font-size: 13px;
    }
}

/* 🔒 VERY SMALL PHONES (STILL 2 CARDS) */
@media (max-width: 320px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.MenuTypes {
    margin: 20px;
}

/* =========================
   NAVBAR LAYOUT
========================= */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background-color: #0f0f0f;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.nav-center {
    text-align: center;
}

.shop-name {
    font-size: clamp(20px, 4vw, 38px);
    text-align: center;
    white-space: nowrap;
}


/* RIGHT SIDE */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* DESKTOP LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #c6c6c6;
}

/* BUTTONS */
.menu-btn,
.search-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* =========================
   MOBILE MENU (FULL SCREEN)
========================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 2000;
}

.mobile-menu a {
    font-size: 24px;
    color: white;
    text-decoration: none;
}

.mobile-menu a:hover {
    color: #c6c6c6;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* =========================
   RESPONSIVE BEHAVIOR
========================= */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

/* ===== HEADER LAYOUT ===== */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 16px;
    background: radial-gradient(circle at top, #111827, #020617);

}

.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}



.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Desktop menu */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Icons */
.menu-btn,
.search-btn {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 2000;
}

.mobile-menu a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.search-overlay input {
    width: 80%;
    max-width: 400px;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .menu-btn,
    .search-btn {
        display: block;
    }
}

/* Fix anchor scroll for sticky header */
#cart,
#perfumes,
#about,
#contact,
#location {
    scroll-margin-top: 120px; /* height of your header */
}
