/* Scoped homepage shop-discovery section (services + categories).
   Does not restyle header, slider, footer, or unrelated modules. */

.shop-discovery,
.shop-discovery * {
  box-sizing: border-box;
}

.shop-discovery {
  --sd-ink: #09132c;
  --sd-accent: #ff8200;
  --sd-muted: #566477;
  --sd-u: clamp(0.65px, 0.04859vw, 1px);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: var(--sd-ink);
  padding: calc(38 * var(--sd-u)) 0 calc(56 * var(--sd-u));
  background: radial-gradient(ellipse at 52% 45%, #fff 0%, #fafbfe 44%, #eef1fb 100%);
  font-family: inherit;
}

.shop-discovery::before,
.shop-discovery::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 38%;
  height: 80%;
  border-radius: 48%;
  background: linear-gradient(145deg, #e4e9fb55, #fff0);
  transform: rotate(-38deg);
}

.shop-discovery::before {
  top: -43%;
  left: -16%;
  border-bottom: 2px solid #fff9;
}

.shop-discovery::after {
  bottom: -62%;
  right: -9%;
  border-top: 2px solid #fff9;
}

.sd-services {
  /* Viewport-based shell — kept in sync with modern-2026 --s26-shell-* */
  width: min(1778px, 86.3vw);
  max-width: 1778px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: calc(112 * var(--sd-u));
  border-radius: calc(60 * var(--sd-u));
  background: linear-gradient(100deg, #ffffffd9, #f6f8fc);
  box-shadow: 0 16px 30px #293e7910;
  padding: calc(4 * var(--sd-u)) calc(24 * var(--sd-u));
}

.sd-service {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(24 * var(--sd-u));
  min-width: 0;
  padding: 0 calc(13 * var(--sd-u));
}

.sd-service:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 44%;
  width: calc(12 * var(--sd-u));
  height: calc(12 * var(--sd-u));
  border-left: calc(4 * var(--sd-u)) solid #99a5bd;
  border-bottom: calc(4 * var(--sd-u)) solid #99a5bd;
  transform: rotate(45deg);
}

.sd-service img {
  flex: none;
  width: calc(105 * var(--sd-u));
  height: calc(102 * var(--sd-u));
  object-fit: contain;
  border-radius: calc(22 * var(--sd-u));
}

.sd-service:first-child img {
  width: calc(162 * var(--sd-u));
  height: calc(83 * var(--sd-u));
}

.sd-service h3 {
  margin: 0 0 calc(5 * var(--sd-u));
  font-size: calc(23 * var(--sd-u));
  font-weight: 800;
  line-height: 1.6;
  color: var(--sd-ink);
}

.sd-service p {
  margin: 0;
  font-size: calc(17 * var(--sd-u));
  font-weight: 500;
  color: #39465d;
  line-height: 1.6;
}

.sd-heading {
  text-align: center;
  margin: calc(48 * var(--sd-u)) auto calc(32 * var(--sd-u));
  padding: 0 16px;
}

.sd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: calc(16 * var(--sd-u));
  font-size: calc(19 * var(--sd-u));
  font-weight: 750;
  color: var(--sd-ink);
}

.sd-eyebrow::before,
.sd-eyebrow::after {
  content: "";
  width: calc(89 * var(--sd-u));
  height: 1px;
  background: var(--sd-accent);
}

.sd-heading h2 {
  font-weight: 900;
  font-size: calc(40 * var(--sd-u));
  line-height: 1.5;
  margin: calc(8 * var(--sd-u)) 0 calc(6 * var(--sd-u));
  color: var(--sd-ink);
}

.sd-heading p {
  font-size: calc(20 * var(--sd-u));
  line-height: 1.7;
  margin: 0;
  color: var(--sd-muted);
}

.sd-grid {
  /* Same desktop shell as .sd-services / site content width */
  width: min(1778px, 86.3vw);
  max-width: 1778px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(22 * var(--sd-u));
}

