/* Device-fit layouts: desktop storefront + mobile app */

:root {
  --layout-gutter: 1rem;
  --layout-section: 1.5rem;
  --layout-max: 1280px;
}

@media (min-width: 768px) {
  :root {
    --layout-gutter: 1.5rem;
    --layout-section: 3rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --layout-gutter: 2rem;
    --layout-section: 4rem;
  }
}

/* ---------- Shared section shell ---------- */
.home-main {
  display: flex;
  flex-direction: column;
  gap: var(--layout-section);
  padding-block: 0.75rem 1.5rem;
}

.home-section {
  width: min(100% - (var(--layout-gutter) * 2), var(--layout-max));
  margin-inline: auto;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading, Cairo, sans-serif);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--foreground, #0f172a);
}

.home-section-head h2 iconify-icon {
  font-size: 1.5rem;
  color: var(--accent, #00b4d8);
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--primary, #0077b6);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.home-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-hero__frame {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(62vh, 440px);
  overflow: hidden;
  background: #dff0fa;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(240 248 255 / 97%) 8%,
    rgb(240 248 255 / 68%) 38%,
    rgb(240 248 255 / 12%) 72%,
    transparent
  );
}
@media (min-width: 768px) {
  .home-hero__shade {
    background: linear-gradient(
      to left,
      rgb(240 248 255 / 94%) 0%,
      rgb(240 248 255 / 70%) 28%,
      rgb(240 248 255 / 28%) 55%,
      transparent 78%
    );
  }
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  margin-inline: auto 0;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.home-hero__brand {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--secondary, #ffb703);
  color: #0f172a;
  font-family: var(--font-heading, Cairo, sans-serif);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(-2deg);
}

.home-hero__title {
  font-family: var(--font-heading, Cairo, sans-serif);
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--foreground, #0f172a);
  max-width: 18ch;
}

.home-hero__title span {
  color: var(--primary, #0077b6);
}

.home-hero__copy {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgb(15 23 42 / 78%);
  max-width: 34ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  background: var(--primary, #0077b6);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgb(0 119 182 / 28%);
}

.home-hero__cta:hover {
  background: color-mix(in srgb, var(--primary, #0077b6) 88%, #000);
}

/* ---------- Categories ---------- */
.home-cats__wrap {
  position: relative;
}

.home-cats__viewport {
  position: relative;
  overflow: hidden;
}

.home-cats__wrap.is-overflow .home-cats__viewport,
.home-brands__wrap.is-overflow .home-brands__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.75rem, #000 calc(100% - 1.75rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.75rem, #000 calc(100% - 1.75rem), transparent);
}

.home-cats__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.25rem, 9.25rem);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--layout-gutter);
  -webkit-overflow-scrolling: touch;
  padding-block: 0.2rem 0.55rem;
  margin-inline: calc(-1 * var(--layout-gutter));
  padding-inline: var(--layout-gutter);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.home-cats__rail::-webkit-scrollbar {
  display: none;
}

.home-cats__rail.is-dragging,
.home-brands__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.home-cats__rail.is-dragging a,
.home-brands__rail.is-dragging a {
  pointer-events: none;
}

.home-cats__rail img,
.home-brands__rail img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.home-cat {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--foreground, #0f172a);
}

.home-cat:focus-visible {
  outline: 3px solid rgb(0 119 182 / 35%);
  outline-offset: 2px;
}

.home-cat__icon {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgb(15 23 42 / 6%);
  background: linear-gradient(145deg, #f8fbff, #e8f4fb);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-cat:nth-child(6n + 2) .home-cat__icon {
  border-radius: 999px;
  background: linear-gradient(145deg, #ecfeff, #cffafe);
}

.home-cat:nth-child(6n + 3) .home-cat__icon {
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
}

.home-cat:nth-child(6n + 4) .home-cat__icon {
  border-radius: 999px;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
}

.home-cat:nth-child(6n + 5) .home-cat__icon {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
}

.home-cat:nth-child(6n) .home-cat__icon {
  border-radius: 999px;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
}

.home-cat__icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.home-cat__icon iconify-icon {
  font-size: 2rem;
}

.home-cat:nth-child(6n + 4) .home-cat__icon iconify-icon { color: #ef476f; }
.home-cat:nth-child(6n + 5) .home-cat__icon iconify-icon { color: #06d6a0; }
.home-cat:nth-child(6n) .home-cat__icon iconify-icon { color: #0077b6; }

.home-cat__label {
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 100%;
}

.home-cat:hover .home-cat__icon {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgb(15 23 42 / 10%);
}

/* ---------- Product grid ---------- */
.home-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.55rem;
  border-radius: 1.1rem;
  border: 1px solid rgb(203 213 225 / 45%);
  background: #fff;
  box-shadow: 0 6px 18px rgb(15 23 42 / 4%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-product:hover {
  border-color: color-mix(in srgb, var(--primary, #0077b6) 28%, transparent);
  box-shadow: 0 12px 28px rgb(15 23 42 / 7%);
  transform: translateY(-2px);
}

.home-product__wish,
.home-product__badge {
  position: absolute;
  z-index: 6;
  top: 0.45rem;
}

.home-product__wish {
  inset-inline-start: 0.45rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #64748b;
  box-shadow: 0 4px 12px rgb(15 23 42 / 8%);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-product__wish:hover {
  color: var(--destructive, #ef476f);
  transform: scale(1.06);
}

.home-product__wish.is-active,
.home-product__wish.active {
  color: #fff;
  background: var(--destructive, #ef476f);
}

.home-product__badge {
  inset-inline-end: 0.45rem;
  padding: 0.18rem 0.45rem;
  border-radius: 0.4rem;
  background: var(--destructive, #ef476f);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.home-product__badge.is-new {
  background: var(--accent, #00b4d8);
}

.home-product__media {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 0.45rem;
  overflow: hidden;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--muted, #e0e8f5) 40%, #fff);
}

.home-product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
  transition: transform 400ms ease;
}

.home-product:hover .home-product__media img {
  transform: scale(1.04);
}

.home-product__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
  padding-inline: 0.15rem;
}

.home-product__brand {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--muted-foreground, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2rem;
  color: var(--foreground, #0f172a);
  text-decoration: none;
}

.home-product__title:hover {
  color: var(--primary, #0077b6);
}

.home-product__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.1rem 0 0;
  color: var(--secondary, #ffb703);
  font-size: 0.7rem;
  line-height: 1;
}

.home-product__meta strong {
  font-weight: 900;
  color: var(--foreground, #0f172a);
}

.home-product__meta span {
  color: var(--muted-foreground, #64748b);
  font-weight: 700;
}

.home-product__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  padding-inline: 0.1rem;
  border-top: 1px solid rgb(226 232 240 / 80%);
}

.home-product__offer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.home-product__price {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--primary, #0077b6);
  line-height: 1.2;
}

.home-product__price .tp-product-price-wrapper,
.home-product__price .pdp-price__stack,
.home-product__price .pdp-price__row,
.home-product__price .home-product__from-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.home-product__price .tp-product-price,
.home-product__price .new-price,
.home-product__price .home-product__from-value,
.home-product__price [data-bb-value="product-price"] {
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  color: var(--primary, #0077b6) !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.home-product__from-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted-foreground, #64748b);
}

.home-product__price .old-price,
.home-product__price s,
.home-product__price del {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: var(--muted-foreground, #64748b) !important;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--destructive, #ef476f) 45%, transparent);
}

.home-product__price .pdp-price__save,
.home-product__price .pdp-price__moq,
.home-product__price .tp-vendor-wholesale-card__row {
  display: none !important;
}

.home-product__pts {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.12rem;
  padding: 0.16rem 0.45rem 0.16rem 0.32rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #fef9c3 140%);
  border: 1px solid rgb(16 185 129 / 22%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 70%) inset;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: #047857;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-product__pts-icon {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #fff;
  box-shadow: 0 2px 6px rgb(245 158 11 / 35%);
  animation: home-pts-twinkle 2.4s ease-in-out infinite;
}

.home-product__pts-icon iconify-icon {
  display: block;
}

.home-product__pts-value {
  font-weight: 900;
  color: #065f46;
}

.home-product__pts-label {
  font-weight: 700;
  color: #059669;
  opacity: 0.92;
}

.home-product:hover .home-product__pts {
  border-color: rgb(16 185 129 / 38%);
  transform: translateY(-1px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

@keyframes home-pts-twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.12) rotate(-8deg);
    filter: brightness(1.12);
  }
  70% {
    transform: scale(1.04) rotate(6deg);
    filter: brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-product__pts-icon {
    animation: none;
  }

  .home-product:hover .home-product__pts {
    transform: none;
  }
}

.home-product__cart {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #0077b6) 92%, #000);
  color: #fff;
  box-shadow: 0 6px 14px rgb(0 119 182 / 22%);
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.home-product__cart:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgb(0 119 182 / 28%);
}

/* ---------- Promo ---------- */
.home-promo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 190px;
  border-radius: 1.25rem;
  background: var(--secondary, #ffb703);
  box-shadow: 0 14px 36px rgb(255 183 3 / 28%);
}

.home-promo__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.home-promo__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(255 183 3 / 96%) 10%,
    rgb(255 183 3 / 72%) 48%,
    rgb(255 183 3 / 20%) 100%
  );
}

.home-promo__content {
  position: relative;
  z-index: 1;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.home-promo__kicker {
  font-size: 0.75rem;
  font-weight: 900;
  color: rgb(15 23 42 / 75%);
}

.home-promo__title {
  font-family: var(--font-heading, Cairo, sans-serif);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.home-promo__title em {
  font-style: normal;
  color: #fff;
  font-size: 1.85rem;
  text-shadow: 0 4px 12px rgb(15 23 42 / 18%);
}

.home-promo__copy {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(15 23 42 / 72%);
  max-width: 32ch;
}

.home-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.85rem;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

/* ---------- Trust ---------- */
.home-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.home-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.85rem 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgb(203 213 225 / 55%);
  background: #fff;
  box-shadow: 0 6px 16px rgb(15 23 42 / 4%);
}

.home-trust__item iconify-icon,
.home-trust__item .home-trust__icon,
.home-trust__item .home-trust__icon svg {
  font-size: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.home-trust__item strong {
  font-family: var(--font-heading, Cairo, sans-serif);
  font-size: 0.8125rem;
  font-weight: 900;
}

.home-trust__item span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted-foreground, #475569);
}

/* ---------- Request CTA ---------- */
.home-request {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary, #0077b6) 14%, transparent);
  background:
    linear-gradient(135deg, rgb(0 119 182 / 8%), rgb(0 180 216 / 8%) 45%, rgb(255 183 3 / 10%));
}

.home-request__body {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.home-request__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--secondary, #ffb703);
  color: #0f172a;
  box-shadow: 0 8px 18px rgb(255 183 3 / 30%);
}

.home-request__body h3 {
  font-family: var(--font-heading, Cairo, sans-serif);
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.home-request__body p {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground, #475569);
  line-height: 1.45;
}

.home-request__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--secondary, #ffb703);
  color: #0f172a;
  font-weight: 900;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgb(255 183 3 / 32%);
  transition: background 160ms ease, transform 160ms ease;
}

.home-request__cta:hover {
  background: color-mix(in srgb, var(--secondary, #ffb703) 88%, #000);
  color: #0f172a;
}

/* ---------- Desktop storefront ---------- */
@media (min-width: 768px) {
  .home-main {
    padding-block: 1.25rem 2.5rem;
  }

  .home-section-head {
    margin-bottom: 1.5rem;
  }

  .home-section-head h2 {
    font-size: 1.75rem;
    gap: 0.75rem;
  }

  .home-section-head h2 iconify-icon {
    font-size: 2rem;
  }

  .home-section-link {
    font-size: 0.875rem;
  }

  .home-hero {
    width: 100%;
    margin-inline: 0;
  }

  .home-hero__frame {
    min-height: 420px;
    max-height: 480px;
    align-items: center;
    border-radius: 2rem;
    border: 4px solid #fff;
    box-shadow: 0 22px 48px rgb(15 23 42 / 12%);
  }

  .home-hero__media {
    object-position: center center;
  }

  .home-hero__shade {
    background: linear-gradient(
      to left,
      rgb(240 248 255 / 94%) 0%,
      rgb(240 248 255 / 72%) 38%,
      rgb(240 248 255 / 18%) 68%,
      transparent 100%
    );
  }

  .home-hero__content {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-inline: auto;
    padding: 3rem 0;
    display: grid;
    justify-items: start;
    gap: 1rem;
  }

  .home-hero__content > * {
    max-width: 34rem;
  }

  .home-hero__brand {
    font-size: 0.82rem;
    padding: 0.4rem 1rem;
  }

  .home-hero__title {
    font-size: clamp(2rem, 3vw, 3rem);
    max-width: 14ch;
  }

  .home-hero__copy {
    font-size: 1.0625rem;
    max-width: 36ch;
    -webkit-line-clamp: 3;
  }

  .home-hero__cta {
    width: auto;
    min-height: 52px;
    padding-inline: 2rem;
    font-size: 1.0625rem;
  }

  .home-cats__rail {
    grid-auto-columns: minmax(10.5rem, 11.25rem);
    gap: 1rem;
    margin-inline: 0;
    padding-inline: 0.15rem;
    scroll-padding-inline: 0.15rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .home-cats__wrap.is-overflow .home-cats__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.4rem, #000 calc(100% - 2.4rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2.4rem, #000 calc(100% - 2.4rem), transparent);
  }

  .home-cat {
    gap: 0.75rem;
  }

  .home-cat__icon {
    width: 100%;
    aspect-ratio: 1;
    border-width: 4px;
    border-radius: 2rem;
    box-shadow: 0 10px 28px rgb(15 23 42 / 6%);
  }

  .home-cat:nth-child(even) .home-cat__icon {
    border-radius: 999px;
  }

  .home-cat__icon iconify-icon {
    font-size: 3.25rem;
  }

  .home-cat__label {
    font-size: 0.875rem;
  }

  .home-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .home-product {
    padding: 0.85rem;
    border-radius: 1.2rem;
  }

  .home-product__wish {
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    width: 40px;
    height: 40px;
  }

  .home-product__badge {
    top: 0.75rem;
    inset-inline-end: 0.75rem;
  }

  .home-product__media {
    margin-bottom: 0.65rem;
    border-radius: 0.9rem;
  }

  .home-product__title {
    font-size: 0.875rem;
    min-height: 2.5rem;
    line-height: 1.25rem;
  }

  .home-product__price,
  .home-product__price .tp-product-price,
  .home-product__price .new-price,
  .home-product__price .home-product__from-value,
  .home-product__price [data-bb-value="product-price"] {
    font-size: 1rem !important;
  }

  .home-product__cart {
    width: 40px;
    height: 40px;
  }

  .home-product__foot {
    margin-top: 0.7rem;
    padding-top: 0.55rem;
  }

  .home-promo {
    min-height: 300px;
    align-items: center;
    border-radius: 1.5rem;
    border: 4px solid var(--secondary, #ffb703);
  }

  .home-promo__shade {
    background: linear-gradient(
      to right,
      rgb(255 183 3 / 94%) 0%,
      rgb(255 183 3 / 72%) 45%,
      rgb(255 183 3 / 15%) 100%
    );
  }

  .home-promo__content {
    width: min(62%, 36rem);
    padding: 2.5rem 3rem;
    gap: 0.85rem;
  }

  .home-promo__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
  }

  .home-promo__title {
    font-size: clamp(2rem, 3vw, 3rem);
  }

  .home-promo__title em {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }

  .home-promo__copy {
    font-size: 1.0625rem;
    max-width: 34ch;
  }

  .home-promo__cta {
    width: auto;
    margin-top: 0.5rem;
    padding-inline: 1.75rem;
  }

  .home-trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .home-trust__item {
    padding: 1.25rem 1rem;
    border-radius: 1.25rem;
    border-width: 2px;
    gap: 0.5rem;
  }

  .home-trust__item iconify-icon {
    font-size: 2.25rem;
  }

  .home-trust__item strong {
    font-size: 0.9375rem;
  }

  .home-trust__item span {
    font-size: 0.75rem;
  }

  .home-request {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.25rem;
    border-radius: 1.75rem;
    border-width: 2px;
  }

  .home-request__icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 1rem;
  }

  .home-request__icon iconify-icon {
    font-size: 1.75rem;
  }

  .home-request__body h3 {
    font-size: 1.5rem;
  }

  .home-request__body p {
    font-size: 0.9375rem;
  }

  .home-request__cta {
    width: auto;
    flex-shrink: 0;
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__frame {
    min-height: 460px;
    max-height: 520px;
  }

  .home-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .home-cats__rail {
    grid-auto-columns: minmax(10.5rem, 11.25rem);
    gap: 1rem;
  }
}

@media (max-width: 379px) {
  .home-cats__rail {
    grid-auto-columns: 80px;
    gap: 0.55rem;
  }

  .home-products {
    gap: 0.5rem;
  }

  .home-product {
    padding: 0.5rem;
    border-radius: 1rem;
  }
}

/* Tablet bridge */
@media (min-width: 768px) and (max-width: 1023px) {
  .home-cats__rail {
    grid-auto-columns: minmax(10.5rem, 11.25rem);
  }

  .home-hero__frame {
    min-height: min(58vh, 460px);
  }

  .home-hero__content {
    padding-block: 2.25rem;
  }
}

/* Soften mobile chrome so layout.css owns home composition */
@media (max-width: 767px) {
  .page-home .home-main {
    padding-top: 0.25rem !important;
    padding-bottom: calc(var(--mobile-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 1rem) !important;
  }

  .page-home .home-hero__frame {
    box-shadow: 0 16px 40px rgb(0 119 182 / 16%);
  }

  .page-home footer {
    margin-top: 0.5rem !important;
  }
}

/* Desktop header polish */
@media (min-width: 768px) {
  .page-home header {
    border-bottom-width: 0 !important;
    box-shadow: 0 1px 0 rgb(15 23 42 / 6%), 0 12px 32px rgb(15 23 42 / 4%);
  }

  .page-home header .absolute.-bottom-3,
  .page-home header [class*="-bottom-3"] {
    opacity: 0.12;
  }

  .page-home .bg-secondary .container {
    justify-content: center;
  }

  .home-section-link {
    font-size: 0.9375rem;
  }
}

/* ---------- Promo grids ---------- */
.home-promos-grid {
  display: grid;
  gap: 1rem;
}

.home-promos-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.home-promos-grid--2 {
  grid-template-columns: minmax(0, 1fr);
}

.home-promos-grid--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-promo--compact {
  min-height: 160px;
}

.home-promo--compact .home-promo__title {
  font-size: 1.125rem;
}

.home-promo--alt {
  background: var(--muted, #e0e8f5);
  box-shadow: 0 10px 28px rgb(15 23 42 / 8%);
}

.home-promo--alt .home-promo__shade {
  background: linear-gradient(
    to top,
    rgb(224 232 245 / 96%) 12%,
    rgb(224 232 245 / 55%) 55%,
    transparent 100%
  );
}

.home-section--wide {
  width: 100%;
  max-width: none;
  padding-inline: var(--layout-gutter);
}

/* ---------- Hero slider extras ---------- */
.home-hero--full .home-hero__frame {
  min-height: min(52vh, 420px);
}

.home-hero__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

@media (min-width: 768px) {
  .home-promos-grid--2 {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  }

  .home-promos-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Sea home hero polish + brands rail */
.home-hero {
  margin-block: 0.75rem 1.25rem;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .home-hero {
    margin-block: 1.25rem 2rem;
    padding-inline: max(1rem, calc((100% - var(--site-max-width, 1280px)) / 2 + 1rem));
  }
}
.home-hero .shein-trends-main-slider,
.home-hero .swiper-container {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 0;
  box-shadow: 0 16px 40px rgb(15 23 42 / 10%);
}
@media (min-width: 768px) {
  .home-hero .shein-trends-main-slider,
  .home-hero .swiper-container {
    border-radius: 2rem;
    border: 4px solid #fff;
  }
}
.home-hero__frame {
  min-height: 280px !important;
  border-radius: inherit;
}
@media (min-width: 768px) {
  .home-hero__frame {
    min-height: 450px !important;
    align-items: center !important;
  }
}
.home-hero__brand {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--secondary, #ffb703);
  color: var(--secondary-foreground, #000);
  font-weight: 900;
  font-size: 0.8125rem;
  transform: rotate(-2deg);
  margin: 0 0 0.35rem;
}
.home-hero__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.home-hero__nav {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}
.home-hero__nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgb(15 23 42 / 12%);
  cursor: pointer;
}
.home-hero__dots {
  position: absolute;
  inset-inline-start: 1rem;
  bottom: 1.1rem;
  z-index: 5;
}
.home-hero-products {
  padding-top: 0.25rem;
}

/* Hide legacy swiper nav if shortcode still emits it */
.tp-product-categories-button-prev,
.tp-product-categories-button-next,
.tp-brand-slider-button-prev,
.tp-brand-slider-button-next {
  display: none !important;
}

/* ---------- Brands showcase rail ---------- */
.home-brands__wrap {
  position: relative;
}

.home-brands__viewport {
  position: relative;
  overflow: hidden;
}

.home-brands__wrap.is-overflow .home-brands__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.75rem, #000 calc(100% - 1.75rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.75rem, #000 calc(100% - 1.75rem), transparent);
}

.home-brands__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.25rem, 9.25rem);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--layout-gutter);
  -webkit-overflow-scrolling: touch;
  padding-block: 0.2rem 0.55rem;
  margin-inline: calc(-1 * var(--layout-gutter));
  padding-inline: var(--layout-gutter);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.home-brands__rail::-webkit-scrollbar {
  display: none;
}

.home-brands__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.home-brand {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  text-align: center;
  color: inherit;
  background: #fff;
  border: 2px solid rgb(203 213 225 / 45%);
  border-radius: 1.25rem;
  padding: 1.15rem 0.85rem 1rem;
  min-height: 9.25rem;
  box-shadow: 0 8px 20px rgb(15 23 42 / 4%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-brand:hover {
  border-color: rgb(0 119 182 / 40%);
  box-shadow: 0 16px 32px rgb(15 23 42 / 9%);
  transform: translateY(-3px);
  color: inherit;
}

.home-brand:focus-visible {
  outline: 3px solid rgb(0 119 182 / 35%);
  outline-offset: 2px;
}

.home-brand__logo {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.home-brand:hover .home-brand__logo {
  transform: scale(1.06);
}

.home-brand__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-brand__logo--blue { background: linear-gradient(145deg, #eff6ff, #dbeafe); }
.home-brand__logo--rose { background: linear-gradient(145deg, #fff1f2, #ffe4e6); }
.home-brand__logo--amber { background: linear-gradient(145deg, #fffbeb, #fef3c7); }
.home-brand__logo--cyan { background: linear-gradient(145deg, #ecfeff, #cffafe); }
.home-brand__logo--emerald { background: linear-gradient(145deg, #ecfdf5, #d1fae5); }
.home-brand__logo--indigo { background: linear-gradient(145deg, #eef2ff, #e0e7ff); }
.home-brand__logo--sky { background: linear-gradient(145deg, #f0f9ff, #e0f2fe); }
.home-brand__logo--slate { background: linear-gradient(145deg, #f8fafc, #e2e8f0); }

.home-brand__meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
}

.home-brand__name {
  font-family: var(--font-heading, Cairo, sans-serif);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-brand:hover .home-brand__name {
  color: var(--primary, #0077b6);
}

.home-brand__count {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted-foreground, #475569);
}

.home-brands__nav,
.home-cats__nav {
  display: grid;
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1.5px solid rgb(203 213 225 / 70%);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgb(15 23 42 / 12%);
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.home-brands__nav iconify-icon,
.home-cats__nav iconify-icon {
  font-size: 1.2rem;
}

.home-brands__nav:hover,
.home-cats__nav:hover {
  border-color: rgb(0 119 182 / 45%);
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.home-brands__nav:focus-visible,
.home-cats__nav:focus-visible {
  outline: 3px solid rgb(0 119 182 / 35%);
  outline-offset: 2px;
}

.home-brands__nav--prev,
.home-cats__nav--prev {
  inset-inline-start: -0.55rem;
}

.home-brands__nav--next,
.home-cats__nav--next {
  inset-inline-end: -0.55rem;
}

.home-brands__nav[hidden],
.home-cats__nav[hidden] {
  display: none !important;
}

.home-section-head__text {
  min-width: 0;
}

.home-section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .home-brands__rail {
    grid-auto-columns: minmax(10.5rem, 11.25rem);
    gap: 1rem;
    margin-inline: 0;
    padding-inline: 0.15rem;
    scroll-padding-inline: 0.15rem;
  }

  .home-brands__wrap.is-overflow .home-brands__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.4rem, #000 calc(100% - 2.4rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2.4rem, #000 calc(100% - 2.4rem), transparent);
  }

  .home-brand {
    min-height: 11.25rem;
    border-radius: 1.35rem;
    padding: 1.4rem 1.05rem 1.2rem;
    gap: 0.9rem;
  }

  .home-brand__logo {
    width: 5.15rem;
    height: 5.15rem;
    border-radius: 1.25rem;
    padding: 0.6rem;
  }

  .home-brand__name {
    font-size: 1.02rem;
  }

  .home-brand__count {
    font-size: 0.78rem;
  }

  .home-brands__nav,
  .home-cats__nav {
    width: 2.85rem;
    height: 2.85rem;
  }

  .home-brands__nav--prev,
  .home-cats__nav--prev {
    inset-inline-start: -0.85rem;
  }

  .home-brands__nav--next,
  .home-cats__nav--next {
    inset-inline-end: -0.85rem;
  }
}

@media (max-width: 767.98px) {
  .home-brands__nav,
  .home-cats__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .home-cats__nav {
    display: none !important;
  }

  .home-cats__viewport {
    overflow: visible;
  }

  .home-cats__wrap.is-overflow .home-cats__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
