:root {
  --primary: #021E36;
  /* Deep brand navy blue */
  --secondary: #062846;
  /* Medium brand navy blue */
  --gold: #C5A059;
  /* Brass gold */
  --gold-light: #dbb97a;

  /* Light theme color palette */
  --bg-main: #FAF8F5;
  /* Warm off-white */
  --bg-alt: #a4c3dc;
  /* Soft ice-blue gray */
  --bg-card: #FFFFFF;
  /* Pure white */
  --text-dark: #021E36;
  /* Deep navy for headings */
  --text-body: #1e293b;
  /* Slate 800 for body text - much darker and highly readable */
  --text-muted: #475569;
  /* Slate 600 for muted text - darker gray for better contrast */
  --text-light-theme: #FAF8F5;
  /* Warm white/cream for dark segments */

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --shadow-gold: 0 8px 30px rgba(197, 160, 89, 0.15);
  --shadow-card: 0 10px 30px rgba(2, 30, 54, 0.04);
  --radius-card: 16px;

  /* Map old Noor Interiors variables to new theme variables for seamless backward compatibility */
  --noor-charcoal: var(--bg-main);
  --noor-charcoal-soft: var(--bg-alt);
  --noor-cream: var(--text-dark);
  --noor-brass: var(--gold);
  --noor-brass-dark: var(--gold-light);
  --noor-muted: var(--text-muted);
}

html,
body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--primary);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main,
section,
.admin-main {
  overflow-x: hidden !important;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark,
.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-light);
}

.brand-mark span {
  color: var(--gold);
}

.text-brass {
  color: var(--gold) !important;
}

.text-cream {
  color: var(--text-light) !important;
}

.text-muted-cream {
  color: var(--text-muted) !important;
}

.bg-charcoal-soft {
  background-color: var(--secondary);
}

.bg-brass {
  background-color: var(--gold) !important;
}

.eyebrow-brass {
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--gold) !important;
  font-weight: 500;
  font-family: 'Cormorant Garamond', var(--font-heading), serif;
  font-style: italic;
  display: inline-block;
  position: relative;
  margin-bottom: 14px;
}

.eyebrow-brass::after {
  content: '';
  display: block;
  width: 45px;
  height: 1.5px;
  background-color: var(--gold);
  margin: 10px auto 0;
  opacity: 0.6;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 400;
}

.link-noor {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link-noor:hover {
  border-color: var(--gold);
}

/* Glass Navigation Override */
.navbar-noor {
  background: rgba(13, 13, 13, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12) !important;
  padding: 16px 0 !important;
  transition: 0.25s ease;
}

.navbar-noor .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold) !important;
}

.navbar-noor .nav-link {
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--text-muted) !important;
  transition: 0.3s;
}

.navbar-noor .nav-link:hover,
.navbar-noor .nav-link.active {
  color: #fff !important;
}

.navbar-noor .navbar-toggler {
  border-color: rgba(197, 160, 89, 0.3) !important;
  padding: 6px 10px !important;
  transition: all 0.2s ease !important;
}

.navbar-noor .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.25) !important;
}

.navbar-noor .navbar-toggler:hover {
  border-color: var(--gold) !important;
  background-color: rgba(197, 160, 89, 0.1) !important;
}

.navbar-noor .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C5A059' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Premium Buttons matching the theme */
.btn-noor-solid {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0d0d0d !important;
  padding: 12px 26px !important;
  border-radius: 40px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  font-size: 0.8rem !important;
  transition: 0.3s !important;
}

.btn-noor-solid:hover {
  background-color: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
  color: #000 !important;
  transform: translateY(-2px) !important;
}

.btn-noor-outline {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 40px !important;
  background: transparent !important;
  padding: 12px 26px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  font-size: 0.8rem !important;
  transition: 0.3s !important;
}

.btn-noor-outline:hover {
  background-color: var(--gold) !important;
  color: #0d0d0d !important;
  transform: translateY(-2px) !important;
}

