.market-store {
  --market-green: #168837;
  --market-hero: #17933c;
  --market-mint: #e5f7e9;
  --market-border: #e7eae7;
  --market-text: #202421;
  --display: Inter, 'Segoe UI', system-ui, sans-serif;
  --ink: var(--market-text);
  --forest: #163720;
  --green: var(--market-green);
  --green-hover: #0e6e2b;
  --line: var(--market-border);
  min-height: 100svh;
  background: #fff;
  color: var(--market-text);
}

.market-store .page-width { width: min(1280px, calc(100% - 96px)); }
.market-store a { color: inherit; text-decoration: none; }
.market-store a.button-primary { color: #fff; }
.market-store button, .market-store a { -webkit-tap-highlight-color: transparent; }
.market-announcement { background: var(--market-green); color: #fff; }
.market-announcement-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 40px; gap: 12px; }
.market-announcement-inner > span { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 650; }
.market-announcement-inner > span svg, .market-language svg { flex: none; }
.market-language { justify-self: end; }
.market-language select { max-width: 132px; }
.market-header { border-bottom: 1px solid var(--market-border); background: #fff; }
.market-header-main { min-height: 79px; display: grid; grid-template-columns: auto auto minmax(110px,1fr) minmax(126px,185px) auto; align-items: center; gap: 17px; }
.market-logo { display: inline-flex; align-items: center; flex: none; }
.market-wordmark { display: grid; justify-items: center; gap: 2px; max-width: 174px; color: var(--market-green); }
.market-wordmark img { display: block; width: 100%; height: auto; }
.market-wordmark small { font-size: 10px; font-weight: 650; letter-spacing: .16em; line-height: 1.2; text-align: center; }
.market-store .market-catalog-button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; background: var(--market-green); color: #fff; border-radius: 12px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.market-search { display: flex; align-items: center; gap: 5px; padding-right: 5px; margin: 0; border: 2px solid var(--market-green); border-radius: 40px; min-width: 0; height: 48px; }
.market-search input { flex: 1; min-width: 0; min-height: 0; width: auto; border: 0; border-radius: 24px; padding: 8px 0 8px 13px; background: transparent; font-size: 15px; }
.market-search input:focus { box-shadow: none; outline: none; }
.market-search:focus-within { box-shadow: 0 0 0 3px #16883726; }
.market-search button { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--market-green); color: #fff; }
.market-address { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 47px; padding: 0 12px; border: 1.5px solid var(--market-green); border-radius: 12px; font-size: 14px; font-weight: 630; }
.market-address span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-address svg { flex: none; color: var(--market-green); }
.market-tools { display: flex; gap: 14px; }
.market-store .market-tool { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; min-width: 52px; min-height: 48px; padding: 0; color: #4e5550; font-size: 14px; background: none; border: 0; font-weight: 600; }
.market-store .market-tool:hover, .market-store .market-tool.is-active { color: var(--market-green); }
.market-count { position: absolute; top: 0; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 3px; display: grid; place-items: center; background: var(--market-green); color: #fff; border-radius: 20px; font-size: 10px; }
.market-links { display: flex; align-items: center; gap: 22px; min-height: 51px; overflow-x: auto; scrollbar-width: none; }
.market-links a, .market-links button { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--market-text); font-size: 14px; font-weight: 680; white-space: nowrap; }
.market-links svg { width: 17px; height: 17px; }
.market-links .is-active, .market-links a:hover, .market-links button:hover { color: var(--market-green); }
.market-mobile-nav { display: none; }

.market-main { min-height: 49vh; padding: 20px 0 65px; }
.market-home { padding-top: clamp(28px,4.4vw,55px); }
.market-hero { position: relative; display: grid; grid-template-columns: 49% 51%; min-height: clamp(315px,36vw,445px); overflow: hidden; border-radius: 16px; background: var(--market-hero); color: #fff; }
.market-hero img { position: absolute; inset: 0 auto 0 0; width: 52%; height: 100%; object-fit: cover; object-position: 41% center; clip-path: polygon(0 0,91% 0,95% 39%,83% 50%,100% 70%,100% 100%,0 100%); }
.market-hero-copy { z-index: 1; grid-column: 2; align-self: center; padding: 34px clamp(25px,4.8vw,65px) 34px clamp(24px,3vw,46px); }
.market-hero h1 { color: #fff; margin: 0 0 17px; font-size: clamp(30px,4.25vw,62px); line-height: .98; font-weight: 800; letter-spacing: -.047em; text-transform: uppercase; text-wrap: balance; }
.market-hero p { max-width: 515px; margin: 0 0 16px; font-size: clamp(15px,1.65vw,20px); line-height: 1.46; font-weight: 530; }
.market-store .market-hero-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 12px; background: #fff; color: var(--market-green); font-size: 14px; font-weight: 680; }
.market-category-section { margin: 29px 0; }
.market-category-section h2 { margin: 0 0 13px; font: 700 clamp(21px,2.4vw,30px)/1.2 var(--display); }
.market-category-tiles { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.market-category-tiles .market-category { display: grid; grid-template-rows: 103px auto; align-items: center; gap: 8px; min-width: 0; padding: 0 0 12px; border: 1px solid var(--market-border); border-radius: 15px; overflow: hidden; background: #f6f8f5; text-align: center; font-size: 14px; font-weight: 680; }
.market-category-tiles img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-category-tiles .market-category span { padding-inline: 7px; }
.market-category-tiles .market-category:hover { background: var(--market-mint); }
.market-layout { display: grid; grid-template-columns: minmax(178px,230px) minmax(0,1fr); gap: clamp(17px,4vw,46px); align-items: start; }
.market-sidebar { border: 1px solid var(--market-border); border-radius: 14px; background: #fff; padding: 0 13px; }
.market-sidebar h2 { margin: 0; padding: 15px 1px; font: 690 15px/1.3 var(--display); }
.market-sidebar .market-category { display: flex; width: 100%; align-items: center; gap: 11px; min-height: 57px; padding: 7px 0; border-top: 1px solid var(--market-border); background: transparent; font-size: 14px; line-height: 1.2; text-align: left; }
.market-sidebar .market-category img, .market-sidebar .market-category-icon { flex: none; width: 43px; height: 42px; object-fit: cover; border-radius: 11px; }
.market-sidebar .market-category-icon { display: grid; place-items: center; background: #f1f6f0; color: var(--market-green); }
.market-sidebar .market-category:hover, .market-sidebar .market-category.is-active { color: var(--market-green); font-weight: 700; }
.market-catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.market-catalog-heading h1, .market-catalog-heading h2 { margin: 0; font: 690 clamp(24px,3vw,36px)/1.16 var(--display); letter-spacing: -.035em; }
.market-sort { display: flex; align-items: center; gap: 3px; flex: none; color: var(--market-green); }
.market-sort select { min-height: 39px; max-width: 170px; border: 0; background: transparent; color: inherit; font-size: 13px; font-weight: 630; }
.market-mobile-filters { display: none; }
.market-store .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px 15px; }
.market-store .product-card { min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: none; }
.market-store .product-card:hover { transform: none; box-shadow: none; }
.market-store .product-art { border-radius: 13px; background: #f1f4ef; }
.market-store .product-copy { width: 100%; padding: 8px 0 0; }
.market-price { display: inline-block; padding: 4px 8px; margin-bottom: 6px; border-radius: 6px; background: #f0f1ef; color: var(--market-text); font-size: 16px; font-weight: 800; line-height: 1.25; }
.market-store .product-name { font-size: 15px; line-height: 1.3; letter-spacing: -.012em; font-weight: 620; }
.market-store .product-unit { margin-top: 3px; font-size: 13px; }
.market-store .product-unit:empty { display: none; }
.market-stock { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.market-store .product-bottom { margin-top: auto; padding-top: 10px; }
.market-add { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px; border-radius: 10px; background: var(--market-mint); color: #116f2f; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.15; }
.market-add:hover:not(:disabled) { background: #d2f0db; }
.market-add svg { flex: none; }
.market-stepper { justify-content: space-between; width: 100%; min-height: 40px; color: var(--market-green); background: var(--market-mint); }
.market-stepper button { min-width: 36px; min-height: 36px; }
.market-crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.market-crumbs a { color: var(--market-green); }
.market-crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.market-store .market-buyer { min-height: 60vh; padding-top: 21px; padding-bottom: 65px; }
.market-store .market-buyer h1 { margin-top: 0; font: 750 clamp(29px,4.2vw,45px)/1.12 var(--display); color: var(--market-text); letter-spacing: -.036em; }
.market-store .checkout-layout { max-width: none; }
.market-store .checkout-fields, .market-store .checkout-summary, .market-store .tracking-detail, .market-cart-lines { border: 1px solid var(--market-border); border-radius: 15px; background: #fff; }
.market-store .checkout-fields h2, .market-store .checkout-summary h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.market-cart-lines { padding: 9px 18px; }
.market-cart-empty { display: grid; justify-items: center; padding: 19px; border: 1px solid var(--market-border); border-radius: 15px; }
.market-cart-empty .empty-state { border: none; background: none; padding: 12px; }
.market-cart-empty .button { min-width: min(100%,250px); }
.market-product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,4vw,54px); align-items: start; }
.market-product-copy > .market-price { margin-top: 12px; font-size: 23px; }
.market-product-copy > .button { display: flex; margin-top: 12px; width: min(100%,280px); }
.market-product .market-product-photo { width: 100%; height: auto; aspect-ratio: 1.25; border-radius: 15px; overflow: hidden; background-color: #f4f6f3; }
.market-product-photo img { object-fit: cover; }
.market-product-copy .stock-label { width: fit-content; }
.market-delivery-callout { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 21px; padding: 12px 15px; border: 1px solid var(--market-border); border-radius: 12px; font-weight: 650; font-size: 14px; }
.market-delivery-callout svg { color: var(--market-green); }
.market-description { margin-top: 19px; }
.market-description h2 { margin: 0 0 7px; font-size: 17px; }
.market-description p { font-size: 15px; line-height: 1.55; }
.market-account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.market-support { max-width: 510px; }
.market-support-contacts { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.market-support-contacts a { display: inline-flex; align-items: center; gap: 7px; color: var(--market-green); font-weight: 650; }
.market-footer { border-top: 1px solid var(--market-border); background: #f7f9f6; padding: 32px 0; }
.market-footer-inner { display: grid; grid-template-columns: minmax(180px,1fr) 1fr 1fr; align-items: start; gap: 15px; }
.market-footer-inner > div { display: grid; gap: 8px; font-size: 14px; }
.market-footer-inner a:hover { color: var(--market-green); }

.market-login { display: grid; grid-template-columns: minmax(360px,44%) 1fr; min-height: 100svh; }
.market-login-copy { display: grid; grid-template-rows: auto 1fr; padding: clamp(24px,4vw,52px); }
.market-login-brand { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.market-login-form { align-self: center; width: min(100%,375px); margin: 0 auto; padding: 40px 0; }
.market-login-form h1 { margin: 0 0 8px; font: 740 clamp(28px,3.4vw,44px)/1.12 var(--display); letter-spacing: -.043em; }
.market-login-form > p { color: var(--muted); line-height: 1.55; }
.market-login-art { min-height: 100%; }
.market-login-art img { width: 100%; height: 100%; object-fit: cover; object-position: 46% center; display: block; }
.market-store .market-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--market-green); font-weight: 650; }

@media (max-width: 1080px) {
  .market-store .page-width { width: calc(100% - 48px); }
  .market-header-main { gap: 10px; }
  .market-store .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .market-hero-copy { padding-right: 24px; }
}

@media (max-width: 760px) {
  .market-store { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .market-store .page-width { width: calc(100% - 24px); }
  .market-announcement-inner { grid-template-columns: minmax(0,1fr) auto; min-height: 39px; gap: 4px; }
  .market-announcement-inner > span { grid-column: 1; gap: 6px; font-size: 11px; }
  .market-language select { min-width: 0; max-width: 76px; }
  .market-language svg { width: 13px; }
  .market-header-main { grid-template-columns: minmax(86px,113px) minmax(0,1fr) minmax(59px,86px); min-height: 59px; gap: 7px; }
  .market-header-main .market-catalog-button, .market-tools { display: none; }
  .market-wordmark small { font-size: 7px; letter-spacing: .09em; }
  .market-search { height: 40px; padding-right: 4px; }
  .market-search input { padding-left: 8px; font-size: 13px; }
  .market-search button { width: 28px; height: 28px; }
  .market-search button svg { width: 16px; }
  .market-address { min-height: 40px; padding: 0 6px; gap: 4px; border-radius: 30px; font-size: 12px; }
  .market-address svg { width: 13px; }
  .market-address svg:last-child { display: none; }
  .market-links { gap: 17px; min-height: 46px; }
  .market-links a, .market-links button { font-size: 13px; }
  .market-mobile-nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; min-height: 61px; padding: 4px 3px max(4px,env(safe-area-inset-bottom)); border-top: 1px solid var(--market-border); background: #fff; box-shadow: 0 -4px 15px #15371d0a; }
  .market-mobile-nav a, .market-mobile-nav .market-tool { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 48px; padding: 2px; color: #5d665f; font-size: 10px; font-weight: 660; text-align: center; line-height: 1.1; }
  .market-mobile-nav a.is-active { color: var(--market-green); }
  .market-count { top: 3px; }
  .market-home { padding-top: 24px; }
  .market-main { padding-bottom: 28px; }
  .market-hero { display: block; min-height: 0; }
  .market-hero img { position: relative; width: 100%; height: clamp(188px,63vw,310px); display: block; object-position: 45% 46%; clip-path: polygon(0 0,100% 0,100% 94%,79% 98%,51% 94%,30% 89%,0 100%); }
  .market-hero-copy { position: relative; padding: 13px 17px 20px; }
  .market-hero h1 { max-width: 380px; margin-bottom: 12px; font-size: clamp(28px,8vw,42px); text-wrap: wrap; }
  .market-hero p { margin-bottom: 14px; font-size: 15px; }
  .market-category-section { margin: 24px 0; }
  .market-category-tiles { grid-template-columns: repeat(5,minmax(114px,1fr)); overflow-x: auto; gap: 8px; scrollbar-width: thin; }
  .market-category-tiles .market-category { grid-template-rows: 77px auto; font-size: 12px; }
  .market-layout { display: block; }
  .market-sidebar { display: none; }
  .market-mobile-filters { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 12px; padding: 1px 1px 5px; }
  .market-mobile-filters .market-category { flex: none; min-height: 35px; padding: 5px 9px; border: 1px solid var(--market-border); border-radius: 18px; background: #fff; font-size: 12px; }
  .market-mobile-filters .market-category.is-active { color: #116f2f; background: var(--market-mint); border-color: #c8e9d1; }
  .market-catalog-heading { margin-bottom: 9px; }
  .market-sort select { max-width: 121px; font-size: 11px; }
  .market-store .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 9px; }
  .market-store .product-name { font-size: 14px; }
  .market-price { font-size: 14px; }
  .market-add { font-size: 12px; }
  .market-store .market-buyer { padding-bottom: 35px; }
  .market-product { grid-template-columns: 1fr; gap: 14px; }
  .market-product .market-product-photo { grid-row: 1; max-height: 400px; }
  .market-footer-inner { grid-template-columns: 1fr 1fr; }
  .market-footer-inner > div:last-child { grid-column: 1/-1; }
  .market-login { min-height: calc(100svh - 62px); display: block; }
  .market-login-copy { min-height: calc(100svh - 62px); padding: 21px; }
  .market-login-art { display: none; }
}
