/* CSS Variables (Custom Properties) */
:root {
  /* Colors
  --color-primary: #121212;
  --color-secondary: #666666;
  --color-background: #ffffff; */
  --color-background-gradient: white;
  
  /* Typography
  --font-primary: "Monotype Baskerville", serif;
  --font-secondary: sans-serif;
  --font-size-small: 14px;
  --font-size-medium: 16px;
  --font-size-large: 24px;
  --font-size-xlarge: 42px; */
  
  /* Spacing
  --spacing-small: 10px;
  --spacing-medium: 20px;
  --spacing-large: 40px;
  --spacing-xlarge: 80px; */
  
  /* Transitions 
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease; */
}

/* Google fonts */
.inter-custom {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  /* height: 100px; */
  overflow-x: hidden;
  background: var(--color-background-gradient);
  background-color: var(--color-background-gradient) !important; /* Fixes Dark Mode footer part */
}
/* anything selectd in another color instead of the boring blue */
::selection {
  background-color: black;
  color: white;
}

/*~~FOR HIM & FOR HER~~*/

.gender {
  display: flex;
  width: 100%; /* Changed from 100vw to 100% */
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.left-container,
.right-container{
position: absolute;
height: 500px; 
background: transparent; 
display: flex;
flex-direction: column; /* Stack items vertically */
align-items: center;
justify-content: center;
color: white;
font-size: 14px;
border-radius: 10px;
z-index: 2;
display: flex;
align-items: flex-start;
justify-content: center;
text-align: center;
top: 74.5%;
transform: translateY(-50%); /* Center vertically */
box-shadow: #000;
}

.left-container{
  width: 500px; 
  left: -10px;
}

/*PUT THEM IN THE SAME THING????*/

.right-container{
  width: 500px; 
  right: -10px;
}

.right-container p,
.left-container p {
  position: relative;
  opacity: 0;
  bottom: 0%;
  transform: translateY(30px); /* Start below */
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); /* Fully clipped at the bottom */
  font-family: 'Urbanist', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16.5px;
  transition: 
    clip-path 0.5s ease-out,
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  visibility: hidden;
}

.right-container p{
  margin: 8px 15px 0px 25px;
}
.left-container p{
  margin: 10px 45px;
}

.right-container p.show,
.left-container p.show,
.explore-fragrances.show{
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Fully visible */
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth return */
  transform: translateY(0);
  visibility: visible;
}

.female,
.male {
  flex: 1; /* Each child takes 50% of the container (1:1 ratio) */
  position: relative; /* Allows child elements (.text-overlay) to position themselves inside this container */
  transition: all 0.5s ease-in-out; /* transition Speed + transition type -> Image Expanding*/
  overflow: hidden; /* Hides anything that goes outside the section */
}

.female img,
.male img {
  width: 100%; /* Image takes the full width of its container */
  height: 100%; /* Image takes the full height of its container */
  object-fit: cover; /* Makes sure the image fills its box without stretching, it will zoom and crop to fit */
}

.text-overlay button {
  position: absolute;
  background: transparent;
  color: white;
  border: none;
  padding: 20px;
  font-size: 3.2rem;
  font-family: 'Bebas Neue'; /* the font used on slider but it doesnt look like it */
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Fully visible */
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth return */
}

.explore-fragrances {
  font-family: 'Urbanist', sans-serif;
  font-style: normal;
  size: 21px;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  margin: 0px 139px 85px;
  /* top: 10px, right: 20px, bottom: 30px, left: 40px */
  background: transparent;
  color: white;
  border: none;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); /* Fully clipped */
  opacity: 0;
  transform: translateY(30px); /* Start below */

  transition:
    clip-path 0.5s ease-out,
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
    
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition: all 0.5s;
  visibility: hidden;
}

.explore-fragrances::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.5s ease;
}

.explore-fragrances:hover::after {
  width: 20%;
}

.left-container .text-overlay .for-her{
  transform: translateX(0%); /* Fine-tune if needed */
  margin: -1rem 0rem 0rem 7.5rem
  
}

.right-container .text-overlay .for-him{
  transform: translateX(0%); /* Fine-tune if needed */
  margin: 0rem 0rem 0rem 8rem
}

.text-overlay button.hide{
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transform: translateY(60px) scale(1, 0.5);
  opacity: 0;
  pointer-events: none;
}

/* Journey text styling */
.fragrance-quiz-container {
  position: absolute;
  bottom: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: auto; /* fix to make div take exactly as the text takes up*/
}

.fragrance-quiz a{
  text-decoration: none;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.7);
}

