* {
  box-sizing: border-box;
}

:root {
  --page-bg: #f5f5f3;
  --card-bg: #ffffff;
  --text: #202020;
  --muted: #666;
  --border: #d9d9d6;
  --button: #202020;
  --button-hover: #3a3a3a;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

.site-header {
  height: 72px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: url("images/metalTexture.jpg");
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cart-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

#cartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #202020;
  color: #fff;
  font-size: 0.8rem;
}

.product-page {
  width: min(1180px, 90vw);
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 55px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.product-image {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: contain;
  padding: 30px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 12px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.gallery-arrow:hover {
  background: #fff;
}

.gallery-arrow.left {
  left: 18px;
}

.gallery-arrow.right {
  right: 18px;
}

.gallery-arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-description {
  padding: 28px 4px 0;
}

.product-description h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.product-description p {
  max-width: 760px;
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.65;
}

.price {
  margin-top: 20px;
  font-weight: 700;
}

.customizer {
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  background-image: url("images/metalTexture.jpg");
}

.customizer h2 {
  margin-top: 0;
  margin-bottom: 26px;
  font-size: 1.45rem;
}

.customizer label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.customizer select {
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.selection-summary {
  margin: 10px 0 25px;
  padding: 15px;
  background: #f7f7f5;
  border-radius: 6px;
}

.selection-summary h3 {
  margin: 0 0 7px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.selection-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-row label {
  margin: 0;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #bbb;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-control button,
.quantity-control input {
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  text-align: center;
  font: inherit;
}

.quantity-control button {
  cursor: pointer;
  font-size: 1.2rem;
}

.quantity-control button:hover {
  background: #f0f0ee;
}

.quantity-control input {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.add-to-cart {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 6px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.add-to-cart:hover {
  background: var(--button-hover);
}

.cart-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.4;
}

ul {
  font-size: .8rem;
}

#note {
  color: DarkRed;
}
@media (max-width: 850px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .image-frame,
  .product-image {
    height: 460px;
    min-height: 460px;
  }

  .customizer {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 20px;
  }

  .product-page {
    width: min(94vw, 1180px);
    margin-top: 25px;
  }

  .image-frame,
  .product-image {
    height: 340px;
    min-height: 340px;
  }

  .product-image {
    padding: 15px;
  }
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}