* { box-sizing: border-box; }
html { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; color: #222; background: #f5f5f0; font-family: Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: 92%; max-width: 1100px; margin: auto; }
header { padding: 18px 0; color: white; background: #174d38; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 22px; font-weight: bold; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a:hover { color: #f0c14b; }
.hero { padding: 70px 0; color: white; background: #286c4e; }
.hero-slider { position: relative; min-height: 350px; overflow: hidden; background: #286c4e; }
.slide { display: none; min-height: 350px; padding: 70px 0; background-position: center; background-repeat: no-repeat; background-size: contain; }
.slide.active { display: block; }
.slider-button { position: absolute; z-index: 2; top: 50%; border: 0; padding: 10px 14px; color: white; background: rgba(0, 0, 0, .35); cursor: pointer; font-size: 24px; transform: translateY(-50%); }
.slider-button:hover { background: rgba(0, 0, 0, .65); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots { position: absolute; z-index: 2; bottom: 20px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: white; opacity: .5; cursor: pointer; }
.slider-dot.active { opacity: 1; }
.hero h1 { max-width: 600px; margin: 0 0 15px; font-size: 42px; line-height: 1.3; }
.hero p { max-width: 760px; line-height: 1.7; }
.button { display: inline-block; border: 0; padding: 11px 16px; color: #222; background: #f0c14b; cursor: pointer; font-size: 15px; }
main { padding: 40px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.section-title h2 { margin: 0; color: #174d38; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { overflow: hidden; background: white; border: 1px solid #ddd; cursor: pointer; }
.product:hover { box-shadow: 0 10px 22px rgba(23, 77, 56, .12); }
.product-image { position: relative; }
.product-badge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 5px 10px; color: #fff; background: #d63b3b; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.product img { display: block; width: 100%; height: auto; object-fit: contain; background: #f3f3ee; }
.reserved .product-image::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: white; background: rgba(23, 77, 56, .62); content: 'ติดจอง'; font-size: 24px; font-weight: bold; }
.product .button:disabled { color: #666; background: #d8d8d2; cursor: not-allowed; }
.product-detail-shell { padding: 30px 20px 60px; }
.product-detail-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.detail-gallery { display: grid; gap: 12px; }
.detail-main-image { overflow: hidden; background: #f2f2ee; border: 1px solid #ddd; }
.detail-main-image img { display: block; width: 100%; height: 420px; object-fit: contain; }
.detail-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-thumb { overflow: hidden; background: #f2f2ee; border: 1px solid #ddd; cursor: pointer; }
.detail-thumb img { display: block; width: 100%; height: 90px; object-fit: contain; }
.detail-info { padding: 12px 0; }
.detail-badge { display: inline-block; margin-bottom: 10px; padding: 6px 12px; color: #fff; background: #d63b3b; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.detail-info h1 { margin: 0 0 14px; color: #174d38; font-size: 34px; }
.detail-subtitle { margin: 0 0 18px; color: #666; font-size: 16px; }
.detail-price-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.detail-original-price { position: relative; display: inline-block; color: #7a7a7a; font-size: 18px; font-weight: 700; }
.detail-original-price::after { position: absolute; top: 50%; left: -8%; width: 116%; height: 3px; background: #d63b3b; content: ''; transform: translateY(-50%) rotate(-22deg); }
.detail-sale-price { color: #b3372b; font-size: 32px; font-weight: 800; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.detail-actions .button { width: auto; }
.secondary-button { display: inline-block; padding: 11px 18px; color: #174d38; background: #eef2ee; border: 1px solid #d1d8d2; font-weight: 700; }
.detail-note { margin: 0 0 20px; color: #555; line-height: 1.8; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.spec-list li { padding: 12px; background: #f8f7f3; border: 1px solid #e1e1dd; }
.spec-list strong { display: block; margin-bottom: 4px; color: #174d38; }
@media (max-width: 800px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .detail-main-image img { height: 340px; }
}
.product-content { padding: 15px; }
.product h3 { margin: 0 0 8px; color: #174d38; font-size: 18px; }
.product p { min-height: 48px; margin: 0 0 12px; color: #666; font-size: 14px; line-height: 1.6; }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.price-value, .sale-price { color: #b3372b; font-size: 20px; font-weight: bold; }
.original-price { position: relative; display: inline-block; color: #7a7a7a; font-size: 17px; font-weight: 700; text-decoration: none; }
.original-price::after { position: absolute; top: 50%; left: -8%; width: 116%; height: 3px; background: #d63b3b; content: ''; transform: translateY(-50%) rotate(-22deg); transform-origin: center; }
.price-sale .sale-price { font-size: 24px; }
.product .button { width: 100%; }
.cart-link { padding: 8px 12px; color: #222; background: #f0c14b; }
.hidden { display: none; }
.cart-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .55); }
.cart { position: fixed; top: 50%; left: 50%; z-index: 11; width: min(92%, 520px); max-height: 85vh; overflow: auto; margin: 0; padding: 20px; background: white; border: 1px solid #ddd; transform: translate(-50%, -50%); }
.cart-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.cart h2 { margin-top: 0; color: #174d38; }
.close-cart { border: 0; color: #666; background: transparent; cursor: pointer; font-size: 24px; }
.cart-item { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-item button { border: 0; color: #b3372b; background: none; cursor: pointer; }
.cart-total { margin: 18px 0; font-weight: bold; }
.empty-cart, .empty { color: #666; }
.line-qr-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(13, 30, 21, .68); }
.line-qr-dialog { position: fixed; top: 50%; left: 50%; z-index: 21; width: min(92vw, 430px); max-height: 92vh; overflow-y: auto; padding: 24px; background: #fff; border-top: 4px solid #06c755; box-shadow: 0 20px 70px rgba(0, 0, 0, .24); transform: translate(-50%, -50%); }
.line-qr-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.line-qr-eyebrow { margin: 0 0 6px; color: #078b42; font-size: 11px; font-weight: 800; }
.line-qr-heading h2 { margin: 0; color: #174d38; font-size: 21px; }
.line-qr-close { width: 36px; height: 36px; border: 0; color: #536157; background: #f0f3f0; cursor: pointer; font-size: 25px; line-height: 1; }
.line-qr-dialog > p { margin: 13px 0 17px; color: #5f6d63; font-size: 14px; line-height: 1.6; }
.line-qr-image { display: block; width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto 18px; padding: 8px; border: 1px solid #e4e9e4; }
.line-qr-fallback { color: #a33b2d; font-size: 13px; text-align: center; }
.line-qr-id { margin: 0 0 14px; color: #5f6d63; font-size: 13px; text-align: center; }
.line-qr-id strong { color: #174d38; }
.line-qr-open-link { display: block; width: fit-content; margin: 0 auto; color: #fff; background: #06a64f; font-weight: 700; }
.video-shell { max-width: 1000px; padding: 42px 0 64px; }
.video-heading { margin-bottom: 24px; }
.video-kicker { margin: 0 0 6px; color: #9a7728; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.video-heading h1 { margin: 0; color: #174d38; font-size: 32px; }
.video-player-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #18271e; }
.video-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { margin: 9px 0 0; color: #6b756d; font-size: 12px; }
.video-fallback a { color: #174d38; font-weight: 700; text-decoration: underline; }
.video-listing { padding-top: 26px; }
.video-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #dce3dc; }
.video-list-heading h2 { margin: 0; color: #174d38; font-size: 20px; }
.video-list-heading span { color: #788179; font-size: 12px; }
.video-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 230px)); gap: 14px; padding-top: 16px; }
.video-thumbnail { display: grid; align-content: start; gap: 7px; padding: 0 0 10px; color: #26372c; background: #fff; border: 1px solid #dfe5df; cursor: pointer; text-align: left; }
.video-thumbnail.active { border-color: #286c4e; box-shadow: 0 0 0 2px rgba(40, 108, 78, .13); }
.video-thumbnail-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #18271e; }
.video-thumbnail-watermark { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; color: rgba(215, 188, 131, .82); background: radial-gradient(circle at center, rgba(71, 97, 76, .45), transparent 58%), linear-gradient(140deg, #142b22, #263d30); font-family: var(--body-font); font-size: 17px; font-weight: 700; }
.video-thumbnail-image img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.video-thumbnail-play { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding-left: 2px; color: #fff; background: rgba(6, 167, 79, .94); border-radius: 50%; font-size: 14px; transform: translate(-50%, -50%); }
.video-thumbnail-title { padding: 2px 10px 0; font-size: 13px; font-weight: 700; }
.video-thumbnail-source { padding: 0 10px; color: #718177; font-size: 11px; }
.about { padding: 40px 0; background: #e7eadf; }
.about h2 { color: #174d38; }
.about p { max-width: 700px; line-height: 1.8; }
footer { margin-top: auto; padding: 35px 0; color: white; background: #174d38; }
footer p { line-height: 1.8; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; }
.contact a { padding: 9px 12px; border: 1px solid #8cad9a; }
.intro { max-width: 900px; margin-bottom: 36px; }
.intro h2, .section h2 { margin: 0 0 15px; color: #174d38; }
.intro p, .section p { line-height: 1.9; }
.vision { margin: 25px 0 40px; padding: 24px 28px; border-left: 5px solid #f0c14b; background: white; }
.vision h2 { margin-top: 0; color: #174d38; }
blockquote { margin: 0 0 12px; color: #174d38; font-size: 21px; font-weight: bold; line-height: 1.7; }
.standards, .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.standards { margin: 25px 0 42px; }
.standard, .service, .contact-box, .box { padding: 22px; background: white; border: 1px solid #ddd; }
.standard h3, .service h3 { margin: 0 0 10px; color: #174d38; font-size: 19px; }
.standard p, .service p { margin: 0; line-height: 1.8; }
.section { margin-top: 38px; }
.services { margin-top: 20px; }
.service-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 13px; color: white; background: #286c4e; font-weight: bold; }
.contact-box { margin-top: 20px; }
.contact-box ul { margin: 0; padding-left: 22px; line-height: 2; }
.contact-box a, .back { color: #174d38; font-weight: bold; }
.checkout-page main.container { max-width: 850px; }
.checkout-page main { padding: 40px 0; }
.checkout-page h1, .checkout-page h2 { color: #174d38; }
.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; margin: 13px 0 6px; font-weight: bold; }
input, textarea { width: 100%; padding: 11px; border: 1px solid #ccc; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
.order-item { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #eee; }
.order-item label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: normal; }
.order-item input[type="checkbox"] { width: auto; }
.remove-item { margin-left: 10px; padding: 3px 7px; border: 0; color: #b3372b; background: transparent; cursor: pointer; }
.total { margin-top: 18px; font-size: 20px; font-weight: bold; }
.checkout-page .layout .button { width: 100%; margin-top: 20px; padding: 12px; font: inherit; font-weight: bold; text-align: center; }
.account-page { background: #f1f4ef; }
.account-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); max-width: 1040px; min-height: 590px; padding: 48px 0 60px; }
.account-visual { position: relative; min-height: 540px; overflow: hidden; background: #174d38; }
.account-visual::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 35, 23, .82), rgba(12, 35, 23, .03) 72%); content: ''; }
.account-visual > img { display: block; width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.account-visual-copy { position: absolute; right: 32px; bottom: 34px; left: 32px; z-index: 1; color: #fff; }
.account-visual-copy > span { color: #f0c14b; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.account-visual-copy h1 { margin: 10px 0; font-size: 36px; }
.account-visual-copy p { max-width: 380px; margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.8; }
.account-panel { display: flex; flex-direction: column; justify-content: center; padding: 38px; background: #fff; border: 1px solid #dfe5df; }
.account-back { align-self: flex-start; margin-bottom: 40px; color: #52675a; font-size: 13px; }
.account-kicker { margin: 0 0 8px; color: #94752c; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.account-panel h2 { margin: 0 0 5px; color: #174d38; font-size: 29px; }
.account-intro { margin: 0; color: #6c756e; font-size: 14px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 25px 0 20px; border-bottom: 1px solid #dfe5df; }
.account-tab { padding: 12px 8px; color: #788179; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.account-tab.active { color: #174d38; border-bottom-color: #286c4e; }
.account-form { display: grid; gap: 14px; }
.account-field label { display: block; margin: 0 0 7px; color: #36463a; font-size: 13px; font-weight: 700; }
.account-field input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #d6ddd6; outline: none; }
.account-field input:focus { border-color: #286c4e; box-shadow: 0 0 0 3px rgba(40, 108, 78, .11); }
.account-forgot { justify-self: end; color: #286c4e; font-size: 12px; }
.account-submit { width: 100%; min-height: 46px; color: #fff; background: #174d38; font-weight: 700; }
.account-submit:hover { background: #286c4e; }
.account-feedback { min-height: 18px; margin: -5px 0 0; color: #286c4e; font-size: 12px; }
.account-legal { margin: 24px 0 0; padding-top: 15px; color: #858d86; border-top: 1px solid #e7ebe7; font-size: 11px; line-height: 1.6; }
.payment-shell { max-width: 1050px; padding: 42px 0 64px; }
.payment-heading { margin-bottom: 24px; }
.payment-heading h1 { margin: 5px 0 8px; color: #174d38; font-size: 34px; }
.payment-heading > p:last-child { margin: 0; color: #647168; }
.payment-eyebrow { margin: 0; color: #718177; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.payment-panel { padding: 22px; background: #fff; border: 1px solid #dfe5df; }
.payment-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.payment-panel-heading > div { display: flex; align-items: center; gap: 10px; }
.payment-panel-heading h2 { margin: 0; color: #174d38; font-size: 18px; }
.payment-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff; background: #286c4e; font-size: 12px; font-weight: 700; }
.demo-label { padding: 5px 8px; color: #79591b; background: #fff2c9; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.qr-frame { display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; padding: 16px; background: #fff; border: 1px solid #e0e5e0; }
.demo-qr-grid { display: grid; grid-template-columns: repeat(29, 1fr); grid-template-rows: repeat(29, 1fr); width: 100%; height: 100%; gap: 1px; padding: 4px; background: #fff; }
.demo-qr-grid span { background: #fff; }
.demo-qr-grid .is-dark { background: #163e30; }
.qr-caption { margin: 10px 0 22px; color: #7c857e; font-size: 12px; text-align: center; }
.payment-amount-block { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid #e8ece8; }
.payment-amount-block span, .payment-recipient { color: #69736c; font-size: 14px; }
.payment-amount-block strong { color: #b3372b; font-size: 30px; }
.payment-recipient { margin: 12px 0 0; }
.payment-recipient strong { margin-left: 5px; color: #263b30; }
.payment-side { display: grid; gap: 18px; }
.payment-instructions { display: grid; gap: 15px; padding: 0; margin: 0; list-style: none; }
.payment-instructions li { display: flex; align-items: flex-start; gap: 12px; }
.payment-instructions li > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; color: #174d38; background: #edf3ed; font-size: 12px; font-weight: 700; }
.payment-instructions p { margin: 2px 0 0; color: #46534a; font-size: 14px; line-height: 1.6; }
.payment-prototype-note { margin-top: 18px; padding: 10px 12px; color: #79591b; background: #fff8e5; font-size: 12px; line-height: 1.5; }
.payment-order-items { display: grid; gap: 10px; }
.payment-order-item, .payment-summary-total { display: flex; justify-content: space-between; gap: 12px; color: #46534a; font-size: 14px; }
.payment-order-item strong { color: #263b30; white-space: nowrap; }
.payment-summary-total { padding-top: 13px; margin-top: 13px; border-top: 1px solid #e8ece8; font-weight: 700; }
.payment-summary-total strong { color: #b3372b; }
.payment-waiting { display: grid; grid-template-columns: 1fr minmax(120px, 220px) auto; align-items: center; gap: 18px; padding: 17px 20px; margin-top: 18px; background: #eaf0e9; border: 1px solid #dbe5dc; }
.payment-waiting-copy { display: flex; align-items: center; gap: 12px; }
.payment-waiting-copy > div { display: grid; gap: 3px; }
.payment-waiting-copy strong { color: #174d38; font-size: 14px; }
.payment-waiting-copy span:last-child { color: #68776c; font-size: 12px; }
.waiting-spinner { width: 22px; height: 22px; border: 2px solid #b7c9ba; border-top-color: #286c4e; border-radius: 50%; animation: payment-spin 1s linear infinite; }
.payment-progress-track { height: 6px; overflow: hidden; background: #d1ddd2; }
.payment-progress-track span { display: block; width: 4%; height: 100%; background: #286c4e; transition: width .5s ease; }
.payment-confirm-button { color: #fff; background: #286c4e; font-size: 13px; }
.payment-confirm-button:disabled { opacity: .65; cursor: wait; }
.payment-empty { padding: 35px; background: #fff; border: 1px solid #dfe5df; text-align: center; }
.payment-empty h2 { margin-top: 0; color: #174d38; }
.payment-success { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(17, 34, 25, .62); }
.payment-success.hidden { display: none; }
.success-dialog { width: min(100%, 420px); padding: 35px 28px; background: #fff; text-align: center; box-shadow: 0 22px 70px rgba(0, 0, 0, .22); animation: success-enter .25s ease-out; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; color: #fff; background: #286c4e; border-radius: 50%; font-size: 28px; }
.success-dialog h2 { margin: 8px 0; color: #174d38; font-size: 26px; }
.success-dialog > p:not(.payment-eyebrow) { margin: 0 0 23px; color: #68736b; }
.success-dialog .button { color: #fff; background: #286c4e; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
@keyframes success-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .standards, .services { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .layout { grid-template-columns: 1fr; }
  .payment-layout { grid-template-columns: 1fr; }
  .payment-waiting { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .header-inner, .section-title { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; gap: 12px; }
  nav a { line-height: 1.4; }
  .hero { padding: 55px 0; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .slide { min-height: 300px; padding: 48px 0 70px; }
  .slide h1 { max-width: calc(100% - 60px); font-size: 32px; }
  .slide p { max-width: calc(100% - 30px); }
  .slider-button { padding: 8px 11px; font-size: 20px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slider-dots { bottom: 14px; }
  .products { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: stretch; }
  .contact a { text-align: center; }
  .order-item { align-items: flex-start; flex-direction: column; gap: 6px; }
  .line-qr-dialog { padding: 19px; }
}

:root {
  --forest: #142b22;
  --forest-soft: #1d3b2e;
  --moss: #47614c;
  --brass: #b89455;
  --brass-light: #d7bc83;
  --parchment: #f2eee4;
  --paper: #fbf9f4;
  --ink: #21271f;
  --muted: #77796f;
  --line: rgba(37, 50, 38, .16);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body-font: 'Noto Sans Thai', sans-serif;
}

html { scroll-behavior: smooth; background: var(--parchment); }
body { color: var(--ink); background: var(--paper); font-family: var(--body-font); font-size: 15px; }
button, input, textarea { font-family: var(--body-font); }
.container { width: min(90%, 1320px); }

body > header, header:not(.video-heading) { color: #f9f6ed; }
body > header { position: relative; z-index: 5; padding: 15px 0; background: var(--forest); border-bottom: 1px solid rgba(215, 188, 131, .28); }
.header-inner { gap: 38px; }
.logo { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 13px; color: #fbf8ef; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--brass-light); border: 1px solid rgba(215, 188, 131, .7); border-radius: 50%; font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1; }
.logo-copy { display: grid; gap: 1px; }
.logo-copy strong { color: #fbf8ef; font-family: var(--body-font); font-size: 17px; font-weight: 600; white-space: nowrap; }
.logo-copy small { color: var(--brass-light); font-size: 8px; font-weight: 500; letter-spacing: .12em; white-space: nowrap; }
nav { align-items: center; justify-content: flex-end; gap: clamp(12px, 1.55vw, 25px); }
nav a { color: rgba(251, 248, 239, .84); font-size: 12px; font-weight: 500; white-space: nowrap; transition: color .2s ease; }
nav a:hover { color: var(--brass-light); }
nav .cart-link { padding: 10px 13px; color: var(--forest); background: var(--brass-light); border: 1px solid var(--brass-light); font-size: 12px; font-weight: 600; }
nav .cart-link:hover { color: var(--forest); background: #e4d0a5; }

.hero-slider { min-height: 590px; background: var(--forest); }
.slide { position: relative; min-height: 590px; padding: 0; overflow: hidden; background-color: var(--forest); background-position: center 43%; background-repeat: no-repeat; background-size: cover; }
.slide::before { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(11, 26, 19, .79) 0%, rgba(13, 28, 21, .52) 41%, rgba(13, 28, 21, .08) 100%), linear-gradient(0deg, rgba(11, 26, 19, .52), transparent 48%); content: ''; }
.slide > .container { position: relative; z-index: 1; display: flex; min-height: 590px; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 26px; padding-bottom: 46px; color: #fffdf7; }
.slide-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; color: var(--brass-light); font-size: 10px; font-weight: 600; letter-spacing: .17em; }
.slide-kicker span { display: block; width: 35px; height: 1px; background: var(--brass-light); }
.slide h1 { max-width: 740px; margin: 0 0 15px; color: #fffdf7; font-family: var(--display); font-size: 72px; font-weight: 600; line-height: .98; }
.slide p:not(.slide-kicker) { max-width: 540px; margin: 0 0 26px; color: rgba(255, 253, 247, .86); font-size: 15px; line-height: 1.9; }
.slide .button, .button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 12px 22px; color: var(--forest); background: var(--brass-light); border: 1px solid var(--brass-light); border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: .02em; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.slide .button:hover, .button:hover { color: #fffdf7; background: var(--forest-soft); border-color: var(--brass-light); transform: translateY(-1px); }
.slider-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #fffdf7; background: rgba(17, 34, 26, .35); border: 1px solid rgba(255, 255, 255, .48); border-radius: 50%; font-size: 19px; transition: background .2s ease; }
.slider-button:hover { background: var(--brass); }
.slider-prev { left: 28px; }
.slider-next { right: 28px; }
.slider-dots { bottom: 24px; gap: 9px; }
.slider-dot { width: 7px; height: 7px; background: #fffdf7; border: 0; }
.slider-dot.active { width: 24px; border-radius: 5px; background: var(--brass-light); opacity: 1; }

.farm-signature { color: #f7f3e8; background: var(--forest); border-top: 1px solid rgba(215, 188, 131, .3); border-bottom: 1px solid rgba(215, 188, 131, .3); }
.farm-signature-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 0; }
.farm-signature-inner > div { display: flex; align-items: center; gap: 15px; padding: 3px 25px; border-right: 1px solid rgba(215, 188, 131, .3); }
.farm-signature-inner > div:first-child { padding-left: 0; }
.farm-signature-inner > div:last-child { border-right: 0; }
.signature-index { color: var(--brass-light); font-family: var(--display); font-size: 22px; }
.farm-signature-inner strong, .farm-signature-inner small { display: block; }
.farm-signature-inner strong { color: #fbf8ef; font-size: 12px; font-weight: 600; }
.farm-signature-inner small { margin-top: 3px; color: rgba(251, 248, 239, .62); font-size: 10px; }

main { padding: 66px 0; }
#products.container { max-width: 1320px; }
.section-title { align-items: flex-end; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-title > div { display: grid; gap: 4px; }
.section-kicker { margin: 0; color: var(--brass); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.section-title h2 { margin: 0; color: var(--forest); font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; }
.selection-count { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); font-size: 11px; }
.selection-dot { width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
.catalog-empty { grid-column: 1 / -1; padding: 32px 18px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); font-size: 13px; text-align: center; }
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product { position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(39, 51, 39, .13); border-radius: 2px; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.product:hover { border-color: rgba(184, 148, 85, .65); box-shadow: 0 14px 36px rgba(20, 43, 34, .13); transform: translateY(-4px); }
.product-image { position: relative; overflow: hidden; aspect-ratio: 4 / 4.8; background: #ded8c9; }
.product > img { display: block; width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; background: #ded8c9; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .65, .25, 1); }
.product:hover .product-image img, .product:hover > img { transform: scale(1.035); }
.product-badge { position: absolute; top: 13px; left: 13px; z-index: 2; padding: 7px 9px; color: #f9f4e9; background: var(--forest); border: 1px solid rgba(215, 188, 131, .7); border-radius: 0; font-size: 8px; font-weight: 600; letter-spacing: .13em; }
.reserved .product-image::after { background: linear-gradient(0deg, rgba(20, 43, 34, .78), rgba(20, 43, 34, .08) 74%); content: 'จองแล้ว'; font-family: var(--display); font-size: 36px; letter-spacing: .03em; }
.product-content { padding: 16px 17px 18px; }
.product h3 { margin: 0 0 6px; color: var(--forest); font-family: var(--body-font); font-size: 16px; font-weight: 600; }
.product p { min-height: 45px; margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.price { min-height: 29px; gap: 9px; margin-bottom: 13px; }
.price-value, .sale-price { color: #8e4738; font-family: var(--display); font-size: 25px; font-weight: 700; }
.price-sale .sale-price { color: #8e4738; font-size: 29px; }
.original-price { color: #88887e; font-family: var(--display); font-size: 20px; font-weight: 500; }
.original-price::after { height: 1px; background: #9f5746; }
.product .button { width: 100%; min-height: 41px; padding: 9px 12px; color: var(--forest); background: transparent; border-color: rgba(184, 148, 85, .8); font-size: 11px; }
.product .button:hover:not(:disabled) { color: #fffdf7; background: var(--forest); }
.product .button:disabled { color: #77796f; background: #e7e3d9; border-color: #e7e3d9; }

.product-detail-shell { max-width: 1240px; padding: 54px 0 84px; }
.product-detail-layout { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(34px, 6vw, 88px); }
.product-detail-layout.no-product-images { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.detail-gallery { gap: 12px; }
.detail-main-image { padding: 10px; background: #e7e1d4; border: 1px solid rgba(39, 51, 39, .16); }
.detail-main-image img { height: min(58vw, 620px); background: #e7e1d4; }
.detail-thumbs { gap: 9px; }
.detail-thumb { padding: 4px; background: #e7e1d4; border: 1px solid rgba(39, 51, 39, .15); }
.detail-thumb:hover { border-color: var(--brass); }
.detail-thumb img { height: 88px; background: #e7e1d4; }
.detail-info { padding: 26px 0; }
.detail-badge { padding: 0 0 7px; color: var(--brass); background: none; border-bottom: 1px solid var(--brass); border-radius: 0; font-size: 9px; letter-spacing: .15em; }
.detail-info h1 { margin: 7px 0 10px; color: var(--forest); font-family: var(--display); font-size: 53px; font-weight: 600; line-height: 1.02; }
.detail-subtitle { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.detail-price-row { gap: 13px; padding: 17px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-original-price { color: #8a887d; font-family: var(--display); font-size: 21px; }
.detail-original-price::after { height: 1px; }
.detail-sale-price { color: #8e4738; font-family: var(--display); font-size: 39px; font-weight: 700; }
.detail-actions { margin: 20px 0 25px; }
.detail-actions .button { min-width: 185px; }
.secondary-button { display: inline-flex; align-items: center; padding: 12px 15px; color: var(--forest); background: transparent; border: 1px solid var(--line); font-size: 12px; }
.secondary-button:hover { border-color: var(--brass); }
.detail-note { color: #53574e; font-size: 13px; line-height: 1.9; }
.spec-list { gap: 0 20px; border-top: 1px solid var(--line); }
.spec-list li { padding: 14px 0; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.spec-list strong { color: var(--brass); font-size: 10px; font-weight: 600; }

.video-shell { max-width: 1160px; padding: 52px 0 88px; }
.video-heading { margin-bottom: 23px; padding: 0; color: var(--ink); background: transparent; }
.video-kicker { color: var(--brass); font-size: 9px; letter-spacing: .18em; }
.video-heading h1 { color: var(--forest); font-family: var(--display); font-size: 48px; font-weight: 600; }
.video-player-shell { outline: 7px solid #e8e1d3; outline-offset: -7px; background: var(--forest); box-shadow: 0 20px 48px rgba(20, 43, 34, .12); }
.video-fallback { margin: 17px 0 0; color: var(--muted); font-size: 11px; }
.video-fallback a { color: var(--forest-soft); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.video-listing { padding-top: 42px; }
.video-list-heading { border-bottom-color: var(--line); }
.video-list-heading h2 { color: var(--forest); font-family: var(--display); font-size: 30px; font-weight: 600; }
.video-thumbnail { overflow: hidden; gap: 8px; padding: 0 0 13px; background: #fff; border-color: var(--line); border-radius: 2px; }
.video-thumbnail.active { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.video-thumbnail-play { background: rgba(20, 43, 34, .92); }
.video-thumbnail-title { color: var(--forest); font-size: 12px; }
.video-thumbnail-source { color: var(--brass); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.video-player-placeholder { display: grid; width: 100%; height: 100%; place-content: center; justify-items: center; gap: 16px; color: #f8f4e9; background: radial-gradient(circle at center, #334b3a, #142b22 70%); }
.video-player-placeholder strong { max-width: 90%; font-family: var(--display); font-size: 28px; font-weight: 600; text-align: center; }
.stream-shell { max-width: 1050px; }
.stream-list { border-top: 1px solid var(--line); }
.stream-link { display: grid; grid-template-columns: 40px 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 84px; padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.stream-link:hover { padding-left: 21px; background: #f1ecdf; }
.stream-index { color: var(--brass); font-family: var(--display); font-size: 21px; }
.stream-play { display: grid; place-items: center; width: 38px; height: 38px; padding-left: 2px; color: var(--brass-light); background: var(--forest); border-radius: 50%; font-size: 12px; }
.stream-name { color: var(--forest); font-family: var(--display); font-size: 24px; font-weight: 600; }
.stream-open { color: var(--muted); font-size: 10px; }
.stream-open span { margin-left: 8px; color: var(--brass); font-size: 16px; }

footer { padding: 55px 0; color: #f8f4e9; background: var(--forest); border-top: 1px solid rgba(184, 148, 85, .44); }
footer h2 { margin: 0 0 8px; color: #fbf8ef; font-family: var(--display); font-size: 35px; font-weight: 600; }
footer p { margin: 0 0 22px; color: rgba(251, 248, 239, .65); font-size: 12px; }
.contact a { padding: 9px 13px; color: #f7f2e5; border: 1px solid rgba(215, 188, 131, .4); font-size: 11px; transition: background .2s ease; }
.contact a:hover { background: var(--forest-soft); }
.admin-footer-link { display: inline-block; margin-top: 22px; color: rgba(248, 244, 233, .45); font-size: 9px; letter-spacing: .08em; }
.admin-footer-link:hover { color: var(--brass-light); }

.cart { padding: 28px; background: var(--paper); border: 1px solid rgba(184, 148, 85, .65); box-shadow: 0 25px 80px rgba(0, 0, 0, .28); }
.cart h2 { color: var(--forest); font-family: var(--display); font-size: 31px; font-weight: 600; }
.cart-total { color: var(--forest); font-family: var(--display); font-size: 22px; }
.cart > .button { width: 100%; }
.cart-item { padding: 13px 0; border-bottom-color: var(--line); font-size: 12px; }
.line-qr-dialog { border-top-color: #b89455; }
.line-qr-heading h2 { font-family: var(--display); font-weight: 600; }
.line-qr-open-link { color: #fff; background: #246545; border-color: #246545; }

.farm-signature-inner > div { min-width: 0; }
@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  nav { gap: 11px; }
  nav a { font-size: 10px; }
  .logo-copy strong { font-size: 15px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body > header { padding: 13px 0; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  nav { justify-content: flex-start; gap: 9px 17px; }
  nav a { font-size: 11px; }
  nav .cart-link { padding: 8px 10px; }
  .hero-slider, .slide, .slide > .container { min-height: 510px; }
  .slide { background-position: 57% center; }
  .slide::before { background: linear-gradient(90deg, rgba(11, 26, 19, .76), rgba(13, 28, 21, .32) 80%), linear-gradient(0deg, rgba(11, 26, 19, .55), transparent 60%); }
  .slide > .container { justify-content: flex-end; padding-bottom: 68px; }
  .slide h1 { max-width: 640px; font-size: 60px; }
  .farm-signature-inner { padding: 17px 0; }
  .farm-signature-inner > div { gap: 10px; padding: 3px 13px; }
  .farm-signature-inner strong { font-size: 10px; }
  .farm-signature-inner small { font-size: 9px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-main-image img { height: min(78vw, 560px); }
  .detail-info { padding: 8px 0; }
  .detail-info h1 { font-size: 46px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 34px); }
  .header-inner { gap: 11px; }
  .logo-mark { width: 37px; height: 37px; }
  nav { width: 100%; gap: 7px 14px; }
  nav a { font-size: 10px; }
  nav .cart-link { padding: 6px 8px; }
  .hero-slider, .slide, .slide > .container { min-height: 480px; }
  .slide { background-position: 58% center; }
  .slide > .container { padding-bottom: 59px; }
  .slide-kicker { margin-bottom: 12px; font-size: 8px; letter-spacing: .12em; }
  .slide h1 { max-width: 100%; margin-bottom: 12px; font-size: 47px; }
  .slide p:not(.slide-kicker) { max-width: 95%; margin-bottom: 19px; font-size: 12px; line-height: 1.75; }
  .slide .button { min-height: 42px; }
  .slider-button { top: 15px; width: 32px; height: 32px; font-size: 14px; transform: none; }
  .slider-prev { right: 55px; left: auto; }
  .slider-next { right: 16px; }
  .slider-dots { bottom: 19px; }
  .farm-signature-inner { grid-template-columns: 1fr; gap: 0; padding: 5px 0; }
  .farm-signature-inner > div, .farm-signature-inner > div:first-child { padding: 11px 0; border-right: 0; border-bottom: 1px solid rgba(215, 188, 131, .23); }
  .farm-signature-inner > div:last-child { border-bottom: 0; }
  .signature-index { width: 25px; font-size: 19px; }
  main { padding: 43px 0; }
  .section-title { align-items: flex-start; flex-direction: row; gap: 12px; margin-bottom: 18px; }
  .section-title h2 { font-size: 35px; }
  .selection-count { flex: 0 0 auto; padding: 7px 8px; font-size: 9px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-image, .product > img { aspect-ratio: 3 / 4; }
  .product-content { padding: 12px 11px 13px; }
  .product h3 { font-size: 13px; }
  .product p { min-height: 46px; font-size: 10px; }
  .product-badge { top: 8px; left: 8px; padding: 6px; font-size: 7px; }
  .price-value, .sale-price { font-size: 21px; }
  .price-sale .sale-price { font-size: 23px; }
  .original-price { font-size: 17px; }
  .product .button { min-height: 38px; padding: 7px 5px; font-size: 9px; }
  .video-shell { padding: 38px 0 58px; }
  .video-heading h1 { font-size: 39px; }
  .video-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .video-thumbnail-title { font-size: 10px; }
  .stream-link { grid-template-columns: 25px 34px minmax(0, 1fr); gap: 9px; padding: 12px 4px; }
  .stream-play { width: 31px; height: 31px; font-size: 10px; }
  .stream-name { font-size: 18px; }
  .stream-open { grid-column: 3; }
  .detail-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-thumb img { height: 65px; }
  .detail-info h1 { font-size: 39px; }
  .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { padding: 40px 0; }
}
