/* DimOne brand palette. Functional/status colours remain independent. */
:root {
  --brand-primary: #315BEB;
  --brand-primary-hover: #274BC8;
  --brand-primary-ink: #2448C0;
  --brand-cyan: #16C9ED;
  --brand-purple: #7952E8;
  --brand-navy: #101B42;
  --brand-surface: #F7F9FC;
  --brand-white: #FFFFFF;
  --brand-soft: #EEF2FE;
  --brand-focus-soft: #315beb14;
  --brand-focus-medium: #315beb1a;
  --brand-focus-strong: #315beb33;
  --brand-shadow: #315beb25;
}
:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #193d36;
  background: #f6f7f4;
  font-synthesis: none;
  --green: #167b68;
  --ink: #193d36;
  --muted: #64766f;
  --line: #e2e9e4;
  --paper: #fff;
  --soft: #eef3ed;
  --radius: 22px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e0aa58;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
input,
textarea,
select {
  min-width: 0;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
#shop {
  max-width: 1020px;
  margin: auto;
  padding: 0 28px 100px;
}
.store-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 30px 0 26px;
}
.brandmark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -3px;
  padding-right: 4px;
}
.brand {
  min-width: 0;
  flex: 1;
}
.brand span {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 650;
}
.brand h1 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.icon-button {
  width: 40px;
  height: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  flex-shrink: 0;
}
.intro {
  position: relative;
  overflow: hidden;
  padding: 32px 36px;
  border-radius: 26px;
  background: #e7eee2;
  min-height: 228px;
}
.eyebrow {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #45654f;
}
.intro h2 {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 14px 0 12px;
  font-weight: 650;
}
.intro p {
  position: relative;
  z-index: 1;
  max-width: 285px;
  font-size: 13px;
  line-height: 1.6;
  color: #506754;
}
.intro-tag {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  gap: 25px;
  align-items: center;
  background: #ffffffc9;
  backdrop-filter: blur(4px);
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 12px;
}
.intro-tag span {
  font-size: 20px;
}
.intro-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 48px solid #d3dfca;
  border-radius: 50%;
  right: 7%;
  top: -55px;
  transform: rotate(-20deg);
}
.intro-orbit:after {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px solid #bccfb3;
}
.search {
  margin: 24px 0 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 52px;
}
.search span {
  font-size: 27px;
  color: #789185;
}
.search input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.search input::placeholder {
  color: #8b9991;
}
.search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #167b6815;
}
.search input:focus {
  outline: 0;
}
.categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
}
.categories button {
  white-space: nowrap;
  padding: 11px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 12px;
}
.categories button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.section-heading span {
  font-size: 12px;
  color: var(--muted);
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
}
.product {
  min-width: 0;
}
.product-open {
  text-align: left;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
}
.product-photo {
  aspect-ratio: 1/1.08;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  mix-blend-mode: multiply;
}
.photo-placeholder {
  font-size: 12px;
  color: #8b9991;
}
.product h3 {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  margin: 12px 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.product .price {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.product .unit {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 3px;
}
.product-buy {
  margin-top: 12px;
  height: 38px;
  background: #e8efea;
  color: #255f4e;
  border-radius: 10px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
}
.product-buy:hover {
  background: #dce9de;
}
.product-buy.added {
  background: var(--green);
  color: white;
}
.store-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8b9991;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  gap: 10px;
}
.cart-dock {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #f6f7f4 25%);
}
.cart-dock > button {
  max-width: 550px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 17px;
  box-shadow: 0 8px 24px #167b6825;
  font-size: 13px;
}
.cart-count {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  background: #ffffff25;
  border-radius: 9px;
}
.cart-dock strong {
  margin-left: auto;
  font-size: 14px;
}
#preview {
  background: #193d36;
  color: #f4f7f2;
  text-align: center;
  font-size: 11px;
  padding: 10px 16px;
  line-height: 1.5;
}
.empty {
  grid-column: 1/-1;
  padding: 40px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
#error,
#sheet-error {
  font-size: 13px;
  line-height: 1.6;
  background: #fff1e9;
  color: #9e452e;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 26px;
  max-width: 510px;
  width: calc(100% - 28px);
  max-height: calc(100dvh - 45px);
  padding: 24px;
  box-shadow: 0 24px 90px #102e3226;
}
dialog::backdrop {
  background: #102e3266;
  backdrop-filter: blur(4px);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.sheet-head h2 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.sheet-head .icon-button {
  font-size: 27px;
}
.gallery {
  display: flex;
  overflow: auto;
  scroll-snap-type: x mandatory;
  border-radius: 16px;
  background: #f5f6f3;
}
.gallery img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1.1;
  object-fit: contain;
  padding: 20px;
  mix-blend-mode: multiply;
  scroll-snap-align: center;
}
.gallery .photo-placeholder {
  width: 100%;
  text-align: center;
  padding: 80px 20px;
}
.gallery-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-align: right;
}
.detail-price {
  font-size: 27px;
  font-weight: 650;
  margin: 20px 0 8px;
  letter-spacing: -0.7px;
}
.stock {
  color: var(--green);
  font-size: 12px;
}
.detail-title {
  font-size: 14px;
  font-weight: 650;
  margin: 24px 0 10px;
}
.description {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #607167;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.options span {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--soft);
}
.primary {
  background: var(--green);
  color: #fff;
  width: 100%;
  padding: 16px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 22px;
}
.secondary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 13px;
  margin-top: 10px;
}
.cart-row {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-row img {
  width: 65px;
  height: 74px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--soft);
  padding: 5px;
}
.cart-name {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.cart-price {
  font-size: 13px;
  font-weight: 650;
  margin-top: 6px;
}
.remove {
  background: transparent;
  color: #81938a;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}
.quantity {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 34px;
  margin-top: 10px;
  width: 125px;
}
.quantity button {
  width: 34px;
  background: var(--soft);
  border-radius: 7px;
  font-size: 18px;
}
.quantity input {
  width: 55px;
  border: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
  appearance: textfield;
  background: transparent;
}
.quantity input::-webkit-inner-spin-button {
  appearance: none;
}
.quantity-unit {
  font-size: 11px;
  margin: 5px 0;
  color: var(--muted);
}
.total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 650;
}
.note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.field textarea {
  resize: vertical;
}
.receive {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.receive label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.receive input {
  accent-color: var(--green);
}
.check-summary {
  padding: 16px;
  background: var(--soft);
  border-radius: 14px;
  margin: 20px 0 8px;
}
.check-summary p {
  font-size: 12px;
  line-height: 1.7;
  margin: 5px 0;
}
.success {
  text-align: center;
  padding: 20px 0;
}
.success-mark {
  margin: 0 auto 22px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f3e9;
  color: var(--green);
  font-size: 32px;
}
.success h3 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.success p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 9;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  max-width: calc(100vw - 30px);
  width: max-content;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  padding: 12px 18px;
  box-shadow: 0 5px 20px #102e3225;
}
@media (min-width: 800px) {
  .product-photo {
    aspect-ratio: 1.15;
  }
  .product h3 {
    min-height: 20px;
  }
  .intro h2 br {
    display: none;
  }
  .intro p {
    max-width: 400px;
  }
  .intro-orbit {
    right: 13%;
    top: -85px;
  }
  .intro-tag {
    right: 35px;
  }
  .intro {
    min-height: 220px;
  }
}
@media (max-width: 600px) {
  #shop {
    padding: 0 18px 100px;
  }
  .store-header {
    padding: 22px 0 20px;
  }
  .brand h1 {
    font-size: 20px;
  }
  .brand span {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .brandmark {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }
  .intro {
    padding: 24px;
    min-height: 244px;
    border-radius: 22px;
  }
  .intro h2 {
    font-size: 32px;
    margin-top: 15px;
    letter-spacing: -1px;
  }
  .intro p {
    max-width: 200px;
    font-size: 12px;
  }
  .intro-orbit {
    width: 190px;
    height: 190px;
    border-width: 33px;
    right: -102px;
    top: 22px;
  }
  .intro-tag {
    position: relative;
    display: inline-flex;
    right: auto;
    bottom: auto;
    margin-top: 18px;
    font-size: 10px;
    padding: 6px 12px;
    gap: 15px;
  }
  .intro-tag span {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .search {
    margin-top: 20px;
    height: 48px;
  }
  .search input {
    font-size: 14px;
  }
  .categories button {
    padding: 10px 15px;
    font-size: 11px;
  }
  .section-heading {
    margin-top: 18px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .product-photo {
    border-radius: 15px;
  }
  .product-photo img {
    padding: 7px;
  }
  .product h3 {
    font-size: 12px;
    min-height: 34px;
  }
  .product .price {
    font-size: 15px;
  }
  .product .unit {
    font-size: 10px;
    display: block;
    margin: 4px 0 0;
  }
  .product-buy {
    font-size: 11px;
    height: 36px;
  }
  .store-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cart-dock {
    padding-left: 16px;
    padding-right: 16px;
  }
  dialog {
    margin: auto auto 0;
    width: 100%;
    max-width: 510px;
    max-height: 95dvh;
    border-radius: 24px 24px 0 0;
    padding: 22px 20px max(25px, env(safe-area-inset-bottom));
  }
  .sheet-head h2 {
    font-size: 18px;
  }
  .intro p {
    max-width: 205px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      transform 0.15s;
  }
  button:active {
    transform: translateY(1px);
  }
}

/* Dimart / Telegram visual language. */
:root {
  --green: var(--brand-primary, #315BEB);
  --ink: #142c48;
  --muted: #69798d;
  --line: #e1e7ef;
  --paper: #fff;
  --soft: #f0f6fb;
  color: var(--ink);
  background: #fff;
}
#preview {
  background: #eaf6ff;
  color: #426380;
}
.brandmark {
  background: var(--brand-primary, #315BEB);
  color: white;
  font-size: 23px;
  letter-spacing: 0;
}
.store-header {
  padding-bottom: 6px;
}
.brand span {
  color: #6f88a0;
}
.search {
  background: #f1f4f8;
}
.categories button[aria-pressed='true'] {
  background: var(--green);
  border-color: var(--green);
}
.product-photo {
  background: #f2f3f5;
}
.product-photo img {
  padding: 0;
  object-fit: contain;
}
.product-buy {
  background: white;
  color: var(--brand-primary-ink, #2448C0);
  border: 1px solid #ccd9e6;
}
.product-buy:hover {
  background: #eef8ff;
}
.product-buy.added {
  background: var(--brand-primary, #315BEB);
  color: white;
  border-color: var(--brand-primary, #315BEB);
}
.cart-dock {
  background: linear-gradient(transparent, #fff 25%);
}
.cart-dock > button {
  background: var(--brand-primary, #315BEB);
  box-shadow: 0 8px 24px var(--brand-shadow);
}
.stock {
  color: #168354;
}
.description {
  color: #42586b;
}
.success-mark {
  background: #e7f3e9;
  color: #168354;
}
.brandmark {
  border-radius: 13px;
}
.product h3 {
  font-weight: 650;
}
.gallery {
  background: #f2f3f5;
}
.gallery img {
  padding: 0;
}
.primary {
  background: var(--brand-primary, #315BEB);
}
.options span {
  background: #f0f6fb;
}
.product-photo {
  aspect-ratio: 1;
}
.cart-row > .photo-placeholder {
  font-size: 10px;
  padding: 5px;
}
.cart-row > img {
  background: #f2f3f5;
}

.product-counter {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #cbdbe9;
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.product-counter button {
  background: #eef8ff;
  color: var(--brand-primary, #315BEB);
  min-width: 40px;
  height: 100%;
  font-size: 21px;
}
.product-counter span {
  font-size: 12px;
  font-weight: 600;
  padding: 0 4px;
}
.product-counter button:disabled {
  background: #f4f6f8;
}
.product-counter + .quantity-unit {
  margin-top: 7px;
}
#detail-buy .product-buy,
#detail-buy .product-counter {
  height: 46px;
  margin-top: 20px;
}
.quantity button {
  min-width: 32px;
}
.quantity-unit {
  line-height: 1.5;
}

/* Compact stock counters and an exact-quantity sheet. */
.quantity-parts.packs-only {
  grid-template-columns: 1fr;
}
#quantity-total[readonly] {
  background: var(--soft);
  color: var(--muted);
}
.product-counter {
  height: 44px;
  border-color: #b6dafa;
  margin-top: 10px;
  flex-shrink: 0;
}
.product-counter > button {
  flex: 0 0 32px;
  min-width: 32px;
  font-size: 22px;
}
.product-counter > .quantity-value {
  flex: 1;
  min-width: 0;
  padding: 2px;
  font-size: 12px;
  line-height: 1.25;
  color: #142c48;
  background: white;
  overflow-wrap: anywhere;
}
.quantity-value span {
  color: var(--brand-primary, #315BEB);
  font-size: 15px;
  padding: 0;
}
.product-buy {
  height: 44px;
  margin-top: 10px;
}
.pack-breakdown {
  min-height: 19px;
  margin: 6px 0 0;
  text-align: center;
  color: #527c9e;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
}
.product .quantity-unit {
  min-height: 17px;
  margin: 6px 0 0;
}
.stock-pack {
  font-size: 12px;
  color: #527c9e;
  margin-top: 5px;
}
.cart-row > div {
  min-width: 0;
}
.cart-row .product-counter {
  max-width: 220px;
}
.cart-row .pack-breakdown {
  text-align: left;
}
.quantity-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quantity-parts .field {
  min-width: 0;
}
.quantity-parts input,
#quantity-total {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
#quantity-available {
  margin-top: 8px;
}
.quantity-equation {
  text-align: center;
  margin: 12px 0 0;
  color: #647c92;
  font-size: 12px;
  min-height: 18px;
}
.quantity-help {
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  color: #698297;
  margin: 12px 0 0;
}
#quantity-error {
  font-size: 13px;
  line-height: 1.5;
  color: #a13830;
  background: #fff0eb;
  padding: 12px;
  border-radius: 10px;
}
#quantity-sheet {
  padding-top: 26px;
}
#quantity-sheet::before {
  content: '';
  display: block;
  position: absolute;
  top: 10px;
  left: calc(50% - 22px);
  width: 44px;
  height: 4px;
  border-radius: 5px;
  background: #cad5df;
}
.cart-row {
  grid-template-columns: 60px minmax(0, 1fr) 24px;
}
.cart-row img {
  width: 60px;
  height: 75px;
}
.quantity-value:focus-visible {
  outline-offset: -3px;
}
@media (max-width: 360px) {
  #shop {
    padding-left: 12px;
    padding-right: 12px;
  }
  .product-counter > button {
    flex-basis: 29px;
    min-width: 29px;
  }
  .quantity-value span {
    display: none;
  }
  .pack-breakdown {
    font-size: 10px;
  }
  .cart-row {
    gap: 8px;
  }
  .quantity-parts {
    gap: 10px;
  }
  .quantity-parts .field {
    font-size: 11px;
  }
}

.variant-selectors {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.variant-axis h3 {
  font-size: 12px;
  font-weight: 500;
  color: #698297;
  margin-bottom: 8px;
}
.variant-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-values button {
  padding: 10px 15px;
  min-height: 42px;
  border: 1px solid #d5e1ec;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.variant-values button[aria-pressed='true'] {
  background: #eaf6ff;
  border-color: var(--brand-primary, #315BEB);
  color: var(--brand-primary, #315BEB);
}
.variant-values button:disabled {
  color: #8593a1;
  background: #f6f7f9;
  text-decoration: line-through;
  opacity: 0.65;
}
.product .quantity-unit {
  overflow-wrap: anywhere;
  min-height: 30px;
}
.product {
  display: flex;
  flex-direction: column;
}
.product-photo img {
  display: block;
}
.product-buy,
.product-counter {
  margin-top: auto;
}
.product h3 {
  min-height: 40px;
}
.pack-breakdown {
  flex-shrink: 0;
}
#detail-buy {
  margin-top: 16px;
}
#detail-buy .product-buy,
#detail-buy .product-counter {
  margin-top: 0;
}
.cart-row .product-counter {
  margin-top: 10px;
}

.store-header .brandmark {
  background: transparent;
  padding: 0;
  border-radius: 0;
  letter-spacing: normal;
}
.brandmark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Shared web and Telegram cards: stock, description and immediate ordering. */
.products {
  gap: 16px;
}
.product {
  padding: 12px;
  border: 1px solid #c9d8e4;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 2px 5px #142c4805;
}
.product-photo {
  border-radius: 12px;
}
.product h3 {
  margin: 10px 0 6px;
  min-height: 0;
  font-size: 15px;
  line-height: 1.4;
}
.product-description {
  display: block;
  text-align: left;
  padding: 0;
  margin: 0 0 12px;
  background: transparent;
  color: #607386;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.product-description > span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product .price {
  font-size: 18px;
  margin-top: 2px;
}
.product .unit {
  display: block;
  margin: 3px 0 0;
  font-size: 11px;
}
.product-stock {
  font-size: 12px;
  line-height: 1.45;
  color: #226c51;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.product-options {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.product .quantity-unit {
  min-height: 0;
  margin: 5px 0 0;
  font-size: 12px;
}
.quantity-unit:empty,
.stock-pack:empty {
  display: none;
}
.product-actions {
  margin-top: auto;
  padding-top: 12px;
}
.product-actions .product-buy,
.product-actions .product-counter {
  margin-top: 0;
}
.product-counter > button {
  flex-basis: 44px;
  min-width: 44px;
}
.product-counter > .quantity-value {
  flex: 1;
  min-width: 0;
  padding: 2px;
}
.quantity-value span {
  color: var(--ink);
  font-size: 12px;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.product .product-buy {
  font-size: 12px;
}
.product .pack-breakdown {
  margin-top: 4px;
  font-weight: 500;
}
.product-description:hover {
  color: var(--ink);
}
@media (max-width: 600px) {
  #shop {
    padding-left: 12px;
    padding-right: 12px;
  }
  .products {
    gap: 12px;
  }
  .product {
    padding: 9px;
    border-radius: 15px;
  }
  .product-photo {
    border-radius: 10px;
  }
  .product h3 {
    font-size: 13px;
  }
  .product .price {
    font-size: 16px;
  }
  .product-description {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .product-stock,
  .product .quantity-unit {
    font-size: 11px;
  }
  .product .product-buy {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .products {
    gap: 8px;
  }
  .product {
    padding: 8px;
  }
  .product-counter > button {
    flex-basis: 40px;
    min-width: 40px;
  }
  .quantity-value span {
    display: inline;
    font-size: 11px;
  }
  .product .price {
    font-size: 15px;
  }
}
.product-actions {
  display: flex;
  flex-direction: column;
}
.product-actions .product-counter {
  order: 2;
}
.product-actions .pack-breakdown {
  order: 1;
  margin: 0 0 5px;
}

.buyer-profile {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 22px max(30px, env(safe-area-inset-bottom));
  background: white;
}
.buyer-brand {
  display: block;
  width: 156px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 28px;
}
.buyer-profile h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.buyer-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 12px;
}
.buyer-profile .field {
  font-size: 14px;
  color: var(--ink);
  position: relative;
  gap: 7px;
}
.buyer-profile .field > input {
  height: 48px;
  font-size: 16px;
}
.buyer-profile .optional {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  font-size: 12px;
}
.buyer-phone {
  display: flex;
  min-height: 48px;
  border: 1px solid #ccd9e6;
  border-radius: 11px;
  overflow: hidden;
}
.buyer-phone select {
  width: 46%;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 5px;
  background: var(--soft);
  font-size: 13px;
  text-overflow: ellipsis;
}
.buyer-phone input {
  flex: 1;
  min-width: 0;
  width: 0;
  border: 0;
  border-radius: 0;
  padding: 10px;
  font-size: 16px;
}
.buyer-phone:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.buyer-phone input:focus,
.buyer-phone select:focus {
  outline: none;
}
.buyer-profile small,
.buyer-privacy {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.buyer-privacy {
  margin-top: 20px;
}
.buyer-profile .primary {
  margin-top: 16px;
  min-height: 48px;
}
.buyer-summary {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.buyer-summary h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.buyer-summary p {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.buyer-edit {
  padding: 8px 0;
  background: transparent;
  color: var(--brand-primary-ink, #2448C0);
  font-size: 13px;
  text-align: left;
}
#buyer-error {
  padding: 12px;
  margin-top: 14px;
  background: #fff0eb;
  color: #a13830;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 10px;
}
@media (max-width: 360px) {
  .buyer-profile {
    padding: 22px 16px;
  }
  .buyer-profile h1 {
    font-size: 24px;
  }
  .buyer-brand {
    margin-bottom: 22px;
  }
}
.buyer-profile .buyer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 180px;
  height: 40px;
}
.buyer-brand img:first-child {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.buyer-brand img:last-child {
  width: 133px;
  height: auto;
}
.buyer-phone select {
  width: 38%;
}
#buyer-country-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 92px;
  padding: 10px 8px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.country-chevron {
  font-size: 17px;
  color: var(--muted);
}
#buyer-country-picker {
  padding: 20px;
  width: calc(100% - 24px);
  max-width: 420px;
  max-height: 80dvh;
  overflow: hidden;
}
#buyer-country-picker[open] {
  display: flex;
  flex-direction: column;
}
#buyer-country-picker .sheet-head {
  margin-bottom: 12px;
  flex-shrink: 0;
}
.country-search {
  display: block;
  flex-shrink: 0;
}
.country-search input {
  width: 100%;
  height: 48px;
  border: 1px solid #ccd9e6;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 16px;
  background: var(--soft);
  color: var(--ink);
}
.country-results {
  overflow-y: auto;
  min-height: 0;
  margin-top: 12px;
  overscroll-behavior: contain;
}
.country-results button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding: 12px;
  background: white;
  border-bottom: 1px solid var(--line);
  text-align: left;
  border-radius: 8px;
  font-size: 15px;
}
.country-results button[aria-pressed='true'] {
  background: #eaf6ff;
  color: var(--brand-primary, #315BEB);
}
.country-results button:hover {
  background: var(--soft);
}
.country-dial {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#buyer-country-empty {
  margin: 16px 0 6px;
}
@media (max-width: 600px) {
  #buyer-country-picker {
    margin: auto;
    border-radius: 20px;
    max-height: calc(100dvh - 24px);
  }
}
.product.is-in-cart {
  border-color: #8ccdf0;
  background: #f5fbff;
}
.product.is-in-cart .product-counter {
  border-color: #66bce9;
}
#variants-sheet {
  padding: 22px;
  width: calc(100% - 28px);
  max-width: 600px;
  max-height: 88dvh;
  overflow: hidden;
}
#variants-sheet[open] {
  display: flex;
  flex-direction: column;
}
#variants-sheet .sheet-head {
  flex-shrink: 0;
  align-items: flex-start;
  margin-bottom: 8px;
}
#variants-sheet .sheet-head > div {
  min-width: 0;
}
#variants-title {
  overflow-wrap: anywhere;
}
.variant-eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.variant-hint {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}
#variants-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px;
}
.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  background: #fff;
}
.variant-row.is-selected {
  border-color: #95cfee;
  background: #eaf7ff;
}
.variant-info {
  min-width: 0;
}
.variant-info h3 {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.variant-price {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  margin-top: 5px;
}
.variant-price small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
.variant-stock {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 5px;
}
.variant-controls > label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 5px;
}
.variant-stepper {
  display: flex;
  align-items: stretch;
  height: 44px;
  gap: 4px;
}
.variant-stepper button {
  width: 40px;
  flex: 0 0 40px;
  background: #e0f3ff;
  color: var(--brand-primary-ink, #2448C0);
  border: 1px solid #c0e4f8;
  border-radius: 10px;
  font-size: 23px;
  line-height: 1;
}
.variant-stepper input {
  width: 0;
  min-width: 0;
  flex: 1;
  border: 1px solid #bcd8e8;
  border-radius: 9px;
  padding: 4px 2px;
  text-align: center;
  background: white;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.variant-stepper input[aria-invalid='true'] {
  border-color: #c94343;
}
.variant-pack-total {
  display: block;
  text-align: center;
  min-height: 16px;
  margin-top: 4px;
  color: #527c9e;
  font-size: 11px;
}
.variants-footer {
  flex-shrink: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
#variants-summary {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
.variants-footer .primary {
  margin-top: 10px;
  min-height: 46px;
}
#variants-error {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px;
  background: #fff0eb;
  color: #a13830;
  border-radius: 9px;
  margin-top: 8px;
}
@media (max-width: 600px) {
  #variants-sheet {
    margin: auto auto 0;
    width: 100%;
    max-height: 92dvh;
    padding: 20px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .variant-row {
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 10px;
    padding: 10px;
  }
  .variant-info h3 {
    font-size: 13px;
  }
  .variant-price {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .variant-row {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
    padding: 9px;
  }
  .variant-stepper {
    gap: 3px;
  }
  .variant-stepper button {
    width: 36px;
    flex-basis: 36px;
  }
}
.minimum-notice {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3df;
  color: #805214;
  font-size: 13px;
  line-height: 1.55;
}
.field > small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
#request-progress {
  outline: none;
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 40px);
  max-width: 340px;
  height: fit-content;
  max-height: calc(100dvh - 40px);
  padding: 26px 22px 20px;
  border: 1px solid #cfe5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 64px #183a4b24;
  text-align: center;
  overflow: auto;
  color: var(--ink);
}
#request-progress::backdrop {
  background: #edf6fbb8;
  backdrop-filter: blur(2px);
}
#request-progress h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 12px 0 8px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
#request-progress-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
#request-progress-time {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 20px;
  color: #5e7e90;
  font-variant-numeric: tabular-nums;
}
.request-spinner {
  display: block;
  width: 38px;
  height: 38px;
  margin: auto;
  color: var(--brand-primary, #315BEB);
  animation: shop-request-spin 1.2s linear infinite;
}
@keyframes shop-request-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .request-spinner {
    animation: none;
  }
}


