/* BLADY A. Summer Edition 2026
   Seasonal styles only. The structural site styles live in styles.css. */

:root {
  --summer-ocean: #087eae;
  --summer-sky: #56d5ef;
  --summer-sand: #ffe2a0;
  --summer-sun: #ffd15b;
  --summer-ink: #07385e;
  --summer-copy: #315d72;
}

/* One header surface and one navigation system. */
body > .topbar {
  position: relative !important;
  top: auto !important;
  z-index: 1000;
  overflow: visible !important;
  transform: none !important;
  isolation: isolate;
}

body > .topbar .nav {
  position: relative;
  z-index: 2;
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 2px;
  overflow: visible !important;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 13%, var(--line));
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: none;
}

body > .topbar .nav > a,
body > .topbar .nav-menu-trigger {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 999px;
  color: inherit;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
}

body > .topbar .nav > a::after {
  display: none;
}

body > .topbar .nav > a:hover,
body > .topbar .nav > a:focus-visible,
body > .topbar .nav-menu-trigger:hover,
body > .topbar .nav-menu-trigger:focus-visible,
body > .topbar .nav-dropdown.is-open .nav-menu-trigger {
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)) !important;
  outline: 0;
}

body > .topbar .nav > a:focus-visible,
body > .topbar .nav-menu-trigger:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent) !important;
}

body > .topbar .nav-dropdown {
  position: relative;
  display: flex;
  width: auto;
  min-width: 0;
}

body > .topbar .app-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: auto;
  left: 50%;
  z-index: 5000;
  width: min(430px, calc(100vw - 28px));
  max-height: min(72svh, 520px);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -6px);
}

body > .topbar .nav-dropdown.is-open .app-menu-panel,
body > .topbar .nav-dropdown:hover .app-menu-panel {
  transform: translate(-50%, 0);
}

body > main {
  z-index: 1;
}

:root[data-theme="dark"] body > .topbar .nav {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

:root[data-theme="dark"] body > .topbar .nav > a:hover,
:root[data-theme="dark"] body > .topbar .nav > a:focus-visible,
:root[data-theme="dark"] body > .topbar .nav-menu-trigger:hover,
:root[data-theme="dark"] body > .topbar .nav-menu-trigger:focus-visible,
:root[data-theme="dark"] body > .topbar .nav-dropdown.is-open .nav-menu-trigger {
  color: #8deaff !important;
  background: color-mix(in srgb, var(--accent) 17%, var(--surface)) !important;
}

/* Summer home atmosphere. */
body.store-home {
  background:
    radial-gradient(circle at 8% 13%, rgba(255, 201, 66, 0.18), transparent 18rem),
    radial-gradient(circle at 92% 28%, rgba(27, 201, 216, 0.18), transparent 22rem),
    linear-gradient(180deg, #eefcff 0, #fffaf0 680px, var(--paper) 1220px);
}

:root[data-theme="dark"] body.store-home {
  background:
    radial-gradient(circle at 8% 13%, rgba(255, 190, 54, 0.09), transparent 20rem),
    radial-gradient(circle at 92% 28%, rgba(39, 205, 224, 0.09), transparent 24rem),
    var(--paper);
}

body.store-home .garena-about {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  align-content: center;
  justify-items: start;
  margin-top: clamp(24px, 4vw, 42px);
  margin-bottom: 24px;
  padding: clamp(42px, 7vw, 82px);
  border: 1px solid rgba(0, 146, 192, 0.25);
  border-radius: 28px;
  color: var(--summer-ink);
  background:
    radial-gradient(circle at 87% 18%, var(--summer-sun) 0 70px, rgba(255, 209, 91, 0.24) 71px 105px, transparent 106px),
    linear-gradient(155deg, #effdff 0 52%, #dff7f5 52% 66%, var(--summer-sand) 66%);
  box-shadow: 0 22px 48px rgba(0, 122, 165, 0.16);
  text-align: left;
  isolation: isolate;
}

body.store-home .garena-about::before,
body.store-home .garena-about::after {
  position: absolute;
  right: -6%;
  bottom: 32px;
  width: 54%;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 169, 218, 0.17);
  content: "";
  transform: rotate(-4deg);
}

body.store-home .garena-about::after {
  right: -12%;
  bottom: -4px;
  width: 66%;
  background: rgba(0, 116, 184, 0.13);
}

body.store-home .garena-about > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

body.store-home .garena-about > img {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 18px;
  background: #06172b;
  box-shadow: 0 14px 28px rgba(2, 52, 86, 0.2);
}

.summer-kicker,
.season-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 128, 181, 0.22);
  border-radius: 999px;
  color: #006a9d;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-page .season-pill {
  margin-top: 2px;
}

