/* ==========================================================================
   VERDANO — design system
   German-precision minimalism: bone paper, deep forest green, copper accent.
   ========================================================================== */

:root {
  --paper: #f5f2eb;
  --paper-warm: #f0ece1;
  --white: #ffffff;
  --ink: #14181a;
  --ink-soft: #4e524f;
  --muted: #5a5e5c;
  --faint: #8a8d88;
  --line: #dcd6c8;
  --line-soft: #e4dfd3;
  --green: #1b3529;
  --green-deep: #14261c;
  --green-tint: #e4eee7;
  --copper: #a9825a;

  --serif: "Cormorant", "Cormorant Garamond", "Times New Roman", Georgia, "Songti SC", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", sans-serif;

  --gutter: 64px;
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--green);
  color: #fff;
}

/* ------------------------------------------------------------------ type */

.serif {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
}

.eyebrow--muted {
  color: var(--faint);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.h-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
}

.lede {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 52ch;
}

.small {
  font-size: 12.5px;
  color: var(--faint);
}

/* --------------------------------------------------------------- layout  */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section--tight {
  padding: 72px 0;
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: var(--white);
}

.section--green {
  background: var(--green-deep);
  color: #fff;
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head__copy .h-section {
  max-width: 22ch;
}

.section-head--dark .h-section {
  color: #fff;
}

.section-head--dark .eyebrow {
  color: var(--copper);
}

.rule-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
  white-space: nowrap;
}

.rule-link:hover {
  border-color: var(--ink);
  gap: 14px;
}

.rule-link svg {
  flex: none;
}

/* --------------------------------------------------------------- header  */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand__word {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.locale {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
}

.icon-btn:hover {
  background: rgba(20, 24, 26, 0.06);
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-deep);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: #000;
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--green-deep);
}

.btn--white:hover {
  background: #e9e6dc;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.text-link {
  color: var(--copper);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-color: var(--copper);
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-block: 76px 84px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 620px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.1vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 50ch;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__trust {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.hero__media {
  position: relative;
}

.hero__image {
  aspect-ratio: 640 / 540;
  overflow: hidden;
  background: #e8e3d8;
  border-radius: 2px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

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

.spec-chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: #fff;
  padding: 18px 22px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.22);
  max-width: calc(100% - 48px);
}

.spec-chip__title {
  font-size: 15px;
  font-weight: 600;
}

.spec-chip__meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* ----------------------------------------------------------- trust strip */

.trust-strip {
  background: var(--green);
  color: #fff;
}

.trust-strip__inner {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item svg {
  flex: none;
  opacity: 0.85;
}

.trust-item__title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.trust-item__meta {
  font-size: 11.5px;
  color: #9faea4;
}

/* ------------------------------------------------------------ categories */

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

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  group: card;
}

.cat-card__media {
  position: relative;
  aspect-ratio: 313 / 400;
  overflow: hidden;
  border-radius: 2px;
  background: #e4dfd3;
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.cat-card:hover .cat-card__media img {
  transform: scale(1.04);
}

.cat-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cat-card__name {
  font-size: 17px;
  font-weight: 600;
  transition: color 0.2s;
}

.cat-card:hover .cat-card__name {
  color: var(--green);
}

.cat-card__count {
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

.cat-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ------------------------------------------------------------- products  */

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: all 0.22s var(--ease);
}

.filter-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 20px;
  row-gap: 44px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.product-card__media {
  position: relative;
  aspect-ratio: 313 / 330;
  overflow: hidden;
  border-radius: 2px;
  background: #f0ede5;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 24, 26, 0.9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}

.product-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 600;
}

.product-card__price {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
}

.product-card__meta {
  font-size: 12px;
  color: var(--faint);
  margin-top: -6px;
}

/* empty states */

.empty {
  border: 1px dashed var(--line);
  padding: 64px 24px;
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
  border-radius: 2px;
}

/* ------------------------------------------------------------------- CTA */

.cta-band__inner {
  padding: 108px var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-band__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  color: #fff;
  max-width: 18ch;
}

.cta-band__sub {
  font-size: 15px;
  line-height: 1.7;
  color: #a9b5ac;
  max-width: 56ch;
}

.cta-band__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-band__note {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #7e8c84;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--paper-warm);
  padding: 84px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}

.footer-brand__text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-col__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 2px;
}

.footer-col a,
.footer-col span {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #e2dccd;
  text-align: center;
  user-select: none;
  padding: 12px 0 28px;
  overflow: hidden;
}

.footer-rule {
  height: 1px;
  background: #d5cebd;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #7c7f7a;
}

.footer-bottom__links {
  display: flex;
  gap: 22px;
}

/* ---------------------------------------------------------- breadcrumb   */

.breadcrumb {
  padding: 22px 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------- listing   */

.page-head {
  padding: 12px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 70ch;
}

.listing {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 96px;
  align-items: start;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 116px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--ink);
}

.filter-group button,
.filter-group a {
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.filter-group button:hover,
.filter-group a:hover {
  color: var(--ink);
}

.filter-group button.is-active,
.filter-group a.is-active {
  color: var(--green);
  font-weight: 600;
}

.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.is-active {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar__count {
  font-size: 13px;
  color: var(--muted);
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 500;
  background: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2314181A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

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

.results-grid .product-card__media {
  aspect-ratio: 327 / 320;
}

/* ------------------------------------------------------------------ PDP  */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 116px;
}

.gallery__main {
  aspect-ratio: 760 / 560;
  overflow: hidden;
  border-radius: 2px;
  background: #f0ede5;
}

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

.gallery__thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery__thumb {
  width: 118px;
  height: 92px;
  border: 1px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  background: #f0ede5;
  padding: 0;
  transition: border-color 0.2s;
}

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

.gallery__thumb.is-active {
  border-color: var(--ink);
}

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}

.pdp__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.rating__stars {
  display: flex;
  gap: 3px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-row__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.price-row__note {
  font-size: 12px;
  color: var(--faint);
}

.pdp__rule {
  height: 1px;
  background: var(--line-soft);
}

.option-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 10px;
  display: block;
}

.swatch-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.swatch--lg {
  width: 28px;
  height: 28px;
}

.swatch--lg.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink);
  width: 30px;
  height: 30px;
}

