/* =========================================================================
   AURA LINGERIE Luxury Lingerie Storefront Stylesheet
   High-Fashion Editorial Palette • Native RTL/LTR Logical CSS • Mobile-First
   ========================================================================= */
:root {
  --bg: #FAF7F4;
  --surface: #FFFFFF;
  --surface-alt: #F3ECE6;
  --burgundy: #4A0E23;
  --burgundy-deep: #320817;
  --burgundy-soft: #73203E;
  --gold: #C59B5F;
  --gold-light: #E8D5B7;
  --rose: #D8B4A0;
  --ink: #1A1316;
  --muted: #6C5D62;
  --border: #E8DDD4;
  --whatsapp: #1F9D55;
  --whatsapp-dark: #157A40;
  --danger: #B42318;
  --warning: #B54708;
  --success: #146C43;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 18px rgba(42, 12, 24, 0.06);
  --shadow-md: 0 14px 36px rgba(42, 12, 24, 0.11);
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .brand-wordmark {
  font-family: var(--font-ar);
  letter-spacing: 0;
}
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container { width: min(1240px, 92%); margin-inline: auto; }

/* Announcement Ribbon */
.announcement-bar {
  background: var(--burgundy-deep);
  color: var(--gold-light);
  font-size: 0.84rem;
  padding: 0.55rem 1rem;
  text-align: center;
  letter-spacing: 0.03em;
}
.announcement-bar strong { color: #FFF; }

/* Sticky Glass Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a { position: relative; padding-block: 0.25rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--burgundy); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lang-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.lang-pill {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.lang-pill.active {
  background: var(--burgundy);
  color: #FFF;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--burgundy);
  color: #FFF;
  border: none;
  border-radius: 999px;
  padding: 0.52rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.cart-btn:hover { background: var(--burgundy-deep); transform: translateY(-1px); }
.cart-count {
  background: var(--gold);
  color: var(--burgundy-deep);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding-inline: 5px;
}

/* Editorial Hero */
.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, #2C0815 0%, #4A0E23 55%, #230611 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.68;
  filter: saturate(1.06);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 7, 15, 0.86) 0%, rgba(44, 8, 21, 0.58) 52%, rgba(28, 7, 15, 0.28) 100%);
}
html[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(28, 7, 15, 0.88) 0%, rgba(44, 8, 21, 0.6) 52%, rgba(28, 7, 15, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-block: 4.5rem;
  color: #FFF;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(232, 213, 183, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(74, 14, 35, 0.45);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-bottom: 1.1rem;
  color: #FFF;
}
.hero p {
  font-size: 1.06rem;
  color: rgba(255, 250, 245, 0.88);
  margin: 0 0 2rem;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--burgundy);
  color: #FFF;
}
.btn-primary:hover { background: var(--burgundy-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold {
  background: var(--gold);
  color: #1F0810;
}
.btn-gold:hover { background: #D7AF74; transform: translateY(-1px); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFF;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(31, 157, 85, 0.3); }
.btn-outline {
  background: transparent;
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: #FFF; }
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFF;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }
.btn-block { width: 100%; }

/* Trust Strip */
.trust-strip {
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.trust-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(74, 14, 35, 0.08);
  color: var(--burgundy);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.trust-card h3 { font-size: 0.96rem; margin-bottom: 0.25rem; font-family: inherit; font-weight: 700; }
.trust-card p { font-size: 0.83rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* Sections & Filters */
.section { padding-block: 4rem; }
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.25rem;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--burgundy-deep); margin-bottom: 0.55rem; }
.section-header p { color: var(--muted); margin: 0; }

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.cat-pill {
  padding: 0.52rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill.active, .cat-pill:hover {
  background: var(--burgundy);
  color: #FFF;
  border-color: var(--burgundy);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.65rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-alt);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  background: rgba(50, 8, 23, 0.88);
  color: var(--gold-light);
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.stock-pill {
  position: absolute;
  bottom: 0.75rem;
  inset-inline-end: 0.75rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--success);
}
.stock-pill.low { color: var(--warning); }
.stock-pill.out { color: var(--danger); }
.product-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.product-cat { font-size: 0.76rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.product-title { font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.product-price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: auto; }
.price-now { font-size: 1.18rem; font-weight: 800; color: var(--burgundy); }
.price-old { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; }
.swatches-mini { display: flex; gap: 0.4rem; align-items: center; }
.swatch-dot {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.18);
}

/* Product Detail Page */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pdp-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pdp-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 1.2rem; }
.variant-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.55rem; }
.size-pills, .color-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.size-btn {
  min-width: 48px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.size-btn.active { background: var(--burgundy); color: #FFF; border-color: var(--burgundy); }
.size-btn:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.color-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.86rem; font-weight: 600;
}
.color-btn.active { border-color: var(--burgundy); background: rgba(74, 14, 35, 0.06); }
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.share-chip {
  padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.share-chip:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* Checkout + GPS Map */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.security-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(20, 108, 67, 0.09);
  color: var(--success);
  border: 1px solid rgba(20, 108, 67, 0.25);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.83rem; font-weight: 700;
  margin-bottom: 1.25rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.form-control {
  width: 100%;
  padding: 0.74rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #FFF;
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(74, 14, 35, 0.12);
}
.gps-box {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--gold);
  background: #FFFDF9;
}
.gps-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
#checkout-map {
  width: 100%;
  height: 290px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #EDE5DC;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.gps-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.gps-status.confirmed { color: var(--success); }

/* Honeypot trap (invisible to real humans, traps spam bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Cart Drawer & Modals */
.drawer-backdrop, .modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 8, 13, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
}
.drawer-backdrop.open { display: flex; justify-content: flex-end; align-items: stretch; }
.modal-backdrop.open { display: flex; padding: 1rem; }
.cart-drawer {
  width: min(420px, 100%);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: -8px 0 32px rgba(0,0,0,0.2);
}
.drawer-head, .modal-head {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-body { padding: 1.2rem 1.4rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); background: var(--bg); }
.cart-item {
  display: flex; gap: 0.85rem; align-items: center;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--border);
}
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.modal-body { padding: 1.4rem; }
.close-btn {
  background: transparent; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
}
.close-btn:hover { background: var(--surface-alt); color: var(--ink); }

