/* Brand reference: #A20108, #FFFFFF, #FAF8F4, #B2D8B6 */
.kcf-shell{--kcf-red:#a20108;--kcf-dark:#780008;--kcf-cream:#faf8f4;--kcf-mint:#b2d8b6;--kcf-ink:#292726;--kcf-gray:#72716e;--kcf-border:#ede9e6;color:var(--kcf-ink);font-family:inherit;direction:rtl;box-sizing:border-box;max-width:1240px;margin:0 auto;padding:12px 0 45px}
.kcf-shell *, .kcf-shell *::before,.kcf-shell *::after{box-sizing:border-box}
.kcf-shell a{text-decoration:none!important}
.kcf-shell button,.kcf-shell select,.kcf-shell input{font:inherit}
.kcf-layout{display:grid;grid-template-columns:252px minmax(0,1fr);align-items:start;gap:23px}.kcf-catalog{min-width:0}
.kcf-sidebar{background:#fff;border:1px solid var(--kcf-border);border-radius:15px;box-shadow:0 4px 25px rgba(49,29,26,.035);overflow:hidden}
.kcf-sidebar__head{display:none}
.kcf-mobile-close{display:none}
.kcf-facet{margin:0 15px;border-bottom:1px solid var(--kcf-border)}
.kcf-facet summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:12px;padding:15px 2px;user-select:none;color:#353130}
.kcf-facet summary::-webkit-details-marker{display:none}
.kcf-chevron{width:7px;height:7px;display:inline-block;border-right:1.5px solid #777;border-bottom:1.5px solid #777;transform:rotate(45deg);transition:transform .18s ease;margin:0 4px}
.kcf-facet[open] .kcf-chevron{transform:rotate(225deg)}
.kcf-facet__choices{display:grid;gap:9px;padding:2px 3px 16px;max-height:190px;overflow-y:auto;scrollbar-width:thin}
.kcf-check{display:flex;align-items:center;gap:9px;min-height:22px;position:relative;font-size:11px;color:#544f4d;cursor:pointer;margin:0!important;font-weight:500}
.kcf-check input[type=checkbox]{position:absolute;width:17px;height:17px;inset-inline-start:0;opacity:0;cursor:pointer}
.kcf-check__box{flex:none;width:16px;height:16px;border-radius:5px;border:1.5px solid #d4ceca;background:#fff;display:flex;align-items:center;justify-content:center;transition:all .16s ease}
.kcf-check input:checked+.kcf-check__box{border-color:var(--kcf-red);background:var(--kcf-red)}
.kcf-check input:checked+.kcf-check__box::after{content:'';display:block;width:6px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-1px)}
.kcf-check input:focus-visible+.kcf-check__box{outline:2px solid #d58b8c;outline-offset:2px}
.kcf-swatch{width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.09);box-shadow:0 0 0 1px rgba(255,255,255,.55)}
.kcf-swatch--312{background:#46759d}.kcf-swatch--314{background:#e88a53}.kcf-swatch--315{background:#784e98}.kcf-swatch--316{background:#6b6970}.kcf-swatch--317{background:#3b3b3b}.kcf-swatch--313{background:#7da36a}.kcf-swatch--308{background:#f5f4f1}.kcf-swatch--311{background:#172f52}.kcf-swatch--318{background:#d5af61}.kcf-swatch--305{background:#a3a6a7}.kcf-swatch--310{background:#c62d27}.kcf-swatch--309{background:#f0e0c8}.kcf-swatch--442{background:#d0d2d6}
.kcf-prices{margin:17px 15px 11px;padding:0;border:0;min-width:0}
.kcf-prices legend{font-size:12px;font-weight:800;color:#403b39;margin-bottom:10px;padding:0}
.kcf-prices label{font-size:11px;color:#4f4847;display:block;margin-bottom:9px}
.kcf-prices label span{font-weight:400;color:#9a8987}
.kcf-prices input{display:block!important;width:100%!important;height:38px!important;padding:7px 10px!important;margin-top:5px!important;border:1px solid #e9d6d6!important;border-radius:8px!important;box-shadow:none!important;text-align:left!important;direction:ltr!important;font-size:12px!important;background:#fff!important;color:#333!important;outline:none}
.kcf-prices input:focus{border-color:var(--kcf-red)!important}
.kcf-extra{display:grid;gap:10px;padding:10px 18px 15px;border-top:1px solid var(--kcf-border)}
.kcf-btn{border-radius:8px!important;border:1px solid transparent!important;min-height:39px;font-size:12px!important;font-weight:800!important;cursor:pointer;transition:background .18s,transform .18s;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important}
.kcf-btn:active{transform:scale(.99)}
.kcf-btn--primary{background:var(--kcf-red)!important;color:#fff!important}
.kcf-btn--primary:hover{background:var(--kcf-dark)!important}
.kcf-btn--outline{background:#fff!important;color:var(--kcf-red)!important;border-color:var(--kcf-red)!important}
.kcf-btn--outline:hover{background:#fff8f8!important}
.kcf-apply,.kcf-reset{width:calc(100% - 30px);margin:0 15px 9px}
.kcf-reset{margin-bottom:16px}
.kcf-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:54px;border-bottom:1px solid var(--kcf-border);padding-bottom:12px}
.kcf-heading__title{margin:0!important;font-size:16px!important;font-weight:900!important;color:var(--kcf-ink)!important;line-height:1.5!important}
.kcf-sort{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--kcf-gray);white-space:nowrap}
.kcf-sort select{height:35px!important;min-width:132px;padding:0 12px!important;border:1px solid var(--kcf-border)!important;border-radius:8px!important;background:#fff!important;color:#3b3836!important;font-size:11px!important;box-shadow:none!important}
.kcf-results{transition:opacity .15s ease;min-height:200px}
.kcf-results.kcf-is-loading{opacity:.43;pointer-events:none}
.kcf-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:14px 0 12px;min-height:49px}
.kcf-toolbar__total{font-size:11px;color:#716b66;white-space:nowrap}
.kcf-toolbar__total strong{color:var(--kcf-red)}
.kcf-active{display:flex;flex-wrap:wrap;gap:6px}
.kcf-chip{color:#853d3f!important;border:1px solid #ead3d3!important;background:#fff7f7!important;padding:4px 9px!important;font-size:10px!important;border-radius:20px!important;cursor:pointer;line-height:1.7!important}
.kcf-chip span{font-size:16px;vertical-align:middle;margin-right:5px}
.kcf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.kcf-card{background:#fff;border:1px solid #ede9e7;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 2px 7px rgba(29,15,15,.025);transition:box-shadow .2s,transform .2s}
.kcf-card:hover{transform:translateY(-2px);box-shadow:0 8px 21px rgba(90,37,37,.1)}
.kcf-card__media{display:block;position:relative;aspect-ratio:1 / 1.12;background:var(--kcf-cream);overflow:hidden}
.kcf-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .3s ease}
.kcf-card:hover .kcf-card__media img{transform:scale(1.025)}
.kcf-card__sale{position:absolute;right:8px;top:8px;border-radius:5px;background:var(--kcf-red);padding:3px 8px;font-weight:700;color:#fff;font-size:10px}
.kcf-card__body{padding:10px 10px 9px;display:flex;flex:1;flex-direction:column;gap:8px;min-height:93px}
.kcf-card__name{color:#302d2b!important;font-size:11px!important;font-weight:800!important;line-height:1.9!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:40px}
.kcf-card__name:hover{color:var(--kcf-red)!important}
.kcf-card__bottom{display:flex;align-items:end;justify-content:space-between;gap:6px;margin-top:auto}
.kcf-card__price{font-size:10px;font-weight:800;color:var(--kcf-ink);line-height:1.9;min-width:0;overflow-wrap:anywhere}
.kcf-card__price del{font-size:9px;font-weight:400;color:#999;display:block;opacity:1}
.kcf-card__price ins{text-decoration:none!important;color:var(--kcf-red)}
.kcf-card__price .woocommerce-Price-amount{white-space:normal}
.kcf-card__icon{flex:none;width:28px;height:28px;background:var(--kcf-mint);color:#205d36;border-radius:8px;display:grid;place-items:center}
.kcf-card__oos{color:#ad4545;font-size:10px}
.kcf-pages{display:flex;justify-content:center;align-items:center;gap:7px;padding:27px 0 12px;direction:rtl;flex-direction:row}
.kcf-pages a{border:1px solid #f0e6e6;border-radius:7px;min-width:34px;height:34px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#5b4444!important;font-weight:700;font-size:12px;transition:all .15s}
.kcf-pages a[aria-current=page],.kcf-pages a:hover{background:var(--kcf-red);color:#fff!important;border-color:var(--kcf-red)}
.kcf-empty{padding:70px 15px;text-align:center;background:var(--kcf-cream);border-radius:14px}
.kcf-empty__icon{font-size:45px;color:var(--kcf-red);line-height:1}
.kcf-empty strong{font-size:15px}.kcf-empty p{font-size:12px;color:var(--kcf-gray);margin:12px 0 20px}.kcf-empty .kcf-btn{padding:0 18px}
.kcf-error{background:#fff0ef;color:#9e2727;font-size:12px;padding:14px 16px;border-radius:8px;margin-top:13px}.kcf-error[hidden]{display:none}.kcf-error button{background:none;border:none;color:var(--kcf-red);text-decoration:underline;cursor:pointer}
.kcf-mobilebar,.kcf-backdrop{display:none}
@media(min-width:1025px) and (max-width:1210px){.kcf-layout{grid-template-columns:235px minmax(0,1fr);gap:16px}.kcf-grid{gap:10px}.kcf-card__body{padding:9px 7px}}
@media(min-width:769px) and (max-width:1024px){.kcf-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.kcf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}}
@media(max-width:768px){.kcf-shell{padding-top:0}.kcf-mobilebar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;color:#777;font-size:11px}.kcf-mobile-open{padding:0 14px;min-width:136px}.kcf-layout{display:block}.kcf-sidebar{position:fixed;z-index:999999;right:0;top:0;bottom:0;width:min(340px,90vw);border-radius:16px 0 0 16px;transform:translateX(105%);transition:transform .23s ease;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 60px rgba(0,0,0,.2)}.kcf-is-open .kcf-sidebar{transform:translateX(0)}.kcf-backdrop{position:fixed;z-index:999998;inset:0;background:rgba(20,10,10,.55)}.kcf-is-open .kcf-backdrop{display:block}.kcf-sidebar__head{display:flex;align-items:center;justify-content:flex-start;min-height:48px;padding:10px 18px;border-bottom:1px solid var(--kcf-border)}.kcf-mobile-close{display:block;background:transparent!important;color:#555!important;border:0!important;font-size:27px;line-height:1;cursor:pointer}.kcf-heading__title{font-size:15px!important}.kcf-heading{padding-bottom:10px}.kcf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.kcf-card__body{padding:10px 8px}.kcf-card__media{aspect-ratio:1 / 1.07}.kcf-card__name{font-size:11px!important}.kcf-sort{font-size:0}.kcf-sort select{font-size:11px!important;min-width:120px}.kcf-mobilebar span{display:none}.kcf-mobilebar{justify-content:flex-start}.kcf-facet__choices{max-height:none}.kcf-catalog{scroll-margin-top:15px}}
@media(max-width:360px){.kcf-grid{gap:7px}.kcf-card__icon{width:23px;height:23px}.kcf-card__price{font-size:9px}.kcf-sort select{min-width:110px}}
@media(prefers-reduced-motion:reduce){.kcf-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

body.kcf-lock-scroll{overflow:hidden!important}

/* v1.1 — Automatic WooCommerce archive shell + SEO block. */
.kcf-archive{--kcf-red:#a20108;--kcf-dark:#780008;--kcf-cream:#faf8f4;--kcf-mint:#b2d8b6;--kcf-ink:#292726;--kcf-gray:#72716e;--kcf-border:#ede9e6;direction:rtl;max-width:100%;background:#fff;color:var(--kcf-ink);font-family:"KCF Glacial","IRANSansX","IRANSans",Tahoma,sans-serif;line-height:1.9;overflow:clip}
.kcf-archive *{box-sizing:border-box}
.kcf-archive__wrap{width:min(1240px,calc(100% - 36px));margin:0 auto;padding:18px 0 64px}
.kcf-breadcrumb{font-size:12px;color:#89827e;margin:0 0 20px}.kcf-breadcrumb nav{display:flex;flex-wrap:wrap;gap:5px}.kcf-breadcrumb a{color:#7f7773;text-decoration:none}.kcf-breadcrumb a:hover{color:var(--kcf-red)}
.kcf-archive__top{background:linear-gradient(115deg,#fff 0%,#faf8f4 100%);border:1px solid #f2ece9;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;margin-bottom:25px;min-height:130px}
.kcf-archive__eyebrow{color:var(--kcf-red);font-size:11px;font-weight:800;display:block;margin-bottom:6px}
.kcf-archive__top .kcf-archive__title{color:var(--kcf-ink);font-weight:900;font-size:clamp(23px,2.4vw,31px);line-height:1.5;letter-spacing:-.4px;margin:0 0 4px}
.kcf-archive__top p{font-size:12px;line-height:2;color:#746f6b;margin:0}
.kcf-archive__thumb{flex:0 0 115px;width:115px;height:102px;overflow:hidden;border-radius:11px;background:white}
.kcf-archive__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.kcf-archive .kcf-shell{font-family:inherit;width:100%;max-width:none;padding:0;margin:0}
.kcf-archive .kcf-facet summary,.kcf-archive .kcf-check,.kcf-archive .kcf-card__name,.kcf-archive .kcf-card__price{font-family:inherit}
.kcf-archive .kcf-heading__title{font-size:17px!important;color:var(--kcf-red)!important}
.kcf-archive .kcf-pages__dots{align-self:center;color:#9a8f8d;padding:0 4px}
.kcf-archive .kcf-card__media img{aspect-ratio:1 / 1.12}
.kcf-archive .kcf-card__price{font-variant-numeric:tabular-nums}
.kcf-archive .kcf-card__name{word-break:normal}
.kcf-seobox{margin:48px auto 0;padding:32px;border-radius:15px;border:1px solid #eeeae8;box-shadow:0 4px 18px rgba(38,23,23,.035);background:#fff}
.kcf-seobox__inner{max-width:100%;margin:0 auto}
.kcf-seobox h2{font-size:21px!important;margin:0 0 17px!important;line-height:1.6!important;color:var(--kcf-red)!important;font-weight:900!important}
.kcf-seobox__body{font-size:13px;color:#4c4a47;line-height:2.35;overflow-wrap:anywhere}
.kcf-seobox__body h2{font-size:17px!important;margin:22px 0 10px!important}.kcf-seobox__body h3{font-size:15px!important;color:#34302e!important;margin:17px 0 8px!important}
.kcf-seobox__body p{margin:0 0 14px}.kcf-seobox__body ul,.kcf-seobox__body ol{padding-inline-start:22px;margin:10px 0 18px}
.kcf-seobox__body a{color:var(--kcf-red);text-decoration:underline;text-underline-offset:4px}
.kcf-seobox__body table{display:block;overflow-x:auto;border-collapse:collapse;width:100%;max-width:100%}.kcf-seobox__body td,.kcf-seobox__body th{border:1px solid #e5dfdc;padding:8px 12px}
.kcf-error__load{color:var(--kcf-red);text-decoration:underline}
@media(max-width:768px){.kcf-archive__wrap{width:min(100% - 24px,1240px);padding:12px 0 35px}.kcf-archive__top{border-radius:13px;padding:18px 17px;gap:12px;margin-bottom:18px;min-height:auto}.kcf-archive__top .kcf-archive__title{font-size:21px}.kcf-archive__top p{font-size:11px}.kcf-archive__thumb{flex-basis:70px;width:70px;height:82px}.kcf-breadcrumb{font-size:10px;margin-bottom:12px}.kcf-seobox{padding:19px 16px;margin-top:28px}.kcf-seobox h2{font-size:18px!important}.kcf-seobox__body{font-size:12px;line-height:2.2}}
@media(max-width:370px){.kcf-archive__top{padding:15px 12px}.kcf-archive__thumb{display:none}}

/* v1.3: retain full carpet photography; thumbnails must never be pre-cropped. */
.kcf-card__media{aspect-ratio:4 / 5;background:#faf8f4;padding:9px;display:grid;place-items:center}
.kcf-card__media img{object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;width:100%!important;height:100%!important;max-width:100%;border-radius:6px}
.kcf-card:hover .kcf-card__media img{transform:none!important}
.kcf-archive .kcf-card__media img{aspect-ratio:auto!important}
.kcf-archive__top--minimal{min-height:0!important;padding:0 0 14px!important;border:0!important;background:transparent!important;box-shadow:none!important;margin-bottom:12px!important;display:block!important;border-bottom:1px solid #eee8e4!important;border-radius:0!important}
.kcf-archive__top--minimal .kcf-archive__title{margin:0!important;color:#a20108!important;font-size:clamp(19px,2vw,25px)!important}
@media(max-width:560px){.kcf-card__media{padding:6px;aspect-ratio:4 / 5}.kcf-grid{gap:10px}.kcf-card__body{padding:8px 7px}}


/* v1.3.1 — Product photos are portrait-shaped: display the FULL rug, large and uncropped.
   Clean white photo stage blends with source JPEGs that have white studio backgrounds. */
.kcf-archive .kcf-card{
  border:1px solid #eee8e5;
  border-radius:13px;
  box-shadow:0 3px 12px rgba(51,31,27,.045);
  background:#fff;
}
.kcf-archive .kcf-card__media{
  aspect-ratio:7 / 10;
  padding:7px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid #f3efec;
}
.kcf-archive .kcf-card__media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  aspect-ratio:auto!important;
  border-radius:0!important;
}
.kcf-archive .kcf-card__body{
  padding:12px 11px 13px;
  gap:10px;
  min-height:114px;
}
.kcf-archive .kcf-card__name{
  font-size:12px!important;
  line-height:1.85!important;
  min-height:43px;
  -webkit-line-clamp:2;
}
.kcf-archive .kcf-card__bottom{align-items:center;gap:9px}
.kcf-archive .kcf-card__price{
  font-size:11px!important;
  line-height:1.95!important;
  overflow-wrap:normal;
}
.kcf-archive .kcf-card__price .woocommerce-Price-amount{white-space:nowrap}
.kcf-archive .kcf-card__icon{width:33px;height:33px;border-radius:9px}
.kcf-archive .kcf-card__sale{top:11px;right:11px}
@media (hover:hover) and (pointer:fine){
  .kcf-archive .kcf-card:hover{box-shadow:0 12px 28px rgba(70,27,27,.10);border-color:#e9d2d3}
}
@media(max-width:768px){
  .kcf-archive .kcf-card__media{aspect-ratio:7 / 10;padding:5px}
  .kcf-archive .kcf-card__body{padding:9px 8px 11px;gap:8px;min-height:110px}
  .kcf-archive .kcf-card__name{font-size:11px!important;min-height:41px}
  .kcf-archive .kcf-card__price{font-size:10px!important;line-height:1.9!important}
  .kcf-archive .kcf-card__icon{width:29px;height:29px}
}

/* v1.3.2 — Pagination starts at 1 on the right on shop and all WooCommerce archives. */
.kcf-archive .kcf-pages, .kcf-shell .kcf-pages{direction:rtl!important;flex-direction:row!important}

/* v1.3.6 — Editor-authored SEO H1 is permitted only inside the SEO box. */
.kcf-seobox__body h1{font-size:clamp(19px,2vw,25px)!important;line-height:1.65!important;margin:0 0 18px!important;color:var(--kcf-red)!important;font-weight:900!important}

/* v1.3.9 – compact in-stock-safe contact action for unavailable archive items. */
.kcf-archive .kcf-card__contact{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;padding:8px 11px;border:1px solid #ead3d3;border-radius:9px;background:#fff3f2;color:var(--kcf-red)!important;font-size:12px;font-weight:850;line-height:1.5;text-decoration:none!important;transition:background .2s,color .2s}
.kcf-archive .kcf-card__contact:hover{background:var(--kcf-red);color:#fff!important}
.kcf-archive .kcf-card__contact:focus-visible{outline:2px solid var(--kcf-red);outline-offset:2px}
.kcf-archive .kcf-card__contact svg{flex:none}
@media(max-width:560px){.kcf-archive .kcf-card__contact{min-height:36px;padding:7px 6px;gap:5px;font-size:11px}}