body.store-home .garena-about h2 {
  max-width: 850px;
  margin: 16px 0 14px;
  color: var(--summer-ink);
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

body.store-home .garena-about p {
  max-width: 700px;
  margin: 0;
  color: var(--summer-copy);
  font-size: 1.08rem;
  line-height: 1.7;
}

:root[data-theme="dark"] body.store-home .garena-about {
  border-color: rgba(104, 216, 255, 0.28);
  color: #f3f8ff;
  background:
    radial-gradient(circle at 87% 18%, #f6b93b 0 70px, rgba(246, 185, 59, 0.16) 71px 105px, transparent 106px),
    linear-gradient(155deg, #071f34 0 52%, #0a3540 52% 66%, #49371f 66%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] body.store-home .garena-about::before {
  background: rgba(47, 211, 234, 0.14);
}

:root[data-theme="dark"] body.store-home .garena-about::after {
  background: rgba(24, 123, 177, 0.18);
}

:root[data-theme="dark"] body.store-home .garena-about h2 {
  color: #f3f8ff;
}

:root[data-theme="dark"] body.store-home .garena-about p {
  color: #cfe2ee;
}

:root[data-theme="dark"] body.store-home .garena-about .summer-kicker,
:root[data-theme="dark"] .season-pill {
  border-color: rgba(158, 239, 255, 0.3);
  color: #a6f3ff;
  background: rgba(4, 10, 19, 0.68);
}

:root[data-theme="dark"] body.store-home .garena-feature-grid p {
  color: rgba(255, 255, 255, 0.88);
}

/* One aligned coastal campaign panel. */
.summer-coast-banner {
  position: relative;
  width: min(calc(100% - 32px), 1120px);
  min-height: 430px;
  overflow: hidden;
  margin: 0 auto clamp(30px, 5vw, 58px);
  border: 1px solid rgba(0, 138, 190, 0.24);
  border-radius: 28px;
  background: var(--summer-ocean);
  box-shadow: 0 24px 54px rgba(0, 123, 174, 0.22);
}

.summer-coast-banner > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summer-coast-banner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 58, 101, 0.86), rgba(2, 91, 140, 0.28) 58%, rgba(2, 91, 140, 0.04));
  content: "";
}

.summer-coast-banner > div {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, 62%);
  min-height: 430px;
  padding: clamp(34px, 6vw, 68px);
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.summer-coast-banner span {
  color: #d9fbff;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.summer-coast-banner h2 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
  text-shadow: 0 3px 20px rgba(0, 70, 113, 0.26);
}

