@import url("https://fonts.googleapis.com/css2?family=Gabriela&family=Gelasio:ital,wght@0,400..700;1,400..700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Gabriela", serif;
}

body {
    font-family: "Gabriela", serif;
    color: #3b2f2f;
    background: #fdfaf6;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(59, 47, 47, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo-img {
    width: 170px;
    height: 150px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company__logo {
  width: 100%;
  max-width: 160px;
  height: 140px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand-name {
    font-family: "Gabriela", serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.22rem;
    color: #3b2f2f;
}

.nav-brand-sub {
    font-family: "Gabriela", serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1rem;
    text-transform: uppercase;
    color: #8b7355;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 24px;
    font-weight: 500;
    transition: color 200ms var(--ease-out-quart);
}

.nav-links a:hover {
    color: #8b7355;
    transform: scale(1.2);
}

.nav-links .active a {
    color: var(--color-brown);
    font-weight: 700;
}

.nav-cart {
    position: relative;
    font-size: 1.3rem;
    margin-right: 2rem;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #8b7355;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #3b2f2f;
    border-radius: 2px;
}

/* ===== ORDER HERO ===== */
.order-hero {
    text-align: center;
    padding: 5rem 2rem 3.5rem;
    background: linear-gradient(135deg, #f5ebe0 0%, #fdfaf6 100%);
}

.order-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: #3b2f2f;
    margin-bottom: 0.5rem;
}

.order-hero p {
    font-size: 1.5rem;
    color: #6b5b4f;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    background: #fff;
    border-bottom: 1px solid #ede7df;
    position: sticky;
    top: 72px;
    z-index: 900;
}

.category-nav-inner {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem 2rem;
}

.category-nav-inner a {
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b5b4f;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.category-nav-inner a:hover {
    color: #8b7355;
    border-bottom-color: #8b7355;
    transform: scale(1.2);
}

/* ===== ORDER SECTIONS ===== */
.order-section {
    padding: 2rem 1rem;
}

.order-section:nth-child(even) {
    background: #fff;
}

.order-section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.order-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    text-align: center;
    color: #3b2f2f;
}

.order-section-divider {
    width: 60px;
    height: 3px;
    background: #8b7355;
    margin: 0.75rem auto 2.5rem;
    border-radius: 2px;
}

/* ===== ITEMS GRID ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 47, 47, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 47, 47, 0.12);
}

.item-card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.item-card-body {
    padding: 1.75rem;
}

.item-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #3b2f2f;
}

.item-card-desc {
    font-size: 1.1rem;
    color: #6b5b4f;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.item-card-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: #8b7355;
    margin-bottom: 1.25rem;
}

/* ===== ORDER FORM ===== */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-field label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a4a3f;
}

.form-field select,
.form-field input,
.form-field textarea {
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ddd5cc;
    border-radius: 6px;
    background: #fdfaf6;
    color: #3b2f2f;
    transition: border-color 0.3s;
}

.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.form-field textarea {
    resize: vertical;
    min-height: 70px;
}

.btn-add-cart {
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #8b7355;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-add-cart:hover {
    background: #6f5b43;
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.back-to-top-wrapper {
    text-align: center;
    padding: 3rem 2rem;
}

.btn-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #8b7355;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

.btn-back-to-top:hover {
    background: #6f5b43;
    transform: translateY(-2px);
}

/* ===== CONTACT MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(59, 47, 47, 0.5);
    backdrop-filter: blur(3px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(59, 47, 47, 0.2);
}

.modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #3b2f2f;
}

.modal p {
    font-size: 1.2rem;
    color: #6b5b4f;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #6b5b4f;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #3b2f2f;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    background: #3b2f2f;
    color: #f5ebe0;
    padding: 1rem 1rem 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 160px;
    width: 190px;
    margin-bottom: 0.75rem;
    border-radius: 20px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #d4c5b0;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 1.4rem;
    margin-top: 48px;
}

.footer-links a {
    font-size: 1.4rem;
    color: #d4c5b0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 48px;
}

.footer-social a {
    font-size: 1.5rem;
    color: #d4c5b0;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-disclaimer {
    text-align: center;
    font-size: 1rem;
    color: #9a8a78;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
    text-align: center;
    font-size: 1rem;
    color: #9a8a78;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* HOVER EFFECTS */
.link__hover-effect {
    position: relative;
}

.link__hover-effect::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 300ms var(--ease-out-quart);
}

.link__hover-effect--black::after {
    background: var(--color-brown);
}

.link__hover-effect--white::after {
    background: var(--color-accent);
}

.link__hover-effect:hover::after {
    width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .order-hero h1 {
        font-size: 2rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .category-nav-inner {
        gap: 1.5rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}