/* ============================================================================
   DigiVirtual.shop — storefront skin (walletfix session, 2026-10-18)
   Differentiation layer for: homepage, /shop/, /blog/, blog post pages.
   Loaded AFTER site.css from those pages only — every rule here intentionally
   overrides the shared component look with a softer, rounder, pill-shaped
   purple-only language (the source-site red leftovers are retired too).
   Dark-mode aware; RTL-safe (logical properties only).
   ========================================================================== */

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: 999px; padding-block: .55rem; }
.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #b36bff 0%, #8b5cf6 100%);
  box-shadow: 0 10px 26px rgba(124, 58, 237, .4);
  transform: translateY(-1px);
}
.dgsk-btn-lg { padding: .8rem 1.9rem; font-size: 1rem; }
.dgsk-btn-ghost {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(3px);
}
.dgsk-btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ------------------------------------------------------------------- hero */
.hero-banner.dgsk-hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(192, 132, 252, .35), transparent 60%),
    linear-gradient(125deg, #6d28d9 0%, var(--primary) 48%, #c084fc 100%);
}
.hero-banner.dgsk-hero::before { opacity: .6; }
.dgsk-hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero-banner.dgsk-hero h1 { max-width: 100%; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.45; }
.hero-banner.dgsk-hero h1 br { display: none; }
.hero-banner.dgsk-hero p { max-width: min(56ch, 100%); font-size: .99rem; }
.dgsk-hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.dgsk-hero-art {
  position: relative;
  width: min(300px, 78%);
  height: 340px;
  margin: 0 auto;
  pointer-events: none;
}
.dgsk-hero-art .hero-sheet { border-radius: 18px; }
.dgsk-hero-art .hero-file-chip { border-radius: 11px; }
@media (max-width: 860px) {
  .hero-banner.dgsk-hero { grid-template-columns: 1fr; }
  .dgsk-hero-art { height: 260px; order: -1; opacity: .5; }
}

/* ------------------------------------------------------------ section head */
.section-head { margin-block: 1rem 1.35rem; padding-block-start: .35rem; }
.section-title { font-size: 1.2rem; gap: .7rem; }
.section-title::before {
  width: 6px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, #c084fc, var(--primary));
}
.more {
  border: 1px solid color-mix(in srgb, var(--primary) 38%, transparent);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  padding: .34rem 1rem;
  border-radius: 999px;
  transition: all .18s;
}
.more:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); }

/* ---------------------------------------------------------- product cards */
.products-grid { gap: 1.15rem; }
.product-card {
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 1px 2px rgba(17, 12, 27, .05);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(124, 58, 237, .16);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}
.product-thumb { overflow: hidden; }
.product-thumb img { transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.price b { font-weight: 800; }
.add-btn {
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: var(--primary);
  padding: .4rem 1.05rem;
}
.add-btn:hover {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .32);
}

/* ------------------------------------------------------------- stats band */
.stats-bar {
  border-radius: 22px;
  background:
    radial-gradient(600px 200px at 12% -40%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(120deg, #6d28d9 0%, var(--primary) 55%, #c084fc 100%);
  padding: .45rem;
}
.stats-bar > div { border-radius: 17px; }
.stats-bar > div:hover { background: rgba(255, 255, 255, .08); }
.stats-bar b { font-size: 1.6rem; letter-spacing: -.5px; }

/* ------------------------------------------------------------ category tiles */
.cats-grid { gap: .9rem; }
.cat-card { border-radius: 16px; }
.cat-card--countries {
  background: linear-gradient(150deg, #7c3aed 0%, #a855f7 55%, #c084fc 100%);
}
.cat-card--countries:hover .cat-count { color: #6d28d9; }

/* ------------------------------------------------------------ feature grid */
.features-grid { gap: 1rem; }
.feature-card { border-radius: 18px; position: relative; overflow: hidden; }
.feature-card::after {
  content: '';
  position: absolute; inset-inline-end: -34px; bottom: -34px;
  width: 92px; height: 92px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transition: transform .3s;
}
.feature-card:hover::after { transform: scale(1.7); }
.feature-card .f-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 34%, transparent));
  color: var(--primary);
  transition: transform .25s;
}
.feature-card:hover .f-icon { transform: translateY(-3px) scale(1.06); }

/* ------------------------------------------------------------- post cards */
.posts-grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
.post-card {
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  gap: 0;
}
.post-card .post-card-img { border-radius: 0; border: none; border-block-end: 1px solid var(--border); }
.post-card b { padding: .8rem 1.1rem 0; }
.post-card .muted.small { padding: .3rem 1.1rem 0; }
.post-card .small.muted { padding: .3rem 1.1rem .9rem; }
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, .15);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}
@media (max-width: 700px) { .posts-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------- blog page: head + featured post */
.dgsk-page-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-block: .4rem 1.5rem;
}
.dgsk-page-head .section-title { font-size: 1.5rem; }
.dgsk-count-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  padding: .3rem .95rem;
  margin-block-start: .5rem;
}
.dgsk-search { max-width: 340px; flex: 1 1 240px; }

