/*
 * DStore designs — per-site variations, switched by body classes from functions.php:
 *   skin-<clean|editorial|tech|soft|bold|classic>  hdr-<bar|center|strip|ink>
 *   hero-<collage|centered|panel|minimal>  card-<boxed|flat|framed|tinted>
 *   ftr-<columns|centered|dark>  prod-<right|left>
 * plus the home sections in parts/sec-*.php. "clean / bar / collage / boxed / columns / right" is the original look
 * and needs nothing here.
 */

/* =========================================================
   1. Skins (fonts, colours, corners)
   ========================================================= */
body.skin-editorial {
  --font: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --head-track: -.01em; --hw1: 700; --hw2: 600;
  --bg: #fbf8f3; --soft: #f3ede2; --line: #e6dccb; --card: #fffdf9;
  --ink: #1c1917; --text: #44403c; --muted: #78716c;
  --radius: 4px; --btn-radius: 2px;
  --shadow: 0 1px 0 rgba(28,25,23,.04), 0 18px 36px -22px rgba(28,25,23,.35);
  font-size: 17px;
}
.skin-editorial .site-header { background: rgba(251,248,243,.92); }
.skin-editorial .eyebrow { font: italic 500 1rem/1 var(--font-head); letter-spacing: 0; text-transform: none; }
.skin-editorial .loop-cat { font-family: var(--font); letter-spacing: .1em; }
.skin-editorial h1 em, .skin-editorial h2 em { color: var(--brand); }

body.skin-tech {
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --head-track: -.03em; --hw1: 700; --hw2: 700;
  --ink: #0b1220; --text: #2b3445; --muted: #5d6b82; --line: #dfe4ec; --soft: #f3f5f9;
  --radius: 8px; --btn-radius: 6px;
}
.skin-tech .eyebrow::before { content: "// "; opacity: .6; }
.skin-tech .btn, .skin-tech .woocommerce a.button, .skin-tech .woocommerce button.button { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em; }
.skin-tech .section.soft { background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px, var(--soft); background-blend-mode: normal; }
.skin-tech .chip, .skin-tech .badge { font-family: var(--mono); font-size: .8rem; }

