@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');


/* =========================
   FONT
========================= */

@font-face {
    font-family: "DJB Cutouts Stars";
    src: url("fonts/DJB Cutouts-Stars.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}


/* =========================
   COLORS
========================= */

:root {
    --brown: #96651f;
    --dark-brown: #5b3829;
    --cream: #fff0c9;
    --light-cream: #fff8e8;
    --white: #ffffff;
    --accent-purple: #8c5fbf;
}


/* =========================
   PAGE TRANSITIONS
========================= */

@view-transition {
    navigation: auto;
}

.header {
    view-transition-name: main-header;
}

.navbar {
    view-transition-name: main-navbar;
}


/* =========================
   BASIC
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--dark-brown);
    background: var(--cream);
}

a {
    text-decoration: none;
    color: inherit;
}

.cute-font {
    font-family: "DJB Cutouts Stars", sans-serif;
    font-weight: bold;
}


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

.header {
    width: 100%;
    height: 90px;

    padding: 10px 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: var(--brown);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 55px;
    height: 55px;

    object-fit: contain;
}

.brand span {
    font-size: 32px;
    color: var(--cream);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons img {
    width: 70px;
    height: 55px;

    object-fit: contain;

    transition: transform 0.2s ease;
}

.header-icons img:hover {
    transform: scale(1.1);
}


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

.hero {
    position: relative;

    width: 100%;
    height: 500px;

    overflow: hidden;

    background-color: var(--brown);
}

.hero-slider {
    position: relative;

    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    animation: heroFade 16s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

@keyframes heroFade {
    0%    { opacity: 0; }
    3%    { opacity: 1; }
    25%   { opacity: 1; }
    28%   { opacity: 0; }
    100%  { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {

    .hero-slide {
        animation: none;
    }

    .hero-slide:nth-child(1) {
        opacity: 1;
    }

}

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

.navbar {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 40px;

    padding: 18px;

    background-color: var(--brown);
}

.navbar > a,
.dropbtn {
    font-size: 15px;
    font-weight: 600;

    color: var(--cream);

    transition: color 0.2s ease;
}

.navbar > a:hover,
.dropbtn:hover {
    color: var(--white);
}


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

.dropdown {
    position: relative;
}

.dropbtn {
    display: block;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    min-width: 170px;

    padding: 8px 0;

    background-color: var(--white);

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;

    transition: all 0.2s ease;

    z-index: 100;
}

.dropdown-content a {
    display: block;

    padding: 11px 18px;

    font-size: 14px;
    font-weight: 600;

    color: var(--dark-brown);
}

.dropdown-content a:hover {
    background-color: var(--cream);
    color: var(--brown);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}


/* =========================
   WHY CHOOSE US
========================= */

.why-us {
    width: 100%;

    padding: 90px 8%;

    text-align: center;

    background-color: var(--cream);
}

.bread {
    width: 80px;

    margin-bottom: 15px;
}

.why-us h1 {
    font-size: 40px;

    color: var(--dark-brown);

    margin-bottom: 20px;
}

.intro {
    max-width: 650px;

    margin: 0 auto 50px;

    font-size: 15px;

    line-height: 1.8;
}


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

.products-preview {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.product-card {
    padding: 20px;

    background-color: var(--white);

    border-radius: 20px;

    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-7px);
}

.product-card img {
    width: 100%;
    height: 220px;

    object-fit: contain;

    margin-bottom: 10px;
}

.product-card h2 {
    font-size: 25px;

    color: var(--brown);
}


/* =========================
   MADE WITH LOVE
========================= */

.made-love {
    padding: 85px 8%;

    text-align: center;

    background-color: var(--dark-brown);
}

.made-love h1 {
    font-size: 40px;

    color: var(--cream);

    margin-bottom: 50px;
}

.stats {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}

.stats div {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.stats strong {
    font-size: 40px;

    line-height: 1;

    color: var(--cream);
}

.stats span {
    margin-top: 10px;

    font-size: 11px;
    font-weight: 700;

    color: var(--cream);
}


/* =========================
   WE CAN LOVE YOU
========================= */

.love {
    padding: 90px 8%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    background-color: var(--cream);
}

.love-image img {
    width: 100%;
    max-width: 550px;

    display: block;

    margin: auto;

    border-radius: 20px;
}

.love-content h1 {
    font-size: 40px;

    color: var(--dark-brown);

    margin-bottom: 20px;
}

.love-content p {
    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 15px;
}


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

footer {
	align: center;
	
    position: relative;

    min-height: 150px;

    padding: 40px 8%;

    background-color: var(--brown);

    color: var(--cream);
}

.footer-number {
    font-size: 18px;

    font-weight: 600;

    margin-bottom: 10px;
}

footer p {
    font-size: 11px;

    color: var(--cream);
}

.footer-logo {
    position: absolute;

    right: 8%;
    bottom: 30px;

    width: 60px;
}


/* =========================
   ABOUT US PAGE
========================= */

.about-hero {
    padding: 90px 8%;

    text-align: center;

    background-color: var(--cream);
}

.about-hero h1 {
    font-size: 40px;

    color: var(--dark-brown);

    margin: 15px 0 20px;
}

.about-hero p {
    max-width: 650px;

    margin: 0 auto;

    font-size: 15px;

    line-height: 1.8;
}

.about-values {
    padding: 90px 8%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    background-color: var(--light-cream);
}

.about-values-content h1 {
    font-size: 40px;

    color: var(--dark-brown);

    margin-bottom: 20px;
}

.about-values-content p {
    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 15px;
}

.about-values-image img {
    width: 100%;
    max-width: 550px;

    display: block;

    margin: auto;

    border-radius: 20px;
}

.about-since {
    padding: 85px 8%;

    text-align: center;

    background-color: var(--dark-brown);
}

.about-since h1 {
    font-size: 40px;

    color: var(--cream);
}

.about-since span {
    display: block;

    margin-top: 10px;

    font-size: 14px;

    color: var(--cream);

    opacity: 0.85;
}


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

.products-header {
    padding: 90px 8% 60px;

    text-align: center;

    background-color: var(--cream);
}

.products-header h1 {
    font-size: 40px;

    color: var(--dark-brown);

    margin: 15px 0 20px;
}

.products-header p {
    max-width: 650px;

    margin: 0 auto;

    font-size: 15px;

    line-height: 1.8;
}

.product-category {
    padding: 70px 8%;

    background-color: var(--cream);
}

.product-category:nth-of-type(even) {
    background-color: var(--light-cream);
}

.category-title {
    font-size: 32px;

    text-align: center;

    color: var(--brown);

    margin-bottom: 40px;
}

.product-grid {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 30px 25px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;

    color: var(--cream);

    margin-bottom: 14px;
}

.product-detail-card {
    padding: 18px;

    text-align: center;

    background-color: var(--brown);

    border-radius: 22px;

    cursor: pointer;

    transition: transform 0.2s ease;
}

.product-detail-card:hover {
    transform: translateY(-6px);
}

.product-image-frame {
    border: 3px solid var(--accent-purple);
    border-radius: 16px;

    overflow: hidden;

    margin-bottom: 14px;
}

.product-image-frame img {
    width: 100%;
    height: 160px;

    object-fit: cover;

    display: block;
}

.product-price {
    font-size: 22px;
    font-weight: 700;

    color: var(--cream);

    margin-bottom: 8px;
}

.product-desc {
    font-size: 12px;

    line-height: 1.6;

    color: var(--cream);

    opacity: 0.9;

    margin-bottom: 18px;

    min-height: 36px;
}

.order-btn {
    display: block;

    padding: 10px 0;

    background-color: var(--light-cream);
    color: var(--brown);

    font-size: 13px;
    font-weight: 700;

    border-radius: 30px;

    transition: opacity 0.2s ease;
}

.order-btn:hover {
    opacity: 0.85;
}


/* =========================
   BASKET PAGE
========================= */

.basket-section {
    padding: 90px 8%;

    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 35px;

    align-items: start;

    background-color: var(--light-cream);
}

.basket-card {
    padding: 35px 40px;

    background-color: var(--brown);

    border-radius: 25px;
}

.basket-card h1 {
    font-size: 32px;

    color: var(--cream);

    text-align: center;

    margin-bottom: 15px;
}

.basket-note {
    font-size: 13px;

    line-height: 1.7;

    color: var(--cream);

    opacity: 0.9;

    text-align: center;

    margin-bottom: 25px;
}

.basket-note a {
    text-decoration: underline;
}

.basket-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: var(--cream);
}

.basket-form textarea {
    width: 100%;

    padding: 16px;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 1.7;

    color: var(--dark-brown);

    background-color: var(--light-cream);

    border: none;
    border-radius: 16px;

    resize: vertical;

    margin-bottom: 20px;
}

.submit-order-btn {
    display: block;

    width: 100%;

    padding: 13px 0;

    background-color: var(--light-cream);
    color: var(--brown);

    border: none;
    border-radius: 30px;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.submit-order-btn:hover {
    opacity: 0.85;
}


/* =========================
   PRICE LIST
========================= */

.price-recap {
    padding: 30px 28px;

    background-color: var(--white);

    border-radius: 25px;
}

.price-recap h2 {
    font-size: 26px;

    color: var(--brown);

    text-align: center;

    margin-bottom: 18px;
}

.price-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;

    color: var(--dark-brown);
}

.price-table td {
    padding: 7px 0;

    border-bottom: 1px solid var(--cream);
}

.price-table td:last-child {
    text-align: right;

    font-weight: 600;

    white-space: nowrap;

    padding-left: 12px;
}

.price-group th {
    padding: 16px 0 8px;

    text-align: left;

    font-size: 14px;

    color: var(--brown);
}



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

@media (max-width: 800px) {

    .header {
        height: 80px;

        padding: 10px 20px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .brand span {
        font-size: 26px;
    }

    .header-icons {
        gap: 12px;
    }

    .header-icons img {
        width: 52px;
        height: 42px;
    }


    .hero {
        height: 350px;
    }

    .navbar {
        justify-content: flex-start;

        gap: 25px;

        padding: 15px 20px;

        overflow-x: auto;

        white-space: nowrap;
    }

    .navbar > a,
    .dropbtn {
        font-size: 13px;
    }

    .dropdown-content {
        left: 0;

        transform: none;
    }


    .why-us {
        padding: 70px 6%;
    }

    .why-us h1 {
        font-size: 32px;
    }


    .products-preview {
        grid-template-columns: 1fr;
    }


    .made-love {
        padding: 70px 6%;
    }

    .made-love h1 {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px;
    }

    .stats strong {
        font-size: 32px;
    }


    .love {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 70px 6%;
    }

    .love-content h1 {
        font-size: 32px;
    }


    .about-hero,
    .products-header {
        padding: 70px 6% 50px;
    }

    .about-hero h1,
    .products-header h1 {
        font-size: 32px;
    }

    .about-values {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 70px 6%;
    }

    .about-values-content h1 {
        font-size: 32px;
    }

    .about-since {
        padding: 70px 6%;
    }

    .about-since h1 {
        font-size: 32px;
    }

    .product-category {
        padding: 50px 6%;
    }

    .category-title {
        font-size: 26px;
    }



    .basket-section {
        grid-template-columns: 1fr;

        padding: 70px 6%;
    }

    .basket-card {
        padding: 25px 20px;
    }

    .basket-card h1 {
        font-size: 26px;
    }

    .price-recap {
        padding: 25px 20px;
    }

}

/* Shared hero on every page */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--brown);
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 16s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
@media (max-width: 800px) {
    .hero { height: 350px; }
}
