/* Korea Store — правки Инны, 2026-10-30.
   Только карточка товара; логотип обновлён в общем SVG.
   Приоритет: спокойная типографика и правильная строка акционной цены. */

body[data-product-page] .ks2-header .ks2-header-main{
  border-bottom:2px solid #e91e63!important;
}

/* Более спокойный вес названия с сохранением деликатного перелива. */
body[data-product-page] .ksp-detail h1.ksp-hero-title{
  font-weight:500!important;
  letter-spacing:-.022em!important;
  background-image:linear-gradient(108deg,#31242b 0%,#64334b 30%,#db4c85 48%,#64334b 65%,#31242b 100%)!important;
  background-size:230% 100%!important;
  background-repeat:no-repeat!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  animation:ks-inna-calm-shimmer 9s ease-in-out infinite!important;
  text-shadow:none!important;
}
body[data-product-page] .ksp-detail .ksp-title-secondary{
  font-weight:400!important;
  color:#322931!important;
  -webkit-text-fill-color:#322931!important;
}
@keyframes ks-inna-calm-shimmer{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
@media(prefers-reduced-motion:reduce){
  body[data-product-page] .ksp-detail h1.ksp-hero-title{
    animation:none!important;background-position:50% 50%!important;
  }
}

/* Стоимость на ПК как в мобильном приложении:
   новая цена, зачёркнутая старая, бейдж процента — в ОДНОЙ строке. */
@media(min-width:821px){
  body[data-product-page] .ksp-detail .ksp-price-offer .ksp-price-row.ksp-price-row--reference{
    display:flex!important;
    flex-flow:row wrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    align-content:center!important;
    gap:8px 13px!important;
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
  }
  body[data-product-page] .ksp-detail .ksp-price-offer .ksp-price-row--reference>strong{
    display:inline-flex!important;
    align-items:baseline!important;
    gap:4px!important;
    flex:0 0 auto!important;
    grid-column:auto!important;grid-row:auto!important;
    align-self:auto!important;
    margin:0!important;
    font-size:clamp(29px,2.45vw,35px)!important;
    font-weight:620!important;
    line-height:1.13!important;
    letter-spacing:-.02em!important;
  }
  body[data-product-page] .ksp-detail .ksp-price-offer .ksp-price-row--reference>strong :is(.ks-byn-amount,.ks-byn-sign){
    font-size:inherit!important;
    font-weight:inherit!important;
  }
  body[data-product-page] .ksp-detail .ksp-price-offer .ksp-price-row--reference>del.ksp-price-old{
    position:static!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    grid-column:auto!important;grid-row:auto!important;
    align-self:center!important;
    margin:0!important;
    font-size:17px!important;
    line-height:1.35!important;
    font-weight:400!important;
    text-decoration:line-through!important;
    text-decoration-thickness:1px!important;
    color:#80777b!important;
    -webkit-text-fill-color:#80777b!important;
  }
  body[data-product-page] .ksp-detail .ksp-price-offer .ksp-price-row--reference>.ksp-price-discount{
    position:static!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    grid-column:auto!important;grid-row:auto!important;
    align-self:center!important;
    margin:0!important;
    padding:7px 11px!important;
    border:1px solid #eab2c9!important;
    border-radius:10px!important;
    background:#f5cbdc!important;
    color:#a20c4b!important;
    -webkit-text-fill-color:#a20c4b!important;
    font-size:16px!important;
    line-height:1.15!important;
    font-weight:650!important;
  }
}

/* Чёрный текст аккордеонов и трёх сервисных карточек.
   Иконки, активные состояния и акционная цена остаются розовыми. */
body[data-product-page] .ksp-info--unified .ksp-tags-details>summary,
body[data-product-page] .ksp-info--unified .ksp-accordions details>summary,
body[data-product-page] .ksp-detail .ksp-service--three .ksp-service-tile__copy>b,
body[data-product-page] .ksp-detail .ksp-service--three .ksp-service-tile__copy>small{
  color:#171717!important;
  -webkit-text-fill-color:#171717!important;
}
body[data-product-page] .ksp-info--unified .ksp-tags-details>summary::marker,
body[data-product-page] .ksp-info--unified .ksp-accordions details>summary::marker{
  color:#171717!important;
}
@media(max-width:820px){
  body[data-product-page] .ksp-detail h1.ksp-hero-title{font-weight:500!important}
}


/* Inna / 30.10 — final review, brand, services and benefits refinements.
   Keep these specific rules at the end: older palette styles make them pink/white. */

/* Reviews jump: black text, retain pale border and normal click to #reviews. */
body[data-product-page] .ksp-detail .ksp-rating-line a.ksp-review-jump,
body[data-product-page] .ksp-detail .ksp-rating-line a.ksp-review-jump .ksp-review-jump__empty,
body[data-product-page] .ksp-detail .ksp-rating-line a.ksp-review-jump span:not(.ksp-rating-stars),
body[data-product-page] .ksp-detail .ksp-rating-line a.ksp-review-jump b{
  color:#171717!important;
  -webkit-text-fill-color:#171717!important;
}
body[data-product-page] .ksp-detail .ksp-rating-line a.ksp-review-jump:hover{
  color:#171717!important;
}

/* Brand chip: not bold, still clickable, still the approved pink chip. */
body[data-product-page] .ksp-detail .ksp-brand-row a.ksp-brand-affiliation__link,
body[data-product-page] .ksp-detail .ksp-brand-row a.ksp-brand-affiliation__link:visited{
  font-weight:400!important;
  letter-spacing:0!important;
}

/* Three distinct but restrained pastel service cards. */
body[data-product-page] .ksp-detail .ksp-service.ksp-service--three .ksp-service-tile--delivery{
  background:#FFF2CD!important;
  background-image:none!important;
  border-color:#EEDCA9!important;
}
body[data-product-page] .ksp-detail .ksp-service.ksp-service--three .ksp-service-tile--pickup{
  background:#E1F2E9!important;
  background-image:none!important;
  border-color:#BEDFCD!important;
}
body[data-product-page] .ksp-detail .ksp-service.ksp-service--three .ksp-service-tile--price{
  background:#EEE6F8!important;
  background-image:none!important;
  border-color:#D9CBEA!important;
}
body[data-product-page] .ksp-detail .ksp-service--three .ksp-service-tile__icon{
  background:rgba(255,255,255,.62)!important;
}
body[data-product-page] .ksp-detail .ksp-service--three .ksp-service-tile__copy :is(b,small){
  color:#202020!important;
  -webkit-text-fill-color:#202020!important;
}

/* Category chips are soft, category-specific and NOT yellow.
   Bright yellow is reserved for "Увлажнение" in editorial DESCRIPTION. */

/* Per-category pastel palette. */
body[data-product-page] .ksp-info--unified .ksp-profile-group--skin_types{
  --ks-facet-bg:#E5F1F9; --ks-facet-border:#C5DAE9; --ks-facet-ink:#34546C;
}
body[data-product-page] .ksp-info--unified .ksp-profile-group--purposes{
  --ks-facet-bg:#E5F2E8; --ks-facet-border:#C8DEC9; --ks-facet-ink:#365B43;
}
body[data-product-page] .ksp-info--unified .ksp-profile-group--skin_problems{
  --ks-facet-bg:#E4F2F1; --ks-facet-border:#BFDEDB; --ks-facet-ink:#365D59;
}
body[data-product-page] .ksp-info--unified .ksp-profile-group--ingredients{
  --ks-facet-bg:#EDF0F7; --ks-facet-border:#D4DAE8; --ks-facet-ink:#4B5874;
}
body[data-product-page] .ksp-info--unified .ksp-profile-group--features{
  --ks-facet-bg:#ECF2E4; --ks-facet-border:#D2DDC3; --ks-facet-ink:#4C6037;
}
body[data-product-page] .ksp-info--unified .ksp-profile-group--age_ranges{
  --ks-facet-bg:#EBF2F6; --ks-facet-border:#CEDCE4; --ks-facet-ink:#435966;
}

/* Override older forced-white/chip-yellow rules but leave section layout alone. */
body:not([data-account-theme="dark"])[data-product-page] .ksp-info--unified .ksp-profile-group a.ksp-facet-link{
  background:var(--ks-facet-bg,#EAF2F2)!important;
  background-image:none!important;
  border-color:var(--ks-facet-border,#C9DEDD)!important;
  color:var(--ks-facet-ink,#405C5C)!important;
  -webkit-text-fill-color:var(--ks-facet-ink,#405C5C)!important;
}
body:not([data-account-theme="dark"])[data-product-page] .ksp-info--unified .ksp-profile-group a.ksp-facet-link:hover{
  filter:brightness(.97);
  background:var(--ks-facet-bg,#EAF2F2)!important;
  border-color:var(--ks-facet-border,#C9DEDD)!important;
}

/* Compact preview next to price uses the same calm logic. */
body[data-product-page] .ksp-detail .ksp-profile-preview>a.ksp-facet-link.is-problem{
  --ks-preview-bg:#E4F2F1; --ks-preview-border:#BFDEDB; --ks-preview-ink:#365D59;
}
body[data-product-page] .ksp-detail .ksp-profile-preview>a.ksp-facet-link.is-purpose{
  --ks-preview-bg:#E5F2E8; --ks-preview-border:#C8DEC9; --ks-preview-ink:#365B43;
}
body[data-product-page] .ksp-detail .ksp-profile-preview>a.ksp-facet-link.is-ethic{
  --ks-preview-bg:#EDF0F7; --ks-preview-border:#D4DAE8; --ks-preview-ink:#4B5874;
}
body:not([data-account-theme="dark"])[data-product-page] .ksp-detail .ksp-profile-preview>a.ksp-facet-link{
  background:var(--ks-preview-bg,#E5F1F9)!important;
  background-image:none!important;
  border-color:var(--ks-preview-border,#C5DAE9)!important;
  color:var(--ks-preview-ink,#34546C)!important;
  -webkit-text-fill-color:var(--ks-preview-ink,#34546C)!important;
}
body:not([data-account-theme="dark"])[data-product-page] .ksp-detail .ksp-profile-preview>a.ksp-facet-link:hover{
  filter:brightness(.97);
  background:var(--ks-preview-bg,#E5F1F9)!important;
  border-color:var(--ks-preview-border,#C5DAE9)!important;
}

/* Pastel description-benefit tiles, matched to the service cards above.
   Applies ONLY inside "Описание и преимущества"; facet tags remain neutral. */
body:not([data-account-theme="dark"])[data-product-page] .ksp-info--unified .ksp-editorial-benefits > .ksp-editorial-benefit:nth-child(1){
  background:#FFF2CD!important;
  background-image:none!important;
  border-color:#EEDCA9!important;
}
body:not([data-account-theme="dark"])[data-product-page] .ksp-info--unified .ksp-editorial-benefits > .ksp-editorial-benefit:nth-child(2){
  background:#E1F2E9!important;
  background-image:none!important;
  border-color:#BEDFCD!important;
}
body:not([data-account-theme="dark"])[data-product-page] .ksp-info--unified .ksp-editorial-benefits > .ksp-editorial-benefit:nth-child(3){
  background:#EEE6F8!important;
  background-image:none!important;
  border-color:#D9CBEA!important;
}
body:not([data-account-theme="dark"])[data-product-page] .ksp-info--unified .ksp-editorial-benefits > .ksp-editorial-benefit :is(strong,small){
  color:#342F34!important;
  -webkit-text-fill-color:#342F34!important;
}
