/*
 * Nikdel Signature Experience 3.0 — local performance refinement V6.
 * Preserve original jewelry imagery and the established burgundy/cream identity.
 * Initial geometry only: no inventory, pricing, or authorization changes.
 */
#home .photo-hero-art picture {
  display:block;
  width:100%;
  height:100%;
  min-width:0;
}
#home .photo-hero-art picture img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Static heights before the catalog scripts render: category rail and cards. */
.gallery-refined .sf-catalog .sf-categories {
  min-height:160px;
}
.gallery-refined .sf-category-skeleton {
  display:block;
  aspect-ratio:1;
  width:100%;
  max-width:128px;
  margin-inline:auto;
  border-radius:50%;
  background:linear-gradient(135deg,#f4eee4,#e9ddce);
  border:1px solid #e3d4c0;
}
.gallery-refined .sf-initial-skeleton {
  min-width:0;
  border-radius:18px;
}
.gallery-refined .sf-skeleton-media,
.gallery-refined .sf-skeleton-detail-image {
  background:linear-gradient(135deg,#f8f4ec,#eae0d3);
  border:1px solid #e8dfd3;
  aspect-ratio:1;
  border-radius:18px;
  width:100%;
}
.gallery-refined .sf-skeleton-line {
  height:13px;
  width:85%;
  border-radius:99px;
  margin:13px 2px 0;
  background:#e8ded1;
}
.gallery-refined .sf-skeleton-line--small { width:39%; height:9px }
.gallery-refined .sf-skeleton-line--short { width:58%; height:11px }
.gallery-refined .sf-skeleton-breadcrumb {height:20px;width:48%;background:#e8ded1;border-radius:99px;margin:0 0 24px}
.gallery-refined .sf-detail-skeleton .sf-skeleton-detail-image {border-radius:22px}
.gallery-refined .sf-skeleton-thumbnails {display:flex;gap:10px;margin-top:10px}
.gallery-refined .sf-skeleton-thumbnails i {display:block;width:64px;height:64px;border-radius:8px;background:#e8ded1}
.gallery-refined .sf-piece-copy .sf-skeleton-line {margin-block:0 22px;height:14px}
.gallery-refined .sf-piece-copy .sf-skeleton-title {width:73%;height:35px}
.gallery-refined .sf-piece-copy .sf-skeleton-detail-action {width:100%;height:50px;border-radius:9px;margin-top:46px}
.gallery-refined .sf-loading-status{font-size:12px;line-height:2;color:#76665a;margin:14px 0}
.gallery-refined .sf-piece .sf-detail-skeleton{min-height:560px}
@media(max-width:700px){
  .gallery-refined .sf-catalog .sf-categories {min-height:116px}
  .gallery-refined .sf-category-skeleton {flex:0 0 86px;height:86px;max-width:none}
  .gallery-refined .sf-skeleton-media {border-radius:15px}
  .gallery-refined .sf-piece .sf-detail-skeleton {min-height:620px}
  .gallery-refined .sf-skeleton-breadcrumb {width:70%;margin-bottom:15px}
  .gallery-refined .sf-skeleton-thumbnails i{width:62px;height:62px}
  .gallery-refined .sf-piece-copy .sf-skeleton-title{height:29px}
}
@media(prefers-reduced-motion:reduce){
  .gallery-refined .sf-category-skeleton,
  .gallery-refined .sf-skeleton-media,
  .gallery-refined .sf-skeleton-line{animation:none!important}
}

/* Progressive previews: numbered frames stay fixed while genuine font files load. */
.nx-font-card .nx-font-loading,
.signature-sample .signature-sample-loading {
  display:block;
  width:100%;
  aspect-ratio:3/2;
  background:linear-gradient(140deg,#f9f4eb,#e9ddcc);
  border-radius:9px;
}
.nx-font-card:disabled,
.signature-sample:disabled{
  opacity:1;
  cursor:progress;
}
.nx-font-card:disabled:hover,
.signature-sample:disabled:hover{
  transform:none;
}
.nx-font-card:disabled span::before{content:"آماده‌سازی";color:#8a7860}
.signature-sample:disabled span{color:#8a7860}

/* The historical 66/82px rate-bar reservation shifted the header after JS.
 * Reserve the measured 44px desktop and 50px mobile dimensions at first paint. */
:root { --rate-height:44px; --gold-strip-height:44px }
@media(max-width:700px) {
  :root { --rate-height:50px; --gold-strip-height:50px }
}
