.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.product-section {
  display: flex;
  position: relative;
  width: 100%;
  justify-content: center;
}

.product-content-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.product-image-container {
  flex: 0 0 60%;
}

#hero-product-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.product-details-container {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

#product-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-actions select {
  width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.add-to-cart {
  width: 200px;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--gray-1);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  opacity: 0.9;
}

.product-description-wrapper {
  margin-top: 1rem;
}

#product-description {
  color: #3e4c43;
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 450px;
  text-align: left;
  margin: 0;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .product-content-wrapper {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  #product-title {
    font-size: 2.2rem;
  }
  
  .product-price {
    font-size: 1.6rem;
  }
  
  #product-description {
    font-size: 1rem;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 1rem 0;
  }
  
  .product-content-wrapper {
    flex-direction: column;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .product-image-container,
  .product-details-container {
    flex-basis: 100%;
    max-width: 100%;
    padding: 0;
  }

  .product-details-container,
  .hero-actions {
    align-items: center;
  }
  
  #product-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .product-price {
    font-size: 1.4rem;
  }

  #product-description {
    text-align: center;
    max-width: 100%;
    font-size: 1rem;
  }
  
  .hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .hero-actions select,
  .add-to-cart {
    width: 100%;
    max-width: 250px;
  }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 0.5rem 0;
  }
  
  .product-content-wrapper {
    gap: 1rem;
  }
  
  #product-title {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 1.2rem;
  }
  
  .strobe-light-container {
    gap: 15px;
  }
  
  .strobe-light {
    width: 40px;
    height: 40px;
  }
}

.strobe-light-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  z-index: 15;
  pointer-events: none;
  width: 100%;
  justify-content: center;
}

.strobe-light {
  width: 50px;
  height: 50px;
  background-color: var(--gray-1);
  border-radius: 50%;
  border: 1px solid #fff8f8;
  animation: glow 3s infinite alternate;
  mix-blend-mode: screen;
  position: relative;
}

.strobe-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gray-1);
  opacity: 0.7;
  filter: blur(1.5em);
  border-radius: 50%;
  transform: scale(1.3);
  mix-blend-mode: screen;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0.5em 0 #fff1e4, 0 0 2em 1.5em #fff1e4;
  }
  50% {
    box-shadow: 0 0 1em 0.5em #fdf6eb, 0 0 4em 3em #fdf6eb;
  }
  100% {
    box-shadow: 0 0 0.5em 0 var(--gray-1), 0 0 2em 1.5em var(--gray-1);
  }
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
  color: var(--primary-color);
  background-color: var(--gray-1);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Product Page Layout */
.product-page {
  flex: 1;
  position: relative;
  padding-top: 20px;
  background-image: linear-gradient(to top, var(--gray-1) 0%, transparent 0%, #ffb6ff63);
  overflow: hidden;
}

/* Product Details Section */
.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 2;
}

/* Product Gallery */
.product-gallery {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

#hero-product-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 0;
}

#product-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin: 0;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.product-description {
  margin-top: 10px;
}

#product-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3e4c43;
  margin: 0;
}

/* Product Form */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 2rem;
}

.product-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.product-form select:not(.product-select),
.product-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.product-form .btn {
  background: var(--primary-color);
  color: var(--gray-1);
  border: 1px solid var(--primary-color);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px !important;
  min-width: auto !important;
  align-self: flex-start;
}

/* Desktop only styling for add-to-cart button */
@media (min-width: 769px) {
  #add-to-cart {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



/* Product Select Container with Custom Chevron */
.product-select-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}

.product-select-container::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  pointer-events: none;
  font-size: 24px;
}

.product-select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  
  /* Hide native arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.product-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Ambient Effects */
.ambient-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.light-effect {
  position: absolute;
  top: 50px;
  width: 50px;
  height: 50px;
  background-color: var(--gray-1);
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(20px);
  animation: float 6s infinite alternate ease-in-out;
}

.light-effect:nth-child(1) {
  left: calc(50% - 100px);
  animation-delay: 0s;
}

.light-effect:nth-child(2) {
  left: 50%;
  animation-delay: 2s;
}

.light-effect:nth-child(3) {
  left: calc(50% + 100px);
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
    box-shadow: 0 0 20px 5px rgba(255, 241, 228, 0.7);
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.8;
    box-shadow: 0 0 30px 10px rgba(253, 246, 235, 0.8);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  
  #product-title {
    font-size: 2.2rem;
  }
  
  .product-price {
    font-size: 1.6rem;
  }
  
  .product-gallery {
    align-items: center;
  }
  
  #hero-product-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding: 20px 0;
  }
  
  .product-details {
    grid-template-columns: 1fr;
  }
  
  .product-gallery {
    justify-content: center;
    margin-bottom: 0;
  }
  
  #hero-product-image {
    max-width: 80%;
  }
  
  .product-info {
    text-align: center;
    padding-top: 0;
  }
  
  .form-group {
    align-items: center;
  }
  
  #product-title {
    font-size: 1.8rem;
  }
  
  .product-price {
    font-size: 1.4rem;
  }
  
  /* Ensure form controls are properly centered */
  .product-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  /* Improve spacing around product description */
  .product-description {
    margin: 5px 0;
    width: 100%;
  }
  
  /* Mobile responsive styles for product select */
  .product-select-container {
    max-width: 100%;
    width: 100%;
  }
  
  .light-effect {
    top: 30px;
  }
  
  .light-effect:nth-child(1) {
    left: calc(50% - 80px);
  }
  
  .light-effect:nth-child(3) {
    left: calc(50% + 80px);
  }
}

@media (max-width: 480px) {
  .product-page {
    padding: 15px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .product-details {
    gap: 10px;
  }
  
  .product-gallery {
    margin-bottom: 0;
  }
  
  #hero-product-image {
    max-width: 90%;
  }
  
  #product-title {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 1.3rem;
  }
  
  #product-description {
    font-size: 1rem;
  }
  
  /* Mobile responsive styles for product select */
  .product-select-container {
    max-width: 100%;
    width: 100%;
  }
  
  .light-effect {
    width: 40px;
    height: 40px;
  }
  
  .light-effect:nth-child(1) {
    left: calc(50% - 60px);
  }
  
  .light-effect:nth-child(3) {
    left: calc(50% + 60px);
  }
}
