/* QIWU navy theme. Main colours: navy #263c56, pale blue #e2e7eb, paper #f8f7f3. */
:root{--navy:#263c56;--navy-2:#395675;--ink:#202e3f;--muted:#6c757d;--paper:#f8f7f3;--blue:#e2e7eb;--line:#dedfdd;--sand:#ebe6dc;--serif:Georgia,'Songti SC','Noto Serif SC','Noto Serif CJK SC',serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:110px}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.7 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Noto Sans Thai',Tahoma,sans-serif}
button,input,select{font:inherit;color:inherit}
button,a,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0;background:none}
button:disabled{opacity:.45;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #597899;outline-offset:5px}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2,.dialog-name{font-family:var(--serif);font-weight:400}
img{display:block;max-width:100%}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
body:has(dialog[open]){overflow:hidden}

.announcement{padding:8px 5%;background:var(--navy);color:#f5f6f8;display:flex;justify-content:space-between;gap:16px;font-size:11px;letter-spacing:1.4px}
.header{max-width:1600px;margin:auto;padding:0 5%;min-height:102px;display:flex;align-items:center;justify-content:space-between;gap:28px;background:var(--paper);position:sticky;top:0;z-index:10}
.brand{font:34px var(--serif);white-space:nowrap;letter-spacing:4px}
.brand span{font:16px Georgia,serif;letter-spacing:4px;margin-left:9px}
.main-nav{display:flex;gap:32px;font-size:14px}
.main-nav a{padding:6px 0}
.main-nav a:hover,.main-nav a.current{box-shadow:0 1px var(--navy)}
.header-actions{display:flex;align-items:center;gap:20px}
.languages{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);white-space:nowrap}
.languages a{padding:4px 0}
.languages a[aria-current]{color:var(--ink);box-shadow:0 1px var(--ink)}
.languages span{color:#b9bec3}
.icon-link{display:flex;padding:8px}
.bag-button{display:flex;align-items:center;position:relative;padding:10px}
.bag-button>span{position:absolute;right:0;top:2px;border-radius:50%;background:var(--navy);color:white;font-size:9px;width:17px;height:17px;display:grid;place-items:center}
main{max-width:1600px;margin:auto}

.hero{margin:0 3%;display:grid;grid-template-columns:46% 54%;background:var(--blue);min-height:530px}
.hero-copy{padding:64px 10% 27px;display:flex;flex-direction:column;align-items:flex-start}
.eyebrow{font-size:10px;letter-spacing:3px}
.hero h1{margin:29px 0 0}
.hero-headline{display:block;font-size:clamp(37px,4.25vw,66px);line-height:1.4;letter-spacing:2px}
.hero-subtitle{display:block;font-size:20px;line-height:1.6;letter-spacing:3px;color:#3f4f60;margin-top:22px}
.primary{display:inline-flex;justify-content:center;align-items:center;gap:24px;background:var(--navy);color:#fff;padding:13px 27px;font-size:14px;border:1px solid var(--navy);transition:background .2s}
.primary:hover{background:var(--navy-2)}
.hero .primary{margin-top:30px}
.hero-note{display:flex;justify-content:space-between;width:100%;gap:20px;font-size:9px;letter-spacing:1px;color:#6b7b88;margin-top:auto;padding-top:38px}
.hero-art{position:relative;min-height:530px;background:var(--sand);overflow:hidden}
.hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.values{margin:0 5%;padding:31px 0;display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}
.values a{display:flex;align-items:center;justify-content:center;gap:18px;border-right:1px solid var(--line)}
.values a:last-child{border:0}
.values a:hover strong{box-shadow:0 1px var(--ink)}
.value-icon{width:49px;height:49px;border:1px solid #bdc6cc;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.values strong{font-family:var(--serif);font-size:18px;font-weight:400;display:inline-block}
.values small{display:block;font-size:11px;color:var(--muted);margin-top:4px}

.shop{padding:56px 5% 65px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}
.section-heading h1,.section-heading h2{font-size:37px;letter-spacing:3px;margin-top:9px}
.section-heading>span{font-size:12px;color:var(--muted);max-width:440px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.categories{display:flex;gap:21px;flex-wrap:wrap}
.categories a{padding:14px 0;font-size:13px;border-bottom:2px solid transparent}
.categories a.active,.categories a:hover{border-color:var(--navy)}
.tools{display:flex;align-items:center;gap:22px;padding-bottom:8px}
.search{display:flex;align-items:center;border:1px solid var(--line);padding:5px 12px;gap:9px;background:#fff8}
.search span{font-size:24px;line-height:1}
.search input{width:170px;border:0;background:none;font-size:12px;min-width:0;padding:4px 0}
.tools select{font-size:12px;background:none;border:0;max-width:160px}
.tools-submit{font-size:12px;padding:6px 12px;margin:0}
.js .tools-submit{display:none}
.results{font-size:11px;color:var(--muted);margin:16px 0}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px}
.product-media{aspect-ratio:1;position:relative;background:var(--sand);overflow:hidden}
.product-open{display:block;width:100%;height:100%}
.product-open img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.product-open:hover img{transform:scale(1.035)}
.quick-add{position:absolute;bottom:13px;right:13px;background:var(--paper);height:37px;width:37px;border-radius:50%;font-size:23px;box-shadow:0 3px 12px #0001}
.quick-add:hover{background:var(--navy);color:#fff}
.product-info{padding:18px 0}
.product-info h3{font:19px var(--serif);font-weight:400}
.product-title:hover{box-shadow:0 1px var(--ink)}
.product-info p{font-size:11px;color:var(--muted);margin:9px 0 12px}
.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:13px}
.product-bottom a{border-bottom:1px solid #b2bbc4;font-size:11px}
.empty{text-align:center;padding:50px}
.empty p{color:var(--muted);margin-bottom:6px}
.secondary{display:inline-block;padding:10px 17px;border:1px solid var(--navy);margin-top:15px;font-size:13px}

.about{background:var(--navy);color:#f3f5f7;margin:0 5% 55px;padding:40px 5%;display:grid;grid-template-columns:1fr 1fr;gap:65px}
.about h2{font-size:31px;line-height:1.6;margin-top:18px}
.about p{font-size:13px;line-height:2;color:#cbd5df}
.about>div:last-child{align-self:center}
.about a{display:inline-block;margin-top:18px;font-size:13px;border-bottom:1px solid #8ea2b6}
.about>div:last-child>span{display:block;margin-top:22px;font-size:11px;letter-spacing:3px}

footer{max-width:1440px;margin:auto;padding:36px 5% 30px;border-top:1px solid var(--line);display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:28px 40px}
footer .brand{font-size:25px}
footer .brand span{font-size:12px}
footer p{font-size:12px;color:var(--muted);margin-top:12px;max-width:360px}
.footer-links{display:flex;flex-direction:column;gap:8px;font-size:13px}
.footer-links strong{font-size:11px;letter-spacing:2px;font-weight:600;margin-bottom:4px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--ink)}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:18px}
.footer-bottom small{font-size:11px;color:var(--muted)}

.breadcrumb{margin:0 5%;padding:20px 0 0;font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px}
.breadcrumb a:hover{color:var(--ink)}
.breadcrumb [aria-current]{color:var(--ink)}
.breadcrumb+.shop{padding-top:34px}
.product-page{margin:22px 5% 0}
.detail-layout{display:grid;grid-template-columns:1fr 1fr;align-items:start;background:#fff6}
.detail-gallery{display:grid;gap:12px;align-content:start}
.detail-gallery img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:var(--sand)}
.detail-copy{padding:48px 8%;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.detail-copy h1{font-size:32px;margin-top:6px}
.detail-price{font-size:22px}
.detail-copy>p{font-size:14px;color:var(--muted)}
.detail-copy .primary{width:100%;margin-top:8px}
.specs{margin:6px 0 0;width:100%;border-top:1px solid var(--line)}
.specs div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.specs dt{color:var(--muted)}
.specs dd{margin:0;text-align:right}
.detail-copy .detail-note{font-size:12px}
.detail-note a{text-decoration:underline;text-underline-offset:3px}
.related{padding-top:56px}
/* Product details below the purchase area: text and full-width images from the Vendure editor, like a marketplace detail page. */
.product-details{max-width:820px;margin:56px auto 0;padding:0 5%}
.product-details>h2{font-size:26px;letter-spacing:4px;text-align:center;padding-bottom:18px;margin-bottom:28px;border-bottom:1px solid var(--line)}
.product-details>h3{font-size:19px;margin:36px 0 12px}
.rich-text{color:#3d4a58;font-size:15px;line-height:1.95;overflow-wrap:anywhere}
.rich-text p{margin:0 0 16px}
.rich-text h2,.rich-text h3,.rich-text h4{font-family:var(--serif);font-weight:400;color:var(--ink);line-height:1.4;margin:28px 0 12px}
.rich-text h2{font-size:24px}.rich-text h3{font-size:20px}.rich-text h4{font-size:17px}
.rich-text img{display:block;width:100%;height:auto;margin:0 auto}
.rich-text p img{margin:8px auto}
.rich-text ul,.rich-text ol{margin:0 0 16px;padding-left:1.4em}
.rich-text li{margin:4px 0}
.rich-text blockquote{margin:0 0 16px;padding:4px 0 4px 18px;border-left:3px solid #c9a24a;color:var(--muted)}
.rich-text hr{border:0;border-top:1px solid var(--line);margin:28px 0}
.rich-text a{text-decoration:underline;text-underline-offset:3px}
.rich-text table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:14px}
.rich-text th,.rich-text td{border:1px solid var(--line);padding:8px 12px;text-align:left;vertical-align:top}
.rich-text th{background:var(--blue);font-weight:600}
.rich-text td p,.rich-text th p{margin:0}
.rich-text pre{overflow-x:auto;background:var(--sand);padding:12px}
.related .section-heading h2{font-size:29px}
.page{max-width:780px;margin:0 auto;padding:40px 5% 72px}
.page h1{font-size:36px;letter-spacing:2px;margin-bottom:24px}
.page p{margin:0 0 16px;line-height:2;color:#3d4a58}
.page a{text-decoration:underline;text-underline-offset:3px}
.page .primary{text-decoration:none;margin-top:12px}
.page .page-updated{font-size:12px;color:var(--muted);margin-top:32px}
.page-links{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 40px}
.page .page-links a{border:1px solid var(--line);padding:8px 16px;text-decoration:none}
.page.not-found{max-width:1100px}
/* Checkout: address and payment on the left, order summary on the right. */
.checkout{padding:40px 5% 72px;max-width:1200px;margin:auto}
.checkout h1{font-size:36px;letter-spacing:2px;margin-bottom:24px}
.checkout h2{font-size:22px;letter-spacing:1px}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:40px;align-items:start}
.checkout-main{display:grid;gap:24px;min-width:0}
.checkout-panel{background:#fff8;border:1px solid var(--line);padding:28px}
.checkout-panel p{color:#3d4a58;line-height:1.9}
.checkout-panel fieldset{border:0;margin:0;padding:0;min-width:0}
.checkout-panel legend{padding:0;margin-bottom:6px}
.checkout-panel fieldset:disabled{opacity:.6}
.checkout-panel .primary{margin-top:22px;min-width:220px}
#checkout-login .primary,#checkout-empty .secondary{margin-top:16px}
.checkout-muted{font-size:13px;color:var(--muted)}
.checkout-test{font-size:13px;background:var(--blue);padding:10px 14px;margin-top:12px}
.checkout-alert{border:1px solid #c98a7a;background:#fbefeb;color:#7a2e1d;padding:12px 16px;margin-bottom:22px;font-size:14px}
.field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;margin-top:16px}
.field-grid label{display:grid;gap:6px;font-size:13px;color:var(--muted);min-width:0}
.field-grid .wide{grid-column:1/-1}
.field-grid input,.field-grid select{width:100%;border:1px solid #c9cfd4;background:#fff;padding:11px 12px;font-size:15px;color:var(--ink);border-radius:0}
.field-grid input:focus,.field-grid select:focus{border-color:var(--navy);outline:none;box-shadow:0 0 0 2px #26405633}
#edit-address{margin-top:16px}
#payment-element{margin:18px 0 4px;min-height:120px}
#pay-button{width:100%}
.checkout-summary{border:1px solid var(--line);background:var(--blue);padding:24px;position:sticky;top:120px}
.checkout-summary h2{margin-bottom:14px}
.summary-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #d0d7dd;font-size:14px}
.summary-item img{width:56px;height:56px;object-fit:cover;background:var(--sand)}
.summary-item small{color:var(--muted)}
#summary-totals{margin-top:8px}
.checkout-summary .secondary{width:100%;text-align:center}
.checkout-result .result-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.checkout-result .result-actions a,.checkout-result .result-actions button{text-decoration:none;margin-top:0}

dialog{background:var(--paper);color:var(--ink);border:0;max-width:94vw;max-height:90dvh;padding:28px;box-shadow:0 20px 80px #16253644}
dialog::backdrop{background:#172d4266;backdrop-filter:blur(4px)}
.close{font-size:30px;line-height:1;width:40px;height:40px}
.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.dialog-name{font-size:25px}
.dialog-name span{font:14px sans-serif;color:var(--muted)}
.bag-dialog{margin:0 0 0 auto;width:450px;max-width:100%;height:100dvh;max-height:100dvh}
.bag-item{display:grid;grid-template-columns:80px 1fr auto;gap:17px;padding:22px 0;border-bottom:1px solid var(--line)}
.bag-item img{width:80px;height:80px;object-fit:cover;background:var(--sand)}
.bag-item h3{font-size:14px;font-weight:500}
.bag-item h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.bag-item small{font-size:12px;color:var(--muted)}
.bag-price{font-size:14px;text-align:right}
.quantity{display:flex;align-items:center;gap:12px;margin-top:10px}
.quantity button{border:1px solid var(--line);width:30px;height:30px}
.remove{display:block;margin:10px 0 0 auto;font-size:11px;color:var(--muted)}
.summary-line{display:flex;justify-content:space-between;padding:8px 0;font-size:14px}
.summary-total{font-size:19px;border-top:1px solid var(--line);margin-top:6px;padding-top:14px}
.bag-dialog .primary{width:100%;margin-top:14px}
.bag-note{font-size:12px;color:var(--muted);margin:15px 0}
.bag-dialog.busy #cart-items,.bag-dialog.busy #cart-summary{opacity:.55;pointer-events:none;transition:opacity .2s}
#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:12px 23px;box-shadow:0 5px 20px #0002;z-index:50;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s;font-size:13px}
#toast.show{opacity:1}
.flying-product{position:fixed;width:72px;height:72px;object-fit:cover;border:2px solid white;border-radius:12px;box-shadow:0 8px 25px #0003;z-index:9999;pointer-events:none;margin:0;padding:0;inset:auto;overflow:hidden}
.flying-product::backdrop{background:transparent}

html[lang=th] h1,html[lang=th] h2,html[lang=th] h3,html[lang=th] .dialog-name,html[lang=th] .values strong,html[lang=th] .product-info h3{font-family:'Noto Sans Thai',Tahoma,sans-serif;letter-spacing:0;line-height:1.55}
html[lang=th] .hero-headline{font-size:clamp(32px,3.5vw,52px)}
html[lang=en] .hero-headline{letter-spacing:-1px}

@media(min-width:1500px){.hero,.hero-art{min-height:580px}}
@media(max-width:1100px){
  .header{gap:15px}.main-nav{gap:18px}.brand{font-size:29px}.brand span{font-size:13px}.header-actions{gap:10px}
  .hero-copy{padding:45px 9% 22px}.hero-headline{font-size:45px}.hero,.hero-art{min-height:440px}.hero-note{display:none}
  .toolbar{align-items:flex-start;flex-direction:column;gap:10px}.tools{width:100%;justify-content:space-between}.search{flex:1}.search input{width:100%}
  .values small{max-width:180px}.values a{gap:10px}.values strong{font-size:16px}
  .about{gap:30px}.detail-copy{padding:36px 6%}
  footer{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}
}
@media(max-width:860px){.main-nav{display:none}}
@media(max-width:700px){
  .announcement{justify-content:center;font-size:10px}.announcement>span:last-child{display:none}
  .header{min-height:72px;padding:10px 5%;gap:10px}.brand{font-size:26px}.brand span{font-size:11px;margin-left:4px}
  .languages{font-size:12px;gap:5px}.icon-link{padding:6px}
  .hero{margin:0;grid-template-columns:1fr}.hero-copy{padding:34px 7% 36px}.hero h1{margin-top:19px}.hero-headline{font-size:40px;line-height:1.35}.hero-subtitle{font-size:13px;margin-top:16px}.hero .primary{margin-top:23px}
  .hero-art{min-height:0;aspect-ratio:1.25}
  .values{padding:21px 0;gap:10px}.values a{flex-direction:column;gap:9px;justify-content:flex-start;text-align:center;padding:0 6px}.values strong{font-size:12px}.values small{display:none}.value-icon{width:38px;height:38px}
  .shop{padding:35px 5%}.section-heading{flex-direction:column;align-items:start;gap:8px;margin-bottom:15px}.section-heading h1,.section-heading h2{font-size:29px}
  .eyebrow{font-size:9px;letter-spacing:2px}.categories{gap:16px}.categories a{font-size:12px}.tools{gap:12px}.search{min-width:0}.tools select{max-width:125px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.product-info{padding:13px 0}.product-info h3{font-size:16px}.product-info p{font-size:10px}.product-bottom{flex-wrap:wrap}.product-bottom a{font-size:10px}
  .quick-add{width:32px;height:32px;font-size:20px;right:9px;bottom:9px}
  .about{margin:0 5% 30px;padding:28px 7%;grid-template-columns:1fr;gap:20px}.about h2{font-size:27px;margin-top:12px}.about p{font-size:12px}
  footer{grid-template-columns:1fr;gap:22px}.footer-brand{grid-column:auto}.footer-bottom{flex-wrap:wrap}
  .breadcrumb{padding-top:14px}.breadcrumb+.shop{padding-top:24px}.product-page{margin:14px 0 0}.detail-layout{grid-template-columns:1fr}.detail-copy{padding:26px 6%}.detail-copy h1{font-size:27px}
  .product-details{margin-top:36px;padding:0 4%}.product-details>h2{font-size:22px}.rich-text table{display:block;overflow-x:auto}
  .related{padding-top:36px}.page{padding:28px 6% 48px}.page h1{font-size:28px}
  .checkout{padding:28px 5% 48px}.checkout h1{font-size:28px}.checkout-layout{grid-template-columns:1fr;gap:24px}.checkout-summary{position:static;order:-1}.checkout-panel{padding:20px}
  .field-grid{grid-template-columns:1fr}.checkout-panel .primary{width:100%}
  .bag-dialog{padding:22px}.primary{min-height:44px}.quantity button{height:36px;width:36px}
  html[lang=th] .hero-headline{font-size:34px}
}
@media(max-width:380px){.icon-link{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