/* Keep editable text legible BEFORE focus: iPhone zooms small input text.
 * An important layer beats existing unlayered compact-form !important rules.
 * No viewport/gesture restrictions or focus-time layout changes are needed.
 * Apply on touch devices too, including landscape phones and tablets.
 */
@layer mobile-input-legibility {
  @media (max-width: 760px), (any-pointer: coarse) {
    input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']):not([type='button']):not([type='submit']):not([type='reset']):not([type='image']),
    textarea,
    select,
    [contenteditable='true'],
    [contenteditable=''] {
      font-size: max(16px, 1em) !important;
    }
  }
}

/* Three product-first web layouts. Telegram keeps its existing presentation. */
:root[data-store-template] { --ink:#17223a; --muted:#596579; --line:#dfe5ee; --green:#315beb; --paper:#fff; --soft:#edf2ff; background:#f5f7fb; color:var(--ink); font-size:16px; }
[data-store-template] #shop { max-width:1440px; padding:0 36px 112px; }
[data-store-template] .store-header { padding:18px 0; gap:12px; margin:0; }
[data-store-template] .brandmark { width:34px; height:34px; background:transparent; padding:0; }
[data-store-template] .brandmark img { width:34px; height:34px; }
[data-store-template] .brand span { display:none; }
[data-store-template] .brand h1 { margin:0; font-size:22px; letter-spacing:-.7px; }
[data-store-template] .icon-button { width:44px; height:44px; }
[data-store-template] .catalog-layout { display:grid; grid-template-columns:minmax(0,1fr); }
[data-store-template] .search { grid-row:2; margin:0 0 16px; background:white; border:1px solid var(--line); height:48px; border-radius:10px; }
[data-store-template] .search input { font-size:16px; }
[data-store-template] .categories { grid-row:1; margin:0 0 16px; padding:0; gap:8px; }
[data-store-template] .categories button { min-height:46px; font-size:15px; border-radius:10px; padding:10px 20px; }
[data-store-template] .categories button[aria-pressed=true] { background:var(--green); border-color:var(--green); color:white; }
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; color:var(--muted); font-size:14px; }
.breadcrumbs button { background:transparent; padding:10px 0; min-height:44px; color:inherit; text-decoration:underline; text-underline-offset:4px; }
.breadcrumbs button[aria-current] { text-decoration:none; }
.breadcrumbs [aria-current=page] { color:var(--ink); }
#breadcrumb-current { overflow-wrap:anywhere; }
[data-store-template] .section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px 16px; margin:8px 0 22px; }
[data-store-template] .section-heading h2 { font-size:28px; letter-spacing:-1px; }
[data-store-template] #count { font-size:13px; color:var(--muted); }
.sort-label { margin-left:auto; display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; min-width:0; }
.sort-label select { font-size:14px; color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:10px 32px 10px 12px; min-height:44px; max-width:100%; appearance:none; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23596579' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
[data-store-template] .products { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; align-items:stretch; }
[data-store-template] .product { display:flex; flex-direction:column; padding:10px; background:white; border:1px solid var(--line); border-radius:16px; box-shadow:none; min-width:0; }
[data-store-template] .product-open { flex-shrink:0; border-radius:10px; }
[data-store-template] .product-photo { border-radius:10px; aspect-ratio:1; background:#f1f4f8; }
[data-store-template] .product-photo img { padding:10px; }
.product-details { display:flex; flex-direction:column; flex:1; min-width:0; padding:12px 4px 4px; }
.product-title { display:block; width:100%; text-align:left; padding:0; background:transparent; }
[data-store-template] .product h3 { margin:0; min-height:0; font-size:17px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
[data-store-template] .product-description { padding:0; margin:6px 0 0; color:var(--muted); text-align:left; font-size:14px; line-height:1.5; }
[data-store-template] .product-description span { -webkit-line-clamp:2; }
[data-store-template] .product .price { font-size:21px; margin:12px 0 4px; }
[data-store-template] .product .unit { display:block; margin:3px 0 0; font-size:12px; }
[data-store-template] .product-stock { font-size:12px; line-height:1.5; color:var(--muted); }
[data-store-template] .product-actions { padding-top:14px; margin-top:auto; }
[data-store-template] .product-counter { border:1px solid var(--line); border-radius:9px; }
[data-store-template] .product-counter>button { min-height:44px; background:var(--soft); color:var(--green); }
[data-store-template] .product-counter>.quantity-value { font-size:14px; background:white; color:var(--ink); }
[data-store-template] .product.is-in-cart { border-color:var(--green); }
[data-store-template] .primary { background:var(--green); }
[data-store-template] .cart-dock { background:linear-gradient(transparent,#f5f7fb 25%); }
[data-store-template] .cart-dock>button { background:var(--green); box-shadow:0 8px 24px #17223a20; min-height:56px; font-size:15px; }
[data-store-template] .store-footer { font-size:13px; color:var(--muted); border-color:var(--line); }
/* Boutique: editorial gallery, centered wordmark, underlined category navigation. */
:root[data-store-template=boutique] { --ink:#242020; --muted:#6c6262; --line:#ded9d8; --green:#292323; --soft:#f2efee; background:#fff; }
[data-store-template=boutique] #shop { max-width:1600px; padding:0 48px 112px; }
[data-store-template=boutique] .store-header { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; padding:22px 0; border-bottom:1px solid var(--ink); }
[data-store-template=boutique] .brand h1 { text-align:center; font:34px/1.1 Georgia,'Times New Roman',serif; letter-spacing:-1.3px; }
[data-store-template=boutique] .catalog-layout { grid-template-columns:minmax(0,1fr) 280px; column-gap:30px; }
[data-store-template=boutique] .categories { grid-column:1; grid-row:1; margin:14px 0; gap:24px; align-items:center; }
[data-store-template=boutique] .categories button { border:0; border-bottom:2px solid transparent; border-radius:0; padding:10px 0; background:transparent; color:var(--muted); }
[data-store-template=boutique] .categories button[aria-pressed=true] { background:transparent; color:var(--ink); border-bottom-color:var(--ink); }
[data-store-template=boutique] .search { grid-column:2; grid-row:1; margin:14px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:0 8px; }
[data-store-template=boutique] .breadcrumbs,[data-store-template=boutique] .section-heading,[data-store-template=boutique] .products,[data-store-template=boutique] #error { grid-column:1/-1; }
[data-store-template=boutique] .section-heading h2 { font:36px/1.15 Georgia,'Times New Roman',serif; }
[data-store-template=boutique] .sort-label>span { display:none; }
[data-store-template=boutique] .sort-label select { border:0; border-bottom:1px solid var(--line); border-radius:0; }
[data-store-template=boutique] .products { grid-template-columns:repeat(3,minmax(0,1fr)); gap:42px 32px; }
[data-store-template=boutique] .product { padding:0; border:0; border-radius:0; }
[data-store-template=boutique] .product-open,[data-store-template=boutique] .product-photo { border-radius:0; }
[data-store-template=boutique] .product-photo { aspect-ratio:4/5; background:#f3f1ef; }
[data-store-template=boutique] .product-photo img { padding:20px; }
[data-store-template=boutique] .product-details { padding:18px 0 0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; gap:8px 16px; }
[data-store-template=boutique] .product h3 { font:24px/1.2 Georgia,'Times New Roman',serif; }
[data-store-template=boutique] .product .price { grid-column:2; grid-row:1/3; margin:0; text-align:right; font-size:17px; font-weight:500; }
[data-store-template=boutique] .product-description { grid-column:1; margin:0; }
[data-store-template=boutique] .product-stock,[data-store-template=boutique] .product-options,[data-store-template=boutique] .quantity-unit { grid-column:1/-1; }
[data-store-template=boutique] .product-actions { grid-column:1/-1; padding-top:6px; max-width:230px; width:100%; }
[data-store-template=boutique] .product-counter { border-radius:0; }
[data-store-template=boutique] .cart-dock { background:linear-gradient(transparent,#fff 25%); }
[data-store-template=boutique] .cart-dock>button,[data-store-template=boutique] .primary { border-radius:0; }
/* Catalog: sidebar categories and horizontal order rows, designed for quick selection. */
:root[data-store-template=catalog] { --ink:#173e36; --muted:#576e66; --line:#d9e4df; --green:#126b54; --soft:#e7f3ec; background:#eef4f0; }
[data-store-template=catalog] #shop { max-width:1280px; }
[data-store-template=catalog] .store-header { border-bottom:1px solid var(--line); margin-bottom:22px; }
[data-store-template=catalog] .brand h1 { font-size:24px; font-weight:750; }
[data-store-template=catalog] .catalog-layout { grid-template-columns:210px minmax(0,1fr); column-gap:28px; align-items:start; }
[data-store-template=catalog] .categories { grid-column:1; grid-row:1/6; display:flex; flex-direction:column; padding:12px; background:#dfece4; border-radius:16px; overflow:visible; gap:4px; }
[data-store-template=catalog] .categories button { text-align:left; white-space:normal; overflow-wrap:anywhere; background:transparent; border:0; }
[data-store-template=catalog] .search { grid-column:2; grid-row:1; margin:0 0 8px; }
[data-store-template=catalog] .breadcrumbs,[data-store-template=catalog] .section-heading,[data-store-template=catalog] .products,[data-store-template=catalog] #error { grid-column:2; }
[data-store-template=catalog] .section-heading h2 { font-size:24px; }
[data-store-template=catalog] .products { grid-template-columns:minmax(0,1fr); gap:10px; }
[data-store-template=catalog] .product { display:grid; grid-template-columns:116px minmax(0,1fr); padding:16px; gap:18px; border-radius:12px; }
[data-store-template=catalog] .product-photo { aspect-ratio:1; background:#f4f7f5; }
[data-store-template=catalog] .product-details { padding:0; display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:5px 20px; align-content:center; }
[data-store-template=catalog] .product-title { grid-column:1; }
[data-store-template=catalog] .product-description { grid-column:1; margin:0; }
[data-store-template=catalog] .product-stock,[data-store-template=catalog] .product-options,[data-store-template=catalog] .quantity-unit { grid-column:1; }
[data-store-template=catalog] .product .price { grid-column:2; grid-row:1/3; margin:0; font-size:21px; text-align:right; }
[data-store-template=catalog] .product-actions { grid-column:2; grid-row:3/6; padding:0; align-self:end; }
[data-store-template=catalog] .cart-dock { background:linear-gradient(transparent,#eef4f0 25%); }
@media(min-width:1100px) {
 [data-store-template=classic] .catalog-layout { grid-template-columns:minmax(0,1fr) 320px; column-gap:24px; }
 [data-store-template=classic] .categories { grid-column:1; grid-row:1; }
 [data-store-template=classic] .search { grid-column:2; grid-row:1; }
 [data-store-template=classic] .breadcrumbs,[data-store-template=classic] .section-heading,[data-store-template=classic] .products,[data-store-template=classic] #error { grid-column:1/-1; }
}
@media(max-width:1000px) {
 [data-store-template] .products { grid-template-columns:repeat(3,minmax(0,1fr)); }
 [data-store-template=boutique] .products { grid-template-columns:repeat(2,minmax(0,1fr)); }
 [data-store-template=catalog] .products { grid-template-columns:1fr; }
 [data-store-template=catalog] .catalog-layout { grid-template-columns:170px minmax(0,1fr); column-gap:18px; }
 [data-store-template=catalog] .product { grid-template-columns:88px minmax(0,1fr); gap:12px; }
 [data-store-template=catalog] .product-details { grid-template-columns:minmax(0,1fr); }
 [data-store-template=catalog] .product .price,[data-store-template=catalog] .product-actions { grid-column:1; grid-row:auto; text-align:left; }
 [data-store-template=catalog] .product-actions { max-width:210px; width:100%; padding-top:7px; }
}
@media(max-width:600px) {
 [data-store-template] #shop { padding:0 14px 100px; }
 [data-store-template] .store-header { padding:12px 0; }
 [data-store-template] .brand h1 { font-size:20px; }
 [data-store-template] .brandmark,[data-store-template] .brandmark img { width:30px; height:30px; }
 [data-store-template] .categories { gap:6px; margin:0 0 12px; }
 [data-store-template] .categories button { padding:10px 16px; }
 [data-store-template] .search { margin:0 0 6px; }
 [data-store-template] .section-heading { margin:4px 0 16px; gap:8px; }
 [data-store-template] .section-heading h2 { font-size:24px; }
 .sort-label { width:100%; justify-content:space-between; }
 .sort-label select { max-width:100%; flex:1; }
 [data-store-template] .products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 [data-store-template] .product { padding:7px; border-radius:12px; }
 [data-store-template] .product-details { padding:10px 2px 2px; }
 [data-store-template] .product h3 { font-size:16px; }
 [data-store-template] .product .price { font-size:19px; }
 [data-store-template] .product-actions { padding-top:10px; }
 [data-store-template] .product-counter>.quantity-value { font-size:13px; }
 [data-store-template] .product-counter>button { min-width:32px; }
 [data-store-template] .store-footer { flex-direction:column; gap:6px; }
 [data-store-template=boutique] #shop { padding-left:20px; padding-right:20px; }
 [data-store-template=boutique] .brand h1 { font-size:27px; }
 [data-store-template=boutique] .catalog-layout { grid-template-columns:minmax(0,1fr); }
 [data-store-template=boutique] .categories { grid-column:1; grid-row:1; margin:10px 0; gap:24px; }
 [data-store-template=boutique] .search { grid-column:1; grid-row:2; margin:0; }
 [data-store-template=boutique] .section-heading h2 { font-size:30px; }
 [data-store-template=boutique] .products { grid-template-columns:minmax(0,1fr); gap:36px; }
 [data-store-template=boutique] .product { padding:0; }
 [data-store-template=boutique] .product-photo { aspect-ratio:1; }
 [data-store-template=boutique] .product-details { padding:16px 0 0; gap:8px 12px; }
 [data-store-template=boutique] .product h3 { font-size:25px; }
 [data-store-template=boutique] .product .price { font-size:18px; }
 [data-store-template=boutique] .product-actions { max-width:none; }
 [data-store-template=catalog] .store-header { margin-bottom:8px; }
 [data-store-template=catalog] .catalog-layout { grid-template-columns:minmax(0,1fr); }
 [data-store-template=catalog] .categories { grid-column:1; grid-row:1; flex-direction:row; overflow:auto; padding:5px; margin-bottom:12px; gap:4px; border-radius:10px; }
 [data-store-template=catalog] .categories button { white-space:nowrap; flex-shrink:0; }
 [data-store-template=catalog] .search { grid-column:1; grid-row:2; }
 [data-store-template=catalog] .breadcrumbs,[data-store-template=catalog] .section-heading,[data-store-template=catalog] .products,[data-store-template=catalog] #error { grid-column:1; }
 [data-store-template=catalog] .products { grid-template-columns:minmax(0,1fr); gap:8px; }
 [data-store-template=catalog] .product { grid-template-columns:86px minmax(0,1fr); gap:12px; padding:12px; }
 [data-store-template=catalog] .product-details { padding:0; gap:4px; }
 [data-store-template=catalog] .product h3 { font-size:17px; }
 [data-store-template=catalog] .product-description { font-size:13px; }
 [data-store-template=catalog] .product-actions { max-width:none; padding-top:6px; }
 [data-store-template=catalog] .product-photo { aspect-ratio:3/4; }
 [data-store-template=catalog] .product-photo img { padding:5px; }
}
