:root {
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --radius-sm: .75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --focus: 0 0 0 3px rgba(216, 169, 74, .38);
  --transition: 180ms ease;
  --z-sticky: 50;
  --z-mobile-nav: 60;
}

button,
input,
summary { font: inherit; }

button,
summary { cursor: pointer; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.store-search {
  max-width: 37rem;
  margin: 0 0 var(--space-5);
}

.store-search label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 800;
  color: var(--green);
}

.store-search > div {
  display: flex;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 60, 47, .08);
}

.store-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: .75rem 1rem;
  color: var(--ink);
  background: transparent;
}

.store-search input:focus { outline: 0; }

.store-search button {
  border: 0;
  border-radius: 999px;
  padding: .65rem 1rem;
  background: var(--mint);
  color: var(--green);
  font-weight: 800;
}

.store-search [role="status"] {
  min-height: 1.4em;
  margin: .4rem 1rem 0;
  color: var(--muted);
  font-size: .82rem;
}

.product-card[hidden] { display: none; }

.empty-products {
  max-width: 42rem;
  margin: var(--space-5) auto 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--muted);
  text-align: center;
}

.categories-section,
.home-faq {
  padding: 6.25rem max(6vw, 1.75rem);
}

.categories-section { background: var(--cream); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 75rem;
  margin: auto;
}

.category-card {
  display: grid;
  gap: .4rem;
  min-height: 8rem;
  align-content: center;
  border: 1px solid #e6dfd1;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--white);
  color: var(--ink);
  text-align: right;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.category-card:hover,
.category-card.active {
  border-color: var(--green-2);
  box-shadow: 0 14px 35px rgba(18, 60, 47, .1);
  transform: translateY(-3px);
}

.category-card span { font-size: 1.08rem; font-weight: 800; }
.category-card small { color: var(--muted); }

.home-faq { background: var(--white); }

.faq-list {
  max-width: 52rem;
  margin: auto;
  display: grid;
  gap: var(--space-2);
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  background: var(--white);
}

.faq-list summary {
  padding: 1.2rem 0;
  color: var(--ink);
  font-weight: 800;
}

.faq-list p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  body { padding-bottom: 4.4rem; }
  .categories-section,
  .home-faq { padding: 4.4rem 1.25rem; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 6.5rem; }
  footer nav { flex-wrap: wrap; gap: 1rem 1.4rem; }
  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: var(--z-mobile-nav);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 4.2rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 30px rgba(18, 60, 47, .1);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    padding: .6rem .25rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
  }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--green); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Professional home product slider */
