/* UI craft guidance: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
/* Storefront only: keep product artwork and existing status meaning. */
#main #storefront-home .hero h1::before,#main #storefront-home .home-section-title h2::before,#main #storefront-catalog .order-filters button[data-catalog-filter="all"]::before{content:none;display:none}
#main #storefront-home .hero h1{font-size:26px!important;line-height:1.25;font-style:normal;font-weight:600;letter-spacing:0;text-shadow:none;white-space:normal;overflow-wrap:anywhere}
#main #storefront-home .hero p{font-size:13px!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
#main #storefront-home .hero-cta{border:1px solid #d9d6bb;border-radius:10px;background:#f6ebc8;color:#26372d;box-shadow:none;font-weight:600}
#main #storefront-home .trust-strip{border:1px solid #e0e6e0;border-radius:16px;background:#fff;box-shadow:none}
#main #storefront-home .trust-link{min-width:0;min-height:64px;padding:8px 2px;gap:4px}
#main #storefront-home .trust-link b{font-size:12px;font-weight:600;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
#main #storefront-home .promo-panel{border:1px solid #e0e6e0;border-radius:16px;background:#fff;box-shadow:none}
#main #storefront-home .promo-heading{min-height:44px;height:auto;padding:8px 12px;border-bottom:1px solid #e9ede9;background:#fff;color:#26372d;box-shadow:none;gap:8px;flex-wrap:wrap}
#main #storefront-home .promo-heading strong{color:#26372d;font-size:14px;font-weight:600}
#main #storefront-home .promo-heading .promo-countdown,#main #storefront-home .promo-heading .promo-countdown-label{color:#56645a;font-size:12px;line-height:1.4;font-weight:400;white-space:normal}
#main #storefront-home .promo-time b{background:#f3f5f2;color:#34473a;box-shadow:none}
#main #storefront-home .promo-body{min-height:76px;padding:12px;gap:8px;background:#fff}
#main #storefront-home .promo-body .promo-icon{display:grid;place-items:center;width:36px;height:36px;min-width:36px;border:1px solid #dbe6db;border-radius:8px;background:#f3f7f2;color:#236344;box-shadow:none}
#main #storefront-home .promo-body .promo-icon .ui-icon{width:20px;height:20px;stroke:currentColor;filter:none}
#main #storefront-home .promo-body :is(b,strong){color:#26372d;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#main #storefront-home .promo-body :is(small,.promo-offer span){color:#56645a;font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
#main #storefront-home .promo-body .promo-offer em{color:#086b45;font-size:18px;line-height:1.2;font-weight:600}
#main #storefront-home .promo-body button{min-height:44px;max-width:42%;padding:8px 12px;border:1px solid #cbd8cc;border-radius:10px;background:#fff;color:#086b45;box-shadow:none;font-size:12px;font-weight:600;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
#main #storefront-home .home-section-title{gap:8px;padding:16px 0 12px}
#main #storefront-home .home-section-title h2{min-width:0;font-size:18px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
#main #storefront-home .home-section-title h2 em{font-style:normal;color:inherit}
#main #storefront-home .home-section-title button{min-height:44px;font-size:13px;font-weight:500}
#main #storefront-home .home-products{gap:8px;align-items:stretch}
#main #storefront-home .home-products .mini-product{min-width:0;padding:6px 6px 8px;border:1px solid #e0e6e0;border-radius:12px;background:#fff;background-image:none;box-shadow:none}
#main #storefront-home .home-products .mini-product h3{min-width:0;height:auto;max-height:none;margin:8px 0 4px;color:#26372d;font-size:12px;font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#main #storefront-home .home-products .mini-product>small,#main #storefront-home .home-products .mini-product .round-summary{color:#56645a;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#main #storefront-home .home-products .mini-product .home-value{color:#185b3d;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#main #storefront-home .home-products .mini-price{min-height:44px;height:auto;padding:8px 4px;border-radius:8px;box-shadow:none;font-size:12px;font-weight:600;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
#main #storefront-catalog .catalog-search{min-height:48px;border:1px solid #dce4dc;border-radius:12px;background:#fff;box-shadow:none}
#main #storefront-catalog .catalog-search input{min-width:0;font-size:16px}
#main #storefront-catalog .category-chips button{min-height:52px;border:1px solid #dfe6df;border-radius:12px;background:#fff;color:#34463a;box-shadow:none;font-weight:500}
#main #storefront-catalog .category-chips button.active{border-color:#086b45;background:#086b45;color:#fff;box-shadow:none}
#main #storefront-catalog .order-filters button{min-height:44px;border:1px solid #dce5dd;border-radius:10px;background:#fff;color:#34463a;box-shadow:none;font-weight:500;white-space:normal;overflow-wrap:anywhere}
#main #storefront-catalog .order-filters button.active{border-color:#afcdb7;background:#edf5ef;color:#075c3b;box-shadow:none}
#main #storefront-catalog .catalog-grid .card{margin-bottom:12px!important;border:1px solid #e0e6e0;border-radius:16px;background:#fff;background-image:none;box-shadow:none}
#main #storefront-catalog .catalog-grid .cardbody{min-width:0;padding:4px!important}
#main #storefront-catalog .catalog-grid .cardbody h3{margin:0 0 8px;color:#26372d;font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#main #storefront-catalog .catalog-grid .value-box{min-width:0;min-height:36px;padding:8px;border:1px solid #e0e6e0;border-radius:8px;background:#f6f8f5;box-shadow:none}
#main #storefront-catalog .catalog-grid .value-box small{color:#56645a;font-size:12px;font-weight:400;white-space:normal}
#main #storefront-catalog .catalog-grid .value-box .price,#main #storefront-catalog .catalog-grid .value-box .price :is(.money-amount,.money-symbol,.money-value){color:#185b3d;font-weight:600;font-variant-numeric:tabular-nums}
#main #storefront-catalog .catalog-grid .catalog-progress-label{color:#56645a;font-size:12px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
#main #storefront-catalog .catalog-grid .cardbody .wide{min-height:44px;height:auto;border-radius:10px;box-shadow:none;font-size:14px!important;font-weight:600;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
#main .detail-screen .detail-top{background:#07563a;box-shadow:none}
#main .detail-screen .product-detail-page .detail-visual{border-color:#dfe5dc;border-radius:16px;box-shadow:none}
#main .detail-screen .product-detail-page :is(.detail-intro,.detail-info-tabs){border:1px solid #e0e6e0;border-radius:16px;background:#fff;box-shadow:none}
#main .detail-screen .product-detail-page .detail-intro{padding:16px}
#main .detail-screen .product-detail-page .detail-intro h2{font-size:20px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#main .detail-screen .product-detail-page .detail-entry-terms{display:grid;gap:6px;min-width:0;margin:0 0 12px;padding:0 2px;color:#43584a}
#main .detail-screen .product-detail-page .detail-entry-price{color:#087448;font-size:15px;line-height:21px;font-weight:700}
#main .detail-screen .product-detail-page .detail-entry-terms p{display:flex;align-items:baseline;gap:8px;min-width:0;margin:0;font-size:12px;line-height:18px}
#main .detail-screen .product-detail-page .detail-entry-terms p>span:first-child{flex:none;color:#657269}
#main .detail-screen .product-detail-page .detail-entry-terms p>span:last-child{min-width:0;overflow-wrap:anywhere}
#main .detail-screen .product-detail-page :is(.detail-round-card,.detail-value){padding:12px;border:1px solid #e0e6e0;border-radius:10px;background:#f6f8f5;background-image:none;box-shadow:none}
#main .detail-screen .product-detail-page :is(.detail-value,.detail-round-card) :is(.money-amount,.money-symbol,.money-value,.round-summary){color:#185b3d;font-weight:600;font-variant-numeric:tabular-nums}
#main .detail-screen .product-detail-page :is(.detail-progress-head h3,.detail-info-tab,.detail-info h3){font-weight:600}
#main .detail-screen .product-detail-page .detail-info-panel p[data-detail-field]{max-width:21em;text-wrap:wrap}
#main .detail-screen .product-detail-page .detail-info h3::before{content:none;display:none}
#main .detail-screen .product-detail-page .detail-info-tab[aria-selected="true"]::after{background:#086b45}
#main .detail-screen .product-detail-page .detail-history{width:auto;min-height:44px;gap:8px;margin:4px 0 0;padding:8px 0;border:0;border-radius:0;background:transparent;color:#086b45;font-weight:600}
#main .detail-screen .product-detail-page .detail-action{padding:8px 14px;background:#fff;border-color:#e0e6e0;box-shadow:none}
#main .detail-screen .product-detail-page .detail-action button:not(:disabled){min-height:48px;font-size:15px}
#main .detail-screen .product-detail-page .detail-action button:disabled{border-color:#dfe5df;background:#e9eeea;color:#56645a;box-shadow:none;opacity:1}
#main :is(#storefront-home,#storefront-catalog,.detail-screen) :is(button,input):focus-visible{outline:2px solid #087448;outline-offset:2px}
@media(max-width:359px){#main #storefront-home .promo-body{gap:8px;padding:12px}#main #storefront-home .promo-body button{max-width:40%}#main #storefront-home .hero h1{font-size:24px!important}#main #storefront-catalog .catalog-grid .cardbody h3{font-size:14px}}
#main #storefront-home .product-status-badge[data-sale-status="selling"],#main #storefront-catalog .product-status-badge[data-sale-status="selling"],#main .detail-screen .product-status-badge[data-sale-status="selling"]{border:1px solid #fff;background:#086b45;color:#fff;box-shadow:none;font-size:11px;font-weight:600}
#main .detail-screen .product-detail-page .detail-kicker{gap:8px;padding:12px;border:1px solid #e0e6e0;border-radius:10px;background:#f6f8f5;background-image:none;box-shadow:none}
#main .detail-screen .product-detail-page .detail-kicker strong,#main .detail-screen .product-detail-page .detail-kicker strong :is(.money-amount,.money-symbol,.money-value){color:#185b3d;font-weight:600;font-variant-numeric:tabular-nums}
#main .detail-screen .product-detail-page:has(.detail-result) .detail-action button:not(:disabled){border-color:#cbd8cc;background:#fff;color:#185b3d}
/* Commerce accents: product images remain the focus; price and purchase actions use one restrained red. */
#main #storefront-home .promo-panel{border-color:#ead9c5;background:#fffdf9}
#main #storefront-home .promo-heading{border-color:#f0e4d6;background:#fff6e8}
#main #storefront-home .promo-body{background:#fffdf9}
#main #storefront-home .promo-body .promo-icon{border-color:#ead9c5;background:#fff5e5;color:#a92d25}
#main #storefront-home .promo-body button{border-color:#e5c6b5;background:#fff8ef;color:#a32821}
#main #storefront-home .promo-body .promo-offer em{color:#b72a24}
#main #storefront-home .home-products .mini-product .home-value,#main #storefront-home .home-products .mini-product .home-value :is(.money-amount,.money-symbol,.money-value){color:#ad2823}
#main #storefront-catalog .catalog-grid .value-box{border-color:#efe3d0;background:#fff9ef}
#main #storefront-catalog .catalog-grid .value-box .price,#main #storefront-catalog .catalog-grid .value-box .price :is(.money-amount,.money-symbol,.money-value){color:#ad2823}
#main #storefront-home .product-status-badge[data-sale-status="selling"],#main #storefront-catalog .product-status-badge[data-sale-status="selling"],#main .detail-screen .product-status-badge[data-sale-status="selling"]{border-color:#fff;background:#b52822;color:#fff;box-shadow:none}
#main .detail-screen .product-detail-page .detail-kicker{border-color:#efe3d0;background:#fff9ef}
#main .detail-screen .product-detail-page .detail-kicker strong,#main .detail-screen .product-detail-page .detail-kicker strong :is(.money-amount,.money-symbol,.money-value){color:#ad2823}
#main .detail-screen .product-detail-page:has(.detail-result) .detail-action button:not(:disabled){border-color:#cbd8cc;background:#fff;color:#185b3d}
#main #storefront-catalog .order-filters button::after{content:none;display:none}
#main #storefront-catalog .order-filters button.active{border:1px solid #e3c9a0;background:#fff6e8;color:#81451f;box-shadow:none}

/* Product cards: two readable columns leave room for real names and prices. */
#main #storefront-home .promo-panel{margin-bottom:8px}
#main #storefront-home .home-section-title{padding:4px 0 8px}
#main #storefront-home .home-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#main #storefront-home .home-products .mini-product{padding:8px;text-align:left}
#main #storefront-home .home-products .mini-art{border-radius:8px}
#main #storefront-home .home-products .mini-product h3{display:block;flex:0 0 auto;min-height:2.8em;margin:8px 0 4px;padding:0;background:none;text-align:left;font-size:14px;line-height:1.4}
#main #storefront-home .home-products .mini-product .round-summary{margin:0 0 8px;text-align:left;font-size:12px}
#main #storefront-home .home-products .mini-product>small{margin:0;font-size:12px;line-height:1.4}
#main #storefront-home .home-products .mini-product .home-value{margin:2px 0 10px;font-size:18px;line-height:1.25;text-align:left}
#main #storefront-home .home-products .mini-price{width:auto;margin:auto 0 0}
#main #storefront-home .home-products .mini-tag{top:12px;left:12px}
@media(max-width:359px){
  html:lang(zh) #main #storefront-home .promo-body{gap:6px;padding-inline:10px}
  html:lang(zh) #main #storefront-home .promo-body .promo-icon{width:32px;height:32px;min-width:32px}
  html:lang(zh) #main #storefront-home .promo-body button{flex:0 0 auto;max-width:none;padding-inline:8px;white-space:nowrap}
}

/* Selection controls keep full touch areas and simple, consistent surfaces. */
#picker .random-counter{width:min(100%,168px)!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:10px!important;background:#fff!important}
#picker .random-counter button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:0!important;border-radius:10px!important;background:#f3f7f2!important;color:#075c39!important;box-shadow:none!important}
#picker .random-counter input{flex:1;min-width:0;width:auto!important;height:44px!important;min-height:44px!important;font-size:16px!important}
#picker .random-result:not([hidden]){border-color:#e5d9be!important;background:#fffaf0!important;box-shadow:none!important}
#picker .random-result strong:before{background:#08784b}
#picker .random-result-numbers span{border-color:#cbdccd;background:#f3f8f2;color:#185b3d;font-weight:600;box-shadow:none}
#picker :is(#selectedPreview,#selectedList) button.chip::before{background:#eef7ed}
@media(max-width:350px){
  html:lang(zh) #picker .purchase-card>div:last-child{grid-template-columns:minmax(80px,1fr) minmax(96px,1.2fr);column-gap:6px}
  html:lang(zh) #picker .purchase-card b{white-space:nowrap}
  html:lang(zh) #picker .purchase-card p:last-of-type{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:0 4px;text-align:left}
  html:lang(zh) #picker .purchase-card #purchaseProgress{white-space:nowrap}
}

/* Align the content of each purchase step with the other mobile pages.
   The full-width header and fixed action bar retain their own sizing. */
#main #storefront-catalog .catalog-controls{padding-inline:14px}
#picker .flow-round{margin-inline:6px}
#picker #pickStep,#picker #reviewStep:not([hidden]),#picker #checkout:not([hidden]){padding-inline:6px}

/* One outer edge and a steady vertical rhythm throughout the home screen. */
#main #storefront-home .home-top{padding-inline:14px}
#main #storefront-home .hero{padding-inline:14px}
#main #storefront-home .trust-strip{margin-bottom:12px}
#main #storefront-home .promo-panel{margin:0 0 12px;padding:0;gap:0}
#main #storefront-home .promo-heading{padding-inline:12px}
#main #storefront-home .promo-body{border:0;border-radius:0;box-shadow:none}
#main #storefront-home .home-section-title{margin:0;padding:0 0 8px}
#main #storefront-home .home-products .mini-product h3{min-height:0}

/* Home commerce artwork: generated illustrations support live, accessible controls. */
#main #storefront-home .hero .hero-cta.winner-ticker{gap:10px;min-height:64px;padding:10px 12px;border:1px solid #dec99a;border-radius:12px;background:#fff8e5;box-shadow:0 2px 8px #001c101a}
#main #storefront-home .winner-ticker-avatars{padding:0}
#main #storefront-home .winner-ticker-avatar{width:30px;height:30px;margin-left:-4px;border:2px solid #fff;background:#e9f1e7}
#main #storefront-home .winner-ticker-avatar:first-child{margin-left:0}
#main #storefront-home .winner-ticker-copy{gap:3px}
#main #storefront-home .winner-ticker-count{color:#4b4d36;font-size:12px;font-weight:600;line-height:16px}
#main #storefront-home .winner-ticker-line{color:#344538;font-size:12px;font-weight:500;line-height:17px}
#main #storefront-home .winner-ticker-line .winner-ticker-amount{color:#a62520;font-weight:700}
#main #storefront-home .winner-ticker-arrow{color:#146342;font-size:22px}
#main #storefront-home .trust-strip{padding:8px 0;border-color:#e4e8e0;background:#fff;overflow:hidden}
#main #storefront-home .trust-strip>.trust-link{min-height:84px;padding:4px 2px;gap:2px;border-right-color:#e8e8df}
#main #storefront-home .trust-strip>.trust-link>span{display:block;flex:none;width:58px;height:58px;min-height:0;background-image:url('/home-commerce-icons-v1.png');background-repeat:no-repeat;background-size:200% 200%}
#main #storefront-home .trust-strip>.trust-link .trust-art{display:none}
#main #storefront-home #homePointsDraw>span{background-position:0 0}
#main #storefront-home #homeNumberTrends>span{background-position:100% 0}
#main #storefront-home #homePastDraws>span{background-position:0 100%}
#main #storefront-home #homeOrderLookup>span{background-position:100% 100%}
#main #storefront-home .trust-strip>.trust-link b{font-size:12px;line-height:17px;font-weight:600;color:#233a2c}
#main #storefront-home .promo-panel{overflow:hidden;border-color:#eadbc5;background:#fffdf8}
#main #storefront-home .promo-heading{min-height:40px;padding:8px 14px;border-bottom:1px solid #eee2d2;background:#fff7e9}
#main #storefront-home .promo-heading strong{color:#26372d;font-size:14px}
#main #storefront-home .promo-body{align-items:center;gap:10px;min-height:92px;padding:12px;background:#fffdf8}
#main #storefront-home .promo-body .promo-icon{flex:0 0 58px;width:58px;height:58px;min-width:0;border:0;border-radius:0;background:transparent url('/home-offer-gift-v1.png') center / 145% auto no-repeat;box-shadow:none}
#main #storefront-home .promo-body .promo-icon .ui-icon{display:none}
#main #storefront-home .promo-body>div:nth-child(2){display:flex;flex:1 1 0;flex-direction:column;gap:3px;min-width:0}
#main #storefront-home .promo-body>div:nth-child(2)>b{color:#26372d;font-size:12px;line-height:17px}
#main #storefront-home .promo-body .promo-offer{gap:2px 4px}
#main #storefront-home .promo-body .promo-offer em{color:#ae2924;font-size:19px;line-height:1.15}
#main #storefront-home .promo-body button{flex:0 0 auto;min-height:44px;max-width:36%;padding:8px 10px;border-color:#e4c3ad;border-radius:10px;background:#fff8ef;color:#a32b24;white-space:normal}
@media(max-width:350px){
  #main #storefront-home .hero .hero-cta.winner-ticker{gap:6px;padding:9px 8px}
  #main #storefront-home .winner-ticker-avatar{width:25px;height:25px}
  #main #storefront-home .trust-strip>.trust-link>span{width:52px;height:52px}
  #main #storefront-home .trust-strip>.trust-link{min-height:78px}
  #main #storefront-home .promo-body{gap:8px;padding:10px}
  #main #storefront-home .promo-body .promo-icon{flex-basis:48px;width:48px;height:48px}
  #main #storefront-home .promo-body button{padding-inline:8px;max-width:36%}
}

/* The text rows share heights only when a neighbour needs the space. */
@supports (grid-template-rows:subgrid){
  #main #storefront-home .home-products{column-gap:10px;row-gap:0}
  #main #storefront-home .home-products .mini-product{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;margin-bottom:10px}
  #main #storefront-home .home-products .mini-art{grid-row:1}
  #main #storefront-home .home-products .mini-product h3{grid-row:2}
  #main #storefront-home .home-products .mini-product .round-summary{grid-row:3}
  #main #storefront-home .home-products .mini-product>small{grid-row:4}
  #main #storefront-home .home-products .mini-product .home-value{grid-row:5}
  #main #storefront-home .home-products .mini-price{grid-row:6}
}

/* A unified commerce storefront; product and campaign content stays live. */
#main:has(> #storefront-home){background:#f8f8f4}
#main #storefront-home .hero{
  background-color:#003823;
  background-image:linear-gradient(90deg,rgba(0,42,25,.32),rgba(0,42,25,0) 58%),url('/home-hero-commerce-v2.png');
  background-position:center,center;
  background-size:100% 100%,cover;
  background-repeat:no-repeat;
}
#main #storefront-home .hero::before,#main #storefront-home .hero::after{content:none;display:none}
#main #storefront-home .hero h1{color:#ffe59d!important}
#main #storefront-home .hero p{color:#f2f7ef;text-shadow:none}
#main #storefront-home .home-section-title h2{color:#173c2a}
#main #storefront-home .home-section-title button{color:#315946}
#main #storefront-home .home-products .mini-product{border-color:#e2e7df;border-radius:14px;background:#fffefa}
#main #storefront-home .home-products .mini-art{border-radius:9px}
#main #storefront-home .home-products .mini-product h3{color:#193b2b}
#main #storefront-home .home-products .mini-price{border-radius:9px}
body:has(#storefront-home) .mobile-nav{border-color:#e2e6dd;background:#fffefa;box-shadow:0 -2px 10px #153a2310}
body:has(#storefront-home) .mobile-nav button.active{background:#e6f1e2;color:#07593b}
body:has(#main #storefront-home .home-top) .install-float{top:calc(64px + env(safe-area-inset-top));border-color:#d8bb69;background:#075238;box-shadow:0 2px 8px #001d1150}

/* A live winner notice and a voucher-shaped offer, inspired by the reference. */
#main #storefront-home .hero .hero-cta.winner-ticker{background:linear-gradient(180deg,#fff3cf,#ffe6a8);border-color:#ebcd86;box-shadow:0 2px 6px #2c220e24}
#main #storefront-home .winner-ticker-count{color:#65480d;font-weight:700}
#main #storefront-home .winner-ticker-line{color:#65480d;font-weight:600}
#main #storefront-home .winner-ticker-line .winner-ticker-amount{color:#b51e1b;font-weight:750}
#main #storefront-home .winner-ticker-arrow{color:#805807}

#main #storefront-home .promo-panel{position:relative;isolation:isolate;overflow:visible;border:1px solid #f2c995;border-radius:14px;background:#fff0de;box-shadow:0 2px 6px #7545121a}
#main #storefront-home .promo-panel::before,#main #storefront-home .promo-panel::after{content:"";position:absolute;z-index:2;top:50%;box-sizing:border-box;width:20px;height:20px;border:1px solid #f2c995;border-radius:50%;background:#f8f8f4;transform:translateY(-50%);pointer-events:none}
#main #storefront-home .promo-panel::before{left:-11px;clip-path:inset(0 0 0 50%)}
#main #storefront-home .promo-panel::after{right:-11px;clip-path:inset(0 50% 0 0)}
#main #storefront-home .promo-body{position:relative;align-items:center;gap:8px;min-height:88px;padding:10px 12px;border:0;border-radius:inherit;background:linear-gradient(110deg,#fff2e2,#ffe6c9);overflow:hidden}
#main #storefront-home .promo-body .promo-icon{flex:0 0 54px;width:54px;height:54px;min-width:54px;background-image:url('/home-offer-gift-v2.png')}
#main #storefront-home .promo-body>div:nth-child(2){display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:2px 4px;min-width:0}
#main #storefront-home .promo-body>div:nth-child(2)>strong:not(.promo-offer){grid-column:1/-1}
#main #storefront-home .promo-body #homeCouponTitle{grid-column:1/-1;color:#ad211b;font-size:13px;line-height:17px;font-weight:700}
#main #storefront-home .promo-body .promo-offer{grid-column:1/-1;display:flex;align-items:baseline;gap:2px 4px;line-height:1.15}
#main #storefront-home .promo-body .promo-offer span{color:#3b453b;font-size:13px;line-height:17px;font-weight:700;white-space:normal}
#main #storefront-home .promo-body .promo-offer em{color:#b51f1b;font-size:23px;line-height:1;font-weight:750}
#main #storefront-home .promo-body small{min-width:0;color:#647263;font-size:10px;line-height:14px;overflow-wrap:anywhere}
#main #storefront-home .promo-body .promo-heading{display:block;min-height:0;height:auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#main #storefront-home .promo-body .promo-heading>strong{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#main #storefront-home .promo-body .promo-countdown{display:flex;align-items:center;flex-wrap:wrap;gap:2px;color:#677465;font-size:10px;line-height:14px}
#main #storefront-home .promo-body .promo-countdown-label{color:#677465;font-size:10px;line-height:14px;font-weight:400}
#main #storefront-home .promo-body .promo-time{display:inline-flex;align-items:center;gap:1px}
#main #storefront-home .promo-body .promo-time[hidden]{display:none}
#main #storefront-home .promo-body .promo-time b{min-width:0;height:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#677465;font-size:10px;line-height:14px}
#main #storefront-home .promo-body .promo-time i{color:#677465;font-style:normal;font-size:10px;line-height:14px}
#main #storefront-home .promo-body #promoBrowse{position:relative;flex:0 0 auto;min-height:44px;max-width:36%;margin-left:8px;padding:8px 12px;border:1px solid #b82018;border-radius:10px;background:#c92720;color:#fff;font-size:12px;line-height:17px;font-weight:700}
#main #storefront-home .promo-body #promoBrowse::before{content:"";position:absolute;top:50%;left:-9px;height:calc(100% + 22px);border-left:1px dashed #e8ab7a;transform:translateY(-50%);pointer-events:none}

/* Keep the offer's terms and real expiry on their own readable lines. */
#main #storefront-home .promo-body>div:nth-child(2){display:flex;flex-direction:column;align-items:stretch;gap:2px}
#main #storefront-home .promo-body small{font-size:11px;line-height:15px}
#main #storefront-home .promo-body .promo-countdown,#main #storefront-home .promo-body .promo-countdown-label{font-size:11px;line-height:15px}
@media(max-width:350px){
  #main #storefront-home .promo-body{gap:6px;padding:10px 9px}
  #main #storefront-home .promo-body .promo-icon{flex-basis:42px;width:42px;height:42px;min-width:42px}
  #main #storefront-home .promo-body #homeCouponTitle{font-size:12px;line-height:16px}
  #main #storefront-home .promo-body .promo-offer span{font-size:12px;line-height:16px}
  #main #storefront-home .promo-body .promo-offer em{font-size:20px}
  #main #storefront-home .promo-body #promoBrowse{margin-left:6px;padding-inline:8px}
  #main #storefront-home .promo-body #promoBrowse::before{left:-7px}
}

/* Four full-size shopping shortcuts share a single aligned visual baseline. */
#main #storefront-home .trust-strip{padding:6px 0 4px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#main #storefront-home .trust-strip>.trust-link{min-height:96px;padding:2px 0;gap:0;border:0;background:transparent;box-shadow:none}
#main #storefront-home .trust-strip>.trust-link>span{width:72px;height:72px;background-image:url('/home-commerce-icons-v2.png');background-size:200% 200%}
#main #storefront-home .trust-strip>.trust-link b{font-size:13px;line-height:18px;color:#171f19;font-weight:700}
@media(max-width:350px){
  #main #storefront-home .trust-strip>.trust-link{min-height:86px}
  #main #storefront-home .trust-strip>.trust-link>span{width:62px;height:62px}
  #main #storefront-home .trust-strip>.trust-link b{font-size:12px;line-height:17px}
}

/* Let the banner end shortly after the live winner notice. */
#main #storefront-home .home-top + .hero{align-items:flex-start;min-height:0;padding-top:84px;padding-bottom:12px}
#main #storefront-home .trust-strip{margin-top:0}
#main #storefront-home .promo-panel{margin-bottom:8px}
#main #storefront-home .home-section-title{padding-bottom:4px}
@media(max-width:350px){
  #main #storefront-home .home-top + .hero{padding-top:80px}
}

/* The winner notice overlaps the edge of the banner without covering shortcuts. */
#main #storefront-home .home-top + .hero{padding-bottom:0;overflow:visible}
#main #storefront-home .hero #heroBrowse{position:relative;top:32px;z-index:2}
#main #storefront-home .trust-strip{margin-top:44px}
#main #storefront-home .trust-strip>.trust-link{min-height:84px}
#main #storefront-home .trust-strip>.trust-link>span{width:60px;height:60px}
#main #storefront-home .promo-body .promo-icon{flex-basis:44px;width:44px;height:44px;min-width:44px}
@media(max-width:350px){
  #main #storefront-home .trust-strip>.trust-link{min-height:78px}
  #main #storefront-home .trust-strip>.trust-link>span{width:54px;height:54px}
  #main #storefront-home .promo-body .promo-icon{flex-basis:36px;width:36px;height:36px;min-width:36px}
}

/* Lower the headline group while keeping the winner notice on the banner edge. */
#main #storefront-home .home-top + .hero{padding-top:96px}
#main #storefront-home .hero p{margin-bottom:1px!important}
@media(max-width:350px){#main #storefront-home .home-top + .hero{padding-top:92px}}

/* Keep title and subtitle inside the notice's existing gap without resizing the banner. */
#main #storefront-home .hero{--home-title-line:32.5px;--home-title-slot:43.5px}
#main #storefront-home .hero>div:first-child{position:relative;padding-top:var(--home-title-slot)!important}
#main #storefront-home .hero .home-hero-copy{position:absolute;top:0;left:0;box-sizing:border-box;width:52%;max-width:200px;text-align:left;transform:translateY(min(0px,calc(var(--home-title-slot) + 28px - 100%)))}
#main #storefront-home .hero #homeHeroTitle{position:static;box-sizing:border-box;width:100%;max-width:100%;height:auto;min-height:0;max-height:calc(var(--home-title-line)*2);margin:0!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#ffe59d!important;font-size:26px!important;font-weight:600;line-height:var(--home-title-line);text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#main #storefront-home .hero #homeHeroSubtitle{max-width:100%;max-height:34px;margin:4px 0 0!important;padding:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px!important;font-weight:400;line-height:17px;text-align:left;white-space:normal;overflow-wrap:break-word;word-break:normal}
html:lang(zh) #main #storefront-home .hero #homeHeroSubtitle{word-break:keep-all}
@media(max-width:350px){#main #storefront-home .hero{--home-title-line:30px;--home-title-slot:41px}#main #storefront-home .hero #homeHeroTitle{font-size:24px!important}}

/* The selected mode already names the action; retain the heading for assistive tech. */
#picker .random-panel .random-content h2{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
/* The bottom summary already reports zero; reveal the full list as soon as it has numbers. */
#picker .selected-overview:has(#selectedPreview:empty),#picker .selected-overview:has(#selectedPreview>.muted:only-child){display:none!important}

/* One consistent vector cue per catalog filter, aligned with its label. */
#main #storefront-catalog #catalogFilters button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
#main #storefront-catalog #catalogFilters .catalog-filter-icon{
  display:block;
  flex:0 0 16px;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
#main #storefront-catalog #catalogFilters button>span{
  min-width:0;
  line-height:1.3;
}
@media(max-width:349px){
  html:lang(zh) #main #storefront-catalog #catalogFilters button{
    gap:3px;
    padding-inline:3px;
  }
}

/* Catalog rows align the artwork with a compact, naturally sized product summary. */
#main #storefront-catalog .catalog-grid .card{grid-template-columns:128px minmax(0,1fr);align-items:start}
#main #storefront-catalog .catalog-grid .catalog-art{align-self:start;flex:none;width:128px!important;min-width:128px;max-width:128px;height:168px!important;min-height:168px!important;max-height:168px;aspect-ratio:auto}
#main #storefront-catalog .catalog-grid .cardbody{justify-content:flex-start;gap:0;padding:0!important}
#main #storefront-catalog .catalog-grid .cardbody h3{min-height:0;max-height:4.2em;margin:0 0 4px;line-height:1.4}
#main #storefront-catalog .catalog-grid .cardbody .round-summary{margin:0 0 6px;font-size:12px;line-height:1.4}
#main #storefront-catalog .catalog-grid .value-box{align-items:baseline;gap:3px 5px;min-height:36px;margin:0 0 6px;padding:6px 8px}
#main #storefront-catalog .catalog-grid .value-box small{font-size:11px;line-height:1.4}
#main #storefront-catalog .catalog-grid .catalog-progress-label{margin:0 0 4px;font-size:12px;line-height:1.35}
#main #storefront-catalog .catalog-grid progress{display:block;height:6px;margin:0}
#main #storefront-catalog .catalog-grid .cardbody .wide{margin:8px 0 0!important}

/* Keep product detail sections on the same edges without shrinking required actions. */
#main .detail-screen .product-detail-page{gap:10px;padding-top:10px}
#main .detail-screen .product-detail-page .detail-intro{padding:14px}
#main .detail-screen .product-detail-page .detail-intro h2{margin:0 0 8px;font-size:19px;line-height:1.4}
#main .detail-screen .product-detail-page .detail-kicker{margin:0 0 12px;padding:10px 12px}
#main .detail-screen .product-detail-page .detail-round-head{margin-bottom:6px}
#main .detail-screen .product-detail-page .detail-intro .round-summary{font-size:13px;font-weight:600;line-height:1.4}
#main .detail-screen .product-detail-page .detail-progress-head{gap:4px 8px;margin:0 0 6px}
#main .detail-screen .product-detail-page .detail-progress{font-size:12px;font-weight:500}
#main .detail-screen .product-detail-page .detail-history{margin-top:0}
#main .detail-screen .product-detail-page .detail-schedule-row{margin-top:10px;padding-top:8px}
#main .detail-screen .product-detail-page .detail-info{padding:14px}
#main .detail-screen .product-detail-page .detail-info-panel p[data-detail-field]{max-width:none;line-height:1.65}
#main .detail-screen .product-detail-page .detail-info-panel .detail-rule-mode{margin:0 0 10px}
#main .detail-screen .product-detail-page .detail-policy dl>div{align-items:start;gap:8px;padding-block:8px}
#main .detail-screen .product-detail-page .detail-policy dl>div:first-child{padding-top:0}
#main .detail-screen .product-detail-page .detail-policy dl>div:last-child{padding-bottom:0}
@media(max-width:349px){
  #main #storefront-catalog .catalog-grid .card{grid-template-columns:104px minmax(0,1fr)}
  #main #storefront-catalog .catalog-grid .catalog-art{width:104px!important;min-width:104px;max-width:104px;height:144px!important;min-height:144px!important;max-height:144px}
  #main #storefront-catalog .catalog-grid .value-box{padding-inline:6px}
}

/* Keep hidden empty states out of the catalog despite the shared flex surface. */
#main #storefront-catalog .catalog-empty[hidden]{display:none!important}
#main #storefront-catalog .catalog-empty:not([hidden]){min-height:0;margin:12px 0 0;padding:24px 12px;border:0;border-radius:0;background:transparent;box-shadow:none}
#main #storefront-catalog .catalog-empty>.ui-icon{width:30px;height:30px;color:#91a296}
#main #storefront-catalog .catalog-empty>h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* The search bar is one field; focus belongs to its outer surface. */
#main #storefront-catalog .catalog-search{align-items:center;gap:10px}
#main #storefront-catalog .catalog-search input{
  flex:1 1 auto;min-width:0;width:100%;height:44px;min-height:44px;
  margin:0;padding:0;border:0!important;border-radius:0;background:transparent;
  box-shadow:none!important;outline:0!important;appearance:none;-webkit-appearance:none;
  color:#173c2b;font-size:16px;line-height:22px;
}
#main #storefront-catalog .catalog-search:focus-within{border-color:#36865a}
html[data-focus-navigation="keyboard"] #main #storefront-catalog .catalog-search:has(input:focus-visible){outline:2px solid #d3b875;outline-offset:2px}

/* One purchase-action surface for home, catalog and available product details. */
#main #storefront-home .home-products .sale-selling .mini-price,
#main #storefront-catalog .catalog-grid .sale-selling .cardbody .wide,
#main .detail-screen .product-detail-page:not(:has(.detail-result)) .detail-action #detailPick:not(:disabled){
  border:1px solid #ff6b32;border-radius:999px;
  background:radial-gradient(ellipse at 50% -25%,#fff6d759,transparent 66%),linear-gradient(180deg,#ff4a30 0%,#f51e0d 34%,#ee1605 68%,#e92105 100%);
  color:#fff;box-shadow:inset 0 2px 4px #fff4de47,inset 0 -1px 3px #ff9a0040,0 3px 8px #f4521e40;
  font-weight:750;text-shadow:0 1px 2px #b41f1229;filter:none;transform:none;
}
#main #storefront-home .home-products .sale-selling .mini-price:hover,
#main #storefront-catalog .catalog-grid .sale-selling .cardbody .wide:hover,
#main .detail-screen .product-detail-page:not(:has(.detail-result)) .detail-action #detailPick:not(:disabled):hover{
  filter:brightness(1.025);transform:none;
}
#main #storefront-home .home-products .sale-selling .mini-price:active,
#main #storefront-catalog .catalog-grid .sale-selling .cardbody .wide:active,
#main .detail-screen .product-detail-page:not(:has(.detail-result)) .detail-action #detailPick:not(:disabled):active{
  filter:brightness(.98);transform:none;box-shadow:inset 0 2px 5px #bd20042b,0 2px 6px #f4521e33;
}