.fragrance-quiz {
  color: grey;
  text-decoration: none;
  font-size: 18px;
  height: 24px;
  line-height: 24px;
  letter-spacing: 1px;
  opacity: 0; /* Start invisible */
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Show class that will be added by JavaScript */
.fragrance-quiz.show {
  opacity: 0.8;
  transform: translateY(0);
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Text Overlay Styles with consistent animation timing */
.text-overlay-indulge,
.text-overlay-your {
  /* font-family: 'Proxima Nova'; */  /*supposedly the font used in slider, the template, but it doesnt look like it */
  position: absolute;
  color: rgb(238, 236, 236);
  z-index: 10;
  pointer-events: none;
  transform: scale(1, 1.2) translateY(40px); /* Start position */
  opacity: 0; /* Start invisible */
  transition: opacity 0.8s ease, transform 0.8s ease; /* Match button transition */
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.urbanist-custom {
  font-family: "Urbanist", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* Replace <weight> with a valid value */
  font-style: normal;
}

.text-overlay-indulge {
  top: 17%;
  left: 10%;
  font-size: 100px;
}

.text-overlay-your {
  top: 45%;
  left: 20%;
  font-size: 100px;
  white-space: nowrap;
}

/* Hover effect for text overlays */
.text-overlay-indulge.hide ,
.text-overlay-your.hide {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 0,
    0 0
  ); /* Shrink text from bottom to top */
  transform: translateY(-80px) scale(1, 1.2); /* Move text up */
}

.transition-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 9999;
}

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

/* Responsive: Make transition image fill and fit mobile/tablet viewport exactly */
@media (max-width: 1024px) {
  .transition-container img {
object-fit: contain !important; /* Ensure the image fits within the viewport without cropping */
  }
}

.transition-container.active {
  opacity: 1;
  visibility: visible;
}

.female,
.male {
  flex: 1; /* Start with equal width */
  position: relative;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother easing */
  overflow: hidden;
}

/* Image styling - prevent zooming */
.female img,
.male img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintains aspect ratio without zooming */
  object-position: center; /* Keeps image centered */
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
  transform: scale(1); /* Ensure no scaling by default */
}

/* Initial load state for images */
.female img,
.male img {
  opacity: 0;
}

.female img {
  transform: translateY(100%);
}

.male img {
  transform: translateY(-100%);
}

.female img.loaded,
.male img.loaded {
  transform: translateY(0);
  opacity: 1;
}

/* When hovering the gender container, apply default state to both sides */
.gender:hover .female,
.gender:hover .male {
  filter: brightness(1);
}

/* Initial states for text overlays */
.text-overlay-indulge,
.text-overlay-your {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.2s; /* Delay until after images are loaded */
}

/* Classes for when text is ready to show */
.text-overlay button.show,
.text-overlay-indulge.show,
.text-overlay-your.show {
  opacity: 0.95;
  transform: translateY(0);
}

/* Text Overlay Styles */
.text-overlay-indulge {
  position: absolute;
  top: 15%;
  left: 10%;
  color: rgb(238, 236, 236);
  z-index: 10;
  pointer-events: none;
  font-size: 15.8rem;
  transform: scale(1, 1.2); /* Stretch vertically */
  transition: clip-path 0.7s, transform 1s, ease-in 1s, ease-out 0.7s; /* Add clip-path transition */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Initial full height */
}

.text-overlay-your {
  position: absolute;
  top: 45%;
  left: 30%;
  color: rgb(238, 236, 236);
  z-index: 10;
  pointer-events: none;
  font-size: 15.7rem;
  white-space: nowrap;
  transform: scale(1, 1.2); /* Stretch vertically */
  transition: clip-path 0.7s, transform 1s, ease-in 1s, ease-out 0.7s; /* Add clip-path transition */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Initial full height */
}

/* Quality and 3D Model Section */
.quality-model-section {
  display: grid;
  grid-template-columns: minmax(auto, 650px) minmax(auto, 650px);
  grid-template-rows: auto auto;
  grid-template-areas: 
    "quality model"
    "reviews reviews";
  /* column-gap: 50px; */
  padding: 90px 5%;
  background: var(--color-background-gradient);
  justify-content: center;
  gap: 40px;
}

/* Quality Assurance Text */
.quality-assurance {
  grid-area: quality;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quality-assurance h2 {
  font-size: 42px;
  margin-bottom: 30px;
  font-family: "Monotype Baskerville", serif;
  font-weight: 100;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.quality-assurance h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #000;
}

.quality-assurance p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  font-family: "Arial", sans-serif;
}

