/* SEO product pages (/p/). Same tokens, type and chrome as the skinify.ai homepages
   (web-site/build-home.py): Skinify blue from the logo, Archivo + Readex Pro. No JS. */
:root {
  --b100: #EAF6FD; --b200: #D3ECFB; --b300: #A1DAF7; --b400: #55C3E9; --b500: #2B8BD6; --b600: #2F72C4; --b700: #335DA8; --b800: #26457F;
  --ink: #13213F; --ink2: #46557A; --paper: #fff; --wash: #F5FAFE; --line: #D6E5F2; --night: #152A52;
  --warn: #9A4A06;
  --gut: clamp(16px, 4vw, 40px);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[lang^=ar] { --sans: "Readex Pro", "Archivo", system-ui, Tahoma, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[lang^=ar] body { line-height: 1.8; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gut); }
a { color: var(--b600); text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--b500); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 30; }
.skip:focus { inset-inline-start: 8px; }

/* header (matches the homepage) */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: var(--b600); }
.langs { display: flex; gap: 2px; background: var(--wash); border-radius: 12px; padding: 3px; }
.langs a { display: grid; place-items: center; height: 32px; padding: 0 10px; border-radius: 9px; color: var(--ink2); text-decoration: none; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.langs a[aria-current] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(19,33,63,.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.btn-pri { background: var(--b600); color: #fff; }
.btn-pri:hover { background: var(--b700); }
@media (max-width: 1000px) { .nav { display: none; } .langs { margin-inline-start: auto; } }
@media (max-width: 600px) { .hdr .btn { display: none; } .brand img { height: 24px; } .langs a { padding: 0 8px; } }

main { padding-bottom: 72px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0; font-size: .875rem; color: var(--ink2); }
.crumbs a { color: var(--ink2); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }

h1, h2, h3 { font-family: var(--sans); color: var(--ink); text-wrap: balance; }
h1, .crumbs li { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.08; margin: 4px 0 12px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
[lang^=ar] h1 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
h2 { font-size: 1.375rem; line-height: 1.25; margin: 40px 0 12px; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; }
[lang^=ar] h2 { letter-spacing: 0; }
h3 { font-size: 1.0625rem; margin: 22px 0 4px; font-weight: 700; }
h2.k { font-size: .875rem; color: var(--ink2); font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin: 18px 0 8px; }
.lead { color: var(--ink2); max-width: 62ch; font-size: 1.0625rem; }
.phead { padding: 8px 0 8px; }
.phead h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 22ch; }

/* product */
.product { display: grid; gap: 24px; margin-top: 4px; }
.media { background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: 0 0 0 1px var(--line); }
.media img { margin: 0 auto; max-height: 440px; width: auto; object-fit: contain; }
.info { background: var(--paper); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 0 0 1px var(--line); }
.brand-name, .product .brand { margin: 0; color: var(--b700); font-size: .9375rem; font-weight: 700; }
.cat { margin: 0; color: var(--ink2); font-size: .9375rem; }
.price { font-size: 1.75rem; margin: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price strong { font-weight: 800; font-stretch: 112%; }
.price span { font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ok { color: var(--b700); background: var(--b100); }
.wait { color: var(--warn); background: #FFF4E5; }
.summary { margin: 8px 0 20px; color: var(--ink2); }

.cta { display: inline-flex; align-items: center; justify-content: center; background: var(--b600); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; text-align: center; padding: 13px 24px; border-radius: 14px; min-height: 52px; box-shadow: 0 10px 24px -12px rgba(47,114,196,.8); }
.cta:hover { background: var(--b700); }
.ctasub { color: var(--ink2); font-size: .9375rem; margin: 10px 0 16px; }

.perks, .chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { background: var(--b100); color: var(--b800); border-radius: 10px; padding: 6px 12px; font-size: .875rem; font-weight: 600; }
.chips li { background: var(--paper); border-radius: 999px; padding: 5px 14px; font-size: .9375rem; box-shadow: inset 0 0 0 1px var(--line); }
.chips li[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.chips li[aria-current] small { color: var(--b300); }
.chips a { text-decoration: none; color: var(--ink); font-weight: 600; }
.chips a:hover { color: var(--b600); }
.chips small { color: var(--ink2); }
.ing { columns: 2; column-gap: 24px; padding: 0; list-style-position: inside; color: var(--ink2); }

main > section { max-width: 820px; }
main > section p { color: var(--ink2); }
.note { background: var(--paper); border-radius: 18px; padding: 6px 20px 18px; margin-top: 32px; box-shadow: inset 3px 0 0 var(--b500), 0 0 0 1px var(--line); }
[dir=rtl] .note { box-shadow: inset -3px 0 0 var(--b500), 0 0 0 1px var(--line); }
.note h2 { margin-top: 16px; }
.faq h3 + p { margin-top: 0; }

.grid { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
main > section:has(.grid) { max-width: none; }
.card { display: flex; flex-direction: column; gap: 2px; height: 100%; background: var(--paper); border-radius: 20px; padding: 12px 12px 16px; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 0 0 2px var(--b400), 0 18px 32px -22px rgba(38,69,127,.45); }
.thumb { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; border-radius: 14px; background: #fff; }
.thumb img { max-height: 100%; width: auto; object-fit: contain; }
.card .b { font-size: .75rem; color: var(--b700); font-weight: 700; }
.card .n { font-size: .9375rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.card .pr { margin-top: auto; padding-top: 8px; font-weight: 800; font-stretch: 112%; color: var(--ink); }
.hubs { margin: 28px 0; padding: 20px clamp(16px, 3vw, 28px) 24px; background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.hubs h2.k:first-child { margin-top: 4px; }

/* footer (matches the homepage) */
.ftr { background: var(--night); color: #C9DCF1; padding-block: 56px 28px; font-size: .9375rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr .fgrid { display: grid; gap: 36px; }
.ftr p { margin: 14px 0 0; max-width: 34ch; }
.ftr h2 { font-size: .9375rem; font-weight: 600; font-stretch: 100%; color: var(--b300); margin: 0 0 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.soc { display: flex; gap: 8px; margin-top: 18px; }
.soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); }
.soc svg { width: 19px; height: 19px; }
.fbot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(161,218,247,.2); font-size: .875rem; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) { .ftr .fgrid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .product { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .media { position: sticky; top: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
