/* =============================================================
   hajjumrah.store — Design tokens
   ============================================================= */
:root {
  /* Color */
  --color-emerald: #0b5d4b;
  --color-emerald-dark: #083f33;
  --color-emerald-tint: #e6efec;
  --color-gold: #c8a45d;
  --color-gold-soft: #f1e6d2;
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-text-muted: #6b7280;
  --color-border: #e7e3d9;
  --color-danger: #a3402f;

  /* Type */
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --step-xs: 0.8rem;
  --step-sm: 0.9rem;
  --step-base: 1rem;
  --step-md: 1.125rem;
  --step-lg: 1.375rem;
  --step-xl: 1.75rem;
  --step-2xl: 2.25rem;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1120px;
  --tap-min: 44px;
  --shadow-card: 0 1px 2px rgba(23, 23, 23, 0.04), 0 6px 20px rgba(23, 23, 23, 0.05);
  --shadow-float: 0 10px 30px rgba(11, 93, 75, 0.28);
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--step-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-emerald);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

section {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: var(--step-xl);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: var(--step-sm);
  max-width: 46ch;
}

/* Section divider — a small gold diamond flanked by hairlines, echoing
   the kiswah-band diamonds in the brand mark. Used in place of a plain
   accent bar so every section carries the same signature detail. */
.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-divider .line {
  width: 26px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}
.section-divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.section-head.is-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head.is-centered .section-divider {
  justify-content: center;
}
.section-head.is-centered p {
  max-width: 52ch;
}

/* Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: var(--step-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    box-shadow var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-emerald);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-emerald-dark);
}

.btn-whatsapp {
  background: #1f9d55;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #188245;
}

.btn-outline {
  background: transparent;
  color: var(--color-emerald);
  border-color: var(--color-emerald);
}
.btn-outline:hover {
  background: var(--color-emerald-tint);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: var(--step-xs);
}

.btn[disabled] {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
  border-color: var(--color-border);
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-wordmark .store {
  color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition);
}
.icon-btn:hover {
  background: var(--color-emerald-tint);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

.primary-nav {
  display: none;
}

@media (min-width: 860px) {
  .primary-nav {
    display: flex;
    gap: 28px;
    margin-left: 40px;
    margin-right: auto;
  }
  .primary-nav a {
    text-decoration: none;
    font-size: var(--step-sm);
    font-weight: 600;
    color: var(--color-text-muted);
  }
  .primary-nav a:hover {
    color: var(--color-emerald);
  }
  .site-header .container {
    justify-content: flex-start;
  }
  .header-actions {
    margin-left: auto;
  }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 64px 0 auto 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 99;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu li:last-child a {
  border-bottom: none;
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

/* Search panel */
.search-panel {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.search-panel.is-open {
  max-height: 84px;
}
.search-panel .container {
  padding-top: 12px;
  padding-bottom: 12px;
}
.search-field {
  position: relative;
}
.search-field input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 10px 16px 10px 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--step-base);
  color: var(--color-text);
}
.search-field input:focus {
  border-color: var(--color-emerald);
}
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, var(--color-emerald-tint) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  right: -8%;
  top: -8%;
  width: 260px;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 640px) {
  .hero-watermark {
    width: 360px;
    right: 0%;
    top: -6%;
  }
}