/* ----- HERO (cinematic, mobile optimised) ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 6% 60px;
  background: linear-gradient(145deg, rgba(13, 13, 13, 0.5) 0%, rgba(13, 13, 13, 0.85) 100%),
    url('/static/images/hero.png') center/cover no-repeat;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to top, #0d0d0d 5%, transparent);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-sub {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 300;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: 0.3s ease;
  background: transparent;
  cursor: pointer;
  border-radius: 40px;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #000;
}

.btn-outline:hover {
  background: var(--gold);
  color: #0d0d0d;
}

/* ----- STORY (mobile flex) ----- */
.story {
  background: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 60px 6%;
}

.story-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.5s;
}

.story-image:hover img {
  transform: scale(1.02);
}

.story-text .section-title {
  font-size: 2rem;
}

.story-text p {
  color: var(--text-muted);
  margin: 14px 0 22px;
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.95rem;
}

.story-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.story-features div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-features i {
  color: var(--gold);
  font-size: 1.2rem;
}

.story-features span {
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* responsive story */
@media (min-width: 640px) {
  .story {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .story-image {
    flex: 1;
  }



  .story-text {
    flex: 1;
  }
}



/* Hero */
.hero-noor {
  min-height: 78vh;
  background: radial-gradient(circle at top,
      rgba(200, 163, 90, 0.12),
      transparent 60%),
    var(--noor-charcoal);
  position: relative;
}

.hero-title {
  color: var(--noor-cream);
}

.philosophy-frame {
  background: linear-gradient(135deg,
      rgba(200, 163, 90, 0.18),
      rgba(20, 18, 15, 0.4));
  border: 1px solid rgba(200, 163, 90, 0.25);
  border-radius: 4px;
}

/* Product cards */
.product-card {
  background-color: transparent !important;
  border-radius: var(--radius-card) !important;
  overflow: hidden;
  border: none !important;
  transition: 0.3s ease !important;
  box-shadow: none !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
}

.product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: transparent !important;
  aspect-ratio: 1 / 1; /* Maintain uniform square aspect ratio */
  width: 100%;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Force entire image to display without crop */
  object-position: center;
  display: block;
  transition: 0.5s ease !important;
  padding: 12px; /* Premium gallery spacing */
}

.product-placeholder {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s ease !important;
}

.product-card:hover .product-card-media img,
.product-card:hover .product-placeholder {
  transform: scale(1.02) !important;
}

/* Premium Masonry Layout System */
.product-masonry {
  column-count: 3;
  column-gap: 1.5rem;
  width: 100%;
}

.product-masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

@media (max-width: 992px) {
  .product-masonry {
    column-count: 2;
    column-gap: 1.25rem;
  }

  .product-masonry-item {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 576px) {
  .product-masonry {
    column-count: 1;
    column-gap: 0;
  }
}

.product-placeholder {
  background: linear-gradient(135deg,
      rgba(197, 160, 89, 0.15),
      rgba(13, 13, 13, 0.6));
  color: var(--gold);
  font-family: var(--font-heading);
  text-align: center;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-tag {
  color: var(--gold) !important;
  font-weight: 500;
}

.product-card .card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.product-card .card-title a {
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.product-card .card-title a:hover {
  color: var(--gold) !important;
}

.product-detail-img {
  width: 100%;
  border-radius: 4px;
  min-height: 360px;
  object-fit: cover;
}

/* Filter pills */
.filter-pill {
  border: 1px solid rgba(200, 163, 90, 0.35);
  color: var(--noor-muted);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--noor-brass);
  color: #14120f;
  border-color: var(--noor-brass);
}

/* Footer */
.footer-noor {
  background-color: #0d0b09;
  border-top: 1px solid rgba(200, 163, 90, 0.15);
}

/* Admin */
.admin-card {
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.2);
  border-radius: 6px;
}

.admin-login-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.form-control,
.form-select {
  background-color: #0d0b09;
  border: 1px solid rgba(200, 163, 90, 0.25);
  color: var(--noor-cream);
}

.form-control:focus,
.form-select:focus {
  background-color: #0d0b09;
  color: var(--noor-cream);
  border-color: var(--noor-brass);
  box-shadow: 0 0 0 0.2rem rgba(200, 163, 90, 0.15);
}

.form-control:disabled {
  background-color: #14120f;
  opacity: 0.5;
}

.table-dark {
  --bs-table-bg: transparent;
}

/* WhatsApp floating widget */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 1050;
  animation: pulse-whatsapp 2.4s infinite;
}

.whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.05);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ---------------------------------------------------------------- */
/* Scroll-reveal animation system (vanilla JS + CSS, no framework)  */
/* ---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="fade-up"] {
  transform: translateY(36px);
}

[data-reveal="fade-in"] {
  transform: none;
}

[data-reveal="zoom-in"] {
  transform: scale(0.92);
}

[data-reveal="slide-left"] {
  transform: translateX(48px);
}

[data-reveal="slide-right"] {
  transform: translateX(-48px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.navbar-noor.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(200, 163, 90, 0.5);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--noor-brass);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% {
    opacity: 1;
    top: 6px;
  }

  70% {
    opacity: 0;
    top: 22px;
  }

  100% {
    opacity: 0;
    top: 6px;
  }
}

/* Stats strip */
.stats-strip {
  background: linear-gradient(180deg, rgba(200, 163, 90, 0.08), transparent);
  border-bottom: 1px solid rgba(200, 163, 90, 0.12);
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: var(--noor-brass);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--noor-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Category tiles */
.category-tile {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: auto;
  border: 1px solid rgba(2, 30, 54, 0.08);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card-wrapper:hover .category-tile img {
  transform: scale(1.08);
}

.category-card-wrapper:hover .category-tile {
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.15);
}

.category-tile-label-below {
  display: block;
  margin-top: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark) !important;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.8px;
  line-height: 1.4;
  padding-bottom: 8px;
}

