:root {
  --primary: #c5a059;
  --primary-rgb: 197, 160, 89;
  --primary-hover: #b38f4d;
  --bg-dark: #ffffff;
  --bg-card: #fefefe;
  --text-primary: #111111;
  --text-secondary: #555555;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.05);
  --hero-overlay: rgba(255, 255, 255, 0.6);
  --hero-bg: url('hero_bg.jpg');
  --font-serif: "Playfair Display", serif;
  --font-sans: "Montserrat", sans-serif;
  --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --lightbox-bg: rgba(255, 255, 255, 0.98);
}

html[data-theme="dark"], :root[data-theme="dark"] {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --nav-bg: rgba(10, 10, 10, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --hero-overlay: rgba(0, 0, 0, 0.65);
  --lightbox-bg: rgba(10, 10, 10, 0.98);
}

/* Unified Branding Logic */
.logo-img {
    height: 80px; /* Refined for elegant boutique presence */
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

/* Responsive Logo Sizing */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

.navbar.scrolled .logo-img {
    height: 60px;
}

@media (max-width: 768px) {
    .navbar.scrolled .logo-img {
        height: 45px;
    }
}

/* Visibility classes removed for single-asset stability */
.logo-dark-only, .logo-light-only { display: block !important; }

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 300; }
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }

.golden-text {
  color: var(--primary) !important;
  font-weight: 300;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
}

.shine:hover::before {
  animation: shine-sweep 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shine-sweep {
  100% { left: 150%; }
}

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%;
  padding: 2rem 0; z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-premium);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    transition: var(--transition-premium);
    transform: translateX(-50%);
}

.navbar.scrolled::after {
    width: 100%;
}
.nav-container {
  max-width: 1800px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

.brand-logo { 
    display: flex; 
    align-items: center; 
    gap: 0; /* Logo includes spacing */
}
.brand-tagline { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.3em; color: var(--text-primary); margin-top: 0.2rem; display: none; /* Tagline integrated into logo image */ }
.nav-links { font-family: var(--font-sans); display: flex; gap: 2rem; align-items: center; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-primary); font-weight: 500; white-space: nowrap; }
.nav-links a:not(.cta-btn) { position: relative; }
.nav-links a:not(.cta-btn)::after {
  content: ''; position: absolute; width: 0; height: 1px; bottom: 1px; left: 0;
  background-color: var(--primary); transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.cta-btn):hover { color: var(--primary); text-shadow: none; }
.nav-links a:not(.cta-btn):hover::after { width: 100%; }
.cta-btn { 
    border: 1px solid var(--primary); 
    padding: 0.8rem 1.8rem; /* Increased for luxury feel */
    color: var(--primary); 
    border-radius: 0; 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}
