:root {
  --shop-motion: cubic-bezier(.2,.75,.25,1);
  --shop-deep: #123b2b;
}

.market-page [hidden], .page-checkout [hidden] { display: none !important; }
.market-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.market-page :focus-visible, .page-checkout :focus-visible { outline: 2px solid #8e6617; outline-offset: 4px; }
.market-utility :focus-visible, .market-hero :focus-visible, .market-craft :focus-visible { outline-color: #ffe3a4; }
.market-utility { background: var(--shop-deep); color: #fff4d3; font: 700 12px/1.4 var(--shop-sans); }
.market-utility > div { max-width: 1370px; padding: 3px 32px; margin: auto; display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 10px; }
.market-utility > div > a { padding: 4px 0; }
.market-utility > div > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.market-utility .market-language { background: #ffffff13; padding: 2px; }
.market-utility .market-language a { color: #fff4d3; font-size: 11px; padding: 3px 7px; }
.market-utility .market-language a[aria-current] { color: var(--shop-deep); background: #ffefd0; }
.market-page .market-header { background: #fffdf7f7; box-shadow: 0 7px 25px #112c2009; }
.market-page .market-header-inner { min-height: 76px; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(12px,2.4vw,40px); }
.market-page .market-header .nav { justify-content: center; gap: clamp(12px,2vw,30px); }
.market-page .market-header .nav > a { position: relative; border: 0; white-space: nowrap; }
.market-header .nav > a::after { content: ""; position: absolute; inset: auto 0 1px; height: 2px; border-radius: 2px; background: #b88b2e; transform: scaleX(0); transform-origin: left; transition: transform .22s var(--shop-motion); }
.market-header .nav > a:is(:hover,[aria-current])::after { transform: scaleX(1); }
.market-header .nav .market-mobile-account { display: none; }
.market-header .nav .market-offer-nav { color: #845718; }
.market-actions > :is(button,a) { transition: background .2s, border-color .2s, color .2s; }
.market-search-button, .market-account, .market-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; color: var(--shop-green); }
.market-search-button { padding: 7px 10px; border: 1px solid #e6e3d5; background: #f4f1e8; border-radius: 10px; font: inherit; font-size: 13px; white-space: nowrap; }
.market-search-button kbd { margin-left: 4px; padding: 1px 5px; border: 1px solid #d9dbcd; background: #fffdf5; border-radius: 4px; font: inherit; }
.market-account { font-size: 13px; }
.market-header :is(.market-search-button,.market-account,.market-cart,.market-menu):hover { background: #ecefe2; }
.market-header :is(.market-search-button,.market-account,.market-menu) svg, .market-search-field svg { width: 21px; height: 21px; flex: 0 0 auto; }
.market-page .market-cart { min-height: 44px; border: 1px solid #c9d5c5; background: #e9f0e5; border-radius: 12px; }
.market-page .market-cart [data-count] { min-width: 18px; height: 18px; padding: 0 3px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: var(--shop-green); font-size: 11px; }

.market-page .market-hero {
  position: relative;
  min-height: clamp(460px,40vw,580px);
  background: radial-gradient(ellipse at 73% 48%, #507747 0, #285238 29%, #153d2b 54%, #0c3023 82%);
  border-bottom: 2px solid #d6a94b;
}
.market-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent,#08281b75); z-index: -1; }
.market-hero-copy h1 { font-size: clamp(48px,5.6vw,88px); line-height: 1.17; }
.market-hero-kicker { display: flex; align-items: center; gap: 12px; }
.market-hero-kicker::before { content: ""; width: 23px; height: 1px; background: #e5c577; }
.market-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.market-hero-actions > a:not(.market-gold-button) { padding: 9px 0; font-size: 14px; font-weight: 700; text-underline-offset: 5px; text-decoration: underline; text-decoration-color: #f2cf7070; }
.market-hero-actions .market-gold-button { min-height: 48px; padding-inline: 17px; gap: 15px; border-radius: 9px; box-shadow: 0 8px 24px #061d1a44; transition: transform .22s var(--shop-motion), background .22s; }
.market-hero-actions .market-gold-button:hover { transform: translateY(-2px); background: #ffdc78; }
.market-hero-image { height: min(43vw,580px); }
.market-hero-copy { animation: shop-in .62s var(--shop-motion) both; }
.market-hero-image { animation: shop-in .85s .04s var(--shop-motion) both; }
@keyframes shop-in { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: none; } }
@keyframes shop-panel { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.market-size-section { padding-top: 36px; scroll-margin-top: 100px; }
.market-size-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.market-size-link { display: grid; grid-template-columns: 1fr 86px auto; gap: 8px; align-items: center; padding: 9px 15px 9px 19px; min-height: 96px; border: 1px solid #dce2d4; border-radius: 14px; background: #edf1e6; transition: border-color .2s, background .2s, transform .24s var(--shop-motion); }
.market-size-link:first-child { background: #f7efdf; border-color: #eee1ca; }
.market-size-link:last-child { background: #f1ede5; border-color: #e8dece; }
.market-size-link:hover { border-color: #829d82; transform: translateY(-3px); }
.market-size-link strong,.market-size-link > div > span { display: block; }
.market-size-link strong { font: 750 clamp(15px,1.7vw,24px)/1.3 var(--shop-sans); }
.market-size-link > div > span { margin-top: 5px; font: 600 12px/1.3 var(--shop-sans); color: var(--shop-muted); }
.market-size-link img { width: 86px; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.market-size-link .arrow { font-size: 20px; color: var(--shop-green); }
.market-featured { padding-top: 39px; }
.market-grid .market-pack { border-radius: 16px; transition: border-color .22s, box-shadow .22s; }
.market-grid .market-pack:hover { border-color: #aab9a5; box-shadow: 0 12px 26px #1b402018; }
.market-pack .shopping-actions .btn, .market-product-info .shopping-actions .btn { transition: background .22s,color .22s,box-shadow .22s; }
.market-filter-group button { transition: background .18s,border-color .18s,color .18s; }
.market-filter-group button:not([aria-pressed="true"]):hover { background: #e9f0e5; }
.market-craft { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: stretch; margin-bottom: 48px; color: #fff9e6; background: var(--shop-deep); border-radius: 18px; overflow: hidden; }
.market-craft-intro { padding: clamp(23px,3.5vw,48px); align-self: center; }
.market-craft h2 { margin: 0 0 19px; font: 750 clamp(26px,3.5vw,45px)/1.15 var(--shop-sans); }
.market-craft-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 19px; }
.market-craft-controls button { min-height: 42px; border-radius: 7px; padding: 8px 10px; border: 1px solid #e7e9c965; color: #fff9e6; background: #ffffff0d; font: 700 13px/1.3 var(--shop-sans); transition: background .2s,color .2s; }
.market-craft-controls button[aria-pressed="true"] { color: #19392d; background: #f2cf70; border-color: #f2cf70; }
.market-craft-controls button:hover:not([aria-pressed="true"]) { background: #ffffff25; }
.market-craft-intro > a { color: #f2d68f; text-underline-offset: 4px; text-decoration: underline; font-size: 14px; }
.market-craft-stage { position: relative; min-height: 270px; height: 100%; isolation: isolate; display: grid; align-items: end; animation: shop-panel .28s var(--shop-motion) both; }
.market-craft-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.market-craft-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%,#0b1b10db 100%); z-index: -1; }
.market-craft-stage > div { padding: 25px; }
.market-craft-stage h3 { font: 750 23px/1.2 var(--shop-sans); margin: 0 0 6px; }
.market-craft-stage p { color: #f1ecdf; font: 500 14px/1.5 var(--shop-sans); margin: 0; }
.market-offers { margin: 18px 0; padding: clamp(14px,3vw,24px); background: #f6e9cd; border: 1px solid #e8d0a0; border-radius: 14px; scroll-margin-top: 100px; }
.market-offers h2 { font: 750 24px/1.3 var(--shop-sans); margin: 0 0 12px; }
.market-offers-list { display: grid; gap: 8px; }
.market-offers article { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 12px; background: #fffaf0; border-radius: 9px; }
.market-offers article h3 { font: 750 20px/1.3 var(--shop-sans); margin: 0; }
.market-offers p { margin: 3px 0 0; font: 650 13px/1.5 var(--shop-sans); color: #535e49; }
.market-offers p:empty { display: none; }
.market-offers code { padding: 4px 8px; font-size: 13px; }
.market-offers button { padding: 8px 11px; min-height: 40px; border: 1px solid #2b6549; border-radius: 7px; color: #fff; background: #205b40; font: 700 13px/1.3 var(--shop-sans); }
.market-offers button[aria-pressed="true"] { background: #e7efdd; color: #205b40; }
.coupon-remove { margin-top: 5px; border: 0; padding: 6px 0; background: none; color: #315844; text-decoration: underline; text-underline-offset: 4px; font: inherit; font-size: 12px; }
.market-sale-price { display: block; color: #176343; font: 750 13px/1.4 var(--shop-sans); }
.market-delivery { margin-top: 16px; padding: 12px; background: #edf1e6; border: 1px solid #dce3d6; border-radius: 10px; font: 700 13px/1.4 var(--shop-sans); }
.market-delivery > div { display: flex; gap: 7px; margin-top: 6px; }
.market-delivery input { flex: 1; min-width: 0; min-height: 42px; border: 1px solid #aebfae; border-radius: 7px; background: #fff; padding: 6px 9px; font: 600 16px/1.4 var(--shop-sans); }
.market-delivery button { border: 1px solid #aebfae; border-radius: 7px; padding: 6px 12px; background: #fffefa; color: var(--shop-green); font: inherit; }
.market-delivery button:hover { background: #dde9d8; }
.market-delivery p { margin: 7px 0 0; color: #284d39; }
.market-delivery p:empty { display: none; }

.market-search-dialog {
  width: min(580px,calc(100% - 24px)); max-height: min(77dvh,650px); overflow: auto;
  margin: min(12dvh,100px) auto auto; border: 1px solid #d7dfd3; border-radius: 18px;
  background: #fffdf7; color: var(--shop-ink); box-shadow: 0 25px 100px #0c271c50;
  padding: 19px; font: 650 14px/1.4 var(--shop-sans); overscroll-behavior: contain;
}
.market-search-dialog::backdrop { background: #0b241ba0; }
.market-search-dialog[open], #checkout-review:not([hidden]) { animation: shop-panel .24s var(--shop-motion) both; }
.market-search-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.market-search-head h2 { margin: 0; font: 750 25px/1.35 var(--shop-sans); }
.market-icon-button { width: 42px; min-height: 42px; border: 1px solid #dce4d6; border-radius: 50%; background: #edf1e6; font: 700 23px/1 var(--shop-sans); }
.market-search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #9cac9b; border-radius: 10px; padding: 0 11px; background: #fff; }
.market-search-field:focus-within { box-shadow: 0 0 0 2px #497e5b55; }
.market-search-field input { background: none; border: 0; min-width: 0; flex: 1; padding: 10px 0; min-height: 45px; color: inherit; font: 650 16px/1.4 var(--shop-sans); }
.market-search-field input:focus-visible { outline: none; }
.market-search-hints { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.market-search-hints button { padding: 6px 10px; min-height: 36px; border: 1px solid #dce3d6; border-radius: 99px; color: #2c5d43; background: #f2f4ed; font: inherit; font-size: 12px; }
.market-search-hints button:hover { background: #e4eddf; }
.market-search-status { margin: 10px 0 5px; font-size: 12px; color: var(--shop-muted); }
.market-search-results { list-style: none; padding: 0; margin: 0; }
.market-search-results li + li { border-top: 1px solid #e7e9df; }
.market-search-results a { display: grid; grid-template-columns: 54px minmax(0,1fr) auto 20px; align-items: center; gap: 10px; padding: 5px; border-radius: 8px; }
.market-search-results a:hover { background: #edf2e7; }
.market-search-results img { width: 54px; height: 54px; object-fit: cover; border-radius: 7px; }
.market-search-results small { display: block; font-size: 11px; color: var(--shop-muted); }

@media (max-width: 1050px) {
  .market-search-button kbd { display: none; }
  .market-page .market-header-inner { padding-inline: 20px; gap: 15px; }
  .market-page .market-header .nav { gap: 12px; }
  .market-page .market-actions { gap: 8px; }
}
@media (max-width: 960px) {
  .market-utility > div { padding-inline: 15px; min-height: 33px; }
  .market-page .market-header-inner { min-height: 62px; display: flex; padding-inline: 15px; justify-content: space-between; }
  .market-page .market-header .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 7px 15px 13px; border-bottom: 1px solid var(--shop-line); background: #fffdf7; }
  .market-page .market-header .nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; animation: shop-panel .2s var(--shop-motion) both; }
  .market-page .market-header .nav > a { display: flex; align-items: center; min-height: 44px; padding: 7px 8px; border-radius: 7px; }
  .market-page .market-header .nav > a:hover { background: #edf2e8; }
  .market-header .nav > a::after { display: none; }
  .market-search-button, .market-page .market-menu { display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid #e0e5d8; border-radius: 10px; background: #f5f3ea; color: var(--shop-green); }
  .market-search-button .market-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .market-page .market-account { display: none; }
  .market-page .market-cart { min-width: 48px; }
  .market-page .market-cart svg { width: 19px; height: 19px; }
}
@media (max-width: 760px) {
  .market-page .market-hero { min-height: 0; padding: 0 18px; }
  .market-hero-copy { padding-top: 24px; }
  .market-hero-copy h1 { font-size: clamp(39px,11.3vw,65px); margin-bottom: 10px; }
  .market-hero-image { width: min(100%,440px); height: auto; aspect-ratio: 1.36; }
  .market-size-section { padding-top: 27px; }
  .market-size-grid { gap: 7px; }
  .market-size-link { grid-template-columns: 1fr; gap: 5px; min-height: 108px; padding: 8px 6px; position: relative; align-items: start; text-align: center; }
  .market-size-link strong { font-size: clamp(11px,3.3vw,17px); }
  .market-size-link > div > span { font-size: 10px; margin-top: 2px; }
  .market-size-link .arrow { position: absolute; bottom: 3px; right: 6px; font-size: 15px; }
  .market-size-link img { width: 62px; height: 56px; justify-self: center; grid-row: 1; }
  .market-featured { padding-top: 29px; }
  .market-craft { grid-template-columns: 1fr; gap: 0; margin-bottom: 30px; }
  .market-craft-intro { padding: 18px 16px; }
  .market-craft h2 { margin-bottom: 12px; }
  .market-craft-controls { margin-bottom: 9px; }
  .market-craft-controls button { font-size: 12px; padding-inline: 7px; }
  .market-craft-stage { min-height: 208px; }
  .market-craft-stage > div { padding: 17px; }
  .market-search-dialog { padding: 14px; margin-top: 8dvh; }
}
@media (max-width: 350px) {
  .market-page .market-header-inner { padding-inline: 9px; gap: 7px; }
  .market-page .market-actions { gap: 5px; }
  .market-hero-actions { gap: 8px; }
  .market-hero-actions > a:not(.market-gold-button) { font-size: 12px; }
}