.learn-more-btn {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 12px 25px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.learn-more-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* 3D Model Container */
.model-container {
  grid-area: model;
  width: 500px;
  max-height: 500px;
  text-align: center;
  justify-self: center;
  position: relative;
}

.model-container h3 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 500;
}

#model-viewer {
  width: 100%;
  height: 400px;
  background: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  cursor: grab;
  opacity: 0; /* Start hidden */
  visibility: hidden; /* Hide from screen readers and interactions */
}

#model-viewer.loaded {
  opacity: 1;
  visibility: visible;
}

.model-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.model-loading::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #121212;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.interaction-hint {
  margin-top: 15px;
  font-size: 14px;
  color: #777;
  font-style: italic;
}

/* NEW REVIEW CARDS SECTION */
.reviews-section {
  grid-area: reviews;
  margin-top: 60px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 40px;
  padding: 2rem;
}

.reviews-title {
  font-size: 24px;
  margin-bottom: 35px;
  margin-top: 20px;
  position: relative;
  display: inline-block;
}

.reviews-title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #000;
}

.reviews-container {
  display: flex;
  padding: 10px;
  gap: 22px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.review-card {
  flex: 0 0 calc(33.333% - 14px);
  background: white;
  border-radius: 8px;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.07);
  padding: 20px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: relative;
  overflow: hidden;
  height: 310px;
  border-top: 3px solid black;
  display: flex;
  flex-direction: column;
}

.review-card.fading-out {
  opacity: 0;
  transform: translateY(15px);
}

.review-card.fading-in {
  opacity: 1;
  transform: translateY(0);
}

.review-card-stars {
  color: gold;
  font-size: 16px;
  margin-bottom: 15px;
}

.review-card-text {
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  flex-grow: 1;
  margin-bottom: 20px;
}

.review-card-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.review-card-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid #efcfa0;
}

.review-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-info {
  flex-grow: 1;
}

.review-card-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin: 0;
}

.review-card-location {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.reviews-navigation {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 10px;
}

.reviews-nav-dot {
  width: 8px;
  height: 8px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reviews-nav-dot.active {
  background-color: #000;
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .reviews-container {
    flex-direction: column;
  }

  .review-card {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 15px;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .quality-model-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quality"
      "model"
      "reviews";
    padding: 40px 2vw;
    gap: 32px;
  }
  .quality-assurance, .model-container, .reviews-section {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 800px) {
  .quality-model-section {
    padding: 20px 0.5rem;
    gap: 18px;
  }
  .quality-assurance, .model-container, .reviews-section {
    padding: 0 0.5rem;
  }
  .model-container {
    width: 100%;
    min-width: 0;
  }
  #model-viewer {
    height: 250px;
  }
}


@media (max-width: 900px) {
  .quality-model-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quality"
      "model"
      "reviews";
    padding: 30px 1.5rem;
    gap: 24px;
  }
  .quality-assurance, .model-container, .reviews-section {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
  }
  .quality-assurance h2 {
    font-size: 2rem;
  }
  .quality-assurance p {
    font-size: 1.05rem;
  }
  .model-container {
    width: 100%;
    min-width: 0;
  }
  #model-viewer {
    height: 300px;
  }
  .reviews-title {
    font-size: 1.3rem;
  }
  .reviews-container {
    gap: 16px;
  }
  .review-card {
    font-size: 1rem;
    padding: 18px;
    height: auto;
  }
  .review-card-avatar {
    width: 38px;
    height: 38px;
    margin-right: 10px;
  }
  .review-card-text {
    font-size: 1rem;
  }
  .review-card-name {
    font-size: 1.05rem;
  }
  .review-card-location {
    font-size: 0.95rem;
  }
}

@media (max-width: 450px) {
  .quality-model-section {
    padding: 10px 0.2rem;
    gap: 10px;
  }
  .quality-assurance, .model-container, .reviews-section {
    padding: 0 0.2rem;
  }
  .quality-assurance h2 {
    font-size: 1.5rem;
  }
  .quality-assurance p {
    font-size: 0.95rem;
  }
  .model-container {
    width: 100%;
    min-width: 0;
  }
  #model-viewer {
    height: 140px;
  }
  .reviews-title {
    font-size: 1.1rem;
  }
  .reviews-section {
    padding: 1rem 0.2rem;
  }
  .reviews-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0;
  }
  .review-card {
    width: 100%;
    min-width: 0;
    padding: 12px;
    font-size: 0.95rem;
    height: auto;
  }
  .review-card-avatar {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  .review-card-text {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  .review-card-name {
    font-size: 0.98rem;
  }
  .review-card-location {
    font-size: 0.85rem;
  }
  .reviews-navigation {
    margin-top: 10px;
    gap: 5px;
  }
}

/* --------------------
   Product Slider Section 
   -------------------- */
.product-slider-section {
  padding: 60px 0;
  background: rgb(255, 244, 224);
  text-align: center;
}

.slider-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #333;
  font-weight: 600;
}

