/* 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: 14px 28px;
  margin: 12px 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  opacity: 1;
  visibility: visible;
  position: relative;
  overflow: hidden;
}

.coupon_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.coupon_box:hover::before {
  left: 100%;
}

.coupon_box i {
  margin-right: 10px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.coupon_box:hover {
  background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  color: white;
  text-decoration: none;
}

.coupon_box:hover i {
  transform: scale(1.1) rotate(5deg);
}

.coupon_box:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Ensure btn and btn-primary classes don't interfere */
.coupon_box.btn {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  min-width: 220px;
  display: inline-block;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.coupon_box.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  color: white;
}

.coupon_box.btn:hover,
.coupon_box.btn-primary:hover {
  background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  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;
  justify-content: center;
  align-items: center;
}

.secondary_btn {
  background-color: #D4AF37;
  color: white;
  border: 1px solid #D4AF37;
  font-size: 13px;
  width: auto;
  flex: none;
}

.secondary_btn:hover {
  background-color: #B8860B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* 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 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.availability_item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.availability_icon {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
}

.availability_icon i {
  color: #2196F3;
  font-size: 20px;
}

.availability_icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background-color: #4CAF50;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: bold;
}

.availability_title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  padding: 0;
}

.availability_desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

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

/* Responsive Availability Info */
@media (max-width: 768px) {
  .availability_info {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .availability_item {
    padding: 10px;
    align-items: flex-start;
    text-align: left;
  }
  
  .availability_icon {
    width: 35px;
    height: 35px;
  }
  
  .availability_icon i {
    font-size: 14px;
  }
  
  .availability_title {
    font-size: 14px;
  }
  
  .availability_desc {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .availability_info {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .availability_item {
    padding: 8px;
    align-items: flex-start;
    text-align: left;
  }
  
  .availability_icon {
    width: 30px;
    height: 30px;
  }
  
  .availability_icon i {
    font-size: 12px;
  }
  
  .availability_title {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .availability_desc {
    font-size: 9px;
  }
}

.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: 10px;
  margin-bottom: 20px;
  width: 100%;
  flex-wrap: wrap;
}

/* 3列布局 - 每个按钮占33.33%宽度 */
.action_buttons .action_btn {
  flex: 1 1 calc(33.33% - 7px);
  min-width: 120px;
}

.action_btn {
  padding: 14px 20px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* 宝石切割样式 - 左上和右下都切割10px x 10px */
  background: linear-gradient(135deg, #c6d4dc 0%, #7a9db0 100%);
  color: white;
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px, 10px 0
  );
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .action_buttons {
    gap: 6px;
  }
  
  .action_buttons .action_btn {
    flex: 1 1 calc(33.33% - 4px);
    min-width: 90px;
    padding: 10px 12px;
    font-size: 11px;
  }
  
  .action_btn i {
    font-size: 12px;
    margin-right: 4px;
  }
}

.action_btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.action_btn1 {
  padding: 14px 20px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* 宝石切割样式 - 左上和右下都切割10px x 10px */
  background: linear-gradient(135deg, #c6d4dc 0%, #7a9db0 100%);
  color: white;
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px, 10px 0
  );
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.action_btn1::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
  pointer-events: none;
}

.buy_now_btn {
  background: linear-gradient(135deg, #c6d4dc 0%, #7a9db0 100%);
  color: white;
}

.buy_now_btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(198, 212, 220, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.add_to_cart_btn {
  background: linear-gradient(135deg, #dcd0c6 0%, #c3a68e 100%);
  color: white;
}

.add_to_cart_btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(220, 208, 198, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.secondary_btn {
  background: linear-gradient(135deg, #e0e0e0 0%, #999999 100%);
  color: white;
}

.secondary_btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(224, 224, 224, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.sold_out {
  background: linear-gradient(135deg, #e0e0e0 0%, #999999 100%);
  color: white;
  cursor: not-allowed;
}

.inquiry {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.inquiry:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(108, 117, 125, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
.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;
  width: auto;
  text-align: center;
}

/* Action Button Base Styles */
.action_btn {
  font-size: 13px;
}

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

.action_btn.admin_button:hover {
  background-color: #666666;
  border-color: #666666;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 136, 136, 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%;
  }

  /* Center coupon buttons on mobile */
  .coupon_box {
    display: block;
    margin: 12px auto;
  }

  .coupon_box.btn {
    display: block;
    margin: 12px auto;
  }

  /* 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}
