/* =========================================================
   GINAAB - Clean CSS (No Tailwind)
   - Focused + conflict-safe
   - Keep only what is used in your current home page:
     header, drawers, hero video, categories, new arrivals, ribbons
   ========================================================= */

/* =========================
   Root Tokens
   ========================= */
:root {
  --gn-burgundy: #6b2233;
  --gn-dark: #414042;
  --gn-warm: #d7d3c8;
  --gn-white: #ffffff;

  --gn-text: rgba(17, 17, 19, 0.92);
  --gn-muted: rgba(17, 17, 19, 0.55);
  --gn-border: rgba(17, 17, 19, 0.1);

  --gold: #b08d57;

  --bg-page: #f7f7f8;
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.06);
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "IBM Plex Sans Arabic",
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--bg-page);
  color: var(--gn-text);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* =========================
   Small Utilities (used in your HTML)
   ========================= */
.text-gold {
  color: var(--gold);
}
.text-muted {
  color: var(--gn-muted);
}

/* Tailwind-like slash class you used */
.bg-gold\/70 {
  background-color: rgba(176, 141, 87, 0.7);
}

/* =========================
   Material Icons
   ========================= */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  line-height: 1;
}

/* =========================
   Header (ginaab minimal luxury)
   ========================= */
.gn-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

.gn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gn-border);
}

.gn-row {
  height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.gn-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gn-side-end {
  justify-content: flex-end;
}

.gn-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gn-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.gn-iconBtn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.gn-iconBtn .material-symbols-outlined {
  font-size: 24px;
  color: var(--gn-text);
}

.gn-iconBtn:hover {
  background: rgba(215, 211, 200, 0.35);
  border-color: rgba(107, 34, 51, 0.14);
}

.gn-iconBtn:active {
  transform: scale(0.98);
}

.gn-cartBtn {
  position: relative;
}

.gn-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gn-burgundy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

@media (max-width: 420px) {
  .gn-row {
    height: 58px;
  }
  .gn-logo {
    height: 26px;
  }
  .gn-iconBtn {
    width: 40px;
    height: 40px;
  }
}

/* =========================
   Drawer Base (generic)
   ========================= */
.dr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, 0.45);
  display: none;
  z-index: 89;
}
.dr-overlay.show {
  display: block;
}

.dr-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 340px;
  max-width: 88vw;
  background: #fff;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
}
.dr-drawer.open {
  transform: translateX(0);
}

.dr-head {
  padding: 14px;
  border-bottom: 1px solid rgba(17, 17, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dr-title {
  font-weight: 900;
  font-size: 14px;
  color: var(--gn-text);
}

.dr-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 19, 0.12);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}
.dr-close:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 19, 0.22);
}

.dr-body {
  padding: 14px;
  overflow: auto;
  flex: 1;
}

@media (max-width: 420px) {
  .dr-drawer {
    width: 320px;
  }
}

/* =========================
   Hero (mobile video)
   ========================= */
.gn-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

.gn-hero--mobileVideo {
  min-height: 60vh;
}

.gn-heroVideo {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

.gn-videoShield {
  position: absolute;
  inset: 0;
  /* helps prevent accidental taps on iOS video controls */
  background: transparent;
  z-index: 2;
}

.gn-heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* =========================
   Categories (gn-cats)
   ========================= */
.gn-cats {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 16px;
}

.gn-cats__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gn-cats__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #111;
}

.gn-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 1024px) {
  .gn-cats {
    padding: 0 32px;
  }
  .gn-cats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.gn-cat {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.gn-cat__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.gn-cat__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.gn-cat__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 75%);
  opacity: 0.92;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gn-cat__badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gn-cat__name {
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.gn-cat__chev {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  opacity: 0.92;
  transform: translateX(-2px);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.gn-cat:hover .gn-cat__img {
  transform: scale(1.08);
}
.gn-cat:hover .gn-cat__overlay {
  opacity: 1;
}
.gn-cat:hover .gn-cat__chev {
  transform: translateX(-6px);
  opacity: 1;
}

.gn-cat:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.18);
  outline-offset: 3px;
}

/* =========================
   New Arrivals (na-)
   ========================= */
.na-sec {
  margin-top: 22px;
}

.na-wrap {
  width: 100%;
  padding: 0 12px;
}
@media (min-width: 640px) {
  .na-wrap {
    padding: 0 18px;
  }
}
@media (min-width: 1024px) {
  .na-wrap {
    padding: 0 24px;
  }
}

.na-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.na-title {
  font-size: 16px;
  font-weight: 900;
  color: #111113;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .na-title {
    font-size: 18px;
  }
}

.na-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(17, 17, 19, 0.6);
}

.na-all {
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  color: #111113;
  opacity: 0.75;
  transition: 0.2s ease;
  white-space: nowrap;
}
.na-all:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.na-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .na-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 1024px) {
  .na-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.na-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 17, 19, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
  text-decoration: none;
  color: #111113;
  width: 100%;
  display: block;
}
.na-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.08);
}

.na-img {
  position: relative;
  height: 160px;
  background: #f3f3f4;
}
@media (min-width: 640px) {
  .na-img {
    height: 190px;
  }
}

.na-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
  transform: scale(1.01);
}
.na-card:hover .na-img img {
  transform: scale(1.05);
}

.na-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.86);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.na-badge-discount {
  background: #111113;
}

.na-discountTag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 950;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111113;
  border: 1px solid rgba(17, 17, 19, 0.1);
}

.na-body {
  padding: 12px 12px 14px;
}
@media (min-width: 640px) {
  .na-body {
    padding: 14px 14px 16px;
  }
}

.na-cat {
  font-size: 11px;
  color: rgba(17, 17, 19, 0.55);
}

.na-name {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.na-desc {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(17, 17, 19, 0.6);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.na-priceRow {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.na-priceWrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.na-price {
  font-weight: 950;
  font-size: 14px;
  color: #111113;
}

.na-old {
  font-size: 11px;
  color: rgba(17, 17, 19, 0.45);
  text-decoration: line-through;
}

.na-currency {
  width: 22px;
  height: 24px;
}

.na-cta {
  margin-top: 12px;
  width: 100%;
  height: 42px;
  border-radius: 16px;
  border: 0;
  background: #111113;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}
.na-cta:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

/* Out of stock */
.na-out .na-img img {
  filter: grayscale(1);
}
.na-out .na-cta {
  background: rgba(17, 17, 19, 0.1);
  color: rgba(17, 17, 19, 0.55);
  cursor: not-allowed;
}
.na-outOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 950;
  color: #111113;
}

/* =========================
   Pregnancy Safe ribbon (bs-)
   ========================= */
.bs-safe-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 12px 6px 10px;
  border-bottom-right-radius: 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.25);
}
.bs-safe-ribbon .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings:
    "FILL" 1,
    "wght" 700;
}
/* ===== Fixed Header ===== */
.gn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999; /* فوق كل شيء */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ginaab-border, rgba(0, 0, 0, 0.06));
}
/* Give the page space for the fixed header */
body {
  padding-top: var(--gn-header-h, 72px);
}

.gnInput {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  color: #414042;
  outline: none;
  transition: 0.2s ease;
}
.gnInput:focus {
  box-shadow: 0 0 0 5px rgba(107, 34, 51, 0.15);
  border-color: #6b2233;
}
.gnInputLg {
  height: 54px;
}
.gnError {
  margin-top: 8px;
  font-size: 12px;
  color: #dc2626;
}
