/* Logo */
.kokonic-brand-logo--header {

  height: 82px !important;
  width: auto !important;
  object-fit: contain !important;
}

.kokonic-brand-logo--footer {
  height: 128px !important;
  width: auto !important;
  object-fit: contain !important;
}

@media (max-width: 840px) {
  .kokonic-brand-logo--header {
    height: 64px !important;
  }

  .kokonic-brand-logo--footer {
    height: 100px !important;
  }
}

/* Floating page-top button — above content, always clickable */
.sd[data-s-a2897569-1921-41bf-84da-ca00cd9ca6a7] {
  z-index: 6 !important;
  pointer-events: auto !important;
}

.sd[data-s-a2897569-1921-41bf-84da-ca00cd9ca6a7] * {
  pointer-events: none;
}

/* Marquee banners around COLLECTIONS */
.sd[data-s-2321c59b-f02a-4bef-a658-6da1ae319de2],
.sd[data-s-178ee5f8-4fd8-45f5-bbb7-6c408b2103e2] {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

.sd[data-s-75a9edc0-37f0-4c45-afa8-d39b54f85f85],
.sd[data-s-ac3a76b1-a1c7-4858-8562-4ca7955b46df] {
  width: 100% !important;
  max-width: 100% !important;
}

.kokonic-marquee-viewport {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

.kokonic-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: kokonic-loop-feature 36s linear infinite;
}

.kokonic-marquee-group {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
}

.kokonic-marquee-chunk,
.sd[data-s-745a9196-5736-46c7-9ee6-101dcbc5a789],
.sd[data-s-48d67d75-7228-4b6f-8249-891f399671c4] {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  font-family: var(--kokonic-font-vi) !important;
  font-size: clamp(30px, 4.2vw, 48px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.sd[data-s-2321c59b-f02a-4bef-a658-6da1ae319de2],
.sd[data-s-178ee5f8-4fd8-45f5-bbb7-6c408b2103e2] {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

@keyframes kokonic-loop-feature {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Studio clone: without runtime, .appear stays hidden (especially on mobile) */
.StudioCanvas .sd.appear,
.StudioCanvas .text.sd.appear,
.StudioCanvas a.sd.appear,
.StudioCanvas li.sd.appear {
  opacity: 1 !important;
  translate: none !important;
}

/* COLLECTIONS: hide green arrow buttons on each card */
#tour-event .sd[data-s-46093d52-12bd-4774-a0ec-945a306ba47f] {
  display: none !important;
}

/* COLLECTIONS: image column was opacity 0 until hover */
#tour-event .sd[data-s-258b1f6f-e248-4103-8762-e8a4d79ac0cf],
#tour-event .sd[data-s-08705d9f-f2e8-488f-9864-8f0c5c86a0d6],
#tour-event .sd[data-s-d83b04fb-90fb-4291-a411-02f9cde5b55b],
#tour-event .sd[data-s-ba3af1aa-0469-48f5-bd16-2e74e90fe00b],
#tour-event .sd[data-s-7f997ef2-5d2d-4e34-87a2-d0b45b694352] {
  opacity: 1 !important;
}

@media (max-width: 840px) {
  #tour-event .sd[data-s-00281d61-8a04-4987-b17c-221c3e206ae9],
  #tour-event .sd[data-s-da5ee625-5e86-4d3f-8627-e96747622a5c],
  #tour-event .sd[data-s-f31038e6-c423-4bcf-ace9-d9cdefee6b3a] {
    width: 100% !important;
    max-width: 100% !important;
  }

  #tour-event .sd[data-s-00281d61-8a04-4987-b17c-221c3e206ae9] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #tour-event .sd[data-s-7f997ef2-5d2d-4e34-87a2-d0b45b694352] {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
  }

  #tour-event .sd[data-s-08705d9f-f2e8-488f-9864-8f0c5c86a0d6],
  #tour-event .sd[data-s-d83b04fb-90fb-4291-a411-02f9cde5b55b] {
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
  }

  #tour-event .sd[data-s-f6d706c0-fa95-48b9-8285-479b21af6c69],
  #tour-event .sd[data-s-b2a3c031-4a04-410e-af82-bc19445dc390] {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
  }

  #tour-event .sd[data-s-3f8fb495-a8fd-45e7-bbc7-2a6f824433da],
  #tour-event .sd[data-s-6fdcac9c-63a8-4c74-9ee4-2ab54ba55947] {
    text-align: left !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  #tour-event #ms.sd[data-s-ba3af1aa-0469-48f5-bd16-2e74e90fe00b] {
    align-items: stretch !important;
  }
}

