/* پوسته‌ی «single» — فقط وقتی همین پوسته فعاله بارگذاری می‌شه. */
html[data-skin="single"]:not([data-theme="dark"]) {
  --bg-page:#FFFFFF; --bg-card:#F4F6F8; --header-bg:#FFFFFF; --footer-bg:#F4F6F8;
  --primary:#111827; --pastel-red:#EEF0F3; --pastel-green:#EEF0F3; --pastel-blue:#EEF0F3;
  --text-dark:#101418; --text-muted:#5D6670; --border:#E5E7EB;
}
html[data-skin="single"] { --card-radius:22px; }
html[data-skin="single"] .pro-header { box-shadow:none; }
html[data-skin="single"] .pro-brand-name { font-weight:800; font-size:18px; }
html[data-skin="single"] .pro-header-search, html[data-skin="single"] .pro-icon-btn, html[data-skin="single"] .pro-mega-btn { border-radius:999px; }
html[data-skin="single"] .pro-grid { gap:18px; }
@media (min-width:700px) {
}
html[data-skin="single"] .pro-card { border:none; padding:14px; gap:10px; }
html[data-skin="single"] .pro-thumb { border-radius:16px; background:#fff; }
html[data-skin="single"] .pro-card-name { font-size:16px; font-weight:800; min-height:0; }
html[data-skin="single"] .pro-price { font-size:17px; color:var(--text-dark); }
html[data-skin="single"] .pro-btn { padding:13px; font-size:14px; }
html[data-skin="single"] .pro-hero { border:none; padding:56px 24px; }
html[data-skin="single"] .pro-hero h1 { font-size:38px; font-weight:800; line-height:1.3; }
html[data-skin="single"] .pro-hero-cta { padding:14px 32px; font-size:15px; }
html[data-skin="single"] .pro-section-head { justify-content:center; flex-direction:column; text-align:center; margin-top:44px; }
html[data-skin="single"] .pro-section-head h2 { font-size:26px; font-weight:800; }
html[data-skin="single"] .pro-product-title { font-size:28px; font-weight:800; }
html[data-skin="single"] .pro-price-big { font-size:28px; color:var(--text-dark); }
@media (max-width:600px) {
  html[data-skin="single"] .pro-hero h1 { font-size:27px; }
}
html[data-skin="single"] { --head-font:'SkKufi'; }
html[data-skin="single"] .wrap { max-width:1080px; padding:0 20px; }
html[data-skin="single"] .pro-section-head { margin:52px 0 22px; }
html[data-skin="single"] .pro-block { margin-bottom:22px; }
html[data-skin="single"] .pro-hero { display:block; }
html[data-skin="single"] .pro-hero-logo { margin:0 auto 18px !important; display:block; }
html[data-skin="single"] .pro-hero p { margin:0 auto 22px !important; }
html[data-skin="single"] .pro-hero { text-align:center; background:var(--bg-card); }
html[data-skin="single"] .pro-hero h1 { font-size:46px; }
html[data-skin="single"] .pro-slide-cap { inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; background:rgba(0,0,0,.28); }
html[data-skin="single"] .pro-slide-cap h2 { font-size:36px; }
html[data-skin="single"] .pro-footer-grid { flex-direction:column; align-items:center; text-align:center; gap:22px; }
html[data-skin="single"] .pro-footer-meta { margin:0 auto; }
html[data-skin="single"] .pro-footer-links { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:8px 18px; }
html[data-skin="single"] .pro-footer-social, html[data-skin="single"] .pro-footer-cats { justify-content:center; margin-inline:auto; }
html[data-skin="single"] .pro-product-title { font-size:34px; }

/* ====== پوسته‌ی تک‌محصول — کارتِ اختصاصی (templates/storefront/skins/single/) ====== */
html[data-skin="single"] .sg-card { padding:16px !important; gap:10px; border:none !important; background:var(--bg-card); border-radius:26px; }
html[data-skin="single"] .sg-media { position:relative; aspect-ratio:1/1; border-radius:20px !important; background:#fff !important; }
html[data-skin="single"] .sg-media img { object-fit:cover; transition:transform .5s; }
@media (hover:hover) { html[data-skin="single"] .sg-card:hover .sg-media img { transform:scale(1.04); } }
.sg-tag { position:absolute; top:12px; right:12px; background:#111827; color:#fff; font-size:11.5px; font-weight:700; border-radius:999px; padding:3px 11px; }
html[data-skin="single"] .sg-card .pro-card-name { font-size:18px; font-weight:800; min-height:0; -webkit-line-clamp:1; }
.sg-desc { margin:0; font-size:12.5px; line-height:1.9; color:var(--text-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sg-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.sg-price { display:flex; flex-direction:column; line-height:1.4; }
.sg-price s { font-size:12px; color:var(--text-muted); }
.sg-price b { font-size:19px; font-weight:800; }
.sg-price small { font-size:11px; color:var(--text-muted); }
html[data-skin="single"] .sg-add { width:auto !important; padding:11px 26px !important; border-radius:999px; background:#111827; color:#fff; font-size:13.5px; }
html[data-skin="single"] .sg-add:disabled { background:var(--border); color:var(--text-muted); }
html[data-skin="single"] .sg-card.is-oos .sg-media img { opacity:.5; }
html[data-skin="single"] .pro-shop-grid.is-list .sg-card { display:grid !important; grid-template-columns:160px minmax(0,1fr); gap:8px 18px; }
html[data-skin="single"] .pro-shop-grid.is-list .sg-media { grid-row:span 4; }
@media (max-width:699px) {
  html[data-skin="single"] .pro-block .pro-grid:not(.pro-shop-grid) { display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:78%;
    overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; gap:10px; margin-inline:-11px; padding:2px 11px 8px; }
  html[data-skin="single"] .pro-block .pro-grid:not(.pro-shop-grid)::-webkit-scrollbar { display:none; }
  html[data-skin="single"] .pro-block .pro-grid:not(.pro-shop-grid) > .pro-card { scroll-snap-align:start; }
}
/* ---------- صفحه‌ی محصول ---------- */
@media (min-width:821px) {
  html[data-skin="single"] .pro-product { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:34px; }
  html[data-skin="single"] .pro-product > div:first-child:has(.pro-gallery-thumbs) { display:grid; grid-template-columns:72px minmax(0,1fr); gap:12px; align-items:start; }
  html[data-skin="single"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-main { grid-column:2; grid-row:1; }
  html[data-skin="single"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-thumbs { grid-column:1; grid-row:1; flex-direction:column; flex-wrap:nowrap; margin:0; max-height:560px; overflow-y:auto; scrollbar-width:none; }
  html[data-skin="single"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-dots { display:none; }
  html[data-skin="single"] .pro-gallery-thumbs button { width:72px; height:72px; flex-shrink:0; }
  html[data-skin="single"] .pro-product > div:last-child { position:sticky; top:96px; }
}
html[data-skin="single"] .pro-product-title { font-size:22px; font-weight:800; line-height:1.6; }
html[data-skin="single"] .pro-price-box { border-radius:16px; }
html[data-skin="single"] .pro-price-big { font-size:26px; }
.cl-perks { list-style:none; margin:4px 0 14px; padding:12px 14px; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px 14px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:16px; }
.cl-perks li { display:flex; align-items:center; gap:9px; font-size:12.5px; line-height:1.6; }
.cl-perks .ic { width:22px; height:22px; flex-shrink:0; color:var(--primary); }
.cl-perks small { display:block; color:var(--text-muted); font-size:11px; }
html[data-skin="single"] .pro-info { border-radius:16px; }

/* ---------- فوتر ---------- */
.cl-footer { padding:34px 0 18px; margin-top:40px; }
.cl-footer-grid { display:grid; grid-template-columns:minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap:26px; }
.cl-fabout .pro-brand { margin-bottom:10px !important; }
.cl-fabout .pro-footer-meta { margin:0 0 12px; max-width:none; }
.cl-fcol summary { list-style:none; cursor:default; }
.cl-fcol summary::-webkit-details-marker { display:none; }
.cl-fcol summary h3 { margin:0 0 12px; font-size:14px; }
.cl-fcontact span { line-height:1.9; }
@media (max-width:820px) {
  .cl-footer-grid { grid-template-columns:1fr; gap:0; }
  .cl-fabout { padding-bottom:14px; }
  .cl-fcol { border-top:1px solid var(--border); }
  .cl-fcol summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:13px 0; }
  .cl-fcol summary h3 { margin:0; }
  .cl-fcol summary::after { content:""; width:9px; height:9px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); transition:transform .2s; margin-inline-end:4px; opacity:.6; }
  .cl-fcol[open] summary::after { transform:rotate(135deg); }
  .cl-fcol .pro-footer-links { padding-bottom:14px; }
}

/* هدرِ شیشه‌ای به‌صورتِ پیش‌فرض (اسلایدشو دیگه زیرِ هدر نمی‌ره) */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html[data-skin="single"] .pro-header { background:color-mix(in srgb, var(--header-bg) 72%, transparent) !important; backdrop-filter:blur(16px) saturate(1.5); -webkit-backdrop-filter:blur(16px) saturate(1.5); }
}