.summer-coast-banner p {
  max-width: 520px;
  margin: 0;
  color: #f2feff;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* Finished seasonal component on the DivisaX page. */
.summer-product-banner {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(0, 143, 190, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 209, 91, 0.62), transparent 12rem),
    linear-gradient(145deg, #ecfcff, #dff7f5 52%, #ffe3a1);
  box-shadow: 0 22px 52px rgba(0, 114, 160, 0.16);
  isolation: isolate;
}

.summer-product-banner::before {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 330px;
  height: 210px;
  border: 44px solid rgba(0, 157, 204, 0.12);
  border-radius: 50%;
  content: "";
}

.summer-product-copy,
.summer-product-banner figure {
  position: relative;
  z-index: 1;
}

.summer-product-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.summer-product-copy h2 {
  margin: 0;
  color: var(--summer-ink);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.summer-product-copy p {
  margin: 0;
  color: var(--summer-copy);
  font-size: 1.04rem;
  line-height: 1.7;
}

.summer-product-banner figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(5, 75, 105, 0.18);
  border-radius: 20px;
  background: #061a28;
  box-shadow: 0 18px 38px rgba(4, 63, 87, 0.2);
}

.summer-product-banner figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

:root[data-theme="dark"] .summer-product-banner {
  border-color: rgba(104, 216, 255, 0.26);
  background:
    radial-gradient(circle at 8% 8%, rgba(246, 185, 59, 0.2), transparent 13rem),
    linear-gradient(145deg, #071f34, #0a3540 58%, #49371f);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .summer-product-copy h2 {
  color: #f3f8ff;
}

:root[data-theme="dark"] .summer-product-copy p {
  color: #cfe2ee;
}

@media (min-width: 761px) and (max-width: 1100px) {
  body > .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    padding: 12px clamp(18px, 4vw, 42px);
  }

  body > .topbar .nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  body > .topbar .app-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: auto;
    left: 50%;
    width: min(430px, calc(100vw - 36px));
    max-height: min(70svh, 500px);
    transform: translate(-50%, -6px);
  }

  body > .topbar .nav-dropdown.is-open .app-menu-panel,
  body > .topbar .nav-dropdown:hover .app-menu-panel {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 820px) {
  .summer-product-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body > .topbar {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center;
    overflow: visible !important;
    padding: 10px 14px 12px !important;
  }

  body > .topbar .brand {
    min-width: 0;
    overflow: hidden;
  }

  body > .topbar .site-controls {
    position: static !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 6px !important;
    justify-self: end;
    margin: 0 !important;
    transform: none !important;
  }

  body > .topbar .language-select {
    width: 58px;
    min-width: 58px;
    padding-right: 6px;
    padding-left: 8px;
  }

  body > .topbar .theme-toggle {
    width: 38px;
    min-width: 38px;
  }

  body > .topbar .nav {
    grid-column: 1 / -1 !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    overflow: visible !important;
    padding: 4px;
    border-radius: 18px;
  }

  body > .topbar .nav > a,
  body > .topbar .nav-menu-trigger {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px;
    overflow: hidden;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 0.78rem;
    text-overflow: ellipsis;
  }

  body > .topbar .nav > a,
  body > .topbar .nav > .nav-dropdown {
    grid-column: auto !important;
  }

  body > .topbar .nav > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  body > .topbar .nav-dropdown {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    grid-column: auto !important;
  }

  body > .topbar .nav-menu-trigger span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body > .topbar .app-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: 100%;
    max-height: min(68svh, 460px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateY(-6px);
  }

  body > .topbar .app-menu-panel::before {
    display: none;
  }

  body > .topbar .nav-dropdown.is-open .app-menu-panel {
    transform: translateY(0);
  }

  body.store-home .summer-feature-slide img,
  body.store-home .summer-feature-slide.is-active img {
    top: auto !important;
    right: 14px !important;
    bottom: 110px !important;
    left: auto !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 18px !important;
    background: transparent !important;
    transform: none !important;
    object-fit: contain !important;
  }

  body.store-home .summer-feature-slide:not(.is-active) img {
    transform: scale(0.98) !important;
  }

  body.store-home .garena-about {
    min-height: 460px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 34px 24px 110px;
    border-radius: 20px;
  }

  body.store-home .garena-about h2 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  body.store-home .garena-about::before,
  body.store-home .garena-about::after {
    right: -20%;
    width: 100%;
  }

  .summer-coast-banner {
    min-height: 500px;
    margin-bottom: 34px;
    border-radius: 20px;
  }

  .summer-coast-banner > img {
    object-position: 57% center;
  }

  .summer-coast-banner::after {
    background: linear-gradient(0deg, rgba(2, 49, 83, 0.94), rgba(2, 85, 127, 0.08) 72%);
  }

  .summer-coast-banner > div {
    width: 100%;
    min-height: 500px;
    padding: 28px 22px;
    justify-content: flex-end;
  }

  .summer-product-banner {
    gap: 24px;
    padding: 26px 20px;
    border-radius: 20px;
  }

  .summer-product-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .summer-product-banner figure {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .topbar .app-menu-panel {
    transition: none;
  }
}