/* Slider container with navigation buttons */
.product-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* The slider itself - horizontal scrolling area */
.product-slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth; /* Smooth scrolling animation */
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 0;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar for Chrome/Safari */
.product-slider::-webkit-scrollbar {
  display: none;
}

/* Mobile: Enable horizontal scrolling */
@media (max-width: 768px) {
  .product-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 15px;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
  }
  
  .product-card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Ensure smooth scrolling on touch devices */
  .product-slider {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Add padding to show partial cards on sides and enable centering */
  .product-slider::before,
  .product-slider::after {
    content: '';
    flex-shrink: 0;
    width: calc(50vw - 40vw);
  }
}

/* Individual product cards */
.product-card {
  flex: 0 0 calc(33.333% - 320px);
  margin: 0 160px;
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 4px 8px none;
  overflow: hidden;
  transition: transform 0.3s ease, z-index 0.5s ease;
  transform: scale(0.7);
  z-index: 0;
}

/* Active (focused) product card */
.product-card.active {
  transform: scale(1.2);
  box-shadow: 0 12px 24px none;
  z-index: 5;
}

/* Adjacent cards (left and right) */
.product-card.adjacent {
  transform: scale(0.5); /* Slightly smaller scale for adjacent cards */
  z-index: 1; /* Bring adjacent cards slightly forward */
}