body.skin-soft {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-head: var(--font);
  --head-track: -.025em; --hw1: 800; --hw2: 800;
  --bg: color-mix(in srgb, var(--brand) 3%, #fff);
  --soft: color-mix(in srgb, var(--brand) 7%, #fff);
  --line: color-mix(in srgb, var(--brand) 14%, #e5e7eb);
  --radius: 22px; --btn-radius: 999px;
  --shadow: 0 2px 6px rgba(15,23,42,.04), 0 22px 40px -18px color-mix(in srgb, var(--brand) 35%, transparent);
}
.skin-soft .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.skin-soft .eyebrow { display: inline-block; padding: .4rem .8rem; border-radius: 99px; background: var(--brand-soft); font: 700 .75rem/1 var(--font); letter-spacing: .06em; }
.skin-soft .section.soft { border: 0; }
.skin-soft .icon-btn { border-radius: 99px; }
.skin-soft .woocommerce ul.products li.product .button { border-radius: 99px; }

body.skin-bold {
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Archivo", "Arial Black", ui-sans-serif, sans-serif;
  --head-track: -.035em; --hw1: 900; --hw2: 800;
  --ink: #111111; --text: #262626; --muted: #525252; --line: #111111; --soft: #f5f2ea;
  --radius: 0px; --btn-radius: 0px;
  --shadow: 5px 5px 0 #111;
}
.skin-bold h1 { text-transform: uppercase; line-height: 1.02; }
.skin-bold .site-header { border-bottom: 2px solid var(--ink); background: #fff; }
.skin-bold .btn, .skin-bold .woocommerce a.button, .skin-bold .woocommerce button.button, .skin-bold .woocommerce .wc-proceed-to-checkout a.checkout-button {
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.skin-bold .btn:hover, .skin-bold .woocommerce a.button:hover, .skin-bold .woocommerce button.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); filter: none; }
.skin-bold .woocommerce ul.products li.product, .skin-bold .feature, .skin-bold .step, .skin-bold .tile, .skin-bold .spotlight,
.skin-bold .woocommerce div.product div.summary, .skin-bold .woocommerce div.product div.images { border: 2px solid var(--ink); }
.skin-bold .woocommerce ul.products li.product:hover, .skin-bold .tile:hover { box-shadow: 6px 6px 0 var(--brand); transform: translate(-2px, -2px); }
.skin-bold .section.soft { border-block: 2px solid var(--ink); }
.skin-bold .eyebrow { display: inline-block; padding: .35rem .6rem; background: var(--ink); color: #fff; font-family: var(--font-head); letter-spacing: .06em; }
.skin-bold .chip, .skin-bold .icon-btn, .skin-bold .badge { border: 2px solid var(--ink); border-radius: 0; }
.skin-bold .cta { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.skin-bold .site-footer { border-top: 2px solid var(--ink); }

body.skin-classic {
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-head: "DM Serif Display", Georgia, serif;
  --head-track: 0; --hw1: 400; --hw2: 400;
  --soft: #f7f3ea; --line: #e4ddcf; --ink: #1f2937;
  --radius: 6px; --btn-radius: 4px;
}
.skin-classic h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); line-height: 1.08; }
.skin-classic h3 { font-family: var(--font); font-weight: 700; }
.skin-classic .eyebrow { font: 700 .72rem/1 var(--font); letter-spacing: .18em; }
.skin-classic .eyebrow::after { content: ""; display: block; width: 36px; height: 2px; margin-top: .7rem; background: currentColor; }
.skin-classic .center .eyebrow::after, .skin-classic .section-head.center .eyebrow::after { margin-inline: auto; }

/* Cards and panels pick up the skin's card colour. */
.woocommerce ul.products li.product, .feature, .woocommerce div.product div.summary, .woocommerce div.product div.images { background: var(--card); }

/* =========================================================
   2. Headers
   ========================================================= */
.btn-sm { padding: .5rem .95rem; font-size: .88rem; }

/* center: logo on top, menu on its own row */
@media (min-width: 761px) {
  .hdr-center .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: ". brand actions" "nav nav nav"; height: auto; padding-top: 1rem; row-gap: .5rem; }
  .hdr-center .brand { grid-area: brand; font-size: 1.35rem; }
  .hdr-center .header-actions { grid-area: actions; justify-self: end; }
  .hdr-center .main-nav { grid-area: nav; margin: 0; border-top: 1px solid var(--line); }
  .hdr-center .main-nav ul { justify-content: center; padding: .35rem 0; }
}

/* strip: announcement line + menu right after the logo + Shop button */
.top-strip { background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500; text-align: center; padding: .45rem 0; }
.top-strip .ico { width: 15px; height: 15px; color: color-mix(in srgb, var(--brand) 55%, #fff); vertical-align: -3px; }
@media (min-width: 761px) {
  .hdr-strip .main-nav { margin-left: 1.5rem; margin-right: auto; }
}
.hdr-strip .header-shop { margin-left: .35rem; }

/* ink: dark bar */
.hdr-ink .site-header { background: var(--ink); border-bottom: 0; }
.hdr-ink .site-header .brand { color: #fff; }
.hdr-ink .main-nav a { color: rgba(255,255,255,.78); }
.hdr-ink .main-nav a:hover, .hdr-ink .main-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.hdr-ink .icon-btn { background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.hdr-ink .icon-btn:hover { background: rgba(255,255,255,.1); }
@media (max-width: 760px) {
  .hdr-ink .main-nav { background: var(--ink); border-color: rgba(255,255,255,.1); }
  .hdr-strip .header-shop { display: none; }
}

/* =========================================================
   3. Heroes
   ========================================================= */
.hero-note { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }

/* centered */
.hero--centered { background: radial-gradient(900px 420px at 50% -10%, var(--brand-soft), transparent 70%), var(--bg); padding-bottom: 0; }
.hero--centered::after { display: none; }
.hero--centered .hero-copy { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero--centered .lead { margin-inline: auto; }
.hero--centered .hero-cta { justify-content: center; }
.hero-shots { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1.5rem; align-items: end; margin-top: 3.5rem; position: relative; z-index: 1; }
.hero-shots .shot { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; background: #fff; box-shadow: var(--shadow); }
.hero-shots img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero-shots .s0, .hero-shots .s2 { opacity: .9; transform: translateY(12px); }
@media (max-width: 760px) {
  .hero-shots { grid-template-columns: 1fr; margin-top: 2.25rem; }
  .hero-shots .s0, .hero-shots .s2 { display: none; }
}

/* panel */
.hero--panel { background: var(--brand); color: var(--brand-ink); padding: 5rem 0; }
.hero--panel::after { display: none; }
.hero--panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.18), transparent 65%), radial-gradient(500px 300px at 0% 100%, rgba(0,0,0,.2), transparent 65%); }
.hero--panel h1 { color: inherit; }
.hero--panel h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.hero--panel .lead, .hero--panel .hero-note { color: color-mix(in srgb, var(--brand-ink) 84%, transparent); }
.hero--panel .badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: inherit; }
.hero--panel .badge .dot { background: var(--brand-ink); box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.browser { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.browser-bar { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; background: #eef1f5; border-bottom: 1px solid #dde3ea; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar i:first-child { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.skin-bold .browser { border: 2px solid #111; box-shadow: 10px 10px 0 #111; border-radius: 0; }

/* minimal */
.hero--minimal { background: var(--bg); padding: 6rem 0 3.5rem; }
.hero--minimal::after { display: none; }
.hero--minimal h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); max-width: 17ch; line-height: 1.04; }
.hero--minimal .lead { font-size: 1.2rem; max-width: 40rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero-stats dt, .stats dt { font: var(--hw2) clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--font-head); color: var(--ink); letter-spacing: var(--head-track); }
.hero-stats dd, .stats dd { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.skin-bold .hero-stats { border-top: 2px solid var(--ink); }
@media (max-width: 760px) {
  .hero--minimal { padding: 3.5rem 0 2.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   4. Home sections
   ========================================================= */
/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.tile-body { display: grid; gap: .15rem; padding: 1rem 3.5rem 1.1rem 1.1rem; }
.tile-body strong { font-size: 1.05rem; }
.tile-arrow { position: absolute; right: 1rem; bottom: 1.1rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tile-arrow .ico { width: 16px; height: 16px; }

/* products by category */
.cat-row + .cat-row { margin-top: 3rem; }
.cat-row-head { margin-bottom: 1.1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.cat-row-head h3 { margin: 0; font-size: 1.3rem; }
.cat-row-head h3 span { font-weight: 500; font-size: 1rem; }

/* spotlight */
.spotlight { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center; padding: 1.25rem; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.spotlight-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: calc(var(--radius) * .7); border: 1px solid var(--line); }
.spotlight-body { padding-right: 1.5rem; }
.spotlight-body .loop-cat { padding: 0; }
.spotlight-body h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.spotlight-body h3 a { color: inherit; }
.spotlight-price { font: 800 1.6rem/1 var(--font); color: var(--ink); margin: 1.25rem 0; }
.more-link { margin: 2rem 0 0; }

/* features as numbered list */
.flist { display: grid; grid-template-columns: .9fr 1.3fr; gap: 4rem; align-items: start; }
.flist-head { position: sticky; top: 110px; }
.flist-items { list-style: none; margin: 0; padding: 0; }
.flist-items li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.flist-items li:last-child { border-bottom: 1px solid var(--line); }
.flist-num { font: 600 1rem/1.6 var(--mono); color: var(--brand); }
.flist-items h3 { margin: 0 0 .35rem; }
.flist-items p { margin: 0; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step-num { position: absolute; top: 1rem; right: 1.4rem; font: var(--hw1) 3rem/1 var(--font-head); color: color-mix(in srgb, var(--brand) 18%, transparent); }
.step-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--brand); color: var(--brand-ink); }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
.skin-soft .step-ico { border-radius: 99px; }
.skin-bold .step-ico { border-radius: 0; }

/* stats band */
.stats-band { background: var(--ink); color: #fff; padding: 2.75rem 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; }
.stats-band .stats dt { color: #fff; }
.stats-band .stats dd { color: rgba(255,255,255,.65); }
.stats > div { padding-left: 1.1rem; border-left: 3px solid var(--brand); }

/* faq centred */
.faq-center { max-width: 800px; }
.faq-mail { margin-top: 2rem; }

/* cta band */
.cta-band { background: var(--brand); color: var(--brand-ink); padding: 3.5rem 0; margin-top: 1rem;
  background-image: linear-gradient(120deg, rgba(255,255,255,.12), transparent 45%); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: inherit; margin-bottom: .35rem; }
.cta-band p { margin: 0; opacity: .85; }
.site-main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; border-top: 0; }

@media (max-width: 980px) {
  .tiles, .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .spotlight, .flist { grid-template-columns: 1fr; gap: 1.5rem; }
  .spotlight-body { padding: 0 .5rem .5rem; }
  .flist-head { position: static; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles, .tiles-2, .tiles-4 { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   5. Product cards
   ========================================================= */
/* flat: no box */
.card-flat .woocommerce ul.products li.product { border: 0; background: transparent; overflow: visible; padding-bottom: .5rem; }
.card-flat .woocommerce ul.products li.product:hover { transform: none; box-shadow: none; }
.card-flat .woocommerce ul.products li.product a img { border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.card-flat .woocommerce ul.products li.product:hover a img { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-flat .loop-cat, .card-flat .woocommerce ul.products li.product .woocommerce-loop-product__title, .card-flat .woocommerce ul.products li.product .price { padding-inline: 0; }
.card-flat .woocommerce ul.products li.product .button, .card-flat .woocommerce ul.products li.product .added_to_cart { margin-inline: 0; }
.skin-bold.card-flat .woocommerce ul.products li.product { border: 0; }
.skin-bold.card-flat .woocommerce ul.products li.product a img { border: 2px solid var(--ink); }
.skin-bold.card-flat .woocommerce ul.products li.product:hover { box-shadow: none; transform: none; }

/* framed: browser window bar on top */
.card-framed .woocommerce ul.products li.product::before { content: ""; flex: 0 0 26px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15px 50%, #f87171 3.5px, transparent 4.5px), radial-gradient(circle at 28px 50%, #fbbf24 3.5px, transparent 4.5px), radial-gradient(circle at 41px 50%, #34d399 3.5px, transparent 4.5px), var(--soft); }

/* tinted: screenshot rising out of a brand-tinted panel */
.card-tinted .woocommerce ul.products li.product a img { padding: 18px 18px 0; background: var(--brand-soft); border-bottom: 0; object-position: top; }
.card-tinted .woocommerce ul.products li.product { border-color: color-mix(in srgb, var(--brand) 16%, var(--line)); }

/* =========================================================
   6. Footers
   ========================================================= */
.ftr-centered .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.ftr-centered .footer-about { max-width: 560px; }
.ftr-centered .footer-mail { justify-content: center; }
.ftr-centered .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.ftr-centered .footer-bottom { justify-content: center; text-align: center; }

.ftr-dark .site-footer { background: #0c111d; border-top: 0; color: rgba(255,255,255,.62); }
.skin-bold.ftr-dark .site-footer, .skin-tech.ftr-dark .site-footer { background: var(--ink); }
.ftr-dark .site-footer .brand-name { color: #fff; }
.ftr-dark .footer-about p { color: rgba(255,255,255,.62); }
.ftr-dark .footer-nav a, .ftr-dark .footer-mail a { color: rgba(255,255,255,.85); }
.ftr-dark .footer-bottom { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* =========================================================
   7. Single product: buy box on the left
   ========================================================= */
@media (min-width: 981px) {
  .prod-left.single-product div.product { grid-template-columns: 1fr 1.35fr; }
  .prod-left.single-product div.product div.images { grid-column: 2; grid-row: 1; }
  .prod-left.single-product div.product div.summary { grid-column: 1; grid-row: 1; }
}

/* =========================================================
   8. Small fixes found in screenshots
   ========================================================= */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: transparent; }  /* Woo paints it white – shows on tinted skins */
.hero--panel + .cats, .hero--centered + .cats { padding-top: 1.5rem; }
@media (max-width: 560px) {
  .tiles, .tiles-2, .tiles-4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .tile-body { padding: .7rem .8rem .8rem; }
  .tile-body strong { font-size: .95rem; }
  .tile-arrow { display: none; }
}
