:root {
  --background: #24211f;
  --text: #eee7df;
  --muted: #b9ada0;
  --accent: #a18168;
  --cream: #39332f;

  --font: "DM Sans", sans-serif;
  --heading: "Outfit", sans-serif;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
}

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

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p {
  margin-top: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: auto;
}

/* HEADER */

.header {
  background: #24211f;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #393431;
}

.header__inner {
  max-width: 1800px;
  width: calc(100% - 80px);
  margin: auto;

  padding: 28px 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo img {
  display: block;
  width: auto;
  height: 65px;
  max-width: 260px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 45px;
}

.nav a {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

/* HERO */

.hero {
  position: relative;
  height: min(680px, 75vh);
  min-height: 400px;
  background: #b4aaa0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.05)
  );
}

.hero__overlay {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: max(6%, calc((100% - 1280px) / 2));
  transform: translateY(-50%);
  color: white;
  padding-right: 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(44px, 6vw, 85px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 20px 0 30px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 15px 25px;
  font-weight: 800;
  font-size: 13px;
  transition: background 0.2s;
}

.button:hover {
  background: white;
}

/* SECTIONS */

.section {
  padding: 90px 0;
}

.section__title {
  margin-bottom: 35px;
}

.section__title h2 {
  font-family: var(--heading);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.section__title h2 span {
  color: #a6b400;
}

.section__title p {
  color: var(--muted);
  font-size: 15px;
}


/* COLLECTIONS */

.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.collection {
  min-width: 0;
}

.collection__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0f0f0;
}

.collection__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}

.collection:hover img {
  transform: scale(1.04);
}

.collection h3 {
  margin: 15px 0 0;
  margin-bottom: 10px;
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.collection h3 span {
  display: inline-block;
  margin-left: 10px;
}

/* Center collection section heading and description */

#collections .section__title {
  text-align: center;
  margin-bottom: 35px;
}


/* BANNER */

.banner {
  background: var(--accent);
  padding: 70px 20px;
  text-align: center;
}

.banner p {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.banner h2 {
  font-family: var(--heading);
  font-size: clamp(32px, 5vw, 65px);
  letter-spacing: -2px;
  margin: 0;
}

/* GALLERY */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f0f0f0;
}

/* ABOUT */

.about {
  background: var(--cream);
  text-align: center;
  padding: 100px 0;
}

.about__inner {
  max-width: 650px;
}

.about h2 {
  font-family: var(--heading);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1px;
  margin: 15px 0 25px;
}

.about p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* FOOTER */

.footer {
  padding: 35px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}


/* CLOTHING COLLECTIONS */

.category-section {
  background: var(--background);
  padding: 50px 0 100px;
}

/* Make gallery take more screen space */
.category-section .container {
  max-width: 1800px;
  width: calc(100% - 60px);
}

/* Bigger images: 4 per row */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Image container */
.product {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #342e2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}


.product:hover img {
  transform: scale(1.03);
}


/* HOMEPAGE NOUVEAUTES */

#nouveautes .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#nouveautes .product {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #342e2a;
}

#nouveautes .product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* TABLET */
@media (max-width: 900px) {
  #nouveautes .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */
@media (max-width: 600px) {
  #nouveautes .gallery {
    gap: 8px;
  }
}



.banner {
  padding: 55px 20px;
}

.about {
  padding: 70px 0;
}

.footer__inner {
  flex-direction: column;
  text-align: center;
}

/* Wider category pages */

.category-header .container,
.category-section .container {
  max-width: 1800px;
  width: calc(100% - 80px);
}

.category-section {
  padding: 40px 0 100px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}


/* LIGHTBOX */

.product img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.92);

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

  padding: 30px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  display: block;
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;

  background: transparent;
  border: none;
  color: white;

  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
}

.lightbox__close:hover {
  color: #d6c9bb;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 15px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 85vh;
  }

  .lightbox__close {
    top: 10px;
    right: 15px;
  }
}


/* NOUVEAUTÉS BUTTON */

.view-all {
  display: flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  margin: 35px auto 0;
  padding: 15px 30px;

  background: #d6c9bb;
  color: #24211f;

  font-family: var(--heading);
  font-size: 16px;
  font-weight: 700;

  border: none;
  border-radius: 6px;
  text-decoration: none;

  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.view-all:hover {
  background: #f0eae2;
  transform: translateY(-3px);
  text-decoration: none;
}


/* ===================================
   RESPONSIVE NAVIGATION
=================================== */

/* Hide hamburger on desktop */

.nav-toggle {
  display: none;
}

/* MOBILE HEADER */

@media (max-width: 720px) {

  .header {
    background: #24211f;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #393431;
  }

  .header__inner {
    position: relative;
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;

    width: 100%;
    max-width: none;
    padding: 15px 18px;
    gap: 10px;
  }

  /* Hamburger */

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 42px;
    height: 42px;

    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 0;
    background: #f0eae2;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  /* Animate hamburger */

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Center logo */

  .header .logo {
    grid-column: 2;
    grid-row: 1;

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

    min-width: 0;
  }

  .header .logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
  }

  /* Dropdown navigation */

  .header .nav {
    display: none;
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;
    width: 100%;

    background: #24211f;
    border-bottom: 1px solid #393431;

    padding: 15px 20px 25px;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    border-radius: 0;
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
  }

  .header .nav.is-open {
    display: flex;
  }

  .header .nav a {
    display: block;
    color: #f0eae2;

    padding: 16px 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;

    border-bottom: 1px solid #393431;
  }

  .header .nav a:hover {
    color: #d6c9bb;
    background: #342e2a;
  }
}


/* ===================================
   MOBILE CLOTHING GALLERIES
=================================== */

@media (max-width: 720px) {

  /* Homepage collections */

  .collections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .collection {
    min-width: 0;
  }

  .collection__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .collection__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .collection h3 {
    font-size: 16px;
    text-align: center;
    margin-top: 12px;
  }

  /* Homepage Nouveautés */

  #galerie .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #galerie .product {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  #galerie .product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* All six clothing category pages */

  .category-section .container {
    width: calc(100% - 24px);
    max-width: none;
  }

  .category-section .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-section .product {
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .category-section .product img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  /* General mobile section spacing */

  .section {
    padding: 50px 0;
  }

  .category-section {
    padding: 25px 0 60px;
  }

  .section .container {
    width: calc(100% - 24px);
  }
}



/* =====================================
   MOBILE NOUVEAUTÉS GALLERY
===================================== */

@media (max-width: 720px) {

  #galerie .container {
    width: calc(100% - 24px);
  }

  #galerie .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  #galerie .product {
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;

    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
  }

  #galerie .product a,
  #galerie .product__button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  #galerie .product img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background: transparent;
  }
}


/* MOBILE COLLECTIONS */

@media (max-width: 720px) {

  #collections .collections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 12px;
  }

  #collections .collection {
    min-width: 0;
  }

  /* Center last item if there's an odd number */
  #collections .collection:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 12px) / 2);
    justify-self: center;
  }

  #collections .collection__image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #342e2a;
  }

  #collections .collection__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  #collections .collection h3 {
    margin-top: 15px;
    text-align: center;
  }
}
