/* Graphic Worker - public site
   Idea: everything is a printed sheet. Crop marks frame the product pictures. */

:root {
  --bg: #f1f4f9;
  --paper: #ffffff;
  --ink: #14213d;
  --muted: #5a6a82;
  --line: #d8e0ec;
  --blue: #2b4bff;
  --blue-dark: #1f38c9;
  --green: #0b8f6b;
  --violet: #6b3fd4;
  --mark: #ffd23f;
  --danger: #c4283c;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "Noto Sans Bengali", "Noto Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.62 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- top bar / header ---------- */
.topbar { background: var(--ink); color: #dbe4f5; font-size: .88rem; text-align: center; padding: 7px 16px; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
.logo svg { flex: none; }
.logo:hover { color: var(--ink); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

.searchrow { background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 0 12px; }
.searchbar { position: relative; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 14px; }
.searchbar:focus-within { border-color: var(--blue); background: #fff; }
.searchbar svg { color: var(--muted); flex: none; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 0; color: var(--ink); outline: none; }
.searchbar button { border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 9px; cursor: pointer; }
.searchbar button:hover { background: var(--blue-dark); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(20, 33, 61, .14); overflow: hidden; z-index: 50; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 9px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bg); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.on { background: var(--bg); }
.suggest img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.suggest b { display: block; font-weight: 650; line-height: 1.25; }
.suggest small { color: var(--muted); }
.suggest .none { padding: 14px; color: var(--muted); }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 10px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #087556; }
.btn-violet { background: var(--violet); }
.btn-violet:hover { background: #5530b0; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #e6ebff; color: var(--blue-dark); }
.tag-free { background: #dff5ee; color: #07684e; }
.tag-service { background: #ece4ff; color: #4b25a3; }

/* ---------- hero ---------- */
.hero { padding: 54px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .45em; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.5em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.sheets { position: relative; height: 380px; max-width: 420px; margin-inline: auto; width: 100%; }
.sheet { position: absolute; width: 62%; aspect-ratio: 210 / 297; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 22px 40px -18px rgba(20, 33, 61, .35); padding: 16px 14px; }
.sheet::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(225deg, var(--bg) 50%, #e3e9f3 50%); border-bottom-left-radius: 4px; }
.sheet i { display: block; height: 6px; border-radius: 3px; background: #dfe6f1; margin-bottom: 7px; }
.sheet i.w50 { width: 50%; } .sheet i.w70 { width: 70%; } .sheet i.w85 { width: 85%; }
.sheet i.h { height: 10px; background: var(--ink); width: 55%; margin-bottom: 12px; }
.sheet i.b { background: var(--blue); width: 30%; height: 8px; margin: 14px 0 9px; }
.sheet .face { width: 34px; height: 34px; border-radius: 50%; background: #cfd9ec; float: right; margin: 0 0 8px 8px; }
.sheet.s1 { left: 0; top: 40px; transform: rotate(-7deg); }
.sheet.s2 { right: 0; top: 0; transform: rotate(5deg); }
.sheet.s3 { left: 19%; top: 62px; transform: rotate(-1deg); z-index: 2; }
.sheet.s3 i.b { background: var(--green); }
.sheet.s2 i.b { background: var(--violet); }
.sheet-note { position: absolute; z-index: 3; right: 6%; bottom: 14px; background: var(--mark); color: var(--ink); font-weight: 800; font-size: .86rem; padding: 6px 12px; border-radius: 6px; transform: rotate(-3deg); }

.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.kind { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); }
.kind:hover { border-color: var(--ink); color: var(--ink); }
.kind .ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #e6ebff; color: var(--blue-dark); }
.kind.k-free .ico { background: #dff5ee; color: #07684e; }
.kind.k-service .ico { background: #ece4ff; color: #4b25a3; }
.kind b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.kind span { color: var(--muted); font-size: .93rem; line-height: 1.4; display: block; }

/* ---------- sections / grid ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid > .ad-slot { grid-column: 1 / -1; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-media { position: relative; display: block; padding: 18px; background: #e9eef6; aspect-ratio: 1 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; box-shadow: 0 10px 22px -12px rgba(20, 33, 61, .45); }
.crop::before, .card-media::before, .gallery-main::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none; z-index: 2; opacity: .55;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 1.5px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 1.5px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 1.5px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 1.5px 12px no-repeat;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-size: 1.1rem; }
.price del { color: var(--muted); font-size: .92rem; margin-right: 4px; }
.price strong { font-weight: 800; }
.price small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.price-free { color: var(--green); font-weight: 800; }
.counter { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.counter.sale { background: var(--mark); color: var(--ink); padding: 2px 9px; border-radius: 6px; font-weight: 800; }
.card-service .card-media { background: #ece4ff; display: grid; place-items: center; }

/* service cards without a photo */
.svc-art { width: 100%; height: 100%; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 22px -12px rgba(20, 33, 61, .45); text-align: center; padding: 16px; color: #4b25a3; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }

/* ---------- breadcrumb ---------- */
.crumbs { padding: 18px 0 4px; font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- listing pages ---------- */
.page-head { padding: 26px 0 8px; }
.page-head p { color: var(--muted); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.chip { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip em { font-style: normal; opacity: .6; margin-left: 4px; font-weight: 500; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 30px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; text-align: center; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 650; }
.pager span[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }
.empty { text-align: center; padding: 56px 16px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: start; padding: 14px 0 24px; }
.gallery-main { position: relative; background: #e9eef6; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; box-shadow: 0 16px 30px -14px rgba(20, 33, 61, .5); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { border: 2px solid var(--line); background: #fff; padding: 3px; border-radius: 8px; cursor: pointer; width: 74px; height: 74px; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.svc-hero { aspect-ratio: 4 / 3; background: #ece4ff; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; padding: 30px; position: relative; }
.svc-hero .svc-art { max-width: 340px; font-size: 1.5rem; aspect-ratio: 210 / 297; height: auto; }

.buy h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .35em; }
.buy .price { font-size: 1.9rem; display: block; margin: 6px 0 14px; }
.buy .price small { font-size: 1rem; }
.buy .short { color: var(--muted); font-size: 1.05rem; }
.buybox { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.buybox label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 5px; }
.buybox input[type=email], .buybox input[type=text] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.buybox input:focus { border-color: var(--blue); outline: none; }
.field { margin-bottom: 12px; }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; font-size: .92rem; color: var(--muted); }
.trust li { display: flex; gap: 9px; align-items: flex-start; }
.trust svg { flex: none; margin-top: 3px; color: var(--green); }
.dl-count { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 650; color: var(--muted); }
.dl-count b { color: var(--ink); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.notice { padding: 12px 14px; border-radius: 9px; background: #fff7dc; border: 1px solid #f0dc8c; color: #5d4a00; font-size: .94rem; margin: 12px 0; }
.notice.err { background: #fde8eb; border-color: #f2b5bd; color: #7c1424; }
.notice.ok { background: #e2f6ef; border-color: #a5dcc8; color: #07503b; }
#paypal-buttons { min-height: 48px; margin-top: 4px; }
.pay-or { text-align: center; color: var(--muted); font-size: .86rem; margin: 10px 0; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.meta-list li { background: var(--paper); border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: .88rem; color: var(--muted); }
.meta-list b { color: var(--ink); }

/* ---------- article / content ---------- */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 4px solid var(--blue); color: var(--muted); }
.post-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: #e9eef6; }
.post-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.byline { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.byline a { color: var(--muted); }
.side { display: grid; gap: 18px; position: sticky; top: 150px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-box h3 { font-size: 1rem; margin-bottom: 10px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--bg); text-decoration: none; color: var(--ink); }
.mini:first-of-type { border-top: 0; }
.mini img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--bg); flex: none; }
.mini b { font-size: .93rem; line-height: 1.3; display: block; }
.mini small { color: var(--muted); }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--ink); }
.post-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #e9eef6; }
.post-card div { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card small { color: var(--muted); }
.post-card h3 { margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tags a { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: .86rem; text-decoration: none; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.form-card label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 5px; }
.form-card input[type=text], .form-card input[type=email], .form-card textarea, .form-card select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.form-card input:focus, .form-card textarea:focus { border-color: var(--blue); outline: none; }
.form-card textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- ads ---------- */
.ad-slot { margin: 22px auto; text-align: center; min-height: 90px; max-width: 100%; overflow: hidden; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .04em; color: #8a97ab; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c7d3ea; margin-top: 50px; padding: 46px 0 22px; font-size: .95rem; }
.site-foot a { color: #e9efff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h2 { font-size: .95rem; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot .logo { color: #fff; margin-bottom: 10px; }
.foot-bottom { border-top: 1px solid #2c3b5c; margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #93a3c2; font-size: .88rem; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 36px; height: 36px; border: 1px solid #2c3b5c; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }

/* ---------- consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 640px; margin-inline: auto; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(20, 33, 61, .25); display: none; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.consent.show { display: flex; }
.consent p { margin: 0; flex: 1 1 280px; }
.consent .btn { padding: 9px 16px; }

/* ---------- chat widget ---------- */
.chat-launch { position: fixed; right: 18px; bottom: 18px; z-index: 70; border: 0; background: var(--violet); color: #fff; font: inherit; font-weight: 700; padding: 14px 20px; border-radius: 99px; display: flex; gap: 9px; align-items: center; box-shadow: 0 14px 30px -8px rgba(107, 63, 212, .7); cursor: pointer; }
.chat-launch:hover { background: #5530b0; }
.chat-launch .dot { width: 10px; height: 10px; background: #5af0b4; border-radius: 50%; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: min(380px, 100vw - 24px); max-height: min(620px, 100vh - 36px); background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 33, 61, .35); }
.chat-panel.open { display: flex; }
.chat-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head b { display: block; line-height: 1.2; }
.chat-head small { color: #9fb0d0; }
.chat-head button { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7fb; min-height: 160px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: .94rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg small { display: block; font-size: .72rem; opacity: .65; margin-top: 3px; }
.msg.me { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg a { color: inherit; font-weight: 700; }
.chat-form { padding: 12px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.chat-form input, .chat-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; font-size: .95rem; color: var(--ink); }
.chat-form textarea { resize: none; min-height: 44px; max-height: 110px; }
.chat-form input:focus, .chat-form textarea:focus { border-color: var(--violet); outline: none; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row textarea { flex: 1; }
.chat-send { background: var(--violet); color: #fff; border: 0; border-radius: 9px; padding: 11px 16px; font-weight: 700; cursor: pointer; font: inherit; }
.chat-attach { cursor: pointer; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; display: grid; place-items: center; color: var(--muted); }
.chat-attach input { display: none; }
.chat-err { color: var(--danger); font-size: .86rem; min-height: 1em; }
.chat-file { font-size: .8rem; color: var(--muted); }
.chat-full { max-width: 640px; margin: 24px auto; border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; height: min(70vh, 640px); }

/* ---------- invoice / order pages ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 5vw, 48px); max-width: 820px; margin: 24px auto; }
.doc-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.doc h1 { font-size: 2rem; margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.doc th { text-align: left; font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 8px 6px; }
.doc td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td.n, .doc th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc .totals { margin-left: auto; width: min(320px, 100%); }
.doc .totals div { display: flex; justify-content: space-between; padding: 6px 6px; }
.doc .totals .grand { border-top: 2px solid var(--ink); font-weight: 800; font-size: 1.2rem; margin-top: 6px; padding-top: 10px; }
.status { display: inline-block; padding: 3px 12px; border-radius: 99px; font-weight: 800; font-size: .82rem; }
.status.paid { background: #dff5ee; color: #07684e; }
.status.unpaid, .status.pending { background: #fff1c9; color: #6c5200; }
.status.cancelled, .status.refunded { background: #fde8eb; color: #7c1424; }

.not-found { text-align: center; padding: 70px 0; }
.not-found .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -0.05em; color: var(--line); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .product, .layout-2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .kinds { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
  .sheets { height: 320px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .site-head { position: relative; }
  .head-row { position: relative; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .grid.g3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card h3 { font-size: .93rem; }
  .card-media { padding: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .searchbar button { padding: 10px 14px; }
  .searchbar input::placeholder { font-size: .85rem; }
  .hero { padding-top: 30px; }
  .chat-panel { right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .site-head, .searchrow, .site-foot, .consent, .chat-launch, .no-print { display: none !important; }
  body { background: #fff; }
  .doc { border: 0; margin: 0; padding: 0; max-width: none; }
}

/* service art inside a link: no underline */
.card-media, .card-media:hover { text-decoration: none; }
.svc-art { text-decoration: none; }

[hidden] { display: none !important; }

/* ---------- cart, account ---------- */
.head-actions { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.hd-link { position: relative; display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem; white-space: nowrap; }
.hd-link:hover { background: var(--bg); color: var(--ink); }
.hd-cta { background: var(--ink); color: #fff; }
.hd-cta:hover { background: var(--ink); color: #fff; opacity: .88; }
.cart-badge { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #2b4bff; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 760px) { .menu-btn { margin-left: auto; } .head-actions { margin-left: 0; } .hd-link { padding: 8px 7px; font-size: .88rem; } .head-row { gap: 10px; } }
@media (max-width: 420px) { .logo span { font-size: 1.05rem; } .hd-cta { display: none; } }

.auth-card { max-width: 440px; margin: 30px auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-card h1 { margin: 0 0 6px; font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin: 0 0 18px; }
.auth-card .alt { text-align: center; margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.auth-card .field input { width: 100%; }

.cart-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin: 18px 0 40px; }
@media (max-width: 900px) { .cart-wrap { grid-template-columns: 1fr; } }
.cart-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: #e9eef6; border: 1px solid var(--line); }
.cart-row h3 { margin: 0 0 3px; font-size: 1.02rem; line-height: 1.3; }
.cart-row h3 a { color: var(--ink); text-decoration: none; }
.cart-row .price { font-weight: 800; }
.cart-row .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .88rem; text-decoration: underline; padding: 4px 0; }
.cart-row .rm:hover { color: #c4283c; }
.cart-sum { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 20px; position: sticky; top: 14px; }
.cart-sum .line { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; }
.order-items { list-style: none; margin: 16px 0; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); }
.order-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-items li:last-child { border-bottom: 0; }
.order-items small { color: var(--muted); display: block; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin: 18px 0 40px; align-items: start; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.acct-box h2 { margin: 0 0 12px; font-size: 1.2rem; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.acct-table th { text-align: left; font-size: .8rem; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--ink); }
.acct-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-scroll { overflow-x: auto; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800; background: #e8ecf5; }
.status-pill.paid { background: #e2f6ef; color: #07503b; }
.status-pill.pending, .status-pill.unpaid { background: #fff1c9; color: #6c5200; }
.status-pill.cancelled { background: #fde8eb; color: #7c1424; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-danger { background: #c4283c; border-color: #c4283c; color: #fff; }

/* form fields everywhere (cart, account, login) */
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: .95rem; }
.field input[type=email], .field input[type=text], .field input[type=password] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--blue); outline: none; }
.field input:disabled { background: var(--bg); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* header: keep everything on one line */
.logo { white-space: nowrap; }
.nav a { white-space: nowrap; padding: 8px 9px; }
.nav ul { gap: 2px; }
.head-row { gap: 14px; }
@media (max-width: 1100px) and (min-width: 761px) { .nav a { padding: 8px 6px; font-size: .9rem; } .logo { font-size: 1.12rem; } }
@media (max-width: 480px) { .head-row { gap: 6px; } .logo { min-width: 0; } .logo span { font-size: .98rem; white-space: nowrap; } .logo svg { width: 28px; height: 28px; } .menu-btn { padding-left: 10px; padding-right: 10px; } .hd-link { padding: 8px 5px; } .head-actions { gap: 0; } }
