.detail-wrap {
  padding: 30px 0 24px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 0 6px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px;
}

.gallery,
.info-card,
.meta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery {
  padding: 14px;
}

.main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
  background: #fff;
}

.main-image.zoomable {
  cursor: zoom-in;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(21, 21, 21, .82);
}

.image-zoom.show {
  display: flex;
}

.image-zoom img {
  width: auto;
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 72px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-zoom-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.zoom-open {
  overflow: hidden;
}

.no-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  padding: 18px;
}

.no-image img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: .8;
}

.thumb-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.thumb-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px;
  background: #fff;
  cursor: pointer;
}

.thumb-btn.active {
  border-color: var(--accent);
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.info-card {
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.p-category {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.info-card h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.08;
  letter-spacing: -.4px;
}

.sku {
  font-size: 13px;
  color: var(--muted);
}

.price-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.price-wrap {
  display: grid;
  gap: 3px;
}

.price-ex-vat {
  font-size: 13px;
  color: var(--muted);
}

.quantity-discounts {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.discount-hint {
  display: none;
  margin-top: -4px;
  font-size: 13px;
  color: var(--ok);
}

.discount-hint.show {
  display: block;
}

.stock {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.stock.in {
  color: var(--ok);
  background: rgba(21, 111, 61, .1);
  border-color: rgba(21, 111, 61, .2);
}

.stock.out {
  color: #7c2a2a;
  background: rgba(124, 42, 42, .1);
  border-color: rgba(124, 42, 42, .22);
}

.stock.low {
  color: var(--warn);
  background: rgba(154, 106, 0, .1);
  border-color: rgba(154, 106, 0, .25);
}

.description {
  margin: 0;
  color: #3f444a;
}

.short-description {
  font-weight: 500;
}

.long-description {
  display: grid;
  gap: 6px;
}

.long-description h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.2px;
}

.long-description p {
  margin: 0;
  color: #3f444a;
  line-height: 1.5;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-row input {
  width: 90px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 15px;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
}

.btn.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.success {
  display: none;
  border: 1px solid rgba(21, 111, 61, .2);
  background: rgba(21, 111, 61, .08);
  color: var(--ok);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.meta-card {
  margin-top: 14px;
  padding: 16px;
}

.meta-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.specs li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.not-found {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}
