/*
Theme Name: TODA Storefront
Description: TODA HUB presentation, built on Storefront. Quotation remains in the existing TODA plugin.
Template: storefront
Version: 0.3.2
Text Domain: toda-storefront
*/
:root{--toda-ink:#111;--toda-bg:#fff;--toda-surface:#f1efeb;--toda-line:#d4d4d4;--toda-muted:#555;--toda-red:#fe0000;--toda-new:#ffe600;--toda-scrim:rgba(0,0,0,.3);--toda-font:'IBM Plex Sans Thai','Noto Sans Thai',Tahoma,sans-serif;--toda-mono:'IBM Plex Mono','IBM Plex Sans Thai',monospace;--toda-radius-pill:999px;--toda-radius-tile:8px;--toda-radius-thumb:6px;--toda-gutter:12px;--toda-max:1440px}
body.toda-build.toda-hub{--toda-ink:#111;--toda-muted:#555;--toda-line:#d4d4d4;font-family:var(--toda-font);font-size:16px;line-height:1.7;color:#111;background:#fff}
body.toda-build *,body.toda-build *:before,body.toda-build *:after{box-sizing:border-box}
body.toda-build h1,body.toda-build h2,body.toda-build h3{font-family:var(--toda-font);font-weight:600;color:inherit;letter-spacing:-.035em;line-height:1.25}
body.toda-build a{color:inherit}body.toda-build a:focus-visible,body.toda-build button:focus-visible,body.toda-build summary:focus-visible,body.toda-build input:focus-visible{outline:3px solid #3157b7;outline-offset:4px}
body.toda-build [hidden]{display:none!important}body.toda-build img{max-width:100%}
body.toda-build .site-header{position:sticky;top:0;z-index:100;background:#fff;padding:0!important;margin:0;border-bottom:1px solid #d4d4d4}
body.admin-bar.toda-build .site-header{top:32px}body.toda-build .site-header:before,body.toda-build .site-header:after{display:none}
body.toda-build .site-content>.col-full,body.toda-build .site-footer>.col-full{max-width:1440px;padding:0 24px;margin-left:auto;margin-right:auto}
body.toda-build.home .site-content>.col-full,body.toda-build .site-footer>.col-full{padding:0;max-width:1440px}
body.toda-build #primary.content-area{width:100%;float:none;margin:0}body.toda-build #main .hentry .entry-content{width:100%;max-width:none;float:none;margin:0}
body.toda-build.home #main,body.toda-build.home .site-main{padding:0;margin:0}body.toda-build.home .hentry{padding:0;margin:0}body.toda-build.home .entry-header,body.toda-build.home .storefront-breadcrumb{display:none}
body.toda-build .site-footer{background:#111;color:#fff;padding:0;margin-top:12px}body.toda-build .site-info{display:none}
.tb-skip{position:absolute;top:-100px;left:12px;background:white;padding:12px;z-index:500}.tb-skip:focus{top:8px}
.tb-header{max-width:1440px;margin:auto;min-height:88px;padding:18px 20px;display:flex;align-items:center;gap:20px}.tb-brand{display:flex;align-items:center;gap:6px;flex:none;text-decoration:none!important}.tb-brand img{width:auto;height:32px;object-fit:contain}.tb-brand span{font-family:var(--toda-mono);font-size:17px;font-weight:600;letter-spacing:-.06em}
.tb-desktop-nav{display:flex;gap:2px;align-items:center;justify-content:center;flex:1}.tb-desktop-nav>a,.tb-mega>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 11px;border:1px solid transparent;border-radius:999px;white-space:nowrap;font-size:14px;font-weight:500;text-decoration:none!important;cursor:pointer;list-style:none}
.tb-desktop-nav>a:hover,.tb-mega[open]>summary{background:#111;color:white}.tb-mega>summary::-webkit-details-marker,.tb-mobile-menu>summary::-webkit-details-marker{display:none}.tb-mega-panel{position:absolute;left:12px;right:12px;top:100%;padding:32px;background:#fff;border:1px solid #111;border-radius:0 0 8px 8px;box-shadow:0 20px 30px #0002}.tb-mega-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}.tb-mega h2{font-family:var(--toda-mono);font-size:15px;letter-spacing:0;line-height:1.5;margin:0 0 18px}.tb-mega a{display:flex;align-items:center;min-height:44px;text-decoration:none!important;font-size:15px}.tb-mega a:hover{text-decoration:underline!important}.tb-mega-bottom{display:flex;gap:30px;justify-content:space-between;border-top:1px solid #d4d4d4;margin-top:24px;padding-top:14px}
.tb-header-actions{display:flex;align-items:center;gap:8px;flex:none}.toda-build .tb-circle{width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid #111;border-radius:50%;background:#fff;color:#111;text-decoration:none!important;font-family:var(--toda-mono);font-size:23px;line-height:1;box-shadow:none;cursor:pointer}
.toda-build .tb-pill{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 20px;border:1px solid #111;border-radius:999px;background:transparent;color:#111;text-decoration:none!important;font-family:var(--toda-font);font-size:15px;font-weight:500;line-height:1.5;box-shadow:none;cursor:pointer}.toda-build .tb-pill:hover,.toda-build .tb-circle:hover{background:#e9e7e2;color:#111}.toda-build .tb-pill-dark{background:#111;color:#fff}.toda-build .tb-pill-dark:hover{background:#333;color:#fff}.toda-build .tb-pill-white{background:#fff;color:#111;border-color:#fff}.tb-header-quote{position:relative}.tb-quote-icon{display:none}.tb-count{min-width:22px;height:22px;padding:1px 5px;border-radius:999px;background:#fe0000;color:white;font-family:var(--toda-mono);font-size:12px;text-align:center}.tb-mobile-menu{display:none}
#tb-search-dialog{width:min(600px,calc(100% - 32px));border:1px solid #111;border-radius:8px;padding:32px;background:#fff;color:#111}#tb-search-dialog::backdrop{background:#0008}.tb-dialog-close{float:right}#tb-search-dialog form{display:grid;gap:16px}#tb-search-dialog h2{font-size:32px}#tb-search-dialog input[type=search]{border:1px solid #111;border-radius:999px;background:#fff;font:inherit;padding:14px 20px;min-height:48px}
.tb-home{padding:12px;max-width:1440px;margin:auto}.tb-home p{font-size:16px;line-height:1.7}.tb-frame{border:1px solid #d4d4d4;margin:0 0 12px}.tb-label{font-family:var(--toda-mono)!important;font-size:13px!important;line-height:1.5;font-weight:600;letter-spacing:.08em;margin:0 0 18px}.tb-label:before{content:'■';font-size:13px;margin-right:10px}.tb-section{padding:36px 28px}.tb-section-title{margin-bottom:28px}.tb-section-title h2{font-size:clamp(32px,3.6vw,52px);margin:0}.tb-section-title>p:last-child:not(.tb-label){max-width:650px;color:#555;margin:20px 0 0}
.tb-hero{position:relative;overflow:hidden;border-radius:8px}.tb-slide{position:relative;aspect-ratio:2/1;max-height:780px;background:#f1efeb}.tb-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border-radius:0}.tb-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0007,#0001)}.tb-slide-copy{position:absolute;z-index:1;left:42px;bottom:64px;max-width:75%;color:#fff}.tb-slide-copy h1,.tb-slide-copy h2{font-size:clamp(36px,4.2vw,60px);line-height:1.2;color:#fff!important;margin:0 0 28px;letter-spacing:-.045em}.tb-slide-copy .tb-label{color:#fff}.tb-slide-controls{position:absolute;bottom:20px;right:24px;display:flex;align-items:center;gap:16px;z-index:2;color:#fff;font:14px var(--toda-mono)}.tb-slide-controls .tb-circle{border-color:#fff;background:transparent;color:#fff}
.tb-brand-story{display:grid;grid-template-columns:1.3fr 1fr;gap:70px;padding:56px 40px}.tb-brand-story h2{font-size:clamp(36px,4vw,56px);margin:0 0 24px}.tb-brand-story p{max-width:620px}.tb-find{padding-top:8px}.tb-find h3{font-size:24px;margin:0 0 18px}.tb-find>a,.tb-find>button{display:flex;width:100%;gap:16px;align-items:center;justify-content:flex-start;min-height:58px;padding:12px 0;border:0;border-top:1px solid #d4d4d4;border-radius:0;background:white;text-decoration:none!important;text-align:left;font:500 17px var(--toda-font);color:#111}.tb-find span{font:13px var(--toda-mono);color:#555}.tb-find b{margin-left:auto;font-weight:400}
.tb-project-grid,.tb-help-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tb-tile{position:relative;display:block;overflow:hidden;border-radius:8px;background:#f1efeb;color:#fff!important;text-decoration:none!important}.tb-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .3s}.tb-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0000 25%,#000b)}.tb-tile:hover>img{transform:scale(1.025)}.tb-project-tile{aspect-ratio:4/5}.tb-tile-index{position:absolute;top:18px;left:18px;z-index:1;font:11px var(--toda-mono);padding:6px 10px;border:1px solid #fff7;border-radius:999px;background:#0004}.tb-tile-copy{position:absolute;bottom:22px;left:22px;right:22px;z-index:1}.tb-tile-copy h3{font-size:clamp(23px,2.1vw,32px);margin:0 0 14px;color:inherit!important}.tb-tile-copy p{font-size:15px;margin:0 0 20px;line-height:1.55}.tb-tile-copy .tb-pill{font-size:14px;padding:9px 16px}.tb-no-image{color:#111!important}.tb-no-image:after{display:none}.tb-no-image .tb-tile-index{border-color:#111;background:none}.tb-signature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tb-signature-tile{aspect-ratio:1/1}.tb-product-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.tb-product-filters [aria-pressed=true]{background:#111;color:#fff}
.tb-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d4d4d4;border-left:1px solid #d4d4d4}.tb-product{min-width:0;border-right:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4;padding:22px 18px;display:flex;flex-direction:column}.tb-sku{font:12px var(--toda-mono);letter-spacing:.03em;overflow-wrap:anywhere}.tb-product h3{font-size:20px;line-height:1.4;margin:12px 0}.tb-product h3>a{text-decoration:none!important}.tb-price{font:15px var(--toda-mono)!important;margin:0 0 16px}.tb-product-image{display:block;aspect-ratio:1;background:#f1efeb;margin-top:auto}.tb-product-image img{width:100%;height:100%;object-fit:contain;border-radius:0;display:block}.tb-product-bottom{display:flex;align-items:center;gap:12px;margin-top:18px}.tb-product-bottom>span{font-size:13px}.toda-build .tb-plus{min-width:46px;padding:8px;font:25px var(--toda-mono)}.tb-admin-note{padding:12px 16px;border-left:3px solid #111;background:#f1efeb;font-size:15px!important}.tb-filter-empty,.tb-empty{padding:24px 0;color:#555}.tb-all-products{display:flex;align-items:center;justify-content:center;min-height:80px;margin-top:24px;background:#111;color:white!important;border-radius:8px;text-decoration:none!important;font-size:24px}.tb-all-products:hover{background:#333}.tb-reorder>a{display:grid;grid-template-columns:160px 1fr 50px;align-items:center;gap:20px;border-top:1px solid #d4d4d4;padding:14px 0;text-decoration:none!important}
.tb-material-list>a{display:grid;grid-template-columns:88px 1fr auto 40px;gap:24px;align-items:center;min-height:116px;padding:14px 0;border-top:1px solid #d4d4d4;text-decoration:none!important}.tb-material-list>a:last-child{border-bottom:1px solid #d4d4d4}.tb-material-list img,.tb-material-placeholder{width:88px;height:88px;object-fit:cover;border-radius:6px;background:#f1efeb;display:flex;align-items:center;justify-content:center;color:#555}.tb-material-list h3{font-size:26px;margin:0}.tb-material-list>a>span:not(.tb-material-placeholder){font:13px var(--toda-mono);color:#555}.tb-material-list b{font-size:24px;font-weight:400}.tb-help-tile{aspect-ratio:1/1}
.tb-newsletter{position:relative;padding:56px 40px;background:#111;color:#fff}.tb-newsletter h2{font-size:clamp(32px,4vw,56px);color:white;margin:0 0 24px}.tb-news-preview{display:grid;gap:12px;max-width:620px;margin:24px 0}.tb-news-preview>input{background:transparent;border:1px solid #fff;color:#fff;border-radius:999px;font:inherit;padding:13px 20px}.tb-news-preview label{font-size:15px}.tb-news-preview input:disabled{opacity:.65}.tb-news-preview button:disabled{opacity:.65;cursor:not-allowed}.tb-newsletter:before,.tb-newsletter:after{content:'';position:absolute;width:22px;height:22px;top:14px;border-top:1px solid #fff}.tb-newsletter:before{left:14px;border-left:1px solid #fff}.tb-newsletter:after{right:14px;border-right:1px solid #fff}
.tb-footer{max-width:1440px;margin:auto;padding:44px 36px 24px}.tb-footer-brand{display:flex;align-items:center;gap:24px;margin-bottom:36px}.tb-footer-brand img{width:auto;height:32px}.tb-footer-brand>span{font:12px var(--toda-mono);letter-spacing:.08em}.tb-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 48px}.tb-footer details{border-top:1px solid #555;padding-top:18px}.tb-footer summary{font:600 13px var(--toda-mono);letter-spacing:.07em;min-height:44px;cursor:pointer;list-style:none}.tb-footer summary::-webkit-details-marker{display:none}.tb-footer a{display:flex;align-items:center;min-height:44px;color:white!important;text-decoration:none!important;font-size:15px}.tb-footer a:hover{text-decoration:underline!important}.tb-footer-bottom{display:flex;justify-content:space-between;gap:28px;border-top:1px solid #555;padding-top:28px;margin-top:40px}.tb-footer-bottom p{font-size:15px;margin:0}.tb-to-top{position:fixed;bottom:70px;right:24px;z-index:30;box-shadow:0 3px 15px #0002!important}
@media(max-width:1350px) and (min-width:1200px){.tb-header{gap:10px;padding:16px 12px}.tb-desktop-nav>a,.tb-mega>summary{font-size:13px;padding:8px}.tb-brand span{display:none}.tb-header-actions{gap:5px}.toda-build .tb-header-quote{padding:9px 13px}}
@media(max-width:1199px){.tb-desktop-nav{display:none}.tb-header{justify-content:space-between}.tb-mobile-menu{display:block}.tb-mobile-menu>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:#111;color:#fff;border-radius:50%;font-size:22px;cursor:pointer;list-style:none}.tb-mobile-menu>nav{position:absolute;top:100%;right:12px;left:12px;max-height:calc(100dvh - 150px);overflow:auto;background:#fff;border:1px solid #111;padding:12px 24px;box-shadow:0 15px 25px #0002}.tb-mobile-menu nav>a,.tb-mobile-menu nav summary{display:flex;align-items:center;min-height:48px;padding:8px 0;border-bottom:1px solid #d4d4d4;font-size:16px;text-decoration:none!important;cursor:pointer}.tb-mobile-menu nav details>a{display:flex;align-items:center;min-height:44px;padding:8px 16px;font-size:15px;text-decoration:none!important}.tb-header-actions{margin-left:auto}.tb-project-grid,.tb-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-signature-tile .tb-tile-copy{left:16px;right:16px;bottom:16px}.tb-signature-tile .tb-tile-copy p{display:none}}
@media(max-width:767px){:root{--toda-gutter:8px}.toda-build.home .site-content>.col-full{margin:0!important}body.toda-build .site-content>.col-full{padding:0 16px;margin:0}body.admin-bar.toda-build .site-header{top:46px}.tb-header{min-height:72px;padding:12px;gap:8px}.tb-brand{gap:4px}.tb-brand img{height:24px;max-width:100px}.tb-brand span{font-size:14px}.tb-header-actions{gap:6px}.tb-header-actions>.tb-search-open{display:none}.tb-header-quote{order:-1}.tb-quote-word{display:none}.tb-quote-icon{display:inline;font-size:20px}.toda-build .tb-header-quote{padding:0;width:44px;height:44px;border-radius:50%}.tb-count{position:absolute;top:-6px;right:-5px;min-width:20px;height:20px;font-size:11px}.tb-home{padding:8px}.tb-frame{margin-bottom:8px}.tb-section{padding:28px 16px}.tb-section-title{margin-bottom:22px}.tb-section-title h2{font-size:30px}.tb-home .tb-label{font-size:12px!important;letter-spacing:.06em;margin-bottom:14px}.tb-slide{aspect-ratio:4/5;max-height:none}.tb-slide:after{background:linear-gradient(180deg,#0001,#0008)}.tb-slide-copy{left:22px;right:22px;bottom:86px;max-width:none}.tb-slide-copy h1,.tb-slide-copy h2{font-size:32px;margin-bottom:24px;line-height:1.25}.tb-slide-controls{bottom:20px;right:20px;gap:14px}.tb-slide>img{object-position:center}.tb-brand-story{grid-template-columns:1fr;padding:32px 20px;gap:24px}.tb-brand-story h2{font-size:32px}.tb-brand-story p{font-size:15px}.tb-find h3{font-size:22px}.tb-find>a,.tb-find>button{font-size:16px;min-height:56px}.tb-project-grid{gap:8px}.tb-project-tile{aspect-ratio:4/5}.tb-tile-index{font-size:10px;left:10px;top:10px;padding:4px 8px}.tb-project-tile .tb-tile-copy{left:12px;right:12px;bottom:14px}.tb-project-tile h3{font-size:23px;line-height:1.3;margin-bottom:12px}.tb-project-tile p{display:none}.tb-project-tile .tb-pill{font-size:13px;padding:8px 12px;min-height:44px}.tb-signature-grid{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.tb-signature-tile{flex:0 0 84%;scroll-snap-align:start}.tb-signature-tile .tb-tile-copy h3{font-size:28px}.tb-signature-tile .tb-tile-copy p{display:block;font-size:15px}.tb-product-filters{flex-wrap:nowrap;overflow-x:auto;padding:4px 4px 10px;margin-left:-4px;margin-right:-4px}.tb-product-filters .tb-pill{flex:none}.tb-products{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-product{padding:16px 10px}.tb-product h3{font-size:18px}.tb-product-bottom{gap:8px;flex-wrap:wrap}.tb-product-bottom>span{font-size:13px}.tb-sku{font-size:11px}.tb-price{font-size:14px!important}.tb-all-products{min-height:64px;font-size:22px}.tb-material-list>a{grid-template-columns:58px minmax(0,1fr) 20px;gap:12px;min-height:88px}.tb-material-list img,.tb-material-placeholder{width:58px;height:58px}.tb-material-list h3{font-size:20px}.tb-material-list>a>span:not(.tb-material-placeholder){grid-column:2;font-size:12px;margin-top:-20px}.tb-material-list>a>b{grid-column:3;grid-row:1/3}.tb-help-grid{gap:8px}.tb-help-tile{aspect-ratio:4/5}.tb-help-tile .tb-tile-copy{left:12px;right:12px;bottom:14px}.tb-help-tile h3{font-size:22px}.tb-help-tile .tb-pill{font-size:13px;padding:8px 12px}.tb-newsletter{padding:36px 22px}.tb-newsletter h2{font-size:32px}.tb-news-preview input{min-width:0;width:100%}.tb-news-preview input[type=checkbox]{width:auto;min-width:16px}.tb-footer{padding:32px 22px 24px}.tb-footer-brand{gap:16px;margin-bottom:28px}.tb-footer-brand img{height:24px}.tb-footer-brand>span{font-size:10px}.tb-footer-grid{display:block}.tb-footer details{padding-top:8px}.tb-footer summary{display:flex;align-items:center;justify-content:space-between;min-height:52px}.tb-footer summary:after{content:'+';font-size:23px}.tb-footer details[open] summary:after{content:'−'}.tb-footer details>div{padding-bottom:18px}.tb-footer-bottom{display:block;margin-top:20px;padding-top:20px}.tb-footer-bottom p{font-size:14px;margin-bottom:20px}.tb-to-top{right:16px;bottom:80px}.tb-reorder>a{grid-template-columns:1fr auto;gap:10px}.tb-reorder .tb-sku{grid-column:1}.tb-reorder .tb-plus{grid-column:2;grid-row:1/3}}
@media(prefers-reduced-motion:reduce){.tb-tile>img{transition:none}html{scroll-behavior:auto}}

/* Storefront's overflow wrapper must not create a second scroll container for the sticky header. */
body.toda-build #page{overflow:visible}
body.toda-build.home #content{padding-top:0}
.tb-social-strip{display:none}
@media(max-width:767px){.tb-social-strip{display:block;padding:24px 16px}.tb-social-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.tb-social-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}}

/* Reset inherited homepage template spacing. */
body.toda-build.home #main.site-main,body.toda-build.home .site-main>article.type-page,body.toda-build.home .site-main>article.type-page .entry-content{padding-top:0!important;margin-top:0!important}
body.toda-build.home #masthead.site-header{margin-bottom:0!important}
/* Quote card controls delegate to the existing YITH session and AJAX action. */
.tb-quote-control{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%}.tb-card-quote-status,.tb-card-quote-link{font-size:15px;line-height:1.6}.tb-card-quote-status:empty{display:none}.tb-card-quote-link{flex-basis:100%}.tb-quote-dialog{width:min(560px,calc(100% - 32px));max-height:85vh;overflow:auto;border:1px solid #111;border-radius:8px;background:#fff;color:#111;padding:28px}.tb-quote-dialog::backdrop{background:#0008}.tb-quote-dialog h2{font-size:27px;line-height:1.4;margin:12px 0}.tb-quote-dialog .tb-quote-close{float:right}.tb-quote-dialog label{display:block;font-size:16px;margin:16px 0}.tb-quote-dialog select,.tb-quote-dialog input{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:10px;background:#fff;color:#111;border:1px solid #111;border-radius:8px}.tb-quote-dialog .tb-option-status{font-size:15px;line-height:1.6}.tb-quote-dialog button:disabled{opacity:.5;cursor:not-allowed}.tb-reorder-row{display:grid;grid-template-columns:1fr minmax(44px,auto);align-items:center;gap:20px;padding:18px;border-bottom:1px solid #d4d4d4}.tb-reorder-row>a{display:grid;gap:8px}.tb-reorder-row .tb-quote-control{max-width:300px}

/* Match anchor spacing to the actual sticky header; JS updates this for the admin bar and breakpoints. */
:root{--toda-anchor-offset:150px}
body.toda-build #content,body.toda-build .tb-home [id]{scroll-margin-top:var(--toda-anchor-offset)}
