:root{
  --ksfp-ink:#211e1b;
  --ksfp-muted:#81776f;
  --ksfp-line:#e2dad3;
  --ksfp-soft:#f7f4f0;
  --ksfp-green:#edf3e9;
  --ksfp-pink:#f5ecef;
}

body[data-favorites-page]{
  background:#fbfaf8;
  color:var(--ksfp-ink);
}

.ksfp-page{
  width:min(1240px,calc(100% - 40px));
  margin:0 auto;
  padding:14px 0 40px;
}

.ksfp-breadcrumbs{margin-bottom:10px}

.ksfp-kicker{
  display:block;
  color:var(--ksfp-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ksfp-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  align-items:center;
  min-height:180px;
  padding:21px 23px;
  border:1px solid var(--ksfp-line);
  border-radius:18px;
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 14%,rgba(255,255,255,.94),transparent 28%),
    linear-gradient(135deg,#f4f0ec,#edf3e9 58%,#f6ecef);
}

.ksfp-hero__copy{
  position:relative;
  z-index:2;
}

.ksfp-hero h1{
  margin:5px 0 7px;
  font-family:Georgia,serif;
  font-size:clamp(44px,5vw,60px);
  font-weight:400;
  line-height:.94;
  letter-spacing:-.055em;
}

.ksfp-hero p{
  max-width:600px;
  margin:0;
  color:#716861;
  font-size:13px;
  line-height:1.5;
}

.ksfp-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:13px;
}

.ksfp-hero__meta>span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:0 10px;
  border:1px solid rgba(62,52,46,.1);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#665e57;
  font-size:11px;
  font-weight:750;
}

.ksfp-hero__meta svg{
  flex:0 0 auto;
  width:14px;
  height:14px;
  stroke-width:1.5;
}

.ksfp-hero__art{
  position:relative;
  height:135px;
}

.ksfp-hero__heart{
  position:absolute;
  right:22px;
  top:2px;
  width:112px;
  height:112px;
  fill:#c45c79;
  stroke:#c45c79;
  opacity:.25;
}

.ksfp-hero__art>img:not(.spark){
  position:absolute;
  right:0;
  bottom:-32px;
  width:100px;
  opacity:.18;
}

.ksfp-hero__art .spark{
  position:absolute;
  left:20px;
  top:28px;
  width:68px;
  opacity:.08;
}

.ksfp-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  padding:7px 9px;
  border:1px solid var(--ksfp-line);
  border-radius:12px;
  background:#f7f4f0;
}

.ksfp-toolbar[hidden]{display:none!important}

.ksfp-toolbar__left{
  display:flex;
  align-items:center;
  gap:10px;
}

.ksfp-toolbar__left strong{
  font-size:11px;
  font-weight:750;
}

.ksfp-toolbar__left strong b{
  font-family:Georgia,serif;
  font-size:16px;
  font-weight:400;
}

.ksfp-toolbar__left button{
  min-height:36px;
  padding:0 7px;
  border:0;
  background:transparent;
  color:#995368;
  font:inherit;
  font-size:10px;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

.ksfp-sort{
  display:flex;
  align-items:center;
  gap:7px;
  color:#81776f;
  font-size:10px;
  font-weight:750;
}

.ksfp-sort select{
  min-height:38px;
  padding:0 30px 0 9px;
  border:1px solid #dcd4cd;
  border-radius:8px;
  background:#fff;
  color:#302b27;
  font:inherit;
  font-size:10px;
}

.ksfp-notice{
  margin-top:7px;
  padding:9px 10px;
  border:1px solid #d8e2d5;
  border-radius:10px;
  background:#f1f6ef;
  color:#4f6552;
  font-size:11px;
  line-height:1.45;
}

.ksfp-notice[hidden]{display:none!important}

.ksfp-notice.is-error{
  border-color:#efcbd5;
  background:#fff0f2;
  color:#8c334b;
}

.ksfp-loading{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}

.ksfp-loading[hidden]{display:none!important}

.ksfp-skeleton{
  height:320px;
  padding:10px;
  border:1px solid #ece6e0;
  border-radius:13px;
  overflow:hidden;
  background:#fff;
}

.ksfp-skeleton i,
.ksfp-skeleton span{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:999px;
  background:#f2eeea;
}

.ksfp-skeleton i{
  height:220px;
  border-radius:9px;
}

.ksfp-skeleton span{
  width:76%;
  height:9px;
  margin-top:12px;
}

.ksfp-skeleton span:last-child{
  width:43%;
  margin-top:7px;
}

.ksfp-skeleton i:after,
.ksfp-skeleton span:after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);
  animation:ksfpShimmer 1.25s infinite;
}

