/*
Theme Name: CTY Modern
Theme URI: https://www.ctythai.com/
Description: Professional WooCommerce catalog child theme for CTY Intertrading.
Author: CTY Intertrading
Version: 0.1.11
Template: maxstore
Text Domain: cty-modern
Requires at least: 6.0
Requires PHP: 7.4
*/

@font-face {
  font-family: "Noto Sans Thai";
  src: url("assets/fonts/NotoSansThai-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cty-navy-950: #061426;
  --cty-navy-900: #0a2342;
  --cty-navy-800: #123b62;
  --cty-blue: #0b66b3;
  --cty-sky: #70c8ff;
  --cty-red: #e5222d;
  --cty-red-dark: #c91420;
  --cty-line: #007f39;
  --cty-line-dark: #00662e;
  --cty-text: #13243a;
  --cty-muted: #56677c;
  --cty-border: #d8e2ec;
  --cty-surface: #ffffff;
  --cty-surface-soft: #f3f7fb;
  --cty-shadow: 0 8px 24px rgba(6, 20, 38, .07);
  --cty-radius: 14px;
  --cty-container: 1180px;
}

html { scroll-behavior: smooth; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.cty-modern :focus-visible { outline: 3px solid var(--cty-blue); outline-offset: 3px; }
body.cty-modern [id] { scroll-margin-top: 180px; }
body.cty-modern .cty-header-main > *, .cty-catalog-header > *, .cty-product-detail > *, .cty-spec-layout > * { min-width: 0; }
body.cty-modern .cty-catalog-header .cty-eyebrow { color: var(--cty-blue); }
.cty-gallery-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cty-gallery-thumbnails a { display: grid; place-items: center; padding: 8px; border: 1px solid var(--cty-border); border-radius: 12px; }
.cty-gallery-thumbnails img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cty-product-description { overflow-wrap: anywhere; }
.cty-product-description font, .cty-product-description span[style], .cty-product-description em[style] { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }
.cty-product-description table { display: block; max-width: 100%; overflow-x: auto; }
.cty-product-description iframe, .cty-entry-content iframe { max-width: 100%; }
body.cty-modern { margin: 0; color: var(--cty-text); background: #fff; font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
body.cty-modern *, body.cty-modern *::before, body.cty-modern *::after { box-sizing: border-box; }
body.cty-modern a { color: inherit; text-decoration: none; }
body.cty-modern img { display: block; max-width: 100%; height: auto; }
body.cty-modern button, body.cty-modern input, body.cty-modern select, body.cty-modern textarea { font: inherit; }
body.cty-modern h1, body.cty-modern h2, body.cty-modern h3 { font-family: inherit; font-weight: 600; line-height: 1.35; letter-spacing: normal; }
body.cty-modern h1, body.cty-modern h2, body.cty-modern h3, body.cty-modern p { overflow-wrap: break-word; }
body.cty-modern.admin-bar .cty-site-header { top: 32px; }
.cty-container { width: min(calc(100% - 40px), var(--cty-container)); margin-inline: auto; }
.cty-main { min-height: 50vh; }
.cty-skip-link:focus { position: fixed; z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; clip: auto; color: #fff; background: var(--cty-navy-950); }

.cty-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 10px; color: #fff !important; font-weight: 600; font-size: 15px; line-height: 1.4; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.cty-button:hover, .cty-button:focus-visible { color: #fff !important; transform: translateY(-1px); }
.cty-button:focus-visible, .cty-icon-button:focus-visible, .cty-nav-links a:focus-visible { outline: 3px solid var(--cty-sky); outline-offset: 3px; }
.cty-button--primary { background: var(--cty-red); box-shadow: none; }
.cty-button--primary:hover { background: var(--cty-red-dark); }
.cty-button--line { background: var(--cty-line); box-shadow: none; }
.cty-button--line:hover { background: var(--cty-line-dark); }
.cty-button--dark { background: var(--cty-navy-900); }
.cty-button--dark:hover { background: var(--cty-blue); }
.cty-button--wide { min-width: 180px; }
.cty-text-link { color: var(--cty-blue) !important; font-weight: 700; }
.cty-text-link:hover { text-decoration: underline; }

.cty-utility-bar { color: #fff; background: var(--cty-navy-950); font-size: 13px; }
.cty-utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cty-utility-group { display: flex; align-items: center; gap: 18px; }
.cty-utility-group a:hover { color: var(--cty-sky); }
.cty-utility-dot { width: 5px; height: 5px; border-radius: 50%; background: #73869a; }

.cty-site-header { position: sticky; z-index: 50; top: 0; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--cty-border); backdrop-filter: blur(12px); }
.cty-header-main { min-height: 88px; display: grid; grid-template-columns: minmax(240px, 280px) minmax(240px, 1fr) auto; align-items: center; gap: 24px; }
.cty-brand { min-width: 0; display: flex; align-items: center; gap: 13px; }
.cty-brand img { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.cty-brand-copy { min-width: 0; display: grid; }
.cty-brand-copy strong { color: var(--cty-navy-900); font-size: 18px; line-height: 1.2; }
.cty-brand-copy small { margin-top: 3px; color: var(--cty-muted); font-size: 12px; white-space: normal; }
.cty-header-actions { display: flex; align-items: center; gap: 10px; }
.cty-menu-button { display: none; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 12px; color: var(--cty-navy-900); background: var(--cty-surface-soft); cursor: pointer; }

.cty-search { position: relative; min-width: 0; display: flex; align-items: center; }
.cty-search svg { position: absolute; z-index: 1; left: 17px; width: 20px; color: var(--cty-muted); pointer-events: none; }
.cty-search input[type="search"] { width: 100%; min-height: 54px; padding: 10px 108px 10px 48px; border: 1px solid #c8d6e5; border-radius: 999px; color: var(--cty-text); background: #f8fafc; outline: none; }
.cty-search input[type="search"]:focus { border-color: var(--cty-blue); box-shadow: 0 0 0 3px rgba(11, 102, 179, .13); }
.cty-search button { position: absolute; right: 5px; min-width: 90px; min-height: 44px; border: 0; border-radius: 999px; color: #fff; background: var(--cty-navy-900); font-weight: 600; font-size: 14px; cursor: pointer; }
.cty-search button:hover { background: var(--cty-blue); }

.cty-primary-nav { border-top: 1px solid #edf1f5; }
.cty-nav-inner { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.cty-nav-links { display: flex; align-items: stretch; gap: 4px; }
.cty-nav-links a { position: relative; display: flex; align-items: center; padding: 13px 12px; color: #2b3441; font-size: 14px; font-weight: 500; }
.cty-nav-links a::after { position: absolute; right: 15px; bottom: 0; left: 15px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; content: ""; }
.cty-nav-links a:hover, .cty-nav-links a.active { color: var(--cty-red); }
.cty-nav-links a.active::after { background: var(--cty-red); }
.cty-nav-note { display: none; color: var(--cty-muted); font-size: 12px; white-space: nowrap; }

.cty-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 70%, rgba(130, 63, 118, .32), transparent 31%), linear-gradient(115deg, #06182d 0%, #0b2b4d 58%, #154f7b 100%); }
.cty-hero::after { position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 48px 48px; content: ""; pointer-events: none; }
.cty-hero-inner { position: relative; z-index: 1; min-height: 540px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-block: 64px; }
.cty-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--cty-sky); font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.cty-eyebrow::before { width: 30px; height: 2px; background: var(--cty-red); content: ""; }
.cty-hero h1 { max-width: 720px; margin: 17px 0 18px; color: #fff; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.3; letter-spacing: normal; }
.cty-hero h1 span { display: block; color: var(--cty-sky); }
.cty-hero-copy { max-width: 670px; margin: 0; color: #e9f3fc; font-size: 18px; line-height: 1.75; }
.cty-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.cty-hero-trust { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 27px; font-size: 14px; }
.cty-hero-trust span { display: flex; align-items: center; gap: 7px; }
.cty-hero-trust b { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #2fc37b; border-radius: 50%; color: #fff; background: rgba(0, 200, 83, .25); }
.cty-hero-visual { position: relative; min-height: 390px; }
.cty-visual-card { position: absolute; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); transform: none; }
.cty-visual-card img { width: 100%; height: 100%; object-fit: contain; }
.cty-visual-card.main { top: 0; right: 0; width: 76%; height: 330px; }
.cty-visual-card.secondary { bottom: 0; left: 0; width: 51%; height: 225px; transform: none; }
.cty-visual-badge { position: absolute; right: -2px; bottom: 20px; z-index: 3; min-width: 152px; padding: 15px 20px; border-radius: 16px; color: var(--cty-navy-900); background: rgba(255, 255, 255, .94); box-shadow: var(--cty-shadow); font-size: 16px; font-weight: 600; }
.cty-visual-badge small { display: block; color: var(--cty-muted); font-size: 13px; font-weight: 500; }

.cty-trust-strip { border-bottom: 1px solid var(--cty-border); background: #fff; }
.cty-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cty-trust-item { min-width: 0; min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px; border-right: 1px solid var(--cty-border); }
.cty-trust-item:first-child { border-left: 1px solid var(--cty-border); }
.cty-trust-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: var(--cty-blue); background: #eaf4fc; font-size: 23px; font-weight: 700; }
.cty-trust-item strong { display: block; color: var(--cty-navy-900); font-size: 15px; }
.cty-trust-item small { display: block; color: var(--cty-muted); font-size: 13px; }

.cty-section { padding-block: 64px; }
.cty-section--soft { background: var(--cty-surface-soft); }
.cty-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.cty-section-heading h2, .cty-catalog-header h1 { margin: 0; color: var(--cty-navy-900); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.4; }
.cty-section-heading p { max-width: 720px; margin: 7px 0 0; color: var(--cty-muted); }
.cty-result-count { color: var(--cty-muted); font-size: 13px; white-space: nowrap; }

.cty-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cty-category-card { min-height: 140px; display: flex; align-items: flex-start; gap: 17px; padding: 22px; border: 1px solid var(--cty-border); border-radius: var(--cty-radius); background: #fff; box-shadow: 0 7px 20px rgba(6, 20, 38, .04); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.cty-category-card:hover { border-color: #9bc4e5; transform: translateY(-3px); box-shadow: var(--cty-shadow); }
.cty-category-icon { display: grid; flex: 0 0 50px; width: 50px; height: 50px; place-items: center; border-radius: 14px; color: var(--cty-navy-800); background: #eaf4fc; }
.cty-category-icon svg { width: 25px; height: 25px; }
.cty-category-card h3 { margin: 5px 0 8px; color: var(--cty-navy-900); font-size: 16px; line-height: 1.6; font-weight: 500; }
.cty-category-card small { color: var(--cty-muted); }

.cty-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cty-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--cty-border); border-radius: var(--cty-radius); background: #fff; box-shadow: 0 8px 26px rgba(6, 20, 38, .06); transition: transform .18s ease, box-shadow .18s ease; }
.cty-product-card:hover { transform: translateY(-4px); box-shadow: var(--cty-shadow); }
.cty-product-image { position: relative; display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: #fff; }
.cty-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.cty-product-card:hover .cty-product-image img { transform: scale(1.025); }
.cty-product-tag { position: absolute; z-index: 2; top: 13px; left: 13px; max-width: calc(100% - 26px); padding: 5px 9px; overflow: hidden; border-radius: 999px; color: var(--cty-navy-900); background: #eaf4fc; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cty-product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cty-product-category { color: var(--cty-blue); font-size: 13px; font-weight: 500; }
.cty-product-card h3 { min-height: 56px; margin: 7px 0 10px; color: var(--cty-navy-900); font-size: 18px; font-weight: 600; line-height: 1.55; }
.cty-product-card h3 a:hover { color: var(--cty-blue); }
.cty-product-code { min-height: 22px; color: var(--cty-muted); font-size: 13px; }
.cty-product-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: auto; padding-top: 20px; }
.cty-product-actions .cty-button { min-height: 46px; padding-inline: 13px; border-radius: 10px; font-size: 14px; }
.cty-icon-button { display: grid; min-width: 54px; min-height: 46px; place-items: center; border-radius: 10px; color: #fff !important; background: var(--cty-line); font-size: 13px; font-weight: 600; }
.cty-centered-action { margin-top: 34px; text-align: center; }

.cty-service-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.cty-service-card, .cty-order-card { padding: 40px; border-radius: 22px; box-shadow: var(--cty-shadow); }
.cty-service-card { color: #e9f3fc; background: linear-gradient(135deg, var(--cty-navy-900), #15517c); }
.cty-service-card h2, .cty-order-card h2 { margin: 12px 0; font-size: 28px; }
.cty-service-card h2 { color: #fff; }
.cty-service-card p { margin: 0 0 24px; color: #d8e8f5; }
.cty-order-card { background: #fff; }
.cty-order-card h2 { margin-top: 0; color: var(--cty-navy-900); }
.cty-order-steps { display: grid; gap: 17px; margin: 22px 0 0; padding: 0; list-style: none; }
.cty-order-steps li { display: flex; align-items: flex-start; gap: 14px; }
.cty-order-steps li > span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--cty-blue); background: #eaf4fc; font-weight: 800; }
.cty-order-steps strong, .cty-order-steps small { display: block; }
.cty-order-steps strong { color: var(--cty-navy-900); }
.cty-order-steps small { color: var(--cty-muted); font-size: 14px; }

.cty-cta-wrap { padding-top: 0; }
.cty-cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 38px 44px; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(circle at 95% 50%, #194f78 0, #194f78 18%, transparent 18.5%), var(--cty-navy-900); box-shadow: var(--cty-shadow); }
.cty-cta-panel h2 { margin: 0 0 6px; color: #fff; font-size: 28px; }
.cty-cta-panel p { margin: 0; color: #d8e8f5; }
.cty-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.cty-breadcrumb { padding-block: 22px; color: var(--cty-muted); font-size: 13px; }
.cty-breadcrumb .woocommerce-breadcrumb { margin: 0; color: inherit; }
.cty-breadcrumb a { color: var(--cty-blue); }
.cty-catalog-header { display: grid; grid-template-columns: 1fr; align-items: end; gap: 35px; margin-bottom: 34px; }
.cty-catalog-header .term-description { color: var(--cty-muted); }
.cty-catalog-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 11px 15px; border: 1px solid var(--cty-border); border-radius: 13px; background: var(--cty-surface-soft); }
.cty-catalog-toolbar .woocommerce-result-count, .cty-catalog-toolbar .woocommerce-ordering { margin: 0; }
.cty-catalog-toolbar select { min-height: 46px; font-size: 16px; max-width: 100%; padding: 6px 34px 6px 11px; border: 1px solid var(--cty-border); border-radius: 9px; background: #fff; }
.cty-pagination { margin-top: 38px; }
.cty-pagination .page-numbers { display: flex; justify-content: center; gap: 8px; padding: 0; border: 0 !important; }
.cty-pagination .page-numbers li { border: 0 !important; }
.cty-pagination .page-numbers a, .cty-pagination .page-numbers span { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--cty-border); border-radius: 10px; color: var(--cty-navy-900); background: #fff; }
.cty-pagination .page-numbers .current { color: #fff; background: var(--cty-navy-900); }
.cty-empty-state { padding: 55px 25px; border: 1px solid var(--cty-border); border-radius: var(--cty-radius); text-align: center; background: var(--cty-surface-soft); }
.cty-empty-state h2 { color: var(--cty-navy-900); }

.cty-product-detail { display: grid; grid-template-columns: 1fr 1.08fr; gap: 58px; padding-block: 24px 76px; }
.cty-product-gallery { align-self: start; }
.cty-main-product-image { display: grid; min-height: 520px; place-items: center; padding: 42px; overflow: hidden; border: 1px solid var(--cty-border); border-radius: 24px; background: #fff; box-shadow: var(--cty-shadow); }
.cty-main-product-image img { width: 100%; max-width: 100%; max-height: 560px; height: auto; object-fit: contain; }
.cty-product-info { align-self: center; }
.cty-product-kicker { color: var(--cty-blue); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.cty-product-info h1 { margin: 12px 0 19px; color: var(--cty-navy-900); font-size: clamp(30px, 3vw, 40px); line-height: 1.4; letter-spacing: normal; }
.cty-product-summary { color: var(--cty-muted); font-size: 17px; line-height: 1.78; }
.cty-model-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.cty-model-row span { padding: 8px 12px; border-radius: 9px; color: var(--cty-navy-900); background: var(--cty-surface-soft); font-size: 14px; font-weight: 500; }
.cty-quote-box { margin-bottom: 22px; padding: 27px; border: 1px solid #b8d5ea; border-radius: var(--cty-radius); background: #eef7fd; }
.cty-quote-box > strong { display: block; color: var(--cty-navy-900); font-size: 19px; }
.cty-quote-box p { margin: 8px 0 17px; color: var(--cty-muted); }
.cty-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cty-help-note { margin-top: 13px; color: var(--cty-muted); font-size: 13px; }
.cty-spec-section { padding-block: 70px; background: var(--cty-surface-soft); }
.cty-spec-layout { display: grid; grid-template-columns: 1fr .78fr; gap: 56px; }
.cty-spec-layout h2 { margin-top: 0; color: var(--cty-navy-900); font-size: 30px; }
.cty-spec-table { overflow: hidden; border: 1px solid var(--cty-border); border-radius: var(--cty-radius); background: #fff; }
.cty-spec-row { display: grid; grid-template-columns: 42% 58%; border-bottom: 1px solid var(--cty-border); }
.cty-spec-row:last-child { border-bottom: 0; }
.cty-spec-row div { padding: 13px 17px; }
.cty-spec-row div:first-child { color: var(--cty-muted); background: #f9fbfd; font-weight: 700; }
.cty-product-description { margin-top: 28px; color: var(--cty-text); }
.cty-info-card { align-self: start; padding: 30px; border-radius: var(--cty-radius); color: #dce9f5; background: var(--cty-navy-900); }
.cty-info-card h2 { color: #fff; font-size: 23px; }
.cty-info-card ul { margin: 18px 0 0; padding-left: 22px; }

.cty-content-page { padding-block: 70px; background: var(--cty-surface-soft); }
.cty-content-narrow { max-width: 900px; }
.cty-entry { margin-bottom: 24px; padding: 38px; border: 1px solid var(--cty-border); border-radius: var(--cty-radius); background: #fff; box-shadow: var(--cty-shadow); }
.cty-entry h1, .cty-entry h2 { color: var(--cty-navy-900); }
.cty-entry h1 { margin: 0 0 24px; font-size: clamp(28px, 3vw, 36px); line-height: 1.4; }
.cty-entry-content font { font-family: inherit; font-size: inherit; color: inherit; }
.cty-entry-content .wpcf7 { max-width: 680px; margin-inline: auto; }
.cty-entry-content .wpcf7 label { display: block; font-weight: 500; }
.cty-entry-content .wpcf7 input[type="submit"] { border-radius: 10px; font-size: 16px; padding-inline: 24px; }
.cty-contact-options { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.cty-entry-content .cty-contact-options a { text-decoration: none; }
.cty-entry-content table th[scope="row"] { width: 30% !important; text-align: left; font-weight: 500; background: var(--cty-surface-soft); }
.cty-service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 28px; }
.cty-service-options section { min-width: 0; overflow-wrap: anywhere; padding: 24px; border: 1px solid var(--cty-border); border-radius: 12px; }
.cty-service-options h2 { margin: 0 0 20px; font-size: 22px; }
.cty-service-options h3 { font-size: 18px; }
body.cty-modern .cty-service-options img { width: 100%; height: 220px; object-fit: contain; }
.cty-entry-content .wpcf7 fieldset.hidden-fields-container { display: none; }
.cty-order-guide { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: cty-order; }
.cty-order-guide li { position: relative; padding: 24px 24px 24px 72px; border: 1px solid var(--cty-border); border-radius: 12px; background: var(--cty-surface-soft); counter-increment: cty-order; }
.cty-order-guide li::before { position: absolute; left: 20px; top: 24px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--cty-blue); background: #eaf4fc; font-weight: 600; content: counter(cty-order); }
.cty-order-guide h2 { margin: 0 0 8px; font-size: 20px; }
.cty-order-guide p { margin: 0; }
.cty-entry-content a { color: var(--cty-blue); text-decoration: underline; }
.cty-entry-image { margin: 0 0 28px; overflow: hidden; border-radius: 16px; }
.cty-entry-content { color: var(--cty-text); line-height: 1.75; }
.cty-entry-content::after { display: table; clear: both; content: ""; }
.cty-entry-content img { max-width: 100%; height: auto; }
.cty-entry-content .wp-caption { max-width: 100%; }
.cty-entry-content table { display: table; table-layout: fixed; width: 100% !important; max-width: 100%; height: auto !important; border-collapse: collapse; }
.cty-entry-content td, .cty-entry-content th { width: auto !important; height: auto !important; overflow-wrap: anywhere; }
.cty-entry-content .textwidget > table, .cty-entry-content .textwidget > table > tbody, .cty-entry-content .textwidget > table > tbody > tr, .cty-entry-content .textwidget > table > tbody > tr > td { display: block; width: 100% !important; height: auto !important; padding: 0; border: 0; }
.cty-entry-content span[style], .cty-entry-content em[style] { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }
.cty-entry-content .wpcf7 form .wpcf7-response-output:empty { display: none; }
.cty-entry-content .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.cty-entry-content td, .cty-entry-content th { padding: 10px; border: 1px solid var(--cty-border); vertical-align: top; }
.cty-entry-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .cty-entry-content textarea, .cty-entry-content select { width: 100%; max-width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--cty-border); border-radius: 9px; background: #fff; }
.cty-entry-content textarea { min-height: 130px; }
.cty-entry-content input[type="submit"], .cty-entry-content button { min-height: 44px; padding: 9px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--cty-navy-900); font-weight: 700; cursor: pointer; }
.cty-entry-content .wpcf7-form > p { margin-bottom: 17px; }
.cty-entry-content .wpcf7-not-valid-tip { color: #b4232d; font-size: 12px; }
.cty-entry-content .wpcf7-response-output { margin-inline: 0; padding: 12px 15px; border-radius: 9px; }
.cty-entry-content .panel-grid { max-width: 100%; }

.cty-not-found-page { display: grid; min-height: 68vh; place-items: center; padding-block: 70px; background: var(--cty-surface-soft); }
.cty-not-found-card { max-width: 780px; padding: 58px; border: 1px solid var(--cty-border); border-radius: 24px; background: #fff; box-shadow: var(--cty-shadow); text-align: center; }
.cty-not-found-code { color: #dce9f4; font-size: clamp(72px, 14vw, 140px); font-weight: 900; line-height: .8; }
.cty-not-found-card .cty-eyebrow { color: var(--cty-blue); justify-content: center; margin-top: 28px; }
.cty-not-found-card h1 { margin: 13px 0; color: var(--cty-navy-900); font-size: clamp(30px, 4vw, 46px); }
.cty-not-found-card > p { max-width: 600px; margin: 0 auto; color: var(--cty-muted); }
.cty-not-found-search { max-width: 590px; margin: 28px auto 0; text-align: left; }
.cty-not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 18px; }

body.cty-modern .woocommerce form .form-row input.input-text, body.cty-modern .woocommerce form .form-row textarea, body.cty-modern .select2-container .select2-selection--single { min-height: 46px; padding: 9px 12px; border: 1px solid var(--cty-border); border-radius: 9px; }
body.cty-modern .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 26px; }
body.cty-modern .woocommerce table.shop_table { overflow: hidden; border: 1px solid var(--cty-border); border-radius: 13px; }
body.cty-modern .woocommerce table.shop_table th, body.cty-modern .woocommerce table.shop_table td { padding: 13px; }
body.cty-modern .woocommerce a.button, body.cty-modern .woocommerce button.button, body.cty-modern .woocommerce input.button { border-radius: 999px; color: #fff; background: var(--cty-navy-900); }
body.cty-modern .woocommerce a.button:hover, body.cty-modern .woocommerce button.button:hover, body.cty-modern .woocommerce input.button:hover { color: #fff; background: var(--cty-blue); }
body.cty-modern .woocommerce-MyAccount-navigation ul { display: grid; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
body.cty-modern .woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 9px; background: var(--cty-surface-soft); font-weight: 700; }

.cty-site-footer { color: #c7d5e4; background: var(--cty-navy-950); }
.cty-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1.1fr .85fr; gap: 32px; padding-block: 48px 36px; }
.cty-footer-grid h2 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.cty-footer-logo-lockup { display: flex; align-items: center; gap: 12px; }
.cty-footer-logo-lockup img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.cty-footer-logo-lockup span { display: grid; }
.cty-footer-logo-lockup strong { color: #fff; font-size: 16px; }
.cty-footer-logo-lockup small { color: #93a7ba; }
.cty-footer-brand p { max-width: 340px; color: #93a7ba; font-size: 14px; }
.cty-footer-links, .cty-footer-contact { display: grid; gap: 8px; font-size: 14px; }
.cty-footer-links a:hover, .cty-footer-contact a:hover { color: var(--cty-sky); }
.cty-footer-contact span { color: #fff; font-weight: 700; }
.cty-line-qr { display: block; width: 180px; max-width: 100%; overflow: hidden; border-radius: 8px; background: #fff; }
.cty-line-qr img { display: block; width: 100%; height: auto; }
.cty-footer-line { display: grid; align-content: start; gap: 10px; min-width: 0; font-size: 14px; }
.cty-footer-line h2, .cty-footer-line p { margin: 0; }
.cty-line-help summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.cty-line-help p { font-size: 13px; }
.cty-icon-button:hover { background: var(--cty-line-dark); }
.cty-footer-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #93a7ba; font-size: 13px; }
.cty-footer-bottom { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #7f93a6; font-size: 12px; }
.cty-staging-label { padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e9f3fc; }
.cty-mobile-contact { display: none; }

body.cty-modern .woocommerce-message, body.cty-modern .woocommerce-info, body.cty-modern .woocommerce-error { width: min(calc(100% - 40px), var(--cty-container)); margin: 22px auto; border-top-color: var(--cty-blue); border-radius: 10px; }

@media (max-width: 1050px) {
  .cty-header-main { grid-template-columns: 235px 1fr auto; gap: 15px; }
  .cty-brand img { flex-basis: 52px; width: 52px; height: 52px; }
  .cty-brand-copy strong { font-size: 15px; }
  .cty-header-actions .cty-button { min-width: 52px; padding: 9px; font-size: 12px; }
  .cty-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cty-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cty-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.cty-modern { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  body.cty-modern.admin-bar .cty-site-header { top: 46px; }
  .cty-container { width: min(calc(100% - 28px), var(--cty-container)); }
  .cty-utility-bar { display: none; }
  .cty-header-main { min-height: 72px; grid-template-columns: 1fr auto; padding-block: 8px 0; }
  .cty-brand-copy small { display: none; }
  .cty-search { grid-column: 1 / 3; grid-row: 2; margin-bottom: 13px; }
  .cty-search input[type="search"] { padding-right: 88px; }
  .cty-search button { min-width: 78px; }
  .cty-header-actions { display: none; }
  .cty-menu-button { display: grid; }
  .cty-primary-nav { display: none; }
  .cty-primary-nav.is-open { display: block; }
  .cty-nav-inner { display: block; padding-block: 8px 16px; }
  .cty-nav-links { display: grid; gap: 0; }
  .cty-nav-links a { border-bottom: 1px solid var(--cty-border); }
  .cty-nav-note { padding-top: 12px; }
  .cty-hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-block: 50px 58px; }
  .cty-hero h1 { font-size: clamp(32px, 8.6vw, 42px); line-height: 1.35; }
  .cty-hero-copy { font-size: 16px; }
  .cty-hero-actions .cty-button { width: 100%; }
  .cty-hero-visual { min-height: 300px; }
  .cty-visual-card.main { width: 70%; height: 270px; right: 3%; }
  .cty-visual-card.secondary { width: 45%; height: 195px; left: 3%; }
  .cty-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cty-trust-item { min-height: 88px; justify-content: flex-start; padding: 14px; border-bottom: 1px solid var(--cty-border); }
  .cty-trust-item:last-child { grid-column: 1 / -1; }
  .cty-section { padding-block: 56px; }
  .cty-section-heading { align-items: flex-start; }
  .cty-category-card { min-height: 150px; padding: 17px; }
  .cty-product-grid { grid-template-columns: 1fr; }
  .cty-service-layout, .cty-cta-panel, .cty-catalog-header, .cty-product-detail, .cty-spec-layout { grid-template-columns: 1fr; }
  .cty-service-card, .cty-order-card { padding: 29px 24px; }
  .cty-cta-panel { padding: 34px 25px; }
  .cty-cta-actions { justify-content: flex-start; }
  .cty-cta-actions .cty-button { width: 100%; }
  .cty-catalog-search { width: 100%; }
  .cty-catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .cty-product-detail { gap: 30px; padding-bottom: 56px; }
  .cty-main-product-image { min-height: 0; padding: 28px; }
  .cty-quote-actions .cty-button { width: 100%; }
  .cty-not-found-card { padding: 40px 22px; }
  .cty-not-found-actions .cty-button { width: 100%; }
  .cty-entry { padding: 27px 22px; }
  .cty-service-options { grid-template-columns: minmax(0, 1fr); }
  .cty-entry-content .panel-grid { display: block !important; }
  .cty-entry-content .panel-grid-cell { width: 100% !important; }
  .cty-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cty-footer-grid > :last-child { grid-column: auto; }
  .cty-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 16px; }
  .cty-mobile-contact { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--cty-border); background: #fff; box-shadow: 0 -8px 28px rgba(7,20,38,.13); }
  .cty-mobile-contact .cty-button { min-height: 49px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.cty-modern *, body.cty-modern *::before, body.cty-modern *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 440px) {
  .cty-entry-content table:has(th[scope="row"]), .cty-entry-content table:has(th[scope="row"]) tbody, .cty-entry-content table:has(th[scope="row"]) tr { display: block; }
  .cty-entry-content table th[scope="row"], .cty-entry-content table:has(th[scope="row"]) td { display: block; width: 100% !important; }
  .cty-entry-content table:has(th[scope="row"]) tr + tr { margin-top: 12px; }
  .cty-brand-copy strong { font-size: 14px; }
  .cty-category-grid, .cty-trust-grid { grid-template-columns: 1fr; }
  .cty-trust-item { grid-column: auto; border-left: 1px solid var(--cty-border); }
  .cty-section-heading { flex-direction: column; }
  .cty-hero-trust { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .cty-product-info h1 { font-size: 28px; line-height: 1.45; }
  .cty-spec-row { grid-template-columns: 1fr; }
  .cty-spec-row div:first-child { padding-bottom: 4px; }
  .cty-spec-row div:last-child { padding-top: 4px; }
}
