/* ==========================================================================
   ALIGNE ATELIER & JLBAZAR DESIGN SYSTEM
   Editorial Luxury Fashion Aesthetic (Inspired by ALIGNE, Off-Race & DAPHNE)
   ========================================================================== */

/* Fonts loaded via preconnected <link> in header.php for high-speed parallel rendering */

:root {
  /* Color Palette */
  --bg-primary: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-secondary: #F4F1EA;
  --bg-tertiary: #EBE7DE;
  --bg-dark: #121212;
  
  --text-primary: #141414;
  --text-secondary: #5E5B54;
  --text-muted: #8C887E;
  --text-inverse: #FFFFFF;
  
  --border-light: #E8E4DC;
  --border-subtle: rgba(20, 20, 20, 0.08);
  --border-dark: #121212;
  
  --accent-blue: #1E3A8A;
  --accent-terracotta: #A8583B;
  --accent-gold: #C5A880;
  --accent-badge: #1E1E1E;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-rtl: 'Vazirmatn', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  
  /* Layout & Sizing */
  --container-max: 1440px;
  --header-height: 76px;
  --announcement-height: 38px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s var(--ease-out);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* --------------------------------------------------------------------------
   ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 50;
}

.announcement-bar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   SITE HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  z-index: 40;
  transition: background-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.header-right {
  justify-content: flex-end;
}

.brand-logo {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center;
}

.brand-logo.highlight-blue {
  color: var(--accent-blue);
}

.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.badge-sale {
  color: #C23E3E;
}

/* Header Icons */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}

.icon-btn:hover {
  opacity: 0.7;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0px;
  background-color: var(--text-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: flex;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   HERO BANNER (ALIGNE EDITORIAL VIBE)
   -------------------------------------------------------------------------- */
.hero-editorial {
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #FFFFFF;
  max-width: 720px;
  padding: 80px 0;
}

.hero-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 580px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--bg-card);
}

.btn-primary:hover {
  background-color: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--bg-dark);
}

.btn-dark:hover {
  background-color: #2e2e2e;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: #fff;
}

.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}

.btn-outline-white:hover {
  background-color: #fff;
  color: #111;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   OFF-RACE CATEGORY QUICK-NAV STRIP
   -------------------------------------------------------------------------- */
.category-quicknav {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.category-quicknav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-pill-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
  min-width: 110px;
}

.category-pill-item:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.category-pill-item.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.category-pill-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-pill-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.category-pill-item:hover .category-pill-thumb {
  border-color: var(--accent-blue);
  transform: scale(1.06);
}

.category-pill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-pill-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   EDITORIAL SECTION HEADER
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.section-link:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   PRODUCT CARD COMPONENT (ALIGNE & DAPHNE STYLE)
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast);
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-secondary);
  overflow: hidden;
  margin-bottom: 14px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}

.product-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-card:hover .product-img-hover {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 18, 18, 0.88);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.quick-add-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 5;
}

.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn:hover {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.price-regular {
  color: var(--text-primary);
}

.price-sale {
  color: #B91C1C;
}

.price-compare {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 400;
}

/* Color Swatches (DAPHNE Inspired) */
.color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.color-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   SPLIT EDITORIAL 2-COLUMN BANNERS (ALIGNE DENIM & DRESSES STYLE)
   -------------------------------------------------------------------------- */
.editorial-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 60px 0;
}

@media (min-width: 768px) {
  .editorial-split-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.editorial-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.editorial-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.editorial-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.editorial-card:hover .editorial-card-bg img {
  transform: scale(1.04);
}

.editorial-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
}

.editorial-card-content {
  position: relative;
  z-index: 5;
  color: #fff;
}

.editorial-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.9;
}

.editorial-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   POLAROID MOODBOARD ROUNDUP (ALIGNE INSTA VIBE)
   -------------------------------------------------------------------------- */
.moodboard-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .moodboard-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.polaroid-card {
  background: #FFFFFF;
  padding: 12px 12px 28px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid #EBE7DF;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.polaroid-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}

.polaroid-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
  margin-bottom: 12px;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

/* --------------------------------------------------------------------------
   NEWSLETTER / "TAKE TEN" SECTION (ALIGNE STYLE)
   -------------------------------------------------------------------------- */
.newsletter-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
  text-align: center;
}

