/* v1 "Classic grid" — the original Dantas Paint template */
:root { --red: #d42f2c; --orange: #e8782f; --orange-soft: #fdeee2; --blue: #2a79d9; --ink: #242424; --muted: #6d6d6d; --line: #ececec; --gap: 10px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { max-width: 1100px; margin: 0 auto; padding: 22px 20px 40px; }
.masthead { text-align: center; margin: 0 0 30px; }
.brand { display: inline-block; padding: .28em 1.35em; border: 2px solid var(--orange); background: #fff; color: var(--red); font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.25; text-decoration: none; }
.brand:hover { background: var(--orange-soft); }
.tagline { margin: .7rem auto 0; max-width: 40rem; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 36px; align-items: start; }
.side { position: sticky; top: 20px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: inline-block; padding: .06em 0; color: var(--blue); font-size: 1.2rem; line-height: 1.3; text-decoration: underline; text-underline-offset: 2px; }
.side a:hover { color: var(--red); }
.side a[aria-current] { color: var(--red); font-weight: 600; text-decoration: none; }
.side-extra { margin-top: 18px !important; padding-top: 12px !important; border-top: 1px solid var(--line); }
.count { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; text-align: center; }
.count[hidden] { display: none; }
.sec-head { margin: 0 0 16px; }
.sec-head h1, h1 { margin: 0 0 6px; color: var(--red); font-size: 1.55rem; font-weight: 600; line-height: 1.25; }
.sec-head p { margin: .35rem 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cell { margin: 0; min-width: 0; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--orange); background: #fff; }
.tile img, .tile .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.tile:hover img { transform: scale(1.04); }
.ph { display: grid; place-items: center; padding: 8px; background: radial-gradient(circle at 50% 50%, #fff 0 38%, var(--orange-soft) 100%); color: var(--orange); font-size: .8rem; text-align: center; }
.cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: .9rem; line-height: 1.3; }
.cap-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-p { color: var(--red); font-weight: 600; white-space: nowrap; }
.empty { padding: 40px 16px; border: 2px dashed var(--orange); color: var(--muted); text-align: center; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.version-switch { display: flex; gap: 6px; align-items: center; }
.version-switch a[aria-current] { color: var(--red); font-weight: 700; text-decoration: none; }

/* shared pages in the classic style */
.btn { display: inline-block; padding: .55em 1.1em; border: 2px solid var(--orange); border-radius: 3px; background: #fff; color: var(--red); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--orange-soft); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: #b82523; }
.btn-small { padding: .3em .7em; font-size: .9rem; }
.btn-link { border: 0; background: none; color: var(--blue); text-decoration: underline; padding: .3em; }
.crumbs { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.product, .artwork { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.product-main img, .artwork-stage img { width: 100%; border: 2px solid var(--orange); }
.artwork-stage { margin: 0; }
.artwork-stage figcaption { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.product-thumbs a { width: 72px; border: 2px solid var(--line); }
.product-thumbs a[aria-current] { border-color: var(--orange); }
.product-price { font-size: 1.3rem; color: var(--red); font-weight: 700; }
.price s { color: var(--muted); }
.badge { display: inline-block; padding: 0 .5em; background: var(--red); color: #fff; font-size: .8rem; }
.product-facts { padding-left: 18px; color: var(--muted); font-size: .92rem; }
.add-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 16px 0; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.field > span { font-size: .85rem; font-weight: 600; }
.field .error { color: var(--red); font-style: normal; font-size: .85rem; }
input, select, textarea { padding: .45em .6em; border: 1px solid #bbb; border-radius: 3px; font: inherit; width: 100%; }
.field-qty input { width: 80px; }
.related { margin-top: 36px; }
.related h2, .small-head { color: var(--red); font-weight: 600; font-size: 1.1rem; }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.prod-card { border: 2px solid var(--orange); }
.prod-media { position: relative; display: block; }
.prod-media img { aspect-ratio: 1; object-fit: cover; }
.prod-media .badge { position: absolute; top: 6px; left: 6px; }
.prod-info { padding: 8px; }
.prod-title { margin: 0; font-size: .95rem; font-weight: 600; }
.prod-meta { display: flex; justify-content: space-between; margin: 4px 0 8px; font-size: .88rem; color: var(--muted); }
.version-list, .format-list { display: flex; flex-wrap: wrap; gap: 8px; }
.version-pick { width: 90px; font-size: .78rem; text-decoration: none; color: var(--ink); border: 2px solid var(--line); }
.version-pick.is-active { border-color: var(--orange); }
.format-pick { padding: 4px 10px; border: 2px solid var(--line); text-decoration: none; }
.format-pick.is-active { border-color: var(--orange); color: var(--red); }
.format-pick i { display: none; }
.tag { margin-right: 6px; color: var(--muted); font-size: .85rem; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-what { display: grid; }
.cart-what small { color: var(--muted); }
.cart-qty { display: flex; gap: 6px; align-items: center; }
.cart-qty input { width: 64px; }
.cart-summary, .checkout-summary { margin-top: 16px; padding: 14px; border: 2px solid var(--orange); }
.row { display: flex; justify-content: space-between; margin: 4px 0; }
.row-total { font-weight: 700; }
.hint { color: var(--muted); font-size: .88rem; }
.demo-note { padding: 8px 12px; border: 2px dashed var(--red); color: var(--red); }
.checkout fieldset { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); }
.checkout legend { color: var(--red); font-weight: 600; }
.radios { display: grid; gap: 6px; margin-bottom: 10px; }
.radio { display: flex; gap: 8px; align-items: center; }
.radio input { width: auto; }
.field-pair { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stamp { display: inline-block; padding: 4px 12px; border: 3px double var(--red); color: var(--red); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transform: rotate(-6deg); }
.search { display: flex; gap: 8px; max-width: 360px; margin-top: 8px; }
.chips { display: none; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 4px; }
.toast[hidden] { display: none; }
.toast a { color: #ffd2a8; }

@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; } .product, .artwork { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .page { padding: 16px 16px 32px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .side { position: static; order: -1; }
  .side ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
  .side-extra { border-top: 0; margin-top: 6px !important; padding-top: 0 !important; }
  .side a { padding: .3em .8em; border: 1.5px solid var(--orange); border-radius: 999px; font-size: .95rem; text-decoration: none; }
  .side a[aria-current] { background: var(--orange); color: #fff; }
  .grid, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap: 8px; }
  .grid > .is-ph:last-child:nth-child(odd) { display: none; }
  .order-grid, .field-pair { grid-template-columns: minmax(0, 1fr); }
  .cart-line { grid-template-columns: 60px 1fr; }
}

/* showcase (Top products) in the classic style */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; grid-auto-flow: dense; gap: var(--gap); }
.show-card { display: flex; flex-direction: column; min-width: 0; border: 2px solid var(--orange); background: #fff; }
.size-wide, .size-big { grid-column: span 2; }
.size-tall, .size-big { grid-row: span 2; }
.show-media { position: relative; flex: 1; min-height: 0; display: block; }
.show-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-media .badge { position: absolute; top: 6px; left: 6px; }
.show-info { padding: 6px 8px 8px; font-size: .9rem; }
.show-type { margin: 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.show-title { margin: 0; font-size: .95rem; font-weight: 600; }
.show-title a { color: var(--ink); text-decoration: none; }
.show-caption { margin: 0; color: var(--muted); font-style: italic; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.show-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.show-buy .price { color: var(--red); font-weight: 700; }
.show-buy .add-form { margin: 0; }
@media (max-width: 700px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } .size-tall, .size-big { grid-row: auto; } .show-media { flex: none; aspect-ratio: 1; } }

/* missing picture: “Coming soon!” */
.img-missing { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #fff 0 38%, var(--orange-soft) 100%); color: var(--orange); font-size: .8rem; text-align: center; }

/* language switch (flags) — top right of the title box */
.masthead { position: relative; }
.lang-switch { position: absolute; top: 0; right: 0; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; line-height: 1; }
.lang-switch a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 6px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--red); background: var(--orange-soft); }
.lang-switch a[aria-current] { color: var(--ink); background: var(--orange-soft); }
.lang-switch .flag { flex: none; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
@media (max-width: 700px) {
  .lang-switch { position: static; margin: 0 0 12px; }
}

/* logo picture (Site & designs → Logo) */
.brand-img { display: block; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.brand.logo-image { padding: 0; border: 0; background: none; }
.brand.logo-image:hover { background: none; }
.brand.logo-both .brand-img { margin-bottom: 6px; }

/* Instagram link ({{instagram}} in a design's layout) */
.insta-link { display: inline-flex; align-items: center; gap: 6px; }
.insta-icon { flex: none; width: 1.15em; height: 1.15em; }
.side-insta { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-insta a { font-size: 1.05rem; }
@media (max-width: 700px) { .side-insta { margin-top: 6px; padding-top: 0; border-top: 0; } }
.side .insta-link { display: inline-flex; }

/* QR code button and its full-screen popup ({{instagramQrButton}} / {{instagramQrDialog}}) */
.qr-button { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; text-decoration: none; }
.qr-icon { flex: none; width: 1.15em; height: 1.15em; }
.qr-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #111; }
.qr-dialog[open] { display: flex; align-items: center; justify-content: center; }
.qr-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; padding: 24px; text-align: center; font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.qr-box .qr { display: block; width: min(80vw, 60vh, 460px); height: auto; }
.qr-title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.35rem; font-weight: 700; }
.qr-title .insta-icon { width: 1.3em; height: 1.3em; }
.qr-hint { max-width: 24rem; margin: 0; color: #555; }
.qr-link { color: #111; font-size: .9rem; overflow-wrap: anywhere; }
.qr-close { margin-top: 4px; padding: 10px 28px; border: 2px solid #111; border-radius: 999px; background: #fff; color: #111; font: 600 1rem system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; }
.qr-close:hover, .qr-close:focus-visible { background: #111; color: #fff; }
.side .qr-button { margin-left: 8px; }
.qr-box:focus { outline: none; }
