/* --- Product Details Page (PDP) style --- */
.product-detail-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color set by JS */
  z-index: 1100; /* Above the search floating layer */
  display: none; /* Default Hide */
  flex-direction: column;
  overflow-y: auto; /* If the content is too long, scrolling is allowed */
  color: #000; /* Default Text Color，The background color will change */
}

.pdp-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  width: 100%;
  box-sizing: border-box;
  position: absolute; /* Overlay on top of the image */
  top:0;
  left:0;
  z-index: 10;
}
.pdp-back-btn {
  width: 30px; /* according toSVGSizing */
  height: 30px;
  cursor: pointer;
}
.pdp-logo {
  font-size: 24px;
  font-weight: bold;
}
.pdp-top-icons {
  display: flex;
  gap: 15px;
  font-size: 20px;
}
.pdp-top-icons .icon-heart,
.pdp-top-icons .icon-bag {
  cursor: pointer;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.pdp-main-image-container {
  width: 100%;
  height: 60vh; /* The image occupies a certain viewport height */
  max-height: 500px; /* Maximum height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevent image overflow */
  background-color: #ccc; /* Occupation background when the image is not loaded */
}

.pdp-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover container */
}

.pdp-info-container {
  padding: 30px;
  background-color: #EAE4DD; /* Background of the Details Area，refer toFigma */
  border-top-left-radius: 30px; /* Top left corner */
  border-top-right-radius: 30px; /* Top right corner */
  margin-top: -30px; /* Overlap with the image to create a rounded corner effect */
  position: relative; /* Ensure that it is on top of the image layer */
  z-index: 5;
  flex-grow: 1; /* Occupy the remaining space */
}

.pdp-title {
  font-family: 'Poppins', sans-serif; /* Figma: Poppins SemiBold */
  font-weight: 600;
  font-size: 36px; /* Figma: 48px, Can be adjusted according to actual conditions */
  margin: 0 0 15px 0;
}

.pdp-description {
  font-family: 'Abhaya Libre Medium', serif; /* Figma */
  font-weight: 500;
  font-size: 20px; /* Figma: 36px, Can be adjusted according to actual conditions */
  line-height: 1.4;
  margin-bottom: 20px;
}

.pdp-price {
  font-family: 'Inter', sans-serif; /* Figma */
  font-weight: 700;
  font-size: 32px; /* Figma: 48px, Can be adjusted according to actual conditions */
  margin-bottom: 20px;
}

.pdp-divider {
  border: none;
  border-top: 1px solid #000000; /* Figma Dividing line */
  margin: 20px 0;
}

.pdp-dimensions {
  font-family: 'Inter', sans-serif; /* Figma */
  font-weight: 400;
  font-size: 16px; /* Figma: 20px */
  line-height: 1.5;
  margin-bottom: 30px;
  white-space: pre-line; /* Keep line breaks */
}

.pdp-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.pdp-quantity-selector {
  display: flex;
  align-items: center;
  background-color: #AEA19D; /* Figma background */
  border-radius: 25px; /* Figma rounded corners */
  padding: 5px;
}

.pdp-quantity-btn {
  background: none;
  border: none;
  color: #000000; /* Figma colour */
  font-size: 28px; /* Figma font size */
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 10px 15px;
}

.pdp-quantity-value {
  font-family: 'Inter', sans-serif;
  font-size: 28px; /* Figma font size */
  color: #000000;
  padding: 0 10px;
  min-width: 40px; /* Ensure two digit width */
  text-align: center;
}

.pdp-add-to-cart-btn {
  background-color: #51393A; /* Dark brown，Consistent with the overall website style */
  color: #FFFFFF; /* White text */
  font-family: 'Inter', sans-serif;
  font-size: 22px; /* Reduce font size appropriately */
  font-weight: 600; /* Slightly bolded */
  border: none;
  border-radius: 12px; /* Reduce rounded corners appropriately */
  padding: 15px 30px;
  cursor: pointer;
  flex-grow: 1; /* Occupy the remaining space */
  text-align: center;
  transition: all 0.3s ease; /* Complete transition effect */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Add Shadow */
  position: relative;
  overflow: hidden; /* Used for ripple effect */
}

.pdp-add-to-cart-btn:hover {
  background-color: #694b4c; /* A slightly lighter brown color */
  transform: translateY(-3px); /* Move up when hovering */
  box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Enhance Shadow */
}

.pdp-add-to-cart-btn:active {
  transform: translateY(1px); /* Slightly move down when clicked */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Weaken shadows */
  background-color: #3e2c2d; /* Deeper color when clicked */
}

/* Add ripple effect when clicked */
.pdp-add-to-cart-btn::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.8s;
}

.pdp-add-to-cart-btn:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
} 