@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #252b25;
  background: #fff;
  font-synthesis: none
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

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

h1,
h2,
h3 {
  font-weight: 500
}

h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.1;
  letter-spacing: -.04em
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em
}

h3 {
  font-size: 21px
}

p {
  line-height: 1.75
}

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

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

button:disabled {
  cursor: not-allowed;
  opacity: .45
}

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

.page {
  min-height: 65vh
}

.announcement {
  background: #5a6d57;
  color: white;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase
}

.header {
  height: 86px;
  padding: 0 max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ece6;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10
}

.brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 35px;
  letter-spacing: -.07em;
  color: #52644e
}

.brand span {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  letter-spacing: -.065em;
  font-weight: 500;
  margin-left: 4px
}

.brand i {
  font-family: Arial, sans-serif;
  vertical-align: top;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0;
  margin-left: 4px
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em
}

.nav a:hover,
.nav a.active {
  color: #5a6d57;
  border-bottom: 1px solid #5a6d57
}

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

.icon-button {
  border: none;
  background: none;
  padding: 4px;
  display: flex;
  align-items: center
}

.mobile {
  display: none
}

.container {
  max-width: 1300px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px
}

.section {
  padding-top: 75px;
  padding-bottom: 90px
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px
}

.section-top h1,
.section-top h2 {
  margin-bottom: 0
}

.eyebrow {
  font-size: 10px;
  color: #71816c;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .23em;
  display: inline-block;
  margin-bottom: 18px
}

.muted {
  color: #81877d;
  font-size: 13px
}

.breadcrumbs {
  font-size: 12px;
  color: #899087;
  margin-bottom: 45px
}

.breadcrumbs a {
  text-decoration: underline
}

.button {
  background: #5a6d57;
  border: 1px solid #5a6d57;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  padding: 14px 26px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .2s
}

.button:hover {
  background: #435340
}

.button:disabled {
  opacity: .5
}

.button.wide {
  width: 100%
}

.button.disabled {
  pointer-events: none;
  opacity: .4
}

.outline-button {
  background: #fff;
  border: 1px solid #5a6d57;
  color: #5a6d57;
  padding: 12px 16px
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: #52644e
}

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

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0f2ef
}

.hero-copy {
  padding: clamp(55px, 8vw, 125px) 9vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.hero h1 {
  font-size: clamp(50px, 6vw, 94px);
  line-height: 1.05;
  margin: 10px 0 25px
}

.hero em,
.hero-art em,
.feature-art em,
.auth-art em {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400
}

.hero-copy p {
  font-size: 14px;
  color: #737d72;
  max-width: 430px;
  margin-bottom: 31px
}

.hero-note {
  font-size: 9px;
  letter-spacing: .2em;
  color: #9aa397;
  margin-top: auto;
  padding-top: 38px
}

.hero-art {
  background: linear-gradient(145deg, #a8b4a0, #d7d7c5 52%, #889b84);
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.hero-art:before {
  content: '';
  position: absolute;
  width: 75%;
  height: 90%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .4);
  transform: rotate(-14deg)
}

.hero-art>span {
  position: absolute;
  right: 28px;
  top: 30px;
  font-size: 10px;
  letter-spacing: .2em;
  color: #fff
}

.hero-art-inner {
  text-align: center;
  color: #f8f8f1;
  position: relative
}

.hero-art-inner svg {
  margin: auto
}

.hero-art-inner p {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(55px, 6vw, 100px);
  line-height: .95;
  margin-top: 16px
}

.hero-art-inner em {
  font-weight: 400
}

.section:not(.container) {
  max-width: 1300px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 38px
}

.chip {
  padding: 12px 25px;
  border: 1px solid #d4dbd1;
  background: white;
  color: #5a6d57;
  letter-spacing: .13em;
  font-size: 11px;
  text-transform: uppercase
}

.chip.active {
  background: #5a6d57;
  color: white;
  border-color: #5a6d57
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 22px
}

.product-image {
  display: block;
  background: #f0f1ed;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative
}

.product-image img,
.detail-photo>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s
}

.product-image:hover img {
  transform: scale(1.035)
}

.missing-image {
  height: 100%;
  width: 100%;
  display: flex;
  gap: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ba89b;
  background: linear-gradient(145deg, #eeefe7, #d8ded5)
}

.missing-image span {
  font-family: serif;
  font-size: 12px;
  letter-spacing: .3em
}

.product-badge {
  position: absolute;
  left: 15px;
  top: 15px;
  background: #fff;
  padding: 8px 10px;
  font-size: 9px;
  letter-spacing: .13em
}

.product-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px
}

.product-caption strong {
  font-size: 13px;
  font-weight: 600
}

.product-caption small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #929890
}

