/* ============================================
   CATTY CAFE — Base Styles
   Editorial / Magazine Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --sky-blue: #87CEEB;
    --sky-blue-deep: #5bb8e0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
}

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

body {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

.navbar:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

/* --- Logo --- */
.logo {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-img {
    height: 80px;
    width:80px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text-nav {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-dark);
}

.logo:hover {
    opacity: 0.85;
}

/* --- Nav Menu (desktop wrapper) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: flex-end;
}

/* --- Nav Links --- */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Lora', serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sky-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Nav Action Buttons --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn {
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 999px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn-ghost {
    color: var(--text-dark);
    border: 1px solid var(--border);
    background: transparent;
}

.nav-btn-ghost:hover {
    border-color: var(--sky-blue);
    color: var(--sky-blue-deep);
}

.nav-btn-solid {
    color: #fff;
    background: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.nav-btn-solid:hover {
    background: var(--sky-blue);
    border-color: var(--sky-blue);
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.35);
    transform: translateY(-1px);
}

/* --- Cart Icon --- */
.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.nav-cart svg {
    width: 20px;
    height: 20px;
}

.nav-cart:hover {
    background: var(--bg-light);
    color: var(--sky-blue-deep);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--sky-blue);
    color: var(--text-dark);
    font-size: 0.55rem;
    font-weight: 700;
    font-family: 'Lora', serif;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Mobile right side wrapper (cart + hamburger) --- */
.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 4px;
}

/* --- Hamburger Toggle (hidden on desktop) --- */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   RESPONSIVE NAVBAR
   ============================================ */

@media (max-width: 900px) {

    /* Show mobile right group (cart + hamburger), hide desktop cart inside nav-menu */
    .nav-right-mobile {
        display: flex;
    }

    .nav-menu .nav-cart {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        /* Hidden state — slides up and fades out */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        padding: 14px 0;
        border-bottom: 1px solid #f1f5f9;
        color: var(--text-dark);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-actions {
        flex-direction: row;
        gap: 10px;
        padding: 1.25rem 2rem;
    }

    .nav-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.78rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-light);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

/* Brand */
.footer-brand {
    flex: 1;
    min-width: 240px;
}

.footer-brand .logo-text {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-dark);
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

/* Links */
.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
    transition: color 0.2s ease;
    position: relative;
    width: fit-content;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sky-blue);
    transition: width 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-dark);
}

.footer-col a:hover::after {
    width: 100%;
}

/* Bottom Bar */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Lora', serif;
    letter-spacing: 0.04em;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--text-dark);
}

@media (max-width: 640px) {
    .footer-links {
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}