:is(.market-catalogue, .market-product) {
  --collection-forest: #102e21;
  --collection-cream: #fbf7eb;
  --collection-mustard: #f2c85d;
  --collection-line: #dfd7c3;
  --collection-display: "Noto Serif Devanagari", Georgia, serif;
}

html[lang="en"] :is(.market-catalogue, .market-product) {
  --collection-display: "Playfair Display", Georgia, serif;
}

.market-catalogue { padding-block: clamp(20px, 3.4vw, 48px) clamp(44px, 6vw, 84px); }

.market-catalogue .market-catalogue-title {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-height: clamp(188px, 20vw, 270px);
  padding: clamp(22px, 4.2vw, 58px);
  border: 1px solid #244332;
  border-radius: 23px;
  color: var(--collection-cream);
  background:
    linear-gradient(90deg, #102e21 0%, #102e21 31%, #102e21e8 48%, #102e2140 75%, #102e2105 100%),
    url("/assets/collection-scene-v2.webp") right bottom / cover no-repeat,
    var(--collection-forest);
  box-shadow: 0 14px 32px #20362c12;
}

.market-catalogue .market-catalogue-title h1,
.market-product .market-product-info h1 {
  font-family: var(--collection-display);
  font-weight: 600;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.market-catalogue .market-catalogue-title h1 {
  color: inherit;
  font-size: clamp(32px, 4.55vw, 64px);
  line-height: 1.22;
}

.market-catalogue .market-catalogue-title p {
  margin-top: 7px;
  color: #f6df9d;
  font: 650 14px/1.4 var(--shop-sans);
  letter-spacing: .035em;
}

.market-catalogue .market-catalogue-title > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #fff7dc;
  text-decoration: underline;
  text-decoration-color: #f6df9d92;
  text-underline-offset: 5px;
}

.market-catalogue .market-catalogue-title > a:hover { text-decoration-color: currentColor; }
.market-catalogue .market-catalogue-title > a:focus-visible { outline-color: var(--collection-mustard); }

.market-catalogue .market-filters {
  gap: 12px 16px;
  margin: clamp(18px, 2.8vw, 34px) 0 10px;
  padding: 9px;
  border: 1px solid var(--collection-line);
  border-radius: 15px;
  background: #fffdf6;
}

.market-catalogue .market-filter-group { gap: 6px; }
.market-catalogue .market-filter-group button,
.market-catalogue .market-sort select {
  min-height: 44px;
  border: 1px solid transparent;
  padding: 8px 14px;
  background: #f3eee1;
}

.market-catalogue .market-filter-group button[aria-pressed="true"] {
  background: var(--collection-forest);
  border-color: var(--collection-forest);
  color: #fffdf6;
}

.market-catalogue .market-sort select {
  max-width: 100%;
  padding-right: 12px;
  border-color: var(--collection-line);
  background-color: #fffdf6;
}

.market-catalogue #filter-status {
  margin-block: 12px 14px;
  color: #51624e;
  font: 650 13px/1.4 var(--shop-sans);
}

:is(.market-catalogue, .market-product) .market-grid { gap: clamp(11px, 1.65vw, 24px); }

:is(.market-catalogue, .market-product) .market-grid .market-pack {
  display: flex;
  flex-direction: column;
  border-color: #e7dfcf;
  border-radius: 18px;
  background: #fffdf6;
  box-shadow: 0 5px 15px #35280e0a;
}

:is(.market-catalogue, .market-product) .market-grid .market-pack[hidden] { display: none; }

:is(.market-catalogue, .market-product) .market-pack-image {
  margin: 8px 8px 0;
  padding: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 25%, #fffdf4, #f4ead4 90%);
}

:is(.market-catalogue, .market-product) .market-pack-image img {
  aspect-ratio: 1.1;
  transition: transform .35s var(--shop-motion);
}

:is(.market-catalogue, .market-product) .market-pack-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(11px, 1.3vw, 18px);
}

:is(.market-catalogue, .market-product) .market-pack-title h3 {
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.3;
  letter-spacing: -.025em;
  white-space: normal;
}

:is(.market-catalogue, .market-product) .market-pack-title > span {
  color: #536350;
  font-size: 11px;
  line-height: 1.2;
}

:is(.market-catalogue, .market-product) .market-pack .pack-price { margin: 6px 0 14px; }
:is(.market-catalogue, .market-product) .market-pack .pack-price strong { font-size: clamp(19px, 1.7vw, 25px); }
:is(.market-catalogue, .market-product) .market-pack .shopping-actions { margin-top: auto; }

:is(.market-catalogue, .market-product) .market-pack .shopping-actions .btn {
  min-height: 44px;
  border-radius: 9px;
}

.market-product { padding-block: clamp(18px, 2.8vw, 36px) clamp(42px, 6vw, 76px); }

.market-product .market-product-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}

.market-product .market-product-back:hover { text-decoration: underline; }

.market-product .market-product-layout {
  gap: clamp(24px, 4.5vw, 64px);
  margin-top: 8px;
  margin-bottom: clamp(35px, 6vw, 78px);
}

.market-product .market-product-layout .product-gallery { align-self: start; }

