:root {
  --bg: #e4eadf;
  --panel: #f7f4ec;
  --text: #24312d;
  --muted: #677261;
  --line: #d8ded1;
  --gold: #c8a65c;
  --gold-deep: #9f7f3f;
  --green: #a6b89d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: linear-gradient(180deg, #e1e8dd 0%, #e8eee4 100%);
}

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

button {
  font: inherit;
}

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

.container {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  background: #f8f7f4;
  border-bottom: 1px solid var(--line);
}

.header-main {
  min-height: 104px;
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

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

.brand-logo {
  display: block;
  width: 146px;
  height: auto;
}

.purchase-progress {
  display: grid;
  gap: 8px;
  padding: 10px 0 8px;
}

.progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  min-height: 52px;
  padding-top: 10px;
}

.progress-track::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 36px;
  right: 36px;
  height: 4px;
  border-radius: 999px;
  background: #dfded5;
}

.progress-fill {
  position: absolute;
  top: 20px;
  left: 36px;
  width: 0;
  max-width: calc(100% - 72px);
  height: 4px;
  border-radius: 999px;
  background: #95a98b;
  animation: progress-grow 2.4s ease-out forwards;
}

.progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: #445449;
}

.step-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d6d3c9;
  background: #fff;
  transform: scale(0.7);
  opacity: 0;
  animation: step-pop 0.45s ease-out forwards;
}

.progress-step:nth-child(2) .step-icon {
  animation-delay: 0.25s;
}

.progress-step:nth-child(3) .step-icon {
  animation-delay: 0.8s;
}

.progress-step:nth-child(4) .step-icon {
  animation-delay: 1.35s;
}

.step-icon i {
  font-size: 0.72rem;
  color: #8ba089;
}

.progress-step.reached .step-icon {
  border-color: #9db3a2;
  background: #f0f5ee;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.progress-copy {
  margin: 0;
  color: #59645b;
  font-size: 0.95rem;
}

.progress-copy strong {
  color: #2e3b31;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-cart-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 40;
  width: 430px;
  display: none;
  padding: 48px 18px 18px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(74, 91, 68, 0.18);
}

.mini-cart-dropdown::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 46px;
  width: 16px;
  height: 16px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.mini-cart-dropdown::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 0;
  width: 100%;
  height: 18px;
}

.header-actions.is-mini-cart-open .mini-cart-dropdown {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 84px;
  z-index: 45;
  width: 230px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(74, 91, 68, 0.18);
}

.account-dropdown::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 30px;
  width: 16px;
  height: 16px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.header-actions.is-account-open .account-dropdown {
  display: grid;
  gap: 6px;
}

.account-dropdown a,
.account-dropdown button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4e5d50;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: #f5f3ed;
}

.account-dropdown-note {
  margin: 4px 8px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.mobile-account-section {
  display: none;
}

.mini-cart-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f5f3ed;
  color: var(--text);
  cursor: pointer;
}

