.sf-header-actions,.sf-hero-actions{display:flex;align-items:center;gap:10px}
html.sf-modal-open,html.sf-modal-open body{overflow:hidden;overscroll-behavior:none}
.sf-register-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #b8ddca;border-radius:999px;background:#fff;color:var(--green);font-weight:800;text-decoration:none;white-space:nowrap;transition:.2s}
.sf-register-button:hover{border-color:var(--green);background:#effaf4;transform:translateY(-1px)}
.sf-secondary{display:inline-flex;align-items:center;justify-content:center;padding:12px 19px;border:1px solid rgba(255,255,255,.55);border-radius:12px;color:#fff;font-weight:800;text-decoration:none;background:rgba(255,255,255,.08)}
.sf-secondary:hover{background:rgba(255,255,255,.18)}
.sf-offers{margin-top:32px;padding:28px;border:1px solid #d8eadf;border-radius:24px;background:linear-gradient(145deg,#fff,#f1faf5);box-shadow:0 14px 38px rgba(20,60,45,.07)}
.sf-offers[hidden]{display:none}
.sf-offers-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:19px}
.sf-offers-heading h2{font-size:27px;line-height:1.2;margin:6px 0 4px}
.sf-offers-heading p{margin:0;color:var(--muted)}
.sf-offer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.sf-offer-card{min-width:0;padding:17px;border:1px solid #dbe9e1;border-radius:17px;background:#fff;display:flex;flex-direction:column;min-height:190px;box-shadow:0 8px 22px rgba(20,60,45,.05)}
.sf-offer-card.is-new{border-color:#b8e4ca;background:linear-gradient(155deg,#fff,#effbf4)}
.sf-offer-card>span{align-self:flex-start;padding:4px 8px;border-radius:999px;background:#edf7f1;color:var(--green);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.sf-offer-card>strong{margin-top:15px;color:#b36f00;font-size:22px;line-height:1.15}
.sf-offer-card h3{margin:7px 0 5px;font-size:15px;line-height:1.35}
.sf-offer-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.sf-offer-card small{margin-top:auto;padding-top:12px;color:#607269;font-weight:700}
.sf-offer-tier-list{display:grid;gap:6px;margin:12px 0 0}.sf-offer-tier-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 9px;border:1px solid #dcece3;border-radius:10px;background:rgba(255,255,255,.76);font-size:12px;color:#3f5e50}.sf-offer-tier-list b{flex:0 0 auto;color:#087443;font-size:13px}.sf-offer-load-error{grid-column:1/-1;padding:16px;border:1px dashed #e0b4a5;border-radius:13px;background:#fff8f5;color:#a13e25;font-weight:700}
.sf-product-dialog{width:min(940px,calc(100% - 24px));height:min(820px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
.sf-product-dialog[open]{display:flex;flex-direction:column}
.sf-product-detail-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);background:#fff}
.sf-product-detail-head h2{margin:3px 0 0;font-size:23px}
.sf-product-detail-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto;padding:24px;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.sf-detail-layout{display:grid;grid-template-columns:minmax(280px,42%) minmax(0,1fr);gap:28px}.sf-detail-media{grid-column:1;grid-row:1}.sf-detail-content{grid-column:2;grid-row:1 / span 2;min-width:0}
.sf-detail-media{position:relative;align-self:start;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#f0f6f2;aspect-ratio:1}
.sf-detail-media img{display:block;width:100%;height:100%;object-fit:cover}
.sf-detail-stock{position:absolute;left:14px;top:14px;padding:6px 10px;border-radius:999px;background:#fff;color:var(--green);font-size:11px;font-weight:850;box-shadow:0 4px 16px rgba(20,60,45,.12)}
.sf-detail-stock.is-out{color:#a33;background:#fff2f2}
.sf-detail-content h3{font-size:26px;line-height:1.35;margin:7px 0 8px}
.sf-detail-meta{margin:0;color:var(--muted);font-size:13px}
.sf-detail-price{display:flex;align-items:center;gap:10px;margin:17px 0 9px;color:var(--green);font-size:28px;font-weight:900}
.sf-detail-price del{color:#8a9691;font-size:15px;font-weight:600}
.sf-detail-promo{padding:10px 12px;border-radius:11px;background:#fff5da;color:#8d5900;font-size:13px}
.sf-detail-member{display:grid;grid-template-columns:1fr auto;gap:2px 12px;margin-top:11px;padding:12px 14px;border:1px solid #bce6cc;border-radius:13px;background:#effbf4}
.sf-detail-member span,.sf-detail-member small{color:#52685e;font-size:12px}.sf-detail-member strong{grid-row:1/3;grid-column:2;color:var(--green);font-size:20px;align-self:center}.sf-detail-member small{display:block}
.sf-detail-section{margin-top:20px}.sf-detail-section h4{margin:0 0 10px;font-size:15px}
.sf-detail-highlights{display:grid;gap:7px}.sf-detail-highlights>div{display:flex;gap:8px;padding:9px 11px;border-radius:10px;background:#f5f9f6;font-size:13px}.sf-detail-highlights span{color:var(--green);font-weight:900}
.sf-detail-scores{display:grid;gap:9px}.sf-detail-scores>div{display:grid;grid-template-columns:130px 1fr 42px;align-items:center;gap:9px;font-size:12px}.sf-detail-scores i{height:8px;border-radius:99px;background:#e6eee9;overflow:hidden}.sf-detail-scores i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b8249,#22bf6b)}.sf-detail-scores strong{text-align:right}
.sf-detail-actions{grid-column:2;grid-row:3;align-self:end;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:10px;margin-top:18px;padding:0 2px 2px}.sf-detail-actions>button{min-width:0;min-height:44px;line-height:1.25}
.sf-secondary-action{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:800;cursor:pointer}
.sf-detail-reviews{grid-column:1;grid-row:2;align-self:start;margin-top:-8px;padding:15px;border:1px solid #dfe9e4;border-radius:18px;background:#fbfdfb}
.sf-review-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.sf-review-title h4{margin:0;color:var(--ink);font-size:15px}.sf-review-summary{display:block;margin-top:2px;color:#6c7b76;font-size:11px}.sf-review-summary b{color:#087443;font-size:14px}.sf-review-list{display:grid;gap:8px}.sf-review-card{padding:11px 12px;border:1px solid #e5ede8;border-radius:12px;background:#fff}.sf-review-card.is-extra{display:none}.sf-detail-reviews.is-expanded .sf-review-card.is-extra{display:block}.sf-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.sf-review-head>div{display:flex;align-items:center;gap:6px;min-width:0}.sf-review-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.sf-review-head time{flex:0 0 auto;color:#84918b;font-size:10px}.sf-review-verified{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#e8f7ed;color:#087a3b;font-size:9px;font-weight:800}.sf-review-stars{margin-top:4px;color:#f4a500;font-size:12px;letter-spacing:.025em}.sf-review-card p{margin:5px 0 0;color:#40564c;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.sf-review-card .sf-review-empty-comment{color:#87938d;font-style:italic}.sf-review-more{width:100%;margin-top:9px;padding:9px 10px;border:1px solid #cfe1d6;border-radius:10px;background:#fff;color:#087443;font-size:11px;font-weight:800;cursor:pointer}.sf-review-more:hover{background:#f0faf4}.sf-review-empty{padding:12px;border-radius:11px;background:#f4f8f5;color:#718078;font-size:11px}
@media(max-width:900px){.sf-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-detail-layout{grid-template-columns:300px minmax(0,1fr);gap:20px}}
@media(max-width:680px){.sf-header-actions{gap:6px}.sf-header .sf-register-button{min-height:38px;padding:8px 11px;font-size:12px}.sf-hero-actions{align-items:stretch;flex-direction:column;width:min(260px,100%)}.sf-secondary{background:rgba(255,255,255,.12)}.sf-offers{margin-top:18px;padding:20px 15px;border-radius:20px}.sf-offers-heading{align-items:flex-start}.sf-offers-heading .sf-register-button{display:none}.sf-offer-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}.sf-offer-card{flex:0 0 82%;scroll-snap-align:start;min-height:184px}.sf-offers-heading h2{font-size:23px}}
@media(max-width:430px){.sf-brand b{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf-header .sf-register-button{font-size:0;padding:8px 10px}.sf-header .sf-register-button:after{content:'Đăng ký';font-size:12px}.sf-cart-button{padding:10px}}
@media(max-width:680px){.sf-product-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.sf-product-detail-head{padding:15px 16px}.sf-product-detail-head h2{font-size:19px}.sf-product-detail-body{padding:15px}.sf-detail-layout{display:block}.sf-detail-media{width:min(100%,390px);margin:auto;aspect-ratio:4/3}.sf-detail-content{padding-top:17px}.sf-detail-content h3{font-size:21px}.sf-detail-price{font-size:24px}.sf-detail-reviews{margin:18px 0 0;padding:14px}.sf-review-card{padding:11px}.sf-review-head strong{font-size:12px}.sf-review-card p{font-size:12px}.sf-detail-actions{margin-top:18px;padding-bottom:max(15px,env(safe-area-inset-bottom))}.sf-detail-scores>div{grid-template-columns:105px 1fr 38px}}
@media(max-width:680px){.sf-product-actions button:first-child{display:block}.sf-product-actions{grid-template-columns:minmax(0,1fr) 44px}.sf-product-actions button{min-height:42px}.sf-product-actions .add{min-width:44px}}
@media(max-width:360px){.sf-detail-actions{grid-template-columns:1fr;position:static;margin:20px 0 0;padding:0;box-shadow:none;background:none}}

/* Brand image fallback and official Ecofami logo treatment. */
.sf-brand-avatar{background:#fff;border:1px solid #dce9e2;box-shadow:0 4px 14px rgba(12,91,54,.08)}
.sf-hero-mark{padding:22px;overflow:hidden;background:rgba(255,255,255,.96);border:8px solid rgba(255,255,255,.18);box-shadow:0 18px 40px rgba(0,74,43,.2);transform:none}
.sf-hero-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}

/* New-customer promotions are presented as a real storefront sale. */
.sf-product.has-new-member-sale{border-color:#ffd0d0;box-shadow:0 10px 28px rgba(192,39,45,.08)}
.sf-sale-badge{position:absolute;z-index:2;top:10px;right:10px;display:flex;flex-direction:column;align-items:center;min-width:58px;padding:7px 9px;border-radius:13px;background:linear-gradient(145deg,#ed2f3b,#bd1827);color:#fff;line-height:1;box-shadow:0 7px 18px rgba(174,24,36,.28)}
.sf-sale-badge strong{font-size:16px}.sf-sale-badge b{margin-top:4px;font-size:9px;font-weight:700;letter-spacing:.02em;max-width:70px;white-space:normal;line-height:1.15;text-align:center}
.sf-sale-name{display:block;min-height:18px;margin-top:4px;color:#b02632;font-size:11px;font-weight:700;line-height:1.35}
.sf-sale-percent{padding:6px 8px;border-radius:9px;background:#e52636;color:#fff;font-size:12px;font-weight:900}
.sf-cart-sale{display:block;margin-top:3px;color:#b02632;font-size:10px;font-weight:700}
.sf-detail-member{border-color:#ffd0d0;background:linear-gradient(145deg,#fff9f2,#fff0f0)}
.sf-detail-member strong{color:#d21f32}
@media(max-width:680px){.sf-sale-badge{top:8px;right:8px;min-width:46px;padding:5px 6px}.sf-sale-badge strong{font-size:13px}.sf-sale-badge b{font-size:8px;max-width:56px}.sf-sale-name{font-size:10px}.sf-product.has-new-member-sale .sf-product-body{padding-top:10px}}

/* Real product trust signals: ratings/reviews, completed sales and max two labels. */
.sf-trust-labels,.sf-detail-trust-labels{display:flex;align-items:center;gap:5px;min-width:0;margin-bottom:7px;overflow:hidden}.sf-trust-labels span,.sf-detail-trust-labels span{display:inline-flex;align-items:center;max-width:calc(50% - 3px);padding:4px 7px;border-radius:999px;font-size:10px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sf-trust-recommended{background:#e8f7ed;color:#087a3b}.sf-trust-best{background:#fff0e8;color:#d94a16}.sf-trust-new{background:#eaf3ff;color:#1769aa}.sf-trust-stats,.sf-detail-trust-stats{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;color:#607168;font-size:11px;line-height:1.2;margin-bottom:8px}.sf-trust-stats.without-rating,.sf-detail-trust-stats.without-rating{justify-content:flex-end}.sf-trust-stats>span,.sf-detail-trust-stats>span{white-space:nowrap;min-width:0}.sf-trust-rating{font-weight:800;color:#554d3c}.sf-trust-rating i{color:#f6a700;font-style:normal;font-size:13px}.sf-trust-rating small{color:#718278;font-size:10px;font-weight:600}.sf-detail-trust-labels{margin:8px 0}.sf-detail-trust-stats{justify-content:flex-start;gap:18px;font-size:13px;margin:5px 0 9px}.sf-product-actions button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf-product-actions .add{flex-shrink:0}
@media(max-width:680px){.sf-trust-labels{gap:3px}.sf-trust-labels span{padding:3px 5px;font-size:8px}.sf-trust-stats{display:grid;justify-content:stretch;gap:3px;font-size:9px}.sf-trust-stats.without-rating{display:flex;justify-content:flex-end}.sf-trust-rating small{font-size:8px}.sf-product-actions button{padding:9px 6px;font-size:11px}.sf-detail-trust-labels span{font-size:9px}.sf-detail-trust-stats{display:flex;font-size:11px;flex-wrap:wrap}}
.sf-applied-promotions{display:grid;gap:6px;margin:12px 0;padding:12px 14px;border-radius:12px;background:#effaf4;color:#195c3c}.sf-applied-promotions:empty{display:none}.sf-applied-promotions b{color:#087443}.sf-applied-promotions span{font-size:13px}

/* V140 canonical storefront card commerce: promotion badge + real rating + effective price. */
.sf-product.has-promotion{border-color:#e7ddd0}
.sf-promotion-badge,.sf-detail-promotion-badge{position:absolute;z-index:3;top:10px;right:10px;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:74px;max-width:calc(100% - 82px);min-height:34px;padding:8px 11px;border-radius:999px;background:#e81818;color:#fff;text-align:center;box-shadow:0 8px 20px rgba(176,18,18,.24);line-height:1;white-space:nowrap}
.sf-promotion-badge strong,.sf-detail-promotion-badge strong{display:block;max-width:none;font-size:11px;font-weight:950;letter-spacing:-.015em;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sf-promotion-badge.is-member,.sf-detail-promotion-badge.is-member{background:#ea1b24}
.sf-promotion-badge.is-gift,.sf-detail-promotion-badge.is-gift{background:#ef1717}
.sf-promotion-badge.is-discount,.sf-detail-promotion-badge.is-discount{background:#db222d}
.sf-detail-promotion-badge{top:14px;right:14px;min-width:92px;min-height:40px;padding:10px 14px;max-width:calc(100% - 100px)}.sf-detail-promotion-badge strong{font-size:13px}
.sf-rating-stars{display:inline-flex;align-items:center;gap:5px;min-width:0;color:#5b523f;font-weight:800}.sf-rating-stars i{color:#f4a500;font-size:13px;font-style:normal;letter-spacing:.02em;white-space:nowrap}.sf-rating-stars b{font-size:11px}.sf-rating-stars small{color:#78867f;font-size:10px;font-weight:650}
.sf-price-stack{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.sf-price-stack strong{font-size:20px;color:var(--green);font-weight:950}.sf-price-stack .sf-old-price{order:-1;margin:0;color:#69756f;font-size:13px;font-weight:600;text-decoration:line-through}
.sf-detail-price strong{font-size:inherit;color:inherit}.sf-detail-price del{order:-1}
.sf-product h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:67px}
.sf-product-body>.sf-product-category{margin-top:1px}.sf-product-body>.sf-trust-stats{margin-top:5px;margin-bottom:6px}
.sf-sale-name{min-height:30px}
@media(max-width:1024px){.sf-promotion-badge{top:8px;right:8px;min-width:68px;min-height:31px;padding:7px 9px;max-width:calc(100% - 72px)}.sf-promotion-badge strong{font-size:10px}.sf-detail-promotion-badge{min-width:86px;min-height:38px}.sf-detail-promotion-badge strong{font-size:12px}}
@media(max-width:680px){.sf-promotion-badge{top:7px;right:7px;min-width:62px;min-height:29px;padding:6px 8px;max-width:calc(100% - 62px)}.sf-promotion-badge strong{font-size:9px;letter-spacing:-.025em}.sf-detail-promotion-badge{top:10px;right:10px;min-width:78px;min-height:34px;padding:8px 10px;max-width:calc(100% - 80px)}.sf-detail-promotion-badge strong{font-size:11px}.sf-rating-stars{gap:3px}.sf-rating-stars i{font-size:11px}.sf-rating-stars b{font-size:9px}.sf-rating-stars small{font-size:8px}.sf-price-stack{gap:4px}.sf-price-stack strong{font-size:16px}.sf-price-stack .sf-old-price{font-size:11px}.sf-product h3{-webkit-line-clamp:4;min-height:78px}.sf-sale-name{min-height:26px}}
@media(max-width:420px){.sf-promotion-badge{min-width:58px;min-height:27px;padding:5px 7px;max-width:calc(100% - 56px)}.sf-promotion-badge strong{font-size:8.5px}.sf-detail-promotion-badge{min-width:72px;min-height:32px}.sf-detail-promotion-badge strong{font-size:10px}}
