/* پوسته‌ی «cafe» — فقط وقتی همین پوسته فعاله بارگذاری می‌شه. */
html[data-skin="cafe"]:not([data-theme="dark"]) {
  --bg-page:#F5F0EA; --bg-card:#FFFFFF; --header-bg:#FFFFFF; --footer-bg:#FFFFFF;
  --primary:#7A4B2A; --pastel-red:#EFE3D6; --pastel-green:#E4EBDD; --pastel-blue:#ECE3D8;
  --text-dark:#2A1F18; --text-muted:#80705F; --border:#E6DCCF;
}
html[data-skin="cafe"] { --card-radius:16px; }
html[data-skin="cafe"] .pro-grid, html[data-skin="cafe"] .pro-shop-grid { grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:10px !important; }
html[data-skin="cafe"] .pro-grid .pro-card, html[data-skin="cafe"] .pro-shop-grid .pro-card { display:grid !important; grid-template-columns:76px minmax(0,1fr) auto; grid-template-areas:"t n b" "t c b" "t p b";
  align-items:center; column-gap:12px; row-gap:2px; padding:9px; }
html[data-skin="cafe"] .pro-grid .pro-thumb, html[data-skin="cafe"] .pro-shop-grid .pro-thumb { grid-area:t; width:76px !important; height:76px !important; aspect-ratio:1/1; border-radius:12px; }
html[data-skin="cafe"] .pro-grid .pro-card-name, html[data-skin="cafe"] .pro-shop-grid .pro-card-name { grid-area:n; min-height:0; font-size:14px; -webkit-line-clamp:1; }
html[data-skin="cafe"] .pro-grid .pro-card-desc, html[data-skin="cafe"] .pro-shop-grid .pro-card-desc { grid-area:c; display:-webkit-box !important; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; margin:0; font-size:12px; color:var(--text-muted); }
html[data-skin="cafe"] .pro-card-cat { display:none !important; }
html[data-skin="cafe"] .pro-grid .pro-price-row, html[data-skin="cafe"] .pro-shop-grid .pro-price-row { grid-area:p; margin:0; }
html[data-skin="cafe"] .pro-price { color:var(--text-dark); font-size:14px; }
html[data-skin="cafe"] .pro-grid .pro-btn, html[data-skin="cafe"] .pro-shop-grid .pro-btn { grid-area:b; width:40px !important; height:40px; padding:0 !important; border-radius:12px; font-size:0 !important; position:relative; justify-self:end; }
html[data-skin="cafe"] .pro-grid .pro-btn::before, html[data-skin="cafe"] .pro-shop-grid .pro-btn::before { content:"+"; font-size:22px; line-height:40px; font-weight:500; }
html[data-skin="cafe"] .pro-grid .pro-btn:disabled, html[data-skin="cafe"] .pro-shop-grid .pro-btn:disabled { opacity:.35; }
html[data-skin="cafe"] .pro-card-flag { top:4px; right:4px; font-size:9.5px; padding:1px 6px; }
html[data-skin="cafe"] .pro-view-toggle { display:none; }
html[data-skin="cafe"] .pro-cat-chips { display:flex; position:sticky; top:64px; z-index:5; background:var(--bg-page); padding:6px 0; }
html[data-skin="cafe"] .pro-cat-chips a.active { background:var(--text-dark); border-color:var(--text-dark); }
html[data-skin="cafe"] .pro-hero { background:var(--primary); color:#fff; border:none; }
html[data-skin="cafe"] .pro-hero p { color:rgba(255,255,255,.85); }
html[data-skin="cafe"] .pro-hero-cta { background:#fff; color:var(--primary); }
html[data-skin="cafe"] .pro-section-head h2 { font-weight:800; }
@media (max-width:699px) {
  html[data-skin="cafe"] .pro-grid, html[data-skin="cafe"] .pro-shop-grid { grid-template-columns:minmax(0,1fr) !important; }
}
html[data-skin="cafe"] { --head-font:'Vazirmatn'; }
html[data-skin="cafe"] .pro-section-head { margin:18px 0 10px; }
@media (min-width:821px) {
  html[data-skin="cafe"] .pro-nav-inner { justify-content:center; }
}
html[data-skin="cafe"] .pro-hero { padding:34px 26px; }
html[data-skin="cafe"] .pro-footer { background:var(--text-dark); color:#F5F0EA; --text-muted:#CBBBA8; --text-dark:#F5F0EA; --bg-page:rgba(255,255,255,.08); --border:rgba(255,255,255,.14); border-top:none; }
@media (max-width:820px) {
  html[data-skin="cafe"] .pro-bnav-item.active .pro-bnav-ic { background:var(--text-dark); color:#fff; }
}

/* ======================================================================
   پوسته‌ی کافه و منو — ردیفِ منو و جزئیات (قالب‌ها: templates/storefront/skins/cafe/)
   ====================================================================== */
html[data-skin="cafe"] .pro-grid, html[data-skin="cafe"] .pro-shop-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:0 28px !important; }
@media (max-width:760px) { html[data-skin="cafe"] .pro-grid, html[data-skin="cafe"] .pro-shop-grid { grid-template-columns:minmax(0,1fr) !important; } }
.cf-row { display:grid !important; grid-template-columns:84px minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px 2px !important;
  background:transparent !important; border:none !important; border-bottom:1px dashed var(--border) !important; border-radius:0 !important; box-shadow:none !important; }
.cf-img { position:relative; width:84px !important; height:84px; aspect-ratio:1/1; border-radius:18px !important; overflow:hidden; background:var(--pastel-red); display:flex; align-items:center; justify-content:center; color:var(--primary); }
.cf-img img { width:100%; height:100%; object-fit:cover; }
.cf-img .ic { width:34px; height:34px; }
.cf-off { position:absolute; bottom:4px; right:4px; background:var(--primary); color:#fff; font-size:10.5px; font-weight:800; border-radius:8px; padding:1px 6px; }
.cf-info { min-width:0; display:flex; flex-direction:column; gap:3px; }
html[data-skin="cafe"] .cf-row .pro-card-name { font-size:15px; font-weight:800; min-height:0; -webkit-line-clamp:1; }
.cf-desc { margin:0; font-size:12px; color:var(--text-muted); line-height:1.8; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.cf-price { display:flex; align-items:baseline; gap:5px; flex-wrap:wrap; }
.cf-price s { font-size:11.5px; color:var(--text-muted); }
.cf-price b { font-size:15px; color:var(--text-dark); }
.cf-price small { font-size:11px; color:var(--text-muted); }
.cf-out { font-size:11px; color:#b42318; margin-inline-start:6px; }
html[data-skin="cafe"] .cf-add { width:42px !important; height:42px; padding:0 !important; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; }
html[data-skin="cafe"] .cf-add .ic { width:20px; height:20px; }
html[data-skin="cafe"] .cf-add:disabled { background:var(--bg-page); color:var(--text-muted); }
html[data-skin="cafe"] .cf-row .dn-qty { height:42px; border-radius:14px; min-width:104px; }
html[data-skin="cafe"] .cf-row.is-oos .cf-img img { filter:grayscale(1); opacity:.6; }
/* سرِ بخش‌ها مثلِ سرفصلِ منو */
html[data-skin="cafe"] .pro-section-head { border-bottom:2px solid var(--text-dark); padding-bottom:8px; margin:30px 0 4px; }
html[data-skin="cafe"] .pro-section-head h2 { font-size:21px; }
/* ---------- صفحه‌ی محصول ---------- */
@media (min-width:821px) {
  html[data-skin="cafe"] .pro-product { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:34px; }
  html[data-skin="cafe"] .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="cafe"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-main { grid-column:2; grid-row:1; }
  html[data-skin="cafe"] .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="cafe"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-dots { display:none; }
  html[data-skin="cafe"] .pro-gallery-thumbs button { width:72px; height:72px; flex-shrink:0; }
  html[data-skin="cafe"] .pro-product > div:last-child { position:sticky; top:96px; }
}
html[data-skin="cafe"] .pro-product-title { font-size:22px; font-weight:800; line-height:1.6; }
html[data-skin="cafe"] .pro-price-box { border-radius:16px; }
html[data-skin="cafe"] .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="cafe"] .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; }
}

html[data-skin="cafe"] :is(.pro-section-head h2, .pro-hero h1, .pro-brand-name) { font-weight:900; }

@media (max-width:820px) {
  html[data-skin="cafe"] .pro-header.is-compact { box-shadow:0 4px 18px rgba(0,0,0,.08); }
  html[data-skin="cafe"] .pro-header.is-compact .pro-mobile-search { display:none; }
  html[data-skin="cafe"] .pro-header.is-compact .pro-header-main { padding:4px 0; }
  html[data-skin="cafe"] .pro-header.is-compact .pro-brand img { height:28px; }
  html[data-skin="cafe"] .pro-header.is-compact .pro-search-toggle { display:inline-flex; }
  html[data-skin="cafe"] .pro-header.is-compact.search-open .pro-mobile-search { display:block; }
}
