html {
  margin-top: unset !important;
}

/* ========== PRODUCT DETAIL CONTAINER ========== */
.product-detail {
  display: flex;
  flex-direction: column;

  min-height: 100dvh;
  height: auto;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  background: var(--color-card-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-main);
  font-size: var(--fs-base);
  color: var(--color-text);
}

/* ========== HEADER ========== */
.product-header {
  position: relative;
  width: 100%;
  height: 350px;
  text-align: center;
}

@media (max-width: 480px) {
  .product-header {
    height: 250px;
  }
}

.header_image_wrap {
  width: 100%;
  height: 100%;
}

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

.back-btn {
  position: absolute;
  top: 3%;
  left: 2%;
  width: 30px;
  height: 25px;
  background: var(--color-white);
  opacity: 0.3;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 0.3s;
}

.back-btn svg{
  width: 30px;
  height: 25px;
}

.back-btn:hover {
  opacity: 0.6;
}

/* ========== PRODUCT INFO ========== */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 20px 20px 0 0;
}

.info_content {
  padding: 20px;
}

.price_and_name {
  font-size: var(--fs-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.product-title {
  font-size: var(--fs-title-dsk);
  font-weight: 700;
  color: var(--color-text);
}

.price {
  font-size: var(--fs-title-dsk);
  color: var(--color-brown-medium);
  font-weight: 600;
}

.price.base{
  font-size: var(--fs-base);
  color: var(--color-gray-dark);
  text-decoration: line-through;
}

.promotion_price{
  text-align: center;
  font-size: var(--fs-title-dsk);
  color: var(--color-brown-medium);
  font-weight: 600;
}

.discount_price.hide {
  display: none;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: var(--fs-small);
}

.rating svg {
  width: 18px;
  height: 18px;
}

.description {
  color: #6c6c6c;
  margin: 8px 0 10px;
  font-size: var(--fs-base);
  line-height: 1.5;
}

/* ========== QUANTITY SECTION ========== */
.quantity_wrap {
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.qty-btn {
  background: var(--color-button);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: var(--fs-base);
}

.qty {
  margin: 0 10px;
  font-weight: 600;
  font-size: var(--fs-title-dsk);
}

/* ========== ADDONS SECTION ========== */
.addons {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.addon {
  flex: 1;
  background: var(--color-bg);
  border-radius: 12px;
  text-align: center;
  padding: 8px;
  position: relative;
}

.addon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.add-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--color-button);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: var(--fs-small);
}

/* ========== ADD TO CART BUTTON ========== */
.add-to-cart {
  width: 100%;
  background: var(--color-button);
  color: var(--color-white);
  border: none;
  padding: 15px 0;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background: var(--color-brown-light);
}

.quantity_add_area {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#addToCartBtn {
  height: 8vh;
}

/* ========== ADDONS DETAIL GROUP ========== */
.addons-container {
  background: var(--color-white);
  overflow: hidden;
}

.group-title {
  background-color: var(--color-button);
  color: var(--color-white);
  padding: 8px 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-title span {
  font-weight: 400;
  font-size: var(--fs-small);
}

.addon-option {
  border-top: 1px solid var(--color-gray);
}

.addon-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  position: relative;
}

.addon-info {
  display: flex;
  flex-direction: column;
}

.addon-name {
  font-size: var(--fs-base);
  color: var(--color-text);
}

.addon-price {
  font-size: var(--fs-small);
  color: var(--color-gray-medium);
}

.addon-option input[type="radio"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}

.addon-option input[type="radio"]:checked + .checkmark {
  background-color: var(--color-button);
  border-color: var(--color-button);
}

.addon-option input[type="radio"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  top: 1px;
  left: 6px;
  transform: rotate(45deg);
}

/* ========== NOTE AREA ========== */
#order_note {
  width: 100%;
  height: 13vh;
  resize: none;
  border: 1px solid var(--color-bg);
  /* border-radius: 8px; */
  padding: 10px;
  font-size: var(--fs-base);
  background: #fafafa;
}

#order_note:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .product-detail {
    max-width: 700px;
  }

  .product-header {
    height: 400px;
  }

  .product-info {
    border-radius: 24px 24px 0 0;
  }

  .addon img {
    width: 60px;
    height: 60px;
  }

  .add-to-cart {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .product-detail {
    max-width: 550px;
  }

  .product-header {
    height: 400px;
  }

  .info_content {
    padding: 30px;
  }

  .product-title {
    font-size: var(--fs-title-dsk);
  }
}
