/* Cartora - an online store for many products. Warm paper, forest green and vermilion; Gabarito headings, Golos Text body.
   Header: search bar + category rail. Hero: bento of the shop's own product photos. Cards: square photo tile + quick add. */
:root {
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --soft: #F1EBE1;
    --ink: #1B1A1F;
    --muted: #57525E;
    --line: #E4DCCF;
    --primary: #1F4D3A;
    --primary-ink: #FFFFFF;
    --primary-deep: #143327;
    --secondary: #C2401A;
    --accent: #F2C14E;
    --radius: 18px;
    --radius-s: 12px;
    --shadow: 0 1px 2px rgba(27, 26, 31, .06), 0 8px 24px rgba(27, 26, 31, .06);
    --head: "Gabarito", "Golos Text", system-ui, sans-serif;
    --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.crt { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(15px, .3vw + 14px, 17px)/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 6px; }
.crt-ic { width: 1.25em; height: 1.25em; flex: none; }
.crt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crt-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.crt-skip:focus { top: 12px; }
.crt-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.crt-announce { background: var(--primary-deep); color: #F6F1E7; text-align: center; font-size: .9rem; padding: 8px var(--gutter); }
.crt-announce a { color: inherit; }

/* ---------- buttons, links, chips ---------- */
.crt-btn, .crt-b1, .crt-b2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px;
    font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.crt-btn, .crt-b1 { background: var(--primary); color: var(--primary-ink); }
.crt-btn:hover, .crt-b1:hover { background: var(--primary-deep); }
.crt-b2, .crt-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.crt-b2:hover, .crt-btn-ghost:hover { background: var(--ink); color: #fff; }
.crt-btn-light { background: var(--accent); color: var(--ink); }
.crt-btn-light:hover { background: #fff; }
.crt-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.crt-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.crt-link .crt-ic { transition: transform .2s; }
.crt-link:hover .crt-ic { transform: translateX(3px); }
.crt-kicker, .crt-kicker p { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 700 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.crt-chip, .crt-chip p { display: inline-block; margin: 0 0 18px; }
.crt-chip p { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--primary); }
.crt-chip p::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--secondary); vertical-align: 1px; }

/* ---------- header ---------- */
.crt-top { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.crt-top.is-stuck { box-shadow: 0 6px 20px rgba(27, 26, 31, .08); }
.crt-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding-block: 12px; }
.crt-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--head); text-decoration: none; color: var(--ink); }
.crt-logo img { max-height: 44px; width: auto; }
.crt-logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: var(--accent); }
.crt-logo-mark .crt-ic { width: 22px; height: 22px; }
.crt-search { width: 100%; max-width: 720px; justify-self: center; display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: 0; transition: border-color .2s; }
.crt-search:focus-within { border-color: var(--primary); }
.crt-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 8px 0; outline: none; }
.crt-search button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; }
.crt-search button:hover { background: var(--secondary); }
.crt-actions { display: flex; align-items: center; gap: 6px; }
.crt-act { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
.crt-act:hover { background: var(--soft); }
.crt-act-cart { background: var(--ink); color: #fff; }
.crt-act-cart:hover { background: var(--primary); }
.crt-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .78rem; display: grid; place-items: center; }
.crt-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.crt-burger .crt-i-close, .crt-top.is-open .crt-burger .crt-i-open { display: none; }
.crt-top.is-open .crt-burger .crt-i-close { display: block; }
.crt-railnav { border-top: 1px solid var(--line); }
.crt-railnav-in { display: flex; align-items: center; gap: 8px; padding-block: 8px; }
.crt-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.crt-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--muted); }
.crt-nav a:hover { color: var(--ink); background: var(--soft); }
.crt-nav a.on { color: var(--primary); font-weight: 600; background: rgba(31, 77, 58, .08); }
.crt-dept { position: relative; }
.crt-dept-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 600 .95rem/1 var(--body); cursor: pointer; }
.crt-dept-btn:hover { background: var(--primary-deep); }
.crt-dept-btn[aria-expanded="true"] .crt-i-down { transform: rotate(180deg); }
.crt-dept-panel { position: absolute; left: 0; top: calc(100% + 10px); width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(27, 26, 31, .16); padding: 14px; z-index: 60; }
.crt-dept-panel[hidden] { display: none !important; }
.crt-dept-panel ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.crt-dept-panel li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-s); text-decoration: none; }
.crt-dept-panel li a:hover { background: var(--soft); }
.crt-dept-panel b { display: block; font-weight: 600; }
.crt-dept-panel small { color: var(--muted); }
.crt-dept-img { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--primary); flex: none; }
.crt-dept-img img { width: 100%; height: 100%; object-fit: cover; }
.crt-dept-panel > .crt-link { padding: 4px 8px; }