.market-product .market-product-layout .gallery-window {
  border-color: #e5d8ba;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 20%, #fffdf3 0%, #f4ead3 75%);
  box-shadow: 0 8px 23px #4a36120c;
}

.market-product .market-product-layout .gallery-track { height: clamp(365px, 42vw, 575px); }
.market-product .market-product-layout .gallery-picture { padding: clamp(14px, 2vw, 28px); }
.market-product .market-product-layout .gallery-arrow { width: 44px; height: 44px; }
.market-product .market-product-layout .gallery-enlarge { width: 44px; height: 44px; }

.market-product .market-product-layout .gallery-selector button {
  padding-inline: 19px;
  border-color: #ded3b9;
  background: #fffdf6;
  color: var(--collection-forest);
  font-weight: 700;
}

.market-product .market-product-layout .gallery-selector button[aria-pressed="true"] {
  border-color: var(--collection-forest);
  background: var(--collection-forest);
  color: #fffdf6;
}

.market-product .market-product-info { padding-top: clamp(4px, 1.1vw, 18px); }

.market-product .market-product-info h1 {
  max-width: 15ch;
  margin-bottom: 13px;
  color: var(--collection-forest);
  font-size: clamp(31px, 4.2vw, 61px);
  line-height: 1.17;
}

.market-product .market-product-size {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 1px solid #dfc688;
  border-radius: 7px;
  color: #604514;
  background: #f9ebc6;
  font: 750 14px/1.4 var(--shop-sans);
}

.market-product .market-product-info .product-price strong {
  font-size: clamp(30px, 3.4vw, 47px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

.market-product .market-product-info .variant-list { gap: 7px; }

.market-product .market-product-info .variant-list a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #dbd8c7;
  border-radius: 8px;
  background: #fffdf6;
  color: #274637;
  font: 650 13px/1.4 var(--shop-sans);
}

.market-product .market-product-info .variant-list a:hover { border-color: #688675; }

.market-product .market-product-info .variant-list [aria-current] {
  border-color: var(--collection-forest);
  background: #e3ecdd;
  color: var(--collection-forest);
  box-shadow: inset 0 0 0 1px var(--collection-forest);
}

.market-product .market-product-quantity { margin-block: 4px 15px; }

.market-product .market-product-quantity .qty {
  height: auto;
  border-color: #d6d7c6;
  border-radius: 9px;
  background: #fffdf6;
}

.market-product .market-product-quantity .qty :is(button, input) { min-height: 44px; }
.market-product .market-product-quantity .qty button { width: 44px; }
.market-product .market-product-quantity .qty input { width: 45px; font-size: 16px; }

.market-product .market-product-info .shopping-actions .btn {
  min-height: 51px;
  border-radius: 10px;
}

.market-product .market-product-info .shopping-actions .buy-now {
  border-color: var(--collection-mustard);
  color: var(--collection-forest);
  background: var(--collection-mustard);
  box-shadow: 0 4px 12px #9e701b24;
}

.market-product .market-delivery {
  margin-top: 20px;
  padding: 14px;
  border-color: #e4d6b7;
  border-radius: 12px;
  background: #f7efd9;
}

.market-product .market-delivery :is(input, button) { min-height: 44px; }
.market-product .market-delivery button { padding-inline: 15px; }
.market-product .market-product-details { margin-top: 16px; padding-top: 0; border-color: var(--collection-line); }
.market-product .market-product-details summary { padding-block: 12px; }
.market-product .market-related { padding-top: clamp(22px, 4vw, 44px); border-color: var(--collection-line); }
.market-product .market-related .market-section-head h2 { font-family: var(--collection-display); font-weight: 600; }

@media (min-width: 761px) and (max-width: 1050px) {
  .market-catalogue .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .market-catalogue .market-catalogue-title {
    min-height: 177px;
    gap: 5px;
    border-radius: 15px;
    background-image:
      linear-gradient(90deg, #102e21 0%, #102e21f7 36%, #102e21a8 100%),
      url("/assets/collection-scene-v2.webp");
  }

  .market-catalogue .market-catalogue-title h1 { font-size: clamp(29px, 7.2vw, 50px); }
  .market-catalogue .market-filters { border-radius: 12px; }
  .market-catalogue .market-filter-group button { padding-inline: 9px; font-size: 12px; }
  .market-catalogue .market-sort select { font-size: 13px; }
  .market-product .market-product-layout { gap: 18px; }
  .market-product .market-product-layout .gallery-window { border-radius: 16px; }
  .market-product .market-product-layout .gallery-track { height: clamp(252px, 79vw, 425px); }
  .market-product .market-product-layout .gallery-selector { padding-top: 9px; }
  .market-product .market-product-info h1 { max-width: 19ch; font-size: clamp(30px, 7.4vw, 48px); }
}

@media (max-width: 400px) {
  :is(.market-catalogue, .market-product) .market-pack .shopping-actions { grid-template-columns: 1fr; }
  :is(.market-catalogue, .market-product) .market-pack .shopping-actions .btn { font-size: 12px; }
  :is(.market-catalogue, .market-product) .market-pack-title { flex-wrap: wrap; }
}