/* Four products share one equal-cell raster atlas and identical icon boxes. */
#main #storefront-catalog .category-chips button .catalog-category-art{
  display:block;flex:0 0 30px;width:30px;height:30px;margin:0 auto;line-height:1;
  background-image:url('/catalog-category-products-v1.png');background-repeat:no-repeat;background-size:200% 200%;
}
#main #storefront-catalog .category-chips .category-phone{background-position:0 0}
#main #storefront-catalog .category-chips .category-headphones{background-position:100% 0}
#main #storefront-catalog .category-chips .category-laptop{background-position:0 100%}
#main #storefront-catalog .category-chips .category-appliance{background-position:100% 100%}

/* Extra product cutouts use the same 30px category box as the first four. */
#main #storefront-catalog .category-chips button .category-tablet,
#main #storefront-catalog .category-chips button .category-camera,
#main #storefront-catalog .category-chips button .category-drone,
#main #storefront-catalog .category-chips button .category-smartwatch{background-position:center;background-size:100% 100%}
#main #storefront-catalog .category-chips button .category-tablet{background-image:url('/catalog-category-tablet-v1.png')}
#main #storefront-catalog .category-chips button .category-camera{background-image:url('/catalog-category-camera-v1.png')}
#main #storefront-catalog .category-chips button .category-drone{background-image:url('/catalog-category-drone-v1.png');background-size:82% 82%}
#main #storefront-catalog .category-chips button .category-smartwatch{background-image:url('/catalog-category-smartwatch-v1.png')}

/* One horizontal strip: swipe on touch screens or drag with a mouse. */
#main #storefront-catalog #catalogCategories.category-chips{display:flex;flex-wrap:nowrap;gap:6px;width:100%;min-width:0;margin:0 0 10px;padding:0 0 2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;user-select:none;-webkit-user-select:none}
#main #storefront-catalog #catalogCategories::-webkit-scrollbar{display:none}
#main #storefront-catalog #catalogCategories.is-dragging{cursor:grabbing;scroll-behavior:auto}
#main #storefront-catalog #catalogCategories button{flex:0 0 max(64px,calc((100% - 24px) / 5));width:auto;min-width:0;max-width:none;height:64px;min-height:64px;padding:5px 2px;gap:3px}
#main #storefront-catalog #catalogCategories button b{font-size:12px;line-height:18px;white-space:nowrap}
html:not(:lang(zh)) #main #storefront-catalog #catalogCategories button{flex-basis:100px}

/* Home product artwork keeps a square slot regardless of the caption height. */
#main #storefront-home .home-products .mini-art{align-self:start;flex:none;width:100%;height:auto!important;min-height:0;aspect-ratio:1 / 1}
