/* 零件商城：左侧筛选 + 商品网格 + 分页 */

.shop {
  padding: 26px 0 72px;
  background: #fff;
}

.shop__layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.shop-side {
  width: 260px;
  flex: none;
}

.shop-main {
  flex: 1;
  min-width: 0;
}

.shop-fold + .shop-fold {
  margin-top: 22px;
}

.shop-fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 4px 0 14px;
  border-radius: 8px;
  background: #1a84d4;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.shop-fold__caret {
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
}

.shop-fold.is-shut .shop-fold__caret {
  transform: rotate(180deg);
}

.shop-fold__body {
  padding: 10px 0 0 2px;
}

.shop-brand {
  display: block;
  width: 100%;
  padding: 6px 0 6px 12px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #a3a3a3;
}

.shop-brand.is-on {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #1a84d4;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.shop-colors__name {
  margin: 14px 0 8px;
  padding-left: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
}

.shop-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
  width: 100%;
}

.shop-swatch {
  position: relative;
  width: 100%;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0;
}

.shop-swatch.is-light {
  border-color: #d0d5dc;
}

.shop-swatch__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 3px 8px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.shop-swatch__tip img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.shop-swatch__tip em {
  position: relative;
  font-style: normal;
}

.shop-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 8px;
  margin-top: 12px;
}

.shop-kind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.shop-kind img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  padding: 10px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 8px;
  box-sizing: border-box;
}

.shop-kind span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 16px;
}

.shop-toolbar__side {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 800;
}

.shop-btn:hover {
  filter: brightness(1.03);
}

.shop-btn--upload {
  background: var(--yellow);
}

.shop-btn--upload img {
  width: 20px;
  height: 16px;
  object-fit: contain;
}

.shop-btn--compare {
  background: var(--yellow);
}

.shop-btn--compare img {
  width: 22px;
  height: 14px;
  object-fit: contain;
}

.shop-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 14px;
  font-weight: 700;
}

.shop-stock img {
  width: 16px;
  height: 14px;
  object-fit: contain;
}

.shop-stock__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c8c8c8;
  border-radius: 3px;
}

.shop-sort {
  position: relative;
}

.shop-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #f2f3f5;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
}

.shop-sort__btn span {
  color: #1a84d4;
  font-weight: 800;
}

.shop-sort__btn strong {
  color: #1a1a1a;
  font-weight: 800;
}

.shop-sort__btn img {
  width: 10px;
  height: 8px;
  object-fit: contain;
}

.shop-sort__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.shop-sort__menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.shop-sort__menu button.is-on,
.shop-sort__menu button:hover {
  background: #f3f8fc;
  color: var(--blue);
}

/* 零件对比：导出 + 两份清单上传 */
.shop-files {
  padding: 36px 0 96px;
  background: #fff;
}

.shop-files__export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 800;
}

.shop-files__export:hover {
  filter: brightness(1.03);
}

.shop-files__export img {
  width: 22px;
  height: 18px;
  object-fit: contain;
}

.shop-files__hint {
  margin-top: 12px;
  color: #d23b3b;
  font-size: 14px;
  font-weight: 700;
}

.shop-files__row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  min-height: 118px;
  margin-top: 22px;
  padding: 20px 28px 20px 36px;
  border-radius: 14px;
}

.shop-files__row--first {
  margin-top: 34px;
  background: #e7f4fb;
}

.shop-files__row--second {
  background: #fff8e6;
}

.shop-files__title {
  min-width: 0;
  overflow: hidden;
  color: #1a84d4;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-files__formats {
  max-width: 640px;
  margin: 0 auto;
  color: #b5b5b5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.shop-files__upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #1a84d4;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.shop-files__upload:hover {
  filter: brightness(1.05);
}

.shop-files__upload img {
  width: 22px;
  height: 16px;
  object-fit: contain;
}

.shop-files__error,
.shop-files__status {
  margin: 8px 8px 0;
  font-size: 13px;
  font-weight: 700;
}

.shop-files__error {
  color: #d23b3b;
}

.shop-files__status {
  color: #1a84d4;
}

/* 上传两份清单后的对照结果：相同零件、两侧差异 */
.cmp {
  margin-top: 36px;
  overflow: hidden;
  border-radius: 10px;
}

.cmp__bar {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.cmp--same .cmp__bar {
  background: #1a84d4;
  color: #fff;
}

.cmp--diff .cmp__bar {
  background: var(--yellow);
  color: #1a1a1a;
}

.cmp__body {
  padding: 28px 22px 30px;
}

.cmp--same .cmp__body {
  background: #f4f8fc;
}

.cmp--diff .cmp__body {
  padding: 20px 18px 26px;
  background: #fff8e6;
}

.cmp-diff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 56px;
  align-items: start;
}