.category-card-wrapper:hover .category-tile-label-below {
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* Feature / service cards */
.feature-card {
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.15);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(200, 163, 90, 0.5);
  transform: translateY(-4px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--noor-brass);
  color: var(--noor-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
}

.service-card {
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.15);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 163, 90, 0.5);
}

.service-card-media {
  height: auto;
  overflow: hidden;
}

.service-card-media:has(video),
.service-card-media:has(div) {
  height: 240px;
}

@media (min-width: 768px) {

  .service-card-media:has(video),
  .service-card-media:has(div) {
    height: 300px;
  }
}

.service-card-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

/* Testimonials */
.testimonial-card {
  background: var(--secondary) !important;
  padding: 30px 22px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  transition: 0.3s !important;
}

.testimonial-card:hover {
  border-color: var(--gold) !important;
}

.testimonial-quote {
  font-family: var(--font-heading) !important;
  font-style: italic !important;
  font-weight: 300 !important;
  font-size: 0.95rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 12px !important;
}

.testimonial-name {
  margin-top: 14px !important;
  font-weight: 400 !important;
  color: #fff !important;
  letter-spacing: 0.5px !important;
  font-size: 0.9rem !important;
}

/* CTA banner */
.cta-banner {
  background: var(--primary);
  border-top: 1px solid rgba(200, 163, 90, 0.15);
  border-bottom: 1px solid rgba(200, 163, 90, 0.15);
}

/* Page hero (secondary pages) */
.page-hero {
  min-height: 42vh;
  background: radial-gradient(circle at top, rgba(200, 163, 90, 0.1), transparent 60%),
    var(--noor-charcoal);
}

/* Accordion */
.accordion-noor .accordion-item {
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.15);
  margin-bottom: 0.75rem;
  border-radius: 6px !important;
  overflow: hidden;
}

.accordion-noor .accordion-button {
  background-color: transparent;
  color: var(--noor-cream);
  font-family: "Jost", sans-serif;
}

.accordion-noor .accordion-button:not(.collapsed) {
  color: var(--noor-brass);
  background-color: rgba(200, 163, 90, 0.08);
}

.accordion-noor .accordion-button::after {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg);
}

.accordion-noor .accordion-body {
  background-color: var(--noor-charcoal-soft);
}

/* Timeline (About page) */
.timeline-noor {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(200, 163, 90, 0.25);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--noor-brass);
}

.timeline-year {
  color: var(--noor-brass);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.timeline-content {
  color: var(--noor-muted);
}

/* Team cards */
.team-card {
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.15);
  border-radius: 6px;
  padding: 2rem 1rem;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 163, 90, 0.35);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Map placeholder */