.cta-btn:hover { background: var(--primary); color: #fff; transform: none; box-shadow: none; }

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin-left: 1.5rem;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

/* Hero */
.hero {
  height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--bg-dark);
  border-bottom: 1px solid #2a2a2a;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    animation: ken-burns 20s ease infinite alternate;
    z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
  transition: background 0.5s ease;
}
.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 900px; animation: fadeIn 2s cubic-bezier(0.16, 1, 0.3, 1); margin-top: 5rem; }
.hero-title { font-size: 5rem; margin-bottom: 1.5rem; text-transform: uppercase; line-height: 1.1; color: #ffffff; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.3rem; color: #ffffff; margin-bottom: 3rem; font-weight: 300; max-width: 700px; margin-left: auto; margin-right: auto; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.btn-primary { background: transparent; color: var(--primary); border: 1px solid var(--primary); padding: 1.2rem 3rem; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.9rem; font-weight: 400; display: inline-block; border-radius: 0; transition: var(--transition-smooth); }
.btn-primary:hover { background: var(--primary); color: #fff; transform: none; box-shadow: none; }

/* Sections */
.section { padding: 8rem 2rem; }
.container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.2rem; font-style: italic; font-family: var(--font-serif); letter-spacing: 0.05em; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem;
}
.gallery-card {
  background: var(--bg-card); border-radius: 0; overflow: hidden; transition: var(--transition-smooth); border: none;
  cursor: pointer; display: flex; flex-direction: column;
}
.gallery-card:hover { border: none; transform: none; box-shadow: none; }
.card-image-wrapper {
  height: 400px; width: 100%; background: var(--bg-card); overflow: hidden; position: relative;
}
.card-image-wrapper img {
  width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease;
}
.gallery-card:hover .card-image-wrapper img { transform: none; opacity: 0.85; }
.placeholder-img { width: 100%; height: 100%; opacity: 0.5; }

.card-content { padding: 2.5rem; flex: 1; display: flex; flex-direction: column; text-align: center; }
.card-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #111; font-weight: 400; text-transform: uppercase; letter-spacing: 0.15em; }
.card-content p { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; }

.individual-piece {
  border: none;
  background: transparent;
}
.individual-piece .card-image-wrapper {
  height: 450px;
}
.individual-piece .card-content {
  padding: 1.5rem 0;
  text-align: left;
}

/* Origin Section */
.origin-section { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.origin-section .section-header { margin-bottom: 3rem; }

/* Rare Gems Display */
#raregems { padding: 10rem 2rem; }

/* Brand Section */
.brand-container {
  display: flex; gap: 4rem; align-items: center; justify-content: center;
}
.brand-image-col {
  flex: 1; text-align: right;
}
.founder-img {
  width: 100%; max-width: 450px; border-radius: 0; box-shadow: none; border: none; transition: var(--transition-smooth);
}
.founder-img:hover {
  transform: none; box-shadow: none; opacity: 0.9;
}
.brand-text-col {
  flex: 1.2;
}
.founder-name {
  font-family: var(--font-serif); font-size: 2.8rem; margin-bottom: 0.5rem; font-weight: 400; color: var(--text-primary); transition: color 0.5s ease;
}
.company-name {
  font-family: var(--font-sans); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--primary); margin-bottom: 2rem;
}
.brand-desc {
  font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); font-weight: 300; max-width: 550px;
}

/* Footer */
.footer { background: #fafafa; padding: 5rem 2rem; border-top: 1px solid rgba(0,0,0,0.05); text-align: center; transition: background-color 0.5s ease, border-color 0.5s ease; }
.footer-brand h2 { font-size: 2.5rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; }

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .section-header h2 { font-size: 2.2rem; }
  .brand-container { flex-direction: column; text-align: center; gap: 2.5rem; }
  .brand-image-col { text-align: center; }
  .brand-desc { margin: 0 auto; }
}

/* Multilingual Adjustments */
.lang-selector {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.lang-selector option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Day/Night Theme Button Styles */
.theme-toggle {
    display: flex !important;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Avoid squishing in tight navbars */
    cursor: pointer;
    margin-left: 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* RTL Layout for Arabic */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-subtitle {
  margin-right: auto;
  margin-left: auto;
}

html[dir="rtl"] .card-content, html[dir="rtl"] .brand-text-col, html[dir="rtl"] .modal-content {
  text-align: right;
}
html[dir="rtl"] .brand-image-col { text-align: left; }

/* Modal Styling */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 9999; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: var(--transition-smooth);
}
.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.modal-content {
  background: #222; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 4px;
  padding: 3.5rem 3rem; max-width: 650px; width: 90%; max-height: 85vh; overflow-y: auto;
  position: relative; transform: translateY(30px); transition: var(--transition-smooth);
  box-shadow: 0 25px 60px rgba(0,0,0,0.9); text-align: left;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; transition: var(--transition-snappy);
}
.modal-close:hover { color: #fff; transform: scale(1.1); }

.modal-info-intro {
  font-size: 1.15rem; color: #d4af37; margin-bottom: 2.5rem; font-family: var(--font-serif); font-style: normal;
  border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1.5rem; line-height: 1.6; letter-spacing: 0.03em;
}

.modal-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}

.modal-info-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 2rem;
  border-radius: 4px; transition: var(--transition-snappy); display: flex; flex-direction: column;
}
.modal-info-card:hover {
  background: rgba(212, 175, 55, 0.05); border-color: rgba(212, 175, 55, 0.3); transform: translateY(-5px);
}

