/* Noor storefront — Arabic-first beauty & lifestyle mall.
   Clean white surfaces, soft blush accent — original design (not a third-party clone). */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap");

body:has(.storefront-noor) {
  background: #f7f7f8;
  font-family: "Cairo", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
}

body:has(.storefront-noor) .store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececef;
  box-shadow: 0 2px 16px rgba(15, 15, 20, 0.04);
}

body:has(.storefront-noor) .brand {
  color: #1a1a1f;
  font-weight: 800;
}

body:has(.storefront-noor) .menu a,
body:has(.storefront-noor) .quick-links a {
  border-color: #ececef;
  background: #fff;
  border-radius: 999px;
  color: #1a1a1f;
  font-weight: 600;
}

body:has(.storefront-noor) .store-footer {
  background: #1a1a1f;
  color: #f3f3f5;
  border-top: none;
  margin-top: 0;
  padding-bottom: 5rem;
}

body:has(.storefront-noor) .store-footer a { color: #e8b4bc; }
body:has(.storefront-noor) .store-footer .muted { color: #9a9aa3; }

.storefront-noor {
  --nr-bg: #f7f7f8;
  --nr-surface: #ffffff;
  --nr-ink: #1a1a1f;
  --nr-muted: #6b6b76;
  --nr-accent: #c45c72;
  --nr-accent-dark: #a34458;
  --nr-blush: #f8e9ec;
  --nr-border: #ececef;
  --nr-radius: 16px;
  --nr-shadow: 0 12px 32px rgba(15, 15, 20, 0.07);
  --nr-shadow-sm: 0 4px 14px rgba(15, 15, 20, 0.05);
  background: var(--nr-bg);
  color: var(--nr-ink);
  font-family: "Cairo", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  padding-bottom: 5rem;
}

.storefront-noor * { box-sizing: border-box; }

.nr-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.nr-topstrip {
  background: linear-gradient(90deg, #1a1a1f, #2a2a32 50%, #1a1a1f);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.nr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.9rem 0 0.5rem;
}

.nr-brand-mark {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--nr-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nr-search {
  flex: 1 1 200px;
  display: flex;
  max-width: 440px;
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--nr-shadow-sm);
}

.nr-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.65rem 1rem;
  font: inherit;
  min-width: 0;
}

.nr-search input:focus { outline: none; }

.nr-search button {
  border: 0;
  background: var(--nr-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
}

.nr-search button:hover { background: var(--nr-accent-dark); }

.nr-toolbar-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.nr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: var(--nr-ink);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--nr-shadow-sm);
}

.nr-pill-cart {
  background: var(--nr-ink);
  color: #fff;
  border-color: var(--nr-ink);
}

.nr-count {
  background: var(--nr-accent);
  color: #fff;
  border-radius: 999px;
  min-width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 0 0.3rem;
}

/* Carousel */
.nr-carousel {
  position: relative;
  border-radius: calc(var(--nr-radius) + 4px);
  overflow: hidden;
  margin: 0.75rem 0 1.25rem;
  background: #e8e8ec;
  min-height: 220px;
  box-shadow: var(--nr-shadow);
}

.nr-slide {
  display: none;
  position: relative;
  min-height: 240px;
}

.nr-slide.is-active { display: block; animation: nrFade 0.45s ease; }

@keyframes nrFade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.nr-slide-media {
  width: 100%;
  height: min(52vw, 380px);
  object-fit: cover;
  display: block;
}

.nr-slide-fallback {
  height: min(48vw, 320px);
  background:
    radial-gradient(600px 280px at 80% 20%, rgba(196, 92, 114, 0.35), transparent 55%),
    linear-gradient(135deg, #2a2a32, #1a1a1f);
}

.nr-slide-body {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inset-inline-end: 0;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(transparent, rgba(10, 10, 14, 0.78));
  color: #fff;
}

.nr-slide-body h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
}

.nr-slide-body p {
  margin: 0 0 0.85rem;
  opacity: 0.92;
  font-size: 0.92rem;
  max-width: 36rem;
}

.nr-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nr-ink);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--nr-shadow-sm);
}

.nr-prev { inset-inline-start: 0.75rem; }
.nr-next { inset-inline-end: 0.75rem; }