@media (max-width: 630px) {
  /* Empty 150px thumb reserves space but has no image — title was pushed right */
  #tour-event .sd[data-s-29207ab3-3dd1-46b7-9e3f-8cdf3d8c02b9] {
    display: none !important;
  }

  #tour-event .sd[data-s-3efbe5b0-6515-48db-8053-8be7c1f1cf82] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #tour-event .sd[data-s-733bf62d-5bf5-4635-9128-26fd23ec60a7] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    height: auto !important;
    border-left: 1px solid #1c1814 !important;
  }

  #tour-event .sd[data-s-75f11eb3-410e-4ef8-a4e0-6e8ee5f9db52] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Studio export hides collection photos on mobile — show them again */
  #tour-event .sd[data-s-895c65f5-61e8-4680-9274-0bc513870fa6] {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0 !important;
    overflow: visible !important;
  }

  #tour-event .sd[data-s-da1799be-8386-4d30-b856-4ce8eea93cc3] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    margin: 0 !important;
    opacity: 1 !important;
  }

  #tour-event .sd[data-s-da1799be-8386-4d30-b856-4ce8eea93cc3]:before,
  #tour-event .sd[data-s-da1799be-8386-4d30-b856-4ce8eea93cc3].appear:before {
    opacity: 1 !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  #tour-event .sd[data-s-f31038e6-c423-4bcf-ace9-d9cdefee6b3a] {
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
  }

  #tour-event .sd[data-s-da5ee625-5e86-4d3f-8627-e96747622a5c] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/* Hero slider — show full image (no crop/focus) */
#top [id^="topslide_"].image:before {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #f3efe7 !important;
}

/* Hero: empty duplicate slide set stays hidden */
#top .sd[data-s-16ca12ef-4b72-4744-a557-83e3715b19f7] {
  display: none !important;
}

/* Hero: JS crossfade replaces CSS keyframe fade */
#top.kokonic-hero-js [id^="topslide_"] {
  animation: none !important;
}

/* Hero: show first slide immediately before JS handoff */
#top:not(.kokonic-hero-js) .sd[data-s-0989363c-67a8-4260-906f-f7f809ddbb72] #topslide_1 {
  opacity: 1 !important;
  animation: none !important;
}

#top:not(.kokonic-hero-js) .sd[data-s-0989363c-67a8-4260-906f-f7f809ddbb72] [id^="topslide_"]:not(#topslide_1) {
  opacity: 0 !important;
  animation: none !important;
}

/* Hero frame — portrait-ish box so vertical images fill it (less empty band) */
#top .sd[data-s-0989363c-67a8-4260-906f-f7f809ddbb72] {
  width: 100% !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
}

#top .sd[data-s-0989363c-67a8-4260-906f-f7f809ddbb72] #slider,
#top .sd[data-s-0989363c-67a8-4260-906f-f7f809ddbb72] [id^="topslide_"] {
  height: 100% !important;
}

@media (max-width: 630px) {
  /* Template hides slide-set 1 on mobile and shows slide-set 2,
     but set 2 has no background images -> hero went blank.
     Keep the image-bearing set 1 visible, hide the empty set 2. */
  #top .sd[data-s-0989363c-67a8-4260-906f-f7f809ddbb72] {
    display: flex !important;
    max-width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    margin: 0 auto !important;
  }
}

