/* Faraz Catalog Templates - self-contained RTL catalog, no theme-wide selectors */
.fzct {
  --fzct-ink: #19272c;
  --fzct-muted: #5c6b70;
  --fzct-accent: #ad834d;
  --fzct-line: #e5e8e7;
  --fzct-soft: #f5f6f5;
  --fzct-paper: #ffffff;
  --fzct-radius: 12px;
  --fzct-font: var(--e-global-typography-text-font-family, inherit);
  font-family: var(--fzct-font);
  direction: rtl;
  text-align: right;
  color: var(--fzct-ink);
  font-size: 16px;
  line-height: 1.85;
  width: 100%;
  background: var(--fzct-paper);
  -webkit-font-smoothing: antialiased;
}
.fzct,.fzct *,.fzct *::before,.fzct *::after { box-sizing: border-box; }
.fzct img,.fzct svg { display: block; }
.fzct img { max-width: 100%; height: auto; }
.fzct button,.fzct a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fzct button { font-family: inherit; cursor: pointer; }
.fzct a { text-decoration: none; color: inherit; }
.fzct a:focus-visible,.fzct button:focus-visible { outline: 3px solid #a07941; outline-offset: 3px; }
.fzct-container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 54px); }
.fzct-catalog { padding: clamp(44px, 6vw, 82px) 0 clamp(70px, 8vw, 110px); }
.fzct-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -17px 0 48px; font-size: 13px; line-height: 1.6; color: var(--fzct-muted); }
.fzct-breadcrumb a:hover { color: var(--fzct-accent); }
.fzct-breadcrumb [aria-current="page"] { color: var(--fzct-ink); font-weight: 600; }
.fzct-breadcrumb-sep { opacity: .45; }
.fzct-section-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 750; color: #87633c; letter-spacing: .015em; }
.fzct-tag-line { width: 24px; height: 2px; background: var(--fzct-accent); display: inline-block; }
.fzct-catalog-head { margin: 0 0 32px; }
.fzct-headline-row { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 12px; }
.fzct-heading-group { flex: 1 1 500px; min-width: 0; }
.fzct-page-title { color: var(--fzct-ink); font-family: inherit; font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.55; margin: 0; letter-spacing: -.02em; }
.fzct-page-lead { font-size: 14px; line-height: 2; max-width: 780px; color: var(--fzct-muted); margin: 10px 0 0; }
.fzct-page-lead p { margin: 0; }
.fzct-total { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fzct-muted); background: var(--fzct-soft); border: 1px solid var(--fzct-line); border-radius: 100px; padding: 7px 14px; white-space: nowrap; }
.fzct-total svg { width: 16px; height: 16px; }
.fzct-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; padding: 0 0 25px; border-bottom: 1px solid var(--fzct-line); }
.fzct-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: #fff; border: 1px solid #e1e5e3; color: #425056; font-weight: 600; font-size: 13px; line-height: 1.5; padding: 10px 17px; border-radius: 999px; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.fzct-filter:hover { background: #f2f4f3; border-color: #cad2d0; color: var(--fzct-ink); }
.fzct-filter.is-active { background: var(--fzct-ink); color: #fff; border-color: var(--fzct-ink); }
.fzct-grid { display: grid; grid-template-columns: repeat(var(--fzct-columns,5), minmax(0,1fr)); gap: clamp(12px,1.4vw,22px); align-items: start; }
.fzct-card { min-width: 0; padding: 0; margin: 0; background: #e6e9e8; border: 1px solid #ebebeb; border-radius: var(--fzct-radius); overflow: hidden; isolation: isolate; }
.fzct-card-link { display: block; position: relative; overflow: hidden; }
.fzct-card-media { display: block; position: relative; aspect-ratio: 2 / 3.5; background: #edf0ef; overflow: hidden; }
.fzct-card-image { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s cubic-bezier(.2,.65,.25,1); }
.fzct-card-link:hover .fzct-card-image { transform: scale(1.045); }
.fzct-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 33%, rgba(8,17,20,.12) 50%, rgba(8,17,20,.86) 100%); pointer-events: none; }
.fzct-card-meta { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 8px; padding: clamp(14px,1.6vw,22px); color: #fff; }
.fzct-card-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.fzct-card-category { color: #e0d0b6; font-size: 11px; font-weight: 650; line-height: 1.6; }
.fzct-card-name { color: #fff; font-size: clamp(13px,1.15vw,16px); font-weight: 760; line-height: 1.6; max-height: 3.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.fzct-card-action { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease; }
.fzct-card-action svg { width: 16px; height: 16px; transform: rotate(0deg); }
.fzct-card-link:hover .fzct-card-action { background: #fff; color: var(--fzct-ink); }
.fzct-no-image { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #50646c; font-size: 12px; }
.fzct-no-image svg { width: 38px; height: 38px; }
.fzct-card:has(.fzct-no-image) .fzct-card-overlay { background: linear-gradient(180deg, transparent 25%, rgba(8,17,20,.72) 100%); }
.fzct-more-wrap { text-align: center; margin: 35px 0 0; }
.fzct-more { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 11px 26px; border: 1px solid #b9c0bd; border-radius: 8px; font-size: 14px; font-weight: 700; background: #fff; color: var(--fzct-ink); transition: background .2s ease, border-color .2s ease; }
.fzct-more svg { transform: rotate(-90deg); }
.fzct-more:hover { background: #f5f6f5; border-color: var(--fzct-ink); }
.fzct-more.is-loading { opacity: .66; cursor: wait; pointer-events: none; }
.fzct-more-status { color: var(--fzct-muted); font-size: 13px; margin: 8px auto 0; min-height: 1em; }
.fzct-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: clamp(45px,8vw,90px) 20px; border: 1px dashed #d6dcd8; border-radius: 14px; text-align: center; background: var(--fzct-soft); }
.fzct-empty-icon { width: 56px; height: 56px; border-radius: 50%; background: #e7ebea; color: #587078; display: grid; place-items: center; }
.fzct-empty h3 { margin: 18px 0 4px; font-weight: 750; color: var(--fzct-ink); font-size: 19px; }
.fzct-empty p { margin: 0 0 22px; color: var(--fzct-muted); font-size: 14px; }
.fzct-empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 7px; color: #fff; background: var(--fzct-ink); padding: 9px 19px; font-size: 13px; font-weight: 700; }
/* Single product */
.fzct-single { padding: 48px 0 90px; }
.fzct-single .fzct-breadcrumb { margin: 0 0 35px; }
.fzct-single-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: clamp(28px,4.3vw,70px); }
.fzct-media-col,.fzct-detail-col { min-width: 0; }
.fzct-media-col { position: sticky; top: 95px; }
.fzct-featured-frame { aspect-ratio: 1 / 1; position: relative; overflow: hidden; border: 1px solid #e7e9e8; border-radius: 14px; background: #f4f5f4; }
.fzct-featured-button { padding: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.fzct-featured-img { width: 100% !important; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; padding: 12px; }
.fzct-image-zoom { display: inline-flex; align-items: center; gap: 8px; position: absolute; bottom: 17px; left: 17px; border-radius: 8px; background: rgba(255,255,255,.94); color: #2e383b; font-size: 12px; font-weight: 650; padding: 9px 11px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.fzct-image-zoom svg { width: 16px; height: 16px; }
.fzct-featured-empty { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #6f8085; font-size: 14px; }
.fzct-featured-empty svg { width: 42px; height: 42px; }
.fzct-thumb-list { display: flex; gap: 10px; margin: 14px 0 0; overflow-x: auto; max-width: 100%; padding: 3px 2px 7px; scrollbar-width: thin; }
.fzct-thumb { width: 82px; height: 82px; flex: 0 0 82px; border: 1px solid #d8ddda; border-radius: 9px; padding: 5px; background: #f5f6f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fzct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fzct-thumb:hover { border-color: #9c876b; }
.fzct-thumb.is-selected { border: 2px solid var(--fzct-accent); }
.fzct-detail-col { padding: 4px 0; }
.fzct-detail-category { display: inline-flex; gap: 4px; min-height: 30px; align-items: center; color: #86633b; font-size: 13px; font-weight: 700; }
.fzct-detail-category svg { width: 16px; height: 16px; }
.fzct-product-title { font-family: inherit; font-size: clamp(28px,3.3vw,43px); line-height: 1.65; font-weight: 800; color: var(--fzct-ink); margin: 6px 0 0; overflow-wrap: anywhere; }
.fzct-title-accent { width: 44px; height: 3px; border-radius: 3px; background: var(--fzct-accent); margin: 17px 0 21px; }
.fzct-product-excerpt { font-size: 15px; line-height: 2.15; color: #46575c; margin: 0 0 24px; }
.fzct-product-excerpt p { margin: 0; }
.fzct-specs { margin: 24px 0; border: 1px solid var(--fzct-line); border-radius: 12px; padding: clamp(17px,2.4vw,26px); background: #fff; }
.fzct-specs-title,.fzct-description h2 { margin: 0 0 17px; font-size: 19px; line-height: 1.6; font-weight: 800; color: var(--fzct-ink); }
.fzct-spec-list { margin: 0; display: grid; gap: 0; }
.fzct-spec-row { display: grid; grid-template-columns: minmax(110px,36%) minmax(0,1fr); align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e9eceb; font-size: 14px; }
.fzct-spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fzct-spec-row:first-child { padding-top: 0; }
.fzct-spec-row dt { font-weight: 650; color: #627175; }
.fzct-spec-row dd { margin: 0; font-weight: 650; color: #26353a; overflow-wrap: anywhere; }
.fzct-description { margin: 24px 0 0; padding: 0; }
.fzct-description-body { color: #4a5a5f; font-size: 15px; line-height: 2.15; overflow-wrap: anywhere; }
.fzct-description-body > :first-child { margin-top: 0; }
.fzct-description-body > :last-child { margin-bottom: 0; }
.fzct-description-body ul,.fzct-description-body ol { padding: 0 22px 0 0; }
.fzct-description-body a { color: #79562d; text-decoration: underline; text-underline-offset: 3px; }
.fzct-description-body img { border-radius: 10px; }
.fzct-no-description { color: var(--fzct-muted); font-size: 14px; }
.fzct-detail-foot { margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--fzct-line); }
.fzct-back { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 9px 19px; border: 1px solid var(--fzct-ink); color: var(--fzct-ink); border-radius: 8px; font-weight: 750; font-size: 13px; transition: background .2s ease, color .2s ease; }
.fzct-back:hover { background: var(--fzct-ink); color: #fff; }
.fzct-back svg { width: 17px; height: 17px; transform: rotate(180deg); }
.fzct-related { margin-top: clamp(74px,9vw,122px); padding-top: clamp(30px,4vw,50px); border-top: 1px solid var(--fzct-line); }
.fzct-related-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.fzct-related-top h2 { margin: 10px 0 0; font-size: clamp(24px,2.7vw,32px); font-weight: 800; color: var(--fzct-ink); }
.fzct-related-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--fzct-ink); }
.fzct-related-all:hover { color: var(--fzct-accent); }
.fzct-related-all svg { width: 16px; height: 16px; transform: rotate(180deg); }
.fzct-related-grid { --fzct-columns: 5; }
.fzct-lightbox { border: 0; padding: clamp(12px,2vw,25px); border-radius: 12px; background: #fff; max-width: min(94vw,1100px); max-height: 94vh; overflow: visible; box-shadow: 0 18px 70px rgba(0,0,0,.3); }
.fzct-lightbox::backdrop { background: rgba(11,20,24,.88); }
.fzct-lightbox img { display: block; max-width: min(89vw,1030px); max-height: 82vh; object-fit: contain; margin: auto; }
.fzct-lightbox-close { position: absolute; z-index: 2; top: -15px; left: -15px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d8dcda; border-radius: 50%; background: #fff; color: #101e22; font-size: 28px; line-height: 1; }
/* Responsiveness */
@media (max-width: 1199px) {
  .fzct-catalog .fzct-grid,.fzct-related-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .fzct-catalog .fzct-grid,.fzct-related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fzct-single-layout { gap: 24px; }
  .fzct-media-col { top: 30px; }
  .fzct-product-title { font-size: 30px; }
}
@media (max-width: 700px) {
  .fzct-container { padding-inline: 16px; }
  .fzct-catalog { padding: 38px 0 64px; }
  .fzct-breadcrumb { margin: 0 0 30px; gap: 9px; font-size: 12px; }
  .fzct-catalog-head { margin-bottom: 23px; }
  .fzct-headline-row { align-items: start; gap: 10px; }
  .fzct-page-title { font-size: 28px; }
  .fzct-page-lead { font-size: 14px; margin-top: 5px; }
  .fzct-total { font-size: 12px; padding: 4px 11px; }
  .fzct-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 17px; scrollbar-width: thin; margin-bottom: 18px; }
  .fzct-filter { flex-shrink: 0; min-height: 44px; }
  .fzct-catalog .fzct-grid,.fzct-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .fzct-card-meta { padding: 12px; align-items: end; }
  .fzct-card-action { width: 26px; height: 26px; flex-basis: 26px; }
  .fzct-card-action svg { width: 14px; height: 14px; }
  .fzct-card-name { font-size: 13px; }
  .fzct-card-category { font-size: 10px; }
  .fzct-single { padding: 27px 0 64px; }
  .fzct-single .fzct-breadcrumb { margin-bottom: 23px; }
  .fzct-single-layout { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .fzct-media-col { position: static; }
  .fzct-featured-frame { aspect-ratio: 1 / .92; }
  .fzct-thumb { width: 72px; height: 72px; flex-basis: 72px; }
  .fzct-product-title { font-size: 29px; }
  .fzct-related { margin-top: 70px; }
  .fzct-related-top { align-items: start; gap: 10px; }
  .fzct-related-top h2 { font-size: 24px; }
}
@media (max-width: 375px) {
  .fzct-card-meta { padding: 10px; }
  .fzct-card-action { display: none; }
  .fzct-card-name { font-size: 12px; }
  .fzct-spec-row { grid-template-columns: 1fr; gap: 0; }
  .fzct-related-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .fzct *,.fzct *::before,.fzct *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.fzct .fzct-more[hidden] { display: none !important; }