/* Product image container */
.product-img {
  width: 220px; 
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Product image */
.product-img img {
  width: 220px; 
  height: 400px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Hover effect on product image  */
.product-card:hover .product-img img {
  transform: scale(1.1);
}

/* Product title */
.product-card h4 {
  padding: 15px 15px 5px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Product price */
.product-card p {
  padding: 0 15px 15px;
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Navigation buttons */
.slider-nav-btn {
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px none;
  position: absolute;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  transform: scale(1.1);
}

/* Position of navigation buttons */
.prev-btn {
  left: -180px;
  bottom: 120px;
}

.next-btn {
  right: -180px;
  bottom: 120px;
}

/* Icons in navigation buttons */
.slider-nav-btn i {
  font-size: 16px;
  color: #444;
}

/* Hide navigation buttons on mobile */
@media (max-width: 768px) {
  .slider-nav-btn {
    display: none !important;
  }
  
  /* Hide product description text on mobile for cleaner layout */
  .product-details .product-description {
    display: none;
  }
  
  /* Adjust spacing for product details on mobile */
  .product-details {
    text-align: center;
    margin-top: 20px;
    padding: 15px 20px;
  }
  
  .product-details .product-name {
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.3;
  }
}

/*
/* Media queries for responsiveness 
@media (max-width: 768px) {
  .product-card {
    flex: 0 0 calc(50% - 20px); /* Show 2 items on medium screens 
  }

  .product-card.active {
    transform: scale(1.1);
    box-shadow: 0 12px 24px none;
    z-index: 5;
  }
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 calc(100% - 20px); /* Show 1 item on small screens 
  }

  .slider-nav-btn {
    width: 30px;
    height: 30px;
  }
}
*/

  .add-to-cart-btn {
  cursor: pointer;
  /* transition: background-color 0.3s, transform 0.2s; */
  margin-top: 35px; /* Space above the button */

  border-radius: 0;
  font-size: 16px !important;
  padding: 25px !important;
  font-family: "Poppins", sans-serif !important;
  color: white !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background-color: #121212 !important;
  border: 1px solid #121212 !important;
  transition: all 0.2s linear !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

.add-to-cart-btn:hover {
  background-color: #333; /* Darker shade on hover */
  transform: translateY(-2px); /* Slight lift on hover */
}


/* Tablet: Show 2 cards, reduce margin */
@media (max-width: 1024px) and (min-width: 769px) {
  .product-card {
    flex: 0 0 calc(50% - 40px);
    margin: 0 20px;
    max-width: 90vw;
  }
  .product-img {
    width: 160px;
    height: 280px;
  }
  
  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Mobile: Show 1 card, reduce margin and image size */
@media (max-width: 600px) {
  .product-card {
    flex: 0 0 80vw;
    margin: 0 5px;
    max-width: 80vw;
    min-width: 80vw;
    transform: scale(0.95) !important; /* Override active scaling for better mobile fit */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .product-card.active {
    transform: scale(1) !important; /* Slightly larger for active state on mobile */
  }
  
  .product-img {
    width: 100%;
    max-width: 140px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  
  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure full image is visible without cropping */
    object-position: center;
    max-width: 140px;
    max-height: 200px;
  }
  
  /* Adjust carousel padding for better centering */
  .product-slider::before,
  .product-slider::after {
    width: calc(10vw);
  }
  
  /* Navigation buttons are hidden on mobile via the previous rule */
}

/* Large mobile/small tablet: 601px to 768px */
@media (max-width: 768px) and (min-width: 601px) {
  .product-card {
    flex: 0 0 75vw;
    margin: 0 8px;
    max-width: 75vw;
    min-width: 75vw;
  }
  
  .product-img {
    width: 100%;
    max-width: 160px;
    height: 240px;
  }
  
  .product-img img {
    max-width: 160px;
    max-height: 240px;
  }
  
  /* Adjust carousel padding */
  .product-slider::before,
  .product-slider::after {
    width: calc(12.5vw);
  }
}

/* Extra small screens: further reduce image size */
@media (max-width: 400px) {
  .product-card {
    flex: 0 0 85vw;
    margin: 0 5px;
    max-width: 85vw;
    min-width: 85vw;
  }
  
  .product-img {
    width: 100%;
    max-width: 110px;
    height: 160px;
  }
  
  .product-img img {
    max-width: 110px;
    max-height: 160px;
  }
  
  /* Adjust carousel padding for smaller screens */
  .product-slider::before,
  .product-slider::after {
    width: calc(7.5vw);
  }
  
  /* Ensure product details remain clean on small screens */
  .product-details .product-name {
    font-size: 1.1rem;
  }
}

/* Find Your Scent Section */
.find-your-scent-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--color-background-gradient);
  position: relative;
}

.find-your-scent-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
  font-family: "Monotype Baskerville", serif;
}

.find-your-scent-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0px;
}

/* Forgot password button styling */
.find-scent-btn {
  position: relative;
  text-decoration: none;
  color: #121212;
  padding: 0;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 25px;
  font-family: sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 1.5rem;
  font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol;
  font-weight: 400;
}

.find-scent-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transition: width 0.5s ease;
}

.find-scent-btn:hover {
  /* Cancel default blue color */
  color: #121212;
}

.find-scent-btn:hover::after {
  width: 20%;
}

.perfume-sequence-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 2rem;
    padding: 3rem;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    place-items: center;
}

.perfume-sequence-container img {
    /* width: 130px; */
    height: 17rem;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.perfume-sequence-container img:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

/* --- NEW: Responsive horizontal scroll for perfume sequence --- */
@media (max-width: 1024px) {
  .perfume-sequence-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    padding: 1.5rem 1rem 1.5rem 1.5rem;
    max-width: 100%;
    width: 100%;
    place-items: unset;
    scroll-snap-type: x mandatory;
  }
  .perfume-sequence-container img {
    flex: 0 0 auto;
    scroll-snap-align: center;
    height: 14rem;
    width: auto;
    max-width: 70vw;
  }
}

@media (max-width: 900px) {
  .perfume-sequence-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.2rem;
    padding: 1rem 0.5rem 1rem 1rem;
    max-width: 100%;
    width: 100%;
    scroll-snap-type: x mandatory;
  }
  .perfume-sequence-container img {
    flex: 0 0 auto;
    scroll-snap-align: center;
    height: 12rem;
    width: auto;
    max-width: 80vw;
  }
}
@media (max-width: 600px) {
  .perfume-sequence-container {
    gap: 0.7rem;
    padding: 0.5rem 0.2rem 0.5rem 0.5rem;
  }
  .perfume-sequence-container img {
    height: 9rem;
    max-width: 90vw;
  }
}
@media (max-width: 400px) {
  .perfume-sequence-container img {
    height: 7rem;
    max-width: 95vw;
  }
}




/* Mobile gender labels - hidden by default */
.mobile-gender-label {
  display: none;
}