/* Hero — title below slider */
#top [data-s-f0636c33-38a5-452e-90cc-c7612f679e33] {
  align-items: flex-start;
  width: 90%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.kokonic-hero-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 8px !important;
  font-family: var(--kokonic-font-vi) !important;
  font-size: clamp(48px, 7.5vw, 88px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
  color: #1c1814 !important;
  white-space: normal !important;
  text-align: left;
  text-transform: uppercase;
}

#top_text .kokonic-hero-below-sub {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  font-family: var(--kokonic-font-vi) !important;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #00b74f;
}

html[lang="ja"] #top_text .kokonic-hero-below-sub {
  font-family: var(--kokonic-font-ja) !important;
}

html[lang="vi"] #top_text .text,
html[lang="en"] #top_text .text,
html[lang="vi"] #tour-event [data-s-b7ce2a3b-e16c-4c37-8eff-8e997832167a] .text,
html[lang="en"] #tour-event [data-s-b7ce2a3b-e16c-4c37-8eff-8e997832167a] .text,
html[lang="vi"] #tour-event [data-s-0871a534-084e-46b5-a880-112538d1f680],
html[lang="en"] #tour-event [data-s-0871a534-084e-46b5-a880-112538d1f680],
html[lang="vi"] #tour-event [data-s-733bf62d-5bf5-4635-9128-26fd23ec60a7],
html[lang="en"] #tour-event [data-s-733bf62d-5bf5-4635-9128-26fd23ec60a7],
html[lang="vi"] #ms .text,
html[lang="en"] #ms .text,
html[lang="vi"] #project [data-s-f35bbc1b-4753-403d-802b-5ca2f98bb7ff],
html[lang="en"] #project [data-s-f35bbc1b-4753-403d-802b-5ca2f98bb7ff],
html[lang="vi"] #project [data-s-9ee88ea7-9cab-4810-b8ad-f4d219899e35],
html[lang="en"] #project [data-s-9ee88ea7-9cab-4810-b8ad-f4d219899e35],
html[lang="vi"] .kokonic-visit-grid,
html[lang="en"] .kokonic-visit-grid {
  font-family: var(--kokonic-font-vi) !important;
}

html[lang="ja"] #tour-event [data-s-0871a534-084e-46b5-a880-112538d1f680],
html[lang="ja"] #tour-event [data-s-733bf62d-5bf5-4635-9128-26fd23ec60a7],
html[lang="ja"] #ms .text,
html[lang="ja"] #project [data-s-f35bbc1b-4753-403d-802b-5ca2f98bb7ff],
html[lang="ja"] #project [data-s-9ee88ea7-9cab-4810-b8ad-f4d219899e35],
html[lang="ja"] #top_text .text {
  font-family: var(--kokonic-font-ja) !important;
}

/* Vietnamese place names in address always use Arimo */
.kokonic-visit-details dd {
  font-family: var(--kokonic-font-vi) !important;
}

#tour-event .sd[data-s-639648cf-30ca-4dff-8290-f4207e25a183] {
  min-height: 148px;
}

#tour-event .sd[data-s-0871a534-084e-46b5-a880-112538d1f680] {
  line-height: 1.55;
}

#top_text [data-s-51ad6224-38b8-4d0a-b317-d4b481eb7bf0] {
  width: 90%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 840px) {
  .kokonic-hero-title {
    font-size: clamp(40px, 10vw, 64px) !important;
    text-align: center;
  }

  #top [data-s-f0636c33-38a5-452e-90cc-c7612f679e33] {
    align-items: center;
  }

  #top_text .kokonic-hero-below-sub {
    text-align: center;
    margin-bottom: 24px;
  }
}

@media (max-width: 630px) {
  .kokonic-hero-title {
    font-size: clamp(34px, 11vw, 48px) !important;
    margin-bottom: 12px !important;
  }
}

/* Footer visit: info left, map right */
.kokonic-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  gap: 32px 40px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  padding: 8px 0 0;
  line-height: 1.9;
  font-size: 14px;
  color: #1c3a28;
  box-sizing: border-box;
}