.size-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-pill {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.size-pill:hover {
  border-color: var(--ink);
}

.size-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pdp__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp__ctas .btn {
  flex: 1 1 auto;
}

.pdp__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.pdp__note svg {
  flex: none;
  margin-top: 2px;
}

.pdp__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.pdp__desc p + p {
  margin-top: 14px;
}

/* spec table */

.spec-table {
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 22px;
  font-size: 13px;
}

.spec-row:nth-child(odd) {
  background: #f7f5ef;
}

.spec-row__label {
  color: var(--faint);
}

.spec-row__value {
  font-weight: 500;
}

/* ------------------------------------------------------------------ admin */

.admin {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background: #f1f0eb;
}

.admin-sidebar {
  background: var(--green-deep);
  color: #fff;
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
}

.admin-brand__word {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 500;
  color: #93a396;
  background: none;
  border: 0;
  text-align: left;
  transition: color 0.2s, background 0.2s;
  width: 100%;
}

.admin-nav__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav__item.is-active {
  background: #20402f;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--copper);
}

.admin-nav__badge {
  margin-left: auto;
  background: var(--copper);
  color: var(--green-deep);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
}

.admin-sidebar__foot {
  margin-top: auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11.5px;
  color: #6f8177;
}

.admin-sidebar__foot a:hover {
  color: #fff;
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid #e3e1da;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.admin-crumb {
  font-size: 12.5px;
  color: var(--faint);
}

.admin-body {
  padding: 26px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-sub {
  font-size: 13px;
  color: var(--faint);
  margin-top: 6px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e3e1da;
  border-radius: 2px;
  padding: 18px 20px;
}

.stat-card__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stat-card__label {
  font-size: 12px;
  color: var(--faint);
  margin-top: 4px;
}

.card {
  background: #fff;
  border: 1px solid #e3e1da;
  border-radius: 2px;
  overflow: hidden;
}

.card--pad {
  padding: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--faint);
  background: #f7f6f2;
  padding: 13px 20px;
  border-bottom: 1px solid #e3e1da;
  white-space: nowrap;
}

.table td {
  padding: 14px 20px;
  border-bottom: 1px solid #efeee8;
  font-size: 13px;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #fbfaf7;
}

.table__name {
  font-weight: 500;
}

.table__sku {
  font-size: 11.5px;
  color: var(--faint);
}

.table__actions {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

.link-action {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--copper);
}

.link-action:hover {
  text-decoration: underline;
}

.link-action--danger {
  color: #a4462f;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
}

.badge--published {
  background: var(--green-tint);
  color: #2c5940;
}

.badge--draft {
  background: #eceae4;
  color: #6b6f6b;
}

.badge--new {
  background: #f3ead9;
  color: #8a6a2f;
}

.thumb-sm {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  object-fit: cover;
  background: #f0ede5;
  flex: none;
}

/* admin forms */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}

