/* cycms storefront */
:root {
  --brand: #111111;
  --brand-contrast: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --text: #151515;
  --muted: #6b6b6b;
  --border: #e7e7e4;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --container: 1240px;
  --success: #15803d; --danger: #b91c1c; --warn: #a16207; --info: #1d4ed8;
}
* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.pad-xl { padding: 96px 24px; }
.display { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: var(--brand-contrast); border: 1px solid var(--brand); text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s, opacity .15s; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--brand); }
.prose--invert .btn--outline { color: #fff; border-color: #fff; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* header */
.preview-bar { background: #fde68a; color: #713f12; text-align: center; padding: 6px; font-size: 14px; }
.announcement { background: var(--brand); color: var(--brand-contrast); text-align: center; font-size: 13.5px; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.03em; }
.logo img { max-height: 36px; width: auto; }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); opacity: .85; }
.main-nav a:hover { opacity: 1; }
.nav-dd { position: relative; }
.nav-dd-menu { position: absolute; top: 100%; left: -12px; min-width: 200px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.nav-dd-menu a { padding: 8px 12px; border-radius: 6px; }
.nav-dd-menu a:hover { background: var(--bg-soft); }
.dd-caret { font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-search input { height: 38px; width: 200px; border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; font: inherit; font-size: 14px; background: var(--bg-soft); }
.icon-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-size: 18px; background: none; border: 0; cursor: pointer; }
.icon-link:hover { background: var(--bg-soft); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-contrast); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .header-search { display: none; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 16px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-dd-menu { position: static; box-shadow: none; border: 0; padding-left: 16px; }
}

/* heroes */
.hero { position: relative; }
.hero--high { min-height: 72vh; display: flex; align-items: center; background: #111 center/cover no-repeat; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.15)); }
.hero-content { position: relative; max-width: 760px; padding: 80px 24px; }
.hero--high h1, .hero--high h2 { font-size: clamp(38px, 6vw, 68px); color: #fff; }
.hero--medium { padding: 72px 0; background: var(--bg-soft); }
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-img { border-radius: 18px; width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero--low { padding: 72px 0 24px; }
@media (max-width: 800px) { .hero-split { grid-template-columns: 1fr; } }

/* prose */
.prose { font-size: 17px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.prose h2 { font-size: clamp(26px, 3.5vw, 36px); margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.3em; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-size: 19px; color: #333; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose pre { background: #0f0f0f; color: #eee; padding: 18px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.prose--invert, .prose--invert a { color: #fff; }
.prose > :first-child { margin-top: 0; }

/* blocks */
.block { padding: 56px 0; }
.section-title { font-size: 30px; margin-bottom: 28px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }
@media (max-width: 800px) { .grid-12 { grid-template-columns: 1fr; } .col-12, .col-8, .col-6, .col-4 { grid-column: span 1; } }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; border-radius: 22px; background: var(--bg-soft); flex-wrap: wrap; }
.cta .links { margin-top: 0; }
.block-media img, .block-media video { width: 100%; border-radius: 18px; }
.block-media--full img { border-radius: 0; max-height: 80vh; object-fit: cover; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.banner { padding: 18px 22px; border-radius: var(--radius); border: 1px solid; }
.banner--info { background: #eff6ff; border-color: #bfdbfe; color: var(--info); }
.banner--warning { background: #fefce8; border-color: #fde68a; color: var(--warn); }
.banner--error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.banner--success { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
.code-block { background: #0f0f0f; color: #f1f1f1; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.gallery { display: grid; gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-media { aspect-ratio: 16/10; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 19px; margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span, .card-tags a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.card-date { margin-top: auto; font-size: 13px; color: var(--muted); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* products */
.product-grid { display: grid; gap: 28px 20px; }
.product-card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.product-media { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.product-info h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.price { font-size: 15px; }
.price s { color: var(--muted); margin-right: 6px; }

/* page chrome */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-size: 14px; }
.chip.active { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.post-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; background: #1b1b1b center/cover no-repeat; color: #fff; }
.post-hero-content { position: relative; padding: 64px 24px 48px; }
.post-hero h1 { font-size: clamp(32px, 5vw, 56px); color: #fff; }
.post-hero .card-tags a { color: rgba(255,255,255,.8); }
.post-meta { color: rgba(255,255,255,.8); font-size: 14px; }
.post-body { padding-top: 48px; padding-bottom: 32px; }
.search-big { display: flex; gap: 10px; margin-top: 16px; }
.search-big input { flex: 1; height: 50px; border: 1px solid var(--border); border-radius: 999px; padding: 0 22px; font: inherit; font-size: 17px; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-hit { display: block; padding: 20px 24px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; }
.search-hit:hover { border-color: var(--text); }
.search-hit h3 { margin: 4px 0; }
.hit-type { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* forms */
.cms-form { padding: 32px; border: 1px solid var(--border); border-radius: 18px; }
.form-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100%; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=number], .form-field textarea, .form-field select,
.input { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; }
.form-field textarea { height: auto; padding: 12px 14px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-error { color: var(--danger); font-size: 13px; }
.form-alert:empty { display: none; }
.form-alert { margin-bottom: 12px; font-size: 14px; }
/* honeypot: invisible to people, filled by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 24px; border-radius: var(--radius); background: #f0fdf4; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }

/* footer */
.site-footer { margin-top: 64px; background: #0f0f0f; color: #d8d8d8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid .logo { color: #fff; margin-bottom: 8px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.footer-col a { text-decoration: none; opacity: .8; }
.footer-col a:hover { opacity: 1; }
.social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.social a { text-transform: capitalize; opacity: .8; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #262626; font-size: 13.5px; opacity: .8; flex-wrap: wrap; }
.locales { display: flex; gap: 10px; }
.locales a { text-decoration: none; }
.locales a.active { font-weight: 700; text-decoration: underline; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* commerce (shared) */
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.panel { border: 1px solid var(--border); border-radius: 18px; padding: 24px; background: #fff; }
.panel h2 { font-size: 20px; }
.sticky { position: sticky; top: 90px; }
.line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.line-info { flex: 1; min-width: 0; }
.line-info h3 { font-size: 15px; margin: 0 0 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span, .qty input { min-width: 30px; text-align: center; border: 0; width: 42px; font: inherit; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.sum-row.total { font-size: 19px; font-weight: 700; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); }
.option-group { margin: 18px 0; }
.option-group h4 { font-size: 14px; margin-bottom: 8px; }
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill { position: relative; }
.opt-pill input { position: absolute; opacity: 0; }
.opt-pill span { display: inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px; }
.opt-pill input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--brand-contrast); }
.opt-pill input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-gallery img { width: 100%; border-radius: 16px; background: var(--bg-soft); aspect-ratio: 1; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pdp-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; }
.pdp-price { font-size: 26px; font-weight: 700; margin: 12px 0 4px; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.alert--error { background: #fef2f2; color: var(--danger); }
.alert--success { background: #f0fdf4; color: var(--success); }
.steps { display: flex; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.steps .on { color: var(--text); font-weight: 700; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; margin-bottom: 10px; }
.radio-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.radio-card .grow { flex: 1; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields-2 .full { grid-column: span 2; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 12px; font-weight: 600; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.account-nav a.active, .account-nav a:hover { background: var(--bg-soft); }
.htmx-request.btn { opacity: .6; pointer-events: none; }
.hero--high .btn:not(.btn--outline), .post-hero .btn:not(.btn--outline) { background: #fff; color: #111; border-color: #fff; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; }
.list-toolbar .input { width: auto; height: 40px; padding-right: 32px; }

/* accessibility & responsive additions */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--brand); color: var(--brand-contrast); padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-dd-head { display: inline-flex; align-items: center; gap: 2px; }
button.dd-caret { border: 0; background: none; cursor: pointer; padding: 4px; font: inherit; font-size: 11px; color: inherit; }
@media (max-width: 900px) { .nav-dd-head { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); } .nav-dd-head a { border-bottom: 0; } button.dd-caret { font-size: 16px; padding: 8px 12px; } }
fieldset.option-group { border: 0; padding: 0; min-width: 0; }
fieldset.option-group legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt-pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pdp-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.pdp-thumb.on { border-color: var(--brand); }
.pdp-original { font-size: 18px; margin-right: 8px; font-weight: 400; }
.thumb-ph { display: block; width: 84px; height: 84px; border-radius: 10px; background: var(--bg-soft); flex: none; }
.thumb-ph--sm { width: 56px; height: 56px; }
.line-total { min-width: 90px; text-align: right; font-weight: 600; }
.promo-badge { display: inline-flex; align-items: center; gap: 6px; }
.promo-badge button { border: 0; background: none; cursor: pointer; padding: 0 2px; }
.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; gap: 20px; } .account-nav { flex-direction: row; flex-wrap: wrap; } .table { font-size: 14px; } }
@media (max-width: 600px) { .fields-2 { grid-template-columns: 1fr; } .fields-2 .full { grid-column: span 1; } .line { flex-wrap: wrap; } .cta { padding: 28px; } .container { padding: 0 16px; } }
.footer-prefs { display: flex; gap: 18px; flex-wrap: wrap; }
.regions { display: flex; gap: 10px; flex-wrap: wrap; }
.regions a { text-decoration: none; }
.regions a.active { font-weight: 700; text-decoration: underline; }
/* order pages: payment link, transfer */
.alert--warn { background: #fffbeb; color: #92400e; }
.alert--info { background: var(--bg-soft); color: inherit; }
.order-pay-alert { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge--warn { background: #fef3c7; color: #92400e; text-decoration: none; }
.transfer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.transfer-actions form { flex: 1 1 180px; }
.transfer-actions .btn { width: 100%; }
.account-link .table { margin-bottom: 8px; }
/* modal dialog (product inquiry) */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.modal-panel { position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow: auto; background: var(--bg); border-radius: 18px; padding: 28px 24px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-panel h2 { font-size: 22px; padding-right: 32px; }
.modal-panel .cms-form { padding: 0; border: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--bg-soft); cursor: pointer; font-size: 16px; }
