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


html {
    scroll-behavior: smooth;
}


body {
    background: #fffaf8;
    color: #4c3d39;
    font-family: Arial, sans-serif;
}


/* =========================
   HEADER
========================= */

.header {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 6%;

    background: white;

    border-bottom: 1px solid #eee1dd;

    position: sticky;

    top: 0;

    z-index: 1000;
}


.logo {

    font-family: Georgia, serif;

    font-size: 30px;

    font-weight: bold;

    color: #654d47;
}


nav {

    display: flex;

    align-items: center;

    gap: 20px;
}


nav a {

    text-decoration: none;

    color: #594a46;

    font-size: 14px;
}


.wishlist-button {

    border: none;

    background: #f4e6e2;

    color: #684e49;

    padding: 10px 16px;

    border-radius: 25px;

    cursor: pointer;

    transition: .2s;
}


.wishlist-button:hover {

    background: #ead8d3;
}


#wishlistCount {

    background: #684e49;

    color: white;

    border-radius: 50%;

    padding: 2px 7px;

    margin-left: 5px;
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 520px;

    display: flex;

    align-items: center;

    padding: 70px 8%;

    background:
        linear-gradient(
            90deg,
            rgba(255,250,248,.95),
            rgba(255,250,248,.55)
        ),
        url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1800&q=80");

    background-size: cover;

    background-position: center;
}


.hero-content {

    max-width: 550px;
}


.eyebrow {

    color: #a66f68;

    letter-spacing: 4px;

    font-size: 11px;

    margin-bottom: 20px;
}


.hero h1 {

    font-family: Georgia, serif;

    font-size: 70px;

    line-height: 1;

    margin-bottom: 20px;
}


.hero-description {

    line-height: 1.8;

    color: #746662;

    max-width: 450px;
}


.hero-button {

    display: inline-block;

    margin-top: 25px;

    background: #604a44;

    color: white;

    padding: 14px 25px;

    border-radius: 30px;

    text-decoration: none;

    transition: .2s;
}


.hero-button:hover {

    transform: translateY(-2px);

    background: #493934;
}


/* =========================
   CATEGORY AREA
========================= */

.category-area {

    background: white;

    padding: 25px 15px;

    border-bottom: 1px solid #eee1dd;
}


.main-categories {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}


.main-category {

    border: 1px solid #e2d4d0;

    background: white;

    padding: 11px 20px;

    border-radius: 25px;

    cursor: pointer;

    color: #624f4a;

    transition: .2s;
}


.main-category:hover {

    background: #f5e8e4;
}


.main-category.active {

    background: #604a44;

    color: white;

    border-color: #604a44;
}


/* =========================
   SUBCATEGORIES
========================= */

.subcategory-container {

    display: none;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid #eee5e2;
}


.subcategory-container.show {

    display: flex;
}


.subcategory {

    border: none;

    background: #faf4f2;

    color: #705a54;

    padding: 8px 15px;

    border-radius: 20px;

    cursor: pointer;

    font-size: 13px;

    transition: .2s;
}


.subcategory:hover {

    background: #f1e1dd;
}


.subcategory.active {

    background: #e7d3ce;

    color: #503c37;

    font-weight: bold;
}


/* =========================
   PRODUCTS
========================= */

main {

    padding: 70px 6%;
}


.section-title {

    text-align: center;

    margin-bottom: 12px;
}


.section-title p {

    color: #a66f68;

    font-size: 11px;

    letter-spacing: 3px;
}


.section-title h2 {

    font-family: Georgia, serif;

    font-size: 42px;

    margin-top: 8px;
}


.current-category {

    text-align: center;

    color: #8d7771;

    font-size: 13px;

    margin-bottom: 35px;
}


.products-grid {

    columns: 4 220px;

    column-gap: 20px;
}


.product-card {

    break-inside: avoid;

    margin-bottom: 20px;

    background: white;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 5px 25px rgba(80,50,45,.08);

    transition: .2s;
}


.product-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 30px rgba(80,50,45,.13);
}


.product-image {

    position: relative;
}


.product-image img {

    display: block;

    width: 100%;

    max-height: 500px;

    object-fit: cover;
}


.heart {

    position: absolute;

    right: 12px;

    top: 12px;

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background: white;

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(0,0,0,.08);
}


.product-info {

    padding: 18px;
}


.category {

    color: #a66f68;

    text-transform: uppercase;

    font-size: 10px;

    letter-spacing: 2px;
}


.product-info h3 {

    font-family: Georgia, serif;

    font-size: 24px;

    margin: 6px 0 10px;
}


.description {

    font-size: 13px;

    line-height: 1.7;

    color: #756965;

    margin-bottom: 15px;
}


.buy-button {

    display: block;

    text-align: center;

    background: #604a44;

    color: white;

    padding: 11px;

    border-radius: 25px;

    text-decoration: none;

    font-size: 12px;

    transition: .2s;
}


.buy-button:hover {

    background: #493934;
}


/* =========================
   MODAL
========================= */

.modal {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(50,35,30,.6);

    z-index: 5000;

    padding: 20px;

    align-items: center;

    justify-content: center;
}


.modal.show {

    display: flex;
}


.modal-content {

    width: 100%;

    max-width: 650px;

    max-height: 90vh;

    overflow-y: auto;

    background: #fffaf8;

    padding: 30px;

    border-radius: 18px;

    position: relative;
}


.close-button {

    position: absolute;

    right: 18px;

    top: 12px;

    border: none;

    background: none;

    font-size: 30px;

    cursor: pointer;
}


.modal-content h2 {

    font-family: Georgia, serif;

    margin-bottom: 20px;
}


/* =========================
   WISHLIST
========================= */

.wishlist-card {

    display: flex;

    gap: 15px;

    padding: 12px;

    background: white;

    margin-top: 15px;

    border-radius: 10px;
}


.wishlist-card img {

    width: 80px;

    height: 80px;

    object-fit: cover;

    border-radius: 8px;
}


.wishlist-card h3 {

    font-family: Georgia, serif;

    margin-bottom: 8px;
}


.remove-button {

    border: none;

    background: #f3dfdb;

    padding: 7px 12px;

    border-radius: 20px;

    cursor: pointer;
}


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

footer {

    background: #604a44;

    color: white;

    text-align: center;

    padding: 50px 20px;
}


footer h2 {

    font-family: Georgia, serif;

    font-size: 32px;

    margin-bottom: 10px;
}


footer p {

    font-size: 12px;

    margin-top: 8px;
}


/* =========================
   LOADING
========================= */

.loading {

    text-align: center;

    padding: 50px;

    color: #887570;
}


/* =========================
   MOBILE
========================= */

@media(max-width:700px) {

    .header {

        height: auto;

        padding: 15px;

        flex-direction: column;

        gap: 12px;
    }


    nav a {

        display: none;
    }


    .hero {

        min-height: 450px;

        padding: 50px 25px;
    }


    .hero h1 {

        font-size: 52px;
    }


    .products-grid {

        columns: 2 150px;
    }


    .main-categories {

        gap: 7px;
    }


    .main-category {

        padding: 9px 14px;

        font-size: 12px;
    }

}


@media(max-width:450px) {

    .products-grid {

        columns: 1;
    }


    .hero h1 {

        font-size: 45px;
    }

}
/* =========================
   ADMIN NAV LINK
========================= */

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid #eadbd6;
    border-radius: 20px;
    color: #594a46;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.admin-link:hover {
    background: #f8eeeb;
    border-color: #d9c3bc;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .header {
        padding: 0 4%;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 13px;
    }

    .admin-link {
        padding: 8px 10px;
    }
}