.mini-cart-items {
  display: grid;
  gap: 12px;
  min-height: 0;
  max-height: min(52vh, 430px);
  margin-bottom: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mini-cart-item.is-unavailable {
  padding: 8px;
  border: 1px solid #ead7b8;
  border-radius: 8px;
  background: #fffaf0;
}

.mini-cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-cart-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.mini-cart-item .cart-builder-snapshot {
  margin: 7px 0 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
}

.mini-cart-item .cart-builder-snapshot-group + .cart-builder-snapshot-group {
  margin-top: 6px;
}

.mini-cart-item .cart-builder-snapshot strong {
  display: block;
  margin-bottom: 3px;
}

.mini-cart-item .cart-builder-snapshot ul {
  margin: 0;
  padding-left: 16px;
}

.mini-cart-item .cart-builder-snapshot li {
  line-height: 1.35;
}

.mini-cart-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.mini-cart-controls button,
.mini-cart-controls span {
  width: 34px;
  height: 34px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
}

.mini-cart-controls button {
  cursor: pointer;
}

.mini-cart-controls button:disabled {
  color: #9aa295;
  cursor: not-allowed;
  background: #f5f3ed;
}

.mini-cart-remove {
  color: var(--danger, #b42318) !important;
  border-left: 1px solid var(--line) !important;
}

.mini-cart-warning {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f7e7c5;
  color: #7a4d00;
  font-size: 0.76rem;
  font-weight: 700;
}

.mini-cart-price {
  display: grid;
  gap: 2px;
  justify-items: end;
  font-weight: 700;
  white-space: nowrap;
}

.mini-cart-price span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.mini-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}

.mini-cart-total {
  display: flex;
  flex: 1 1 auto;
  gap: 16px;
  font-weight: 700;
}

.mini-cart-total span {
  color: var(--muted);
}

.mini-cart-button {
  width: auto;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #95a98b;
  background: #95a98b;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.mini-cart-button:hover {
  border-color: #72846a;
  background: #72846a;
}

.free-shipping-progress {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.free-shipping-progress--mini-cart {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e6dbc2;
  border-radius: 8px;
  background: #fbf8ef;
}

.free-shipping-progress__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.free-shipping-progress__copy strong,
.free-shipping-progress__copy span {
  overflow-wrap: anywhere;
}

.free-shipping-progress__copy strong {
  color: var(--text);
  line-height: 1.35;
}

.free-shipping-progress__copy span {
  color: var(--muted);
  font-weight: 700;
}

.free-shipping-progress__bar {
  position: relative;
  height: 12px;
  overflow: visible;
  border-radius: 999px;
  background: #e5dcc9;
}

.free-shipping-progress__threshold {
  justify-self: end;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: normal;
}

.free-shipping-progress__fill {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: #72846a;
}

.free-shipping-progress__truck,
.free-shipping-progress__check {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.free-shipping-progress__truck {
  width: 26px;
  height: 26px;
  font-size: 1rem;
}

.free-shipping-progress__check {
  right: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #72846a;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  transform: translate(0, -50%);
}

.action-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4e5d50;
  font-weight: 700;
  font-size: 0.9rem;
}

.action-button {
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4e5d50;
  cursor: pointer;
}

.icon-action,
.action-button {
  position: relative;
  min-width: 0;
}

.account-state {
  display: none;
}

.icon-action i,
.action-button i {
  font-size: 1rem;
  color: currentColor;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #c9ad5f;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.main-nav {
  background: #ebe8df;
  border-top: 1px solid var(--line);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5e685f;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav a:hover {
  background: #f8f7f4;
  color: var(--text);
}

.main-nav a.is-active {
  color: #264534;
}

.main-nav a.is-active .nav-icon {
  color: #264534;
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dfe8dc;
  color: #72846a;
}

.nav-icon i {
  font-size: 0.8rem;
  color: currentColor;
}

.page {
  padding: 30px 0 42px;
}

body:has(.products-section) .page {
  padding-bottom: 20px !important;
}

.products-section {
  background: rgba(247, 244, 236, 0.6);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  font-weight: 500;
}

body:has(.products-section) .section-head h1#catalogTitle {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 2.9rem !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.catalog-controls {
  display: grid;
  grid-template-columns: auto;
  align-items: start;
  justify-content: start;
  margin: -6px 0 22px;
}

.catalog-controls[hidden],
.catalog-search[hidden],
.catalog-sort[hidden] {
  display: none;
}

.catalog-search,
.catalog-filter,
.catalog-sort {
  min-width: 0;
}

.catalog-search {
  display: grid;
  gap: 6px;
}

.catalog-search-field {
  position: relative;
}

.catalog-search-field i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #72846a;
  font-size: 0.9rem;
  transform: translateY(-50%);
}

.catalog-search input,
.catalog-filter-toggle,
.catalog-filter-clear,
.catalog-sort select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
}

.catalog-search input {
  padding: 0 14px 0 40px;
}

.catalog-sort select {
  padding: 0 12px;
}

