@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ==========================================================================
   Luxury Foundations & Brand Themes
   ========================================================================== */
:root {
  --primary-gold: #B76E79; /* soft rose gold */
  --primary-gold-rgb: 183, 110, 121;
  --bg-color: #FAF5F7; /* light creamy pink-blush */
  --surface-color: #FFFFFF; /* crisp white surface */
  --surface-color-secondary: #FFD6E7; /* light pink */
  --color-pastel-pink: #FFC0CB; /* pastel pink */
  --color-lavender: #EDE8F5; /* lavender accent */
  --color-cream: #FFFDF5; /* cream accent */
  --text-main: #2D1A20; /* deep rich berry-brown for superb contrast */
  --text-muted: #80616B; /* stylish dark pinkish-grey */
  --border-color: rgba(183, 110, 121, 0.25);
  --border-color-muted: #FFD6E7;
  --shadow-lux: 0 10px 30px rgba(255, 192, 203, 0.25); /* beautiful soft pink shadow */
  --shadow-lux-strong: 0 20px 50px rgba(183, 110, 121, 0.15);
  --glass-bg: rgba(255, 245, 247, 0.82);
  --glass-bg-accent: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 192, 203, 0.3);
  --glass-blur: 15px;
  --transition-lux: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.24s ease;
  
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
  --font-arabic: "Cairo", sans-serif;
  --font-arabic-serif: "Amiri", serif;
}

/* ==========================================================================
   Dark Luxury Theme Variables (Sophisticated Dark Berry / Lavender-Rose theme)
   ========================================================================== */
[data-theme="dark"] {
  --bg-color: #1F1015; /* dark rich plum-berry */
  --surface-color: #2D1A21; /* deep dark rose-surface */
  --surface-color-secondary: #3D222C;
  --text-main: #FFF0F4; /* high contrast light cream pink */
  --text-muted: #D1ADB9; /* soft readable mauve */
  --border-color: rgba(255, 192, 203, 0.28);
  --border-color-muted: #3D222C;
  --shadow-lux: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-lux-strong: 0 20px 60px rgba(0, 0, 0, 0.7);
  --glass-bg: rgba(45, 26, 33, 0.82);
  --glass-bg-accent: rgba(61, 34, 44, 0.95);
  --glass-border: rgba(255, 192, 203, 0.2);
}

/* ==========================================================================
   Masculine Elite Theme Overrides (Dark Blue / Royal Blue / Silver / Slate)
   ========================================================================== */
html[data-gender="male"], body[data-gender="male"], [data-gender="male"] {
  --primary-gold: #1E40AF; /* Royal Blue */
  --primary-gold-rgb: 30, 64, 175;
  --bg-color: #F8FAFC; /* Slate-white background */
  --surface-color: #FFFFFF;
  --surface-color-secondary: #E2E8F0; /* Slate silver */
  --color-pastel-pink: #CBD5E1; /* solid silver slate */
  --color-lavender: #E2E8F0;
  --color-cream: #F1F5F9;
  --text-main: #0F172A; /* Dark Blue / Ink */
  --text-muted: #475569; /* Slate grey */
  --border-color: rgba(30, 64, 175, 0.2);
  --border-color-muted: #E2E8F0;
  --shadow-lux: 0 10px 30px rgba(30, 64, 175, 0.08);
  --shadow-lux-strong: 0 20px 50px rgba(15, 23, 42, 0.12);
  --glass-bg: rgba(248, 250, 252, 0.85);
  --glass-bg-accent: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(30, 64, 175, 0.15);
}