.map-frame {
  background: linear-gradient(135deg, rgba(200, 163, 90, 0.15), rgba(20, 18, 15, 0.6));
  border: 1px solid rgba(200, 163, 90, 0.25);
  border-radius: 4px;
}

/* Legal pages */
.legal-content h5 {
  font-family: "Playfair Display", serif;
}

/* Footer links */
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--noor-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--noor-brass);
}

.social-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(200, 163, 90, 0.35);
  color: var(--noor-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-dot:hover {
  background-color: var(--noor-brass);
  color: #14120f;
}

/* Scroll-to-top FAB */
.scroll-top-fab {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.4);
  color: var(--noor-brass);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1040;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.scroll-top-fab.is-visible {
  display: flex;
}

.scroll-top-fab:hover {
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------- */
/* AI Chat Assistant widget                                          */
/* ---------------------------------------------------------------- */
.noor-chatbot {
  position: fixed;
  bottom: 24px;
  right: 96px;
  z-index: 1060;
}

.chatbot-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--noor-brass);
  border: none;
  color: #14120f;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chatbot-fab:hover {
  transform: scale(1.05);
}

.chatbot-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  max-height: 480px;
  background-color: var(--noor-charcoal-soft);
  border: 1px solid rgba(200, 163, 90, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatbot-pop 0.25s ease;
}

@keyframes chatbot-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(200, 163, 90, 0.18), transparent);
  border-bottom: 1px solid rgba(200, 163, 90, 0.2);
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(200, 163, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chatbot-title {
  color: var(--noor-cream);
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
}

.chatbot-subtitle {
  color: var(--noor-muted);
  font-size: 0.72rem;
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--noor-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.chatbot-close:hover {
  color: var(--noor-brass);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 180px;
}

.chatbot-bubble {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chatbot-bubble.bot {
  align-self: flex-start;
  background-color: rgba(200, 163, 90, 0.14);
  color: var(--noor-cream);
  border: 1px solid rgba(200, 163, 90, 0.25);
}

.chatbot-bubble.user {
  align-self: flex-end;
  background-color: var(--noor-brass);
  color: #14120f;
}

.chatbot-bubble a {
  color: var(--noor-brass);
}

.chatbot-bubble.user a {
  color: #14120f;
  text-decoration: underline;
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

.chatbot-quick-reply {
  border: 1px solid rgba(200, 163, 90, 0.4);
  background: transparent;
  color: var(--noor-brass);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-quick-reply:hover {
  background-color: var(--noor-brass);
  color: #14120f;
}

.chatbot-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(200, 163, 90, 0.2);
}

.chatbot-input {
  flex: 1;
  background-color: #0d0b09;
  border: 1px solid rgba(200, 163, 90, 0.25);
  color: var(--noor-cream);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--noor-brass);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background-color: var(--noor-brass);
  color: #14120f;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-typing span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background-color: var(--noor-muted);
  animation: chatbot-typing-blink 1.2s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatbot-typing-blink {

  0%,
  80%,
  100% {
    opacity: 0.2;
  }

  40% {
    opacity: 1;
  }
}

@media (max-width: 767px) {

  /* Prevent WhatsApp and Chatbot overlap by placing them on opposite corners */
  .whatsapp-fab {
    right: auto !important;
    left: 16px !important;
    bottom: 16px !important;
  }

  .noor-chatbot {
    right: 16px !important;
    left: auto !important;
    bottom: 16px !important;
  }

  .chatbot-panel {
    width: calc(100vw - 32px) !important;
    right: 0 !important;
    bottom: 76px !important;
  }

  .scroll-top-fab {
    right: 24px !important;
    bottom: 86px !important;
  }

  /* Optimize typography on mobile for a premium look */
  .navbar-noor .navbar-brand {
    font-size: 1.25rem !important;
  }

  .brand-title {
    font-size: 1.05rem !important;
    letter-spacing: 1px !important;
  }

  .brand-subtitle {
    font-size: 0.58rem !important;
    letter-spacing: 0.8px !important;
  }

  .hero h1 {
    font-size: 2.2rem !important;
  }

  .section-title {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-noor .navbar-brand {
    font-size: 1.1rem !important;
  }

  .brand-title {
    font-size: 0.92rem !important;
  }

  .brand-subtitle {
    font-size: 0.52rem !important;
    letter-spacing: 0.5px !important;
  }

  .hero h1 {
    font-size: 1.85rem !important;
  }
}

/* Navbar Brand Logo Styles */
.logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--gold);
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand:hover .logo-wrapper {
  transform: scale(1.06);
  border-color: var(--gold-light);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.45);
}

.navbar-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  /* Zooms in slightly to hide the white border of the JPEG */
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.22);
}

/* Ensure vertical alignment in navbar brand */
.navbar-brand.brand-mark {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15 !important;
}

.brand-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold) !important;
  line-height: 1.1;
  display: block;
  transition: color 0.3s ease;
}

