/* Custom Checkbox Styles */
input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label {
  position: relative;
  padding-left: 22px;
  cursor: pointer;
  display: inline-block;
  line-height: 18px;
  color: #6c757d;
  user-select: none;
}

/* The grey box - even smaller size (14px) */
input[type="checkbox"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 2px;
  transition: background-color 0.2s, border-color 0.2s;
}

/* The checkmark - thinner border and adjusted for 14px box */
input[type="checkbox"] + label::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 4px;
  width: 4px;
  height: 7px;
  border: solid #adb5bd;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0;
}

/* Checked state - lighter grey colors */
input[type="checkbox"]:checked + label::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

input[type="checkbox"]:checked + label::before {
  border-color: #ced4da;
  background-color: #f8f9fa;
}

/* Custom Radio Styles */
input[type="radio"] {
  display: none;
}

input[type="radio"] + label {
  position: relative;
  padding-left: 22px;
  cursor: pointer;
  display: inline-block;
  line-height: 18px;
  color: #6c757d;
  user-select: none;
}

/* The outer circle */
input[type="radio"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}

/* The inner dot */
input[type="radio"] + label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 6px;
  background-color: #adb5bd;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0;
}

/* Checked state */
input[type="radio"]:checked + label::after {
  opacity: 1;
  transform: scale(1);
}

input[type="radio"]:checked + label::before {
  border-color: #ced4da;
  background-color: #f8f9fa;
}

.form-control, .form-select {
  box-shadow: none;
}

.form-select:focus {
  /*border-color: #ced4da;*/
}

















/* Product Gallery Styles */
.product-gallery {
  width: 100%;
}

.main-image-container {
  position: relative;
  width: 500px;
  height: 500px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
}

.main-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.nav-btn:hover {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

.thumbnail-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumb {
  width: 92px;
  height: 92px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

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

.thumb.active {
  border: 2px solid #ff3333;
}

.thumb:hover {
  border-color: #ff3333;
}


#invoice-box {
  box-sizing: border-box;
  width: 220px;
  border: 1px solid #e5e7eb;
  padding: 15px;
  display: grid;
  grid-template-rows: 100px 1fr auto;
  align-content: space-between;
  row-gap: 15px;
  min-height: 600px;
  position: sticky;
  top: 0;
  background-color: #fff;
}

#invoice-box .invoice-title {
  box-sizing: border-box; border: 1px solid #e5e7eb; min-height: 100px;
}

#invoice-box .invoice-price {
  align-self: start;
  display: grid; grid-template-columns: 80px 1fr; justify-content: space-between; align-items: center; row-gap: 8px;
}

#invoice-box .invoice-price .price-label {
}

#invoice-box .invoice-price .price {
  text-align: right;
}

#invoice-box .invoice-price .total-price {
  font-size: 1.5em; color: #ff3300; text-align: right;
}

#invoice-box .invoice-price .colspan {
  grid-column: span 2;

}

#invoice-box .invoice-price .gubun {
  grid-column: span 2; height: 2px; border-bottom: 1px dotted #e5e7eb; margin: 5px 0;
}

#invoice-box .btn-order {
  width: 100%; border: none; font-size: 1.2em; background-color: #ff5b59; color: #fff; padding: 10px 0;
}


