/* پوسته‌ی «persian» — فقط وقتی همین پوسته فعاله بارگذاری می‌شه. */
html[data-skin="persian"]:not([data-theme="dark"]) {
  --bg-page:#F6EFE3; --bg-card:#FFFAF1; --header-bg:#FFFAF1; --footer-bg:#EFE4D2;
  --primary:#0E7C86; --pastel-red:#F3E0CF; --pastel-green:#DCEBE4; --pastel-blue:#D7ECEA;
  --text-dark:#2D2118; --text-muted:#7B6552; --border:#DCC9AA;
}
html[data-skin="persian"] { --card-radius:12px; --tile:#B5562F; }
html[data-skin="persian"] .pro-header { box-shadow:none; border-bottom:4px double var(--border); }
html[data-skin="persian"] .pro-brand-name { color:var(--primary); font-size:18px; }
html[data-skin="persian"] .pro-mega-btn { background:var(--pastel-blue); }
html[data-skin="persian"] .pro-thumb { border-radius:999px 999px 10px 10px; aspect-ratio:3/4; border:2px solid var(--border); }
html[data-skin="persian"] .pro-card { text-align:center; align-items:stretch; }
html[data-skin="persian"] .pro-price-row { justify-content:center; }
html[data-skin="persian"] .pro-card-name { min-height:0; }
html[data-skin="persian"] .pro-btn { border-radius:10px; }
html[data-skin="persian"] .pro-badge-off, html[data-skin="persian"] .pro-card-flag { background:var(--tile); }
html[data-skin="persian"] .pro-hero { border:2px solid var(--border); outline:1px solid var(--border); outline-offset:-8px; }
html[data-skin="persian"] .pro-hero h1 { color:var(--primary); }
html[data-skin="persian"] .pro-section-head { justify-content:center; flex-direction:column; gap:2px; text-align:center; }
html[data-skin="persian"] .pro-section-head h2 { display:inline-flex; align-items:center; gap:10px; color:var(--primary); }
html[data-skin="persian"] .pro-section-head h2::before, html[data-skin="persian"] .pro-section-head h2::after { content:""; width:8px; height:8px; background:var(--tile); transform:rotate(45deg); }
html[data-skin="persian"] .pro-cat-circle-img { border-radius:999px 999px 14px 14px; border-color:var(--border); }
html[data-skin="persian"] .pro-footer { border-top:none; position:relative; padding-top:32px; }
html[data-skin="persian"] .pro-footer::before { content:""; position:absolute; top:0; right:0; left:0; height:10px;
  background:repeating-linear-gradient(45deg, var(--primary) 0 6px, transparent 6px 12px), var(--pastel-blue); opacity:.55; }
html[data-skin="persian"] { --head-font:'SkGulzar'; }
html[data-skin="persian"] :is(.pro-brand-name, .pro-hero h1, .pro-section-head h2, .pro-section-title, .pro-product-title, .pro-page-title, .pro-footer h3, .pro-slide-cap h2, .pro-post-title, .pro-article-head h1, .pro-news h2, .pro-imgtext h2) { font-weight:400; line-height:2.1; font-synthesis:none; }
html[data-skin="persian"] .pro-section-head h2 { font-size:24px; }
html[data-skin="persian"] .pro-hero h1 { font-size:34px; }
html[data-skin="persian"] .pro-brand-name { font-size:22px; line-height:1.6; }
html[data-skin="persian"] .pro-footer h3 { font-size:19px; }
@media (min-width:821px) {
  html[data-skin="persian"] .pro-brand-name { font-size:28px; }
}
html[data-skin="persian"] .pro-announce { background:var(--primary); border-bottom:3px solid var(--tile); }
html[data-skin="persian"] .pro-hero { padding:40px 24px; text-align:center; display:block; background:var(--bg-card); }
html[data-skin="persian"] .pro-hero-logo { margin:0 auto 12px !important; display:block; border-radius:999px 999px 14px 14px !important; }
html[data-skin="persian"] .pro-gallery-main { border:2px solid var(--border); border-radius:999px 999px 16px 16px; }
@media (max-width:820px) {
  html[data-skin="persian"] .pro-bnav { border-top:3px double var(--border); }
  html[data-skin="persian"] .pro-bnav-item.active .pro-bnav-ic { background:var(--pastel-blue); border-radius:999px 999px 6px 6px; }
}

/* ======================================================================
   پوسته‌ی ایرانی — کارتِ طاق‌نما و جزئیات (قالب‌ها: templates/storefront/skins/persian/)
   ====================================================================== */
html[data-skin="persian"] .fa-card { text-align:center; align-items:stretch; padding:12px 12px 14px !important; gap:8px; }
html[data-skin="persian"] .fa-arch { position:relative; display:block; aspect-ratio:3/4; border-radius:999px 999px 12px 12px !important; border:none !important;
  padding:5px; background:linear-gradient(var(--bg-card), var(--bg-card)) padding-box, repeating-linear-gradient(45deg, var(--primary) 0 4px, var(--tile) 4px 8px) border-box;
  border:3px solid transparent !important; overflow:visible; }
.fa-arch-in { display:flex; align-items:center; justify-content:center; width:100%; height:100%; border-radius:999px 999px 8px 8px; overflow:hidden; background:var(--pastel-blue); color:var(--primary); }
.fa-arch-in img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease; }
.fa-arch-in .ic { width:44px; height:44px; }
@media (hover:hover) { html[data-skin="persian"] .fa-card:hover .fa-arch-in img { transform:scale(1.05); } }
.fa-shamse { position:absolute; top:6px; left:6px; z-index:1; width:48px; height:48px; display:flex; align-items:center; justify-content:center; font-size:11px; color:#fff;
  background:var(--tile, #B5562F); clip-path:polygon(50% 0, 61% 15%, 79% 9%, 79% 27%, 97% 32%, 88% 50%, 97% 68%, 79% 73%, 79% 91%, 61% 85%, 50% 100%, 39% 85%, 21% 91%, 21% 73%, 3% 68%, 12% 50%, 3% 32%, 21% 27%, 21% 9%, 39% 15%); }
.fa-shamse b { font-size:14px; font-weight:800; }
.fa-flag { position:absolute; bottom:10px; right:50%; transform:translateX(50%); z-index:1; background:var(--bg-card); color:var(--primary); border:1px solid var(--border); border-radius:999px; font-size:11px; padding:1px 10px; white-space:nowrap; }
html[data-skin="persian"] .fa-card.is-oos .fa-arch-in img { filter:sepia(.5) grayscale(.4); opacity:.7; }
html[data-skin="persian"] .fa-card .pro-card-name { font-size:13.5px; font-weight:600; min-height:40px; line-height:1.55; }
.fa-price { display:flex; align-items:baseline; justify-content:center; gap:6px; flex-wrap:wrap; }
.fa-price s { font-size:11.5px; color:var(--text-muted); }
.fa-price b { font-size:15.5px; color:var(--primary); font-weight:800; }
.fa-price small { font-size:11px; color:var(--text-muted); }
html[data-skin="persian"] .fa-add { background:transparent; color:var(--primary); border:1.5px solid var(--primary); border-radius:10px; padding:8px; }
html[data-skin="persian"] .fa-add:hover:not(:disabled) { background:var(--primary); color:#fff; }
html[data-skin="persian"] .fa-add:disabled { border-color:var(--border); color:var(--text-muted); }
html[data-skin="persian"] .pro-shop-grid.is-list .fa-card { display:grid !important; grid-template-columns:110px minmax(0,1fr); text-align:right; gap:14px; align-items:center; }
@media (max-width:699px) {
  html[data-skin="persian"] .pro-block .pro-grid:not(.pro-shop-grid) { display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:46%;
    overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; gap:10px; margin-inline:-11px; padding:2px 11px 6px; }
  html[data-skin="persian"] .pro-block .pro-grid:not(.pro-shop-grid)::-webkit-scrollbar { display:none; }
  html[data-skin="persian"] .pro-block .pro-grid:not(.pro-shop-grid) > .pro-card { scroll-snap-align:start; }
  html[data-skin="persian"] .fa-card { padding:8px 8px 10px !important; }
  .fa-shamse { width:40px; height:40px; }
}
/* هدر: نوارِ کاشی زیرِ هدر (به‌جای خطِ ساده) */
html[data-skin="persian"] .pro-header { border-bottom:none; box-shadow:none; }
html[data-skin="persian"] .pro-header::after { content:""; position:absolute; right:0; left:0; bottom:-6px; height:6px; pointer-events:none;
  background:repeating-linear-gradient(90deg, var(--primary) 0 10px, var(--tile) 10px 14px, var(--primary) 14px 24px, transparent 24px 28px); opacity:.8; }
html[data-skin="persian"] .pro-header.is-glass::after { opacity:.5; }
/* فوتر: پس‌زمینه‌ی گرمِ کاشی‌کاری */
html[data-skin="persian"] .cl-footer { background:var(--footer-bg); }
/* ---------- صفحه‌ی محصول ---------- */
@media (min-width:821px) {
  html[data-skin="persian"] .pro-product { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:34px; }
  html[data-skin="persian"] .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="persian"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-main { grid-column:2; grid-row:1; }
  html[data-skin="persian"] .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="persian"] .pro-product > div:first-child:has(.pro-gallery-thumbs) > .pro-gallery-dots { display:none; }
  html[data-skin="persian"] .pro-gallery-thumbs button { width:72px; height:72px; flex-shrink:0; }
  html[data-skin="persian"] .pro-product > div:last-child { position:sticky; top:96px; }
}
html[data-skin="persian"] .pro-product-title { font-size:22px; font-weight:800; line-height:1.6; }
html[data-skin="persian"] .pro-price-box { border-radius:16px; }
html[data-skin="persian"] .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="persian"] .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; }
}

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