.product-details {
  position: relative;
  min-height: 100vh;
  padding: 120px 40px 40px;
}

.product-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  background: #000000e6;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery Styles */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1 / 1.5;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.main-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0s ease;
  will-change: transform;
}

.main-image:hover img {
  transform: scale(1.05);
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumbnail {
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0.7;
}

.thumbnail.active {
  border-color: #C5A572;
  opacity: 1;
}

.thumbnail:hover {
  transform: translateY(-2px);
  opacity: 1;
}

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

/* Product Info Styles */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: -webkit-radial-gradient(#f1d472, #b17a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-info .price {
  font-size: 2rem;
  margin: 20px 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.product-info .price del {
  position: relative;
  color: rgba(241, 212, 114, 0.6);
  font-size: 1.6rem;
  opacity: 1;
  text-decoration: none;
}

.product-info .price del::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background-color: rgba(241, 212, 114, 1);
}

.product-info .price ins {
  text-decoration: none;
  background: -webkit-radial-gradient(#f1d472, #b17a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.product-info .woocommerce-Price-amount {
  background: -webkit-radial-gradient(#f1d472, #b17a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-info .price del .woocommerce-Price-amount {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: rgba(241, 212, 114, 0.6);
}

.product-info .price > .woocommerce-Price-amount {
  font-size: 2rem;
  font-weight: 600;
}

.description {
  color: #f1d472;
  font-size: 1.1rem;
  line-height: 1.8;
}

.description p {
  color: #f1d472;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

/* Product Options */
.product-options {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.size-selector,
.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  color: #f1d472;
  font-size: 1.1rem;
}

select,
input {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(241, 212, 114, 0.3);
  border-radius: 5px;
  color: #f1d472;
  font-size: 1rem;
  transition: all 0.3s ease;
}

select:focus,
input:focus {
  outline: none;
  border-color: #f1d472;
  background: rgba(0, 0, 0, 0.5);
}

.add-to-cart {
  padding: 15px 30px;
  border: 1px solid #f1d472;
  border-radius: 5px;
  background: transparent;
  color: #f1d472;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.add-to-cart:hover {
  background: #f1d472;
  color: black;
}

@media (max-width: 1024px) {
  .product-container {
    padding: 30px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .product-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .product-info h1 {
    font-size: 2rem;
  }

  .price {
    font-size: 1.8rem;
  }

  .description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-details {
    padding: 100px 20px 20px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* WooCommerce Button Styles */
.single_add_to_cart_button {
  padding: 15px 30px;
  border: 1px solid #f1d472;
  border-radius: 5px;
  background: transparent !important;
  color: #f1d472 !important;
  font-size: 1.1rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.single_add_to_cart_button:hover {
  background: #f1d472 !important;
  color: black !important;
}

/* WooCommerce Quantity Input */
.quantity input {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(241, 212, 114, 0.3);
  border-radius: 5px;
  color: #f1d472;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 70px;
}

/* Related Products Section */
.related.products {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 40px;
  background: #000000e6;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related.products > h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #f1d472;
  background: -webkit-radial-gradient(#f1d472, #b17a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.related.products ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related.products li.product {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1.5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related.products li.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related.products li.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.related.products li.product:hover img {
  transform: scale(1.1);
}

.related.products .woocommerce-loop-product__title {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: calc(100% - 30px);
  max-width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  text-align: center;
  display: block;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #f1d472;
  background: rgba(0, 0, 0, 0.7);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.related.products .woocommerce-loop-product__title * {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.related.products .price {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  color: #f1d472;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.related.products li.product:hover .woocommerce-loop-product__title,
.related.products li.product:hover .price {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay effect for related products */
.related.products li.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  z-index: 1;
}

.related.products li.product:hover::before {
  opacity: 1;
}

.related.products .woocommerce-loop-product__title,
.related.products .price {
  z-index: 2;
}

/* Responsive adjustments for related products */
@media (max-width: 1024px) {
  .related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .related.products > h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .related.products {
    padding: 30px;
  }

  .related.products > h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .related.products ul.products {
    grid-template-columns: 1fr;
  }

  .related.products {
    padding: 20px;
  }

  .related.products > h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

/* Variations Styling */
.variations select {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(241, 212, 114, 0.3);
  border-radius: 5px;
  color: #f1d472;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 200px;
}

.variations label {
  color: #f1d472;
  font-size: 1.1rem;
  margin-bottom: 5px;
  display: block;
}

.reset_variations {
  color: #f1d472;
  margin-left: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Hide the "Sale!" badge */
.onsale {
  display: none !important;
}

/* Also apply to related products */
.related.products .price del {
  position: relative;
  text-decoration: none;
}

.related.products .price del::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: rgba(241, 212, 114, 0.6);
  transform: rotate(-8deg);
}

/* WooCommerce specific text colors */
.woocommerce-product-details__short-description,
.woocommerce-product-details__short-description p,
.woocommerce-Tabs-panel,
.woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-tabs .panel {
  color: #f1d472 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

.woocommerce-tabs ul.tabs li a {
  color: #f1d472 !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #f1d472 !important;
  border-color: #f1d472 !important;
}

/* Stock status */
.stock {
  color: #f1d472 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

/* Product meta */
.product_meta,
.product_meta a,
.product_meta span {
  color: #f1d472 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

/* Additional information tab */
.woocommerce-product-attributes-item__label,
.woocommerce-product-attributes-item__value p {
  color: #f1d472 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}
