:root{--white:#FFFFFF;--grey:#ECEBE6;--dark:#1F1E1C;--sage:#8B9A7C;}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#deddd8;color:var(--dark);font-family:'Jost','Taipei Sans TC','Noto Sans TC',sans-serif;font-size:15px;-webkit-font-smoothing:antialiased;}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button,select,input{font:inherit;color:inherit}
button,a{touch-action:manipulation}
button{border:0;background:none;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--sage);outline-offset:4px}
img{display:block;width:100%;height:100%;object-fit:contain}
h1,h2,h3,p{margin:0}
h1{font-size:36px;line-height:1.35;letter-spacing:-1.2px}
h2{font-size:26px;line-height:1.4}
h3{font-size:18px}
p{line-height:1.8;color:#777872}


.shell{width:100%;max-width:430px;min-height:100vh;margin:auto;background:white;overflow:clip}
header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #eeedea}
header .brand{font-size:16px;font-weight:700;letter-spacing:.3px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.hamb{width:44px;height:44px;display:grid;place-content:center;gap:6px}
.hamb i{width:21px;height:1px;background:var(--dark);transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .25s ease}
.hamb.open i:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamb.open i:nth-child(2){opacity:0}
.hamb.open i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.menu{padding:20px 24px;background:var(--grey)}
.menu a{display:block;text-align:left;padding:12px 0;width:100%;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.menu a.is-active{color:#44513a}
.eyebrow{font-size:11px;letter-spacing:2px;color:#7f8975;text-transform:uppercase;margin-bottom:20px}
.dot:before{content:'';display:inline-block;width:5px;height:5px;background:var(--sage);border-radius:50%;margin-right:9px;vertical-align:middle}
.intro{padding:42px 24px 28px}
.intro p{margin-top:17px;font-size:14px}
.intro h1,.intro .cat-photo b{font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}

.categories-a{padding:0 24px 40px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cat-photo{position:relative;text-align:left;background:var(--grey);min-width:0;overflow:hidden;padding:18px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.cat-photo:first-child{grid-column:span 2;border-radius:62px 6px 6px 6px;height:228px;padding:23px}
.cat-photo:first-child img{height:145px}
.cat-photo:nth-child(2){border-radius:6px 6px 6px 35px;height:216px}
.cat-photo:nth-child(3){height:216px;border-radius:6px 40px 6px 6px}
.cat-photo:nth-child(4){grid-column:span 2;display:flex;align-items:center;height:114px;border-radius:6px}
.cat-photo:nth-child(4) img{width:40%;height:100%}
.cat-photo img{height:140px;transition:transform .3s}
.cat-photo:hover img{transform:scale(1.04)}
.cat-photo b{font-size:20px;display:block}
.cat-photo small{color:#808975;letter-spacing:1px;font-size:10px;font-family:'Jost',sans-serif}
.cat-photo .arrow{position:absolute;right:18px;bottom:20px;font-size:22px}

.catalog{padding:38px 24px 55px;scroll-margin-top:12px}
.catalog-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:23px}
.catalog-head h2{font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.count{font-size:12px;color:#8a8b84;font-family:'Jost',sans-serif}
.filters{display:flex;gap:8px;overflow:auto;padding:2px 0 12px;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.filters button{flex:none;padding:11px 15px;border:1px solid #e2e1db;border-radius:28px;font-size:13px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.filters button.selected{background:var(--dark);color:#fff;border-color:var(--dark)}
.subfilters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:4px 0 14px;scrollbar-width:none}
.subfilters::-webkit-scrollbar{display:none}
.subfilters button{flex:none;white-space:nowrap;padding:10px;font-size:12px;color:#73776b;border-bottom:1px solid transparent;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.subfilters button.selected{border-color:var(--sage);color:var(--dark)}
.sort-row{display:flex;justify-content:space-between;align-items:center;margin:14px 0 23px;font-size:12px;color:#7e7e77}
.sort-row select{max-width:175px;background:transparent;border:0;font-size:13px;padding:10px 0;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 14px}
.product{text-align:left;min-width:0;display:block}
.product-photo{aspect-ratio:1;background:#f2f1ed;padding:13px;margin-bottom:13px}
.product .brandline{font-size:11px;color:#888981;display:block;margin-bottom:4px;font-family:'Jost',sans-serif}
.product h3{font-size:16px;font-weight:500;line-height:1.45;overflow-wrap:anywhere;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.product .name{font-size:12px;color:#777;margin-top:3px;line-height:1.5;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.price{font-size:14px;margin-top:9px;display:block;letter-spacing:.3px;font-family:'Jost',sans-serif}
.price em{font-style:normal;font-size:10px;color:#94958c;margin-left:5px}
.notice{font-size:11px;color:#909188;margin-top:30px;line-height:1.7}

.consult{background:var(--dark);color:white;text-align:center;padding:34px 28px}
.consult h2{font-size:20px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.consult p{color:#b8b8b0;margin:10px 0 18px;font-size:13px}
.pill{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:12px 24px;border-radius:30px;background:var(--dark);color:white;font-family:'Jost',sans-serif}
.consult .pill{background:white;color:var(--dark)}
footer{background:var(--grey);padding:45px 24px 34px}
footer .brand{font-size:17px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
footer .eyebrow{margin:15px 0 6px;color:#999}
footer p{font-size:13px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.socials{display:flex;gap:12px;margin:28px 0}
.socials a{border:1px solid #d5d4cf;width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6d6e67}
.socials a svg{width:16px;height:16px;display:block}
footer nav{display:grid;gap:15px;font-size:14px;color:#6d6e67;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
footer nav a.is-active{color:var(--dark)}
footer small{display:block;font-size:11px;color:#999;margin-top:35px}

.searchbox{display:flex;border-bottom:1px solid #bfc3b7;align-items:center;gap:10px;padding:10px 0}
.searchbox input{width:100%;border:0;outline:0;padding:5px;background:none;font-size:14px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}

.back{padding:20px 24px;font-size:13px;color:#777;display:block;min-height:48px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;background:#f2f1ed}
.gallery::-webkit-scrollbar{display:none}
.gallery .slide{min-width:100%;aspect-ratio:1.1;scroll-snap-align:start;padding:28px}
.thumbs{display:flex;gap:10px;padding:15px 24px}
.thumbs button{width:60px;height:52px;padding:5px;background:#f2f1ed;border:1px solid transparent}
.thumbs button.active{border-color:var(--sage)}
.detail-copy{padding:26px 24px 40px}
.detail-copy h1{font-size:32px;margin-top:10px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.detail-copy h2{font-size:18px;margin-top:8px;font-weight:400;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.detail-copy .price{font-size:23px;margin:22px 0 7px}
.detail-copy>p{margin-top:24px;font-size:14px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.features{padding:0;list-style:none;margin:27px 0}
.features li{padding:16px 0;border-top:1px solid #e6e5df;font-size:14px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.features li:before{content:'•';color:var(--sage);margin-right:12px}
.detail-copy .pill{width:100%}
.related{padding:6px 0 38px}
.related h2{font-size:17px;font-weight:400;margin:0 24px 16px;padding-left:13px;border-left:2px solid var(--sage);font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.related-rail{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:0 24px}
.related-rail::-webkit-scrollbar{display:none}
.related-rail .product{flex:0 0 132px}
.related-rail .product-photo{aspect-ratio:1}

.dialog-shade{position:fixed;inset:0;background:#0007;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px}
.dialog{background:white;border-radius:25px 4px 4px 4px;padding:32px 24px;max-width:350px;width:100%}
.dialog h2{font-size:24px;margin:13px 0;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.dialog p{font-size:14px;margin-bottom:24px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.dialog .pill{width:100%}
.empty{grid-column:span 2;padding:35px 0;color:#888;text-align:center;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}

/* ---- Version D ---- */
.d .intro-d{padding:35px 24px 28px}
.d .intro-d h1{font-size:34px}
.d .intro-d .eyebrow{margin-bottom:15px}
.d .intro-d p{margin-top:10px}
.d .categories-d{padding-bottom:38px;gap:12px}
.d .cat-photo{background:#f1f1ec}
.d .cat-photo img{mix-blend-mode:normal}
.d .cat-photo:first-child{height:242px;border-radius:58px 5px 5px 5px;padding:20px}
.d .cat-photo:first-child img{height:144px;margin-bottom:8px}
.d .cat-hint{display:block;font-size:11px;color:#787b71;margin-top:7px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.d .cat-photo:first-child .arrow{bottom:38px}
.d .cat-photo:nth-child(2),.d .cat-photo:nth-child(3){height:211px}
.d .cat-photo:nth-child(2) img,.d .cat-photo:nth-child(3) img{height:131px}
.d .cat-photo b{font-size:20px;margin-top:4px}
.d .cat-photo small{font-size:9px;letter-spacing:.7px}
.featured-d{padding:30px 24px 34px;background:var(--grey);border-radius:25px 0 0 0}
.feature-image{display:block;width:100%;height:205px;border-radius:42px 5px 5px 5px;overflow:hidden;position:relative;text-align:left}
.feature-image img{object-fit:cover;object-position:center 40%}
.d .catalog{padding-top:42px}
.search-d{margin:16px 0}
.search-d .searchbox{border:1px solid #d9dcd2;border-radius:8px;padding:8px 12px;min-height:44px}
.search-d input{min-width:0;font-size:13px}
.d .catalog-head h2{font-size:17px;font-weight:400}
.d .catalog-head{margin-bottom:12px}
.d .filters{gap:6px}
.d .filters button{padding:10px 12px}
.d .product-photo{background:#fff;border:1px solid #eeeee9;border-radius:4px;aspect-ratio:1;padding:12px}
.d .product-photo img{mix-blend-mode:normal}
.d .grid{gap:30px 14px}
.d .product h3{font-size:16px}
.d .gallery,.d .thumbs button{background:white}
.d .gallery{border-bottom:1px solid #eeeee9}
.d .thumbs button{border:1px solid #eeeee9}
.d .thumbs button.active{border-color:var(--sage)}
.d .gallery img{mix-blend-mode:normal}
.d .sort-row{margin-top:9px}
/* D refinement: featured product leads the page; brands filter the catalog. */
.d .featured-d{border-radius:0;padding:30px 24px 28px}
.d .feature-image{height:258px;border-radius:58px 5px 5px 5px}
.d .feature-copy{margin-top:20px}
.d .intro-d{padding-top:38px}
.d .catalog{border-top:1px solid #eeeee9;padding-top:35px}
.brand-navigation{padding:0 0 24px;margin-bottom:22px;border-bottom:1px solid #e5e6df}
.brand-label{font-size:13px;color:#767d6e;margin-bottom:12px;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.brand-options{display:flex;flex-wrap:wrap;gap:8px}
.brand-options button{min-height:42px;padding:9px 14px;border:1px solid #dedfd8;border-radius:5px;font-size:13px;font-family:'Jost',sans-serif}
.brand-options button.active{background:#e9ede4;border-color:var(--sage);color:#44513a}
/* D detail pass: quiet white hero, concise title, unclipped category text. */
.d .featured-d{background:#fff;padding-bottom:12px}
.d .intro-d{padding-top:28px;padding-bottom:25px}
.d .cat-photo:first-child{height:auto;min-height:265px;padding-bottom:22px}
.d .cat-photo:first-child>div{padding-right:25px}
.d .cat-photo:first-child .cat-hint{font-size:12px;line-height:1.8;margin-top:8px}
.d .cat-photo:first-child .arrow{bottom:23px;right:18px}
/* D: white category tiles on a warm-gray section and a linked detail brand. */
.d .category-section-d{background:var(--grey);border-radius:26px 0 0 0;margin-top:24px}
.d .category-section-d .intro-d{padding-top:34px}
.d .category-section-d .cat-photo{background:#fff}
.d .category-section-d .categories-d{padding-bottom:34px}
.d .feature-copy{display:block}
.d .feature-copy h2{font-size:27px;margin-top:5px;font-weight:400;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.d .feature-copy p{font-size:14px;margin-top:7px;color:#7a7c73;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.d .featured-d{padding-bottom:7px}
.d .detail-brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:7px 13px;border:1px solid #dce0d4;border-radius:5px;color:#65735a;font-size:13px;letter-spacing:.5px;margin-bottom:7px;font-family:'Jost',sans-serif}
.d .detail-brand:hover{background:#edf0e8}
/* D five-product, manual swipe carousel. */
.d .carousel-d{padding:28px 0 8px}
.carousel-heading{display:flex;justify-content:space-between;align-items:center;padding:0 24px 18px}
.carousel-heading .eyebrow{margin:0}
.carousel-count{font-size:12px;color:#8b8e83;letter-spacing:1px;font-family:'Jost',sans-serif}
.feature-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.feature-track::-webkit-scrollbar{display:none}
.feature-slide{flex:0 0 100%;min-width:0;padding:0 24px;scroll-snap-align:start;scroll-snap-stop:always}
.d .feature-slide .feature-image{height:auto;aspect-ratio:1.28;border-radius:48px 5px 5px 5px}
.d .feature-slide .product-shot{background:#f4f4f0;padding:25px}
.d .feature-slide .product-shot img{object-fit:contain;mix-blend-mode:normal}
.d .feature-slide .feature-copy{margin-top:19px}
.d .feature-slide h2{font-size:28px;font-weight:400;margin:0;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.d .feature-slide .feature-copy p{font-size:13px;min-height:24px;margin-top:6px;line-height:1.7;font-family:'Taipei Sans TC','Noto Sans TC',sans-serif}
.feature-link{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:10px 22px;border-radius:24px;background:var(--dark);color:#fff;font-size:12px;letter-spacing:.3px;font-family:'Jost',sans-serif}
.feature-media{position:relative}
.feature-dots{display:flex;gap:6px;position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:8px 12px;border-radius:30px;background:rgba(20,19,17,.4);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.feature-dots button{width:26px;height:26px;display:grid;place-items:center}
.feature-dots span{width:6px;height:6px;background:rgba(255,255,255,.55);border-radius:10px;transition:width .2s,background .2s}
.feature-dots [aria-current=true] span{width:22px;background:#fff}
/* Infinite manual carousel: dots overlaid on the photo, right swipe advances. */
.d .feature-track{display:block;overflow:hidden;scroll-snap-type:none;touch-action:pan-y;user-select:none}
.d .feature-slide[hidden]{display:none}
.d .feature-slide img{-webkit-user-drag:none}
.d .feature-slide .feature-copy p{min-height:24px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
