:root {
  --cream: #fbf6eb;
  --cream-2: #f3eadc;
  --green: #1f3f26;
  --green-2: #2f5a36;
  --green-3: #6f815f;
  --brown: #b67b45;
  --text: #18251b;
  --muted: #657060;
  --line: rgba(31, 63, 38, 0.18);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(52, 42, 25, 0.10);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1220px;
  --font: Inter, Avenir, Helvetica, Arial, sans-serif;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

/* BOUTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid var(--green);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 63, 38, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--white);
}

/* HEADER */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 28px 0;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 150px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-weight: 750;
  font-size: 15px;
}

.nav-links a {
  position: relative;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
}

.mobile-menu {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
  font-size: 22px;
}

/* HERO */

.products-hero {
  position: relative;
  padding: 160px 0 64px;
  background:
    radial-gradient(circle at 0% 45%, rgba(111, 129, 95, 0.13), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(182, 123, 69, 0.10), transparent 28%),
    linear-gradient(135deg, #fffaf0 0%, var(--cream) 50%, #f4eadb 100%);
}

.products-hero::before {
  content: "";
  position: absolute;
  left: -95px;
  bottom: -70px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(111, 129, 95, 0.12);
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--brown);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}

.products-hero h1 {
  color: var(--green);
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
  margin-bottom: 22px;
}

.products-hero p {
  max-width: 740px;
  color: #26352a;
  font-size: 20px;
  font-weight: 620;
}

/* COLLECTION */

.collection-section {
  padding: 58px 0 72px;
}

.collection-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: start;
}

/* FILTRES */

.filters-panel {
  position: sticky;
  top: 24px;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid #eadfce;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(70, 54, 34, 0.06);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.filters-header h2 {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.reset-filters {
  border: 0;
  background: transparent;
  color: var(--brown);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.filter-group {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #eadfce;
}

.filter-group:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.filter-group h3 {
  color: #253026;
  font-size: 16px;
  font-weight: 950;
  margin-bottom: 14px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: #29342b;
  font-size: 15px;
  font-weight: 720;
  cursor: pointer;
}

.filter-option input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(31, 63, 38, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.filter-option input::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green);
  transform: scale(0);
  transition: transform 0.18s ease;
}

.filter-option input:checked::after {
  transform: scale(1);
}

/* TOPBAR */

.products-content {
  min-width: 0;
}

.collection-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.collection-topbar h2 {
  color: var(--green);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.collection-topbar p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
  margin-top: 4px;
}

.sort-select {
  height: 46px;
  min-width: 180px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 63, 38, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

/* PRODUITS */

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

.product-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #eadfce;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 34px rgba(70, 54, 34, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(70, 54, 34, 0.10);
}

.product-card.is-hidden {
  display: none;
}

.product-image {
  position: relative;
  height: 190px;
  display: block;
  overflow: hidden;
  background: rgba(244, 235, 218, 0.82);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.product-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 63, 38, 0.92);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.product-info {
  padding: 18px 18px 20px;
}

.product-brand {
  color: var(--brown);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-info h3 {
  min-height: 48px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  margin-bottom: 8px;
}

.product-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 6px;
}

.product-price {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 10px;
}

.product-desc {
  min-height: 62px;
  color: #29342b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 620;
  margin-bottom: 16px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.product-link span {
  font-size: 20px;
  line-height: 1;
}

/* EMPTY STATE */

.empty-products {
  display: none;
  margin-top: 26px;
  padding: 36px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid #eadfce;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(70, 54, 34, 0.06);
}

.empty-products.is-visible {
  display: block;
}

.empty-products h3 {
  color: var(--green);
  font-size: 26px;
  font-weight: 950;
  margin-bottom: 8px;
}

.empty-products p {
  color: var(--muted);
  font-weight: 700;
}

/* FOOTER */

.footer {
  background:
    radial-gradient(circle at 10% 20%, rgba(111, 129, 95, 0.35), transparent 28%),
    linear-gradient(135deg, #18331e, #244a2b);
  color: var(--white);
  padding: 46px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr 1fr;
  gap: 54px;
  padding-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand .logo-img {
  width: 130px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 190px;
  font-weight: 650;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 48px;
}

.footer h3 {
  font-size: 17px;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ICONES */

.socials img {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.icon {
  width: 23px;
  height: 23px;
  display: block;
  flex-shrink: 0;
}

/* RESPONSIVE TABLETTE */

@media (max-width: 1050px) {
  .site-header {
    position: relative;
    background: var(--cream);
    padding: 18px 0;
  }

  .nav-links,
  .site-header .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: grid;
    place-items: center;
  }

  .products-hero {
    padding: 54px 0 52px;
  }

  .collection-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: relative;
    top: 0;
  }

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

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

/* RESPONSIVE MOBILE */

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .logo-img {
    width: 120px;
  }

  .footer-brand .logo-img {
    width: 110px;
  }

  .products-hero h1 {
    font-size: 42px;
  }

  .products-hero p {
    font-size: 17px;
  }

  .collection-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-select {
    width: 100%;
  }

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

  .product-image {
    height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    border-left: 0;
    padding-left: 0;
  }
}