.navbar-brand:hover .brand-title {
  color: var(--gold-light) !important;
}

.brand-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light) !important;
  opacity: 0.85;
  line-height: 1.1;
  margin-top: 1px;
  display: block;
}

.top-bar-announcement {
  font-size: 0.85rem;
}

@media (max-width: 575.98px) {
  .top-bar-announcement {
    font-size: 0.72rem !important;
  }
}

/* ----- GALLERY CARD & LIGHTBOX STYLING (SHARED) ----- */
.gallery-filter-btn {
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer;
  width: 100%;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
}

.gallery-card-media {
  width: 100%;
  aspect-ratio: 4 / 3; /* Uniform image area */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
  padding: 10px; /* Gallery spacing to prevent border touching */
}

.gallery-card:hover .gallery-card-media {
  transform: scale(1.05);
}

.gallery-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  transition: background 0.3s ease;
}

.gallery-video-overlay i {
  font-size: 3rem;
  color: var(--gold);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-video-overlay i {
  transform: scale(1.15);
}

.video-duration {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.gallery-card-overlay {
  position: relative;
  width: 100%;
  background: transparent !important;
  opacity: 1 !important;
  display: flex;
  flex-direction: column;
  padding: 16px 4px 8px 4px;
  transition: none !important;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1 !important;
}

.gallery-card-details h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-dark) !important;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-card-details h3 {
  color: var(--gold) !important;
}

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 6, 0.98);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10010;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-content {
  width: 100%;
  max-width: 960px;
  height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.lightbox-info {
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
}

.lightbox-info h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .gallery-lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
  }

  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-content {
    height: calc(100vh - 160px);
  }
}

/* Services Horizontal Scroll Row */
.services-scroll-container {
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
}

.services-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.services-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.services-scroll-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.services-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.25);
  border-radius: 10px;
  transition: background 0.3s;
}

.services-scroll-row:hover::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.7);
}

.service-scroll-item {
  flex: 0 0 85%;
  max-width: 380px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .service-scroll-item {
    flex: 0 0 45%;
  }
}

@media (min-width: 992px) {
  .services-scroll-row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .service-scroll-item {
    flex: 0 0 31.5%;
    max-width: 400px;
  }
}

/* Categories Horizontal Scroll Row */
.categories-scroll-container {
  overflow: hidden;
  padding: 10px 0 30px;
  width: 100%;
}

.categories-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.categories-scroll-row {
  scrollbar-width: none;
  /* Firefox */
}

.categories-scroll-row::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.category-scroll-item {
  flex: 0 0 55%;
  max-width: 320px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .category-scroll-item {
    flex: 0 0 35%;
    max-width: 360px;
  }
}

@media (min-width: 992px) {
  .category-scroll-item {
    flex: 0 0 28%;
    max-width: 420px;
  }
}

/* Category Tiles on Homepage */
.category-tile {
  width: 100%;
  aspect-ratio: 4 / 3; /* Set a uniform height relative to width, matching the gallery */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--bg-main);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain !important; /* Constrains the image so it is never cropped or cut off */
  object-position: center;
  display: block;
  padding: 10px; /* Spacing to prevent touching the borders */
}

.category-tile:hover {
  transform: scale(1.04);
  border-color: var(--gold);
}

.category-tile-label-below {
  margin-top: 12px;
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.3s ease;
}

.category-scroll-item:hover .category-tile-label-below {
  color: var(--gold) !important;
}