html[data-gender="male"][data-theme="dark"], body[data-gender="male"][data-theme="dark"], [data-gender="male"][data-theme="dark"] {
  --bg-color: #030712; /* Deep midnight dark blue/black */
  --surface-color: #0B132B; /* Dark navy */
  --surface-color-secondary: #1C2541; /* Royal slate */
  --primary-gold: #38BDF8; /* Radiant steel blue / ice silver */
  --primary-gold-rgb: 56, 189, 248;
  --text-main: #F8FAFC; /* High contrast silver-white */
  --text-muted: #94A3B8; /* soft cool grey */
  --border-color: rgba(56, 189, 248, 0.25);
  --border-color-muted: #1E293B;
  --shadow-lux: 0 10px 40px rgba(0, 0, 0, 0.65);
  --shadow-lux-strong: 0 20px 60px rgba(0, 0, 0, 0.85);
  --glass-bg: rgba(11, 19, 43, 0.85);
  --glass-bg-accent: rgba(28, 37, 65, 0.95);
  --glass-border: rgba(56, 189, 248, 0.2);
}

/* Base Body Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Right to Left (RTL) Arabic Overrides */
[dir="rtl"] body {
  font-family: var(--font-arabic);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .font-serif {
  font-family: var(--font-arabic-serif);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 12px;
}

/* ==========================================================================
   Luxury Skeleton / Skeleton Loader Frame
   ========================================================================== */
#luxury-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0A0A0A;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  /* Auto-hide after 3s even if JS fails to run */
  animation: preloader-auto-hide 0.8s ease forwards 3s;
}

@keyframes preloader-auto-hide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.preloader-logo {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: preloader-fade 2s infinite ease-in-out;
}

.preloader-bar-bg {
  width: 120px;
  height: 1px;
  background-color: rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 40%;
  height: 100%;
  background-color: var(--primary-gold);
  position: absolute;
  left: 0;
  animation: preloader-fill-move 1.6s infinite ease-in-out;
}

@keyframes preloader-fade {
  0%, 100% { opacity: 0.3; transform: translateY(10px); }
  50% { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-fill-move {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* Hide when loaded */
.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   Announce & Welcome Banner
   ========================================================================== */
.welcome-banner {
  background-color: #111111;
  color: var(--primary-gold);
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1005;
  position: relative;
}

/* Demo banner warning if local state sandbox is operating */
.sandbox-banner {
  background-color: #D4AF37;
  color: #111111;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   Luxury Header Menu Bar
   ========================================================================== */
.lux-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-lux);
}

.header-scrolled {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  box-shadow: var(--shadow-lux-strong);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2.5rem;
  transition: var(--transition-lux);
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

/*.brand-logo::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  margin-left: 6px;
}*/

.lux-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.85;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-gold);
  transition: var(--transition-lux);
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary-gold);
}

.nav-link:hover::after, .nav-link-active::after {
  width: 100%;
}

.nav-link-active {
  color: var(--primary-gold) !important;
  opacity: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tool-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: var(--transition-lux);
}

.tool-btn:hover {
  border-color: var(--border-color);
  color: var(--primary-gold);
  background-color: rgba(212, 175, 55, 0.05);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--primary-gold);
  color: #111111;
  font-size: 0.65rem;
  font-weight: 750;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface-color);
}

/* Language and Dark Theme togglers styles */
.config-selector {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-lux);
}

.config-selector:hover {
  background-color: var(--primary-gold);
  color: #111111;
  border-color: var(--primary-gold);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Luxury Grid & Containers
   ========================================================================== */
.container-lux {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background-color: var(--primary-gold);
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ==========================================================================
   Hero Page Slider Section (Apple style elegance)
   ========================================================================== */
.lux-hero {
  position: relative;
  height: 80vh;
  min-height: 580px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at right, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  gap: 2rem;
}

.hero-body {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal-hero-body 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  padding: 0.4rem 1rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 2rem;
  background-color: rgba(212, 175, 55, 0.04);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--primary-gold);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid var(--primary-gold);
  box-shadow: 0 5px 20px rgba(183, 110, 121, 0.3);
  transition: var(--transition-lux);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-gold);
  box-shadow: 0 8px 25px rgba(183, 110, 121, 0.15);
  transform: translateY(-3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: transparent;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-lux);
}