/* ---------- main, flash ---------- */
.crt-main { min-height: 50vh; }
.crt-flash { max-width: 1320px; margin: 14px auto 0; padding-inline: var(--gutter); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.crt-flash .ec-alert { margin: 0; flex: 1 1 260px; }
.crt-flash > a { font-weight: 600; color: var(--primary); }
.crt-content { width: 100%; }
.crt-home .pb-section, .crt-page .pb-section { max-width: 1320px; margin-inline: auto; padding: clamp(28px, 5vw, 56px) var(--gutter); }
.crt-page { padding-bottom: 32px; }
.crt-page > :not(.pb-root):not(.ec-shop):not(.ec-cart):not(.ec-checkout) { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.crt-title { margin-bottom: 18px; }
.crt-more { margin: -8px 0 18px; }
.crt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.crt-head h2 { margin: 0; }
.crt-sec { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter); }
.crt-bsec .crt-sec { padding: 0; max-width: none; }
/* a section's "See all" link sits to the right of its heading */
.crt-bsec > .pb-column { position: relative; }
.crt-bsec .crt-more { position: absolute; right: 0; top: 0; margin: 0; }
.crt-bsec .crt-title { padding-right: 160px; }

/* ---------- hero ---------- */
.crt-home .crt-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding-top: clamp(24px, 4vw, 48px); }
.crt-hero > .pb-column { grid-column: auto; }
.crt-hero-text { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; align-content: center; }
.crt-hero-text > * { flex: 0 0 100%; }
.crt-hero-text > .crt-b1, .crt-hero-text > .crt-b2 { flex: 0 0 auto; }
.crt-hero h1, .crt-hero .crt-h1 { margin: 0; max-width: 14ch; }
.crt-lede, .crt-lede p { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--muted); max-width: 46ch; margin: 0 0 8px; }
.crt-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.crt-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(150px, 1fr)) minmax(110px, auto); gap: 12px; }
.crt-bento-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink); }
.crt-bento-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.crt-bento-tile:hover img { transform: scale(1.04); }
.crt-bento-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.crt-bento-2 { grid-column: 3; grid-row: 1; }
.crt-bento-3 { grid-column: 3; grid-row: 2 / 4; }
.crt-bento-stat { grid-column: 1 / 3; grid-row: 3; background: var(--primary); color: #F6F1E7; border-radius: var(--radius); padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.crt-bento-stat b { grid-row: 1 / 3; font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--head); color: var(--accent); }
.crt-bento-stat span { font-weight: 500; }
.crt-bento-stat a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.crt-bento-stat a:hover { text-decoration: underline; }
.crt-tag { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-direction: column; gap: 2px; width: fit-content; max-width: calc(100% - 24px);
    background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); font-size: .88rem; }
.crt-tag b { font-weight: 600; line-height: 1.25; }
.crt-bento-drawn .crt-bento-tile { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--primary); font: 700 1.1rem/1.2 var(--head); border: 2px dashed var(--line); background: var(--surface); }
.crt-bento-drawn .crt-ic { width: 40px; height: 40px; color: var(--secondary); }
.crt-bento-drawn .crt-bento-tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.crt-bento-drawn .crt-bento-tile:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.crt-bento-drawn .crt-bento-tile:nth-child(3) { grid-column: 1 / 4; grid-row: 3; }

