/* === Product Detail Layout === */
.perfume-detail-container {
  display: flex;
  flex-wrap: wrap;
  padding: 80px 20px 40px;
  gap: 30px;
  background: #fff;
  color: #111;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Left Side: Images === */
.left-side, .right-side {
  flex: 1 1 400px;
  max-width: 600px;
}

.left-side img#main-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.thumbnail-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail-row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.thumbnail-row img:hover {
  border-color: #f0c000;
}

/* === Right Side: Info === */
.right-side h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.shipping {
  color: green;
  font-weight: bold;
  margin-bottom: 10px;
}

.price {
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price del {
  color: #888;
  font-size: 1.1rem;
}

.sale-price {
  color: red;
  font-weight: bold;
}

.discount {
  background-color: #f0c000;
  color: #000;
  padding: 3px 10px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.95rem;
}

h1.funky-title {
  
font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 3rem;
  color: #1d1c17;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgb(228, 224, 15);
  margin-bottom: 20px;
}

/* === Quantity Selector === */
.quantity {
  margin-bottom: 15px;
}

.quantity label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: start;
}

.qty-controls input {
  width: 60px;
  text-align: center;
  padding: 6px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.qty-controls button {
  padding: 6px 14px;
  font-size: 1.1rem;
  background: #f0c000;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.qty-controls button:hover {
  background-color: #e0b000;
}

/* === Description === */
.description {
  margin-bottom: 20px;
  line-height: 1.6;
}

#read-more-btn {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 14px;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
}

#read-more-btn:hover {
  background-color: #f0c000;
  color: #000;
}

/* === Notes === */
.notes p {
  margin: 8px 0;
  font-size: 1rem;
}

/* === Action Buttons === */
.buy-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s ease;
}

.buy-btn:hover {
  background-color: #f0c000;
  color: #000;
}

/* === Order Form === */
.popup-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-form {
  background: #fff;
  padding: 20px 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.popup-form h2 {
  text-align: center;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  color: #000;
  font-size: 1.5rem;
}

.input-row {
  margin-bottom: 12px;
}

.input-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111;
  font-size: 0.95rem;
}

.input-row input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.2s ease;
}

.input-row input:focus {
  border-color: #f0c000;
  outline: none;
}

.flex-row {
  display: flex;
  gap: 12px;
}

.flex-row .half {
  flex: 1;
}

.flex-row .half label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
  display: block;
  color: #111;
}

.flex-row .half input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
}

.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.form-buttons button {
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.3s;
}

.form-buttons button[type="submit"] {
  background-color: #000;
  color: #fff;
}

.form-buttons button:hover {
  background-color: #f0c000;
  color: #000;
}

#orderStatus {
  margin-top: 12px;
  font-weight: bold;
  text-align: center;
  color: green;
  font-size: 0.95rem;
}

    .ticker-wrapper {
     background: #0b6907;
      color: #fff;
      overflow: hidden;
      white-space: nowrap;
      font-family: Arial, sans-serif;
      font-size: 1.2rem;
      font-weight: bold;
      padding: 12px 0;
      position: relative;
      margin-bottom: 2px;
    }

    .ticker-track {
      display: inline-flex;
      white-space: nowrap;
      will-change: transform;
    }

    .ticker-text {
      padding: 0 80px;
    }

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-text {
  padding: 0 80px;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .perfume-detail-container {
    flex-direction: column;
    align-items: center;
    padding: 40px 15px;
  }

  .left-side, .right-side {
    max-width: 100%;
  }

  .left-side img#main-img {
    max-width: 100%;
    height: auto;
  }

  .qty-controls {
    justify-content: center;
  }

  .funky-title {
    font-size: 2rem;
  }

  .ticker-wrapper {
    font-size: 1rem;
    padding: 8px 0;
  }

  .ticker-text {
    padding: 0 40px;
  }

  .popup-form {
    padding: 18px 16px;
    max-width: 95%;
  }

  .popup-form h2 {
    font-size: 1.3rem;
  }

  .form-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .form-buttons button {
    width: 100%;
  }

  .flex-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .left-side img#main-img {
    height: auto;
  }

  .thumbnail-row img {
    width: 60px;
    height: 60px;
  }

  .right-side h1 {
    font-size: 1.5rem;
  }

  .price {
    font-size: 1.3rem;
  }

  .buy-btn {
    width: 100%;
    text-align: center;
  }

  .ticker-wrapper {
    font-size: 0.95rem;
  }

  .ticker-text {
    padding: 0 30px;
  }
}


/* === Thank You Popup === */
#thankYouPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Darker overlay for more elegance */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.popup-form {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  animation: popupAnimation 0.3s forwards;
}

@keyframes popupAnimation {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-form p {
  font-size: 1.2rem;
  font-family: 'Georgia', serif;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: justify; /* Ensures text alignment is justified for a neat look */
}

.popup-form button {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.3s;
  background-color: #f0c000;
  color: #000;
}

