/* Website home only. The Mini App and dedicated product pages use their existing skins. */
html[data-storefront-surface="website"] body.homepage {
  --home-night: #08111f;
  --home-panel: #101d30;
  --home-border: #2b3d58;
  --home-text: #f4f8ff;
  --home-muted: #b7c8de;
  --home-action: #2158d6;
  --home-focus: #a5c1ff;
  --home-radius: 16px;
  background: var(--home-night);
}

html[data-storefront-surface="website"] .homepage .site-header {
  position: relative;
  min-height: 68px;
  padding-inline: max(16px, calc((100% - 1180px) / 2 + 24px));
}

html[data-storefront-surface="website"] .homepage :is(.account-trigger, .language-button) {
  min-block-size: 44px;
  min-inline-size: 44px;
  border-radius: 10px;
}

html[data-storefront-surface="website"] .homepage .supplier-notice {
  display: none;
}

html[data-storefront-surface="website"] .homepage .home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-block-size: 390px;
  margin-block: clamp(12px, 2.3vw, 28px) 0;
  padding: clamp(24px, 3.6vw, 48px);
  border: 1px solid var(--home-border);
  border-radius: 26px;
  background: #101e34;
  overflow: hidden;
  isolation: isolate;
}

html[data-storefront-surface="website"] .homepage .home-mini-eyebrow {
  display: none;
}

html[data-storefront-surface="website"] .homepage .home-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.15rem);
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -.045em;
}

html[data-storefront-surface="website"][dir="rtl"] .homepage .home-hero h1 {
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  line-height: 1.21;
  letter-spacing: normal;
}

html[data-storefront-surface="website"] .homepage .home-hero .web-accent {
  color: #aec8ff;
}

html[data-storefront-surface="website"] .homepage .home-hero p {
  margin-block: 16px 0;
  max-width: 39ch;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

html[data-storefront-surface="website"] .homepage .home-hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: 25px;
}

html[data-storefront-surface="website"] .homepage :is(.web-hero-cta, .home-secondary) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 8px 17px;
  border-radius: 11px;
  font-size: .9375rem;
  font-weight: 750;
}

html[data-storefront-surface="website"] .homepage .web-hero-cta {
  background: var(--home-action);
  color: #fff;
}

html[data-storefront-surface="website"] .homepage .web-hero-cta:hover {
  background: #1746b8;
}

html[data-storefront-surface="website"] .homepage .home-secondary {
  border: 1px solid #536683;
  color: var(--home-text);
}

html[data-storefront-surface="website"] .homepage .home-secondary:hover {
  background: #1b2e4b;
}

html[data-storefront-surface="website"] .homepage .home-hero .home-hero-payment {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
}

.home-payment-marks {
  display: inline-flex;
  gap: 4px;
  direction: ltr;
}

html[data-storefront-surface="website"] .homepage .home-visual {
  --visual-x: 0px;
  --visual-y: 0px;
  display: grid !important;
  place-items: center;
  position: relative;
  direction: ltr;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.39;
  border: 1px solid #324866;
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(25, 52, 96, .75), transparent 67%),
    #0a1426;
  overflow: hidden;
}

.home-visual::before,
.home-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid #39547e;
  border-radius: 50%;
  transform: rotate(-19deg) scaleY(.66);
}

.home-visual::after {
  width: 87%;
  border-color: #243d62;
}

.home-visual[data-rendered]::before,
.home-visual[data-rendered]::after {
  opacity: .24;
}

.home-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-visual canvas[hidden] {
  display: none;
}

.home-device {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 32%;
  aspect-ratio: 1.06;
  border: 1px solid #789ce7;
  border-radius: 24%;
  background: linear-gradient(145deg, #25477d, #0f1b31 72%);
  box-shadow: -8px 11px 0 #08101e, -8px 12px 0 1px #2c436a, 0 18px 42px #02081199;
  transform: translate(var(--visual-x), var(--visual-y)) rotate(-11deg);
}

.home-device img {
  display: block;
  width: 69%;
  height: auto;
  border-radius: 16%;
}

.home-app {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border: 1px solid #d5e3ff;
  border-radius: 12px;
  background: #f7faff;
  color: #121e35;
  box-shadow: 0 14px 28px #03091165;
  font: 800 clamp(.7rem, 1.18vw, .94rem)/1 ManropeWebsite, Arial, sans-serif;
}

.home-app img {
  flex: none;
  width: clamp(22px, 4vw, 35px);
  height: auto;
}

.home-app-chatgpt {
  inset: 15% auto auto 9%;
  transform: translate(var(--visual-x), var(--visual-y)) rotate(-8deg);
}

.home-app-chatgpt img {
  filter: brightness(.26) saturate(1.3);
}

.home-app-gemini {
  inset: 29% 8% auto auto;
  transform: translate(var(--visual-x), var(--visual-y)) rotate(9deg);
}

.home-app-capcut {
  inset: auto 21% 13% auto;
  transform: translate(var(--visual-x), var(--visual-y)) rotate(-6deg);
}

html[data-storefront-surface="website"] .homepage .products-section {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 290px);
  gap: 14px 18px;
  padding: 0;
  margin-block: clamp(28px, 4vw, 54px) clamp(32px, 5vw, 56px);
  border: 0;
  background: none;
  color: var(--home-text);
  box-shadow: none;
  overflow: visible;
  scroll-margin-top: 16px;
}