.kokonic-visit-info-title {
  font-family: var(--s-font-a196dde3, Arimo, sans-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Footer brand tagline — desktop */
footer .sd[data-s-08bc0949-853f-4b95-a71f-bb02b410fa29] > span {
  display: none !important;
}

footer .sd[data-s-4ee891fe-29f9-4824-a0fd-83d309cadbc5] {
  display: none !important;
}

footer .sd[data-s-9248916a-9675-44e3-9712-da907cae665c] {
  display: block !important;
  color: #1c1814;
  font-size: 16px;
  margin-top: 8px;
  text-align: left;
}

.kokonic-visit-map .kokonic-map-wrap {
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  aspect-ratio: 16 / 11;
}

.kokonic-visit-map-link {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 840px) {
  .kokonic-visit-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* GIFT GUIDE (#project) — content visibility only */
#project .sd.appear,
#project .text.sd.appear {
  opacity: 1 !important;
  translate: none !important;
}

#project .kokonic-gift-desc {
  color: #1c1814;
  font-family: var(--kokonic-font-vi);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 12px 0 0 !important;
  max-width: 100%;
  text-align: left !important;
}

/* BRANDS (#spot) — large image left + tag grid right (PICKUP TAG style) */
#spot .kokonic-brand-tagblock {
  display: grid !important;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  width: 90% !important;
  max-width: 1180px !important;
  margin: 48px auto 0 !important;
  border: 1px solid #1c1814;
  flex: none !important;
  align-self: center !important;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

#spot .kokonic-brand-tagblock-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 240px;
}

#spot .kokonic-brand-tagblock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#spot .kokonic-brand-tag-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 110px;
  padding: 18px 20px;
  border-left: 1px solid #1c1814;
  border-bottom: 1px solid #1c1814;
  text-decoration: none;
  color: #1c1814;
  background: transparent;
  transition: background 0.25s ease;
}

#spot .kokonic-brand-tag-card:nth-child(-n + 3) {
  border-top: 0;
}

#spot .kokonic-brand-tag-card:hover {
  background: #e6e6cf;
}

#spot .kokonic-brand-tag-label {
  margin: 0;
  text-align: center;
  font-family: var(--kokonic-font-vi);
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 840px) {
  #spot .kokonic-brand-tagblock {
    grid-template-columns: 1fr;
    width: 100%;
  }

  #spot .kokonic-brand-tagblock-image {
    min-height: 220px;
  }

  #spot .kokonic-brand-tagblock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #spot .kokonic-brand-tagblock-grid {
    grid-template-columns: 1fr;
  }
}

/* BRANDS — added cards (4-6) use inline background instead of :before */
#spot .kokonic-brand-card-image {
  width: 100%;
  height: 250px;
  border-bottom: 1px solid #1c1814;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* BRANDS — 6 cards in a 3-col grid (was a single nowrap flex row) */
#spot ul[data-s-6a03adec-a059-47a4-bb17-cf9153ab8673] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 90% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  flex-wrap: wrap !important;
}

#spot ul[data-s-6a03adec-a059-47a4-bb17-cf9153ab8673] > a {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

@media (max-width: 840px) {
  #spot ul[data-s-6a03adec-a059-47a4-bb17-cf9153ab8673] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  #spot ul[data-s-6a03adec-a059-47a4-bb17-cf9153ab8673] {
    grid-template-columns: 1fr !important;
  }
}

/* BRANDS — release the carousel wrapper so all 6 cards show as a grid */
#spot .sd[data-s-b81e2162-6f8c-4c80-9913-db6d1a59ce46] {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* BRANDS — vertical side labels must not clip (Studio .sd uses overflow:clip) */
#spot.kokonic-section-ready,
#spot.kokonic-section-ready .kokonic-shell,
#spot.kokonic-section-ready .kokonic-spot-brands-block,
#spot.kokonic-section-ready .kokonic-spot-grid,
#spot.kokonic-section-ready .kokonic-spot-card,
#spot.kokonic-section-ready .kokonic-spot-side,
#spot.kokonic-section-ready .kokonic-spot-side-text {
  overflow: visible !important;
}