.sd-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
  min-width: 0;
  background: linear-gradient(145deg, #fff, #fdfdfe);
  border: 1px solid #e5e9f4;
  border-radius: calc(36 * var(--sd-u));
  box-shadow: 0 12px 18px #26375e12;
  min-height: calc(319 * var(--sd-u));
  padding: calc(8 * var(--sd-u)) calc(30 * var(--sd-u)) calc(26 * var(--sd-u));
  transition: transform 0.2s, box-shadow 0.2s;
}

.sd-category > img {
  width: calc(180 * var(--sd-u));
  height: calc(171 * var(--sd-u));
  max-width: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.sd-category h3 {
  font-size: calc(27 * var(--sd-u));
  line-height: 1.6;
  text-align: center;
  font-weight: 850;
  margin: calc(6 * var(--sd-u)) 0 calc(20 * var(--sd-u));
  color: var(--sd-ink);
}

.sd-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--sd-u));
  width: 100%;
  max-width: 252px;
  border-radius: 999px;
  background: linear-gradient(100deg, #f0edf6, #fbece6);
  padding: calc(12 * var(--sd-u)) calc(8 * var(--sd-u));
  font-size: calc(18 * var(--sd-u));
  font-weight: 800;
  white-space: nowrap;
  color: var(--sd-ink);
}

.sd-cta svg {
  width: calc(27 * var(--sd-u));
  height: calc(27 * var(--sd-u));
  fill: none;
  stroke: var(--sd-accent);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sd-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 25px #26375e20;
  color: inherit !important;
  text-decoration: none !important;
}

.sd-category:focus-visible {
  outline: 3px solid var(--sd-accent);
  outline-offset: 3px;
}

/* Hide legacy overlapping strips on homepage only
   (old reassurance + old custom category cards duplicate shop-discovery) */
body#index .elhomeblocks,
body.page-index .elhomeblocks,
body#index .elcustomblocks,
body.page-index .elcustomblocks,
#index #content.s26-home > .elhomeblocks,
#index #content.s26-home > .elcustomblocks {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  .shop-discovery {
    --sd-u: 0.85px;
    padding: 28px 0 36px;
  }

  .sd-services {
    width: min(1778px, 92vw);
    border-radius: 28px;
  }

  .sd-grid {
    width: min(1778px, 92vw);
  }
}

@media (max-width: 900px) {
  .shop-discovery {
    --sd-u: 0.8px;
    padding: 24px 0 32px;
  }

  .sd-services {
    width: min(1778px, 92vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 24px;
    gap: 12px;
    padding: 12px;
    min-height: 0;
  }

  .sd-service {
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
  }

  .sd-service::after {
    display: none;
  }

  .sd-service img,
  .sd-service:first-child img {
    width: 65px;
    height: 65px;
  }

  .sd-service h3 {
    font-size: 17px;
  }

  .sd-service p {
    font-size: 12px;
  }

  .sd-grid {
    width: min(1778px, 92vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-heading h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .shop-discovery {
    --sd-u: 0.65px;
    padding: 18px 0 28px;
  }

  .sd-services {
    gap: 14px 8px;
    padding: 12px 10px;
  }

  .sd-service img,
  .sd-service:first-child img {
    width: 42px;
    height: 45px;
  }

  .sd-service h3 {
    font-size: 14px;
  }

  .sd-service p {
    font-size: 10px;
  }

  .sd-heading {
    margin: 28px auto 20px;
  }

  .sd-heading h2 {
    font-size: 23px;
  }

  .sd-heading p {
    font-size: 13px;
  }

  .sd-eyebrow {
    font-size: 14px;
  }

  .sd-category {
    padding: 8px 10px 16px;
    min-height: 195px;
    border-radius: 22px;
  }

  .sd-category h3 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .sd-cta {
    font-size: 12px;
    gap: 7px;
    min-height: 40px;
    max-width: 100%;
  }

  .sd-cta svg {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-category {
    transition: none;
  }

  .sd-category:hover {
    transform: none;
  }
}
