/* ================= GLOBAL ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8f6f2;
  color: #2b2b2b;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: 'Agraham', serif;
  /* font-weight: 400; */
}

section {
  padding: 80px 8%;
}

@font-face {
  font-family: "Agraham";
  src: url("assets/fonts/Agraham.otf") format("opentype");
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  background: #f8f6f2;

  transition: all 0.4s ease;
  /* ✅ ADD */
  z-index: 999;
  /* ✅ ADD */
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: #2b2b2b;
  border-radius: 2px;
  display: block;
  margin: 4px 0;
}

.navbar-toggle span:nth-child(2) {
  width: 18px;
}
/* ================= GLASS NAVBAR ON SCROLL ================= */

.navbar.scrolled {

  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.logo {
  height: 38px;
  width: auto;
  display: block;
  margin-top: 2px;
  /* tiny adjustment if it feels high */
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.navbar ul li a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar ul li a:hover {
  color: #b89c5a;
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  background: url("assets/hero/image-4.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 70px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  color: white;
  z-index: 2;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn {
  background: #b89c5a;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 3px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #9d844c;
}

/* ================= MOVING TEXT ================= */

.moving-text {
  overflow: hidden;
  background: #eeeae3;
  padding: 25px 0;
}

.scroll-wrapper {
  display: flex;
}

.scrolling {
  display: flex;
  align-items: center;
  gap: 80px;
  /* Proper spacing */
  white-space: nowrap;
  /* Prevent line break */
  animation: scrollText 55s linear infinite;
}

.scrolling span {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  /* Prevent ARABIAN / WOODY breaking */
  position: relative;
}

.scrolling span::after {
  content: "•";
  margin-left: 80px;
  color: #b89c5a;
  font-size: 18px;
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.scrolling:hover {
  animation-play-state: paused;
}

/* ================= SPLIT SECTION ================= */

.split-section {
  display: flex;
  align-items: center;
  gap: 50px;
}

.split-section img {
  width: 100%;
  border-radius: 6px;
}

.split-section .image {
  flex: 1;
}

.split-section .text {
  flex: 1;
}

.split-section h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

/* ================= FULL IMAGE ================= */

.full-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================= FRAGRANCE SECTION ================= */

.fragrance-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 42px;
}

.fragrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.fragrance-card {
  text-align: center;
  background: white;
  padding: 25px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.fragrance-card .image-wrapper {
  margin-bottom: 20px;
}

.fragrance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.fragrance-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fragrance-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2; 
}

.sizes {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sizes button {
  border: 1px solid #b89c5a;
  background: transparent;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.sizes button:hover {
  background: #b89c5a;
  color: white;
}

.order-box {
  text-align: center;
  margin-top: 40px;
}

.order-btn {
  background: #2b2b2b;
  color: white;
  padding: 14px 35px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}

.order-btn:hover {
  background: #b89c5a;
}

/* ================= LUXORA SCROLL STORY ================= */

/* ================= LUXORA CINEMATIC V2 ================= */

.lux-scroll {
  height: 100vh;
  position: relative;
  background: url('assets/showcase/scroll-image.png') no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

.lux-scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.lux-sticky{
  position:relative;
  height:100%;
  overflow:hidden;
  z-index: 1;
}

/* IMAGE */

.lux-image {
  position: absolute;
  inset: 0;

  background: url("assets/showcase/scroll-image.png") center center / cover no-repeat;

  transform: scale(1.15);
  will-change: transform;
}

/* TEXT */

.lux-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.lux-line {
  position: absolute;
  width: 100%;
  max-width: 100%;
  color: white;
  font-size: 70px;
  letter-spacing: 2px;

  opacity: 0;
  transform: translateY(80px);

  transition:
    opacity .8s ease,
    transform .8s ease;
}

.lux-line.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= REVIEWS ================= */

.reviews-section {
  background: #f1ede6;
  text-align: center;
}

.reviews-section h2 {
  margin-bottom: 30px;
  font-size: 36px;
}

#reviewForm {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#reviewForm input,
#reviewForm textarea {
  padding: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
}

#reviewForm button {
  background: #b89c5a;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#reviewList {
  margin-top: 30px;
}

/* ================= CONTACT ================= */

.contact-section {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.social-links img {
  width: 40px;
  transition: 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 20px;
  background: #e8e2d8;
  margin-top: 50px;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 768px) {

  .hero h1 {
    font-size: 32px;
  }

  .split-section {
    flex-direction: column;
  }

  .navbar ul {
    gap: 20px;
  }
}

/* Smooth hover effect on fragrance cards */
.fragrance-card {
  transition: 0.4s ease;
}

.fragrance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Better button polish */
.sizes button {
  border-radius: 3px;
}

.sizes button:hover {
  background: #b89c5a;
  color: white;
  transform: translateY(-2px);
}

/* Navbar subtle shadow when scrolling feel */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Hero overlay stronger for cinematic feel */
.hero::after {
  background: rgba(0, 0, 0, 0.45);
}

/* ================= MOVING REVIEWS MARQUEE ================= */

/* .reviews-marquee {
  background: #111;
  color: #fff;
  overflow: hidden;
  padding: 25px 0;
  margin-top: 80px;
}

.reviews-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: reviewScroll 35s linear infinite;
}

.review {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  white-space: nowrap;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

@keyframes reviewScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
} */

/* =====================================================
   LUXORA MOVING REVIEWS SECTION
===================================================== */

.reviews-section {
  background: #f1ede6;
  text-align: center;
  padding: 90px 8%;
}

.reviews-section h2 {
  font-size: 38px;
  margin-bottom: 50px;
}


/* ---------- ROW CONTAINER ---------- */

.review-row {
  overflow: hidden;
  margin: 30px 0;
  position: relative;
}


/* ---------- TRACK ---------- */

.review-track {
  display: flex;
  gap: 25px;
  width: max-content;
}


/* ---------- ANIMATION DIRECTIONS ---------- */

.move-left {
  animation: scrollLeft 15s linear infinite;
}

.move-right {
  animation: scrollRight 15s linear infinite;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}


.review-card {
  min-width: 280px;
  max-width: 360px;
  background: white;
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between; /* ✅ ADD */
}

.review-card h4 {
  margin-top: 10px;
  font-size: 15px;
}

.review-card small {
  color: #888;
}

.review-card .stars {
  color: #f5b301;
  font-size: 18px;
}

/* delete button */
.delete-review {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  cursor: pointer;
}

.delete-review:hover {
  color: red;
}


/* ---------- TEXT ---------- */

.review-card p {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  text-align: center;
  flex: 1;
}

.review-card h4 {
  font-size: 15px;
  color: #b89c5a;
  margin-bottom: 2px;
}

.review-card small {
  font-size: 12px;
  opacity: 0.6;
}


/* ---------- STAR RATING ---------- */

.stars {
  color: #b89c5a;
  font-size: 14px;
  margin-bottom: 8px;
}


/* ---------- REVIEW FORM ---------- */

/* ================= PREMIUM REVIEW FORM ================= */

.review-form-box {
  max-width: 650px;
  margin: 80px auto 0;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.review-form-box h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
}

.review-form-box input,
.review-form-box textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 15px;
  background: #fafafa;
}

.review-form-box textarea {
  height: 120px;
  resize: none;
}

.review-form-box button {
  width: 100%;
  padding: 14px;
  border: none;
  background: #b89c5a;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: .3s;
}

.review-form-box button:hover {
  background: #9d844c;
}


/* ---------- PAUSE ON HOVER ---------- */

.review-track:hover {
  animation-play-state: paused;
}

.star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  cursor: pointer;
}

.star-rating span {
  color: #ddd;
  transition: .2s;
}

.star-rating span.active,
.star-rating span:hover,
.star-rating span:hover~span {
  color: #f5b301;
}

/* ================= PREMIUM IMAGE HOVER ================= */

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  display: block;
  transition:
    opacity .6s ease,
    transform .8s ease;
}

/* hover image hidden */
.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* smooth luxury hover */
.fragrance-card:hover .hover-img {
  opacity: 1;
  transform: scale(1.06);
  height: 100%;
  object-fit: cover;
}

.fragrance-card:hover .main-img {
  opacity: 0;
  transform: scale(1.06);
}

/* ================= TOP SELLING SECTION ================= */

.top-selling-section {
  background: #f8f6f2;
  padding: 90px 8%;
  text-align: center;
}

.top-selling-header {
  margin-bottom: 60px;
}

.top-selling-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b89c5a;
  margin-bottom: 14px;
  font-weight: 500;
}

.top-selling-header h2 {
  font-size: 46px;
  margin-bottom: 14px;
  color: #2b2b2b;
}

.top-selling-header p {
  font-size: 16px;
  color: #888;
  font-weight: 300;
}

.top-selling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 300px));
  gap: 40px;
  justify-content: center;
  margin: 0 auto;
}