/* Floating Social & WhatsApp Hub */
.floating-hub {
  position: fixed;
  bottom: 1.35rem;
  inset-inline-end: 1.35rem;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: #FFF; font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-wa { background: var(--whatsapp); }
.float-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* Footer */
.footer {
  background: #1B0A11;
  color: rgba(255, 248, 243, 0.85);
  padding-block: 3.5rem 1.8rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { color: var(--gold-light); margin: 0 0 0.85rem; font-size: 1rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.social-pill {
  padding: 0.42rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.82rem; transition: background 0.2s;
}
.social-pill:hover { background: var(--burgundy); border-color: var(--gold); }
.footer-bottom {
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.58);
}

/* Size Table */
.size-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.size-table th, .size-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); text-align: center; }
.size-table th { background: var(--surface-alt); color: var(--burgundy-deep); }

/* Alerts */
.alert {
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.alert-danger { background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }
.alert-success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }

@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-grid, .checkout-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .trust-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 450px; }
  .brand-wordmark { font-size: 1.3rem; }
}

/* Editorial Lookbook Bento Gallery */
.lookbook-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.lookbook-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  min-height: 250px;
  box-shadow: var(--shadow-sm);
}
.lookbook-tile.span-6 { grid-column: span 6; min-height: 360px; }
.lookbook-tile.span-4 { grid-column: span 4; min-height: 360px; }
.lookbook-tile img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  transition: transform 0.6s ease;
}
.lookbook-tile:hover img { transform: scale(1.06); }
.lookbook-caption {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: 2.2rem 1.25rem 1.1rem;
  background: linear-gradient(0deg, rgba(27, 8, 16, 0.82) 0%, rgba(27, 8, 16, 0) 100%);
  color: #FFF;
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.lookbook-caption span.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* PDP Multi-Image Thumbnails */
.pdp-thumbs {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.pdp-thumb {
  width: 72px; height: 88px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent;
  padding: 0; background: none; cursor: pointer;
  opacity: 0.72; transition: all 0.2s;
}
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--burgundy); opacity: 1; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .lookbook-tile.span-6, .lookbook-tile.span-4 { grid-column: span 12; min-height: 230px; }
}