.newsletter-box {
  max-width: 540px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.newsletter-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 13px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   FOOTER & MASSIVE WATERMARK (ALIGNE STATEMENT)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-primary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-massive-logo {
  font-family: var(--font-sans);
  font-size: clamp(38px, 10vw, 125px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.08);
  text-align: center;
  user-select: none;
  pointer-events: none;
  margin-top: 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER & RTL LOCALIZATION SYSTEM
   ========================================================================== */

/* RTL Global Typography & Flow */
[dir="rtl"],
html[lang="ku"],
html[lang="ar"],
html[lang="fa"] {
  --font-active: var(--font-rtl);
}

[dir="rtl"] body, 
[dir="rtl"] input, 
[dir="rtl"] button, 
[dir="rtl"] select, 
[dir="rtl"] textarea,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn,
[dir="rtl"] .section-title,
[dir="rtl"] .hero-title,
[dir="rtl"] .catalog-title,
[dir="rtl"] .pdp-title,
[dir="rtl"] .product-card-title,
[dir="rtl"] .price-regular,
[dir="rtl"] .price-sale,
[dir="rtl"] .announcement-bar,
[dir="rtl"] .footer-links,
[dir="rtl"] .footer-col-title,
html[lang="ku"] body,
html[lang="ar"] body,
html[lang="fa"] body {
  font-family: var(--font-rtl) !important;
  letter-spacing: 0 !important;
  word-spacing: 0.02em;
}

[dir="rtl"] body {
  line-height: 1.65;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .catalog-title,
[dir="rtl"] .pdp-title {
  line-height: 1.35 !important;
  font-weight: 800;
  letter-spacing: 0 !important;
}

[dir="rtl"] .brand-logo {
  font-family: var(--font-rtl), var(--font-sans);
  letter-spacing: 0.02em;
  font-weight: 800;
  line-height: 1.2;
}

[dir="rtl"] .footer-massive-logo {
  font-family: var(--font-rtl), var(--font-sans);
  letter-spacing: 0.01em;
  font-size: clamp(34px, 8.5vw, 105px);
  line-height: 1.15;
}

[dir="rtl"] .nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0 !important;
}

[dir="rtl"] .btn {
  font-weight: 700;
  letter-spacing: 0 !important;
}

[dir="rtl"] .section-link svg,
[dir="rtl"] .catalog-breadcrumb svg {
  transform: scaleX(-1);
}

/* LTR Typography Optimization (English & Turkish) */
html[lang="en"] body,
html[lang="tr"] body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html[lang="tr"] .brand-logo,
html[lang="en"] .brand-logo {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}

/* Currency Switcher Component */
.currency-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.currency-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.announcement-bar .currency-toggle-btn {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.announcement-bar .currency-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.currency-toggle-btn .curr-opt {
  opacity: 0.55;
  transition: opacity var(--transition-fast);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.currency-toggle-btn .curr-opt.active {
  opacity: 1;
  font-weight: 800;
  color: #FFFFFF;
}

.currency-toggle-btn .curr-sep {
  opacity: 0.35;
  font-size: 10px;
}

/* Mobile drawer currency switcher */
#mobileNavDrawer .currency-toggle-btn {
  border-color: var(--border-light);
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 6px 12px;
  font-size: 12px;
  width: 100%;
  justify-content: center;
}

#mobileNavDrawer .currency-toggle-btn .curr-opt.active {
  color: var(--accent-blue);
  font-weight: 800;
}

/* Language Switcher Dropdown Component */
.lang-switcher {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-switcher-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.announcement-bar .lang-switcher-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.announcement-bar .lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-header .lang-switcher-btn {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.site-header .lang-switcher-btn:hover {
  background: var(--bg-secondary);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  min-width: 150px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1000;
  pointer-events: none;
}

/* Invisible hover bridge to eliminate mouseleave gap traps */
.lang-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
  display: block;
}

.lang-switcher:hover .lang-dropdown-menu,
.lang-switcher.open .lang-dropdown-menu,
.lang-switcher:focus-within .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Drawer mobile integration: clean inline expand */
.cart-drawer .lang-switcher .lang-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: 1px solid var(--border-light);
  margin-top: 8px;
  pointer-events: auto;
  min-width: 100%;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A !important;
  text-decoration: none;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.lang-dropdown-item:hover {
  background: var(--bg-secondary);
}

.lang-dropdown-item.active {
  background: var(--bg-secondary);
  font-weight: 800;
  color: var(--accent-blue) !important;
}

.lang-dropdown-item .lang-code {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

/* RTL Cart Drawer Overrides */
[dir="rtl"] .cart-drawer {
  right: auto !important;
  left: 0 !important;
  transform: translateX(-100%) !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
}

[dir="rtl"] .cart-drawer.open {
  transform: translateX(0) !important;
}

[dir="rtl"] #mobileNavDrawer {
  left: auto !important;
  right: 0 !important;
  transform: translateX(100%) !important;
}

[dir="rtl"] #mobileNavDrawer.open {
  transform: translateX(0) !important;
}

[dir="rtl"] .product-badge {
  left: auto;
  right: 12px;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 20px;
}

[dir="rtl"] .cart-count {
  right: auto;
  left: 0px;
}

/* ==========================================================================
   Floating Action Buttons (WhatsApp & Go to Up)
   ========================================================================== */
.floating-action-group {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 990;
  pointer-events: none;
}

[dir="rtl"] .floating-action-group {
  right: auto;
  left: 24px;
}

.floating-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, color 0.2s, opacity 0.3s, visibility 0.3s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.floating-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* WhatsApp Floating Button */
.floating-btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.38);
}

.floating-btn-whatsapp:hover {
  background-color: #20BA56;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.52);
}

/* Subtle Pulse Glow for WhatsApp */
.floating-btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: waPulse 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

@keyframes waPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Go to Up (Back to Top) Button */
.floating-btn-top {
  background-color: #FFFFFF;
  color: #111111;
  border-color: var(--border-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
}

.floating-btn-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-btn-top:hover {
  background-color: #111111;
  color: #FFFFFF;
  border-color: #111111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* Tooltips */
.floating-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(6px);
  background-color: #111111;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

[dir="rtl"] .floating-tooltip {
  right: auto;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(-6px);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
  .floating-action-group {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    gap: 8px;
    z-index: 900;
  }
  [dir="rtl"] .floating-action-group {
    right: auto;
    left: 14px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  }
  .floating-tooltip {
    display: none !important;
  }
  .pdp-actions, .checkout-grid {
    padding-bottom: 24px;
  }
}