/* Top Bar Announcement Marquee Ticker */
.top-bar-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.top-bar-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ================================================================= */
/* LIGHT THEME OVERRIDES (mixed with deep navy accents)              */
/* ================================================================= */

body {
  background-color: var(--bg-main) !important;
  color: var(--text-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark,
.section-title {
  color: var(--text-dark) !important;
}

p,
span,
li,
td,
th {
  color: var(--text-body);
}

.text-muted-cream {
  color: var(--text-body) !important;
  /* Made darker globally for readability */
}

.text-cream {
  color: var(--text-dark) !important;
}

.text-brass {
  color: var(--text-dark) !important;
  /* Force gold/brass text to be dark navy for accessibility */
}

/* Premium White Cards for Contact form and info on Light Background */
.admin-card {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(2, 30, 54, 0.08) !important;
  box-shadow: 0 10px 30px rgba(2, 30, 54, 0.05) !important;
}

.admin-card h5,
.admin-card h6 {
  color: var(--text-dark) !important;
}

.admin-card p,
.admin-card label {
  color: var(--text-body) !important;
}

.admin-card a {
  color: var(--primary) !important;
  font-weight: 500;
  text-decoration: underline !important;
}

.admin-card a:hover {
  color: var(--gold) !important;
}

/* Premium Form Controls for public website */
.form-control,
.form-select {
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(2, 30, 54, 0.15) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease-in-out !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1) !important;
  outline: 0 !important;
}

/* --- Section Backgrounds --- */
.bg-charcoal-soft {
  background-color: var(--bg-alt) !important;
}

.story {
  background: var(--bg-main) !important;
}

.story-text h2,
.story-text p,
.story-features span {
  color: var(--text-dark) !important;
}

.story-text p {
  color: var(--text-body) !important;
}

/* --- Cards (Products, Testimonials, Features) --- */
.product-card {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.product-card:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}

.product-card .card-title a {
  color: var(--text-dark) !important;
}

.product-card .card-title a:hover {
  color: var(--gold) !important;
}

.product-card .price-tag {
  color: var(--gold) !important;
}

.testimonial-card {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(2, 30, 54, 0.08) !important;
  box-shadow: var(--shadow-card) !important;
}

.testimonial-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.15) !important;
}

.testimonial-quote {
  color: var(--text-body) !important;
}

.testimonial-name {
  color: var(--text-dark) !important;
}

.feature-card {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(2, 30, 54, 0.08) !important;
  box-shadow: var(--shadow-card) !important;
}

.feature-card:hover {
  border-color: var(--gold) !important;
}

.feature-card h5 {
  color: var(--text-dark) !important;
}

.feature-card p {
  color: var(--text-body) !important;
}

/* --- Navigation & Header --- */
.navbar-noor {
  background: rgba(250, 248, 245, 0.8) !important;
  border-bottom: 1px solid rgba(2, 30, 54, 0.08) !important;
}

.navbar-noor .nav-link {
  color: var(--text-muted) !important;
}

.navbar-noor .nav-link:hover,
.navbar-noor .nav-link.active {
  color: var(--primary) !important;
}

.navbar-noor .navbar-toggler {
  border-color: rgba(2, 30, 54, 0.15) !important;
}

.navbar-noor .brand-subtitle {
  color: var(--text-body) !important;
}

.top-bar-announcement {
  background-color: var(--primary) !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15) !important;
}

.top-bar-announcement .text-muted-cream {
  color: #B0AEA9 !important;
}

.top-bar-announcement a {
  color: var(--gold) !important;
}

/* --- Hero, CTA Banner, Footer (Kept Dark Navy) --- */
.hero {
  background: linear-gradient(145deg, rgba(2, 30, 54, 0.6) 0%, rgba(2, 30, 54, 0.9) 100%),
    url('/static/images/hero.png') center/cover no-repeat !important;
}

.hero::after {
  display: none !important;
}

.hero h1,
.hero h2,
.hero p,
.hero-title,
.hero-sub,
.hero-content * {
  color: var(--text-light-theme) !important;
}

.hero p {
  color: #B0AEA9 !important;
}