.btn-secondary:hover {
  background-color: var(--surface-color-secondary);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

.hero-display {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  animation: reveal-hero-img 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-showcase-frame {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, var(--surface-color-secondary) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase-frame::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.15);
  animation: spin 60s infinite linear;
}

.hero-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface-color);
  box-shadow: var(--shadow-lux-strong);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
  animation: float 6s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes reveal-hero-body {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-hero-img {
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Category Showcase Circular Layout
   ========================================================================== */
.category-lux-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.cat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  group: true;
}

.cat-circle-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid var(--border-color-muted);
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition-lux);
}

.cat-circle-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: #EEE;
}

.cat-circle-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-lux);
}

.cat-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-main);
  margin-top: 0.5rem;
  transition: var(--transition-fast);
}

.cat-circle-card:hover .cat-circle-img-wrap {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
}

.cat-circle-card:hover img {
  transform: scale(1.15);
}

.cat-circle-card:hover .cat-title {
  color: var(--primary-gold);
}

/* ==========================================================================
   Premium Fine Product Cards
   ========================================================================== */
.product-grid-lux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.lux-prod-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color-muted);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-lux);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lux);
}

.lux-prod-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-lux-strong);
}

/* Grayscale overlay for out of stock products */
.lux-prod-card.out-of-stock-card {
  filter: grayscale(0.2) opacity(0.85);
  border-color: var(--border-color-muted);
}

.card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--surface-color-secondary);
  color: var(--text-main);
  border: 1px solid var(--primary-gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  text-transform: uppercase;
  border-radius: 20px;
  z-index: 10;
}

[dir="rtl"] .card-tag {
  left: auto;
  right: 15px;
}

.card-save-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--glass-bg-accent);
  border: 1px solid var(--border-color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(183, 110, 121, 0.1);
}

[dir="rtl"] .card-save-btn {
  right: auto;
  left: 15px;
}

.card-save-btn:hover {
  background-color: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
  transform: scale(1.1);
}

.card-save-saved {
  color: #E25C5C !important;
  border-color: #E25C5C !important;
  background-color: #FFF0F2 !important;
}

.card-img-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-color: var(--surface-color-secondary);
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-lux);
}

.lux-prod-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

/* Out of Stock beautiful ribbon badge */
.badge-out-of-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(220, 53, 69, 0.9);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.2rem;
  text-transform: uppercase;
  border-radius: 50px;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.card-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--primary-gold);
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.card-add-cart-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--primary-gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  margin-top: auto;
}

.card-add-cart-btn:hover {
  background-color: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 12px rgba(183, 110, 121, 0.25);
  transform: translateY(-2px);
}

/* Card add cart disabled / out of stock */
.card-add-cart-btn:disabled, .card-add-cart-btn.btn-disabled {
  background-color: var(--surface-color-secondary) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-theme="dark"] .card-add-cart-btn:hover {
  background-color: var(--primary-gold);
  color: #FFFFFF;
  border-color: var(--primary-gold);
}

/* ==========================================================================
   Interactive Details Pages (Product details panel, Reviews list)
   ========================================================================== */
.lux-prod-panel {
  display: flex;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: flex-start;
}

.prod-gallery-side {
  flex: 1.2;
}

.gallery-main-frame {
  width: 100%;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--surface-color-secondary);
  border: 1px solid var(--border-color-muted);
  position: relative;
  cursor: zoom-in;
}

.gallery-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}

.prod-details-side {
  flex: 1;
}

