/*
Theme Name: Ploymarble
Theme URI: http://ploymarble.com
Author: Ploymarble 999
Description: ธีมโรงงานตี่จู้เอี๊ยะหินอ่อน โทนแดงขาว โหลดเร็ว ปุ่มติดต่อเด่น
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Text Domain: ploymarble
*/

:root {
    --red: #c4161c;
    --red-deep: #8d1016;
    --red-ink: #4c070b;
    --gold: #e2b657;
    --gold-deep: #8d6914;
    --paper: #fff8f6;
    --white: #fff;
    --ink: #241416;
    --muted: #6e5960;
    --line: #06c755;
    --line-deep: #049447;
    --fb: #1877f2;
    --line-height-dock: 84px;
    --shadow: 0 16px 40px rgba(90, 10, 16, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    padding-bottom: calc(var(--line-height-dock) + 12px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: 0; overflow-wrap: break-word; }
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--white);
    padding: 8px 12px;
    z-index: 20;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
    margin: 0 0 8px;
    color: var(--gold-deep);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.topbar {
    background: var(--red-ink);
    color: #ffe7c2;
    text-align: center;
    font-size: 14px;
    padding: 8px 16px;
}
.site-head {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #f0d7d4;
    backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 220px; }
.brand-logo { width: 58px; height: auto; }
.brand strong { display: block; font-size: 18px; }
.brand small { color: var(--muted); }
.site-nav { margin-left: auto; }
.site-nav-list { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--red-deep); }
main > .wp-block-html { margin: 0; }
.head-actions { display: flex; gap: 8px; }
.pill, .btn, .contact-card, .dock a { text-decoration: none; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 7px;
    border: 1px solid #eadfdc;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(60, 10, 16, 0.05);
}
.pill::before, .btn::before, .dock a::before, .contact-card::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    background-repeat: no-repeat;
    background-position: center;
}
.pill::before { width: 28px; height: 28px; border-radius: 50%; background-size: 15px; }
.pill-line::before, .btn-line::before, .dock-line::before, .card-line::before {
    background-color: #06c755;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 4C7 4 3 7.5 3 11.6c0 3.6 3.2 6.6 7.5 7.2.3 0 .7.2.8.5l.3 1.6c0 .3.4.5.7.3l2-1.3c.2-.1.4-.2.6-.2 4.1-.3 7.1-3.6 7.1-8.1C22 7.5 17.5 4 12 4z'/%3E%3C/svg%3E");
}
.pill-call::before, .btn-call::before, .dock-call::before, .card-call::before {
    background-color: var(--red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11 11 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11 11 0 00.57 3.6 1 1 0 01-.25 1z'/%3E%3C/svg%3E");
}
.pill-fb::before, .btn-fb::before, .dock-fb::before, .card-fb::before {
    background-color: #0866ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3C6.5 3 2 7.1 2 12.1 2 15 3.4 17.5 5.6 19.2V21l3.2-1.8c1 .3 2 .4 3.2.4 5.5 0 10-4.1 10-9.5S17.5 3 12 3zm1.1 12.2l-2.6-2.8-5 2.8 5.5-5.8 2.6 2.7 4.9-2.7-5.4 5.8z'/%3E%3C/svg%3E");
}
.pill:hover, .btn:hover, .contact-card:hover { transform: translateY(-2px); }
.pill:focus-visible, .btn:focus-visible, .contact-card:focus-visible, .dock a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(226, 182, 87, 0.28), transparent 28%),
        linear-gradient(160deg, #9d1218 0%, #6e0c12 55%, #4c070b 100%);
    color: var(--white);
    padding: 48px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 3vw, 46px); }