.cta-banner {
  background: var(--primary) !important;
  color: var(--text-light-theme) !important;
  border-top: 1px solid rgba(200, 163, 90, 0.15) !important;
  border-bottom: 1px solid rgba(200, 163, 90, 0.15) !important;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .section-title {
  color: var(--text-light-theme) !important;
}

.cta-banner p {
  color: #B0AEA9 !important;
}

.footer-noor {
  background-color: var(--primary) !important;
  color: var(--text-light-theme) !important;
  border-top: 1px solid rgba(200, 163, 90, 0.2) !important;
}

.footer-noor h5,
.footer-noor h6,
.footer-noor p,
.footer-noor .brand-mark,
.footer-noor .brand-mark * {
  color: var(--text-light-theme) !important;
}

.footer-noor .text-muted-cream {
  color: #B0AEA9 !important;
}

.footer-noor .footer-links a {
  color: #B0AEA9 !important;
}

.footer-noor .footer-links a:hover {
  color: var(--gold) !important;
}

/* --- Accordions --- */
.accordion-noor .accordion-item {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(200, 163, 90, 0.25) !important;
}

.accordion-noor .accordion-button {
  background-color: transparent !important;
  color: var(--text-dark) !important;
}

.accordion-noor .accordion-button:not(.collapsed) {
  color: var(--gold) !important;
  background-color: rgba(197, 160, 89, 0.05) !important;
}

.accordion-noor .accordion-body {
  background-color: var(--bg-card) !important;
  color: var(--text-body) !important;
}

/* --- Forms & Inputs --- */
.form-control,
.form-select {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(2, 30, 54, 0.15) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-card) !important;
  color: var(--text-dark) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25) !important;
}

/* --- Filter Pills --- */
.filter-pill {
  border: 1px solid rgba(2, 30, 54, 0.15) !important;
  color: var(--text-muted) !important;
  background-color: var(--bg-card) !important;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--primary) !important;
  color: var(--text-light-theme) !important;
  border-color: var(--primary) !important;
}

/* --- Chatbot Panel --- */
.chatbot-panel {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(2, 30, 54, 0.12) !important;
}

.chatbot-title {
  color: var(--text-dark) !important;
}

.chatbot-bubble.bot {
  background-color: rgba(2, 30, 54, 0.05) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(2, 30, 54, 0.08) !important;
}

.chatbot-input {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(2, 30, 54, 0.15) !important;
  color: var(--text-dark) !important;
}

.chatbot-input:focus {
  border-color: var(--gold) !important;
}

/* --- Page Hero Override --- */
.page-hero .hero-title,
.page-hero h1,
.page-hero h2,
.page-hero p,
.page-hero .lead {
  color: var(--text-dark) !important;
}

/* --- Product Detail Gallery --- */
.cursor-pointer {
  cursor: pointer;
}

.media-thumb {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 2px solid transparent !important;
  opacity: 0.6;
  border-radius: 8px;
}

.media-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.media-thumb.active {
  border-color: var(--gold) !important;
  opacity: 1;
  transform: scale(1.05);
}

.video-thumb-overlay {
  top: 0;
  left: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  transition: background-color 0.25s ease;
}

.thumbnail-wrapper:hover .video-thumb-overlay {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

.gallery-img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.gallery-img:hover {
  transform: scale(1.06);
}

/* --- Product Hero Section --- */
.product-hero-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-card);
}

.product-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .product-hero-img {
    max-height: 320px;
  }
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(18, 23, 27, 0.95) 0%, rgba(18, 23, 27, 0.6) 50%, rgba(18, 23, 27, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

.product-hero-section .container.position-absolute {
  z-index: 2;
}

.hero-content-box {
  z-index: 3;
  max-width: 680px;
  background: rgba(18, 23, 27, 0.75) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.25);
  pointer-events: auto;
}

.hero-title-main {
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.25;
  font-family: var(--font-secondary);
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .product-hero-section .container.position-absolute {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: auto !important;
    padding: 2rem 1rem !important;
  }

  .product-hero-section .hero-overlay-dark {
    display: none;
  }

  .hero-content-box {
    background: var(--bg-card) !important;
    border: none;
    padding: 0 !important;
  }

  .hero-title-main {
    font-size: 2rem;
    color: var(--text-dark) !important;
  }

  .eyebrow-brass {
    color: var(--gold) !important;
  }
}

