@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
    --fog: #ebebe6;
    --driftwood: #c0b8ab;
    --stone: #a3a19b;
    --oatmeal: #c9c5bf;
    --umber: #685b4d;
    --dumber: #36271d;
    --background: #f7f5f1;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    color: var(--dumber);
    background-color: var(--background);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(198, 187, 173, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 42px;
    height: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dumber);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 0.1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links li a:hover {
    color: var(--umber);
    border-color: var(--umber);
}


.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    height: 2px;
    background: var(--dumber);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.nav-toggle span:nth-child(1) { width: 100%; }
.nav-toggle span:nth-child(2) { width: 80%; }
.nav-toggle span:nth-child(3) { width: 60%; }

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 100%;
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 100%;
}



.products-page .products-header h1 {
  margin: 1rem 0 0.35rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}
.products-page .products-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.products-page .products-header p {
  margin: 0 auto;
  max-width: 52rem;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.filter-pill {
  appearance: none;
  border: 1.5px solid rgba(54, 39, 29, 0.25);
  background: rgba(235, 235, 230, 0.7);
  color: var(--dumber);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.filter-pill.is-active {
  background: var(--dumber);
  color: var(--fog);
  border-color: var(--dumber);
}

#productsGrid.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.product-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  max-width: 320px;
  background-color: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .product-card { flex: 1 1 calc(50% - 1.5rem); }
}

@media (max-width: 640px) {
  .product-card { flex: 1 1 100%; }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.product-card .card-body {
  padding: 0.9rem 1rem 1rem;
}

.product-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.product-card .card-meta {
  color: #6d645c;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 39, 29, 0.62);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: relative;
  width: min(1000px, calc(100% - 2rem));
  margin: 5vh auto;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(54, 39, 29, 0.18);
  background: rgba(235, 235, 230, 0.9);
  color: var(--dumber);
  font-size: 26px;
  line-height: 26px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .modal-body { grid-template-columns: 1.1fr 0.9fr; }
}

.modal-media {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(235,235,230,0.55), rgba(201,197,191,0.35));
}

.modal-main-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.modal-thumbs {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.modal-thumb {
  border: 1.5px solid rgba(54, 39, 29, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease;
}

.modal-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.modal-thumb img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 1.25rem 1.25rem 1.5rem;
}

.modal-title {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

.modal-description {
  margin: 0 0 1.1rem;
  color: #3b3228;
  line-height: 1.7;
}

.modal-specs {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(54, 39, 29, 0.12);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.55rem 0.9rem;
}

.modal-specs dt {
  color: #6d645c;
  font-weight: 500;
}

.modal-specs dd {
  margin: 0;
}