.cmp-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  margin-bottom: 16px;
  padding: 0 2px;
}

.cmp-col__head strong {
  min-width: 0;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmp-col__stats {
  display: flex;
  flex: none;
  gap: 28px;
  margin: 0;
  color: #1a84d4;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.cmp-empty {
  margin: 4px 0 8px;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 700;
}

.cmp-grid--same {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.cmp-grid--diff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cmp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 8px 11px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 48, 90, 0.04);
}

.cmp-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1 / 1;
  padding: 12px 8px 10px;
  background: #f4f5f7;
  border-radius: 12px;
}

.cmp-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-card__visual svg {
  width: 54px;
  height: 44px;
}

.cmp-card__qty {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.cmp-card__foot {
  padding: 10px 4px 1px;
}

.cmp-card__name {
  display: -webkit-box;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cmp-card__code {
  margin-top: 3px;
  overflow: hidden;
  color: #b5b5b5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-empty {
  padding: 80px 16px;
  color: #888;
  font-weight: 700;
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  cursor: pointer;
}

.shop-card__media {
  position: relative;
  flex: 1;
  min-height: 188px;
  background: #f3f4f6;
}

.shop-card__logo {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e6e7eb;
  color: #8d8d8d;
  font-size: 11px;
  font-weight: 700;
}

.shop-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 188px;
  margin: 0;
}

.shop-card__visual svg {
  width: 78px;
  height: 64px;
}

.shop-card__body {
  padding: 14px 16px 16px;
  background: #fff;
}

.shop-card__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
}

.shop-card__code {
  margin-top: 4px;
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 600;
}

.shop-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 0;
}

.shop-card__price {
  color: #1a86d8;
  font-size: 18px;
  font-weight: 800;
}

.shop-card__cart {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #f5c400;
  transition: transform .15s ease;
}

.shop-card__cart img {
  width: 40px;
  height: 40px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
}

.shop-card__cart:hover,
.shop-card__cart.is-added {
  transform: scale(1.08);
}

.shop-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 72px;
  margin-bottom: 36px;
  color: #222;
  font-size: 18px;
  font-weight: 700;
}

.shop-pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  padding: 0;
  background: none;
}

.shop-pager__arrow img {
  width: 28px;
  height: 36px;
  max-width: none;
  object-fit: contain;
}

.shop-pager__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.shop-pager__num {
  min-width: 34px;
  height: 34px;
  border-radius: 4px;
  color: #222;
  font-weight: 700;
}

.shop-pager__num.is-on {
  background: #1a6fbf;
  color: #fff;
  font-weight: 800;
}

.shop-pager__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  color: #222;
  font-weight: 700;
}

.shop-pager__jump input {
  width: 56px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #f3f4f6;
  color: #222;
  font: inherit;
  font-weight: 700;
  text-align: center;
  outline: none;
}

/* 零件详情：左图和色号表，右购买信息，底部产品描述 */
.pdetail {
  padding: 28px 0 80px;
  background: #fff;
}

.pdetail__top {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 36px 48px;
  align-items: start;
}

.pdetail__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background: #f4f5f7;
  border-radius: 12px;
}

.pdetail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdetail__visual svg {
  width: 280px;
  height: auto;
}

