:root {
  --orange: #ee4d2d;
  --orange-light: #fff3ef;
  --text: #222;
  --muted: #888;
  --line: #eee;
  --bg: #f5f0e6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font, Arial, Helvetica, sans-serif);
  color: var(--text);
  font-size: 15px;
}
a {
  color: #2673c9;
  text-decoration: none;
}
.page {
  width: min(100% - 32px, 980px);
  margin: 24px auto 40px;
  padding: 0 0 30px;
}
.breadcrumb {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #555;
}
.product-card {
  background: #fff;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 26px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}
.gallery {
  min-width: 0;
}
.main-image {
  width: 100%;
  max-height: 390px;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fafafa;
  display: block;
  border: 1px solid #f5f5f5;
}
.thumbs {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  object-fit: cover;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fafafa;
}
.thumb.active {
  border: 2px solid var(--orange);
}
.product-info {
  padding: 8px 4px;
}
.product-title {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 14px;
}
.stats {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: #777;
}
.stat {
  padding-right: 20px;
  border-right: 1px solid #ddd;
}
.stat:last-child {
  border: 0;
}
.rating {
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 3px;
}
.stars {
  color: #ffb400;
  letter-spacing: 1px;
}
.flash-head {
  background: linear-gradient(90deg, #ee4d2d, #ff733f);
  color: #fff;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: bold;
}
.flash-price {
  background: #fff5f2;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff5f2;
  padding: 16px 18px;
  margin: 18px 0;
}
.price {
  font-size: 28px;
  color: var(--orange);
}
.old-price {
  color: #888;
  text-decoration: line-through;
}
.discount {
  color: var(--orange);
  background: #ffe9e3;
  padding: 4px 7px;
  font-size: 13px;
}
.option-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  margin: 27px 0;
  align-items: start;
}
.option-label {
  color: #777;
  padding-top: 9px;
}
.options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.color-selection {
  flex-basis: 100%;
}
.color-selection__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.color-selection .options {
  margin-bottom: 12px;
}
.capacity-selection {
  flex-basis: 100%;
}
.capacity-selection__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.capacity-option {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  min-height: 42px;
  cursor: pointer;
}
.capacity-option:hover,
.capacity-option.selected {
  border-color: var(--orange);
  color: var(--orange);
}
.color-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 7px 12px;
  cursor: pointer;
  min-height: 46px;
}
.color-option:hover,
.color-option.selected {
  border-color: var(--orange);
  color: var(--orange);
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: inline-block;
}
.pink {
  background: #f4c4d0;
}
.white {
  background: #f4f0e9;
}
.blue {
  background: #b9d9e8;
}
.green {
  background: #c4d9c3;
}
.black {
  background: #333;
}
.cream {
  background: #e8ddc9;
}
.sage {
  background: #89917b;
}
.yellow {
  background: #f1dc83;
}
.purple {
  background: #d9c8e9;
}
.burgundy {
  background: #7d2638;
}
.brown {
  background: #8a5b3d;
}
.gray {
  background: #969696;
}
.quantity {
  display: flex;
  align-items: center;
}
.quantity button {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}
.quantity input {
  width: 55px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: 0;
  border-right: 0;
  font-size: 16px;
}
.actions {
  display: flex;
  gap: 12px;
  margin: 28px 0 10px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 20px;
  min-width: 180px;
  border: 1px solid var(--orange);
  font-size: 16px;
  cursor: pointer;
}
.btn-cart {
  color: var(--orange);
  background: var(--orange-light);
}
.btn-buy {
  background: var(--orange);
  color: #fff;
}
.btn:hover {
  filter: brightness(0.97);
}
.notice {
  color: #777;
  font-size: 13px;
  margin-left: 0;
  min-height: 18px;
}
.details {
  background: #fff;
  margin-top: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}
.details-heading {
  font-size: 22px;
  font-weight: 400;
  background: #fafafa;
  padding: 18px;
  margin: 0 0 26px;
}
.specs {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 16px;
}
.spec-label,
.spec-value {
  padding: 15px 0;
  line-height: 1.5;
}
.spec-label {
  color: #888;
}
.spec-value {
  color: #222;
}
.description {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  line-height: 1.75;
}
.description h3 {
  font-size: 18px;
  font-weight: 500;
}
.description ul,
.description ol {
  padding-left: 22px;
}
.description li {
  margin: 7px 0;
}
.detail-note {
  font-size: 13px;
  color: #888;
}
@media (max-width: 900px) {
  .page {
    width: min(100% - 24px, 620px);
    margin-top: 12px;
  }
  .product-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery {
    max-width: 620px;
    margin: auto;
    width: 100%;
  }
  .product-info {
    padding: 0;
  }
  .product-title {
    font-size: 21px;
  }
  .actions,
  .notice {
    margin-left: 0;
  }
  .option-row {
    grid-template-columns: 100px 1fr;
  }
  .details {
    padding: 18px;
  }
  .specs {
    grid-template-columns: 160px 1fr;
  }
}
@media (max-width: 520px) {
  .page {
    width: calc(100% - 16px);
    padding: 0 0 20px;
  }
  .breadcrumb {
    height: auto;
    padding: 12px 0;
    font-size: 12px;
  }
  .product-card {
    padding: 12px;
    gap: 18px;
  }
  .product-title {
    font-size: 18px;
  }
  .stats {
    gap: 10px;
    font-size: 13px;
  }
  .stat {
    padding-right: 10px;
  }
  .price {
    font-size: 27px;
  }
  .flash-head {
    font-size: 13px;
    padding: 10px;
  }
  .flash-price {
    padding: 15px;
  }
  .option-row {
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 20px 0;
  }
  .option-label {
    padding: 0;
  }
  .color-option {
    padding: 7px 9px;
  }
  .actions {
    gap: 10px;
    margin-top: 24px;
  }
  .btn {
    width: 100%;
    min-width: 0;
    padding: 13px;
  }
  .specs {
    grid-template-columns: 125px 1fr;
    font-size: 13px;
  }
  .details-heading {
    font-size: 19px;
  }
  .thumb {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }
}