.details-headline {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.details-price {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.details-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.details-meta-list {
  border-top: 1px solid var(--border-color-muted);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.85rem;
}

.meta-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Collapsible accordion reviews components */
.review-widget {
  background-color: var(--surface-color-secondary);
  border-radius: 4px;
  padding: 2.5rem;
  margin-top: 4rem;
  border: 1px solid var(--border-color-muted);
}

.review-list-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.review-item {
  border-bottom: 1px solid var(--border-color-muted);
  padding-bottom: 1.5rem;
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-user-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.review-user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-stars {
  color: var(--primary-gold);
  font-size: 0.8rem;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Review submission form */
.review-form {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.form-group-lux {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-group-lux label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.form-input-lux {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-color-muted);
  background-color: var(--surface-color);
  color: var(--text-main);
  font-size: 0.88rem;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-input-lux:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   Luxury Table/Rows of Shopping Coffret Cart
   ========================================================================== */
.cart-flex {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.cart-items-panel {
  flex: 1.8;
}

.cart-item-row {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color-muted);
}

.cart-img-box {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--surface-color-secondary);
  margin-right: 1.5rem;
}

[dir="rtl"] .cart-img-box {
  margin-right: 0;
  margin-left: 1.5rem;
}

.cart-meta {
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.cart-item-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  margin-bottom: 0.3rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color-muted);
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--surface-color);
  width: 100px;
  justify-content: space-between;
}

.cart-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background-color: var(--surface-color-secondary);
}

.cart-qty-num {
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-sub {
  margin-left: 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}

[dir="rtl"] .cart-sub {
  margin-left: 0;
  margin-right: 2.5rem;
}

.cart-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  margin-left: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

[dir="rtl"] .cart-del-btn {
  margin-left: 0;
  margin-right: 1.5rem;
}

.cart-del-btn:hover {
  color: #CC4444;
}

/* Cart summary panels */
.cart-summary-panel {
  flex: 1;
  background-color: var(--surface-color-secondary);
  border-radius: 4px;
  padding: 2.5rem;
  border: 1px solid var(--border-color-muted);
  position: sticky;
  top: 120px;
}

.cart-summary-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color-muted);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.summary-total {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color-muted);
}

/* ==========================================================================
   Atmosphere Landing Pages (Why Choose Us & Customer Highlights)
   ========================================================================== */
.lux-reasons-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.lux-reason-card {
  border: 1px dashed rgba(212, 175, 55, 0.25);
  padding: 3rem 2rem;
  border-radius: 4px;
  text-align: center;
  transition: var(--transition-lux);
}

.lux-reason-card:hover {
  border-style: solid;
  border-color: var(--primary-gold);
  background-color: var(--surface-color-secondary);
  transform: translateY(-5px);
}

.lux-reason-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-gold);
  display: inline-block;
}

.lux-reason-h {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.lux-reason-p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ==========================================================================
   Private VIP Newsletter Register Form
   ========================================================================== */
.newsletter-lux-bg {
  background-color: #111111;
  color: #FFFFFF;
  padding: 6rem 3rem;
  border-radius: 4px;
  margin: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-gold);
  box-shadow: var(--shadow-lux-strong);
}

.newsletter-lux-bg::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.15);
}

.newsletter-input-inner {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

/* ==========================================================================
   Luxury Page Footer Block
   ========================================================================== */
.lux-footer {
  background-color: #111111;
  color: #FFFFFF;
  padding: 5rem 2rem 2.5rem 2rem;
  border-top: 1px solid var(--primary-gold);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 4rem;
  margin-bottom: 2.5rem;
}

.footer-bio h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-bio p {
  color: #999999;
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-column h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}

.footer-ul {
  list-style: none;
}

.footer-ul li {
  margin-bottom: 0.9rem;
}

.footer-ul li a {
  color: #999999;
  font-size: 0.85rem;
}

.footer-ul li a:hover {
  color: var(--primary-gold);
  padding-left: 4px;
}

[dir="rtl"] .footer-ul li a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-rights-stripe {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #777777;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Luxury Admin Dashboard Styles
   ========================================================================== */
.admin-harmony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.admin-chord-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lux);
}

.admin-chord-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
}

.admin-chord-card .chord-stat {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.dashboard-sections-flex {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.form-chord-section {
  flex: 1;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color-muted);
  border-radius: 4px;
  padding: 2.5rem;
}

.admin-list-section {
  flex: 1.8;
}

.lux-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.lux-table th {
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  padding: 1rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
}

[dir="rtl"] .lux-table th {
  text-align: right;
}

.lux-table td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid var(--border-color-muted);
  font-size: 0.82rem;
}