.pdetail__ids-title {
  margin: 26px 0 12px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.pdetail__ids {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border-radius: 4px;
}

.pdetail__ids th,
.pdetail__ids td {
  width: 50%;
  height: 42px;
  padding: 0 8px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.pdetail__ids tr.is-blue th { background: #d7ebf8; }
.pdetail__ids tr.is-blue td { background: #e8f4fb; }
.pdetail__ids tr.is-cream th { background: #fff1cc; }
.pdetail__ids tr.is-cream td { background: #fff8e6; }

.pdetail__name {
  max-width: 420px;
  color: #1a1a1a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.28;
}

.pdetail__price {
  margin-top: 14px;
  color: #1a86d8;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.pdetail__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.pdetail__id {
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 600;
}

.pdetail__upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
}

.pdetail__upload:hover {
  filter: brightness(1.03);
}

.pdetail__upload img {
  width: 20px;
  height: 16px;
  object-fit: contain;
}

.pdetail__label {
  margin-top: 22px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 800;
}

.pdetail__group {
  margin: 12px 0 8px;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
}

.pdetail__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 5px;
}

.pdetail__swatch {
  position: relative;
  display: block;
  width: 40px;
  padding: 0;
  background: none;
}

.pdetail__face {
  position: relative;
  display: block;
  width: 40px;
}

.pdetail__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 5px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.pdetail__chip.is-light {
  border-color: #e4e4e4;
  color: #1a1a1a;
}

.pdetail__swatch.is-on .pdetail__chip {
  border-color: #1a84d4;
}

.pdetail__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 1px);
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 36px;
  min-height: 26px;
  padding: 4px 8px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.pdetail__tip img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.pdetail__tip em {
  position: relative;
  font-style: normal;
}

.pdetail__mins {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.pdetail__min {
  min-width: 88px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #f2f3f5;
  color: #8d8d8d;
  font-size: 14px;
  font-weight: 700;
}

.pdetail__min.is-on {
  border-color: #1a84d4;
  background: #fff;
  color: #1a1a1a;
}

.pdetail__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.pdetail__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.pdetail__step span {
  display: block;
  margin-top: -1px;
}

.pdetail__step:disabled {
  opacity: 0.4;
  cursor: default;
}

.pdetail__qty-input {
  width: 56px;
  height: 32px;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.pdetail__qty-input:focus {
  border-color: #1a84d4;
}

.pdetail__qty-label {
  margin-left: 2px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
}

.pdetail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.pdetail__cart,
.pdetail__list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.pdetail__cart {
  min-width: 188px;
  background: var(--yellow);
  color: #1a1a1a;
}

.pdetail__list {
  min-width: 220px;
  background: #1a6fbf;
  color: #fff;
}

.pdetail__cart svg,
.pdetail__list svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.pdetail__cart:hover,
.pdetail__list:hover,
.pdetail__cart.is-added,
.pdetail__list.is-added {
  filter: brightness(1.05);
}

.pdetail__desc {
  margin-top: 42px;
}

.pdetail__desc h2 {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid #1a1a1a;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.pdetail__desc-box {
  min-height: 168px;
  padding: 22px 28px 28px;
  border-radius: 16px;
  background: #e8f4fb;
}

/* 产品描述下方：相关零件 / 最近浏览 */
.pdetail-rel {
  margin-top: 36px;
}

.pdetail-rel__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.pdetail-rel__tab {
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  color: #b0b0b0;
  font-size: 15px;
  font-weight: 800;
}

.pdetail-rel__tab.is-on {
  background: #1a6fbf;
  color: #fff;
}

.pdetail-rel__line {
  height: 2px;
  margin-top: 12px;
  background: #1a73c9;
}

.pdetail-rel__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 26px;
}

.pdetail-rel .shop-card {
  min-height: 0;
}

.pdetail-rel .shop-card__media,
.pdetail-rel .shop-card__visual {
  min-height: 148px;
}

.pdetail-rel .shop-card__visual svg {
  width: 62px;
  height: 50px;
}

.pdetail-rel .shop-card__logo {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.pdetail-rel .shop-card__body {
  padding: 12px 14px 14px;
}

.pdetail-rel .shop-card__name {
  font-size: 15px;
}

.pdetail-rel .shop-card__code {
  font-size: 12px;
}

.pdetail-rel .shop-card__row {
  margin-top: 10px;
}

.pdetail-rel .shop-card__price {
  font-size: 16px;
}

.pdetail-rel .shop-card__cart,
.pdetail-rel .shop-card__cart img {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

.pdetail-rel__empty {
  margin: 28px 0 8px;
  color: #9a9a9a;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmp-grid--same {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pdetail-rel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shop-files__row {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 18px 16px;
  }

  .shop-files__formats {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .shop-files__title {
    font-size: 18px;
  }

  .cmp-diff {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cmp-grid--same,
  .cmp-grid--diff {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop__layout {
    flex-direction: column;
  }

  .shop-side {
    width: 100%;
  }

  .shop-toolbar {
    flex-wrap: wrap;
  }

  .shop-toolbar__side {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdetail__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pdetail__photo {
    min-height: 300px;
  }

  .pdetail__name {
    font-size: 24px;
  }

  .pdetail__price {
    font-size: 28px;
  }

  .pdetail-rel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdetail-rel__tabs {
    gap: 8px;
  }

  .pdetail-rel__tab {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .shop {
    padding-top: 18px;
  }

  .shop-grid {
    gap: 10px;
  }

  .shop-card {
    min-height: 280px;
  }

  .shop-card__media,
  .shop-card__visual {
    min-height: 140px;
  }

  .shop-card__body {
    padding: 12px;
  }

  .shop-card__name,
  .shop-card__price {
    font-size: 14px;
  }

  .shop-pager {
    flex-wrap: wrap;
  }

  .cmp__body {
    padding: 16px 12px 18px;
  }

  .cmp-grid--same,
  .cmp-grid--diff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmp-col__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pdetail {
    padding-top: 18px;
  }

  .pdetail__photo {
    min-height: 240px;
  }

  .pdetail__actions {
    flex-direction: column;
    gap: 10px;
  }

  .pdetail__cart,
  .pdetail__list {
    width: 100%;
  }
}