.lead { margin: 0 0 22px; font-size: 18px; color: #ffe8e4; }
.hero .eyebrow { color: var(--gold); }
.hero-actions, .contact-grid { display: grid; gap: 12px; }
.btn {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(40, 0, 8, 0.16);
    text-align: left;
    transition: transform .16s ease, box-shadow .16s ease;
}
.btn::before { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; background-size: 24px; }
.btn::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7f1ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238d1016' d='M9 6l6 6-6 6V6z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.btn-kicker { grid-column: 2; grid-row: 1; font-size: 12px; font-weight: 700; color: #7b6560; opacity: 1; }
.btn strong { grid-column: 2; grid-row: 2; font-size: 20px; line-height: 1.25; color: var(--ink); }
.btn-line {
    background: #06c755;
    color: #052b12;
}
.btn-line .btn-kicker,
.btn-line strong { color: #052b12; }
.btn-line::before { background-color: #049447; }
.btn-line::after {
    background-color: #083018;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 6l6 6-6 6V6z'/%3E%3C/svg%3E");
}
.btn-call {
    background: var(--red);
    color: var(--white);
    padding: 16px 16px;
    box-shadow: 0 14px 28px rgba(140, 10, 16, 0.35);
}
.btn-call .btn-kicker { color: #ffe8e4; }
.btn-call strong { color: var(--white); font-size: 22px; }
.btn-call::before { background-color: #8d1016; }
.btn-call::after {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238d1016' d='M9 6l6 6-6 6V6z'/%3E%3C/svg%3E");
}
.btn-fb {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}
.btn-fb strong { color: #0b57d0; }
.pill-line {
    background: #06c755;
    color: #052b12;
    border-color: #049447;
    padding: 10px 16px 10px 8px;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(6, 199, 85, 0.4);
}
.pill-call, .pill-fb {
    background: var(--white);
    color: var(--ink);
    border-color: #eadfdc;
}
.pill-call { color: var(--red-deep); }
.btn-line {
    grid-template-columns: 56px 1fr auto;
    padding: 20px 18px;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(4, 120, 40, 0.4);
    animation: line-glow 2.4s ease-in-out infinite;
}
.btn-line .btn-kicker { font-size: 14px; letter-spacing: 0.02em; }
.btn-line strong { font-size: 26px; }
.btn-line::before { width: 56px; height: 56px; border-radius: 16px; background-size: 28px; }
.btn-call, .btn-fb { padding: 12px 14px; }
.btn-call strong, .btn-fb strong { font-size: 18px; }
.btn:hover { box-shadow: 0 16px 34px rgba(40, 0, 8, 0.22); }
.btn-line:hover { box-shadow: 0 18px 36px rgba(4, 120, 40, 0.5); }
.hero-photo { margin: 0; display: grid; gap: 12px; }
.hero-img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 22px 48px rgba(40, 0, 8, 0.28); background: #fff8f2; }
.stars { color: #c8962e; letter-spacing: 2px; }
.hero-photo figcaption {
    margin-top: 10px;
    color: #ffe7c2;
    font-size: 14px;
}
.trust { background: var(--white); border-bottom: 1px solid #f0d7d4; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-row p { margin: 0; padding: 18px 12px; text-align: center; }
.trust-row strong, .trust-row span { display: block; }
.trust { border-top: 4px solid var(--gold); }
.trust-row strong { color: var(--red); font-size: 20px; line-height: 1.35; }
.trust-row span { color: var(--muted); font-size: 14px; }
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2, .about-grid h2, .band h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    margin-right: 8px;
    border-radius: 99px;
    background: var(--gold);
    vertical-align: middle;
}
.section-head h2, .about-grid h2 {
    padding-bottom: 8px;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 56px 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
}
.section-head p { margin: 0; color: var(--muted); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; }
.card > img { width: 100%; height: auto; object-fit: contain; background: #8d1016; }
.card, .about-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card { display: flex; flex-direction: column; height: 100%; }
.card-body { flex: 1; }
.card-body, .about-card { padding: 18px; }
.size { display: inline-block; margin: 0 0 6px; color: var(--red); font-weight: 800; font-size: 18px; background: #fde8e6; border-radius: 999px; padding: 2px 12px; }
.card { transition: transform .16s ease; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin: 4px 0 8px; font-size: 22px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.text-link { color: var(--red-deep); font-weight: 800; }
.colors { background: var(--white); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0 0 16px; }
.swatches li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sw { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e7c7c4; display: block; }
.sw-red { background: #c4161c; }
.sw-gold { background: linear-gradient(135deg, #fff1c4, #c8962e); }
.sw-scale { background: linear-gradient(90deg, #f4e2a8 50%, #c4161c 50%); }
.sw-sign { background: linear-gradient(#e2b657, #e2b657 55%, #c4161c 55%); }
.sw-white { background: #f7f2ea; }
.sw-jade { background: linear-gradient(135deg, #f3e2b5, #d7b56a); }
.note, .address { color: var(--muted); }
.catalog-grid a {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf8, #f6eadc);
    border: 1px solid #e6d0a4;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.catalog-grid img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: #8d1016;
}
.catalog-grid.fit a { aspect-ratio: auto; height: auto; }
.catalog-grid.fit img { position: static; inset: auto; width: 100%; height: auto; }
.catalog-grid.review-grid { grid-template-columns: repeat(3, 1fr); }
.catalog-block { margin-top: 36px; scroll-margin-top: 96px; }
.catalog-block h3 {
    margin: 0 0 14px;
    font-size: clamp(22px, 2.4vw, 30px);
    color: var(--red-deep);
    scroll-margin-top: 96px;
    padding-bottom: 8px;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 56px 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
}
.poster a {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6d0a4;
    box-shadow: var(--shadow);
    background: #8d1016;
}
.poster img { width: 100%; height: auto; display: block; }
.catalog-grid a:hover { transform: translateY(-3px); }
.catalog-grid span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--white);
    color: var(--red-deep);
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 12px;
}
.band { background: var(--red); color: var(--white); }
.band-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 36px 0; }
.band p { margin: 0; color: #ffe4e2; }
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
.prose p { margin: 0 0 14px; }
.about-card ul { margin: 12px 0 0; padding-left: 18px; }
.about-card img { width: 180px; margin: 0 auto 8px; }
.about-card .founder { width: min(100%, 280px); height: auto; border-radius: 16px; }
.story-poster { grid-column: 1 / -1; margin: 8px 0 0; }
.story-poster img { width: 100%; height: auto; border-radius: 18px; }
.color-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 16px; }
.color-cards article { background: var(--white); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.color-cards h3 { margin: 0 0 6px; font-size: 18px; color: var(--red-deep); }
.color-cards p { margin: 0 0 8px; color: var(--muted); }
.color-cards .feel { color: var(--ink); font-weight: 800; }
.jump-down { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--red-deep); font-weight: 800; text-decoration: none; }
.shop-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; list-style: none; margin: 18px 0 0; padding: 14px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.hero .shop-links { margin-top: 14px; }
.shop-links a { display: flex; gap: 8px; align-items: center; color: var(--red-deep); font-weight: 800; font-size: 15px; line-height: 1.3; text-decoration: none; }
.shop-links a::before {
    content: "";
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background-color: #f6f1ec;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}
.shop-links a.map::before {
    background-color: #fde8e6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23EA4335' d='M12 1.8A7.2 7.2 0 0 0 4.8 9c0 5.4 7.2 13.2 7.2 13.2S19.2 14.4 19.2 9A7.2 7.2 0 0 0 12 1.8zm0 9.7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.shop-links a.tiktok::before {
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325F4EE' d='M14.2 3h2.1a5.2 5.2 0 0 0 3.7 3.6v2.2a7.3 7.3 0 0 1-3.7-1.1v6.7a5.6 5.6 0 1 1-5.6-5.6c.3 0 .6 0 .9.1v2.4a3.2 3.2 0 1 0 2.3 3.1V3z'/%3E%3Cpath fill='%23FE2C55' d='M15 3h2.1a5.2 5.2 0 0 0 3.7 3.6v2.2a7.3 7.3 0 0 1-3.7-1.1v6.7a5.6 5.6 0 1 1-5.6-5.6c.3 0 .6 0 .9.1v2.4a3.2 3.2 0 1 0 2.3 3.1V3z'/%3E%3Cpath fill='%23fff' d='M14.6 3h2.1a5.2 5.2 0 0 0 3.7 3.6v2.2a7.3 7.3 0 0 1-3.7-1.1v6.7a5.6 5.6 0 1 1-5.6-5.6c.3 0 .6 0 .9.1v2.4a3.2 3.2 0 1 0 2.3 3.1V3z'/%3E%3C/svg%3E");
}
.shop-links a.youtube::before {
    background-color: #fff;
    background-size: 24px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath fill='%23FF0033' d='M23.5 2.8A3 3 0 0 0 21.4.7C19.5.2 12 .2 12 .2S4.5.2 2.6.7A3 3 0 0 0 .5 2.8 31 31 0 0 0 0 9a31 31 0 0 0 .5 6.2 3 3 0 0 0 2.1 2.1C4.5 17.8 12 17.8 12 17.8s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 9a31 31 0 0 0-.5-6.2z'/%3E%3Cpath fill='%23fff' d='M9.6 12.8V5.2L16 9l-6.4 3.8z'/%3E%3C/svg%3E");
}
.shop-links a.shopee::before {
    background-color: #fff1ec;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23EE4D2D' d='M7 7V6a5 5 0 0 1 10 0v1h3.1a1 1 0 0 1 1 1.1l-1.3 12a1.2 1.2 0 0 1-1.2 1H5.4a1.2 1.2 0 0 1-1.2-1L2.9 8.1A1 1 0 0 1 3.9 7H7zm2 0h6V6a3 3 0 0 0-6 0v1z'/%3E%3C/svg%3E");
}
.shop-links a.lazada::before {
    background-color: #0f146d;
    background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F57224' d='M6.5 5h4.2v9.2H18V18H6.5V5z'/%3E%3C/svg%3E");
}
.jump-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; list-style: none; margin: 22px 0 8px; padding: 16px 18px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.jump-list a { display: flex; gap: 8px; align-items: flex-start; color: var(--red-deep); font-weight: 800; text-decoration: none; }
.jump-list a::before { content: "↓"; color: var(--red); }
.jump-list a.ext::before { content: "↗"; }
.catalog-grid a, #size-cards, .anchor { scroll-margin-top: 96px; }
.to-top { position: fixed; right: 14px; bottom: calc(var(--line-height-dock) + 14px); z-index: 7; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 22px; line-height: 1; box-shadow: 0 8px 20px rgba(80, 0, 10, .28); }
.to-top::before { content: "↑"; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
#prepare .step-list { grid-template-columns: repeat(2, 1fr); }
.step-list li { background: var(--white); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.step-list strong, .step-list span { display: block; }
.step-list strong::before { counter-increment: step; content: counter(step) ". "; color: var(--red); }
.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.explain article { background: var(--white); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.explain strong { display: block; color: var(--red-deep); font-size: 20px; margin-bottom: 6px; }
.explain span { color: var(--muted); }
.color-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: 8px 0 16px; padding: 0; list-style: none; }
.color-notes li { color: var(--muted); }
.color-notes b { color: var(--ink); }
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reason { background: var(--white); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.reason strong { display: block; color: var(--red-deep); font-size: 20px; margin-bottom: 6px; }
.reason span { color: var(--muted); }
.guide { background: var(--white); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.contact-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    min-height: 0;
    padding: 16px;
    border: 1px solid #f0e0dc;
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(70, 10, 16, 0.06);
    transition: transform .16s ease, box-shadow .16s ease;
}
.contact-card::before { grid-column: 1; grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 16px; background-size: 26px; }
.contact-card span { grid-column: 2; }
.contact-card strong { grid-column: 2; }
.contact-card em { grid-column: 2; }
.contact-card::after {
    grid-column: 3;
    grid-row: 1 / span 3;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}
.card-line {
    grid-template-columns: 60px 1fr auto;
    background: #06c755;
    border-color: #049447;
    padding: 22px 18px;
    box-shadow: 0 16px 32px rgba(4, 120, 40, 0.28);
    animation: line-glow 2.4s ease-in-out infinite;
}
.card-line span, .card-line strong, .card-line em { color: #052b12; }
.card-line strong { font-size: 26px; }
.card-line::before { width: 60px; height: 60px; background-color: #049447; background-size: 30px; }
.card-line::after { content: "แอดไลน์"; background: #083018; color: #fff; font-size: 16px; padding: 12px 16px; }
.card-call { background: var(--red); border-color: var(--red-deep); }
.card-call span, .card-call em { color: #ffe8e4; }
.card-call strong { color: #fff; }
.card-call::before { background-color: #8d1016; }
.card-call::after { content: "โทรออก"; background: #fff; color: var(--red-deep); }
.card-fb::after { content: "เปิดแชท"; background: #e8f1ff; color: #0b57d0; }
.contact-card span { font-size: 13px; font-weight: 700; color: var(--muted); }
.contact-card strong { margin: 0; font-size: 22px; line-height: 1.3; color: var(--ink); }
.contact-card em { font-style: normal; font-size: 14px; color: var(--muted); }
.contact-card.card-line span,
.contact-card.card-line strong,
.contact-card.card-line em { color: #052b12; }
.contact-card.card-call span,
.contact-card.card-call em { color: #ffe8e4; }
.contact-card.card-call strong { color: #fff; }
.contact-card:hover { box-shadow: 0 14px 30px rgba(70, 10, 16, 0.1); }
.site-foot { background: var(--red-ink); color: #ffe8df; padding: 36px 0 18px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 20px; }
.site-foot a { color: var(--gold); }
.site-foot p { margin: 8px 0 0; }
.legal { text-align: center; color: #e7c2b8; font-size: 14px; }
.dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: 1.55fr 0.85fr 0.85fr;
    min-height: var(--line-height-dock);
    background: var(--white);
    border-top: 1px solid #f0e0dc;
    box-shadow: 0 -10px 30px rgba(60, 0, 8, 0.08);
}
.dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 6px 10px;
    font-weight: 800;
    color: var(--ink);
}
.dock a::before { width: 28px; height: 28px; border-radius: 50%; background-size: 15px; }
.dock-line { background: #06c755; color: #083018; animation: line-glow 2.4s ease-in-out infinite; }
.dock-line::before { width: 34px; height: 34px; background-color: #049447; background-size: 18px; }
.dock-line span { font-size: 18px; }
.dock-call { background: var(--red); color: #fff; }
.dock-call::before { background-color: #8d1016; }
.dock-fb { background: var(--white); }
.dock span { font-size: 16px; line-height: 1.2; }
.dock small { font-size: 12px; font-weight: 700; color: inherit; opacity: 0.8; }
.dock-call small { color: #ffe8e4; opacity: 1; }
.dock-fb small { color: var(--muted); opacity: 1; }
.page-fallback { padding: 48px 0 24px; }
.page-fallback h1 { font-size: 36px; }


@media (max-width: 1200px) {
    .head-actions { display: none; }
    .hero-grid, .about-grid, .foot-grid, .band-inner { grid-template-columns: 1fr; }
    .band-inner { display: grid; }
    .hero h1 { font-size: clamp(30px, 4vw, 40px); }
    .trust-row { grid-template-columns: 1fr 1fr; }
    .trust-row strong { font-size: 18px; }
    .model-grid { grid-template-columns: 1fr 1fr; }
    .step-list, #prepare .step-list { grid-template-columns: 1fr 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-grid a {
        aspect-ratio: auto;
        height: auto;
        padding: 12px 12px 56px;
    }
    .catalog-grid img {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .catalog-grid span { bottom: 14px; }
    .section { padding: 48px 0; }
}

@media (max-width: 1100px) {
    .catalog-grid.review-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .explain, .reason-grid, .color-cards, .jump-list, .catalog-grid.review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .site-nav { display: none; }
    .model-grid, .step-list, #prepare .step-list, .swatches, .color-notes, .trust-row { grid-template-columns: 1fr; }
    .trust-row p { text-align: left; padding: 14px 16px; }
    .hero { padding-top: 28px; }
    .hero h1 { font-size: 28px; }
    .hero-photo { margin-top: 8px; }
    .topbar { font-size: 12.5px; padding: 7px 12px; line-height: 1.45; }
    .btn strong, .btn-call strong, .btn-fb strong { font-size: 18px; }
    .btn-line strong, .card-line strong { font-size: 22px; }
    .dock-line span { font-size: 16px; }
    .contact-card { grid-template-columns: 52px 1fr; }
    .contact-card::after { display: none; }
    .section { padding: 36px 0; }
    .dock span { font-size: 14px; }
    .dock small { font-size: 11px; }
}

@media (max-width: 400px) {
    :root { --line-height-dock: 84px; }
    .dock small { display: none; }
    .dock-line small { display: block; font-size: 11px; line-height: 1.15; text-align: center; }
    .dock span { font-size: 13px; line-height: 1.15; }
    .topbar { font-size: 11.5px; padding: 6px 10px; }
    .wrap { width: min(1120px, calc(100% - 20px)); }
}

@media (max-height: 500px) {
    .topbar { padding: 4px 10px; font-size: 12px; }
    .site-head { padding: 4px 12px; }
    .brand-logo { width: 42px; }
    .hero { padding: 8px 0 16px; }
    .lead { margin-bottom: 10px; }
    .hero h1 { font-size: 26px; }
    :root { --line-height-dock: 56px; }
    .dock small { display: none; }
    .dock a { padding: 4px 4px 6px; }
    .dock a::before { width: 22px; height: 22px; background-size: 12px; }
    .dock span { font-size: 13px; }
}

@keyframes line-glow {
    0%, 100% { box-shadow: 0 12px 24px rgba(6, 199, 85, 0.38); }
    50% { box-shadow: 0 16px 34px rgba(6, 199, 85, 0.62), 0 0 0 6px rgba(6, 199, 85, 0.16); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pill:hover, .btn:hover, .contact-card:hover, .card:hover { transform: none; }
    .btn-line, .card-line, .dock-line { animation: none; }
}
/* line button is the primary action */