.product-name {
  font-family: var(--font-serif); font-size: 1.4rem; color: #fff; letter-spacing: 0.03em; margin-bottom: 0.6rem; font-weight: 400; line-height: 1.3;
}
.product-desc {
  font-family: var(--font-sans); color: #b3b3b3; font-size: 1.05rem; margin-bottom: 1.8rem; line-height: 1.7; font-weight: 300; letter-spacing: 0.02em;
}
.product-tag {
  background: rgba(212, 175, 55, 0.1); color: var(--primary); display: inline-block;
  padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.2); margin-top: auto; align-self: flex-start; margin-bottom: 1.5rem;
}
.product-photos {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; width: 100%;
  scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.product-photos::-webkit-scrollbar { height: 6px; }
.product-photos::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.4); border-radius: 3px; }
.product-photos img {
  height: 200px; width: auto; border-radius: 4px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-smooth); cursor: pointer; flex-shrink: 0;
}
.product-photos img:hover {
  transform: scale(1.03); border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 10px;
}
.hamburger span {
  display: block; width: 25px; height: 2px; background: var(--text-primary); transition: var(--transition-smooth); border-radius: 0;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text-primary); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text-primary); }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links {
    display: flex;
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh;
    background: #ffffff; flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); padding: 2rem; gap: 2rem; z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .hero-title { font-size: 3.5rem; }
  
  html[dir="rtl"] .nav-links { right: auto; left: -100%; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
  html[dir="rtl"] .nav-links.active { left: 0; }
}

@media (max-width: 768px) {
  .modal-content { padding: 2.5rem 1.5rem; }
  .hero-title { font-size: 2.8rem; }
  .section { padding: 5rem 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

html[dir="rtl"] .modal-content { text-align: right; }
html[dir="rtl"] .modal-close { right: auto; left: 1.5rem; }

/* Collection Page Layout */
.collection-main { padding-top: 80px; min-height: 100vh; background: var(--bg-dark); }
.collection-header { text-align: center; padding: 6rem 2rem 4rem; background: var(--bg-dark); border-bottom: none; transition: var(--transition-smooth); }
.collection-header h1 { font-size: 3.5rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; color: var(--text-primary); text-transform: uppercase; font-family: var(--font-sans); font-weight: 300; }
.collection-header p { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto; font-family: var(--font-sans); }
.products-list { display: flex; flex-direction: column; gap: 7rem; padding: 6rem 2rem; max-width: 1300px; margin: 0 auto; }
.product-full-section { display: grid; grid-template-columns: 350px 1fr; gap: 5rem; align-items: flex-start; border-bottom: 1px solid #eee; padding-bottom: 7rem; }
.product-full-section:last-child { border-bottom: none; padding-bottom: 0; }
.product-info-side { position: sticky; top: 120px; text-align: left; }
.product-info-side h2 { font-family: var(--font-sans); font-size: 2.8rem; margin-bottom: 0.8rem; color: var(--text-primary); transition: color 0.5s ease; font-weight: 300; text-transform: uppercase; }
.product-info-side .mat { color: var(--text-secondary); border: 1px solid #ddd; background: transparent; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 2rem; display: inline-block; padding: 0.4rem 1rem; border-radius: 0; }
.product-info-side p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2.5rem; font-size: 1.05rem; }
.product-price { font-family: var(--font-sans); font-size: 1.4rem; color: var(--text-primary); font-weight: 300; margin-bottom: 2.5rem; letter-spacing: 0.05em; font-style: italic; }
.btn-inquire { display: inline-block; background: transparent; color: var(--primary); border: 1px solid var(--primary); padding: 1rem 2.5rem; text-transform: uppercase; font-weight: 400; letter-spacing: 0.1em; font-size: 0.85rem; transition: var(--transition-smooth); cursor: pointer; border-radius: 0; }
.btn-inquire:hover { background: var(--primary); color: #fff; transform: none; box-shadow: none; }
.product-images-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-images-side img { 
    width: 100%; 
    border-radius: 0; 
    object-fit: cover; 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    border: none; 
    box-shadow: none; 
    cursor: pointer;
}
.product-images-side img:hover { 
    transform: scale(1.02); 
    opacity: 0.9; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* Lightbox Base */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
    transform: scale(1);
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close span {
    position: absolute;
    width: 30px;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.lightbox-close span:nth-child(1) { transform: rotate(45deg); }
.lightbox-close span:nth-child(2) { transform: rotate(-45deg); }

.lightbox-close:hover span {
    background: var(--primary);
    width: 35px;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.lightbox-prev::before, .lightbox-next::before {
    content: '';
    width: 20px;
    height: 20px;
    border-left: 1px solid var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.lightbox-prev::before { transform: rotate(45deg); margin-left: 10px; }
.lightbox-next::before { transform: rotate(-135deg); margin-right: 10px; }

.lightbox-prev:hover::before, .lightbox-next:hover::before {
    border-color: var(--primary);
}

.lightbox-prev:hover { transform: translateY(-50%) translateX(-5px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(5px); }

.lightbox-prev { left: 3rem; }
.lightbox-next { right: 3rem; }

@media (max-width: 768px) {
    .lightbox img { max-width: 95%; }
    .lightbox-prev, .lightbox-next { padding: 1.5rem 1rem; }
}
@media (max-width: 900px) { .product-full-section { grid-template-columns: 1fr; gap: 3rem; } .product-info-side { position: relative; top: 0; text-align: left; } .product-images-side { grid-template-columns: 1fr; } }
html[dir="rtl"] .product-info-side { text-align: right; }

/* Overview Slideshow */
.overview-main {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Firefox */
}
.overview-main::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.slide {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.slide-content {
  height: 100%;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
  gap: 2vw;
}

.slide-info-side {
  flex: 0 0 40%;
  padding: 2rem;
  z-index: 10;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05); /* Very subtle layer */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.slide-series {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.slide-title {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 300;
  color: #111;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  word-wrap: break-word;
  max-width: 100%;
}

.slide-mat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  border: 1px solid #eee;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.slide.active .slide-series,
.slide.active .slide-title,
.slide.active .slide-mat {
  opacity: 1;
  transform: translateY(0);
}

.slide-image-side {
  flex: 0 0 55%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.08));
}

@media (max-width: 1024px) {
  .slide-content {
    flex-direction: column; /* Normal column: image top, text bottom */
    justify-content: flex-start;
    padding: 120px 1.5rem 60px;
    gap: 2rem;
    overflow-y: auto;
  }
  .slide-image-side {
    flex: 0 0 50vh;
    width: 100%;
  }
  .slide-info-side {
    flex: none;
    width: 100%;
    text-align: center;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }
  .slide-mat {
    align-self: center;
  }
  .slide-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
}

/* Slide Navigation Dots */
.slide-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #111;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slide-dot.active {
  background: #111;
  transform: scale(1.5);
}

/* Brand Story & Craftsmanship */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem;
}
.story-card {
  background: #fff; border: 1px solid #eee; transition: var(--transition-smooth);
}
.story-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.story-image img { width: 100%; height: 400px; object-fit: cover; }
.story-content { padding: 2.5rem; text-align: left; }
.story-content h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; color: #111; }
.story-content p { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }

.craft-layout {
  display: flex; gap: 4rem; align-items: center; padding: 4rem 0;
}
.craft-video-col { flex: 1.2; }
.brand-video { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.craft-text-col { flex: 1; }
.craft-text-col h2 { font-size: 2.8rem; margin-bottom: 1.5rem; }
.craft-text-col p { font-size: 1.15rem; line-height: 1.8; color: #ccc; margin-bottom: 3rem; }
.craft-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.craft-steps-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; filter: grayscale(0.5); transition: 0.4s; }
.craft-steps-grid img:hover { filter: grayscale(0); transform: scale(1.05); }


@media (max-width: 1024px) {
  .story-grid, .craft-layout { grid-template-columns: 1fr; flex-direction: column; gap: 3rem; }
  .story-image img { height: 300px; }
  .craft-text-col h2 { font-size: 2.2rem; }
}

/* AI Advisor trigger is now fully handled in ai_advisor.css */

#ai-advisor-trigger:hover {
    transform: scale(1.1);
}

#ai-advisor-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 550px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 999;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ai-header {
    background: #1a1a1a;
    color: #fff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

#ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message.user {
    align-self: flex-end;
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom-right-radius: 2px;
    border: 1px solid var(--border-color);
}

.message.ai {
    align-self: flex-start;
    background: linear-gradient(135deg, #1a1a1a, #111) !important;
    color: #fff !important;
    border: 1px solid rgba(197,160,89,0.3);
    border-bottom-left-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ai-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    background: var(--bg-dark);
    align-items: center;
}

#ai-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 0.85rem;
    outline: none;
    transition: 0.3s;
}

#ai-input:focus {
    border-color: #c5a059;
}

#ai-send {
    background: #c5a059;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#ai-send:hover {
    background: #b38f4d;
    transform: rotate(15deg);
}

#ai-close {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

#ai-close:hover {
    opacity: 1;
}

.ai-thinking {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    align-self: flex-start;
}

.ai-visual-card img {
    max-width: 100%;
}

/* Luxury Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.search-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.search-input-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
}

.search-container.active .search-input-wrapper {
    width: 250px;
    opacity: 1;
    margin-left: 0.5rem;
}

.search-input {
    background: rgba(var(--bg-dark-rgb, 255, 255, 255), 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

[data-theme="dark"] .search-input {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .search-container {
        margin-right: 0;
        margin-bottom: 30px;
        order: -1; /* Place at top in mobile menu */
    }
    .search-input-wrapper {
        width: 100%;
        opacity: 1;
    }
    .search-container.active .search-input-wrapper {
        width: 100%;
    }
    .search-toggle { display: none; } /* Show search bar always in mobile for better UX */
}

@media (max-width: 900px) { .product-full-section { grid-template-columns: 1fr; gap: 3rem; } .product-info-side { position: relative; top: 0; text-align: left; } .product-images-side { grid-template-columns: 1fr; } }
/* Custom Premium Cursor */
.custom-cursor, .custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, transform 0.1s linear;
}

.custom-cursor {
    width: 8px; height: 8px;
    background: var(--primary);
    margin-left: -4px; margin-top: -4px;
}

.custom-cursor-follower {
    width: 40px; height: 40px;
    border: 1px solid var(--primary);
    opacity: 0.3;
    margin-left: -20px; margin-top: -20px;
}

.custom-cursor-follower.active {
    width: 80px; height: 80px;
    margin-left: -40px; margin-top: -40px;
    background: rgba(var(--primary-rgb), 0.1);
    border-color: transparent;
    opacity: 0.8;
}

.custom-cursor.active {
    transform: scale(1.5);
}

.custom-cursor-follower.clicking {
    transform: scale(0.85);
    background: rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-follower { display: none !important; }
}

body, a, button, input {
    cursor: none !important;
}

/* Rare Gems Section */
.raregems-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.raregems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.raregem-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.raregem-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.raregem-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.raregem-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition-premium);
}

.raregem-origin {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.raregem-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.raregem-spec {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.raregem-card:hover .raregem-image-wrapper img {
    transform: scale(1.1);
}

.raregem-card:hover .raregem-overlay {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .raregems-grid { grid-template-columns: 1fr; }
    .raregem-card { height: 450px; }
}

/* Final Verification & Utility Polish */
.will-reveal { opacity: 0; }
.active.will-reveal { opacity: 1; transition: opacity 1s ease; }

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Staggered Gallery Reveal */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.gallery-grid > .reveal {
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid > .reveal:nth-child(1) { transition-delay: 0.1s; }
.gallery-grid > .reveal:nth-child(2) { transition-delay: 0.2s; }
.gallery-grid > .reveal:nth-child(3) { transition-delay: 0.3s; }
.gallery-grid > .reveal:nth-child(4) { transition-delay: 0.4s; }
.gallery-grid > .reveal:nth-child(5) { transition-delay: 0.5s; }
.gallery-grid > .reveal:nth-child(6) { transition-delay: 0.6s; }