.product-caption .price {
  white-space: nowrap
}

.swatches {
  display: flex;
  gap: 6px;
  margin-top: 13px
}

.swatches span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #ddd
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  background: #f0f2ef
}

.feature-art {
  background: #b5bda9;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center
}

.feature-art-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 1;
  color: #f9fbf4
}

.feature-copy {
  align-self: center;
  padding: 80px clamp(45px, 8vw, 140px)
}

.feature-copy p {
  font-size: 14px;
  color: #667364;
  max-width: 410px;
  margin-bottom: 32px
}

.values {
  max-width: 1200px;
  margin: auto;
  padding: 100px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center
}

.values svg {
  margin: auto auto 23px;
  color: #788e73
}

.values h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px
}

.values p {
  font-size: 13px;
  color: #888;
  line-height: 1.6
}

.impact {
  text-align: center;
  padding: 110px 20px;
  background: #e9eee6
}

.impact .impact-number {
  font-size: 105px;
  font-family: 'DM Serif Display', serif;
  color: #5a6d57;
  line-height: 1.1
}

.impact-number span {
  font-size: 32px
}

.impact p {
  color: #6a7c67
}

.footer {
  padding: 67px 8vw 20px;
  background: #414942;
  color: #f8faf6;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 36px
}

.footer-logo {
  font-size: 32px;
  font-family: 'DM Serif Display', serif
}

.footer p {
  color: #c5d0c2;
  font-size: 12px
}

.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-top: 7px
}

.footer a:not(.footer-logo) {
  display: block;
  font-size: 12px;
  color: #d4ddd3;
  margin-top: 14px
}

.copyright {
  grid-column: 1/-1;
  border-top: 1px solid #687668;
  padding-top: 25px;
  font-size: 11px;
  color: #b5c4b1
}

.shop-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: end
}

.shop-controls label:first-child {
  flex: 2
}

.shop-controls label {
  flex: 1
}

.shop-controls input,
.shop-controls select {
  margin-top: 7px
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px
}

.pagination button {
  background: none;
  border: 1px solid #ccd4c9;
  padding: 12px
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 7vw
}

.detail-photo {
  min-height: 540px;
  background: #e6e9e2
}

.detail-photo>.missing-image {
  min-height: 540px
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px
}

.detail-thumbs img {
  width: 100px;
  height: 130px;
  object-fit: cover
}

.detail-content {
  padding-top: 25px
}

.detail-content h1 {
  font-size: clamp(30px, 3vw, 48px)
}

.detail-price {
  font-size: 23px;
  padding: 14px 0 25px
}

.detail-content p {
  font-size: 14px;
  color: #7f867d
}

.selection {
  margin: 30px 0
}

.selection>strong {
  display: block;
  font-size: 12px;
  margin-bottom: 14px
}

.color-buttons,
.size-buttons,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px
}

.color-buttons button,
.size-buttons button,
.choice-row button {
  border: 1px solid #d4dbd1;
  background: white;
  padding: 13px 19px;
  font-size: 12px;
  text-transform: capitalize
}

.color-buttons button.selected,
.size-buttons button.selected,
.choice-row button.selected {
  background: #5a6d57;
  color: #fff;
  border-color: #5a6d57
}

.fit-link {
  margin: 24px 0
}

.assurance {
  border-top: 1px solid #e0e5dd;
  padding-top: 20px
}

.assurance p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px
}

.auth-page {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr
}

.auth-panel {
  width: min(440px, 90%);
  margin: 75px auto;
  padding-bottom: 70px
}

.auth-panel h1 {
  font-size: 40px
}

.auth-art {
  background: #b3bdaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff
}

.auth-art h2 {
  line-height: 1.2;
  font-size: 55px;
  font-family: 'DM Serif Display', serif
}

.auth-switch {
  font-size: 12px;
  margin-top: 23px
}

.auth-switch a {
  text-decoration: underline;
  color: #52644e
}

.google-signin {
  margin: 22px 0;
  min-height: 8px
}

form label,
label {
  font-size: 12px;
  color: #414b40;
  display: block
}