.top-selling-card {
  position: relative;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  transition: 0.4s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.top-selling-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #b89c5a;
  color: white;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
  font-weight: 500;
}

.top-selling-card .image-wrapper {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.top-selling-card .image-wrapper img {
  width: 100%;
  display: block;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.top-selling-card .image-wrapper .hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  height: 100%;
  object-fit: cover;
}

.top-selling-card:hover .hover-img {
  opacity: 1;
  transform: scale(1.06);
}

.top-selling-card:hover .main-img {
  opacity: 0;
  transform: scale(1.06);
}

.top-selling-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2b2b2b;
}

.top-selling-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .navbar-toggle {
    display: block;
    cursor: pointer;
  }
  .nav-links {
    display: none !important;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 80px;
    right: 8%;
    background: #f8f6f2;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex !important;
    width: 100%;
    right: 0;
  }
  .fragrance-section {
    padding: 20px;
  }
  .fragrance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .fragrance-card {
    padding: 0 0 20px 0;
    overflow: hidden;
    text-align: center; /* Center all text */
  }

  /* Spacing for multi-line fragrance names (like "Arabian" and "Woody") */
  .fragrance-card h3 {
    font-size: 16px !important;
    line-height: 1.6; /* Increased line height for better spacing between lines */
    margin: 12px 5px 8px 5px; /* Increased top and bottom margin */
    word-break: break-word;
    hyphens: auto;
    white-space: pre-line; /* Respects line breaks in HTML */
    padding: 0 8px;
  }

  /* If fragrance name is in separate elements */
  .fragrance-name {
    font-size: 16px !important;
    line-height: 1.6; /* More spacing between lines */
    margin: 12px 0 8px 0; /* Add vertical spacing */
    word-break: break-word;
    hyphens: auto;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Space between "Arabian" and "Woody" if they're in separate elements */
  }

  /* Individual lines within fragrance name */
  .fragrance-name span,
  .fragrance-name div {
    display: block;
    margin-bottom: 2px;
  }

  /* Container for size options */
  .size-options {
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 8px;
    margin-top: 8px; /* Add space above size options */
  }

  .size-btn {
    font-size: 12px;
    padding: 4px 8px;
  }

  .lux-line {
    font-size: 20px;
    letter-spacing: 4px;
    margin: 15px 0;
  }
  
  .lux-scroll {
    background-size: 270%;
    background-position: center center;
  }

  .top-selling-section {
    padding: 20px;
  }

  .top-selling-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  .top-selling-card {
    padding: 0 0 20px 0;
    overflow: hidden;
  }

  .top-selling-card .image-wrapper {
    margin-bottom: 0;
  }

  .top-selling-info h3 {
    font-size: 16px !important;
    line-height: 1.6;
    margin: 12px 5px 8px 5px;
    word-break: break-word;
    padding: 0 8px;
  }

  .top-selling-desc {
    font-size: 11px;
    padding: 0 8px;
    margin-bottom: 10px;
  }

  .top-badge {
    font-size: 8px;
    padding: 3px 7px;
    top: 8px;
    left: 8px;
  }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
  .fragrance-card h3,
  .fragrance-name {
    font-size: 14px !important;
    line-height: 1.5;
    margin: 10px 5px 6px 5px;
  }
  
  .fragrance-grid {
    gap: 10px;
  }
  
  .fragrance-name {
    gap: 3px; /* Slightly smaller gap between lines on mobile */
  }
}

/* Make WhatsApp slightly bigger */
.social-links a:first-child img {
  transform: scale(1.25);
}


/* ================= MOBILE REVIEW COMPACT FIX ================= */

@media screen and (max-width: 768px) {

  .review-card {
    min-width: 180px;
    max-width: 180px;
    padding: 12px;
    border-radius: 8px;
  }

  .review-card p {
    font-size: 12px;
    line-height: 1.3;
    max-height: 45px;
    overflow: hidden;
  }

  .review-card h4 {
    font-size: 13px;
  }

  .review-card small {
    font-size: 10px;
  }

  .stars {
    font-size: 12px;
    margin-bottom: 5px;
  }

}