/* =========================================================================
   The CraftingTable — Product detail styles
   ========================================================================= */

.breadcrumb {
  padding: 28px 0 4px;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 20px 0 40px;
}

/* ------------------------------ Gallery -------------------------------- */
.product__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 38%, var(--cream), var(--sand));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product__stage img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: opacity 0.25s var(--ease), transform 0.5s var(--ease);
}

.product__stage:hover img {
  transform: scale(1.04);
}

.product__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: radial-gradient(circle at 50% 40%, var(--cream), var(--sand));
  cursor: pointer;
  padding: 10px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb:hover {
  transform: translateY(-3px);
}

.thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ------------------------------- Info ---------------------------------- */
.product__info h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 8px 0 12px;
}

.product__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.product__rating {
  color: #d8dade;
}

.product__price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin: 18px 0;
}

.product__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.product__features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

.product__features li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
}

.product__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--cream);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* ------------------------------- Buy ----------------------------------- */
.product__buy {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.qty__btn {
  width: 48px;
  height: 100%;
  min-height: 52px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--foreground);
  transition: background 0.2s var(--ease);
}

.qty__btn:hover {
  background: var(--cream);
  color: var(--primary);
}

.qty__val {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
}

.product__buy .btn {
  flex: 1;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
