/* Product Details Layout */
.product_details {
  background-color: #ffffff;
  padding: 0;
  margin: 0 auto;
  max-width: 1440px;
}

.product_details .row {
  display: flex;
  gap: 40px;
  padding: 40px;
  margin: 0;
}

/* Product Image Section */
.product_images {
  flex: 1;
  width: calc(50% - 20px);
}

.image-zoom-section {
  width: 100%;
}

/* For the main carousel */
.product-gallery2 {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 1px;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery2 .item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.product-gallery2 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* For the thumbnail carousel */
.owl-thumbs {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  overflow-x: hidden;
}

/* Hide scrollbar */
.owl-thumbs::-webkit-scrollbar {
  display: none;
}

.owl-thumbs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Desktop thumbnail size */
.owl-thumbs .owl-thumb-item {
  width: 55px;
  height: auto;
  margin: 0 4px;
  padding: 0px;
  background-color: transparent;
  border: 2px solid rgb(0 0 0 / 3%);
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.owl-thumbs .owl-thumb-item.active,
.owl-thumbs .owl-thumb-item:hover {
  border-color: #ff5500;
  transform: translateY(-2px);
}

.owl-thumbs .owl-thumb-item img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  object-fit: cover;
}

/* Fallback styles for old classes */
.main_product_image {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.main_product_image img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

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

.thumbnail_item {
  flex: 0 0 80px;
  height: 80px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail_item:hover,
.thumbnail_item.active {
  border-color: #ff5500;
  transform: translateY(-2px);
}

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

/* Product Info Section */
.product_info {
  flex: 1;
  min-width: 300px;
  width: calc(50% - 20px);
}

/* Product Category */
.product_category {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Product Title */
.product_title {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Product Price */
.product_price {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.current_price {
  font-size: 24px;
  font-weight: 700;
  color: #ff5500;
  margin-right: 15px;
}

.original_price {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  display: block;
  margin-bottom: 5px;
}

.discount_label {
  display: inline-block;
  background-color: #ff5500;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}

.point_info {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

/* Coupon Box Button Styles */
.coupon_box {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 0;
  background-color: #ff6600;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
  opacity: 1;
  visibility: visible;
}

.coupon_box i {
  margin-right: 8px;
  font-size: 16px;
}

.coupon_box:hover {
  background-color: #e05a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  color: white;
  text-decoration: none;
}

.coupon_box:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

/* Ensure btn and btn-primary classes don't interfere */
.coupon_box.btn {
  background-color: #ff6600;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  min-width: 200px;
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

.coupon_box.btn-primary {
  background-color: #ff6600;
  border: none;
  color: white;
}

.coupon_box.btn:hover,
.coupon_box.btn-primary:hover {
  background-color: #e05a00;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  text-decoration: none;
}

/* Product Options */
.product_options {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* Total Price Section */
.total_price_section {
  margin-bottom: 20px;
}

.total_price_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.total_price_label {
  font-size: 1.5em;
  font-weight: bolder;
  color: #333;
}

.total_price_value {
  font-size: 1.5em;
  font-weight: bolder;
  text-align: right;
}

/* Additional Buttons */
.additional_buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.secondary_btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
}

.secondary_btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Special Button States */
.sold_out {
  background-color: #999 !important;
  cursor: not-allowed;
}

.sold_out:hover {
  background-color: #777 !important;
  transform: none;
  box-shadow: none;
}

.inquiry {
  background-color: #6c757d !important;
}

.inquiry:hover {
  background-color: #5a6268 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Availability Info */
.availability_info {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
}

.availability_info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.availability_info li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

.availability_info li:last-child {
  margin-bottom: 0;
}

.availability_info li i {
  color: #ff5500;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Color Options */
.color_options {
  margin-bottom: 20px;
}

.option_label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.color_swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color_swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.color_swatch:hover,
.color_swatch.selected {
  border-color: #ff5500;
  transform: scale(1.1);
}

.color_swatch.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Size Options */
.size_options {
  margin-bottom: 20px;
}

.size_buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
}

.size_button {
  padding: 12px 10px;
  border: 1px solid #e0e0e0;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.size_button:hover,
.size_button.selected {
  border-color: #ff5500;
  background-color: rgba(255, 85, 0, 0.05);
  color: #ff5500;
}

.size_button.out_of_stock {
  color: #999;
  border-color: #e0e0e0;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Quantity Selector */
.quantity_section {
  margin-bottom: 30px;
}

.quantity_selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity_display {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.quantity_btn {
  background-color: #f5f5f5;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  transition: background-color 0.3s ease;
}

.quantity_btn:hover {
  background-color: #e0e0e0;
}

.quantity_value {
  padding: 12px 20px;
  min-width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
}

/* Action Buttons */
.action_buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.action_btn {
  flex: 1;
  padding: 16px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.buy_now_btn {
  background-color: #ff5500;
  color: white;
}

.buy_now_btn:hover {
  background-color: #e04a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.add_to_cart_btn {
  background-color: #ffffff;
  color: #ff5500;
  border: 1px solid #ff5500;
}

.add_to_cart_btn:hover {
  background-color: rgba(255, 85, 0, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2);
}

/* Product Description */
.product_description {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.description_title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  font-size: 16px;
}

.description_text {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

/* Admin Links Styles */
.admin_links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.admin_link_item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.admin_link_item:hover {
  background-color: #f0f0f0;
  border-color: #ff5500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin_link_item:last-child {
  margin-bottom: 0;
}

.admin-icon {
  color: #ff5500;
  margin-right: 12px;
  font-size: 16px;
  flex-shrink: 0;
}

.admin_link_text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.admin_link_text a {
  color: #ff5500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.admin_link_text a:hover {
  color: #e04a00;
  text-decoration: underline;
}

/* Copy Button Styles */
.copy-button-container {
  position: relative;
  display: inline-block;
}



/* Admin Button Styles */
.action_btn.admin_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #ff5500;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #ff5500;
  flex-shrink: 0;
}

.action_btn.admin_button:hover {
  background-color: #e04a00;
  border-color: #e04a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
  color: white;
  text-decoration: none;
}

/* WeChat Info Box Styles */
.wechat_info_box {
  display: inline-block;
  padding: 10px 15px;
  background-color: #2d8c15;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #2d8c15;
  transition: all 0.3s ease;
}

.wechat_info_box:hover {
  background-color: #237110;
  border-color: #237110;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 140, 21, 0.3);
}

/* Responsive Design */
/* Match Bootstrap's md breakpoint (768px) for switching to vertical layout */
@media (max-width: 768px) {
  .product_details .row {
    flex-direction: column;
    gap: 30px;
    padding: 15px;
  }

  .product_images,
  .product_info {
    min-width: auto;
    width: 100%;
  }

  /* Product Gallery responsive styles - full width with auto height */
  .product-gallery2 {
    min-height: auto;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0;
    background-color: transparent;
  }

  .product-gallery2 .item {
    min-height: auto;
    padding: 0;
  }

  .product-gallery2 img {
    width: 100% !important;
    max-height: none !important;
    object-fit: cover;
  }

  .main_product_image {
    min-height: 400px;
    padding: 20px;
  }

  /* Thumbnail responsive styles - 20% width each */
  .owl-thumbs {
    padding: 5px 0;
    gap: 5px;
  }

  .owl-thumbs .owl-thumb-item {
    width: 20% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 20%;
    flex-shrink: 1;
  }

  .action_buttons {
    flex-direction: column;
  }

  .product_title {
    font-size: 24px;
  }

  .current_price {
    font-size: 22px;
  }

  .size_buttons {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 576px) {
  /* Small mobile adjustments */
  .product_details .row {
    padding: 10px;
    gap: 20px;
  }

  /* Product Gallery small mobile styles - full width with auto height */
  .product-gallery2 {
    min-height: auto;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0;
    background-color: transparent;
  }

  .product-gallery2 .item {
    min-height: auto;
    padding: 0;
  }

  .product-gallery2 img {
    width: 100% !important;
    max-height: none !important;
    object-fit: cover;
  }

  /* Thumbnail small mobile styles - 20% width each */
  .owl-thumbs {
    padding: 5px 0;
    gap: 3px;
  }

  .owl-thumbs .owl-thumb-item {
    width: 20% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 20%;
    flex-shrink: 1;
  }

  .main_product_image {
    min-height: 300px;
    padding: 15px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 2560px) {
  .tb_gosi2 {
    display: none;
  }
}
@media only screen and (max-width: 767px) {
  .tb_gosi2 {
    display: block;
    margin-bottom:20px;
    width:100%;
    text-align:center;
  }
}
.tb_gosi {border-collapse:collapse;border-style:none;margin-bottom:20px;border-top:1px solid rgba(0,0,0,0.05);}
.tb_gosi th,.tb_gosi td{border:1px solid rgba(0,0,0,0.05);padding:12px;text-align:left}
.tb_gosi th{background-color: rgba(0,0,0,0.03);width:100px}