@media (max-width: 1024px) {
  .gender {
    flex-direction: column;
    height: auto;
  }

  .female, .male {
    flex: none;
    height: 50vh;
    width: 100%;
  }

  .female img, .male img {
    height: 100%;
    object-fit: cover;
    transform: none !important;
    opacity: 1 !important;
  }

  .left-container, .right-container,
  .text-overlay-indulge, .text-overlay-your,
  .explore-fragrances,
  .left-container p, .right-container p,
  .fragrance-quiz-container {
    display: none !important;
  }

  .text-overlay {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
    z-index: 5;
  }

  .text-overlay button {
    font-size: 2.2rem;
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 8px;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }

  .text-overlay button:hover {
    background-color: rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
  }

  /* Mobile gender labels */
  .mobile-gender-label {
    display: block;
    position: absolute;
    font-family: "Bebas Neue", sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    z-index: 6;
    cursor: pointer;
    text-align: center;
    background: transparent;
    padding: 15px 25px;
    border: none;
    transition: all 0.3s ease;
  }

  /* Position "For Her" in bottom-right */
  .female .mobile-gender-label {
    bottom: 1.5rem;
    right: 1.5rem;
    transform: none;
  }

  /* Position "For Him" in bottom-left */
  .male .mobile-gender-label {
    bottom: 1.5rem;
    left: 1.5rem;
    transform: none;
  }

  .mobile-gender-label:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9);
  }

  .female .mobile-gender-label:hover {
    color: rgba(236, 72, 153, 1);
    text-shadow: 2px 2px 12px rgba(236, 72, 153, 0.6);
  }

  .male .mobile-gender-label:hover {
    color: rgba(99, 102, 241, 1);
    text-shadow: 2px 2px 12px rgba(99, 102, 241, 0.6);
  }
}

/* Add a subtle pulse animation for mobile labels */
@keyframes mobileLabelPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.mobile-gender-label {
  animation: mobileLabelPulse 3s ease-in-out infinite;
}

/* Additional mobile responsiveness for smaller screens */
@media (max-width: 768px) {
  .mobile-gender-label {
    font-size: 3rem;
    padding: 12px 20px;
    letter-spacing: 1.5px;
  }
  
  .female .mobile-gender-label {
    bottom: 1rem;
    right: 1rem;
  }

  .male .mobile-gender-label {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .mobile-gender-label {
    font-size: 2.5rem;
    padding: 10px 18px;
    letter-spacing: 1px;
  }
  
  .female .mobile-gender-label {
    bottom: 0.8rem;
    right: 0.8rem;
  }

  .male .mobile-gender-label {
    bottom: 0.8rem;
    left: 0.8rem;
  }
}

@media (max-width: 360px) {
  .mobile-gender-label {
    font-size: 2.2rem;
    padding: 8px 15px;
  }
  
  .female .mobile-gender-label {
    bottom: 0.6rem;
    right: 0.6rem;
  }

  .male .mobile-gender-label {
    bottom: 0.6rem;
    left: 0.6rem;
  }
}

@media (max-width: 1024px) {
  .female, .male {
    filter: brightness(1) !important; /* Disable dimming on click */
  }
}


/* FLUID */
#female-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Start invisible */
  transition: opacity 1.5s ease-in-out; /* Smooth transition for opacity */
  mix-blend-mode: screen; /* Blends with the female div */
  z-index: 2; /* Make sure it's above the image but below text */
  
  /* Adjusted filter for more orange, less yellow tone */
  filter: sepia(100%) hue-rotate(345deg) saturate(1500%) brightness(110%); /*1*/
  
  /* Option 4: Reddish-orange */
  /* filter: sepia(90%) hue-rotate(340deg) saturate(500%); */ /*2*/
}
#male-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Start invisible */
  transition: opacity 1.5s ease-in-out; /* Smooth transition for opacity */
  mix-blend-mode: screen; /* Blends with the male div */
  z-index: 2; /* Make sure it's above the image but below text */
  
  /* Current dark blue option */
  filter: sepia(100%) hue-rotate(180deg) saturate(250%) brightness(100%); /* 1 */
  

}

/* GENDER CONTAINER TRANSITION */

.transition-container {
  position: absolute;
  top: -100vh;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  transition: top 0.7s ease-in-out;
  background-color: #000;
  pointer-events: none;
}

.transition-container.active {
top: 0;
}

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

/* Transition effects for existing content */
.gender.transitioning * {
  transition: opacity 0.5s ease-out;
}

/* Preserve fluid effect during transition */
.gender.transitioning canvas {
  opacity: 0 !important;
  transition: opacity 0.5s ease-out !important;
}

/* Keep image visible during transition */
.gender.transitioning .transition-container {
  opacity: 1;
  visibility: visible;
}

/* Fragrance overlay styles in transition container */
.fragrance-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.7) 90%, transparent 100%);
  padding: 2.2rem 2rem 2.5rem 2rem;
  color: white;
  z-index: 10000;
  pointer-events: auto;
}

.fragrance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.fragrance-title {
  flex: 1;
}

.fragrance-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
  letter-spacing: 0.05em;
}

