/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #efefef;
  min-height: 100vh;
  font-family: "Cinzel Decorative", serif;
}

.product-details {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.product-details .div {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.back-button {
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: translateX(-5px);
}

.back-icon {
  width: 30px;
  height: 30px;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
  position: relative;
}

.cart-button:hover {
  opacity: 0.8;
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-text {
  color: #20434d;
  font-size: 24px;
  font-family: "Cinzel Decorative", serif;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #20434d;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Product Image */
.product-image-container {
  width: 100%;
  max-width: 590px;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.mask-group {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
}

/* Product Info */
.product-info {
  text-align: center;
  width: 100%;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.product-name {
  font-size: clamp(2rem, 4vw, 3.125rem);
  color: #20434d;
  margin-bottom: 1rem;
}

.product-price {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #20434d;
  margin-bottom: 2rem;
}

/* Options Section */
.options-section {
  width: 100%;
  max-width: 500px;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.option-title {
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  color: #20434d;
  margin-bottom: 1rem;
  text-align: center;
}

.options-group {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.option-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.option-wrapper:hover {
  transform: scale(1.05);
}

.option-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #20434d;
}

.option-radio {
  width: 24px;
  height: 24px;
  border: 2px solid #20434d;
  border-radius: 50%;
  position: relative;
}

.option-radio.active {
  background-color: #20434d;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  max-width: 324px;
  height: 62px;
  background-color: #20434d;
  border-radius: 211px;
  border: none;
  cursor: pointer;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.6s forwards;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  background-color: #1a3640;
}

.add-to-cart-text {
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.875rem);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .product-details {
    padding: 1rem;
  }

  .options-group {
    gap: 1rem;
  }

  .add-to-cart-btn {
    height: 50px;
  }
  
  .back-icon {
    width: 24px;
    height: 24px;
  }

  .back-button {
    padding: 0.3rem;
  }

  .header {
    padding: 0.8rem 1rem;
  }

  .back-icon {
    width: 24px;
    height: 24px;
  }

  .cart-icon {
    width: 20px;
    height: 20px;
  }

  .cart-text {
    font-size: 20px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .product-details .div {
    padding: 0.5rem;
  }

  .header {
    padding: 0.5rem 0.8rem;
  }

  .back-icon {
    width: 20px;
    height: 20px;
  }

  .cart-icon {
    width: 18px;
    height: 18px;
  }

  .cart-text {
    font-size: 18px;
  }

  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: -3px;
    right: -3px;
  }
}

/* Success Message Popup */
.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(32, 67, 77, 0.95);
  color: white;
  padding: 20px 40px;
  border-radius: 15px;
  font-size: 20px;
  text-align: center;
  z-index: 1000;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.success-popup.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} 
} 