:root {
  --koop-green: #3ab54b;
  --koop-deep-green: #17663a;
  --koop-text: #252d28;
  --koop-muted: #7d8780;
  --koop-pink: #a73355;
  --koop-lavender: #f3f3f3;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--koop-lavender);
  color: var(--koop-text);
  font-family: "Barlow", Arial, sans-serif;
}

.site-header {
  height: 48px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(41, 52, 44, 0.07);
}

.header-inner {
  position: relative;
  width: min(720px, calc(100% - 34px));
  height: 100%;
  margin: 0 auto;
  padding: 0;
  gap: 28px;
}

.brand {
  width: 72px;
  min-width: 72px;
  height: 28px;
  margin: 0;
}

.brand img {
  display: block;
  width: 72px;
  height: 28px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
}

.main-nav a {
  color: #313a34;
  font-size: 9px;
}

.header-actions {
  gap: 8px;
}

.round-action {
  width: 20px;
  height: 20px;
  border: 0;
  background: #edf4ef;
  color: #42674d;
  cursor: pointer;
}

.bag-count {
  top: -3px;
  right: -3px;
}

.header-search-panel {
  position: absolute;
  z-index: 12;
  right: 84px;
  top: 54px;
  width: min(355px, calc(100vw - 36px));
  padding: 8px;
  display: flex;
  gap: 6px;
  border: 1px solid #e7ece8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 42, 32, 0.15);
}

.header-search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px;
  font: inherit;
  font-size: 12px;
}

.header-search-panel button {
  width: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--koop-green);
  color: #fff;
}

.header-search-panel button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.catalog-main,
.page-main {
  width: min(720px, calc(100% - 34px));
  max-width: 720px;
  margin: 0 auto;
}

.catalog-main {
  padding: 8px 0 54px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.category-tile {
  min-width: 0;
  height: 90px;
  padding: 16px 4px 6px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(34, 45, 37, 0.035);
  color: #28573b;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.category-tile > span:last-child {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-art {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 50%;
  overflow: hidden;
  background: #f6f1e7;
}

.category-art img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.catalog-toolbar {
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.result-copy {
  margin: 0;
  color: #555e58;
  font-size: 11px;
}

.sort-form select {
  min-width: 86px;
  padding: 4px 18px 4px 7px;
  border: 0;
  background: transparent;
  color: #626d66;
  font-size: 10px;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 12px;
  column-gap: 14px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(42, 49, 44, 0.035);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  z-index: 2;
  box-shadow: 0 9px 24px rgba(42, 49, 44, 0.12);
  transform: translateY(-2px);
}

.product-card-link {
  display: flex;
  height: 100%;
  min-height: 180px;
  flex-direction: column;
  color: inherit;
}

.product-image {
  position: relative;
  display: grid;
  height: 120px;
  flex: 0 0 120px;
  place-items: center;
  padding: 8px 9px 3px;
  background: #fff;
}

.product-image img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.deal-mark {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 7px;
  width: 52px;
  height: 25px;
}

.deal-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  display: flex;
  min-height: 55px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 7px 7px;
}

.product-name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 24px;
  color: #303a33;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price {
  color: var(--koop-pink);
  font-size: 10px;
  font-weight: 800;
}

.product-favorite {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #edf0ed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: #8e9991;
  font-size: 14px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.product-card:hover .product-favorite,
.product-favorite.is-favorite,
.product-card:focus-within .product-favorite {
  opacity: 1;
}

.product-favorite.is-favorite {
  color: #ba3154;
}

.quick-add {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  left: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-card:hover .quick-add,
.product-card:focus-within .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.quick-add button {
  width: 100%;
  min-height: 29px;
  border: 0;
  border-radius: 18px;
  background: var(--koop-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.quick-add button:hover {
  background: #279d40;
}

.breadcrumbs {
  margin: 0 0 9px;
  color: #7c8980;
  font-size: 9px;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: #68756c;
}

.product-page .page-main {
  padding-top: 10px;
  padding-bottom: 48px;
  padding-right: 0;
  padding-left: 0;
}

.product-detail {
  max-width: 690px;
  margin: 0;
  padding: 19px 22px 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(35, 45, 37, 0.035);
}

.detail-heading {
  padding: 0 0 8px;
  border-bottom: 1px solid #edf0ed;
}

.detail-heading h1 {
  margin: 0 0 0;
  color: #28563a;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-heading p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #859087;
  font-size: 9px;
  text-transform: uppercase;
}

.detail-heading strong {
  color: #4c7b58;
  font-weight: 500;
}

.rating {
  margin-left: 9px;
  color: #d4b56d;
  font-size: 14px;
  letter-spacing: 1px;
}

.detail-columns {
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding-top: 6px;
}

.detail-visual {
  position: relative;
  min-height: 340px;
  padding: 16px;
  background: #fff;
}

.detail-visual img {
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.detail-visual > img {
  transform: translateY(-17px) scale(1.04);
}

.detail-visual .deal-mark img {
  width: 100%;
  height: 100%;
}

.detail-buy {
  padding: 2px 3px 10px;
}

.detail-price {
  margin: 0 0 30px;
  color: #9f3856;
  font-size: 22px;
  font-weight: 700;
}

.add-form > label {
  color: #78847b;
  font-size: 9px;
  text-transform: uppercase;
}

.purchase-row {
  margin-top: 9px;
  gap: 12px;
}

.quantity-control {
  height: 37px;
  min-width: 80px;
  border-radius: 18px;
}

.quantity-control button {
  width: 27px;
  background: #f8faf8;
}

.quantity-control input {
  width: 28px;
  font-size: 11px;
}

.add-button {
  min-height: 37px;
  border-radius: 20px;
  font-size: 10px;
}

.detail-benefits {
  display: flex;
  gap: 16px;
  margin-top: 13px;
}

.detail-benefits button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d7162;
  font-size: 9px;
  cursor: pointer;
}

.detail-benefits button[aria-pressed="true"] {
  color: #bd3153;
}

.detail-note {
  margin: 17px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #edf0ed;
  color: #6e7971;
  font-size: 10px;
  line-height: 1.6;
}

.product-spec-panel {
  max-width: 690px;
  margin-left: 0;
  margin: 16px auto 0;
  padding: 18px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(35, 45, 37, 0.035);
}

.product-spec-panel h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eee9;
  color: #478c57;
  font-size: 10px;
  text-align: center;
}

.product-spec-panel dl {
  margin: 0;
  font-size: 10px;
}

.product-spec-panel dl div {
  margin: 0 0 12px;
}

.product-spec-panel dt {
  margin-bottom: 3px;
  color: #3d493f;
  font-weight: 700;
}

.product-spec-panel dd {
  margin: 0;
  color: #737e75;
  line-height: 1.5;
}

.cart-page {
  background: #fff;
}

.cart-page .page-main {
  width: min(720px, calc(100% - 34px));
  max-width: 720px;
  min-height: 265px;
  padding-top: 16px;
  padding-bottom: 28px;
  padding-right: 0;
  padding-left: 0;
}

.cart-layout {
  display: block;
}

.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid #eaedeb;
  background: #fff;
}

.cart-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #303934;
}

.cart-table th,
.cart-table td {
  padding: 9px 8px;
  border-right: 1px solid #edf0ee;
  border-bottom: 1px solid #edf0ee;
  text-align: center;
  font-size: 9px;
}

.cart-table th {
  height: 36px;
  color: #38423b;
  font-weight: 700;
}

.cart-table td {
  height: 82px;
}

.cart-table th:nth-child(1) {
  width: 110px;
}

.cart-table th:nth-child(2) {
  width: 32%;
}

.cart-table th:nth-child(3) {
  width: 82px;
}

.cart-table th:nth-child(4) {
  width: 108px;
}

.cart-table th:nth-child(5) {
  width: 78px;
}

.cart-table th:nth-child(6) {
  width: 44px;
}

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

.cart-table th:last-child,
.cart-table td:last-child {
  border-right: 0;
}

.cart-thumb-cell a {
  display: grid;
  width: 70px;
  height: 70px;
  margin: auto;
  place-items: center;
}

.cart-thumb-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-name-cell {
  text-align: center !important;
  text-transform: uppercase;
}

.cart-name-cell a {
  color: #303934;
}

.cart-update {
  display: flex;
  justify-content: center;
}

.cart-quantity {
  display: flex;
  height: 23px;
  align-items: center;
  border: 1px solid #e7ebe8;
  border-radius: 3px;
}

.cart-quantity button {
  width: 19px;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  color: #849088;
  font-size: 12px;
  cursor: pointer;
}

.cart-quantity input {
  width: 29px;
  height: 100%;
  padding: 0;
  border: 0;
  border-right: 1px solid #edf0ee;
  border-left: 1px solid #edf0ee;
  outline: 0;
  text-align: center;
  font-size: 9px;
  -moz-appearance: textfield;
}

.cart-quantity input::-webkit-inner-spin-button,
.cart-quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.line-total {
  color: #667169;
  font-weight: 400;
}

.remove-button {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #1e2922;
  font-size: 15px;
  cursor: pointer;
}

.summary-panel {
  width: min(300px, 100%);
  margin: 20px 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.summary-panel h2 {
  margin: 0 0 10px;
  color: #57715f;
  font-size: 12px;
  font-weight: 500;
}

.summary-panel .summary-line {
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #ecefed;
  border-bottom: 0;
  color: #7e8881;
  font-size: 9px;
}

.summary-panel .summary-line:last-of-type {
  border-bottom: 1px solid #ecefed;
}

.summary-panel .summary-total {
  display: flex;
  color: #408d56 !important;
  font-weight: 700;
}

.summary-panel .full-button {
  min-height: 34px;
  margin-top: 11px;
  border-radius: 18px;
  font-size: 9px;
}

.checkout-page {
  min-height: 100vh;
  background: #f2f3f8;
}

.checkout-page .page-main,
.payment-status-page .page-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.checkout-brand {
  padding: 21px 12px 18px;
}

.checkout-brand .brand {
  width: 78px;
  height: 35px;
}

.checkout-brand .brand img {
  width: 78px;
  height: 35px;
}

.checkout-form {
  width: 100%;
}

.checkout-layout {
  width: min(960px, calc(100% - 26px));
  max-width: 960px;
  padding: 0 0 35px;
  grid-template-columns: minmax(0, 1.95fr) minmax(290px, 1fr);
  gap: 15px;
}

.checkout-main,
.checkout-aside {
  gap: 12px;
}

.checkout-panel {
  padding: 18px 17px;
  border-radius: 8px;
  box-shadow: 0 4px 13px rgba(45, 53, 48, 0.08);
}

.checkout-panel h1,
.checkout-panel h2 {
  color: #25312a;
  font-size: 13px;
}

.panel-intro {
  margin-bottom: 14px;
  font-size: 9px;
}

.form-grid {
  gap: 10px 11px;
}

.form-grid label {
  gap: 5px;
  font-size: 9px;
}

.form-grid input,
.form-grid textarea {
  height: 35px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 9px;
}

.form-grid textarea {
  height: 61px;
  padding-top: 9px;
}

.payment-panel h2 {
  margin-bottom: 11px;
}

.payment-options {
  margin: 0 0 11px;
}

.payment-options label {
  min-height: 35px;
  justify-content: center;
  border-radius: 6px;
  font-size: 9px;
}

.payment-options label.is-selected {
  border-color: var(--koop-green);
  background: var(--koop-green);
  color: #fff;
}

.payment-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.card-hint {
  margin: 4px 0 10px;
  color: #8a938d;
  font-size: 9px;
}

.card-grid {
  gap: 9px 11px;
}

.card-grid input[readonly] {
  cursor: not-allowed;
  background: #fff;
}

.preview-disclaimer {
  margin: 8px 0 0;
  color: #929b94;
  font-size: 8px;
  line-height: 1.5;
}

.transfer-hint {
  padding: 15px 12px;
  border: 1px solid #e6ebe7;
  border-radius: 6px;
  color: #748078;
  font-size: 9px;
}

.order-summary-panel h2,
.installment-panel h2 {
  margin-bottom: 12px;
}

.checkout-aside .summary-line {
  margin: 0;
  padding: 8px 1px;
  color: #8b948e;
  font-size: 9px;
}

.checkout-aside .summary-total {
  padding-top: 12px;
  border-top: 1px solid #edf0ee;
  color: #348348 !important;
  font-size: 11px;
}

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 7px 0 4px;
  color: #6c776f;
  font-size: 8px;
  line-height: 1.45;
}

.checkout-consent input {
  margin: 1px 0 0;
  accent-color: #37ae4b;
}

.checkout-consent a {
  color: #3b9a50;
  text-decoration: underline;
}

.checkout-aside .full-button {
  min-height: 34px;
  margin-top: 6px;
  border-radius: 7px;
  font-size: 9px;
}

.installment-panel {
  padding-top: 18px;
}

.installment-row {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 0 9px;
  border: 1px solid #e5e9e6;
  border-radius: 6px;
  color: #38433b;
  font-size: 9px;
  cursor: pointer;
}

.installment-row input {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.installment-row strong {
  margin-left: auto;
  font-size: 9px;
  font-weight: 500;
}

.installment-row:has(input:checked) {
  border-color: var(--koop-green);
  background: var(--koop-green);
  color: #fff;
}

.payment-status-page {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  background: #eee;
}

.payment-status-card {
  width: 215px;
  min-height: 235px;
  margin: 4px auto 0;
  padding: 18px 20px 14px;
  background: #fff;
  text-align: center;
}

.status-logo {
  display: block;
  width: 74px;
  height: 32px;
  margin: 0 auto 10px;
}

.status-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-status-card h1 {
  margin: 7px 0 20px;
  color: #303a34;
  font-size: 12px;
  font-weight: 700;
}

.payment-status-card p {
  margin: 0 0 20px;
  color: #333b35;
  font-size: 9px;
  line-height: 1.45;
}

.payment-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 3px solid #d7ded9;
  border-top-color: #3e4541;
  border-radius: 50%;
  animation: koop-spin 0.9s linear infinite;
}

.payment-status-card small {
  display: block;
  color: #8a938c;
  font-size: 7px;
  line-height: 1.35;
}

@keyframes koop-spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  position: relative;
  padding: 38px 0 0;
  background: var(--koop-deep-green);
  color: #fff;
  text-align: left;
}