.fragrance-type {
  display: block;
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.2rem;
}

.scroll-buttons {
  display: flex;
  gap: 0.5rem;
}

.scroll-btn, .switch-gender-btn, .rewind-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(128, 128, 128, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 10001;
  pointer-events: auto;
}

.scroll-btn:hover, .switch-gender-btn:hover, .rewind-btn:hover {
  background: rgba(128, 128, 128, 0.5);
}

.switch-gender-btn i {
  font-size: 1.2em;
}

.rewind-btn i {
  font-size: 1.2em;
}

.divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.fragrance-details {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.fragrance-description p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: #e0e0e0;
}

.fragrance-notes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-group {
  display: flex;
  flex-direction: column;
}

.note-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.2rem;
}

.note-text {
  font-size: 0.9rem;
  color: #e0e0e0;
}

.buy-button {
  align-self: flex-start;
  padding: 0.8rem 2rem;
  background: white;
  color: black;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  z-index: 10001;
  pointer-events: auto;
}

.buy-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Mobile responsive styles for fragrance overlay */
@media (max-width: 1024px) {
  .fragrance-overlay {
    padding: 1.5rem 1rem 1.8rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.75) 80%, transparent 100%);
    max-height: 70vh;
    overflow-y: auto;
  }

  .fragrance-header {
    margin-bottom: 0.3rem;
  }

  .fragrance-name {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .fragrance-type {
    font-size: 0.8rem;
    margin-top: 0.1rem;
  }

  .scroll-buttons {
    gap: 0.3rem;
  }

  .scroll-btn, .switch-gender-btn, .rewind-btn {
    width: 35px;
    height: 35px;
  }

  .divider {
    margin: 0.6rem 0;
  }

  .fragrance-details {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    align-items: stretch;
  }

  .fragrance-description p {
    font-size: 0.9rem;
    line-height: 1.3;
    /* Limit description height and add scrolling if needed */
    max-height: 3.9rem; /* About 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .fragrance-notes {
    gap: 0.6rem;
    order: 2;
  }

  .note-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .note-label {
    font-size: 0.75rem;
    margin-bottom: 0;
    min-width: 80px;
    flex-shrink: 0;
  }

  .note-text {
    font-size: 0.8rem;
    flex: 1;
    /* Limit note text length */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .buy-button {
    order: 3;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .fragrance-overlay {
    padding: 1.2rem 0.8rem 1.5rem 0.8rem;
    max-height: 65vh;
  }

  .fragrance-name {
    font-size: 1.4rem;
  }

  .fragrance-description p {
    max-height: 2.6rem; /* About 2 lines */
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .note-label {
    min-width: 70px;
    font-size: 0.7rem;
  }

  .note-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .fragrance-overlay {
    padding: 1rem 0.6rem 1.2rem 0.6rem;
    max-height: 60vh;
  }

  .fragrance-name {
    font-size: 1.2rem;
  }

  .scroll-btn, .switch-gender-btn, .rewind-btn {
    width: 30px;
    height: 30px;
  }

  .fragrance-description p {
    max-height: 2.1rem; /* About 2 lines */
    font-size: 0.8rem;
  }

  .note-label {
    min-width: 60px;
    font-size: 0.65rem;
  }

  .note-text {
    font-size: 0.7rem;
  }

  .buy-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Add new rules for transition state */
.gender.transition-active {
  position: relative;
  z-index: 1000;
}

.gender.transition-active .hide-during-transition {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.gender.transition-active .transition-container {
  z-index: 1001;
}

/* Transition container styles */
.transition-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in;
}

.transition-container.active {
  opacity: 1;
  pointer-events: auto;
}

/* Fragrance transition image fade effect */
#transition-img.fragrance-img-transition {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}
#transition-img {
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

#transition-img.fragrance-img-transition-up {
  opacity: 0;
  transform: translateY(-60px) scale(0.98);
}

#transition-img.fragrance-img-transition-down {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
}

#transition-img.fragrance-img-appear-up {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: none;
}

#transition-img.fragrance-img-appear-down {
  opacity: 0;
  transform: translateY(-60px) scale(0.98);
  transition: none;
}

/* Seamless slide transition styles for fragrance image */
.transition-img-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.transition-img-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0; top: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}
.transition-img-slide-out-up {
  transform: translateY(-100%);
  z-index: 2;
}
.transition-img-slide-out-down {
  transform: translateY(100%);
  z-index: 2;
}
.transition-img-slide-in-up {
  transform: translateY(100%);
  animation: slideInUp 0.5s forwards cubic-bezier(0.4,0,0.2,1);
  z-index: 3;
}
.transition-img-slide-in-down {
  transform: translateY(-100%);
  animation: slideInDown 0.5s forwards cubic-bezier(0.4,0,0.2,1);
  z-index: 3;
}
@keyframes slideInUp {
  to { transform: translateY(0); }
}
@keyframes slideInDown {
  to { transform: translateY(0); }
}

