/* Shop-only styles preserve the purchase and order screens. */
#shopPage { padding-inline: 18px; }
#shopPage, #shopPage * { letter-spacing: 0; }
#shopPage .header { min-height: 86px; padding-block: 18px 10px; }
#shopPage .header h1 { font-size: 32px; }
#shopPage .shop-intro { margin: 0 2px 26px; color: var(--muted); font-size: 14px; line-height: 1.5; }
#shopPage .catalog-label { margin: 0 3px 14px; }
#shopPage .catalog-label h2 { font-size: 20px; font-weight: 600; }
#shopPage .product-card {
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas: "logo copy" "action action";
  gap: 12px 18px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
#shopPage .product-logo {
  width: 104px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 20%, var(--surface));
  background: color-mix(in srgb, var(--product-accent) 5%, var(--surface));
  box-shadow: none;
}
#shopPage .product-logo img { width: var(--logo-image-size,94%); height: var(--logo-image-size,94%); object-fit: contain; }
#shopPage .product-copy { align-self: start; padding: 0; }
#shopPage .product-badges { min-height: 28px; padding-right: 34px; margin-bottom: 5px; gap: 6px; }
#shopPage .tag { border-radius: 20px; padding: 4px 9px; font-size: 12px; line-height: 1.25; font-weight: 500; }
#shopPage .tag.new { border: 1px solid color-mix(in srgb, var(--stock) 34%, transparent) !important; }
#shopPage .tag.device { border: 1px solid color-mix(in srgb, var(--tools) 19%, transparent) !important; }
#shopPage .tag.new { background: var(--stock-soft); }
#shopPage .tag.device { background: var(--tools-soft); }
#shopPage .product-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
#shopPage .product-desc { max-width: none; margin-top: 5px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
#shopPage .product-go {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
}
#shopPage .product-go:hover { background: var(--surface-2); }
#shopPage .product-go .ico { width: 21px; height: 21px; }
#shopPage .product-action { margin-top: 0; min-height: 48px; align-items: end; flex-wrap: wrap; gap: 12px; }
#shopPage .shop-price { min-width: 0; max-width: 100%; gap: 3px; align-self: end; white-space: normal; }
#shopPage .price-from { font-size: 12px; font-weight: 400; }
#shopPage .shop-price strong { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
#shopPage .shop-price.unavailable strong { font-size: 18px; }
#shopPage .product-action .btn { margin-left: auto; min-height: 42px; min-width: 116px; max-width: 100%; padding: 9px 16px; border-radius: 13px; font-size: 14px; gap: 8px; align-self: end; color: #fff !important; }
#shopPage .product-action .btn .ico { width: 21px; height: 21px; }
html[data-theme="dark"] #shopPage .product-card { border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] #shopPage .product-action .product-accent-btn { color: #fff !important; }
#shopPage .product-action .product-accent-btn { color: #fff !important; }
html[data-theme="dark"] #shopPage .product-go { color: var(--primary); border-color: var(--line); background: var(--surface); }
@media (max-width: 360px) {
  #shopPage { padding-inline: 12px; }
  #shopPage .product-card { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 12px; }
  #shopPage .product-logo { width: 82px; border-radius: 16px; }
  #shopPage .product-title { font-size: 18px; }
  #shopPage .tag { font-size: 11px; padding: 4px 6px; }
  #shopPage .product-badges { gap: 4px; }
  #shopPage .product-action .btn { min-width: 108px; padding-inline: 12px; }
}
@media (min-width: 600px) {
  #shopPage { padding-inline: 28px; }
  #shopPage .product-card { grid-template-columns: 124px minmax(0, 1fr); gap: 16px 22px; padding: 20px; }
  #shopPage .product-logo { width: 124px; }
  #shopPage .product-go { top: 18px; right: 18px; width: 40px; height: 40px; }
  #shopPage .product-badges { padding-right: 40px; }
  #shopPage .product-desc { font-size: 15px; }
}
