/* ==========================================================
   BELVIDA — CATALOG
========================================================== */

:root {
  --forest: #173f31;
  --forest-deep: #0f2d22;
  --green: #287456;
  --sage: #d9e7d8;
  --mint: #eef4ec;
  --cream: #fffaf2;
  --sand: #f3eadc;
  --muted: #61796c;
  --line: #d8ddd4;
  --white: #ffffff;
  --black: #101311;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--forest);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Announcement */

.notice {
  padding: 8px 20px;
  background: var(--forest-deep);
  color: var(--white);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.notice a {
  margin-left: 12px;
  color: var(--white);
  text-decoration: underline;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mint);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.brand b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.cartnav {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.cart-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-size: 10px;
}

.menu {
  display: none;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
}

/* Catalog heading */

.catalog-wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.catalog-heading {
  padding: 42px 0 12px;
  background: var(--white);
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catalog-heading h1 {
  margin: 7px 0 5px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.catalog-heading > .catalog-wrap > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Search / sort / filters */

.catalog-tools {
  margin: 20px 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.searchbox {
  flex: 1;
}

.searchbox input,
.catalog-tools select {
  height: 38px;
  border: 1px solid #dde5df;
  border-radius: 7px;
  background: var(--white);
  color: var(--forest);
  font-size: 12px;
}

.searchbox input {
  width: 100%;
  padding: 0 12px;
}

.catalog-tools select {
  padding: 0 30px 0 10px;
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filter {
  padding: 6px 12px;
  border: 1px solid #dfe6e1;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.filter.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

/* Catalog cards */

.catalog-section {
  padding: 12px 0 72px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.catalog-card {
  min-width: 0;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-img {
  height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #eaf3ea;
}

.catalog-card:nth-child(6n + 2) .catalog-img {
  background: #e6e8ed;
}

.catalog-card:nth-child(6n + 3) .catalog-img {
  background: #efe4df;
}

.catalog-card:nth-child(6n + 4) .catalog-img {
  background: #e5eef1;
}

.catalog-card:nth-child(6n + 5) .catalog-img {
  background: #ecebd9;
}

.catalog-card:nth-child(6n + 6) .catalog-img {
  background: #ede1e8;
}

.catalog-img img {
  display: block;

  width: auto;
  height: 245px;

  max-width: 88%;
  max-height: 88%;

  object-fit: contain;
  object-position: center;

  transition: transform 0.2s ease;
}

.catalog-card:hover .catalog-img img {
  transform: scale(1.02);
}

.catalog-meta {
  min-height: 76px;
  padding: 9px 1px 7px;
}

.catalog-cat {
  color: #718378;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-title-row {
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.catalog-title-row h3 {
  margin: 0;
  min-width: 0;
  max-width: 74%;
  color: #162219;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.product-size-line {
  display: inline-block;
}

.catalog-price {
  flex: 0 0 auto;
  color: #162219;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.view {
  width: 100%;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0d0f0e;
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.view:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.empty {
  margin-top: 20px;
  padding: 45px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

/* Footer */

footer {
  padding: 48px 0 18px;
  background: var(--forest);
  color: var(--white);
}

.footergrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 34px;
}

.footergrid h4 {
  margin: 0 0 11px;
  font-size: 13px;
}

.footergrid a:not(.brand) {
  display: block;
  margin: 6px 0;
  color: #d4e3da;
  font-size: 12px;
}

.footergrid p {
  max-width: 310px;
  color: #bfd0c5;
  font-size: 12px;
}

.footbrand .mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb7a8;
  font-size: 11px;
}

/* Responsive */

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .nav nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
  }

  .nav nav.open {
    display: flex;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 680px) {
  .catalog-wrap,
  .wrap {
    width: min(100% - 24px, 1040px);
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 11px;
  }

  .catalog-img {
    height: 215px;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-tools select {
    width: 100%;
  }

  .catalog-title-row {
    display: block;
  }

  .catalog-title-row h3 {
    max-width: none;
  }

  .catalog-price {
    display: block;
    margin-top: 4px;
  }

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

/* Prevent serif ligature collisions */
h1, h2, h3, h4, .brand b, .mark {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}


/* ==========================================================
   DESKTOP NAV — CENTER LINKS / CART RIGHT
========================================================== */
@media (min-width: 901px) {
  .nav {
    position: relative;
  }

  .nav nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: none;
    pointer-events: none;
  }

  .nav nav a {
    position: relative;
    pointer-events: auto;
  }

  .nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: var(--green, #287456);
    transition: width 0.2s ease;
  }

  .nav nav a:hover::after {
    width: 100%;
  }

  .nav nav .cartnav {
    position: absolute;
    right: 0;
  }

  .nav nav .cartnav::after {
    display: none;
  }
}

.footer-admin-link{color:inherit;text-decoration:none;opacity:.75;margin-left:10px}.footer-admin-link:hover{opacity:1}
