.product-section {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

/* ── Left: image gallery ── */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
}

.product-thumbnails .thumb {
  width: 72px;
  height: 72px;
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-thumbnails .thumb:hover,
.product-thumbnails .thumb.active {
  border-color: var(--red);
}

.product-thumbnails .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Right: product details ── */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-details h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.product-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-specs li {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red-dark);
  margin-top: -0.75rem;
}

.product-status {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.btn-cart {
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-cart:hover { background: var(--red-dark); }
.btn-cart:disabled { background: #aaa; cursor: default; }

.product-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* ── Size selector ─────────────────────────────────────────────────────── */
.selector-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.4rem;
}

.size-selector,
.qty-selector {
  display: flex;
  flex-direction: column;
}

.size-dropdown {
  position: relative;
  width: 100%;
}

.size-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--red);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}

.size-dropdown-trigger:hover {
  background: var(--red);
  color: #fff;
}

.size-dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.size-dropdown.open .size-dropdown-arrow {
  transform: rotate(225deg) translateY(2px);
}

.size-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--red);
  border-top: none;
  z-index: 50;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease;
}

.size-dropdown.open .size-dropdown-list {
  max-height: 300px;
}

.size-dropdown-option {
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-top: 1px solid rgba(211, 7, 7, 0.18);
  transition: background 0.12s, color 0.12s;
  user-select: none;
}

.size-dropdown-option:hover {
  background: var(--red);
  color: #fff;
}

.size-dropdown-option.selected {
  background: var(--red-dark);
  color: #fff;
}

.size-dropdown.error .size-dropdown-trigger {
  border-color: var(--red-dark);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Qty selector ──────────────────────────────────────────────────────── */
.qty-controls {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--red);
  align-self: flex-start;
}

.qty-btn {
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--red); color: #fff; }

#qty-display {
  width: 40px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 38px;
  border-left: 2px solid var(--red);
  border-right: 2px solid var(--red);
  color: var(--black);
}

@media (max-width: 768px) {
  .product-section {
    grid-template-columns: 1fr;
    margin: 1.5rem auto;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .product-details h1 { font-size: 1.6rem; }

  .product-price { font-size: 1.25rem; }

  .btn-cart { width: 100%; text-align: center; }

  .product-thumbnails .thumb { width: 60px; height: 60px; }
}

