.ot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.ot-layout--left {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.ot-layout--right {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.ot-layout--both {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px);
}

.ot-page-title {
  margin: 0 0 18px;
  color: var(--ot-primary);
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.ot-content-rich {
  max-width: 900px;
}

.ot-content-rich img,
.ot-content-rich iframe {
  max-width: 100%;
}

.ot-content-rich h2,
.ot-content-rich h3 {
  margin-top: 1.5em;
  color: var(--ot-primary);
}

.ot-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--ot-catalog-columns), minmax(0, 1fr));
  gap: 14px;
}

.ot-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px;
  background: var(--ot-white);
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius-sm);
  transition: border-color var(--ot-ease), box-shadow var(--ot-ease), transform var(--ot-ease);
}

.ot-product-card:hover {
  border-color: #cfd3d8;
  box-shadow: var(--ot-shadow-sm);
  transform: translateY(-2px);
}

.ot-product-card__image {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 11px;
  overflow: hidden;
  background: var(--ot-surface-alt);
  border-radius: var(--ot-radius-xs);
}

.ot-product-card__media {
  position: relative;
}

.ot-product-card__media-actions {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  gap: 6px;
}

.ot-product-card__media-actions .ot-icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  min-height: 40px;
  flex-basis: 40px;
  background: rgba(255, 255, 255, 0.94);
}

.ot-product-card__media-actions .ot-icon-button::before {
  position: absolute;
  inset: -2px;
  content: "";
}

.ot-product-card__discount {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  color: var(--ot-white);
  background: var(--ot-sale);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ot-product-card__meta {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ot-product-card__manufacturer {
  overflow: hidden;
  color: var(--ot-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ot-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ot-product-card__name {
  min-height: 42px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ot-text);
  font-weight: 700;
  line-height: 1.35;
}

.ot-product-card__model,
.ot-product-card__stock {
  color: var(--ot-text-muted);
  font-size: 12px;
}

.ot-product-card__price {
  margin-top: auto;
  padding-top: 11px;
  color: var(--ot-primary);
  font-size: 18px;
  font-weight: 700;
}

.ot-product-card__old-price {
  color: var(--ot-text-soft);
  font-size: 13px;
  text-decoration: line-through;
}

.ot-product-card__rating {
  color: #9a6d00;
  font-size: 13px;
  font-weight: 700;
}

.ot-product-card__package {
  color: var(--ot-text-muted);
  font-size: 12px;
}

.ot-product-card__stock {
  margin-top: 6px;
}

.ot-product-card__stock.is-available {
  color: var(--ot-success);
}

.ot-product-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.ot-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.ot-category-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px;
  background: var(--ot-surface);
  border-radius: var(--ot-radius-sm);
}

.ot-category-toolbar select {
  width: auto;
  min-width: 190px;
}

.ot-subcategories {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.ot-subcategory {
  min-width: 160px;
  padding: 11px;
  background: var(--ot-surface);
  border-radius: var(--ot-radius-sm);
  scroll-snap-align: start;
  font-weight: 700;
}

.ot-product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
}

.ot-product-gallery {
  display: grid;
  gap: 12px;
}

.ot-product-gallery__main {
  display: grid;
  min-height: 360px;
  place-items: center;
  background: var(--ot-surface-alt);
  border-radius: var(--ot-radius-md);
}

.ot-product-gallery__main img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
}

.ot-product-summary {
  align-self: start;
}

.ot-product-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
  color: var(--ot-text-muted);
  font-size: 13px;
}

.ot-product-price {
  margin-block: 16px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
}

.ot-product-options {
  display: grid;
  gap: 16px;
  margin-block: 16px;
}

.ot-product-buy {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ot-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 28px;
}

.ot-cart-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto auto 44px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ot-border);
}

.ot-cart-item:first-child {
  padding-top: 0;
}

.ot-cart-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ot-cart-item__image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: var(--ot-surface-alt);
  border-radius: var(--ot-radius-xs);
}

.ot-cart-item__name {
  font-weight: 600;
}

.ot-cart-summary {
  position: sticky;
  top: 140px;
}

.ot-cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
  border-bottom: 1px solid var(--ot-border);
}

.ot-cart-total-row:last-child {
  border-bottom: 0;
  font-size: 20px;
  font-weight: 700;
}

.ot-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ot-account-link {
  min-height: 92px;
  padding: 16px;
  background: var(--ot-surface);
  border-radius: var(--ot-radius-sm);
  font-weight: 600;
}

.ot-empty-state {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: var(--ot-surface);
  border-radius: var(--ot-radius-md);
}

.ot-module {
  margin-block: 28px;
}

.ot-section-title {
  margin: 0 0 16px;
  color: var(--ot-primary);
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.15;
}

.ot-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ot-banner,
.ot-hero__slide {
  display: block;
  overflow: hidden;
  background: var(--ot-surface);
  border-radius: var(--ot-radius-md);
}

.ot-banner img,
.ot-hero__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.ot-hero {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.ot-hero__slide {
  scroll-snap-align: start;
}

.ot-logo-strip {
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow-x: auto;
  background: var(--ot-white);
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius-md);
}

.ot-logo-strip > * {
  display: grid;
  min-width: 150px;
  height: 76px;
  place-items: center;
}

.ot-logo-strip img {
  max-width: 130px;
  max-height: 56px;
  object-fit: contain;
}

.ot-link-list {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--ot-surface);
  border-radius: var(--ot-radius-md);
}

.ot-link-list a {
  padding: 10px 0;
  border-bottom: 1px solid var(--ot-border);
}

.ot-filter {
  padding: 16px;
  background: var(--ot-white);
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius-md);
}

.ot-filter__group {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.ot-filter__group legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.ot-filter__group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ot-filter__group input {
  width: 20px;
  height: 20px;
}

.ot-city__select {
  width: auto;
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  color: inherit;
  background-color: transparent;
  border-color: currentColor;
}

.ot-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.ot-product-gallery__thumbs a {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius-xs);
}

.ot-product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ot-product-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ot-quantity {
  display: grid;
  grid-template-columns: 42px minmax(76px, 110px) 42px;
  align-items: stretch;
}

.ot-quantity button {
  min-height: 42px;
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
}

.ot-quantity input {
  min-height: 42px;
  text-align: center;
  border-radius: 0;
}

.ot-cart-item__quantity {
  display: grid;
  gap: 8px;
}

.ot-cart-summary__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
