@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;700&display=swap');
:root{--ink:#172033;--muted:#667085;--line:#e8e9ed;--red:#e53935;--yellow:#ffd43b;--cream:#fffaf0;--green:#1f8b55;--white:#fff;--shadow:0 12px 30px rgba(23,32,51,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Prompt","Noto Sans Thai",sans-serif;color:var(--ink);background:#fff;overflow-x:hidden;width:100%;max-width:100vw}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.notice{background:var(--ink);color:#fff;text-align:center;padding:9px;font-size:13px}
.site-header{max-width:1240px;margin:auto;display:grid;grid-template-columns:270px 1fr auto;gap:28px;align-items:center;padding:20px}
.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:800;white-space:nowrap;}
.brand strong{color:var(--red)}
.brand small{display:block;font-size:10px;letter-spacing:.5px;color:var(--muted);font-weight:400}
.brand-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:16px 16px 16px 4px;background:var(--yellow);color:var(--ink);font-weight:900}
.search{display:flex;border:2px solid var(--yellow);border-radius:14px;overflow:hidden;width:100%;}
.search input{border:0;padding:13px 16px;width:100%;outline:0;font-family:inherit;}
.search button,.button,button{border:0;background:var(--ink);color:#fff;padding:12px 18px;border-radius:10px;font-weight:700;cursor:pointer;font-family:inherit;}
.search button{border-radius:0}
.site-header nav{display:flex;gap:15px;align-items:center;white-space:nowrap;}
.cart-link b{background:var(--red);color:#fff;padding:2px 7px;border-radius:20px}
.category-bar{border-bottom:1px solid var(--line);display:flex;gap:25px;padding:12px max(20px,calc((100% - 1200px)/2));overflow-x:auto;white-space:nowrap; -webkit-overflow-scrolling:touch;}
.container{max-width:1200px;margin:0 auto;padding:28px 20px}
.hero{background:linear-gradient(100deg,#fff2b8 0,#fffaf0 48%,#fff 100%);min-height:390px;border-radius:28px;overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;align-items:center}
.hero-copy{padding:55px}
.eyebrow{color:var(--red);font-weight:800;letter-spacing:.6px}
.hero h1{font-size:48px;line-height:1.15;margin:10px 0}
.hero p{color:var(--muted);font-size:17px;line-height:1.8}
.hero img{height:390px;width:100%;object-fit:contain}
.button{display:inline-block}
.button.yellow{background:var(--yellow);color:var(--ink)}
.button.red{background:var(--red)}
.button.outline{background:#fff;color:var(--ink);border:1px solid var(--line)}
.section-head{display:flex;justify-content:space-between;align-items:end;margin:35px 0 18px}
.section-head h2{margin:0;font-size:28px}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.03);display:flex;flex-direction:column;}
.product-image{aspect-ratio:1/1 !important;background:#f7f7f7;object-fit:contain !important;width:100% !important;height:auto !important;}
.card-body{padding:16px;display:flex;flex-direction:column;flex:1;}
.badge{display:inline-block;padding:6px 9px;border-radius:30px;background:#eaf7ef;color:var(--green);font-size:12px;font-weight:700}
.badge.wait{background:#fff5db;color:#995f00}
.price{font-size:23px;font-weight:900;color:var(--red);margin:10px 0;margin-top:auto;}
.price small{font-size:12px;color:var(--muted);font-weight:400}
.card h3{font-size:16px;min-height:42px;margin:10px 0}
.card-actions{display:flex;gap:8px;margin-top:10px;}
.card-actions form{flex:1}
.card-actions button{width:100%}
.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:42px}
.product-main-image{border-radius:24px;background:#f7f7f7;aspect-ratio:1;object-fit:contain}
.video-wrap{margin-top:25px;aspect-ratio:16/9}
.video-wrap iframe{width:100%;height:100%;border:0;border-radius:18px}
.panel{border:1px solid var(--line);border-radius:18px;padding:22px;margin-bottom:20px;background:#fff}
.qty{display:flex;gap:10px;align-items:center}
.qty input{width:100px}
.field{display:grid;gap:7px;margin-bottom:15px}
.field input,.field textarea,.field select,input[type=number]{padding:12px;border:1px solid #d6d8dd;border-radius:9px;font:inherit}
.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.table{border-collapse:collapse;width:100%;min-width:600px;}
.table th,.table td{padding:14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.table img{width:70px;height:70px;object-fit:contain;border-radius:10px}
.total-box{max-width:470px;margin-left:auto}
.total-row{display:flex;justify-content:space-between;padding:9px 0}
.total-row.grand{font-size:22px;font-weight:900;border-top:2px solid var(--ink)}
.warning{padding:16px;border-radius:12px;background:#fff1f0;color:#9d251f;border:1px solid #ffc9c6}
.flash{max-width:1200px;margin:15px auto;padding:14px 20px;border-radius:10px;background:#eaf7ef;color:#17663f}
.flash.error,.flash.warning{background:#fff1f0;color:#9d251f}
.status-line{position:relative;margin-left:12px;padding:0 0 24px 28px;border-left:2px solid var(--yellow)}
.status-line:last-child{border-left-color:transparent}
.status-line:before{content:"";position:absolute;left:-7px;top:0;width:12px;height:12px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink)}
.status-line strong{display:block}
footer{margin-top:50px;background:var(--ink);color:#fff;padding:35px max(20px,calc((100% - 1200px)/2));display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;gap:25px}
footer .brand small,footer p{color:#c8cbd2}
footer div:last-child{display:grid;gap:8px}
.auth{max-width:520px;margin:45px auto}
.pagination{display:flex;gap:8px;justify-content:center;margin:30px}
.pagination a{border:1px solid var(--line);padding:8px 12px;border-radius:8px}
.pagination a.active{background:var(--ink);color:#fff}
@media(max-width:900px){
    .site-header{grid-template-columns:1fr auto}
    .search{grid-column:1/-1;grid-row:2}
    .grid{grid-template-columns:repeat(2,1fr)}
    .hero{grid-template-columns:1fr}
    .hero-copy{padding:35px}
    .hero h1{font-size:36px}
    .hero img{height:250px}
    .product-layout{grid-template-columns:1fr}
    footer{grid-template-columns:1fr}
    .two{grid-template-columns:1fr}
}
@media(max-width:520px){
    .site-header{padding:14px; gap: 15px;}
    .brand{font-size:20px}
    .brand img{height:24px!important;}
    .brand-mark{width:44px;height:44px}
    .site-header nav{gap: 10px;}
    .site-header nav a:first-child{display:none} /* hide articles link on tiny screen */
    .grid{grid-template-columns:1fr 1fr;gap:10px}
    .card-body{padding:11px}
    .card h3{font-size:14px}
    .price{font-size:19px}
    .hero h1{font-size:31px}
    .category-bar{gap:18px}
    .container{padding-inline:14px}
    .search button{padding: 12px 14px;}
}

/* Responsive storefront V3: only the category rail scrolls horizontally. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html,body{width:100%;max-width:100%}
body{overflow-x:clip}
.site-header{width:100%;grid-template-columns:minmax(180px,260px) minmax(0,1fr) auto}
.site-header>*{min-width:0}
.brand{min-width:0;white-space:normal;line-height:1.2}
.brand img{width:42px;height:42px;object-fit:contain;flex:none}
.brand span{min-width:0}
.search input{min-width:0}
.site-header nav{min-width:0}
.container,.panel,.card,.hero-copy,.product-layout>*,.two>*{min-width:0}
.hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.hero-copy{padding:clamp(22px,4vw,55px)}
.hero h1{display:block;overflow-wrap:anywhere}
.hero .hero-mascot{display:inline-block;width:64px;height:64px;object-fit:contain;vertical-align:middle}
.hero .hero-photo{width:100%;height:390px;object-fit:contain}
.section-head{gap:12px;flex-wrap:wrap}
.section-head>*{min-width:0}
.section-head .muted{text-align:right}
.home-categories{margin-top:28px}
.home-categories .section-head{margin-bottom:14px}
.category-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:100%;overflow:hidden}
.category-tile{display:flex;align-items:center;justify-content:center;min-height:58px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;text-align:center;font-weight:600;font-size:14px;line-height:1.4;background:#fff}
.category-tile:hover,.category-tile:focus-visible{border-color:var(--red);color:var(--red)}
.franchise-banner{margin-top:28px;background:var(--yellow);border-radius:18px;padding:34px 20px;text-align:center}
.franchise-banner h2{margin:0;font-size:clamp(23px,2.8vw,32px)}
.franchise-banner p{margin:10px 0 20px}
.franchise-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:30px}
.franchise-card{display:flex;flex-direction:column;text-align:center}
.franchise-card.featured{border:2px solid var(--red)}
.franchise-card h2{margin:0}
.franchise-card .price{margin:20px 0 10px}
.franchise-card ul{text-align:left;color:var(--muted);padding-left:22px;flex:1}
.franchise-card .button{width:100%}
.franchise-intro{text-align:center;margin:22px auto 30px}
.franchise-intro h1{font-size:clamp(30px,3vw,40px);margin:8px 0}
.franchise-note{text-align:center}
.footer-brand strong{font-size:22px}
.footer-links{display:grid;gap:8px}
.grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.card-actions{flex-wrap:wrap}
.card-actions>*{min-width:0}
.table-wrap{max-width:100%}
@media(max-width:1100px){
 .site-header{grid-template-columns:minmax(180px,240px) minmax(0,1fr)}
 .site-header nav{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap;white-space:normal}
 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .franchise-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .category-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px}
 .site-header .brand{grid-column:1;grid-row:1;font-size:20px}
 .site-header nav{grid-column:2;grid-row:1;justify-content:flex-end;gap:8px;font-size:13px}
 
 .search{grid-column:1/-1;grid-row:2;margin:0}
 .hero{display:grid;grid-template-columns:minmax(0,1fr)}
 .hero .hero-photo{height:230px;grid-row:2}
 .hero-copy{padding:26px}
 .hero h1{font-size:clamp(30px,7vw,40px)}
 .hero .hero-mascot{width:46px;height:46px}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .category-rail{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:8px}
 .category-tile{flex:0 0 min(43vw,190px);scroll-snap-align:start}
 .franchise-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .franchise-banner{padding:25px 16px}
 .section-head h2{font-size:24px}
 footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
}
@media(max-width:480px){
 .site-header .brand{font-size:18px}
 .brand small{font-size:9px}
 .brand img{width:34px;height:34px}
 
 .site-header nav{font-size:14px}
 .hero .hero-photo{height:180px}
 .hero p{font-size:15px}
 .grid{gap:9px}
 .card-body{padding:10px}
 .card-actions{display:grid;grid-template-columns:1fr}
 .card-actions form,.card-actions .button{width:100%}
 .card-actions button,.card-actions .button{padding:9px 5px;font-size:12px;text-align:center}
 .category-tile{flex-basis:46vw}
 .franchise-grid{grid-template-columns:minmax(0,1fr)}
 .section-head .muted{font-size:12px}
 footer{grid-template-columns:minmax(0,1fr)}
 .two{grid-template-columns:minmax(0,1fr)}
}




