.merriweather-regular {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

:root {
    --primary-color: #F5F3EE;
    --secondary-color: #DFDCD0;
    --background-color: #f5f3ee;
    --accent-color: #DDE7EF;
    --light-font-color: #726962;
    --dark-font-color: #423831;
}

body {
    margin: 0 auto;
    font-family: "Merriweather", serif;
    font-weight: 400;
    background-color: var(--background-color);
}

.main-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    padding: 0;
    text-align: center;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    width: 100%;
    padding: 16px 0 16px 0;
    margin: 0 auto;
    background-color: var(--primary-color);
}

.main-nav a {
    text-decoration: none;
    color: var(--light-font-color);
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
    color: var(--dark-font-color);
}

/* icons for navigation */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-font-color);
}

.close-btn {
    display: none;
}

/* navigation bar */
.left-column {
    position: relative;
}

.left-column ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.middle-column {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.middle-column img {
    height: 32px;
}

.right-column {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: var(--light-font-color);
}

.right-column svg {
    width: 1.5em;
    color: var(--light-font-color);
}

.main-headline {
    background-color: var(--accent-color);
    padding: 1px;
    color: var(--dark-font-color);
}

/* hero section */
.hero-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    height: 450px;
}

.hero-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-item.active {
    opacity: 1;
    z-index: 1;
}

.hero1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    padding: 24px 0 0 0;
    opacity: 0.75;
    background-color: rgba(250, 228, 225, 0.25);
}

.tagline {
  position: absolute;
  top: 50%;                 
  left: 50%;                 
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--primary-color);
  font-weight: 100;
  z-index: 2;
}

.logo-overlay {
  display: block;
  margin: 0 auto;  
  width: 100%;               
  max-width: 400px; 
  height: auto;
  pointer-events: none;
}

.tagline h3 {
    line-height: 1.5;
}

.tagline h2 {
    margin: 0;
    line-height: 1.5;
}

.page-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

/* new arrivals section */
.new-arrivals, .sale-collection {
    padding: 20px 0 0 0;
}

.new-arrivals h1, .sale-collection h1 {
    text-align: center;
    color: var(--light-font-color);
}

.new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.item {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.item:hover {
    transform: translateY(-10px);
}

.caption {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--light-font-color);
    text-align: left;
}

.caption p {
    line-height: 4px;
}

.discount-price {
    margin-left: 8px;
    color: var(--light-font-color);
    font-weight: bold;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel {
    width: 100%;
    aspect-ratio: 3 /4;
    object-fit: cover;
    position: relative;
}

.carousel > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: flex-start;
    pointer-events: none;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide[data-active] {
    opacity: 1;
    pointer-events: auto;
}

.carousel-button {
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    font-size: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-font-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-button.next {
  right: 2rem;
  transform: translate(50%, -50%);
}

.carousel-button.prev {
  left: 2rem;
  transform: translate(-50%, -50%);
}

.carousel-button:hover {
    background-color: var(--accent-color);
    border-radius: 4px;
}

/* frequently asked questions */
.FAQ h1 {
    color: var(--light-font-color);
    text-align: center;
}

.FAQ {
    padding: 20px;
}

.faq-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--secondary-color);
}

.faq-question {
    cursor: pointer;
    margin: 0;
    padding: 10px 10px 0 10px;
    color: var(--light-font-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    font-size: 1.2em;
    padding: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 10px;
    color: var(--light-font-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 10px 10px 0 10px;
}

/* footer */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--light-font-color);
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  margin-top: 10px;
}

.footer-nav a {
  color: var(--light-font-color);
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--dark-font-color);
  text-decoration: underline;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        margin: 0;
        cursor: pointer;
        color: var(--dark-font-color);
    }

    .left-column ul {
        padding: 20px 0 0 20px;
        text-align: left;
    }

    .close-btn {
        display: block;
        font-size: 32px;
        cursor: pointer;
        color: var(--dark-font-color);
        align-self: flex-start;
        list-style: none;
    }

    .side-nav {
        position: fixed;
        top: 0;
        left: -275px;
        width: 250px;
        height: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    /* when active */
    .side-nav.active {
        left: 0; /* slide in */
    }

    .side-nav li {
        margin: 0;
    }

    .side-nav a {
        color: var(--dark-font-color);
        text-decoration: none;
        font-size: 24px;
    }

    .side-nav a:hover {
        text-decoration: underline;
    }

    .main-nav {
        justify-content: space-between;
        margin: 0 auto;
    }

    .middle-column {
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav {

        flex-wrap: wrap;
        align-items: center;
        padding: 16px 20px;
    }

    .right-column {
        justify-content: flex-end;
        gap: 12px;
    }

    .nav-icon p {
        font-size: 14px;
    }

    .nav-icon svg {
        width: 20px;
        height: 20px;
    }
}