form input:not([type=checkbox]):not([type=radio]),
form textarea,
form select,
.shop-controls input,
.shop-controls select,
.voucher input {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #bbc5ba;
  outline: none;
  background: transparent;
  padding: 14px 1px;
  margin-bottom: 26px;
  font-size: 14px;
  color: #222
}

input:focus,
textarea:focus,
select:focus {
  border-color: #5a6d57 !important
}

form textarea {
  min-height: 70px;
  resize: vertical
}

form h2 {
  font-size: 25px;
  margin: 26px 0
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 15px 0 25px
}

.message {
  padding: 15px 18px;
  background: #fff3f1;
  border-left: 3px solid #ba5143;
  color: #953c36;
  font-size: 13px;
  margin: 15px 0
}

.loading,
.empty {
  padding: 70px 20px;
  text-align: center;
  color: #899487
}

.narrow {
  max-width: 520px;
  margin: auto
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr);
  gap: 65px;
  margin-top: 40px
}

.cart-row {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e5ebe2;
  padding: 22px 0
}

.cart-image {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eff0e9
}

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

.cart-item-detail {
  flex: 1
}

.cart-item-detail p {
  margin: 9px 0
}

.qty {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 15px
}

.qty button {
  border: 1px solid #d6ded3;
  background: white;
  display: flex;
  padding: 7px
}

.qty .trash {
  margin-left: 20px;
  border: none
}

.order-summary {
  padding: 28px;
  background: #f2f4ef;
  align-self: start
}

.order-summary h3 {
  margin-bottom: 26px
}

.order-summary>div:not(.voucher) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px
}

.order-summary hr {
  border: 0;
  border-top: 1px solid #cdd7c9;
  margin: 24px 0
}

.order-summary .button {
  margin: 15px 0 18px
}

.order-summary .text-link {
  display: flex;
  justify-content: center
}

.voucher {
  display: flex;
  align-items: end;
  gap: 12px
}

.voucher label {
  flex: 1
}

.voucher input {
  margin-bottom: 0
}

.voucher button {
  border: none;
  background: #5a6d57;
  color: white;
  padding: 12px
}

.payment-option {
  padding: 15px;
  background: #f7f8f5;
  margin: 8px 0
}

.payment-option input {
  margin-right: 8px
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 25px 10px;
  border-bottom: 1px solid #dce3d9
}

.order-line>div:first-child {
  flex: 1
}

.order-line p {
  font-size: 12px;
  color: #858c82;
  margin: 6px 0
}

.order-line>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px
}

.status {
  display: inline-block;
  background: #e6ebe2;
  color: #5a6d57;
  padding: 6px 10px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em
}

.order-info h2 {
  font-size: 24px;
  margin: 30px 0 14px
}

.qr {
  max-width: 260px;
  margin: 20px auto
}

.account-links {
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 35px 0 55px
}

.account-links>a {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 25px;
  border: 1px solid #dce4d9;
  font-size: 14px
}

.account-links svg:last-child {
  margin-left: auto
}

.profile {
  margin-left: 0
}

.fit-form {
  max-width: 810px;
  padding: 36px 0
}

.fit-form h3 {
  margin: 35px 0 21px
}

.fit-form h3 small {
  font-size: 12px;
  color: #9ca69a
}

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

.match {
  border: 1px solid #d8e0d6;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  gap: 20px
}

.match p {
  font-size: 13px;
  color: #6f7d6d
}

.closet-stats,
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  max-width: 650px;
  margin: 40px 0
}

.closet-stats>div,
.admin-stats>div {
  padding: 30px;
  background: #eff2ec;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.closet-stats strong,
.admin-stats strong {
  font-size: 31px;
  color: #5a6d57
}

.closet-stats span,
.admin-stats span {
  font-size: 12px
}

.passport-panel {
  background: #eff2ed;
  text-align: center;
  padding: 70px 15px;
  margin: 30px 0
}

.passport-panel svg {
  color: #5a6d57;
  margin-bottom: 25px
}

.passport-panel p {
  color: #778373
}

.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0 55px
}

.milestones>div {
  padding: 22px;
  background: #f6f7f4;
  color: #a8afa4
}

.milestones>div.unlocked {
  background: #e8eee4;
  color: #52644e
}

.milestones p {
  font-size: 12px
}

.care {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px
}

.care p {
  background: #f5f7f2;
  padding: 22px
}

