/* ====== Product detail layout ====== */
.productCover {
  margin-top: 10px;
  color: #000;
  display: flex;
  justify-content: center;
}
.product-cover-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}
.product-col {
  flex: 1 1 520px;
  display: flex;
  justify-content: center;
}

/* ====== Gallery (left thumbs + main image) ====== */
.gallery {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
#sideImageBox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
  margin: 12px;
}
.sideImage {
  width: 80px;
  height: 80px;
  border: 1px solid #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.sideImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.main-image {
  width: 100%;
  max-width: 520px;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

/* ====== Mobile thumbnails (dots) ====== */
/* Desktop: hide dots (use side thumbnails) */
.dots-container {
  display: none;
  text-align: center;
  margin: 12px 0;
}
.dot {
  display: inline-block;
  width: 70px;
  height: 70px;
  margin: 6px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #000;
  cursor: pointer;
}
.dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ====== Quantity & Add to cart ====== */
.actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}
.qty {
  display: inline-flex;
  border: 1px solid #000;
  border-radius: 10px;
  overflow: hidden;
}
.qty button {
  background: transparent;
  border: 0;
  color: #000;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.qty input {
  width: 48px;
  text-align: center;
  border: 0;
  background: transparent;
  color: #000;
}
.add-btn,
.btn-outline-dark {
  border: 1px solid #000;
  color: #000;
  background: transparent;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ====== Size picker (pills) ====== */
.size-section {
  margin: 20px 0;
  text-align: center;
}
.size-label {
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  font-size: 1rem;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 10px 14px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 30px;
  cursor: pointer;
  background: #fff;
  color: #000;
  transition: all 0.2s ease;
  user-select: none;
}
.size-option:hover {
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}
.size-option.active {
  background: #000000;
  color: #fff;
  border-color: #000000;
  transform: translateY(-2px);
}
.size-option.disabled {
  background: #f0f0f0;
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ====== Accordion (Description/Details/Size Guide) ====== */
#infoBox {
  margin-top: 10px;
  width: 100%;
  max-width: 520px;
}
.contentBox {
  border-top: 1px solid #ccc;
  padding: 10px 0;
}
.contentBox:last-child {
  border-bottom: 1px solid #ccc;
}
.contentBox .rowline,
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.content {
  display: none;
  padding: 8px 0;
  text-align: center;
}
.content.open {
  display: block;
}
.symbol {
  transition: transform 0.2s ease;
}
.symbol.open {
  transform: rotate(45deg); /* “+” → “x” */
}

/* ====== Related section header (grid itself is in main.css) ====== */
.related-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  color: #000;
  text-align: center;
}
.related-container {
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

/* ====== Utilities ====== */
.hidden { display: none !important; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .main-image { height: 380px; }
}
@media (max-width: 810px) {
  .gallery { flex-direction: column; }
  #sideImageBox { display: none; }
  .dots-container { display: block; } /* Mobile: show dots */
  .main-image { height: 320px; }
}