.store-slider {
  width: min(610px, 100%);
  position: relative;
  z-index: 2;
  margin-inline: auto;
  border: 1px solid rgba(8, 47, 39, .12);
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 38px 90px rgba(8, 47, 39, .18);
}
.store-slider__viewport { position: relative; height: 570px; overflow: hidden; background: #092a22; }
.store-slider__track { position: relative; width: 100%; height: 100%; }
.store-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .65s ease, transform 1s cubic-bezier(.2,.8,.2,1), visibility .65s;
}
.store-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }
.store-slide picture, .store-slide img { display: block; width: 100%; height: 100%; }
.store-slide img { object-fit: cover; object-position: center; transition: transform 6s ease; }
.store-slide.is-active img { transform: scale(1.055); }
.store-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,20,16,.03) 30%, rgba(3,20,16,.92) 100%);
}
.store-slide__content {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 5vw, 36px);
  left: clamp(22px, 5vw, 36px);
  bottom: 30px;
  color: #fff;
}
.store-slide__content small {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(9px);
  font-weight: 800;
}
.store-slide__content > strong { display: block; max-width: 15ch; font-size: clamp(1.65rem, 3.3vw, 2.45rem); line-height: 1.25; }
.store-slide__content > span { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; }
.store-slide__content b { color: #f7d889; font-size: 1.25rem; }
.store-slide__content em { font-style: normal; font-weight: 800; font-size: .88rem; }
.store-slider__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  color: #fff;
  background: rgba(3,27,22,.45);
  backdrop-filter: blur(10px);
  font: 400 2rem/1 sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, transform .2s;
}
.store-slider__arrow:hover { background: #12614d; transform: translateY(-50%) scale(1.06); }
.store-slider__arrow--prev { right: 18px; }
.store-slider__arrow--next { left: 18px; }
.store-slider__counter {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-shadow: 0 2px 8px #0008;
}
.store-slider__counter b { font-size: 1.05rem; }
.store-slider__counter span { width: 28px; height: 1px; background: rgba(255,255,255,.65); }
.store-slider__counter small { opacity: .7; }
.store-slider__footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
}
.store-slider__dots { display: flex; align-items: center; gap: 7px; direction: ltr; }
.store-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #b8c4bf;
  cursor: pointer;
  transition: width .25s, background .25s;
}
.store-slider__dots button.is-active { width: 30px; background: var(--green-2); }
.store-slider__footer p { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 700; }
.store-slider__footer p span { color: #168257; }

/* Elevated storefront system */
@font-face {
  font-family: "Rawasi Tajawal";
  src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
.hero h1,
.section-heading h2,
.why-copy h2,
.store-slide__content > strong,
.product-content h3 { font-family: "Rawasi Tajawal", "Tajawal", sans-serif; }
.site-header { padding-inline: max(5vw, 28px); }
.hero {
  grid-template-columns: minmax(460px, .92fr) minmax(520px, 1.08fr);
  gap: clamp(48px, 7vw, 110px);
  padding-inline: max(6vw, 36px);
}
.hero-copy { max-width: 650px; }
.hero h1 { max-width: 10.5ch; }
.hero-lead { max-width: 54ch; }
.store-slider { border-radius: 28px; }
.store-slider__viewport { height: 520px; }
.store-slide--baby { background: radial-gradient(circle at 50% 38%, #fff 0 15%, #f9dbe3 56%, #eeb8c5 100%); }
.store-slide--fan { background: linear-gradient(145deg, #f8fbff, #dbeeff); }
.store-slide--zhuse { background: radial-gradient(circle at 52% 42%, #6c5545, #17120f 70%); }
.store-slide--ipl { background: linear-gradient(145deg, #e7e0cd, #6f7b69); }
.store-slide--baby img,
.store-slide--fan img,
.store-slide--zhuse img {
  object-fit: contain;
  padding: 58px 48px 125px;
}
.store-slide--zhuse img { padding-inline: 30px; filter: drop-shadow(0 26px 24px rgba(0,0,0,.35)); }
.store-slide--ipl img { object-position: center 55%; }
.store-slide--baby .store-slide__shade,
.store-slide--fan .store-slide__shade { background: linear-gradient(180deg, transparent 48%, rgba(5,29,24,.92) 100%); }
.store-slide__content > strong { letter-spacing: -.02em; }
.store-section { padding-inline: max(6vw, 28px); }
.product-grid {
  max-width: 1380px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card:last-child { grid-column: auto; }
.product-image { height: 310px; }
.product-content { padding: 22px; }
.product-content h3 { font-size: 1.16rem; }
.product-content > p:not(.product-category) { min-height: 76px; font-size: .89rem; }
.product-footer { align-items: center; }
.price span { font-size: 1.55rem; }
.product-button { padding: 10px 14px; }
.category-grid { max-width: 1180px; margin-inline: auto; }
.why-us, .order-steps, .home-faq { border-radius: 0; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(390px, .9fr) minmax(460px, 1.1fr); gap: 45px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
  .product-image { height: 370px; }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 740px; }
  .hero h1 { max-width: 12ch; }
  .store-slider { width: min(680px, 100%); }
}
@media (max-width: 650px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .announcement { white-space: nowrap; overflow: hidden; }
  .site-header { width: 100%; max-width: 100%; padding-inline: 14px; gap: 8px; overflow: hidden; }
  .site-header .brand { min-width: 0; flex: 1 1 auto; }
  .site-header .brand span { overflow: hidden; text-overflow: ellipsis; }
  .site-header .header-cta { flex: 0 0 auto; }
  .hero { width: 100%; min-width: 0; padding-inline: 18px; }
  .hero > * { min-width: 0; max-width: 100%; }
  .hero-copy { width: 100%; min-width: 0; overflow: hidden; }
  .hero h1 { max-width: 100%; font-size: clamp(2.15rem, 10.5vw, 2.9rem); line-height: 1.14; overflow-wrap: anywhere; }
  .hero-actions { flex-wrap: wrap; gap: 15px; }
  .store-search, .store-search > div { width: 100%; max-width: 100%; }
  .hero-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-slider { border-radius: 24px; }
  .store-slider__viewport { height: 430px; }
  .store-slide--baby img,
  .store-slide--fan img,
  .store-slide--zhuse img { padding: 40px 26px 120px; }
  .store-slider__arrow { width: 40px; height: 40px; }
  .store-slider__arrow--prev { right: 12px; }
  .store-slider__arrow--next { left: 12px; }
  .store-slide__content { right: 20px; left: 20px; bottom: 24px; }
  .store-slide__content > strong { font-size: 1.65rem; }
  .store-slider__footer { min-height: 62px; padding: 13px 17px; }
  .store-slider__footer p { max-width: 190px; text-align: left; line-height: 1.55; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 340px; }
  .product-content > p:not(.product-category) { min-height: auto; }
}