.field__hint {
  font-size: 11.5px;
  color: var(--faint);
}

.input,
.textarea,
.select-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dad7ce;
  border-radius: 2px;
  background: #fff;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.textarea:focus,
.select-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 53, 41, 0.08);
}

.textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.65;
}

.textarea--tall {
  min-height: 170px;
}

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

.input-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

/* dropzone */

.dropzone {
  border: 1px dashed #c9c2b2;
  border-radius: 2px;
  background: #faf9f5;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--green);
  background: #f5f8f5;
}

.dropzone__text {
  font-size: 12px;
  color: var(--faint);
}

.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 2px;
  overflow: hidden;
  background: #f0ede5;
  border: 1px solid transparent;
}

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

.thumb__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 24, 26, 0.78);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.thumb--add {
  border: 1px dashed #dad7ce;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--faint);
  background: #faf9f5;
}

/* repeatable rows */

.repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 34px;
  gap: 10px;
  align-items: center;
}

.repeat-row--spec {
  grid-template-columns: 150px minmax(0, 1fr) 34px;
}

.repeat-row--colour {
  grid-template-columns: minmax(0, 1fr) 96px 34px;
}

.repeat-del {
  width: 34px;
  height: 34px;
  border: 1px solid #dad7ce;
  background: #fff;
  border-radius: 2px;
  color: #a4462f;
  font-size: 15px;
  line-height: 1;
}

.repeat-del:hover {
  border-color: #a4462f;
}

.add-row-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--copper);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 0;
}

.add-row-btn:hover {
  text-decoration: underline;
}

/* login */

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 3px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-card .brand__word {
  letter-spacing: 0.18em;
  font-size: 16px;
}

/* modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 18, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--paper);
  border-radius: 3px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  padding: 40px;
  position: relative;
  transform: translateY(10px);
  transition: transform 0.3s var(--ease);
}

.modal-backdrop.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--faint);
  border-radius: 50%;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.modal h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.modal p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

/* toast */

.toast-host {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  background: #8f2f1c;
}

/* mobile nav */

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 6px;
}

.mobile-menu {
  display: none;
}

/* ---------------------------------------------------------------- misc  */

.sticky-bar {
  position: sticky;
  top: 92px;
}

.hr {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 0;
}

.mt-auto {
  margin-top: auto;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1200px) {
  :root {
    --gutter: 40px;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid > *:nth-child(4n) {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 64px;
  }

  .hero__media {
    order: -1;
  }

  .hero__image {
    aspect-ratio: 16 / 10;
  }

  .trust-strip__inner {
    height: auto;
    padding-block: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .filters {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .gallery {
    position: static;
  }

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

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

  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 20px;
    gap: 20px;
    overflow-x: auto;
  }

  .admin-nav {
    flex-direction: row;
  }

  .admin-sidebar__foot {
    display: none;
  }

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

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .header-actions .locale,
  .header-actions .search-btn {
    display: none;
  }

  .site-header__inner {
    height: 72px;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: 8px 0 16px;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-menu a {
    padding: 13px var(--gutter);
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .section {
    padding: 64px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-band__inner {
    padding: 72px var(--gutter);
  }

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

  .modal {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .hero__title {
    font-size: 40px;
  }

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

  .product-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .stats-row,
  .input-row,
  .input-row--3 {
    grid-template-columns: 1fr;
  }

  .repeat-row,
  .repeat-row--spec,
  .repeat-row--colour {
    grid-template-columns: 1fr 1fr 34px;
  }

  .footer-wordmark {
    font-size: 52px;
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .admin-body {
    padding: 18px 16px 40px;
  }

  .table th:nth-child(n + 3),
  .table td:nth-child(n + 3) {
    display: none;
  }
}