/* --- Buying Guide / Rich Content Section --- */
.buying-guide-content h2,
.buying-guide-content h3 {
  color: var(--gold) !important;
  text-align: center;
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

#buyingGuideHeader::after {
  content: "";
  display: block;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Center circle icons over separator line */
#buyingGuideHeader::before {
  content: "⚬ ⚬ ⚬";
  color: var(--gold);
  font-size: 0.95rem;
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 4px;
}

.buying-guide-content p {
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.buying-guide-content strong {
  color: var(--gold) !important;
}

/* --- Product Card Image Carousel --- */
.product-card-carousel .product-card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #111; /* fallback dark background for unloaded slides */
}

.product-carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: pan-y; /* prevent vertical scrolling interference during horizontal swipes */
}

.product-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  z-index: 1;
}

.product-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Carousel Control Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
  font-size: 0.75rem;
}

.prev-arrow {
  left: 12px;
}

.next-arrow {
  right: 12px;
}

.carousel-arrow:hover {
  background: var(--gold);
  color: #0d0d0d;
}

/* Show arrows on hover (only on hover-capable desktop screens) */
@media (hover: hover) {
  .product-card-carousel:hover .carousel-arrow {
    opacity: 1;
    visibility: visible;
  }
}

/* Pagination Indicators */
.carousel-pagination {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

.pagination-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pagination-dot.active {
  width: 14px;
  border-radius: 3px;
  background: var(--gold);
}

/* Image Counter */
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-family: var(--font-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  pointer-events: none;
}

/* CTA "Explore Collection" Link */
.explore-link {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--gold) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.explore-link:hover {
  color: var(--text-dark) !important;
}

.transition-arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
}

.explore-link:hover .transition-arrow {
  transform: translateX(4px);
}

/* --- Product Detail Page Slideshow --- */
.product-detail-slideshow {
  background: transparent;
  position: relative;
}

.detail-slides-wrapper {
  background: var(--bg-main);
  border-radius: 4px;
}

.detail-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.detail-slide.active {
  opacity: 1;
  visibility: visible;
}

.detail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 0.9rem;
}

.prev-detail-arrow {
  left: 15px;
}

.next-detail-arrow {
  right: 15px;
}

.detail-arrow:hover {
  background: var(--gold);
  color: #0d0d0d;
}

.product-detail-slideshow:hover .detail-arrow {
  opacity: 1;
  visibility: visible;
}

/* Thumbnail controls */
.detail-thumbnail {
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.6;
}

.detail-thumbnail.active {
  border-color: var(--gold) !important;
  opacity: 1;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

.detail-thumbnail:hover {
  opacity: 1;
}

/* --- Full-Row Showroom Layout Styles --- */
.product-showroom-row {
  transition: all 0.3s ease;
}

.product-row-carousel {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-main);
  border-radius: 6px;
}

.row-slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.row-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 1;
}

.row-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Row Carousel Arrows */
.row-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 0.85rem;
}

.prev-row-arrow {
  left: 15px;
}

.next-row-arrow {
  right: 15px;
}

.row-carousel-arrow:hover {
  background: var(--gold);
  color: #0d0d0d;
}

.product-row-carousel:hover .row-carousel-arrow {
  opacity: 1;
  visibility: visible;
}

/* Image Counter for Rows */
.row-carousel-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  pointer-events: none;
}

/* Row Thumbnails Grid */
.row-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.row-thumbnail {
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.55;
  transition: all 0.3s ease;
}

.row-thumbnail.active {
  border-color: var(--gold) !important;
  opacity: 1;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

.row-thumbnail:hover {
  opacity: 1;
}

/* Premium WhatsApp Inquiry Button */
.whatsapp-row-btn {
  background-color: #0f3d30;
  border: 1px solid var(--gold);
  color: #ffffff !important;
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-row-btn:hover {
  background-color: #128c7e;
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

/* Spacing and borders for showroom row grid */
.product-showroom-row {
  scroll-margin-top: 100px; /* Smooth scroll offset for anchor tags */
}