.nr-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.nr-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.nr-dot.is-active { background: #fff; width: 18px; }

.nr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  background: var(--nr-accent);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(196, 92, 114, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nr-cta:hover { background: var(--nr-accent-dark); transform: translateY(-1px); }
.nr-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.nr-cta-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; width: 100%; box-shadow: none; }

/* Trust */
.nr-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .nr-trust { grid-template-columns: 1fr 1fr; }
}

.nr-trust-item {
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  box-shadow: var(--nr-shadow-sm);
}

.nr-trust-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.nr-trust-item span {
  color: var(--nr-muted);
  font-size: 0.78rem;
}

/* Sections */
.nr-section { margin-bottom: 1.75rem; }

.nr-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.nr-section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.nr-link-more {
  color: var(--nr-accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

/* Categories */
.nr-cats {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.nr-cat {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 92px;
  text-align: center;
  text-decoration: none;
  color: var(--nr-ink);
}

.nr-cat-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.4rem;
  border-radius: 999px;
  background: var(--nr-blush);
  border: 2px solid transparent;
  font-size: 1.45rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.nr-cat strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.nr-cat.is-active .nr-cat-icon,
.nr-cat:hover .nr-cat-icon {
  border-color: var(--nr-accent);
  transform: translateY(-2px);
}

/* Rails + grid */
.nr-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.nr-rail .nr-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.nr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .nr-grid { grid-template-columns: repeat(4, 1fr); }
  .nr-rail .nr-card { flex-basis: 200px; }
}

.nr-card {
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  overflow: hidden;
  box-shadow: var(--nr-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.nr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nr-shadow);
}

.nr-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f0f0f2;
  overflow: hidden;
}

.nr-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nr-card-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f0f0f2, var(--nr-blush));
}

.nr-badge {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  background: var(--nr-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  z-index: 1;
}

.nr-badge-muted { background: #6b6b76; }

.nr-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.nr-card-title {
  color: var(--nr-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nr-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.nr-price {
  font-weight: 800;
  color: var(--nr-accent-dark);
  font-size: 1rem;
}

.nr-compare {
  color: var(--nr-muted);
  text-decoration: line-through;
  font-size: 0.8rem;
}

.nr-add-form { margin-top: auto; }

.nr-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--nr-muted);
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  border: 1px dashed var(--nr-border);
}

.nr-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.nr-pager a {
  color: var(--nr-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Mobile bottom nav */
.nr-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--nr-border);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15, 15, 20, 0.06);
}

.nr-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--nr-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem;
}

.nr-bottom-nav a.is-active,
.nr-bottom-nav a:hover { color: var(--nr-accent); }

.nr-bn-ico { font-size: 1.15rem; line-height: 1; }

@media (min-width: 900px) {
  .nr-bottom-nav { display: none; }
  .storefront-noor { padding-bottom: 2rem; }
  body:has(.storefront-noor) .store-footer { padding-bottom: 2rem; }
}

.nr-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--nr-ink);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.nr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— PDP / cart skin hooks —— */
body.nr-pdp,
body:has(.nr-pdp) {
  background: #f7f7f8;
  font-family: "Cairo", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  color: #1a1a1f;
}

.nr-pdp .container { max-width: 1100px; }
.nr-pdp .product-layout { gap: 2rem; }
.nr-pdp .btn-primary,
.nr-pdp button[type="submit"] {
  background: #c45c72 !important;
  border-radius: 999px !important;
  font-weight: 800;
}
.nr-pdp .main-image-container {
  border-radius: 16px !important;
  border-color: #ececef !important;
  background: #fff;
}

.nr-cart.cart-page {
  font-family: "Cairo", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  max-width: 1100px;
}
.nr-cart .cart-main,
.nr-cart .cart-sidebar,
.nr-cart .empty-cart {
  background: #fff;
  border-color: #ececef;
  box-shadow: 0 8px 24px rgba(15, 15, 20, 0.05);
}
.nr-cart .cart-title-bar { background: #f8e9ec; border-color: #ececef; }
.nr-cart .checkout-btn { background: #c45c72; border-radius: 999px; }
.nr-cart .summary-row.total { color: #a34458; }
.nr-cart .btn-primary { background: #c45c72; }
.nr-cart .cart-header h1 { color: #1a1a1f; }
body:has(.nr-cart) { background: #f7f7f8; }
body:has(.nr-cart) .store-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #ececef;
}