.dgsk-post-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 22px;
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 10px 34px rgba(124, 58, 237, .1);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  margin-block-end: 1.15rem;
}
.dgsk-post-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(124, 58, 237, .2);
  border-color: var(--primary);
  color: var(--text);
}
.dgsk-pf-media { display: block; min-height: 240px; }
.dgsk-pf-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 16 / 9;
}
.dgsk-pf-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  padding: clamp(1.2rem, 2.6vw, 2rem);
}
.dgsk-pf-date {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 700; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 999px; padding: .28rem .8rem;
}
.dgsk-pf-title { font-size: 1.3rem; line-height: 1.6; font-weight: 800; }
.dgsk-pf-ex { color: var(--muted); font-size: .92rem; line-height: 1.9; }
.dgsk-pf-meta { margin-block-start: auto; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.dgsk-pf-meta i { color: var(--primary); }
@media (max-width: 780px) {
  .dgsk-post-featured { grid-template-columns: 1fr; }
  .dgsk-pf-media img { aspect-ratio: 16 / 8; }
}

/* ------------------------------------------------------------- shop page */
.dgsk-shop-hero {
  display: flex; align-items: center; gap: 1.1rem;
  background:
    radial-gradient(520px 190px at 90% -30%, rgba(192, 132, 252, .28), transparent 62%),
    linear-gradient(125deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  margin-block-end: 1.2rem;
  box-shadow: 0 8px 30px rgba(124, 58, 237, .08);
}
.dgsk-sh-ico {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, #7c3aed, var(--primary));
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
}
.dgsk-sh-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.dgsk-sh-body .section-title { font-size: 1.42rem; }
.dgsk-sh-meta { color: var(--muted); font-size: .86rem; font-weight: 600; }
.dgsk-shop-side { top: 118px; }
.shop-side h3 {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem;
}
.shop-side h3::before { content: ''; width: 5px; height: 16px; border-radius: 3px; background: var(--primary); }
.side-list { border-radius: 16px; padding: .55rem; }
.side-list a { border-radius: 10px; }
.side-list a.active { background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 18%, transparent), transparent); }
.sort-bar {
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  padding: .45rem 1.15rem;
}
.sort-bar::before { content: '\f160'; font-family: 'remixicon' !important; color: var(--primary); font-size: .95rem; }
.tag-cloud .chip { border-radius: 999px; }
.tag-cloud .chip:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.tag-cloud .chip.active { background: var(--primary); color: #fff; }

/* ------------------------------------------------------------- post page */
.dgsk-post-head { margin-block: .2rem .4rem; }
.dgsk-post-head h1 { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.6; }
.dgsk-meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .6rem .2rem; }
.dgsk-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem; font-weight: 600;
  padding: .26rem .85rem;
}
.dgsk-chip i { color: var(--primary); }
.post-cover { border-radius: 20px; box-shadow: 0 14px 40px rgba(124, 58, 237, .12); }
.post-side .side-box { border-radius: 18px; }
.post-side .side-box-title { display: flex; align-items: center; gap: .55rem; }
.post-side .side-box-title i {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 34%, transparent));
  color: var(--primary);
  border-radius: 11px;
  font-size: 1rem;
}
.comment { border-radius: 16px; }
.comment:hover { border-color: color-mix(in srgb, var(--primary) 26%, var(--border)); }
.prose { border-radius: 18px; }
.toc { border-radius: 16px; border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }

/* ------------------------------------------------------------ promo cards */
.promo-card { background: linear-gradient(150deg, #7c3aed 0%, var(--primary) 60%, #c084fc 100%); border-radius: 18px; }
.promo-card:hover .promo-cta { background: #fff; color: #6d28d9; }

/* ----------------------------------------------------------- wallet page */
.dgsk-wallet-note { margin-block: .5rem .2rem; }

/* ------------------------------------------------------------- dark mode */
[data-theme="dark"] .product-card,
[data-theme="dark"] .post-card,
[data-theme="dark"] .dgsk-post-featured { box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
[data-theme="dark"] .product-card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
[data-theme="dark"] .dgsk-shop-hero {
  background:
    radial-gradient(520px 190px at 90% -30%, rgba(192, 132, 252, .16), transparent 62%),
    linear-gradient(125deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface));
}
[data-theme="dark"] .dgsk-chip { background: var(--surface-2); }
[data-theme="dark"] .more { background: rgba(168, 85, 247, .1); border-color: rgba(168, 85, 247, .4); }
[data-theme="dark"] .more:hover { background: rgba(168, 85, 247, .2); }