.sample {
  max-width: 800px;
  overflow: auto;
  padding: 20px;
  background: #f2f4ef
}

.return-feature {
  margin: 45px 0
}

.return-feature .feature-art {
  min-height: 310px
}

.return-feature .feature-art-text {
  font-size: 62px
}

.success-panel {
  padding: 45px;
  background: #ebf2e8;
  color: #52644e
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
  max-width: none
}

.admin-stats strong {
  font-size: 25px
}

.admin-detail {
  padding: 28px;
  background: #f0f2ef;
  margin: 25px 0
}

.admin-detail button {
  margin-right: 12px;
  margin-bottom: 10px
}

.success-text {
  color: #326e3a;
  font-size: 12px
}

.error-text {
  color: #bc423a;
  font-size: 12px
}

@media(max-width:900px) {
  .nav {
    gap: 14px;
    font-size: 10px
  }

  .header {
    padding: 0 22px
  }

  .hero-copy {
    padding: 75px 6vw
  }

  .hero h1 {
    font-size: 60px
  }

  .product-grid {
    gap: 26px 15px
  }

  .cart-layout {
    gap: 30px
  }

  .feature-copy {
    padding: 55px
  }

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

@media(max-width:680px) {
  .mobile {
    display: flex
  }

  .desktop {
    display: none
  }

  .announcement {
    font-size: 8px
  }

  .header {
    height: 70px
  }

  .brand {
    font-size: 29px
  }

  .brand span {
    font-size: 19px
  }

  .header-actions {
    gap: 14px
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    min-height: 320px;
    background: #fff;
    flex-direction: column;
    padding: 36px;
    align-items: flex-start;
    gap: 25px;
    box-shadow: 0 15px 25px #0001
  }

  .nav.open {
    display: flex
  }

  .container {
    padding-left: 18px;
    padding-right: 18px
  }

  .section {
    padding-top: 48px;
    padding-bottom: 62px
  }

  .section:not(.container) {
    padding-left: 18px;
    padding-right: 18px
  }

  .hero {
    display: flex;
    flex-direction: column
  }

  .hero-copy {
    padding: 60px 26px;
    min-height: 415px
  }

  .hero h1 {
    font-size: 60px
  }

  .hero-art {
    min-height: 340px
  }

  .hero-art-inner p {
    font-size: 66px
  }

  .hero-art-inner svg {
    width: 60px
  }

  .section-top {
    align-items: flex-start
  }

  .section-top .text-link {
    font-size: 10px
  }

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

  .product-caption {
    flex-direction: column;
    gap: 6px
  }

  .product-caption .price {
    font-size: 12px
  }

  .product-image {
    aspect-ratio: 3/4
  }

  .feature-split {
    grid-template-columns: 1fr
  }

  .feature-art {
    min-height: 320px
  }

  .feature-copy {
    padding: 55px 25px
  }

  .values {
    grid-template-columns: 1fr;
    padding: 65px 35px;
    gap: 42px
  }

  .impact {
    padding: 75px 20px
  }

  .impact .impact-number {
    font-size: 84px
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 50px 22px 20px
  }

  .footer>div:first-child {
    grid-column: 1/-1
  }

  .shop-controls {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .shop-controls label:first-child {
    grid-column: 1/-1
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 15px
  }

  .detail-photo {
    min-height: 380px
  }

  .detail-photo>.missing-image {
    min-height: 380px
  }

  .detail-content {
    padding-top: 12px
  }

  .auth-page {
    grid-template-columns: 1fr
  }

  .auth-art {
    display: none
  }

  .auth-panel {
    margin: 45px auto
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .cart-image {
    width: 95px
  }

  .order-summary {
    margin-top: 20px
  }

  .account-links {
    grid-template-columns: 1fr
  }

  .form-two,
  .form-three {
    grid-template-columns: 1fr 1fr
  }

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

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

  .admin-stats strong {
    font-size: 22px
  }

  .milestones {
    grid-template-columns: 1fr 1fr
  }

  .care {
    grid-template-columns: 1fr
  }

  .order-line {
    flex-wrap: wrap
  }

  .impact h2 {
    font-size: 30px
  }
}

/* v0.4 — catalog preview and connected storefront refinements */
:focus-visible {
  outline: 3px solid #5a6d57;
  outline-offset: 3px
}

.preview-banner {
  background: #f3edcf;
  color: #554c30;
  text-align: center;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em
}

.nav a {
  display: inline-flex;
  gap: 6px;
  align-items: center
}

.nav-lock {
  opacity: .52
}

.header-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 16px 30px #20302325;
  padding: 25px max(5vw, 24px);
  z-index: 15
}

.header-search-row {
  display: flex;
  align-items: center;
  gap: 16px
}

.header-search-row input {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid #cbd5c8;
  background: #fff
}

.header-search-row .button {
  flex-shrink: 0
}

.product-card {
  position: relative
}

.wishlist-heart {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e5dd;
  background: #fff;
  color: #5a6d57
}

.wishlist-heart.liked {
  color: #d32f2f
}

.card-inline-error {
  display: block;
  color: #bf372a;
  font-size: 12px;
  margin-top: 7px
}

.mobile-filter-button {
  display: none
}

.shop-controls {
  flex-wrap: wrap
}

.shop-controls label:first-child {
  min-width: 200px
}

.shop-controls label {
  min-width: 160px
}

.shop-controls .filter-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 12px
}

.shop-controls .filter-actions .button {
  min-height: 42px
}

.active-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 27px
}