.hero-inner {
  position: relative;
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

@media (min-width: 480px) {
  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
}

.hero h1 {
  font-size: var(--step-2xl);
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

.hero p {
  color: var(--color-text-muted);
  font-size: var(--step-md);
  max-width: 42ch;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================================================
   Category filter
   ============================================================= */
.category-filter {
  padding: 20px 0 4px;
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--step-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--color-emerald);
}
.chip[aria-pressed="true"] {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #fff;
}

/* =============================================================
   Toolbar (results count + sort)
   ============================================================= */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}
.results-count {
  font-size: var(--step-xs);
  color: var(--color-text-muted);
}
.sort-select {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 6px 14px;
  font-size: var(--step-xs);
  font-weight: 600;
  color: var(--color-text);
}

/* =============================================================
   Product grid & card
   ============================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .product-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
  }
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-gold);
  color: #201a0d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-emerald);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
}

.product-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-size: var(--step-sm);
  font-weight: 700;
  margin: 0;
  cursor: pointer;
}

.product-desc {
  font-size: var(--step-xs);
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.price {
  font-size: var(--step-md);
  font-weight: 800;
  color: var(--color-emerald-dark);
}

.price-original {
  font-size: var(--step-xs);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.unavailable-label {
  font-size: var(--step-xs);
  font-weight: 700;
  color: var(--color-danger);
}

.product-card-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--color-text-muted);
}
.no-results strong {
  display: block;
  color: var(--color-text);
  font-size: var(--step-md);
  margin-bottom: 6px;
}

/* =============================================================
   Product modal
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 13, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  position: fixed;
  inset: auto 0 0 0;
  top: 0;
  background: var(--color-surface);
  z-index: 201;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 220ms ease;
  -webkit-overflow-scrolling: touch;
}
.product-modal.is-open {
  transform: translateY(0);
}

@media (min-width: 720px) {
  .modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .product-modal {
    position: relative;
    inset: auto;
    top: auto;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
  }
  .product-modal.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
  background: var(--color-surface);
  z-index: 2;
}

.modal-close {
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-media {
  aspect-ratio: 1 / 1;
  max-height: 340px;
  background: var(--color-bg);
  padding: 0 24px;
  margin-top: -20px;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-body {
  padding: 8px 24px 32px;
}

.modal-body .badge {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-body h3 {
  font-size: var(--step-xl);
  margin-bottom: 6px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.modal-price-row .price {
  font-size: var(--step-xl);
}
.modal-discount {
  font-size: var(--step-xs);
  font-weight: 700;
  color: var(--color-emerald);
  background: var(--color-emerald-tint);
  padding: 3px 8px;
  border-radius: 999px;
}

.modal-desc {
  color: var(--color-text-muted);
  margin: 10px 0 20px;
}

.modal-section-title {
  font-size: var(--step-sm);
  font-weight: 700;
  margin-bottom: 10px;
}

.spec-list,
.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.spec-list li,
.feature-list li {
  display: flex;
  gap: 10px;
  font-size: var(--step-sm);
  align-items: flex-start;
}
.spec-list li svg,
.feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.variant-group {
  margin-bottom: 20px;
}
.variant-label {
  font-size: var(--step-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: block;
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: var(--step-xs);
  font-weight: 600;
  background: var(--color-surface);
}

.modal-unavailable {
  font-size: var(--step-sm);
  font-weight: 700;
  color: var(--color-danger);
  margin-bottom: 14px;
}

/* =============================================================
   Trust / About sections
   ============================================================= */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.trust-card svg {
  width: 26px;
  height: 26px;
  color: var(--color-emerald);
  margin-bottom: 12px;
}
.trust-card h3 {
  font-size: var(--step-base);
  margin-bottom: 6px;
}
.trust-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--step-sm);
}

.about-section {
  background: var(--color-emerald-tint);
  position: relative;
  overflow: hidden;
}
.about-inner {
  max-width: 640px;
  position: relative;
}
.about-inner p {
  color: var(--color-text-muted);
  margin: 12px 0 0;
}
.about-watermark {
  position: absolute;
  right: -12%;
  bottom: -40%;
  width: 150px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 640px) {
  .about-watermark {
    width: 240px;
    right: 3%;
    bottom: -18%;
    opacity: 0.22;
  }
}

/* =============================================================
   WhatsApp CTA band
   ============================================================= */
.cta-band {
  background: var(--color-emerald);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  margin: 0 20px;
  max-width: calc(var(--container-max) - 40px);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.cta-watermark {
  position: absolute;
  left: 50%;
  top: -12%;
  transform: translateX(-50%);
  width: 210px;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}
.cta-band-inner {
  position: relative;
}
.cta-band h2 {
  color: #fff;
  font-size: var(--step-lg);
  margin-bottom: 8px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
  font-size: var(--step-sm);
}
.cta-band .btn-whatsapp {
  background: #fff;
  color: var(--color-emerald-dark);
}
.cta-band .btn-whatsapp:hover {
  background: var(--color-gold-soft);
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: #12241f;
  color: rgba(255, 255, 255, 0.82);
  padding: 44px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.footer-brand-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}
.footer-brand-wordmark .store {
  color: var(--color-gold);
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--step-sm);
  max-width: 32ch;
}
.footer-heading {
  font-size: var(--step-xs);
  text-transform: none;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--step-sm);
}
.footer-links a:hover {
  color: var(--color-gold);
}
.footer-contact-number {
  font-weight: 700;
  color: #fff;
  margin: 4px 0 14px;
  font-size: var(--step-md);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 18px;
  font-size: var(--step-xs);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* =============================================================
   Floating WhatsApp button
   ============================================================= */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  transition: transform var(--transition);
}
.floating-whatsapp:hover {
  transform: scale(1.05);
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 720px) {
  .floating-whatsapp {
    right: 28px;
    bottom: 28px;
  }
}

/* body scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}