.site-footer::before {
  position: absolute;
  top: -23px;
  right: 0;
  left: 0;
  height: 25px;
  background: var(--koop-deep-green);
  clip-path: polygon(0 63%, 2% 55%, 4% 68%, 6% 45%, 9% 58%, 11% 48%, 13% 69%, 16% 52%, 18% 63%, 21% 43%, 24% 58%, 27% 49%, 30% 66%, 33% 47%, 36% 61%, 39% 44%, 42% 59%, 45% 50%, 48% 68%, 51% 46%, 54% 62%, 57% 49%, 60% 65%, 63% 46%, 66% 58%, 69% 43%, 72% 61%, 75% 50%, 78% 66%, 81% 45%, 84% 60%, 87% 49%, 90% 67%, 93% 45%, 96% 59%, 98% 48%, 100% 62%, 100% 100%, 0 100%);
  content: "";
}

.footer-columns {
  width: min(720px, calc(100% - 34px));
  margin: 0 auto 34px;
  grid-template-columns: 0.85fr 0.9fr 1.2fr 1.8fr;
  gap: 28px;
}

.footer-columns section {
  gap: 7px;
}

.footer-columns h2 {
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.1px;
}

.footer-columns a {
  font-size: 9px;
  line-height: 1.35;
}

.footer-bottom {
  width: min(100%, 100%);
  min-height: 66px;
  margin: 0;
  padding: 12px max(17px, calc((100% - 720px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-newsletter {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 9px;
  line-height: 1.45;
}

.newsletter-form {
  display: flex;
  margin: 14px 0 7px;
}

.newsletter-form input {
  width: 0;
  min-width: 0;
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e4e8e5;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #37423a;
  font-size: 9px;
}

.newsletter-form button {
  min-width: 82px;
  padding: 0 9px;
  border: 1px solid #e4e8e5;
  border-radius: 0 4px 4px 0;
  background: var(--koop-green);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 8px;
  line-height: 1.45;
}

.newsletter-consent input {
  margin: 1px 0 0;
  accent-color: #43be58;
}

.newsletter-consent a {
  color: #fff;
  text-decoration: underline;
}

.newsletter-feedback {
  margin: 7px 0 0;
  color: #d7f5dc;
  font-size: 8px;
  line-height: 1.4;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  font-size: 9px;
}

.social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-icons span {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.footer-trademark {
  color: #111a14;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.back-to-top {
  position: fixed;
  z-index: 8;
  right: 18px;
  bottom: 17px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #2b9950;
  color: #dff2e4;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 850px) {
  .catalog-main,
  .page-main,
  .header-inner,
  .checkout-layout {
    width: min(100% - 28px, 720px);
  }

  .category-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .category-tile {
    flex: 0 0 80px;
    height: 90px;
  }

  .checkout-layout {
    grid-template-columns: 1fr 0.8fr;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }

  .footer-newsletter {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer {
    padding-top: 32px;
  }

  .footer-bottom {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 56px;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand,
  .brand img {
    width: 72px;
    min-width: 72px;
    height: 32px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-search-panel {
    top: 50px;
    right: 0;
  }

  .catalog-main,
  .page-main {
    width: calc(100% - 24px);
  }

  .catalog-main {
    padding-top: 12px;
  }

  .category-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }

  .category-tile {
    min-width: 88px;
    height: 103px;
  }

  .catalog-toolbar {
    min-height: 31px;
    flex-wrap: nowrap;
  }

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

  .product-card-link {
    min-height: 205px;
  }

  .product-image {
    height: 152px;
    flex-basis: 152px;
  }

  .product-favorite {
    opacity: 1;
  }

  .quick-add {
    position: static;
    padding: 0 8px 8px;
    opacity: 1;
    transform: none;
  }

  .product-detail {
    padding: 15px 13px 18px;
  }

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

  .detail-visual {
    min-height: 260px;
  }

  .detail-visual img {
    height: 245px;
  }

  .detail-visual > img {
    transform: none;
  }

  .detail-buy {
    padding: 8px 4px;
  }

  .cart-table {
    min-width: 660px;
  }

  .checkout-layout {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
  }

  .checkout-aside {
    grid-row: 1;
  }

  .checkout-main {
    grid-row: 2;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 23px 14px;
  }

  .footer-bottom {
    min-height: 68px;
  }
}

@media (max-width: 400px) {
  .category-tile {
    min-width: 82px;
  }

  .result-copy {
    font-size: 9px;
  }

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

  .wide-field {
    grid-column: auto;
  }

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

/* Larger desktop scale: keep the reference layout, but use the available screen. */
@media (min-width: 851px) {
  .site-header {
    height: 66px;
  }

  .header-inner,
  .catalog-main,
  .page-main,
  .cart-page .page-main,
  .footer-columns {
    width: min(1200px, calc(100% - 64px));
    max-width: 1200px;
  }

  .header-inner {
    gap: 48px;
  }

  .brand,
  .brand img {
    width: 100px;
    min-width: 100px;
    height: 40px;
  }

  .main-nav {
    gap: 28px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .header-actions {
    gap: 12px;
  }

  .round-action {
    width: 32px;
    height: 32px;
  }

  .catalog-main {
    padding-top: 18px;
    padding-bottom: 78px;
  }

  .category-strip {
    gap: 12px;
    margin-bottom: 18px;
  }

  .category-tile {
    height: 126px;
    padding: 17px 7px 9px;
    border-radius: 12px;
    font-size: 11px;
  }

  .category-art {
    width: 66px;
    height: 66px;
    margin-bottom: 9px;
  }

  .catalog-toolbar {
    min-height: 40px;
    margin-bottom: 20px;
  }

  .result-copy {
    font-size: 14px;
  }

  .sort-form select {
    font-size: 13px;
  }

  .product-grid {
    column-gap: 20px;
    row-gap: 20px;
  }

  .product-card {
    border-radius: 11px;
  }

  .product-card-link {
    min-height: 286px;
  }

  .product-image {
    height: 198px;
    flex-basis: 198px;
    padding: 13px 14px 5px;
  }

  .deal-mark {
    top: 11px;
    left: 11px;
    width: 72px;
    height: 35px;
  }

  .product-info {
    min-height: 78px;
    gap: 9px;
    padding: 9px 11px 11px;
  }

  .product-name {
    min-height: 36px;
    font-size: 12px;
    line-height: 1.35;
  }

  .product-price {
    font-size: 15px;
  }

  .quick-add {
    right: 11px;
    bottom: 11px;
    left: 11px;
  }

  .quick-add button {
    min-height: 38px;
    font-size: 12px;
  }

  .product-detail,
  .product-spec-panel {
    max-width: none;
  }

  .product-page .page-main {
    padding-top: 18px;
    padding-bottom: 72px;
  }

  .breadcrumbs {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .product-detail {
    padding: 28px 30px 34px;
    border-radius: 11px;
  }

  .detail-heading h1 {
    font-size: 23px;
  }

  .detail-heading p,
  .add-form > label,
  .detail-benefits button {
    font-size: 12px;
  }

  .detail-columns {
    gap: 42px;
    padding-top: 12px;
  }

  .detail-visual {
    min-height: 470px;
    padding: 22px;
  }

  .detail-visual img {
    height: 440px;
  }

  .detail-price {
    margin-bottom: 38px;
    font-size: 29px;
  }

  .quantity-control {
    height: 46px;
    min-width: 100px;
  }

  .quantity-control button {
    width: 34px;
    font-size: 16px;
  }

  .quantity-control input {
    width: 34px;
    font-size: 14px;
  }

  .add-button {
    min-height: 46px;
    font-size: 13px;
  }

  .detail-note {
    font-size: 13px;
  }

  .product-spec-panel {
    margin-top: 22px;
    padding: 26px 30px;
  }

  .product-spec-panel h2 {
    font-size: 14px;
  }

  .product-spec-panel dl {
    font-size: 13px;
  }

  .cart-page .page-main {
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .cart-table {
    min-width: 0;
  }

  .cart-table th,
  .cart-table td {
    padding: 13px 12px;
    font-size: 13px;
  }

  .cart-table th {
    height: 48px;
  }

  .cart-table td {
    height: 108px;
  }

  .cart-thumb-cell a {
    width: 90px;
    height: 90px;
  }

  .summary-panel h2 {
    font-size: 16px;
  }

  .summary-panel .summary-line {
    font-size: 12px;
  }

  .summary-panel .full-button {
    min-height: 42px;
    font-size: 12px;
  }

  .footer-columns {
    gap: 44px;
  }

  .footer-columns h2,
  .footer-columns a,
  .footer-newsletter p,
  .footer-social {
    font-size: 12px;
  }
}

@media (min-width: 851px) and (max-width: 1050px) {
  .header-inner,
  .catalog-main,
  .page-main,
  .cart-page .page-main,
  .footer-columns {
    width: calc(100% - 48px);
  }
}

/* Reference-style category row and animated weekly-deals carousel. */
.category-strip {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-bottom: 24px;
}

.category-tile {
  height: auto;
  min-height: 110px;
  padding: 0 2px 5px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #262c28;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.category-tile:hover .category-art,
.category-tile.is-active .category-art {
  box-shadow: 0 0 0 2px #dcefe2;
  transform: translateY(-2px);
}

.category-tile > span:last-child {
  display: -webkit-box;
  min-height: 26px;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-art {
  width: 100%;
  height: 70px;
  margin: 0 auto 8px;
  border-radius: 4px;
  background: #fff7f1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-art img {
  border-radius: 4px;
  object-fit: cover;
}

.campaign-showcase {
  display: grid;
  grid-template-columns: minmax(180px, 0.88fr) minmax(0, 3fr);
  align-items: stretch;
  gap: 22px;
  min-height: 270px;
  margin: 0 0 30px;
  padding: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #39ad4e;
  box-shadow: 0 8px 22px rgba(21, 111, 47, 0.12);
}

.showcase-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
}

.showcase-logo {
  display: block;
  width: min(190px, 90%);
  height: 88px;
  margin: 0 auto 3px;
  object-fit: contain;
}

.showcase-dates {
  margin: 0;
  padding: 8px 10px;
  border-radius: 20px;
  background: #b9e8bf;
  color: #328342;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.campaign-showcase.is-home-showcase .showcase-dates {
  background: #ffdf3b;
  color: #205e31;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.35px;
  box-shadow: inset 0 -2px 0 rgba(153, 116, 0, 0.12);
}

.showcase-action {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  color: #4a9f59;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.showcase-action:hover {
  background: #f0fff2;
  transform: translateY(-1px);
}

.showcase-carousel {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0 37px;
}

.showcase-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.showcase-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  will-change: transform;
  transition: transform 650ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

.showcase-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  min-height: 230px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 76, 31, 0.14);
}

.showcase-card-link {
  display: flex;
  height: 100%;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 11px;
  color: #252b27;
  text-decoration: none;
}

.showcase-product-image {
  width: 100%;
  height: 145px;
  margin: auto 0 7px;
  object-fit: contain;
}

.showcase-product-name {
  display: -webkit-box;
  width: 100%;
  min-height: 30px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.showcase-product-price {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 13px;
  border-radius: 15px;
  background: #ffeb00;
  color: #28312a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.showcase-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 36px;
  height: 40px;
  place-items: center;
  padding: 0 0 4px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #37a74b;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.showcase-arrow:hover {
  background: #e7faea;
  color: #176b32;
}

.showcase-arrow-prev {
  left: 0;
}

.showcase-arrow-next {
  right: 0;
}

@media (min-width: 851px) {
  .category-tile {
    font-size: 11px;
  }

  .category-art {
    height: 78px;
  }
}

@media (max-width: 1050px) and (min-width: 851px) {
  .category-strip {
    gap: 6px;
  }

  .category-tile {
    font-size: 9px;
  }

  .category-art {
    height: 58px;
  }

  .campaign-showcase {
    grid-template-columns: minmax(150px, 0.75fr) minmax(0, 3fr);
    gap: 12px;
    padding: 13px;
  }

  .showcase-carousel {
    padding: 0 31px;
  }

  .showcase-track {
    gap: 12px;
  }

  .showcase-card {
    flex-basis: calc((100% - 36px) / 4);
  }
}

@media (max-width: 850px) {
  .category-strip {
    display: flex;
    gap: 10px;
    margin: 0 -2px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .category-tile {
    flex: 0 0 76px;
    min-height: 102px;
    padding: 0 2px 5px;
    font-size: 9px;
  }

  .category-art {
    width: 100%;
    height: 62px;
  }

  .campaign-showcase {
    grid-template-columns: minmax(125px, 0.75fr) minmax(0, 2fr);
    gap: 12px;
    min-height: 230px;
    padding: 13px;
  }

  .showcase-logo {
    height: 64px;
  }

  .showcase-dates {
    padding: 7px 5px;
    font-size: 10px;
  }

  .showcase-action {
    min-height: 32px;
    font-size: 9px;
  }

  .showcase-carousel {
    padding: 0 28px;
  }

  .showcase-card {
    flex-basis: calc((100% - 26px) / 3);
    min-height: 202px;
  }

  .showcase-card-link {
    min-height: 202px;
    padding: 8px 7px 9px;
  }

  .showcase-product-image {
    height: 120px;
  }

  .showcase-product-name {
    font-size: 9px;
  }

  .showcase-product-price {
    font-size: 11px;
  }

  .showcase-arrow {
    width: 29px;
    height: 35px;
    font-size: 29px;
  }
}

@media (max-width: 640px) {
  .campaign-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 12px 15px;
  }

  .showcase-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .showcase-logo {
    grid-row: span 2;
    width: 100%;
    height: 78px;
    margin: 0;
  }

  .showcase-dates {
    align-self: end;
    padding: 7px 6px;
    font-size: 10px;
  }

  .showcase-action {
    min-height: 30px;
    font-size: 9px;
  }

  .showcase-carousel {
    min-height: 200px;
    padding: 0 26px;
  }

  .showcase-track {
    gap: 10px;
  }

  .showcase-card {
    flex-basis: calc((100% - 10px) / 2);
    min-height: 190px;
  }

  .showcase-card-link {
    min-height: 190px;
    padding: 7px 6px 8px;
  }

  .showcase-product-image {
    height: 110px;
  }

  .showcase-arrow {
    width: 27px;
    height: 32px;
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track,
  .category-art,
  .showcase-action,
  .showcase-arrow {
    transition-duration: 0.01ms !important;
  }
}

/* Campaign cards follow the supplied six-column catalogue reference. */
.weekly-campaign-page .product-card .deal-mark {
  display: none;
}

.weekly-campaign-page .product-card .product-favorite {
  display: none;
}

@media (min-width: 851px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .product-card {
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    box-shadow: none;
  }

  .product-card:hover {
    box-shadow: 0 7px 18px rgba(37, 49, 41, 0.12);
    transform: translateY(-2px);
  }

  .product-card-link {
    min-height: 238px;
  }

  .product-image {
    height: 153px;
    flex-basis: 153px;
    padding: 17px 14px 5px;
  }

  .product-info {
    min-height: 82px;
    gap: 8px;
    padding: 5px 10px 10px;
  }

  .product-name {
    min-height: 30px;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
  }

  .product-price {
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    align-items: center;
    align-self: center;
    justify-content: center;
    padding: 2px 12px;
    border-radius: 16px;
    background: #ffea00;
    color: #18723a;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
  }

  .quick-add {
    right: 8px;
    bottom: 9px;
    left: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
  }

  .product-card:hover .quick-add,
  .product-card:focus-within .quick-add {
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
  }

  .product-card:has(.product-price:hover) .quick-add,
  .product-card:has(.quick-add:hover) .quick-add,
  .product-card:focus-within .quick-add {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .quick-add button {
    min-height: 34px;
    border-radius: 18px;
    font-size: 11px;
  }
}

@media (min-width: 641px) and (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card-link {
    min-height: 230px;
  }

  .product-image {
    height: 145px;
    flex-basis: 145px;
  }

  .product-info {
    min-height: 78px;
  }

  .product-name {
    font-size: 10px;
    text-align: center;
  }

  .product-price {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 16px;
    background: #ffea00;
    color: #18723a;
    font-size: 13px;
    font-weight: 900;
  }

  .product-card:hover .quick-add {
    opacity: 0;
    pointer-events: none;
  }

  .product-card:has(.product-price:hover) .quick-add,
  .product-card:has(.quick-add:hover) .quick-add,
  .product-card:focus-within .quick-add {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .product-card {
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    box-shadow: none;
  }

  .product-card-link {
    min-height: 225px;
  }

  .product-image {
    height: 148px;
    flex-basis: 148px;
  }

  .product-info {
    min-height: 72px;
  }

  .product-name {
    font-size: 9px;
    text-align: center;
  }

  .product-price {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 15px;
    background: #ffea00;
    color: #18723a;
    font-size: 12px;
    font-weight: 900;
  }

  .quick-add {
    position: static;
    padding: 0 8px 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .quick-add button {
    min-height: 31px;
    font-size: 10px;
  }
}

/* Updated two-row KOOP header from the user's supplied reference. */
.site-header {
  position: relative;
  z-index: 10;
  height: auto;
  min-height: 120px;
  background: #fff;
}

.header-inner {
  display: grid;
  width: min(1024px, calc(100% - 48px));
  height: auto;
  min-height: 120px;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: 76px 44px;
  align-items: center;
  gap: 0 24px;
  margin: 0 0 0 24px;
  padding: 0;
}

.brand {
  display: flex;
  width: 150px;
  min-width: 0;
  height: 50px;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  margin: 0;
}

.brand img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.header-tools {
  display: flex;
  min-width: 0;
  width: 100%;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header-search {
  display: flex;
  width: min(254px, 100%);
  max-width: 254px;
  min-width: 220px;
  height: 38px;
  flex: 0 1 254px;
  overflow: hidden;
  border-radius: 22px;
  background: #ededed;
}

.header-search input {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #455148;
  font: inherit;
  font-size: 11px;
}

.header-search input::placeholder {
  color: #818782;
  opacity: 1;
}

.header-search button {
  min-width: 62px;
  padding: 0 17px;
  border: 0;
  border-radius: 22px;
  background: var(--koop-green);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.header-utilities {
  display: flex;
  min-width: 144px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.store-finder {
  display: inline-flex;
  min-width: 130px;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 18px;
  background: var(--koop-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.store-finder svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-cart {
  position: relative;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #33653f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.header-cart svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bag-count {
  position: static;
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 9px;
  background: #e8f4ea;
  color: #26753d;
  font-size: 10px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin: 0;
}

.main-nav a {
  color: #303a34;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--koop-deep-green);
}

.menu-toggle {
  display: none;
}

@media (min-width: 641px) and (max-width: 1050px) {
  .header-inner {
    width: calc(100% - 36px);
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 0 12px;
  }

  .brand,
  .brand img {
    width: 150px;
  }

  .header-tools {
    gap: 12px;
  }

  .header-search {
    min-width: 190px;
  }

  .header-utilities {
    min-width: 124px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 0;
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-rows: 56px 42px;
    gap: 7px 8px;
    margin: 0 auto;
    padding: 5px 0 8px;
  }

  .brand {
    width: 145px;
    height: 48px;
    grid-column: 1;
    grid-row: 1;
  }

  .brand img {
    width: 145px;
    height: 48px;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eff5f0;
    color: #26673a;
    font-size: 23px;
    cursor: pointer;
  }

  .header-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 8px;
  }

  .header-search {
    width: 100%;
    min-width: 0;
    height: 34px;
    flex: 1 1 auto;
  }

  .header-search input {
    padding: 0 10px;
    font-size: 9px;
  }

  .header-search button {
    min-width: 46px;
    padding: 0 9px;
    font-size: 10px;
  }

  .header-utilities {
    min-width: 112px;
    flex-direction: row;
    gap: 5px;
  }

  .store-finder {
    min-height: 30px;
    gap: 3px;
    padding: 0 7px;
    font-size: 9px;
  }

  .store-finder svg {
    width: 14px;
    height: 14px;
  }

  .header-cart {
    min-height: 30px;
    gap: 3px;
    font-size: 9px;
  }

  .header-cart svg {
    width: 15px;
    height: 15px;
  }

  .bag-count {
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 9px;
  }

  .main-nav {
    position: absolute;
    z-index: 12;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 0;
    padding: 16px 18px;
    border-top: 1px solid #edf1ee;
    background: #fff;
    box-shadow: 0 12px 20px rgba(30, 50, 36, 0.1);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    font-size: 14px;
  }
}

/* The add-to-cart feedback stays exactly within the yellow price-tag width. */
.quick-add button {
  width: var(--price-pill-width, max-content);
  height: 28px;
  min-height: 28px;
  min-width: 0;
  max-width: 100%;
  padding-right: 3px;
  padding-left: 3px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.quick-add {
  display: flex;
  justify-content: center;
}

.quick-add button.is-added {
  background: #17663a;
  color: #fff;
}

.quick-add button:disabled {
  cursor: wait;
  opacity: 1;
}

/* Keep the store finder and cart aligned in a deliberate vertical stack. */
.site-header {
  min-height: 144px;
}

.header-inner {
  min-height: 144px;
  grid-template-rows: 100px 44px;
}

.header-tools {
  height: 100px;
  align-items: stretch;
}

.header-search {
  align-self: center;
}

.header-utilities {
  align-self: stretch;
  justify-content: flex-end;
  gap: 6px;
}

.header-cart {
  min-width: 130px;
  min-height: 30px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 18px;
  background: #eff7f0;
}

/* Show complete category art without cropping edges from the source images. */
.category-art {
  overflow: hidden;
}

.category-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .site-header,
  .header-inner {
    min-height: 0;
  }

  .header-inner {
    grid-template-rows: 56px 66px;
  }

  .header-tools {
    height: 66px;
    align-items: center;
  }

  .header-search {
    align-self: center;
  }

  .header-utilities {
    width: 130px;
    min-width: 130px;
    height: 100%;
    align-self: stretch;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .store-finder {
    width: 130px;
    min-width: 130px;
  }

  .header-cart {
    width: 130px;
    min-width: 130px;
    min-height: 30px;
    padding: 0 8px;
  }

  .header-search {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* Place the cart icon beside the store finder instead of below it. */
.site-header,
.header-inner {
  min-height: 120px;
}

.header-inner {
  grid-template-rows: 76px 44px;
}

.header-tools {
  height: 76px;
  align-items: center;
  gap: 18px;
}

.header-utilities {
  width: auto;
  min-width: 0;
  height: auto;
  align-self: auto;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  gap: 12px;
}

.header-cart {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #dcece0;
  border-radius: 50%;
  background: #eff7f0;
  color: #20743a;
}

.header-cart svg {
  width: 26px;
  height: 26px;
}

.header-cart .bag-count {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #fff;
  background: var(--koop-green);
  color: #fff;
  font-size: 10px;
}

@media (max-width: 640px) {
  .site-header,
  .header-inner {
    min-height: 0;
  }

  .header-inner {
    grid-template-rows: 56px 46px;
  }

  .header-tools {
    height: 46px;
    align-items: center;
    gap: 7px;
  }

  .header-search {
    min-width: 0;
    height: 34px;
    flex: 1 1 auto;
  }

  .header-utilities {
    width: auto;
    min-width: 0;
    height: auto;
    align-self: auto;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    gap: 7px;
  }

  .store-finder {
    width: auto;
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  .header-cart {
    width: 43px;
    min-width: 43px;
    height: 43px;
    min-height: 43px;
    padding: 0;
  }

  .header-cart svg {
    width: 22px;
    height: 22px;
  }
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px 38px;
    gap: 20px 0;
    padding: 6px 0 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle,
  .main-nav {
    display: none !important;
  }

  .header-tools {
    position: static;
    width: 100%;
    height: 38px;
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    gap: 0;
  }

  .header-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 34px;
    flex: 1 1 auto;
  }

  .header-utilities {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 0;
    display: flex;
    width: 38px;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .store-finder {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--koop-green);
    font-size: 0;
  }

  .store-finder span,
  .header-cart {
    display: none;
  }

  .store-finder svg {
    width: 23px;
    height: 23px;
  }

  .catalog-main {
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .category-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    margin: 18px 0 20px;
    padding: 0;
    scrollbar-width: none;
  }

  .category-tile {
    display: flex;
    min-width: 0;
    min-height: 108px;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 2px;
    font-size: 9px;
    line-height: 1.2;
  }

  .category-art {
    width: 76px;
    max-width: 100%;
    height: 76px;
    margin: 0 auto 2px;
    border-radius: 6px;
    background: #fff7f1;
  }

  .category-art img {
    width: 100%;
    height: 100%;
    padding: 1px;
    border-radius: 6px;
    object-fit: contain;
  }

  .category-tile.is-active,
  .category-tile.is-active .category-art,
  .category-tile:hover .category-art {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .category-tile > span:last-child {
    display: -webkit-box;
    min-height: 22px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .category-toggle {
    width: 100%;
    border: 0;
    color: #111;
    font: inherit;
    text-align: center;
    cursor: pointer;
  }

  .category-toggle .category-art {
    display: grid;
    place-items: center;
    background: #f0f8ff;
    color: #0a6a34;
  }

  .category-grid-icon,
  .category-close-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
  }

  .category-close-icon {
    display: none;
  }

  .category-toggle.is-expanded .category-grid-icon {
    display: none;
  }

  .category-toggle.is-expanded .category-close-icon {
    display: block;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px 8px env(safe-area-inset-bottom, 0px);
    background: #3aad29;
    box-shadow: 0 -2px 12px rgba(24, 86, 35, 0.2);
  }

  .mobile-bottom-nav a {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    background: transparent;
  }

  .mobile-bottom-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-cart-count {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    display: grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    padding: 0 3px;
    border: 1px solid #3aad29;
    border-radius: 10px;
    background: #fff;
    color: #218531;
    font-size: 8px;
    font-weight: 800;
  }

  body.has-mobile-nav {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .back-to-top {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

/* Align the desktop header with the centered catalog and campaign content. */
@media (min-width: 851px) {
  .header-inner {
    margin-right: auto;
    margin-left: auto;
  }
}

.category-art img {
  object-fit: cover;
}

.category-toggle {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.category-toggle .category-art {
  display: grid;
  place-items: center;
  background: #f0f8ff;
  color: #0a6a34;
}

.category-toggle .category-close-icon {
  display: none;
}

.category-source-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #17663a;
}

.category-source-placeholder i {
  font-size: 24px;
}

.category-toggle.is-expanded .category-grid-icon {
  display: none;
}

.category-toggle.is-expanded .category-close-icon {
  display: block;
}

.store-finder {
  position: relative;
  min-width: 142px;
  justify-content: flex-start;
  padding-right: 32px;
  padding-left: 14px;
  overflow: visible;
}

.store-finder-mascot {
  position: absolute;
  top: -10px;
  right: -7px;
  width: auto;
  height: 47px;
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.store-finder svg {
  display: none;
}

@media (max-width: 640px) {
  .store-finder {
    min-width: 38px;
    justify-content: center;
    padding: 0;
  }

  .store-finder-mascot {
    display: none;
  }

  .store-finder svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
    stroke: none;
  }
}

.store-finder > .fa-location-dot {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
}

.category-toggle .category-art i {
  width: auto;
  height: auto;
  font-size: 23px;
  line-height: 1;
}

.mobile-bottom-nav i {
  display: block;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
}

@media (max-width: 640px) {
  .store-finder > .fa-location-dot {
    display: block;
    font-size: 23px;
    line-height: 1;
    position: static;
    transform: none;
  }
}

/* Product detail follows the official KOOP product-page hierarchy. */
.product-page {
  background: #fff;
}

.product-page .page-main {
  width: min(1296px, calc(100% - 48px));
  max-width: 1296px;
  margin: 0 auto;
  padding: 18px 0 52px;
}

.product-page .breadcrumbs {
  margin-bottom: 18px;
  color: #a1a6a2;
  font-size: 12px;
}

.product-detail {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 10px 0 22px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

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

.detail-visual {
  display: flex;
  min-height: 380px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
}

.detail-visual > img,
.detail-visual .image-placeholder {
  width: 100%;
  max-width: 520px;
  height: 365px;
  object-fit: contain;
  transform: none;
}

.detail-visual .deal-mark {
  top: 12px;
  left: 12px;
  width: 90px;
  height: 45px;
}

.detail-buy {
  padding: 0 8px 16px 0;
}

.detail-brand {
  margin: 0 0 10px;
  color: #35ad40;
  font-size: 22px;
  font-weight: 700;
}

.detail-title {
  margin: 0 0 12px;
  color: #171b18;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

.detail-unit {
  margin: 0 0 20px;
  color: #656b67;
  font-size: 14px;
}

.detail-summary {
  margin: 0 0 16px;
  color: #404743;
  font-size: 15px;
  line-height: 1.5;
}

.detail-price {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 24px;
  border-radius: 12px;
  background: #ffeb00;
  color: #17663a;
  font-size: 27px;
  font-weight: 800;
}

.detail-buy .add-form {
  max-width: 540px;
}

.detail-buy .add-form > label {
  display: block;
  margin-bottom: 7px;
  color: #778078;
  font-size: 11px;
}

.detail-buy .purchase-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
}

.detail-buy .quantity-control {
  flex: 0 0 auto;
  height: 44px;
  min-width: 98px;
}

.detail-buy .quantity-control button {
  width: 32px;
}

.detail-buy .quantity-control input {
  width: 32px;
  font-size: 14px;
}

.detail-buy .add-button {
  flex: 1 1 auto;
  min-height: 44px;
  border-radius: 24px;
  background: #35b54b;
  font-size: 13px;
}

.detail-buy .add-button.is-added {
  background: #17663a;
}

.detail-benefits {
  gap: 20px;
  margin-top: 14px;
}

.detail-benefits button {
  font-size: 11px;
}

.detail-note {
  margin-top: 18px;
  font-size: 12px;
}

.product-spec-panel {
  width: 100%;
  max-width: 1296px;
  margin: 18px auto 0;
  padding: 22px 0 28px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.product-spec-panel h2 {
  color: #35ad40;
  font-size: 13px;
}

.product-spec-panel dl {
  font-size: 13px;
}

@media (max-width: 640px) {
  .product-page .page-main {
    width: 100%;
    padding: 10px 12px 42px;
  }

  .product-page .breadcrumbs {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .product-detail {
    padding: 8px 0 18px;
  }

  .detail-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .detail-visual {
    min-height: 270px;
    padding: 6px;
  }

  .detail-visual > img,
  .detail-visual .image-placeholder {
    height: 255px;
  }

  .detail-visual .deal-mark {
    top: 10px;
    left: 8px;
    width: 76px;
    height: 38px;
  }

  .detail-buy {
    padding: 12px 4px 10px;
  }

  .detail-brand {
    margin-bottom: 6px;
    font-size: 19px;
  }

  .detail-title {
    font-size: 17px;
  }

  .detail-unit {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .detail-summary {
    font-size: 14px;
  }

  .detail-price {
    margin-bottom: 18px;
    padding: 7px 20px;
    font-size: 24px;
  }

  .detail-buy .purchase-row {
    gap: 8px;
  }

  .detail-buy .quantity-control {
    min-width: 90px;
  }

  .detail-buy .add-button {
    min-height: 44px;
    font-size: 12px;
  }

  .product-spec-panel {
    margin-top: 4px;
    padding: 20px 4px 28px;
  }
}

/* Responsive cart layout */
.cart-page .page-main {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  min-height: 300px;
  margin: 0 auto;
  padding: 22px 0 58px;
}

.cart-page .breadcrumbs {
  margin-bottom: 18px;
}

.cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.cart-heading h1 {
  margin: 4px 0 3px;
  color: #173d2a;
  font-size: 30px;
  line-height: 1.1;
}

.cart-eyebrow,
.summary-eyebrow {
  color: #3a9b51;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.cart-heading p {
  margin: 0;
  color: #7b8980;
  font-size: 13px;
}

.cart-continue-link,
.cart-continue-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #347c49;
  font-size: 13px;
  font-weight: 600;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 22px;
}

.cart-items {
  display: grid;
  min-width: 0;
  gap: 13px;
}

.cart-item {
  display: grid;
  grid-template-columns: 98px minmax(130px, 1fr) 104px 120px 112px 38px;
  grid-template-areas: "thumb details price quantity total remove";
  align-items: center;
  gap: 13px;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid #e8eee9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(35, 62, 43, 0.045);
}

.cart-item-thumb {
  grid-area: thumb;
  display: grid;
  width: 98px;
  height: 102px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f8f5;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.cart-item-details {
  grid-area: details;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.cart-item-name {
  color: #263b31;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cart-item-brand,
.cart-item-unit {
  color: #7d8981;
  font-size: 11px;
}

.cart-item-price,
.cart-item-total {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cart-item-price {
  grid-area: price;
}

.cart-item-total {
  grid-area: total;
}

.cart-item-price span,
.cart-item-total span {
  color: #89948d;
  font-size: 10px;
}

.cart-item-price strong {
  color: #47594d;
  font-size: 12px;
  font-weight: 600;
}

.cart-item-total strong {
  color: #17663a;
  font-size: 15px;
  font-weight: 700;
}

.cart-update {
  grid-area: quantity;
  display: flex;
  justify-content: flex-start;
}

.cart-quantity {
  display: flex;
  width: fit-content;
  height: 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e3eae4;
  border-radius: 20px;
  background: #fbfcfb;
}

.cart-quantity button {
  width: 30px;
  color: #53705d;
}

.cart-quantity input {
  width: 34px;
  border-color: #edf0ed;
  font-size: 12px;
}

.cart-remove-form {
  grid-area: remove;
  justify-self: end;
}

.remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #f7f8f6;
  color: #87928a;
  font-size: 13px;
  transition: background 0.18s ease, color 0.18s ease;
}

.remove-button:hover {
  background: #fff0ed;
  color: #b4453e;
}

.cart-continue-bottom {
  width: fit-content;
  margin: 4px 0 0 3px;
}

.summary-panel {
  position: sticky;
  top: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  border: 1px solid #e6eee7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(35, 62, 43, 0.07);
}

.summary-panel h2 {
  margin: 6px 0 18px;
  color: #253c2d;
  font-size: 20px;
  font-weight: 700;
}

.summary-panel .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #edf1ed;
  color: #69766d;
  font-size: 13px;
}

.summary-panel .summary-line strong {
  color: #34463a;
  font-weight: 600;
}

.summary-panel .summary-total {
  align-items: center;
  margin-top: 4px;
  padding: 16px 0 8px;
  color: #1d412c !important;
  font-size: 15px;
}

.summary-panel .summary-total strong {
  color: #17663a;
  font-size: 19px;
  font-weight: 800;
}

.summary-panel .full-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
  border-radius: 14px;
  font-size: 13px;
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: #789080;
  font-size: 11px;
  line-height: 1.4;
}

.summary-note i {
  color: #3ba65a;
}

.cart-empty-state {
  display: grid;
  width: min(900px, 100%);
  max-width: 900px;
  min-height: 270px;
  grid-template-columns: 104px minmax(0, 1fr) 205px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 24px;
  margin: 28px auto 56px;
  padding: 38px 48px;
  border: 1px solid #e8eee9;
  border-radius: 22px;
  background: linear-gradient(115deg, #f7fbf7, #fff 72%);
  box-shadow: 0 12px 38px rgba(35, 62, 43, 0.07);
  text-align: left;
}

.empty-cart-icon {
  display: grid;
  width: 88px;
  height: 88px;
  grid-row: 1 / span 2;
  place-items: center;
  border: 1px solid #e0eee2;
  border-radius: 26px;
  background: #edf7ee;
  color: #318a49;
  font-size: 34px;
}

.empty-cart-copy {
  grid-column: 2;
}

.empty-cart-copy h2 {
  margin: 7px 0 8px;
  color: #213d2b;
  font-size: 25px;
}

.empty-cart-copy p {
  max-width: 450px;
  margin: 0;
  color: #7a887f;
  font-size: 14px;
  line-height: 1.6;
}

.empty-cart-cta {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-size: 13px;
}

.empty-campaign-link {
  grid-column: 3;
  grid-row: 2;
  color: #568465;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1050px) and (min-width: 851px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }

  .cart-item {
    grid-template-columns: 82px minmax(110px, 1fr) 88px 105px 96px 32px;
    gap: 8px;
    padding: 12px;
  }

  .cart-item-thumb {
    width: 82px;
    height: 92px;
  }

  .cart-item-name {
    font-size: 12px;
  }

  .cart-item-price strong {
    font-size: 11px;
  }
}

@media (max-width: 850px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-panel {
    position: static;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .cart-page .page-main {
    width: calc(100% - 24px);
    min-height: 55vh;
    padding: 12px 0 38px;
  }

  .cart-page .breadcrumbs {
    margin-bottom: 15px;
  }

  .cart-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .cart-heading h1 {
    font-size: 27px;
  }

  .cart-heading p {
    font-size: 12px;
  }

  .cart-continue-link {
    display: none;
  }

  .cart-layout {
    gap: 16px;
  }

  .cart-items {
    gap: 10px;
  }

  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr) 32px;
    grid-template-areas:
      "thumb details remove"
      "thumb price remove"
      "quantity total total";
    gap: 9px 12px;
    min-height: 0;
    padding: 13px;
    border-radius: 16px;
  }

  .cart-item-thumb {
    width: 80px;
    height: 88px;
    border-radius: 12px;
  }

  .cart-item-thumb img {
    padding: 6px;
  }

  .cart-item-details {
    align-self: end;
    gap: 3px;
  }

  .cart-item-name {
    font-size: 13px;
    line-height: 1.35;
  }

  .cart-item-brand,
  .cart-item-unit {
    font-size: 11px;
  }

  .cart-item-price {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .cart-item-price span,
  .cart-item-total span {
    font-size: 10px;
  }

  .cart-item-price strong {
    font-size: 12px;
  }

  .cart-update {
    justify-content: flex-start;
  }

  .cart-quantity {
    height: 36px;
  }

  .cart-quantity button {
    width: 30px;
  }

  .cart-quantity input {
    width: 32px;
  }

  .cart-item-total {
    align-items: flex-end;
    gap: 2px;
  }

  .cart-item-total strong {
    font-size: 14px;
  }

  .cart-remove-form {
    align-self: start;
  }

  .remove-button {
    width: 32px;
    height: 32px;
  }

  .cart-continue-bottom {
    margin-top: 4px;
    font-size: 12px;
  }

  .summary-panel {
    padding: 21px;
    border-radius: 18px;
  }

  .summary-panel h2 {
    font-size: 18px;
  }

  .summary-panel .summary-line {
    font-size: 12px;
  }

  .summary-panel .summary-total strong {
    font-size: 19px;
  }

  .summary-panel .full-button {
    min-height: 52px;
    border-radius: 14px;
    font-size: 14px;
  }

  .cart-empty-state {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    margin: 15px auto 30px;
    padding: 28px 20px 24px;
    border-radius: 18px;
    text-align: center;
  }

  .empty-cart-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 28px;
  }

  .empty-cart-copy h2 {
    margin: 6px 0;
    font-size: 21px;
  }

  .empty-cart-copy p {
    font-size: 12px;
  }

  .empty-cart-cta {
    width: 100%;
    min-height: 46px;
    margin-top: 3px;
  }

  .empty-campaign-link {
    font-size: 11px;
  }
}

/* Checkout: comfortable scale, clear form hierarchy, and responsive order summary. */
.checkout-page {
  background: #f3f6f2;
}

.checkout-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 22px;
}

.checkout-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid #dce9df;
  border-radius: 13px;
  background: #fff;
  color: #267b40;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.checkout-back-link:hover {
  border-color: #b6d9be;
  background: #f3faf4;
}

.checkout-brand .brand,
.checkout-brand .brand img {
  width: 128px;
  height: 54px;
}

.checkout-brand .brand img {
  object-fit: contain;
}

.checkout-progress {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 70px;
  align-items: center;
  gap: 15px;
  margin: 0 auto 20px;
  padding: 12px 20px;
  border: 1px solid #e4ece5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(34, 63, 42, 0.045);
}

.checkout-progress-step {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 9px;
  color: #78867c;
  font-size: 13px;
  font-weight: 700;
}

.checkout-progress-number {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid #e0e9e1;
  border-radius: 50%;
  background: #f7faf7;
  color: #748279;
  font-size: 12px;
}

.checkout-progress-step.is-complete {
  color: #267a40;
}

.checkout-progress-step.is-complete .checkout-progress-number {
  border-color: #39a954;
  background: #39a954;
  color: #fff;
}

.checkout-progress-step.is-current {
  color: #1f4b2e;
}

.checkout-progress-step.is-current .checkout-progress-number {
  border-color: #ffdf3b;
  background: #ffdf3b;
  color: #245e32;
  font-weight: 900;
}

.checkout-progress-line {
  width: min(190px, 18vw);
  height: 1px;
  background: #dfe8e0;
}

.checkout-layout {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, 0.86fr);
  align-items: start;
  gap: 24px;
  padding: 0 0 64px;
}

.checkout-main,
.checkout-aside {
  display: grid;
  gap: 18px;
}

.checkout-panel {
  padding: 28px;
  border: 1px solid #e6ece6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34, 63, 42, 0.065);
}

.checkout-panel h1,
.checkout-panel h2 {
  margin: 0 0 8px;
  color: #1f3e2b;
  font-size: 22px;
  font-weight: 700;
}

.panel-intro {
  margin: 0 0 22px;
  color: #77857b;
  font-size: 14px;
  line-height: 1.55;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.form-grid label {
  gap: 8px;
  color: #435449;
  font-size: 13px;
  font-weight: 600;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #dfe7e0;
  border-radius: 10px;
  background: #fff;
  color: #293d30;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #48ad5c;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(60, 174, 82, 0.12);
}

.form-grid textarea {
  min-height: 108px;
  padding: 13px 14px;
  resize: vertical;
}

.wide-field {
  grid-column: 1 / -1;
}

.payment-panel h2,
.order-summary-panel h2,
.installment-panel h2 {
  margin-bottom: 18px;
}

.payment-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.payment-options label {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #e1e9e2;
  border-radius: 14px;
  background: #fff;
  color: #526357;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-page .payment-options label.is-selected,
.checkout-page .payment-options label:has(input:checked) {
  border-color: #68b878;
  background: linear-gradient(110deg, #f1faf2, #fff);
  color: #176638;
  box-shadow: 0 0 0 2px rgba(58, 169, 80, 0.08);
}

.payment-option-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.payment-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: #e9f5eb;
  color: #2c9147;
  font-size: 17px;
}

.payment-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.payment-option-copy strong {
  color: #284331;
  font-size: 14px;
  font-weight: 800;
}

.payment-option-copy small {
  color: #7e8b82;
  font-size: 11px;
  font-weight: 500;
}

.payment-option-check {
  flex: 0 0 auto;
  color: #35a451;
  font-size: 19px;
}

.payment-options label:not(.is-selected) .payment-option-check {
  opacity: 0;
}

.card-hint {
  margin: 0 0 14px;
  color: #78867c;
  font-size: 13px;
  line-height: 1.5;
}

.card-grid {
  gap: 16px;
}

.card-grid input {
  letter-spacing: 0.04em;
}

.card-grid label:nth-child(3),
.card-grid label:nth-child(4) {
  grid-column: span 1;
}

.preview-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid #e0ece2;
  border-radius: 11px;
  background: #f5faf5;
  color: #65756a;
  font-size: 11px;
  line-height: 1.55;
}

.preview-disclaimer i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #348a49;
}

.transfer-hint {
  padding: 18px;
  border: 1px solid #e1e9e2;
  border-radius: 12px;
  background: #f8fbf8;
  color: #637469;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-aside .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #edf1ed;
  color: #6e7b72;
  font-size: 14px;
}

.checkout-aside .summary-line strong {
  color: #34483a;
  font-weight: 600;
}

.checkout-aside .summary-total {
  align-items: center;
  padding: 17px 0 10px;
  border-top: 0;
  color: #1d412c !important;
  font-size: 15px;
}

.checkout-aside .summary-total strong {
  color: #17663a;
  font-size: 21px;
  font-weight: 800;
}

.checkout-consent {
  gap: 10px;
  margin: 17px 0 8px;
  color: #69776d;
  font-size: 12px;
  line-height: 1.55;
}

.checkout-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.checkout-aside .full-button {
  min-height: 54px;
  margin-top: 14px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

.installment-panel {
  padding-top: 26px;
}

.installment-row {
  min-height: 46px;
  padding: 8px 2px;
  border-bottom: 1px solid #edf1ed;
  color: #5b6c60;
  font-size: 13px;
}

.installment-row:last-child {
  border-bottom: 0;
}

.installment-row strong {
  color: #35513d;
  font-weight: 600;
}

@media (max-width: 850px) {
  .checkout-brand,
  .checkout-layout {
    width: min(720px, calc(100% - 32px));
  }

  .checkout-brand {
    padding: 20px 0 16px;
  }

  .checkout-brand .brand,
  .checkout-brand .brand img {
    width: 112px;
    height: 48px;
  }

  .checkout-back-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #dce9df;
    border-radius: 12px;
    background: #fff;
    color: #267b40;
    font-size: 12px;
    font-weight: 700;
  }

  .checkout-progress {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto 15px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 52px;
  }

  .checkout-aside {
    grid-row: 2;
  }

  .checkout-main {
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .checkout-brand,
  .checkout-layout {
    width: calc(100% - 28px);
  }

  .checkout-brand {
    padding: 18px 0 14px;
  }

  .checkout-back-link {
    min-height: 38px;
    gap: 7px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 11px;
  }

  .checkout-progress {
    width: calc(100% - 28px);
    min-height: 58px;
    gap: 9px;
    margin-bottom: 13px;
    padding: 9px 12px;
    border-radius: 14px;
  }

  .checkout-progress-step {
    gap: 7px;
    font-size: 11px;
  }

  .checkout-progress-number {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 11px;
  }

  .checkout-progress-line {
    width: auto;
    min-width: 16px;
    flex: 1 1 auto;
  }

  .checkout-layout {
    gap: 13px;
    padding-bottom: 34px;
  }

  .checkout-main,
  .checkout-aside {
    gap: 13px;
  }

  .checkout-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .checkout-panel h1,
  .checkout-panel h2 {
    font-size: 20px;
  }

  .panel-intro {
    margin-bottom: 17px;
    font-size: 13px;
  }

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

  .form-grid label {
    gap: 7px;
    font-size: 12.5px;
  }

  .form-grid input,
  .form-grid textarea {
    height: 50px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 14px;
  }

  .form-grid textarea {
    min-height: 102px;
    padding: 12px;
  }

  .payment-options {
    gap: 9px;
    margin-bottom: 16px;
  }

  .payment-options label {
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 13px;
  }

  .payment-option-main {
    gap: 10px;
  }

  .payment-option-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
    font-size: 15px;
  }

  .payment-option-copy strong {
    font-size: 13px;
  }

  .payment-option-copy small {
    font-size: 10px;
  }

  .payment-option-check {
    font-size: 17px;
  }

  .card-hint {
    font-size: 12px;
  }

  .card-grid {
    gap: 13px 10px;
  }

  .checkout-aside .summary-line {
    padding: 12px 0;
    font-size: 13px;
  }

  .checkout-aside .summary-total strong {
    font-size: 19px;
  }

  .checkout-aside .full-button {
    min-height: 50px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-field {
    grid-column: 1 / -1;
  }
}

/* Account links and SQL-backed animated search in the KOOP header. */
.header-actions-stack {
  display: flex;
  min-width: max-content;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.header-account-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-right: 4px;
  color: #36774a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.header-account-links span {
  color: #a8b5ab;
}

.header-account-links a {
  transition: color 0.18s ease;
}

.header-account-links a:hover {
  color: #135e32;
  text-decoration: underline;
}

.main-nav .header-account-links {
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
  padding: 0;
}

.main-nav .header-account-links a.header-account-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #35a950;
  border-radius: 18px;
  background: #f0f7f1;
  color: #23743c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-nav .header-account-links a.header-account-button-primary {
  background: #35a950;
  color: #fff;
}

.main-nav .header-account-links a.header-account-button:hover {
  border-color: #23813c;
  background: #278e42;
  color: #fff;
}

.header-search input::placeholder {
  color: #66736a;
  opacity: 0.58;
}

.store-finder-pin {
  display: none;
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-rows: 58px 38px 22px;
    gap: 8px 0;
    padding: 6px 0 8px;
  }

  .header-actions-stack {
    display: contents;
  }

  .header-utilities {
    top: 12px;
    right: 0;
    display: flex;
    width: auto;
    min-width: 0;
    height: 40px;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 0;
  }

  .store-finder {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--koop-green);
    font-size: 0;
  }

  .store-finder span {
    display: none;
  }

  .store-finder-pin {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .store-finder > .fa-location-dot {
    display: none;
  }

  .header-cart {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid #dcece0;
    border-radius: 50%;
    background: #eff7f0;
  }

  .header-cart svg {
    width: 20px;
    height: 20px;
  }

  .header-account-links {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 4px;
    gap: 8px;
    padding-right: 2px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .header-utilities {
    gap: 4px;
  }

  .store-finder,
  .header-cart {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .header-account-links {
    font-size: 9px;
  }
}

/* Keep product names readable and follow the supplied KOOP product-card treatment. */
.product-card {
  overflow: hidden;
  border: 1px solid #e8ece8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 55, 38, 0.045);
}

.product-card-link {
  min-height: 0;
  flex: 1 1 auto;
}

.product-card .product-image {
  box-sizing: border-box;
  overflow: hidden;
  height: 168px;
  flex: 0 0 168px;
  padding: 12px 14px 5px;
}

.product-card .product-info {
  box-sizing: border-box;
  display: flex !important;
  min-height: 88px;
  flex: 0 0 auto;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 12px;
  background: #fff;
}

.product-card .product-name {
  box-sizing: border-box;
  display: -webkit-box !important;
  width: 100%;
  min-height: 32px;
  max-height: 34px;
  flex: 1 0 32px;
  overflow: hidden;
  color: #263b31 !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.35 !important;
  opacity: 1 !important;
  text-align: center;
  text-overflow: ellipsis;
  visibility: visible !important;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .deal-mark {
  display: block;
  width: 70px;
  height: 42px;
  padding: 5px;
  background: rgba(255,255,255,.94);
  border-radius: 0 0 9px 0;
}

.product-price-wrap { display:flex; flex-direction:column; align-items:center; gap:3px; width:100%; }
.product-price-wrap del { color:#8b938d; font-size:10px; font-weight:700; }
.detail-price { display:flex; align-items:center; gap:12px; }
.detail-price del { color:#9aa29c; font-size:16px; font-weight:600; }
.detail-price strong { color:inherit; font:inherit; }
.showcase-product-price { display:flex; flex-direction:column; align-items:center; gap:2px; }
.showcase-product-price del { color:#66746a; font-size:10px; font-weight:700; }
.showcase-product-price strong { color:inherit; font:inherit; }
.showcase-empty { display:flex; min-height:148px; flex:1; align-items:center; justify-content:center; margin:0 20px; padding:20px; border-radius:14px; background:rgba(255,255,255,.96); color:#286c3a; text-align:center; font-size:14px; font-weight:700; line-height:1.55; }
.product-description-text { margin:0 0 18px; color:#435148; font-size:13px; line-height:1.7; }
.shipping-rule { margin:8px 0 14px; padding:9px 10px; border-radius:8px; background:#f2f9f3; color:#23743b; font-size:11px; line-height:1.4; }
.form-grid select { width:100%; min-height:50px; border:1px solid #dfe6e1; border-radius:10px; background:#fff; color:#2f3f35; padding:0 12px; font:inherit; }
.form-grid select:focus { outline:2px solid rgba(53,189,86,.18); border-color:#35bd56; }
.checkout-layout { grid-template-columns:minmax(0, 760px); justify-content:center; }
.checkout-main { width:100%; }
.order-summary-compact { display:grid; grid-template-columns:1fr repeat(3,auto); align-items:center; gap:8px 20px; padding:18px 22px; }
.order-summary-compact h2 { margin:0; }
.order-summary-compact .summary-line { border:0; padding:0; gap:8px; white-space:nowrap; }
.installment-panel { margin-top:18px; padding:16px; border:1px solid #e3ebe5; border-radius:12px; background:#fafcfb; }
.checkout-submit { min-height:50px; margin-top:14px; }
.quantity-control input.is-bumping,.cart-quantity input.is-bumping { animation:quantityBump .26s ease; }
[data-quantity-step].is-tapped { animation:quantityTap .26s ease; }
.mobile-bottom-nav a.is-cart-pulsing i { animation:cartPulse .55s ease; }
@keyframes quantityBump { 50% { transform:scale(1.16); color:#17833c; } }
@keyframes quantityTap { 50% { transform:scale(.84); } }
@keyframes cartPulse { 45% { transform:translateY(-5px) scale(1.2); color:#ffe33f; } }

.product-card .product-price {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ffeb00;
  color: #176a37;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.product-card .quick-add {
  box-sizing: border-box;
  bottom: 12px;
}

.product-card .quick-add button {
  box-sizing: border-box;
  border-radius: 8px;
}

/* Detail-page recommendation rails share the same SQL-backed product cards. */
.product-page .page-main {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 0 70px;
}

.product-page .product-spec-panel {
  width: min(900px, 100%);
  max-width: 900px;
  margin: 22px auto 30px;
  padding: 24px 28px;
  border: 1px solid #e8eee9;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(35, 45, 37, 0.045);
}

.product-page .product-spec-panel h2 {
  margin-bottom: 18px;
  font-size: 13px;
}

.product-page .product-spec-panel dl {
  color: #3e4c42;
  font-size: 13px;
  line-height: 1.55;
}

.related-products {
  width: min(1100px, 100%);
  margin: 30px auto 0;
}

.related-products-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 15px;
}

.related-products-heading h2 {
  margin: 0;
  color: #26392d;
  font-size: 21px;
  font-weight: 700;
}

.related-products-heading span {
  color: #829087;
  font-size: 12px;
}

.related-carousel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
}

.related-products-viewport {
  min-width: 0;
  overflow: hidden;
  padding: 3px 1px 12px;
}

.related-products-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.25, 1);
  will-change: transform;
}

.related-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 252px;
  flex: 0 0 calc((100% - 64px) / 5);
  flex-direction: column;
}

.related-product-card .product-card-link {
  min-height: 0;
}

.related-product-card .product-image {
  height: 158px;
  flex-basis: 158px;
}

.related-product-card .product-info {
  min-height: 86px;
}

.related-carousel-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dfeae1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 55, 38, 0.08);
  color: #2e8a49;
  font-size: 25px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.related-carousel-arrow:hover {
  transform: translateY(-1px);
  background: #2fae50;
  color: #fff;
}

@media (min-width: 641px) {
  .header-inner .main-nav {
    display: flex;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin: 0;
    padding: 0;
  }

  .header-inner .main-nav > a {
    color: #303b34;
    font-size: 13px;
  }
}

@media (max-width: 850px) {
  .related-product-card {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 0;
    grid-template-rows: 58px 38px;
    gap: 8px 0;
    padding: 6px 0 8px;
  }

  .header-inner .main-nav {
    display: none !important;
  }

  .main-nav .header-account-links {
    display: none !important;
  }

  .header-utilities {
    top: 12px;
    right: 0;
    display: flex;
    width: auto;
    min-width: 0;
    height: 40px;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 0;
  }

  .store-finder {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--koop-green);
    font-size: 0;
  }

  .store-finder span {
    display: none;
  }

  .header-cart {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid #dcece0;
    border-radius: 50%;
    background: #eff7f0;
  }

  .related-products {
    margin-top: 23px;
  }

  .related-products-heading {
    margin-bottom: 12px;
  }

  .related-products-heading h2 {
    font-size: 17px;
  }

  .related-products-heading span {
    font-size: 10px;
  }

  .related-carousel {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .related-products-track {
    gap: 12px;
  }

  .related-product-card {
    min-height: 230px;
    flex-basis: calc((100% - 12px) / 2);
  }

  .related-product-card .product-image {
    height: 138px;
    flex-basis: 138px;
  }

  .related-product-card .product-info {
    min-height: 82px;
  }

  .related-carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .product-page .product-spec-panel {
    margin: 16px auto 22px;
    padding: 20px 17px;
  }

  .product-page .product-spec-panel dl {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .product-card .product-image {
    height: 148px;
    flex-basis: 148px;
  }

  .product-card .product-info {
    min-height: 84px;
  }

  .product-card .product-name {
    font-size: 11px !important;
  }
}

/* KOOP-branded page transition overlay. */
.page-loading-overlay {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  background: rgba(28, 31, 29, 0.55);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(2px);
  transition: opacity 160ms ease, visibility 160ms ease;
}

.page-loading-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.page-loading-content {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-loading-logo {
  display: block;
  width: min(150px, 42vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(22, 70, 38, 0.16));
  animation: koop-loader-pulse 1.5s ease-in-out infinite;
}

.page-loading-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #39ae51;
  border-radius: 50%;
  animation: koop-loader-spin 0.75s linear infinite;
}

@keyframes koop-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes koop-loader-pulse {
  0%, 100% { opacity: 0.88; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading-overlay {
    transition: none;
  }

  .page-loading-logo,
  .page-loading-spinner {
    animation: none;
  }
}

/* Mobile catalogue: compact navigation, a single swipeable category row, and consistent cards. */
@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 0;
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 62px 42px;
    gap: 8px 0;
    padding: 6px 0 9px;
  }

  .brand,
  .brand img {
    width: 160px;
    min-width: 160px;
    height: 54px;
  }

  .header-tools {
    width: 100%;
    height: 42px;
    grid-column: 1;
    grid-row: 2;
  }

  .header-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 40px;
    margin-right: 0;
    border: 1px solid #e1e9e2;
    background: #f1f5f1;
  }

  .header-search input {
    padding: 0 13px;
    color: #536158;
    font-size: 13px;
    font-weight: 500;
  }

  .header-search button {
    min-width: 58px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
  }

  .header-inner .main-nav {
    display: none !important;
  }

  .header-utilities {
    top: 12px;
    right: 0;
    width: auto;
    min-width: 0;
    height: 40px;
    gap: 7px;
  }

  .store-finder,
  .header-cart {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid #e1e9e2;
    border-radius: 50%;
    background: #f1f7f2;
  }

  .store-finder i,
  .header-cart i,
  .store-finder svg,
  .header-cart svg {
    font-size: 18px;
  }

  .catalog-main {
    width: 100%;
    padding: 8px 12px 18px;
  }

  .category-strip {
    display: flex !important;
    width: calc(100% + 24px);
    flex-wrap: nowrap;
    gap: 8px;
    margin: 5px -12px 12px;
    padding: 0 12px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-tile {
    display: flex;
    width: 86px;
    min-width: 86px;
    min-height: 108px;
    height: 108px;
    flex: 0 0 86px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 3px 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.2;
    scroll-snap-align: start;
  }

  .category-art {
    width: 68px;
    min-width: 68px;
    height: 68px;
    min-height: 68px;
    margin: 0 auto;
    border-radius: 9px;
    background: #fff5ed;
  }

  .category-art img {
    width: 100%;
    height: 100%;
    padding: 4px;
    border-radius: 9px;
    object-fit: contain;
  }

  .category-tile > span:last-child {
    display: -webkit-box;
    width: 100%;
    min-height: 28px;
    max-height: 28px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .category-tile.is-active {
    border-color: #48b95f;
    background: #eff9f0;
  }

  .category-tile.is-active .category-art {
    box-shadow: 0 0 0 2px rgba(55, 177, 76, 0.13);
  }

  .category-toggle .category-art {
    background: #edf8ee;
    color: #198447;
  }

  .campaign-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    margin: 0 0 18px;
    padding: 14px 13px 13px;
    border: 1px solid rgba(18, 117, 47, 0.16);
    border-radius: 17px;
    background: linear-gradient(145deg, #38b451 0%, #238d3e 100%);
    box-shadow: 0 8px 20px rgba(21, 111, 47, 0.17);
  }

  .showcase-intro {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 34px 34px;
    align-items: stretch;
    gap: 7px 9px;
  }

  .campaign-showcase:not(.is-home-showcase) .showcase-intro {
    grid-template-columns: 104px repeat(2, minmax(0, 1fr));
  }

  .campaign-showcase:not(.is-home-showcase) .showcase-dates {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .showcase-logo {
    width: 104px;
    height: 72px;
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    object-fit: contain;
  }

  .showcase-dates {
    min-width: 0;
    grid-column: 2 / 4;
    grid-row: 1;
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 5px 8px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.15;
  }

  .campaign-showcase.is-home-showcase .showcase-dates {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }

  .showcase-intro .showcase-action:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .campaign-showcase:not(.is-home-showcase) .showcase-intro .showcase-action:nth-child(3) {
    grid-column: 2;
  }

  .showcase-intro .showcase-action:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .showcase-action {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 11px;
    background: #fff;
    color: #237b3b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15px;
    line-height: 1.15;
  }

  .showcase-carousel {
    min-height: 210px;
    padding: 0 31px;
  }

  .showcase-track {
    gap: 10px;
  }

  .showcase-card {
    min-height: 202px;
    flex-basis: 76%;
    border: 1px solid #e9efe9;
    border-radius: 13px;
    box-shadow: 0 6px 16px rgba(20, 71, 31, 0.16);
  }

  .showcase-card-link {
    min-height: 202px;
    padding: 9px 10px 10px;
  }

  .showcase-product-image {
    width: 100%;
    height: 119px;
    min-height: 0;
    max-height: 119px;
    margin: auto 0 6px;
    object-fit: contain;
  }

  .showcase-product-name {
    min-height: 28px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
  }

  .showcase-product-price {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    padding: 4px 9px;
    border-radius: 9px;
    background: #ffeb00;
    color: #176a37;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1px;
  }

  .showcase-arrow {
    width: 30px;
    height: 38px;
    border: 1px solid #e5ece6;
    border-radius: 11px;
    color: #248e40;
    font-size: 28px;
  }

  .catalog-toolbar {
    gap: 8px;
    margin: 0 0 10px;
  }

  .result-copy {
    max-width: 72%;
    font-size: 10px;
    line-height: 1.3;
  }

  .sort-form select {
    max-width: 96px;
    min-height: 32px;
    font-size: 10px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  .product-card {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    border: 1px solid #e6ece7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(41, 55, 48, 0.075);
  }

  .product-card-link {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
  }

  .product-card .product-image {
    box-sizing: border-box;
    height: 142px;
    flex: 0 0 142px;
    padding: 12px 10px 4px;
  }

  .product-card .product-info {
    box-sizing: border-box;
    display: flex !important;
    width: 100%;
    min-height: 76px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 5px;
    padding: 5px 8px 6px;
  }

  .product-card .product-name {
    display: block !important;
    position: relative;
    width: 100%;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    min-width: 0;
    flex: 0 0 30px;
    overflow: hidden;
    padding: 0 3px;
    background: transparent;
    color: #263b31 !important;
    -webkit-text-fill-color: #263b31;
    font-size: 12.5px !important;
    font-weight: 700;
    line-height: 15px !important;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-overflow: ellipsis;
  }

  .product-card .product-price {
    display: flex;
    width: 100%;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 4px 10px;
    border-radius: 10px;
    background: #ffeb00;
    color: #176a37;
    font-size: 14px;
    font-weight: 900;
  }

  .product-card .quick-add {
    position: static;
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0 8px 7px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .product-card .quick-add button {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(28, 111, 49, 0.16);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15px;
  }

  .mobile-bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 5px 8px env(safe-area-inset-bottom, 0px);
    border-top: 2px solid #f2df36;
    background: linear-gradient(110deg, #21883b, #2ba144);
    box-shadow: 0 -7px 22px rgba(20, 83, 37, 0.25);
  }

  .mobile-bottom-nav a {
    min-height: 56px;
    gap: 3px;
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .mobile-bottom-nav i {
    width: 24px;
    height: 24px;
    font-size: 21px;
    line-height: 24px;
  }

  .mobile-cart-count {
    top: 1px;
    left: calc(50% + 10px);
    min-width: 16px;
    height: 16px;
    border: 2px solid #2b9841;
    background: #ffe33f;
    color: #206b36;
  }

  body.has-mobile-nav {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .back-to-top {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

/* Keep the delivery and payment form comfortable on narrow screens. */
.checkout-page .checkout-layout {
  width: min(760px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}

.checkout-page .checkout-main,
.checkout-page .checkout-panel,
.checkout-page .checkout-form {
  min-width: 0;
}

@media (max-width: 640px) {
  .checkout-page .checkout-brand,
  .checkout-page .checkout-progress,
  .checkout-page .checkout-layout {
    width: calc(100% - 24px);
  }

  .checkout-page .checkout-brand {
    padding: 14px 0 11px;
  }

  .checkout-page .checkout-brand .brand,
  .checkout-page .checkout-brand .brand img {
    width: 100px;
    height: 42px;
  }

  .checkout-page .checkout-back-link {
    min-height: 36px;
    gap: 6px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 11px;
  }

  .checkout-page .checkout-progress {
    min-height: 54px;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .checkout-page .checkout-progress-step {
    gap: 6px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .checkout-page .checkout-progress-number {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .checkout-page .checkout-layout {
    gap: 10px;
    padding-bottom: 24px;
  }

  .checkout-page .checkout-main {
    gap: 10px;
  }

  .checkout-page .checkout-panel {
    padding: 17px 14px;
    border-radius: 16px;
  }

  .checkout-page .checkout-panel h1,
  .checkout-page .checkout-panel h2 {
    font-size: 18px;
  }

  .checkout-page .panel-intro {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .checkout-page .order-summary-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 10px;
    padding: 14px;
  }

  .checkout-page .order-summary-compact h2 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 16px;
  }

  .checkout-page .order-summary-compact .summary-line {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
    border: 0;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }

  .checkout-page .order-summary-compact .summary-line > span,
  .checkout-page .order-summary-compact .summary-line > strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .checkout-page .order-summary-compact .summary-total {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e7eee8;
    font-size: 12px;
  }

  .checkout-page .order-summary-compact .summary-total strong:last-child {
    color: #18723b;
    font-size: 16px;
    white-space: nowrap;
  }

  .checkout-page .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
  }

  .checkout-page .form-grid label {
    min-width: 0;
    gap: 6px;
    font-size: 11.5px;
  }

  .checkout-page .form-grid input,
  .checkout-page .form-grid select,
  .checkout-page .form-grid textarea {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .checkout-page .form-grid textarea {
    min-height: 82px;
    padding: 11px 10px;
  }

  .checkout-page .payment-options {
    margin-bottom: 12px;
  }

  .checkout-page .payment-options label {
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .checkout-page .payment-option-main {
    gap: 9px;
  }

  .checkout-page .payment-option-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .checkout-page .card-hint {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .checkout-page .card-grid {
    gap: 11px 9px;
  }

  .checkout-page .preview-disclaimer {
    gap: 7px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.45;
  }

  .checkout-page .installment-panel {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .checkout-page .installment-panel h2 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .checkout-page .installment-row {
    min-height: 42px;
    padding: 7px 2px;
    font-size: 12px;
  }

  .checkout-page .checkout-consent {
    gap: 8px;
    margin: 13px 0 7px;
    font-size: 11px;
    line-height: 1.45;
  }

  .checkout-page .checkout-consent input {
    width: 18px;
    height: 18px;
  }

  .checkout-page .checkout-submit {
    display: flex;
    width: 100%;
    min-height: 50px;
    justify-content: center;
    margin-top: 12px;
    border-radius: 12px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .checkout-page .checkout-progress {
    padding-right: 8px;
    padding-left: 8px;
  }

  .checkout-page .checkout-progress-step {
    gap: 5px;
    font-size: 10px;
  }

  .checkout-page .checkout-progress-number {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .checkout-page .checkout-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .checkout-page .order-summary-compact {
    padding: 12px;
  }

  .checkout-page .form-grid {
    column-gap: 8px;
  }

  .checkout-page .form-grid input,
  .checkout-page .form-grid select {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }
}