/* ---------- categories ---------- */
.crt-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; }
.crt-cat { display: grid; justify-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); }
.crt-cat-img { width: min(100%, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--primary); margin-bottom: 8px;
    box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.crt-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.crt-cat-img .crt-ic { width: 40%; height: 40%; }
.crt-cat:hover .crt-cat-img { transform: translateY(-4px); box-shadow: inset 0 0 0 3px var(--primary); }
.crt-cat b { font-weight: 600; }
.crt-cat small { color: var(--muted); }

/* ---------- product cards ---------- */
.crt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.crt-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crt-card-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.crt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.crt-card:hover .crt-card-img img { transform: scale(1.05); }
.crt-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.crt-noimg .crt-ic { width: 44px; height: 44px; }
.crt-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.crt-flag { box-shadow: 0 1px 4px rgba(27, 26, 31, .25); display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 .75rem/1.2 var(--body); }
.crt-flag-off { background: var(--secondary); color: #fff; }
.crt-card-body { display: flex; flex-direction: column; gap: 4px; padding-inline: 2px; }
.crt-card-cat { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crt-card-title { margin: 0; font-size: 1.05rem; }
.crt-card-title a { text-decoration: none; }
.crt-card-title a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.crt-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.crt-price { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.crt-price s { font-weight: 400; font-size: .88rem; color: var(--muted); margin-left: 4px; }
.crt-add-form { margin: 0; }
.crt-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s; }
.crt-add:hover { background: var(--secondary); transform: rotate(90deg); }
.crt-sold { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ---------- deals (dark band) ---------- */
.crt-home .crt-dark { max-width: none; background: var(--primary); color: #F6F1E7; padding-inline: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))); }
.crt-dark .crt-kicker, .crt-dark .crt-kicker p { color: var(--accent); }
.crt-dark h2, .crt-dark .crt-title { color: #fff; }
.crt-deals-save { margin: -6px 0 20px; font-size: 1.1rem; color: #E9E2D4; }
.crt-deals { display: grid; gap: 24px; }
.crt-deals-intro p { color: #E9E2D4; }
.crt-sec.crt-deals { background: var(--primary); color: #F6F1E7; max-width: none; padding-inline: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))); }
.crt-sec.crt-deals h2 { color: #fff; }
.crt-bsec .crt-sec.crt-deals { background: none; padding: 0; }
.crt-deals-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.crt-deal { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 12px; }
.crt-deal-img { display: block; width: 96px; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: rgba(255, 255, 255, .1); }
.crt-deal-img img { width: 100%; height: 100%; object-fit: cover; }
.crt-deal h3 { margin: 6px 0 2px; font-size: 1rem; }
.crt-deal h3 a { color: #fff; text-decoration: none; }
.crt-deal h3 a:hover { text-decoration: underline; }
.crt-deal .crt-price { color: var(--accent); }
.crt-deal .crt-price s { color: #D8D0C0; }
.crt-deal .crt-add { background: var(--accent); color: var(--ink); }
.crt-deal .crt-add:hover { background: #fff; }

/* ---------- new arrivals rail ---------- */
.crt-rail { position: relative; }
.crt-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 72px) / 4)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 10px; }
.crt-rail-track > * { scroll-snap-align: start; }
.crt-rail-btn { position: absolute; top: calc(50% - 64px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.crt-rail-btn:hover { background: var(--ink); color: #fff; }
.crt-rail-btn[data-go="-1"] { left: -18px; }
.crt-rail-btn[data-go="1"] { right: -18px; }

/* ---------- perks ---------- */
.crt-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.crt-perks li > a, .crt-perks li > div { height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.crt-perks li > a:hover { border-color: var(--primary); }
.crt-perks .crt-ic { grid-row: 1 / 3; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--soft); color: var(--primary); }
.crt-perks b { font-family: var(--head); font-size: 1.1rem; }
.crt-perks span { color: var(--muted); font-size: .95rem; }

/* ---------- callout ---------- */
.crt-home .crt-end, .crt-page .crt-end { padding-top: 8px; }
.crt-callout { background: var(--accent); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.crt-callout > .crt-title { flex: 1 1 100%; margin: 0; max-width: 22ch; }
.crt-callout > .crt-call-text { flex: 1 1 320px; }
.crt-call-text p { margin: 0; font-size: 1.1rem; }
.crt-callout .crt-b1 { background: var(--ink); }
.crt-callout .crt-b1:hover { background: var(--primary); }

/* ---------- inner pages ---------- */
.crt-intro { padding-bottom: 8px !important; }
.crt-intro h1 { max-width: 20ch; }
.crt-about > .pb-column { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.crt-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.crt-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crt-ways a, .crt-ways div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.crt-ways a:hover { border-color: var(--primary); }
.crt-ways .crt-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--soft); color: var(--primary); }
.crt-ways b { display: block; font-family: var(--head); }
.crt-ways span { color: var(--muted); }
.crt-ways span b { color: var(--ink); }
.crt-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.crt-page h1:first-child { margin-top: 28px; }

/* ---------- the E-commerce Store plugin's pages in this theme's look ---------- */
.crt .ec-shop, .crt .ec-cart, .crt .ec-checkout, .crt .ec-track { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
/* low specificity on purpose (:where), so a page design (Cartora Store Studio colours) can win */
.crt .ec-btn:where(:not(.ec-btn-ghost)), .crt :where(.ec-shop) button[type="submit"]:where(:not(.ec-btn-ghost, .ec-link, .ec-x)) { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 999px; font-family: var(--body); }
.crt .ec-btn:hover { background: var(--secondary); border-color: var(--secondary); }
.crt .ec-btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; }
.crt .ec-btn-ghost:hover { background: var(--ink); color: #fff; }
.crt .ec-card { border-radius: var(--radius); border-color: var(--line); background: var(--surface); }
.crt .ec-card-img { background: var(--soft); }
.crt .ec-price { color: var(--ink); }
.crt .ec-tag-sale { background: var(--secondary); color: #fff; }
.crt .ec-page-title, .crt .ec-product h1, .crt .ec-product h2 { font-family: var(--head); }
.crt .ec-link, .crt .ec-crumb { color: var(--primary); }
.crt-lead { font-size: clamp(1.02rem, .4vw + .95rem, 1.15rem); color: var(--muted); max-width: 70ch; margin: -4px 0 20px; }

/* ---------- category pages, store-page help ---------- */
.crt-catpage { padding-block: clamp(20px, 3vw, 36px) 8px; }
.crt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crt-crumbs a { color: var(--primary); text-decoration: none; }
.crt-crumbs a:hover { text-decoration: underline; }
.crt-cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.crt-cat-head h1 { margin: 0 0 10px; }
.crt-cat-head .crt-lede { margin: 0; }
.crt-cat-more { margin-top: clamp(32px, 5vw, 56px); }
.crt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.crt-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.crt-chips a:hover { border-color: var(--primary); color: var(--primary); }
.crt-chips small { color: var(--muted); font-weight: 500; }
.crt-catpage + .crt-sec { padding-top: clamp(28px, 4vw, 40px); }
.crt-help { margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.crt-help h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-top: 0; }
.crt-help h2 + p, .crt-help p { color: var(--muted); max-width: 75ch; }
.crt-help a { color: var(--primary); font-weight: 600; }
.crt-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-bottom: 8px; }
.crt-help-grid h3 { color: var(--ink); }
.crt-status { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.crt-status li { margin-bottom: 6px; }
.crt-status b { color: var(--ink); }
.crt .ec-shop input, .crt .ec-shop select, .crt .ec-cart input, .crt .ec-checkout input, .crt .ec-checkout select, .crt .ec-checkout textarea { border-radius: 12px; border-color: var(--line); font-family: var(--body); }
.crt .ec-box { border-radius: var(--radius); border-color: var(--line); }
/* the thank-you page and Cartora Store Studio's notes */
.crt .ec-done-icon { background: var(--primary); color: #fff; }
.crt .ec-done h2 { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 6px 0 10px; }
.crt .ec-ui-next { background: var(--surface); border-left: 4px solid var(--primary); }
.crt .ec-ui-next h3 { font-family: var(--head); font-size: 1.15rem; }
.crt .ec-ui-note { color: var(--muted); }
.crt .ec-done .ec-btn + .ec-link, .crt .ec-done .ec-btn { margin: 4px 8px; }

/* ---------- log in, forgot / reset password, 2-step check (the core's .auth-form pages) ---------- */
.crt-main > .auth-form { width: min(460px, calc(100% - 2 * var(--gutter))); margin: clamp(32px, 7vw, 72px) auto; padding: clamp(26px, 5vw, 40px);
    background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: 0 24px 60px rgba(27, 26, 31, .08); position: relative; overflow: hidden; }
.crt-main > .auth-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--primary) 0 60%, var(--accent) 60% 80%, var(--secondary) 80%); }
.auth-form h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 6px 0 8px; }
.auth-form h1 + form, .auth-form .notice + form { margin-top: 20px; }
.auth-form > p:not(.notice) { color: var(--muted); }
.auth-form form { display: grid; gap: 6px; }
.auth-form label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="number"], .auth-form input:not([type]) {
    width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.auth-form input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(31, 77, 58, .14); }
.auth-form .btn, .auth-form button[type="submit"] { margin-top: 18px; width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--primary); color: #fff;
    font: 700 1.02rem/1 var(--body); cursor: pointer; transition: background-color .2s, transform .2s; }
.auth-form .btn:hover, .auth-form button[type="submit"]:hover { background: var(--primary-deep); }
.auth-form .btn:active { transform: translateY(1px); }
.auth-form .notice { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-s); font-size: .95rem; border: 1px solid transparent; }
.auth-form .notice-error { background: #FDECE7; border-color: #F3C3B4; color: #8A2A10; }
.auth-form .notice-success { background: #E7F2EC; border-color: #BFDCCB; color: #17402F; }
.crt-auth-links { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.crt-auth-links a, .auth-form > p:last-child:not(.notice) a { color: var(--primary); font-weight: 600; text-decoration: none; }
.crt-auth-links a:hover, .auth-form > p:last-child:not(.notice) a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-form > p:last-child:not(.notice):not(.crt-auth-links) { margin: 20px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }

/* ---------- forms from other plugins ---------- */
.crt-content input[type="text"], .crt-content input[type="email"], .crt-content input[type="tel"], .crt-content input[type="password"], .crt-content textarea, .crt-content select { max-width: 100%; }

/* ---------- footer ---------- */
.crt-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--primary-deep); color: #E9E2D4; padding-top: clamp(36px, 5vw, 56px); }
.crt-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 28px; }
.crt-logo-foot { color: #fff; }
.crt-foot-brand p { margin: 14px 0; color: #D8D0C0; max-width: 32ch; }
.crt-foot-h { margin: 0 0 12px; font: 700 .8rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.crt-foot-col { display: flex; flex-direction: column; gap: 8px; }
.crt-foot-col a, .crt-foot-help a:not(.crt-btn) { color: #F6F1E7; text-decoration: none; }
.crt-foot-col a:hover, .crt-foot-help a:not(.crt-btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.crt-foot-help { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.crt-foot-help a { display: inline-flex; align-items: center; gap: 8px; word-break: break-all; }
.crt-foot-help .crt-btn-ghost { color: #fff; border-color: #fff; margin-top: 4px; }
.crt-foot-help .crt-btn-ghost:hover { background: #fff; color: var(--ink); }
.crt-social { display: flex; gap: 8px; }
.crt-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.crt-social a:hover { background: var(--secondary); }
.crt-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 36px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: #D8D0C0; }
.crt-base-links { display: flex; gap: 18px; flex-wrap: wrap; }
.crt-base a { color: #F6F1E7; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
    .crt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .crt-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crt-foot-brand { grid-column: 1 / -1; }
    .crt-rail-track { grid-auto-columns: minmax(220px, calc((100% - 48px) / 3)); }
}
@media (max-width: 900px) {
    .crt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crt-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
    .crt-search { max-width: none; }
    .crt-burger { display: grid; }
    .crt-search { grid-column: 1 / -1; grid-row: 2; }
    .crt-act-track span, .crt-act-cart span { display: none; }
    .crt-act-track { display: none; }
    .crt-railnav { display: none; }
    .crt-top.is-open .crt-railnav { display: block; max-height: calc(100vh - 140px); overflow-y: auto; }
    .crt-top.is-open .crt-railnav-in { flex-direction: column; align-items: stretch; }
    .crt-top.is-open .crt-nav { flex-direction: column; }
    .crt-top.is-open .crt-nav a { padding: 12px 14px; font-size: 1.05rem; }
    .crt-dept-panel { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
    .crt-home .crt-hero { grid-template-columns: minmax(0, 1fr); }
    .crt-contact { grid-template-columns: minmax(0, 1fr); }
    .crt-rail-btn { display: none; }
    .crt-rail-track { grid-auto-columns: minmax(200px, 62%); }
    .crt-bsec .crt-title { padding-right: 0; }
    .crt-bsec .crt-more { position: static; margin: -8px 0 16px; }
}
@media (max-width: 560px) {
    .crt-bento { grid-template-rows: repeat(2, minmax(110px, 1fr)) auto; gap: 8px; }
    .crt-tag { font-size: .78rem; padding: 6px 9px; left: 8px; bottom: 8px; }
    .crt-bento-2 .crt-tag, .crt-bento-3 .crt-tag { display: none; }
    .crt-bento-stat { grid-column: 1 / 4; }
    .crt-bento-3 { grid-row: 2; }
    .crt-dept-panel ul { grid-template-columns: minmax(0, 1fr); }
    .crt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crt-add { width: 40px; height: 40px; }
    .crt-card-row { flex-wrap: wrap; }
    .crt-deal { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .crt-deal-img { width: 72px; }
    .crt-foot-grid { grid-template-columns: minmax(0, 1fr); }
    .crt-logo span:last-child { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- options from Cartora Store Studio that need fixed rules ---------- */
.crt-home .crt-hero:has(.crt-hero-none) { grid-template-columns: minmax(0, 1fr); }
.crt-hero-visual:has(.crt-hero-none) { display: none; }
.crt-hero:has(.crt-hero-none) .crt-hero-text { justify-content: center; text-align: center; max-width: 900px; margin-inline: auto; }
.crt-hero:has(.crt-hero-none) .crt-hero-text > * { max-width: none; }
.crt-hero:has(.crt-hero-none) .crt-hero-text > :not(.crt-b1):not(.crt-b2) { flex-basis: 100%; margin-inline: auto; }
.crt-hero:has(.crt-hero-none) .crt-h1, .crt-hero:has(.crt-hero-none) h1 { text-wrap: balance; }
.crt-hero:has(.crt-hero-none) .crt-lede p { margin-inline: auto; }
.crt-search-off { display: block; }

/* the cart page: blocks under the cart (You may also like ...) share the cart grid - the sticky order summary must not slide over them */
.crt .ec-cart:has(> .ec-ui-zone-bottom) > .ec-cart-side { position: static !important; }

/* A product item opens its own product page as a whole - the picture, the name and the price line, not only the small link
   inside the title. A "stretched link": the overlay covers the card and stays under the add-to-cart button, so pressing
   "add to cart" still only adds it. Same for the deal rows on the dark band. */
.crt-card { position: relative; }
.crt-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.crt-card-row { position: relative; }
.crt-card-row .crt-add-form { position: relative; z-index: 2; }
.crt-card-title a:focus-visible::after { outline: 2px solid var(--primary); outline-offset: 3px; }
.crt-deal { position: relative; }
.crt-deal h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.crt-deal .crt-add-form { position: relative; z-index: 2; }