.catalog-filter {
  position: relative;
  width: 240px;
}

.catalog-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
}

.catalog-filter-toggle i {
  color: #72846a;
  font-size: 0.9rem;
}

.catalog-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 15;
  width: 300px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 14px 28px rgba(118, 132, 112, 0.14);
}

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

.catalog-sort {
  display: grid;
  gap: 6px;
}

.catalog-search > span,
.catalog-sort span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-filter-clear {
  border-color: #d8ded1;
  background: #f6f3eb;
  color: #4e5d50;
  cursor: pointer;
  font-weight: 700;
}

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

.storefront-status {
  display: none;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
  min-height: 448px;
  padding: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  border-color: #bdc9b7;
  box-shadow: 0 14px 28px rgba(118, 132, 112, 0.12);
}

.product-card:focus-visible {
  outline: 3px solid rgba(159, 127, 63, 0.28);
  outline-offset: 3px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-card h2 {
  min-height: 48px;
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

.product-card p {
  min-height: 62px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-top: auto;
  margin-bottom: 12px;
}

.price-row strong {
  color: #303b32;
  font-size: 1.22rem;
  font-weight: 700;
}

.product-card-price-unit {
  color: #7d887f;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.price-row span {
  color: #9aa39b;
  text-decoration: line-through;
}

.price-row .product-card-price-unit {
  color: #7d887f;
  text-decoration: none;
}

.product-status-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0eadb;
  color: #76603a;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #8b9d88;
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.product-card-cta:hover:not(:disabled) {
  background: #6f806d;
}

.product-card-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

footer {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 0;
  background: transparent;
}

body:has(.products-section) footer {
  margin-top: 50px !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
}

.footer-brand .brand-logo {
  width: 118px;
}

footer h4 {
  margin: 0 0 14px;
}

footer p,
footer li {
  font-size: 0.92rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

@keyframes progress-grow {
  from {
    width: 0;
  }
  to {
    width: 56%;
  }
}

@keyframes step-pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: center;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

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

@media (max-width: 860px) {
  .header-main {
    min-height: auto;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .brand-logo {
    width: 76px;
  }

  .purchase-progress {
    grid-column: 1 / -1;
    order: 3;
  }

  .progress-track {
    gap: 8px;
  }

  .step-label {
    font-size: 0.92rem;
  }

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

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

  .catalog-filter,
  .catalog-filter-panel {
    width: 100%;
  }

  .catalog-filter-panel {
    position: static;
    margin-top: 8px;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .site-header.is-menu-open {
    position: relative;
    top: auto;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .purchase-progress {
    width: 100%;
    padding: 10px 0 4px;
  }

  .site-header.is-cart-empty .progress-track {
    display: none;
  }

  .site-header.is-cart-empty .purchase-progress {
    display: block;
  }

  .site-header.is-cart-empty .progress-copy {
    display: block;
    margin: 0;
    font-size: 0.82rem;
  }

  .action-link {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .action-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 999px;
  }

  .action-button span,
  .account-icon {
    display: none;
  }

  .account-trigger,
  .account-dropdown {
    display: none !important;
  }

  .mobile-menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .mini-cart-dropdown {
    display: none !important;
  }

  .free-shipping-progress__copy {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .free-shipping-progress__copy span {
    white-space: normal;
  }

  .main-nav {
    display: none;
    position: static;
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .site-header.is-menu-open .main-nav {
    display: block;
  }

  .nav-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0 12px;
  }

  .mobile-account-section {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .mobile-account-section a,
  .mobile-account-section button {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #4e5d50;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-account-section a:hover,
  .mobile-account-section button:hover {
    background: #f5f3ed;
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

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

@media (max-width: 760px) {
  body {
    padding-top: 190px;
  }

  body:has(.site-header.is-menu-open) {
    padding-top: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: #f8f7f4;
    box-shadow: 0 10px 24px rgba(57, 75, 54, 0.08);
  }

  .site-header.is-menu-open {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    box-shadow: none;
  }
}