html[data-storefront-surface="website"] .homepage .web-shop-heading {
  padding: 0;
  border: 0;
  background: none;
  animation: none;
}

html[data-storefront-surface="website"] .homepage .web-shop-heading h2 {
  color: var(--home-text) !important;
  font-size: clamp(1.5rem, 3vw, 2.125rem) !important;
  line-height: 1.25;
  letter-spacing: normal !important;
  text-transform: none;
}

html[data-storefront-surface="website"] .homepage .web-shop-heading p {
  display: block;
  color: var(--home-muted) !important;
  font-size: .9375rem !important;
}

html[data-storefront-surface="website"] .homepage :is(.section-heading, .catalog-controls, .activity-controls) {
  padding: 0;
  margin: 0;
}

html[data-storefront-surface="website"] .homepage .catalog-controls {
  min-width: 0;
  gap: 8px;
}

html[data-storefront-surface="website"] .homepage .catalog-result,
html[data-storefront-surface="website"] .homepage .catalog-result strong {
  color: var(--home-muted);
}

html[data-storefront-surface="website"] .homepage .web-cols {
  display: none !important;
}

html[data-storefront-surface="website"] .homepage .product-grid {
  grid-row: auto;
  margin: 0;
}

html[data-storefront-surface="website"] .homepage .activity-controls:has(.activity-toggle[hidden]) {
  display: none;
}

html[data-storefront-surface="website"] .homepage .search-box,
html[data-storefront-surface="website"] .homepage .web-category-tabs button,
html[data-storefront-surface="website"] .homepage #viewToggle,
html[data-storefront-surface="website"] .homepage .activity-toggle {
  background: #101d30;
  color: var(--home-muted);
  border-color: var(--home-border);
}

html[data-storefront-surface="website"] .homepage .search-box input {
  color: var(--home-text);
}

html[data-storefront-surface="website"] .homepage .search-box input::placeholder {
  color: var(--home-muted);
}

html[data-storefront-surface="website"] .homepage .search-box svg {
  stroke: var(--home-muted);
}

html[data-storefront-surface="website"] .homepage :is(.search-box, [data-web-category], .filter-orb, .filter-toggle) {
  min-height: 44px;
  border-radius: 10px;
}

html[data-storefront-surface="website"] .homepage .web-category-tabs button[aria-pressed="true"],
html[data-storefront-surface="website"] .homepage #viewToggle[aria-pressed="true"] {
  background: #234883 !important;
  color: #edf4ff !important;
  border-color: #739bdd !important;
}

