/* Variant C — catalog toolbar, adaptive list/grid, options via modal only */

.org-ui.orgs-store.org-shop .org-shop-catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__search {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(181, 194, 222, 0.42);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.95rem;
  color: #1e293b;
}

.org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__search:focus {
  outline: none;
  border-color: rgba(211, 84, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.12);
}

.org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__layout {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.org-ui.orgs-store.org-shop .org-shop-catalog-layout-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(181, 194, 222, 0.34);
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.org-ui.orgs-store.org-shop .org-shop-catalog-layout-btn.is-active {
  background: #fff4ec;
  border-color: rgba(211, 84, 0, 0.28);
  color: #b84500;
}

.org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(37, 52, 75, 0.55);
}

.org-ui.orgs-store.org-shop .org-shop-catalog .org-store-item__opts {
  display: none !important;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list {
  grid-template-columns: 1fr !important;
  gap: 10px;
}

/* List row — flex (grid ломался при is-in-cart: контент заплывал под фото) */
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  height: auto !important;
  overflow: hidden;
  grid-column: 1 / -1;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__photo,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__photo,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__photo {
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  align-self: stretch;
  aspect-ratio: unset;
  min-height: 88px;
  max-height: 104px;
  grid-row: unset;
  border-bottom: 0;
  border-right: 1px solid rgba(181, 194, 222, 0.22);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__photo img,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__photo img,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__photo img,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__ph,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__ph,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__ph {
  height: 100%;
  min-height: 88px;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__body,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__body,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__body {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__title,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__title,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__title {
  font-size: 0.95rem;
  margin: 0;
  min-width: 0;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__desc,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__desc,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__desc {
  display: none;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__buy--overlay,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__buy--overlay,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__buy--overlay {
  display: none;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__foot,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__foot,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__foot {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
  width: 100%;
  min-width: 0;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options:not(.is-in-cart) .org-store-item__foot-main,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item:not(.is-in-cart) .org-store-item__foot-main,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list:not(.is-in-cart) .org-store-item__foot-main {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options.is-in-cart .org-store-item__foot-main,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item.is-in-cart .org-store-item__foot-main,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list.is-in-cart .org-store-item__foot-main {
  grid-column: 1;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__foot-main .org-store-item__price,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__foot-main .org-store-item__price,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__foot-main .org-store-item__price {
  min-width: 0;
  max-width: 100%;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options.is-in-cart .org-store-item__foot-main .org-store-item__price .val,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item.is-in-cart .org-store-item__foot-main .org-store-item__price .val,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list.is-in-cart .org-store-item__foot-main .org-store-item__price .val {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options .org-store-item__text-btn,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item .org-store-item__text-btn,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list .org-store-item__text-btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 6px;
  white-space: nowrap;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options:not(.is-in-cart) .org-store-item__stepper,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item:not(.is-in-cart) .org-store-item__stepper,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list:not(.is-in-cart) .org-store-item__stepper {
  display: none !important;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options.is-in-cart .org-store-item__stepper,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item.is-in-cart .org-store-item__stepper,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list.is-in-cart .org-store-item__stepper {
  grid-column: 2;
  display: inline-grid !important;
  align-self: center;
  justify-self: end;
  flex: unset;
  margin-left: 0;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-auto .org-store-item.has-options > noscript,
.org-ui.orgs-store.org-shop .org-products-grid.is-layout-list .org-store-item > noscript,
.org-ui.orgs-store.org-shop .org-store-item.org-store-item--list > noscript {
  display: none;
}

.org-ui.orgs-store.org-shop .org-products-grid.is-layout-grid .org-store-item:not(.org-store-item--compact) .org-store-item__desc {
  display: none;
}

.org-ui.orgs-store.org-shop .org-store-item.is-catalog-hidden {
  display: none !important;
}

.org-ui.orgs-store.org-shop .org-shop-search-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  color: rgba(37, 52, 75, 0.62);
  font-weight: 600;
}

@media (max-width: 1023px) {
  .org-ui.orgs-store.org-shop .org-shop-catalog {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 1024px) {
  .org-ui.orgs-store.org-shop .org-shop-catalog-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__search {
    flex: 1 1 220px;
    max-width: 360px;
  }

  .org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__layout {
    flex: 0 0 auto;
  }

  .org-ui.orgs-store.org-shop .org-shop-catalog-toolbar__meta {
    margin-left: auto;
  }
}

/* Palette aligned with native store (warm accent, dark prices, charcoal selection) */
.org-ui.orgs-store.org-shop {
  --store-title: #1a2740;
  --store-price: #111827;
  --store-accent: #d35400;
  --store-accent-dark: #b84500;
  --store-accent-soft: #fff4ec;
  --store-pill-selected: #1f2937;
}

.org-ui.orgs-store.org-shop .org-shop-hero__title,
.org-ui.orgs-store.org-shop .org-shop-hero__title {
  color: var(--store-title);
}

.org-ui.orgs-store.org-shop .org-store-item__price .val,
.org-ui.orgs-store.org-shop .delivery-cart__sum,
.org-ui.orgs-store.org-shop .org-shop-mobile-bar__sum {
  color: var(--store-price) !important;
}

.org-ui.orgs-store.org-shop .org-shop-nav__link.is-active {
  background: var(--store-pill-selected);
  border-color: var(--store-pill-selected);
  color: #fff;
  box-shadow: none;
}

.org-ui.orgs-store.org-shop .org-shop-nav__link.is-active .org-shop-nav__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.org-ui.orgs-store.org-shop .org-shop-nav__link:hover {
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--store-title);
}

.org-ui.orgs-store.org-shop .org-store-item__text-btn,
.org-ui.orgs-store.org-shop .org-store-item__fab {
  color: var(--store-accent-dark);
}

.org-ui.orgs-store.org-shop .org-store-item__fab {
  background: var(--store-accent-soft);
  border: 1px solid rgba(211, 84, 0, 0.22);
  box-shadow: none;
  font-size: 20px;
}

.org-ui.orgs-store.org-shop .org-store-item__text-btn {
  background: var(--store-accent-soft);
  border-color: rgba(211, 84, 0, 0.22);
}

.org-ui.orgs-store.org-shop .org-store-item__text-btn:hover {
  background: #ffeadb;
  border-color: rgba(211, 84, 0, 0.32);
}

.org-ui.orgs-store.org-shop .org-store-item__stepper {
  border-color: rgba(15, 23, 42, 0.1);
}

.org-ui.orgs-store.org-shop .org-store-item__stepper button {
  color: #374151;
}

.org-ui.orgs-store.org-shop .org-store-item__opt-chip.is-on {
  border-color: rgba(211, 84, 0, 0.35);
  background: var(--store-accent-soft);
  color: var(--store-accent-dark);
}

.org-ui.orgs-store.org-shop .org-shop-mobile-bar__btn.ui-btn--primary,
.org-ui.orgs-store.org-shop .delivery-cart__checkout.ui-btn--primary,
.org-ui.orgs-store.org-shop .org-product-modal__add.ui-btn--primary {
  background: var(--store-accent) !important;
  border-color: var(--store-accent) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(211, 84, 0, 0.22) !important;
}

.org-ui.orgs-store.org-shop .org-shop-mobile-bar__btn.ui-btn--primary:hover,
.org-ui.orgs-store.org-shop .delivery-cart__checkout.ui-btn--primary:hover {
  background: var(--store-accent-dark) !important;
  border-color: var(--store-accent-dark) !important;
}

.org-ui.orgs-store.org-shop .org-shop-mobile-bar__qty {
  background: var(--store-accent-soft);
  color: var(--store-accent-dark);
}