@keyframes ksfpShimmer{to{transform:translateX(100%)}}

.ksfp-load-error{
  grid-column:1/-1;
  display:grid;
  justify-items:center;
  min-height:190px;
  padding:24px;
  border:1px dashed #d8d0c9;
  border-radius:14px;
  background:#fff;
  text-align:center;
}

.ksfp-load-error strong{
  font-family:Georgia,serif;
  font-size:24px;
  font-weight:400;
}

.ksfp-load-error span{
  max-width:460px;
  margin-top:6px;
  color:#81776f;
  font-size:11px;
  line-height:1.5;
}

.ksfp-load-error button{
  min-height:44px;
  margin-top:13px;
  padding:0 14px;
  border:0;
  border-radius:9px;
  background:#211e1b;
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.ksfp-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}

.ksfp-grid[hidden]{display:none!important}

.ksfp-card{
  position:relative;
  min-width:0;
  border:1px solid var(--ksfp-line);
  border-radius:13px;
  overflow:hidden;
  background:#fff;
  transition:transform .16s ease,box-shadow .16s ease;
}

.ksfp-card:hover{
  transform:translateY(-2px);
  box-shadow:0 9px 22px rgba(43,36,31,.045);
}

.ksfp-card__media{
  display:block;
  height:210px;
  overflow:hidden;
  background:linear-gradient(145deg,#f0ebe5,#f8f4f0);
}

.ksfp-card__media img{
  box-sizing:border-box;
  width:100%;
  height:100%;
  padding:11px;
  object-fit:contain;
  transition:transform .2s ease;
}

.ksfp-card:hover .ksfp-card__media img{transform:scale(1.025)}

.ksfp-card__remove{
  position:absolute;
  top:9px;
  right:9px;
  z-index:2;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid rgba(51,43,38,.09);
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#a95368;
  cursor:pointer;
  backdrop-filter:blur(6px);
}

.ksfp-card__remove svg{
  width:17px;
  height:17px;
  fill:currentColor;
  stroke:currentColor;
}

.ksfp-card__body{padding:11px;min-width:0;overflow-wrap:anywhere}

.ksfp-card__brand{
  display:block;
  margin-bottom:4px;
  color:#887e76;
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.ksfp-card h2{
  min-height:36px;
  margin:0;
  font-size:12px;
  line-height:1.35;
}

.ksfp-card h2 a{
  color:#211e1b;
  text-decoration:none;
}

.ksfp-card__price{
  display:flex;
  align-items:baseline;
  gap:6px;
  margin-top:8px;
}

.ksfp-card__price strong{
  font-family:Georgia,serif;
  font-size:17px;
  font-weight:400;
}

.ksfp-card__price del{
  color:#9b9189;
  font-size:10px;
}

.ksfp-card__stock{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
  color:#607362;
  font-size:10px;
}

.ksfp-card__stock:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#6f8a70;
}

.ksfp-card__stock.out{
  color:#a55464;
}

.ksfp-card__stock.out:before{background:#b96777}

.ksfp-card__actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px;
  margin-top:9px;
}

.ksfp-card__actions button,
.ksfp-card__actions a,
.ksfp-card__watch{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  padding:4px 10px;
  border:1px solid #ded6cf;
  border-radius:8px;
  background:#fff;
  color:#211e1b;
  font:inherit;
  font-size:10px;
  font-weight:800;
  text-decoration:none;
}

.ksfp-card__actions button{
  border-color:#211e1b;
  background:#211e1b;
  color:#fff;
  cursor:pointer;
}

.ksfp-card__actions button:disabled{
  border-color:#ddd5ce;
  background:#f4f1ee;
  color:#958b83;
  cursor:not-allowed;
}

.ksfp-card__watch{
  min-height:38px;
  margin-top:5px;
  background:#faf8f6;
  color:#5f554f;
}

.ksfp-empty{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:16px;
  align-items:center;
  min-height:172px;
  margin-top:8px;
  padding:18px;
  border:1px solid var(--ksfp-line);
  border-radius:14px;
  background:linear-gradient(135deg,#fff,#faf7f4);
}

.ksfp-empty[hidden]{display:none!important}

.ksfp-empty__art{
  display:grid;
  place-items:center;
  width:78px;
  height:78px;
  border-radius:50%;
  background:#f5ebee;
}

.ksfp-empty__art svg{
  width:40px;
  height:40px;
  stroke:#a96879;
  stroke-width:1.25;
}

.ksfp-empty h2{
  margin:4px 0 4px;
  font-family:Georgia,serif;
  font-size:25px;
  font-weight:400;
  letter-spacing:-.035em;
}

.ksfp-empty p{
  max-width:560px;
  margin:0;
  color:#81776f;
  font-size:11px;
  line-height:1.5;
}

.ksfp-empty__copy>a{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  margin-top:11px;
  padding:0 13px;
  border-radius:9px;
  background:#211e1b;
  color:#fff;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
}

.ksfp-footer{margin-top:0}

@media(max-width:980px){
  .ksfp-grid,
  .ksfp-loading{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ksfp-hero{grid-template-columns:minmax(0,1fr) 210px}
}

@media(max-width:700px){
  body[data-favorites-page]{
    padding-bottom:calc(76px + env(safe-area-inset-bottom));
  }

  .ksfp-page{
    width:calc(100% - 18px);
    padding-top:9px;
  }

  .ksfp-breadcrumbs{display:none}

  body[data-favorites-page] .ks2-mobile-nav{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    height:calc(68px + env(safe-area-inset-bottom));
  }

  body[data-favorites-page] .ks2-mobile-nav a{
    min-width:0;
    padding-inline:2px;
  }

  body[data-favorites-page] .ks2-mobile-nav span{font-size:12px!important}
  body[data-favorites-page] .ks2-mobile-nav svg{width:20px;height:20px}

  .ksfp-hero{
    min-height:158px;
    padding:15px;
    border-radius:15px;
    grid-template-columns:1fr;
    align-items:start;
  }

  .ksfp-hero__copy{max-width:82%}
  .ksfp-hero h1{font-size:37px}
  .ksfp-hero p{font-size:12px}

  .ksfp-hero__meta{
    gap:4px;
    margin-top:10px;
  }

  .ksfp-hero__meta>span{
    min-height:28px;
    padding:0 8px;
    font-size:10px;
  }

  .ksfp-hero__meta .sync span{display:none}

  .ksfp-hero__art{
    position:absolute;
    top:7px;
    right:5px;
    width:112px;
    height:100px;
    opacity:.42;
  }

  .ksfp-hero__heart{
    right:7px;
    top:2px;
    width:82px;
    height:82px;
  }

  .ksfp-hero__art>img:not(.spark){
    right:0;
    bottom:-22px;
    width:65px;
  }

  .ksfp-hero__art .spark{
    left:0;
    top:35px;
    width:45px;
  }

  .ksfp-toolbar{
    align-items:stretch;
    margin-top:7px;
    padding:7px;
  }

  .ksfp-toolbar__left{
    align-items:center;
  }

  .ksfp-sort span{display:none}
  .ksfp-sort select{
    width:145px;
    min-height:40px;
  }

  .ksfp-loading{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .ksfp-skeleton{
    height:278px;
    padding:8px;
  }

  .ksfp-skeleton i{height:182px}
  .ksfp-skeleton:nth-child(n+3){display:none}

  .ksfp-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .ksfp-card__media{height:174px}
  .ksfp-card__body{padding:9px}
  .ksfp-card__remove{width:44px;height:44px}

  .ksfp-card__actions{
    grid-template-columns:1fr;
  }

  .ksfp-card__actions button,
  .ksfp-card__actions a,
  .ksfp-card__watch{
    min-height:44px;
  }

  .ksfp-empty{
    grid-template-columns:58px 1fr;
    gap:11px;
    min-height:0;
    padding:14px;
  }

  .ksfp-empty__art{
    width:56px;
    height:56px;
  }

  .ksfp-empty__art svg{
    width:30px;
    height:30px;
  }

  .ksfp-empty h2{font-size:21px}
  .ksfp-footer{display:none}
}

@media(max-width:430px){
  .ksfp-hero__copy{max-width:78%}
  .ksfp-toolbar{
    display:grid;
    grid-template-columns:1fr;
  }
  .ksfp-sort select{width:100%}
  .ksfp-card__media{height:160px}
  .ksfp-card h2{font-size:11px}
  .ksfp-card__price strong{font-size:16px}
}

@media(max-width:390px){
  .ksfp-hero__copy{max-width:100%}
  .ksfp-hero__art{display:none}
  .ksfp-hero h1{font-size:35px}
  .ksfp-card__media{height:145px}
}

@media(prefers-reduced-motion:reduce){
  .ksfp-skeleton i:after,
  .ksfp-skeleton span:after{
    animation:none!important;
  }
  .ksfp-card,
  .ksfp-card__media img{
    transition:none!important;
  }
}


/* Favorites UX hardening — mobile touch and form readability */
@media(max-width:700px){
  .ksfp-toolbar__left button{
    min-height:44px;
    padding:0 10px;
  }
  .ksfp-sort select{
    min-height:44px;
    font-size:16px;
  }
}


/* Stage 25 — saved list sync, recoverable removal, and unavailable positions */
body[data-favorites-page] .ksfp-sync-label{
  display:inline-flex;align-items:center;min-height:30px;max-width:100%;
  font-size:12px;font-weight:650;line-height:1.4;color:#627663;
  padding:6px 9px;background:#edf3ed;border:1px solid #d9e6d8;
  border-radius:6px;overflow-wrap:anywhere
}
body[data-favorites-page] .ksfp-sync-label.is-error{
  color:#8d5847;border-color:#ecd5ca;background:#fff6f0
}
body[data-favorites-page] .ksfp-notice-wrap{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 13px
}
body[data-favorites-page] .ksfp-notice-wrap .ksfp-notice{
  flex:1 1 auto;min-width:180px;margin:0
}
body[data-favorites-page] .ksfp-notice-wrap:has(.ksfp-notice[hidden]){display:none}
body[data-favorites-page] .ksfp-undo{
  background:#fff;color:#4d443d;border:1px solid #cfc2b8;
  border-radius:7px;min-height:44px;padding:9px 15px;
  font:inherit;font-size:13px;font-weight:800;cursor:pointer;
}
body[data-favorites-page] .ksfp-undo[hidden]{display:none!important}
body[data-favorites-page] .ksfp-undo:not(:disabled):hover{
  background:#f7f4f0;border-color:#b8a89e
}
body[data-favorites-page] .ksfp-card--missing{
  background:#faf8f5;border:1px dashed #d6cac0;min-width:0;
}
body[data-favorites-page] .ksfp-card__missing-media{
  height:210px;display:grid;place-items:center;
  background:#f1ece7;color:#b5a59a
}
body[data-favorites-page] .ksfp-card__missing-media svg{
  width:60px;height:60px;fill:none;stroke:currentColor;
  stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round
}
body[data-favorites-page] .ksfp-card--missing .ksfp-card__body{
  display:grid;gap:9px;padding:14px 13px
}
body[data-favorites-page] .ksfp-card--missing h2{
  margin:0;font-size:17px;line-height:1.32;color:#564d46
}
body[data-favorites-page] .ksfp-missing-note{
  margin:0;color:#766b62;font-size:12px;line-height:1.65
}
body[data-favorites-page] .ksfp-missing-id{
  color:#877b73;font-size:11px;word-break:break-all
}
body[data-favorites-page] :is(.ksfp-card__remove,.ksfp-undo,.ksfp-toolbar__left button):focus-visible{
  outline:3px solid #8d796a;outline-offset:3px
}
@media(max-width:700px){
  body[data-favorites-page] .ksfp-toolbar__left{gap:7px;flex-wrap:wrap}
  body[data-favorites-page] .ksfp-sync-label{font-size:12px;order:3;width:100%;justify-content:center}
  body[data-favorites-page] .ksfp-card__missing-media{height:160px}
  body[data-favorites-page] .ksfp-card--missing h2{font-size:15px}
  body[data-favorites-page] .ksfp-missing-note{font-size:12px}
}
@media(max-width:430px){
  body[data-favorites-page] .ksfp-card__missing-media{height:146px}
}

/* Site stage 7: compact cross-navigation between cart and saved items. */
body[data-cart-page] .ks-stage7-switch,body[data-favorites-page] .ks-stage7-switch{display:flex;gap:7px;margin:12px 0 19px}
body[data-cart-page] .ks-stage7-switch a,body[data-favorites-page] .ks-stage7-switch a{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 18px;border:1px solid #e1d7cf;border-radius:10px;background:#fff;color:#655b53;text-decoration:none;font-size:14px;font-weight:700;transition:border-color .18s,background .18s}
body[data-cart-page] .ks-stage7-switch a.is-current,body[data-favorites-page] .ks-stage7-switch a.is-current{background:#352e29;border-color:#352e29;color:#fff}
body[data-cart-page] .ks-stage7-switch a:hover:not(.is-current),body[data-favorites-page] .ks-stage7-switch a:hover:not(.is-current){border-color:#9e8b7c;background:#f9f5f1}
body[data-cart-page] .ks-stage7-switch a:focus-visible,body[data-favorites-page] .ks-stage7-switch a:focus-visible{outline:3px solid #8f7567;outline-offset:2px}
@media(max-width:640px){body[data-cart-page] .ks-stage7-switch,body[data-favorites-page] .ks-stage7-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0 15px}body[data-cart-page] .ks-stage7-switch a,body[data-favorites-page] .ks-stage7-switch a{width:100%;min-width:0;padding:10px 8px;font-size:14px}}

/* Favorites stage 7: touch targets, clear hierarchy and stable card sizing. */
body[data-favorites-page] .ksfp-card{min-width:0;overflow:hidden}
body[data-favorites-page] .ksfp-card__actions button,body[data-favorites-page] .ksfp-card__actions a{min-height:44px}
body[data-favorites-page] .ksfp-card__remove{min-width:44px;min-height:44px}
body[data-favorites-page] .ksfp-card__actions button:focus-visible,body[data-favorites-page] .ksfp-card__actions a:focus-visible{outline:3px solid #967b6b;outline-offset:2px}
@media(max-width:600px){body[data-favorites-page] .ksfp-card__actions{min-width:0}body[data-favorites-page] .ksfp-card__actions button,body[data-favorites-page] .ksfp-card__actions a{font-size:13px}}

@media(max-width:430px){body[data-favorites-page] .ksfp-card h2{font-size:14px;line-height:1.38}body[data-favorites-page] .ksfp-card__stock{font-size:12px}body[data-favorites-page] .ksfp-card__body{padding:11px}}