.filter-token {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  background: #eff2ed;
  border: 1px solid #cdd7c9;
  padding: 8px 11px;
  font-size: 12px;
  color: #435340;
  text-transform: capitalize
}

.pagination {
  align-items: center;
  flex-direction: column
}

.pagination .outline-button {
  display: flex;
  align-items: center;
  gap: 10px
}

.pagination span {
  font-size: 12px;
  color: #677263
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #1c281c99;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px
}

.modal-card {
  background: #fff;
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 55px);
  position: relative;
  box-shadow: 0 18px 100px #0002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px
}

.modal-card h2 {
  margin-bottom: 0
}

.modal-card p {
  font-size: 14px;
  color: #687567
}

.modal-card .text-link {
  background: transparent;
  border: 0;
  padding: 8px 0
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px
}

.help-page>p {
  max-width: 740px
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 45px 0
}

.help-grid>div {
  background: #f1f4ef;
  padding: 30px
}

.help-grid h2 {
  font-size: 23px
}

.help-grid p {
  font-size: 13px;
  color: #687567
}

.faq-list {
  max-width: 850px;
  margin: 40px 0
}

.faq-list details {
  border-bottom: 1px solid #d8e1d5;
  padding: 23px 0
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px
}

.faq-list summary::-webkit-details-marker {
  display: none
}

.faq-list details[open] summary svg {
  transform: rotate(45deg)
}

.faq-list details p {
  padding: 16px 22px 0 0;
  font-size: 14px;
  color: #687567
}

@media(max-width:900px) {
  .help-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:680px) {
  .mobile-filter-button {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin: 18px 0;
    width: 100%
  }

  .shop-controls {
    display: none
  }

  .shop-controls.open {
    display: grid;
    grid-template-columns: 1fr;
    background: #f5f7f3;
    padding: 20px;
    gap: 0
  }

  .shop-controls.open label,
  .shop-controls.open label:first-child {
    grid-column: 1/-1
  }

  .header-search-row {
    gap: 8px
  }

  .header-search-row .button {
    padding: 12px;
    min-height: 43px
  }

  .header-search-row .button svg {
    display: none
  }

  .header-search {
    padding: 20px
  }

  .wishlist-heart {
    width: 34px;
    height: 34px;
    top: 8px;
    right: 8px
  }

  .help-grid {
    grid-template-columns: 1fr
  }

  .modal-card {
    max-height: 90vh;
    overflow-y: auto
  }

  .footer>div {
    min-width: 0
  }
}

.detail-thumbs button {
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer
}

.detail-thumbs button.active {
  border-color: #5a6d57
}

.detail-thumbs img {
  width: 88px;
  height: 112px;
  object-fit: cover
}

.size-title {
  margin-bottom: 12px;
  align-items: center
}

.size-title strong {
  font-size: 12px
}

.size-title .text-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11px;
  text-decoration: underline
}

.product-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  margin: 20px 0 25px;
  min-height: 54px
}

.product-secondary-actions .wishlist-heart {
  position: static;
  flex-shrink: 0
}

.product-accordions {
  margin: 20px 0 26px;
  border-top: 1px solid #dde6d9
}

.product-accordions details {
  border-bottom: 1px solid #dde6d9;
  padding: 16px 0
}

.product-accordions summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}

.product-accordions summary::-webkit-details-marker {
  display: none
}