.lux-table tr:hover {
  background-color: rgba(212, 175, 55, 0.03);
}

.badge-status {
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
}

.status-pending { background-color: rgba(235, 140, 20, 0.15); color: #EB8C14; }
.status-shipped { background-color: rgba(30, 140, 240, 0.15); color: #1E8CF0; }
.status-delivered { background-color: rgba(40, 180, 100, 0.15); color: #28B464; }

.btn-mini {
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--border-color-muted);
  background: none;
  cursor: pointer;
  border-radius: 2px;
  margin-right: 0.4rem;
}

.btn-mini-danger { color: #D9534F; border-color: rgba(217, 83, 79, 0.3); }
.btn-mini-danger:hover { background-color: #D9534F; color: #FFF; }
.btn-mini-edit { color: var(--primary-gold); border-color: var(--border-color); }
.btn-mini-edit:hover { background-color: var(--primary-gold); color: #111; }

/* ==========================================================================
   Toast Action Notifications Popups
   ========================================================================== */
#toast-lux-box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[dir="rtl"] #toast-lux-box {
  right: auto;
  left: 30px;
}

.toast-lux-element {
  background-color: var(--surface-color);
  border-left: 4px solid var(--primary-gold);
  box-shadow: var(--shadow-lux-strong);
  padding: 1.2rem 2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(20px);
  opacity: 0;
  animation: toast-lux-reveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 320px;
}

[dir="rtl"] .toast-lux-element {
  border-left: none;
  border-right: 4px solid var(--primary-gold);
}

@keyframes toast-lux-reveal {
  to { transform: translateY(0); opacity: 1; }
}

.toast-lux-body {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Mobile Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-body {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-showcase-frame {
    width: 360px;
    height: 360px;
  }
  .hero-img {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }
  .lux-nav {
    display: none; /* Collapsible burger or dynamic overlay in modern frameworks */
  }
  
  /* Simple sliding drawer for mobile navigation */
  .lux-nav.mobile-active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    gap: 1.5rem;
  }
  
  .menu-toggle {
    display: block;
  }
  .lux-prod-panel, .cart-flex, .dashboard-sections-flex {
    flex-direction: column;
    gap: 2.5rem;
  }
  .prod-gallery-side, .prod-details-side, .cart-items-panel, .cart-summary-panel, .form-chord-section, .admin-list-section {
    width: 100% !important;
  }
  .gallery-main-frame {
    height: 340px;
  }
  .details-headline {
    font-size: 2rem;
  }
  .newsletter-lux-bg {
    padding: 4rem 1.5rem;
  }
  .newsletter-input-inner {
    flex-direction: column;
    width: 100%;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ==========================================================================
   Mobile Responsiveness Fixes
   Targets: 320px, 375px, 390px, 414px, tablets
   ========================================================================== */

/* Prevent horizontal overflow globally */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  min-width: 0;
  word-break: break-word;
}

/* Base container fix */
.container-lux {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ==========================================================================
   Tablet (max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .container-lux {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* ==========================================================================
   Mobile (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    padding: 0.85rem 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand-logo {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    flex-shrink: 0;
  }

  .header-tools {
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  /* Hide language selector on very small screens */
  .header-tools .config-selector:first-child {
    display: none;
  }

  .tool-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  #nav-auth-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  /* Nav */
  .lux-nav {
    display: none;
  }

  .lux-nav.mobile-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    z-index: 9000;
    gap: 1.2rem;
    overflow-y: auto;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    z-index: 9100;
    position: relative;
  }

  /* Container */
  .container-lux {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2.5rem 1rem;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-showcase-frame {
    width: 260px !important;
    height: 260px !important;
  }

  .hero-img {
    width: 180px !important;
    height: 180px !important;
  }

  /* Product grid */
  .products-symphony-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .prod-card {
    min-width: 0;
  }

  .prod-card-img {
    height: 180px !important;
  }

  .prod-card-body {
    padding: 0.85rem !important;
  }

  .prod-card-name {
    font-size: 0.85rem !important;
  }

  .prod-card-price {
    font-size: 1rem !important;
  }

  /* Product detail page */
  .lux-prod-panel {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .prod-gallery-side,
  .prod-details-side {
    width: 100% !important;
    min-width: 0 !important;
  }

  .gallery-main-frame {
    height: 280px !important;
  }

  .details-headline {
    font-size: 1.6rem !important;
  }

  /* Cart */
  .cart-flex {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .cart-items-panel,
  .cart-summary-panel {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cart-item-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* Checkout form */
  .form-chord-section {
    width: 100% !important;
    min-width: 0 !important;
    padding: 1.5rem 1rem !important;
    margin: 0 !important;
  }

  .checkout-form-cols,
  .form-cols-toggle {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Auth forms (login/register) */
  .form-chord-section input.form-input-lux,
  .form-chord-section select {
    font-size: 16px !important; /* prevents iOS zoom */
    width: 100%;
    box-sizing: border-box;
  }

  .form-chord-section button[type="submit"],
  .form-chord-section .btn-primary {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Account page */
  #tab-content-profile .grid-cols-2,
  .account-profile-grid {
    grid-template-columns: 1fr !important;
  }

  /* Account header */
  .account-header-flex {
    flex-direction: column !important;
    text-align: center;
    gap: 1rem;
  }

  /* Tab navigation */
  #tab-btn-profile,
  #tab-btn-orders,
  #tab-btn-settings {
    padding: 0.75rem 1rem !important;
    font-size: 0.72rem !important;
    flex: 1;
    text-align: center;
  }

  /* Orders table */
  .orders-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Admin panel */
  .dashboard-sections-flex {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .form-chord-section,
  .admin-list-section {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-harmony-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Newsletter */
  .newsletter-lux-bg {
    padding: 3rem 1rem !important;
  }

  .newsletter-input-inner {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem;
  }

  .newsletter-input-inner input {
    width: 100% !important;
    font-size: 16px !important;
  }

  .newsletter-input-inner button {
    width: 100% !important;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2.5rem 1rem !important;
  }

  .footer-rights-stripe {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem !important;
    font-size: 0.75rem;
  }

  /* Categories grid */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Buttons general */
  .btn-primary,
  .btn-secondary {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.8rem !important;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  /* Featured / home sections */
  .home-section-title {
    font-size: 1.8rem !important;
  }

  /* Welcome banner */
  .welcome-banner {
    font-size: 0.68rem !important;
    padding: 0.45rem 0.5rem !important;
    text-align: center;
  }

  /* Wishlist grid */
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Profile info grid inside account page */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Extra small (max 430px) — 320px, 375px, 390px, 414px
   ========================================================================== */
@media (max-width: 430px) {
  .header-container {
    padding: 0.75rem 0.85rem;
  }

  #nav-auth-btn {
    display: none; /* Too cramped; user uses hamburger to reach login */
  }

  .brand-logo {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 1.7rem !important;
  }

  .hero-showcase-frame {
    width: 220px !important;
    height: 220px !important;
  }

  .hero-img {
    width: 150px !important;
    height: 150px !important;
  }

  .products-symphony-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  .prod-card-img {
    height: 150px !important;
  }

  .form-chord-section {
    padding: 1.25rem 0.85rem !important;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Make all inline-styled grids single-column on small screens */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .wishlist-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-inner {
    padding: 2rem 0.85rem !important;
  }
}

/* ==========================================================================
   Inline-style overrides for account page (mobile)
   These target inline style elements rendered in JS templates
   ========================================================================== */
@media (max-width: 768px) {
  /* Account header row */
  div[style*="display: flex"][style*="gap: 1.5rem"][style*="margin-bottom: 3rem"] {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }

  div[style*="display: flex"][style*="gap: 1.5rem"][style*="margin-bottom: 3rem"] > div[style*="flex: 1"] {
    text-align: center !important;
  }

  /* Shrink avatar slightly */
  div[style*="display: flex"][style*="gap: 1.5rem"][style*="margin-bottom: 3rem"] > div[style*="width: 72px"] {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.3rem !important;
  }

  /* Account signout btn */
  div[style*="display: flex"][style*="gap: 1.5rem"][style*="margin-bottom: 3rem"] > button {
    width: 100% !important;
  }

  /* Admin form cols */
  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Prevent tables from breaking layout */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
  }

  /* Product detail inline styles */
  div[style*="max-width: 860px"] {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Login / Register cards */
  div[style*="max-width: 480px"] {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* Mobile nav close button */
@media (max-width: 768px) {
  .mobile-nav-close {
    display: block !important;
  }
  #nav-mob-login-lbl {
    display: block !important;
  }
}

/* ==========================================================================
   MOBILE EXPERIENCE IMPROVEMENTS
   Added: better touch targets, spacing, product cards, nav, forms
   Does NOT change colors, fonts, or content
   ========================================================================== */

/* ── Prevent any horizontal scroll ── */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ── Touch-friendly tap targets ── */
@media (max-width: 768px) {
  /* Bigger touch area for all icon buttons */
  .tool-btn {
    width: 42px !important;
    height: 42px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hamburger clearly visible */
  .menu-toggle {
    width: 44px !important;
    height: 44px !important;
  }

  /* Nav links in mobile drawer — easier to tap */
  .lux-nav.mobile-active .nav-link {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color-muted);
    width: 100%;
    display: block;
  }

  .lux-nav.mobile-active .nav-link:last-of-type {
    border-bottom: none;
  }

  /* ── Hero section ── */
  .hero-section {
    padding-top: 1rem !important;
  }

  .hero-inner {
    gap: 1.5rem !important;
    padding: 1.5rem 1rem !important;
  }

  .hero-badge {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.9rem !important;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: auto !important;
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  /* ── Product cards — prevent text overflow ── */
  .card-img-wrap {
    height: 200px !important;
  }

  .lux-prod-card {
    border-radius: 14px !important;
  }

  /* Card body padding tighter on mobile */
  .card-body-lux {
    padding: 0.9rem !important;
  }

  .card-name-lux {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  .card-price-lux {
    font-size: 0.95rem !important;
  }

  .card-footer-lux {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Add to cart button full width on mobile cards */
  .card-footer-lux .btn-primary {
    width: 100% !important;
    padding: 0.7rem !important;
    font-size: 0.75rem !important;
  }

  /* ── Section titles ── */
  .section-head-lux {
    margin-bottom: 1.5rem !important;
  }

  /* ── Category cards ── */
  .cat-card-lux {
    border-radius: 14px !important;
  }

  .cat-frame-lux {
    height: 130px !important;
  }

  .cat-label-lux {
    font-size: 0.75rem !important;
    padding: 0.6rem !important;
  }

  /* ── Product detail page ── */
  .gallery-thumbs-strip {
    gap: 0.5rem !important;
  }

  .gallery-thumb {
    width: 56px !important;
    height: 56px !important;
  }

  .details-price-tag {
    font-size: 1.6rem !important;
  }

  .details-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .details-actions .btn-primary,
  .details-actions .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.95rem !important;
  }

  /* ── Cart page ── */
  .cart-item-img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px !important;
  }

  .cart-item-name {
    font-size: 0.85rem !important;
  }

  .cart-qty-control {
    gap: 0.4rem !important;
  }

  /* ── Checkout / forms ── */
  .form-input-lux,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* stops iOS auto-zoom */
    padding: 0.85rem 1rem !important;
  }

  /* ── Login / Register card ── */
  .form-chord-section {
    border-radius: 16px !important;
    margin: 0 0.5rem !important;
  }

  /* Google sign-in button */
  .google-oauth-btn,
  button[onclick*="Google"],
  button[onclick*="google"] {
    width: 100% !important;
    padding: 0.9rem !important;
    font-size: 0.85rem !important;
    justify-content: center !important;
  }

  /* ── Account page tabs ── */
  .account-tabs-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .account-tabs-row::-webkit-scrollbar {
    display: none;
  }

  /* ── Orders table ── */
  .orders-table-wrapper table {
    font-size: 0.78rem !important;
  }

  /* ── Admin panel ── */
  .admin-stat-card {
    padding: 1rem !important;
  }

  .admin-stat-val {
    font-size: 1.6rem !important;
  }

  /* ── Footer ── */
  .footer-bio p,
  .footer-col p,
  .footer-col a {
    font-size: 0.85rem !important;
  }

  .footer-social-row {
    justify-content: center !important;
    gap: 1rem !important;
  }

  /* ── Newsletter ── */
  .newsletter-title {
    font-size: 1.6rem !important;
  }

  /* ── Welcome banner ── */
  .welcome-banner {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.5rem !important;
    letter-spacing: 0.03em !important;
  }

  /* ── Modals / overlays ── */
  .lux-modal-inner,
  .modal-card {
    width: 95vw !important;
    max-width: 95vw !important;
    border-radius: 18px !important;
    padding: 1.5rem 1.25rem !important;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* ── Toast notifications — keep inside screen ── */
  .lux-toast,
  #lux-toast-container {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1.25rem !important;
    max-width: calc(100vw - 2rem) !important;
  }

  /* ── Wishlist ── */
  .wishlist-empty-state {
    padding: 2rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* ── Extra small phones (≤ 390px) ── */
@media (max-width: 390px) {
  .brand-logo {
    font-size: 1.15rem !important;
    letter-spacing: 0.1em !important;
  }

  .hero-title {
    font-size: 1.55rem !important;
  }

  .card-img-wrap {
    height: 160px !important;
  }

  .products-symphony-grid {
    gap: 0.6rem !important;
  }

  .tool-btn {
    width: 38px !important;
    height: 38px !important;
  }

  /* Stack hero buttons vertically on very small screens */
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100% !important;
  }

  .footer-inner {
    padding: 1.75rem 0.75rem !important;
  }
}

/* ==========================================================================
   MOBILE VISUAL FIXES v2 — based on real device screenshot
   ========================================================================== */

@media (max-width: 768px) {

  /* ── 1. Header: hide language dropdown & LOGIN button to save space ── */
  .header-tools .config-selector:first-of-type {
    display: none !important; /* hide EN dropdown */
  }

  #nav-auth-btn {
    display: none !important; /* hide CONNEXION button — user uses hamburger */
  }

  /* ── 2. Header tools tighter gap ── */
  .header-tools {
    gap: 0.25rem !important;
  }

  .header-container {
    gap: 0.5rem !important;
  }

  /* ── 3. Category circles — bigger on mobile ── */
  .cat-circle-img-wrap {
    width: 130px !important;
    height: 130px !important;
  }

  .cat-title {
    font-size: 0.7rem !important;
  }

  /* ── 4. Categories grid — 2 columns, proper spacing ── */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1rem !important;
    justify-items: center !important;
  }

  /* ── 5. Nav drawer — make sure it's hidden by default ── */
  .lux-nav:not(.mobile-active) {
    display: none !important;
  }

  /* ── 6. Mobile nav drawer full screen with login link visible ── */
  .lux-nav.mobile-active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--surface-color) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4rem 2rem 2rem !important;
    z-index: 9999 !important;
    gap: 0 !important;
    overflow-y: auto !important;
  }

  .lux-nav.mobile-active .nav-link {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.15em !important;
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid var(--border-color-muted) !important;
  }

  .lux-nav.mobile-active .nav-link:last-of-type {
    border-bottom: none !important;
  }

  /* Show Login link inside mobile nav */
  #nav-mob-login-lbl {
    display: block !important;
  }

  /* Close button inside nav */
  .mobile-nav-close {
    display: block !important;
    position: absolute !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
  }
}

@media (max-width: 390px) {
  /* Even smaller phones — category circles slightly smaller */
  .cat-circle-img-wrap {
    width: 110px !important;
    height: 110px !important;
  }

  .header-tools {
    gap: 0.1rem !important;
  }
}
