/* Olympus88 Yellow-Purple theme — samsung/v11
   Source: .github/instructions/yellow-purple-palette.instructions.md
*/
:root {
  --oly-bg: #120b1a;
  --oly-surface: #1e1430;
  --oly-surface-alt: #2b1d45;
  --oly-purple: #720bb8;
  --oly-purple-light: #a555e0;
  --oly-purple-dark: #4a077a;
  --oly-gold: #ffd700;
  --oly-yellow: #f1e02f;
  --oly-gold-dark: #c6a300;
  --oly-text: #f6efff;
  --oly-text-muted: #b3a3cc;
  --oly-border: #3d2a5c;
  --oly-danger: #b5442e;
  --oly-success: #6f8a3a;
}

html,
body {
  background-color: var(--oly-bg) !important;
  color: var(--oly-text);
  overflow-x: hidden !important;
  max-width: 100% !important;
}

::selection {
  background: var(--oly-purple);
  color: var(--oly-text);
}

/* Header / nav */
.nv00-gnb-v4,
.nv00-gnb-v4__wrap,
.nv00-gnb-v4__header,
.nv00-gnb-v4__container {
  background-color: var(--oly-surface) !important;
  color: var(--oly-text) !important;
}

/* Keep desktop menu on a single row */
@media only screen and (min-width: 1280px) {
  .nv00-gnb-v4 {
    height: auto !important;
    min-height: 88px;
  }

  .nv00-gnb-v4__inner {
    gap: 16px !important;
    padding: 18px 12px 10px 12px !important;
    align-items: center !important;
  }

  .nv00-gnb-v4__l0-menu-list,
  .nv00-gnb-v4__l0-menu-list--left,
  .nv00-gnb-v4__l0-menu-list--right {
    flex-wrap: nowrap !important;
    flex-shrink: 1;
    min-width: 0;
  }

  .nv00-gnb-v4__container-inner {
    justify-content: center !important;
    align-items: center !important;
  }

  /* Sembunyikan LOGIN/DAFTAR floating biar tidak tabrakan */
  .nv00-gnb-v4__l0-menu-list--right {
    display: none !important;
  }

  .nv00-gnb-v4__l0-menu-list--left {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    margin-top: 0 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  .nv00-gnb-v4__l0-menu-list--left .nv00-gnb-v4__l0-menu {
    height: auto !important;
    flex: 0 0 auto !important;
  }

  .nv00-gnb-v4__l0-menu-btn,
  .nv00-gnb-v4__l0-menu-link {
    padding: 8px 8px 10px 8px !important;
    height: auto !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .nv00-gnb-v4__l0-menu-text {
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .nv00-gnb-v4__logo {
    flex: 0 0 auto;
  }

  .nv00-gnb-v4__logo img {
    width: 160px;
    max-height: 48px;
  }

  /* Space between header and banner/hero */
  .nv00-gnb-v4 {
    margin-bottom: 20px !important;
  }

  .pd-g-product-detail-header-ux2,
  .hdd02-pdp-header {
    margin-top: 8px !important;
  }
}

@media only screen and (max-width: 1279px) {
  .nv00-gnb-v4 {
    margin-bottom: 14px !important;
  }

  .pd-g-product-detail-header-ux2,
  .hdd02-pdp-header {
    margin-top: 6px !important;
  }
}

.nv00-gnb-v4 a,
.nv00-gnb-v4 button,
.nv00-gnb-v4__l0-menu-text,
.nv00-gnb-v4__l1-menu-text,
.nv00-gnb-v4__l1-featured-link,
.nv00-gnb-v4__l1-featured-title,
.nv00-gnb-v4__search-text,
.nv00-gnb-v4__featured-title,
.nv00-gnb-v4__featured-item-name {
  color: var(--oly-text) !important;
}

.nv00-gnb-v4 svg,
.nv00-gnb-v4 .icon {
  fill: var(--oly-text) !important;
}

/* Anchor bar + breadcrumb */
.pdd39-anchor-nav__bottom,
.pdd39-anchor-nav__bottom-wrap,
.pdd39-anchor-nav__bottom-inner {
  background: var(--oly-surface) !important;
  color: var(--oly-text) !important;
  border-color: var(--oly-border) !important;
}

.pdd39-anchor-nav__bottom a,
.pdd39-anchor-nav__headline,
.breadcrumb,
.breadcrumb a,
.breadcrumb__text-desktop,
.breadcrumb__path {
  color: var(--oly-text) !important;
}

/* High-emphasis CTAs (Masuk / Daftar) → gold */
.cta--contained.cta--emphasis,
a.cta--contained.cta--emphasis,
.cost-box__cta .cta--emphasis,
.where-to-buy__location-layer.layer-popup .layer-popup__cta-wrap .cta--emphasis {
  background-color: var(--oly-gold) !important;
  background-image: none !important;
  border-color: var(--oly-gold-dark) !important;
  color: var(--oly-bg) !important;
}

.cta--contained.cta--emphasis:hover,
.cta--contained.cta--emphasis:focus,
a.cta--contained.cta--emphasis:hover,
.cost-box__cta .cta--emphasis:hover {
  background-color: var(--oly-gold-dark) !important;
  color: var(--oly-bg) !important;
}

/* Light-blue panels that were remapped to a dark surface */
.badge-icon--bg-color-neutral-blue,
.pd-offer__content--bg-light-blue,
.pd-sellout-option__banner--bg-light-blue,
.pd-sellout-option__dimensions-popup-result-wrap,
.pd-offer__content--coupon,
.pdd44-review__rating-banner,
.trade-in-popup__apply-warning-wrap,
.trade-in-popup__seca-imei--warning-message-wrap,
.trade-in-popup__promo-error-wrap,
.hdd02-pdp-header--ux-v2 .hdd02-buying-tool .pd-select-option.pre-purchase-check-ux-v2 .pd-offer__content {
  color: var(--oly-text) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  color: var(--oly-text) !important;
  background: var(--oly-purple) !important;
  border-color: var(--oly-purple) !important;
}

.badge-icon--bg-color-blue,
.badge-icon--bg-color-deep-blue {
  background-color: var(--oly-purple) !important;
  color: var(--oly-text) !important;
}

/* Remove leftover Samsung empty bars above hero (keep DOM for scripts) */
.pd-g-product-detail-offer-banner,
.pd-banner,
.pdd39-anchor-nav__menu,
.pdd39-anchor-nav__price,
.pdd39-anchor-nav__header-dummy,
.hdd02-gallery__cta,
.cod05-app-banner,
.cookie-bar__app-banner,
/* orphaned learn-more popup (escaped .hdd02-buying-tool, so original display:none never matches) */
.add-on__layer-learn-more,
#addOnLayerPopupLearnMore,
.add-on-popup,
.pdd16-step-buying__layer-learn-more {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Prevent leftover scrollbar shells from stretching the page */
.add-on__layer-learn-more .scrollbar__wrap,
#addOnLayerPopupLearnMore .scrollbar__wrap,
.add-on-popup .scrollbar__wrap {
  height: auto !important;
  max-height: 0 !important;
}

/* Keep header logo sized correctly (GIF is 2600x600) */
.nv00-gnb-v4__logo img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

/* Drop forced empty height on buying column */
.hdd02-pdp-header__buying-tool.sg-pdh-buying-tool {
  min-height: 0 !important;
}

/* Tighten gallery so hero sits under header */
.hdd02-gallery,
.hdd02-pdp-header--ux-v2 .hdd02-gallery {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media only screen and (max-width: 767px) {
  .hdd02-pdp-header,
  html:not(:has(.nvd02-breadcrumb)) .hdd02-pdp-header,
  html:has(.nvd02-breadcrumb[style*="display: none"]) .hdd02-pdp-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}