.fragrance-overlay-fade-out {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* --- Fragrance Modal Styles --- */
.fragrance-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.fragrance-modal-card {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalIn 0.25s cubic-bezier(.4,2,.6,1) 1;
}

/* Horizontal Layout for Fragrance Modal */
.fragrance-modal-card.fragrance-modal-horizontal {
  max-width: 700px;
  width: 90vw;
  flex-direction: row;
  align-items: flex-start;
  padding: 2rem;
}

@keyframes modalIn {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.fragrance-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 2;
}
.fragrance-modal-img-wrap {
  width: 120px;
  height: 160px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Horizontal layout image styling */
.fragrance-modal-horizontal .fragrance-modal-img-wrap {
  width: 200px;
  height: 250px;
  margin-right: 2rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.fragrance-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.fragrance-modal-content {
  width: 100%;
  text-align: center;
}

/* Horizontal layout content styling */
.fragrance-modal-horizontal .fragrance-modal-content {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.fragrance-modal-header {
  margin-bottom: 1rem;
}

.fragrance-modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

/* Horizontal layout header styling */
.fragrance-modal-horizontal .fragrance-modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.fragrance-modal-sizes {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.7rem;
}

/* Horizontal layout sizes styling */
.fragrance-modal-horizontal .fragrance-modal-sizes {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.fragrance-size-btn {
  border: 1.5px solid #121212;
  background: #fff;
  color: #121212;
  border-radius: 6px;
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  position: relative;
}
.fragrance-size-btn.selected {
  background: #121212;
  color: #fff;
  border-color: #121212;
}
.fragrance-size-btn:disabled {
  background: #eee;
  color: #aaa;
  border-color: #ccc;
  cursor: not-allowed;
}
.fragrance-size-btn.out-of-stock::after {
  content: 'Out of Stock';
  position: absolute;
  left: 50%;
  top: -1.7rem;
  transform: translateX(-50%);
  background: #c00;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  z-index: 10;
}
.fragrance-size-btn.out-of-stock:hover::after {
  opacity: 1;
}
.fragrance-modal-price {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #121212;
}

.fragrance-modal-notes {
  font-size: 0.98rem;
  margin-bottom: 1rem;
  color: #444;
  text-align: left;
}

/* Horizontal layout notes styling */
.fragrance-modal-horizontal .fragrance-modal-notes {
  margin-bottom: 1.5rem;
}

.fragrance-modal-notes div {
  margin-bottom: 0.5rem;
}

#fragrance-modal-add-to-cart {
  width: 100%;
  padding: 0.7rem 0;
  font-size: 1.1rem;
  border-radius: 6px;
  background: #121212;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s;
}

/* Horizontal layout add to cart styling */
.fragrance-modal-horizontal #fragrance-modal-add-to-cart {
  margin-top: auto;
  max-width: 200px;
}

#fragrance-modal-add-to-cart:disabled {
  background: #bbb;
  color: #fff;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .fragrance-modal-card.fragrance-modal-horizontal {
    flex-direction: column;
    align-items: center;
    max-width: 98vw;
    padding: 1.5rem 1rem;
  }
  
  .fragrance-modal-horizontal .fragrance-modal-img-wrap {
    width: 150px;
    height: 200px;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .fragrance-modal-horizontal .fragrance-modal-content {
    text-align: center;
  }
  
  .fragrance-modal-horizontal .fragrance-modal-sizes {
    justify-content: center;
  }
  
  .fragrance-modal-horizontal #fragrance-modal-add-to-cart {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .fragrance-modal-card {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .fragrance-modal-img-wrap {
    width: 90px;
    height: 110px;
  }
  .fragrance-modal-content h3 {
    font-size: 1.1rem;
  }
  .fragrance-modal-price {
    font-size: 1rem;
  }
  
  .fragrance-modal-horizontal .fragrance-modal-img-wrap {
    width: 120px;
    height: 150px;
  }
  
  .fragrance-modal-horizontal .fragrance-modal-content h3 {
    font-size: 1.3rem;
  }
}
/* --- End Fragrance Modal Styles --- */

.right-container p {
  /* Right container's explore fragrance's paragraph is not equal to left fsr */
  bottom: 8.5%; 
}