html[data-storefront-surface="website"] .homepage #viewToggle {
  min-height: 44px;
  min-width: 44px;
  border-radius: 10px;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) > .product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 9px;
  padding: clamp(15px, 2vw, 22px);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  background: var(--home-panel);
  color: var(--home-text);
  box-shadow: none;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .web-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 12px;
  text-align: start;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .web-card-header .card-topline {
  flex-direction: row;
  width: auto;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .card-heading p {
  color: var(--home-muted) !important;
  font-size: .875rem !important;
  line-height: 1.65 !important;
  text-align: start;
  min-height: 0;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .card-bottom {
  border-top: 0;
  padding-block-start: 4px;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .card-pricing {
  min-height: 0;
  align-items: flex-start;
  text-align: start;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .card-price {
  margin-block-start: 0;
  padding-block-start: 0;
  border-top: 0;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) :is(.card-price, .card-plan-count, .card-badges) {
  justify-content: flex-start;
  text-align: start;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) :is(.card-plan-count, .card-badges, .card-price-from) {
  min-height: 0;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .card-badges {
  flex-wrap: wrap;
  padding-inline: 0;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .card-price-from[hidden] {
  display: none !important;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .web-card-details {
  border-color: var(--home-border);
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) :is(.web-card-details summary, .web-card-info, .supplier-badge),
html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .web-card-details summary::after {
  color: var(--home-muted);
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .web-card-details summary {
  min-height: 44px;
  font-size: .875rem;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) .web-card-details .card-heading p {
  font-size: .875rem;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) > a.product-card .card-bottom {
  display: flex;
  align-items: center;
  margin-block-start: auto;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) > .product-card:hover {
  border-color: #6080ad;
  background: #162640;
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) :is(.card-heading p, .card-plan-count, .card-price-period, .web-plus-description, .web-plus-stock, .card-category) {
  color: var(--home-muted);
}

html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) :is(h3, .web-plus-price strong, .card-price strong) {
  color: var(--home-text);
}

html[data-storefront-surface="website"] .homepage .product-grid .card-cta {
  width: 100%;
  min-height: 48px;
  border: 1px solid #4979eb;
  border-radius: 9px;
  background: var(--home-action);
  color: #fff;
  font-size: .875rem;
}

html[data-storefront-surface="website"] .homepage .product-grid .card-cta:hover {
  background: #1746b8;
  color: #fff;
}

html[data-storefront-surface="website"] .homepage .product-grid .card-cta::after {
  content: none;
}

html[data-storefront-surface="website"] .homepage .product-grid.compact > .product-card {
  border-color: var(--home-border);
  border-radius: 12px;
}

html[data-storefront-surface="website"] .homepage :is(.web-access, .steps-section, .web-faq, .web-help) {
  scroll-margin-top: 22px;
}

html[data-storefront-surface="website"] .homepage .web-access-grid {
  gap: 14px;
}

html[data-storefront-surface="website"] .homepage .web-access-item,
html[data-storefront-surface="website"] .homepage .web-help {
  border-radius: var(--home-radius);
}

html[data-storefront-surface="website"] .homepage .web-faq-list summary {
  min-height: 48px;
  padding-block: 12px;
}

html[data-storefront-surface="website"] .homepage .site-footer {
  padding-inline: max(16px, calc((100% - 1180px) / 2 + 24px));
  margin-bottom: 0;
  background: #0d192b;
}

/* Keep the store directories visible as a single, open footer. */
html[data-storefront-surface="website"] .homepage .site-footer .footer-card {
  border: 0;
  background: transparent;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
}

html[data-storefront-surface="website"] .homepage .site-footer :is(.footer-strip, .footer-claim, .footer-support) {
  display: none !important;
}

html[data-storefront-surface="website"] .homepage .site-footer .footer-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  border: 0;
  padding: 0;
}

html[data-storefront-surface="website"] .homepage .site-footer .footer-col a {
  min-height: 38px;
  font-size: .9375rem;
}

html[data-storefront-surface="website"] .homepage .site-footer .footer-kicker {
  color: var(--home-text);
  font-size: .875rem;
  letter-spacing: normal;
  text-transform: none;
}

html[data-storefront-surface="website"] .homepage .site-footer .footer-pay {
  border: 0;
  padding: 0;
  margin-block-start: 12px;
}

@media (max-width: 740px) {
  html[data-storefront-surface="website"] .homepage .site-footer .footer-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html[data-storefront-surface="website"] .homepage .site-footer :is(.footer-blurb, .footer-support-note, .footer-kicker, .footer-base, .footer-base small) {
  color: var(--home-muted);
}

html[data-storefront-surface="website"] .homepage .site-footer .footer-base {
  margin-block-start: 24px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--home-border);
  line-height: 1.6;
}

html[data-storefront-surface="website"] .homepage :is(a, button, summary, input):focus-visible {
  outline: 2px solid var(--home-focus);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  html[data-storefront-surface="website"] .homepage .products-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  html[data-storefront-surface="website"] .homepage .section-heading,
  html[data-storefront-surface="website"] .homepage .catalog-controls {
    grid-column: 1;
  }

  html[data-storefront-surface="website"] .homepage .catalog-controls {
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-storefront-surface="website"] .homepage .activity-controls {
    grid-row: auto;
  }

  html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  html[data-storefront-surface="website"] .homepage .home-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-block-size: 0;
    padding: clamp(16px, 5vw, 32px);
  }

  html[data-storefront-surface="website"] .homepage .home-visual {
    aspect-ratio: 2.1;
    max-inline-size: 500px;
  }

  .home-device { width: 26%; }

  html[data-storefront-surface="website"] .homepage .site-footer .footer-card {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible;
  }

  html[data-storefront-surface="website"] .homepage .site-footer .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-inline: 0;
    border-inline: 0;
  }
}

@media (max-width: 520px) {
  html[data-storefront-surface="website"] .homepage .site-header {
    min-height: 60px;
  }

  html[data-storefront-surface="website"] .homepage .home-hero {
    margin-block-start: 14px;
    border-radius: 19px;
  }

  html[data-storefront-surface="website"] .homepage .home-hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  html[data-storefront-surface="website"][dir="rtl"] .homepage .home-hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.65rem);
  }

  html[data-storefront-surface="website"] .homepage .home-hero-actions {
    margin-block-start: 16px;
  }

  html[data-storefront-surface="website"] .homepage .home-hero p {
    margin-block-start: 12px;
  }

  html[data-storefront-surface="website"] .homepage .home-hero .home-hero-payment {
    margin-block-start: 10px;
  }

  html[data-storefront-surface="website"] .homepage .home-visual {
    border-radius: 13px;
  }

  html[data-storefront-surface="website"] .homepage .product-grid:not(.compact) {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-storefront-surface="website"] .homepage .web-category-tabs {
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px;
    margin: -4px;
    scrollbar-width: thin;
    scrollbar-color: #56739f #101d30;
  }

  html[data-storefront-surface="website"] .homepage .web-category-tabs button {
    flex: none;
  }

  .home-app { padding: 6px 8px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-storefront-surface="website"] .homepage :is(.product-card, .web-hero-cta, .home-secondary) {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  html[data-storefront-surface="website"] .homepage .home-visual {
    display: none !important;
  }

  html[data-storefront-surface="website"] .homepage [data-web-category][aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
}