.product-accordions details[open] summary svg {
  transform: rotate(45deg)
}

.product-accordions details p {
  font-size: 12px;
  padding: 9px 0;
  margin: 0
}

.size-modal {
  max-width: 680px;
  width: 100%
}

.size-table-scroll {
  width: 100%;
  overflow-x: auto
}

.size-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap
}

.size-table th,
.size-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #dce5da
}

.size-table th {
  background: #eef2ea;
  color: #52644e
}

.return-steps {
  font-size: 14px;
  line-height: 2
}

.receipt-viewer {
  padding: 20px;
  background: #fff;
  border: 1px solid #d7e1d2;
  margin: 15px 0
}

.receipt-viewer h3 {
  font-size: 16px
}

.receipt-image {
  max-width: 460px;
  max-height: 560px;
  object-fit: contain;
  margin: 18px 0;
  border: 1px solid #cdd7c9
}

.admin-tags {
  margin: 32px 0;
  padding: 24px;
  background: #fff
}

.labels-print {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 15px;
  margin: 24px 0
}

.qr-label {
  border: 1px solid #647c5e;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  break-inside: avoid
}

.qr-label>strong {
  font-size: 11px;
  letter-spacing: .07em
}

.qr-label span,
.qr-label small {
  font-size: 10px
}

.qr-label img {
  width: 155px;
  height: 155px
}

.qr-label em {
  color: #b43f36;
  font-weight: bold
}

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

@media print {

  .announcement,
  .header,
  .footer,
  .page>* {
    visibility: hidden !important
  }

  .admin-tags,
  .admin-tags .labels-print,
  .admin-tags .labels-print * {
    visibility: visible !important
  }

  .admin-tags {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0
  }

  .admin-tags>h3,
  .admin-tags>p,
  .admin-tags>.label-actions {
    display: none !important
  }

  .labels-print {
    grid-template-columns: repeat(3, 1fr)
  }

  .qr-label {
    border: 1px solid black;
    page-break-inside: avoid
  }
}

/* Admin v0.5 */
.admin-workspace {
  margin-top: 24px
}

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

.admin-list {
  max-height: 500px;
  overflow-y: auto
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 18px 0
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.admin-form .checkbox-label {
  flex-direction: row;
  align-items: center
}

.admin-form textarea {
  min-height: 100px
}

.admin-subsection {
  border-top: 1px solid var(--border, #d1d9cf);
  padding: 24px 0;
  margin-top: 24px
}

.admin-variant {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #d1d9cf
}

.admin-variant label {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.admin-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0
}

.admin-image-list>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px
}

.admin-image-list img {
  width: 120px;
  height: 145px;
  object-fit: cover
}

.admin-success {
  border-left: 4px solid #5a6d57;
  padding: 8px 12px;
  background: #f0f2ef
}

.admin .chips {
  flex-wrap: wrap
}

@media(max-width:700px) {
  .admin-variant {
    grid-template-columns: 1fr 1fr
  }

  .admin-variant .outline-button {
    grid-column: 1/-1
  }

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

/* Admin size-chart editing: compact on desktop, single column on phones. */
.admin-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.admin-size-pair {
  padding: 12px;
  border: 1px solid var(--border, #D1D9CF);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-size-pair>span {
  grid-column: 1 / -1;
  text-transform: capitalize;
  font-weight: 600;
}

.admin-size-pair label {
  display: block;
  min-width: 0;
}

.admin-size-pair input {
  width: 100%;
  min-width: 0;
}

.admin-detail .admin-form input:not([type=checkbox]),
.admin-detail .admin-form select,
.admin-workspace>.admin-form input:not([type=checkbox]),
.admin-workspace>.admin-form select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #bbc5ba;
  padding: 12px 2px;
  background: transparent;
  color: #252b25;
}

@media(max-width:640px) {
  .admin-size-grid {
    grid-template-columns: 1fr
  }

  .admin-size-pair {
    grid-template-columns: 1fr 1fr
  }
}


.mvp-notice {
    background: #ffe5e5;
    border: 3px solid #c62828;
    border-radius: 10px;
    padding: 16px 24px;
    margin: 16px auto;
    width: calc(100% - 32px);
    max-width: 1100px;
    box-sizing: border-box;
    text-align: center;
    color: #a61b1b;
    font-family: Arial, sans-serif;
}

.mvp-notice-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mvp-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
