.fstar-ad-slot[hidden] {display:none!important}
.fstar-ad-slot {max-width:1240px;margin:26px auto 32px;padding:0 18px;box-sizing:border-box;clear:both}
.fstar-ad-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.fstar-ad-card {position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e5e7eb;border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.035);text-decoration:none!important;color:#222!important;transition:transform .16s ease,box-shadow .16s ease}
.fstar-ad-card:hover,.fstar-ad-card:focus-visible {box-shadow:0 5px 16px rgba(0,0,0,.12);transform:translateY(-2px)}
.fstar-ad-badge{position:absolute;top:5px;right:5px;border-radius:3px;background:rgba(0,0,0,.78);color:#fff;padding:2px 5px;font:600 10px/1.3 system-ui,sans-serif;pointer-events:none}
.fstar-ad-card img {display:block;width:100%;aspect-ratio:2.5/1;object-fit:contain;background:#fff}
@media(max-width:860px){.fstar-ad-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:430px){.fstar-ad-slot{padding:0 12px}.fstar-ad-grid{gap:8px}}
@media(prefers-reduced-motion:reduce){.fstar-ad-card{transition:none}}
/* v1.1: extra sponsored bands appear in the product scroll, not in a fixed sidebar. */
.fstar-ad-inflow{position:relative;width:100%;max-width:none;margin:24px 0 30px;padding:14px 10px;box-sizing:border-box;grid-column:1/-1;clear:both}
.fstar-ad-inflow-item{width:100%!important;max-width:none!important;flex:0 0 100%!important;float:none!important;clear:both!important;grid-column:1/-1!important;list-style:none!important;margin:12px 0 16px!important;padding:0!important;box-sizing:border-box}
.woocommerce ul.products li.fstar-ad-inflow-item,.woocommerce-page ul.products li.fstar-ad-inflow-item{width:100%!important;float:none!important;margin:12px 0 16px!important}
.fstar-ad-inflow-item .fstar-ad-inflow{margin:0;padding:16px 8px}
.fstar-ad-inflow .fstar-ad-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.single-product div.product > .fstar-ad-inflow{grid-column:1/-1!important;flex:0 0 100%;clear:both}
@media(max-width:860px){.fstar-ad-inflow .fstar-ad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.fstar-ad-inflow{padding:9px 4px;margin:16px 0 21px}.fstar-ad-inflow-item .fstar-ad-inflow{padding:9px 3px}}

.fstar-ad-inflow-item[hidden]{display:none!important}

/* v1.2 — additive featured products + onsite stream, scoped to plugin elements. */
.fstar-onstore-section{max-width:1240px;margin:28px auto 38px;padding:0 18px;box-sizing:border-box;clear:both;font-family:inherit}
.fstar-onstore-section[hidden]{display:none!important}
.fstar-onstore-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:15px}
.fstar-onstore-heading h2{font-size:clamp(22px,2vw,29px);font-weight:750;line-height:1.18;margin:0 0 4px;color:inherit}
.fstar-onstore-heading p{font-size:13px;color:#657488;margin:0}
.fstar-onstore-heading a{font-size:13px;font-weight:700;color:#115890;text-decoration:none;white-space:nowrap}
.fstar-products-stage{position:relative}
.fstar-products-grid{display:grid;gap:10px;align-items:stretch}
.fstar-products-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.fstar-products-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.fstar-onstore-card{display:flex;position:relative;min-width:0;min-height:112px;align-items:center;gap:9px;border:1px solid #e1e8ed;border-radius:9px;padding:8px;color:#11243a!important;background:#fff;text-decoration:none!important;box-shadow:0 2px 8px rgba(17,36,58,.055)}
.fstar-onstore-card:hover,.fstar-onstore-card:focus-visible{border-color:#7fb8da;box-shadow:0 5px 14px rgba(17,36,58,.12)}
.fstar-onstore-image{flex:0 0 39%;max-width:94px;min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(125deg,#f0f5fa,#e1eff4);border-radius:7px}
.fstar-onstore-image img{display:block;width:100%;height:100%;max-height:105px;object-fit:contain}
.fstar-onstore-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}
.fstar-onstore-category{font-size:9px;line-height:1.2;letter-spacing:.03em;text-transform:uppercase;color:#61778a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fstar-onstore-title{font-size:12px;line-height:1.3;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.fstar-onstore-price{font-size:12px;font-weight:750;margin-top:auto;color:#102439}
.fstar-onstore-price del{opacity:.6;font-size:10px}.fstar-onstore-price ins{text-decoration:none}
.fstar-onstore-view{font-size:20px;color:#8a9cab;align-self:end}
.fstar-featured .fstar-onstore-card{flex-direction:column;min-height:192px;align-items:stretch}
.fstar-featured .fstar-onstore-image{width:100%;max-width:none;min-height:105px;flex:0 0 105px}
.fstar-featured .fstar-onstore-info{gap:4px}.fstar-featured .fstar-onstore-view{position:absolute;bottom:10px;right:9px}
.fstar-products-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff!important;border:1px solid #dce7ee!important;box-shadow:0 3px 12px rgba(0,0,0,.13);color:#182b3d!important;font-size:27px;cursor:pointer;padding:0!important;line-height:1!important}
.fstar-products-arrow:disabled{opacity:.45;cursor:default}
.fstar-products-prev{left:-14px}.fstar-products-next{right:-14px}
.fstar-products-pager{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:12px;color:#5f7185;font-size:12px}
.fstar-products-autoplay{border:none!important;background:transparent!important;padding:4px!important;font-size:12px;color:#28618d!important;cursor:pointer}
.fstar-loading .fstar-products-grid{opacity:.65}
/* Sponsored ad is inserted as a third column only when a real creative loaded. */
.single-product div.product .summary .product_title{font-size:clamp(19px,1.6vw,25px)!important;line-height:1.25!important}
.single-product .fstar-ad-slot[data-layout="vertical"]{max-width:none;margin:0;padding:0;min-width:0}
.single-product .fstar-ad-slot[data-layout="vertical"] .fstar-ad-grid{display:block}
.single-product .fstar-ad-slot[data-layout="vertical"] .fstar-ad-card img{width:100%;height:340px;aspect-ratio:auto;object-fit:contain}
@media(min-width:1100px){
 .woocommerce .single-product div.product.fstar-rail-active,.single-product .woocommerce div.product.fstar-rail-active,.single-product div.product.fstar-rail-active{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.83fr) minmax(175px,.47fr);gap:18px;align-items:start}
 .single-product .woocommerce div.product.fstar-rail-active div.images,.single-product div.product.fstar-rail-active div.images{float:none!important;width:100%!important;grid-column:1;grid-row:1}
 .single-product .woocommerce div.product.fstar-rail-active .summary,.single-product div.product.fstar-rail-active .summary{float:none!important;width:auto!important;grid-column:2;grid-row:1;margin:0!important;min-width:0}
 .single-product div.product.fstar-rail-active>.fstar-ad-slot[data-layout="vertical"]{grid-column:3;grid-row:1}
 .single-product div.product.fstar-rail-active>.woocommerce-tabs,.single-product div.product.fstar-rail-active>.related,.single-product div.product.fstar-rail-active>.upsells,.single-product div.product.fstar-rail-active>.fstar-ad-slot:not([data-layout="vertical"]){grid-column:1/-1}
}
/* Half-height banners, immediately above the existing footer. */
.fstar-compact-footer-wrap{clear:both;width:100%;padding:8px 0 15px;background:transparent}
.fstar-compact-footer-wrap .fstar-ad-slot{margin:8px auto 0;max-width:1240px}
.fstar-compact-footer-wrap .fstar-ad-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.fstar-compact-footer-wrap .fstar-ad-card img{height:48px!important;aspect-ratio:auto!important;object-fit:contain}
@media(max-width:1099px){.single-product .fstar-ad-slot[data-layout="vertical"]{max-width:330px!important;clear:both!important;margin:14px 0 24px!important}}
@media(max-width:950px){.fstar-products-five{grid-template-columns:repeat(3,minmax(0,1fr))}.fstar-products-four{grid-template-columns:repeat(2,minmax(0,1fr))}.fstar-compact-footer-wrap .fstar-ad-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.fstar-products-five{grid-template-columns:repeat(2,minmax(0,1fr))}.fstar-onstore-section{padding:0 12px}.fstar-onstore-heading{align-items:start;flex-wrap:wrap}.fstar-products-prev{left:-8px}.fstar-products-next{right:-8px}.fstar-onstore-card{min-height:108px;gap:6px;padding:5px}.fstar-onstore-image{min-width:0;flex-basis:39%}.fstar-onstore-title{font-size:11px}.fstar-compact-footer-wrap .fstar-ad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fstar-compact-footer-wrap .fstar-ad-card img{height:40px!important}}
@media(prefers-reduced-motion:reduce){.fstar-onstore-card{transition:none}}

/* 1.2.2: 5 Star colors for NEW cards only. Never change theme hero, logo, header, star, or existing artwork. */
.fstar-onstore-section .fstar-onstore-heading h2{font-weight:800;color:#0d203a}
.fstar-onstore-section .fstar-onstore-heading a{color:#b30d1b}
.fstar-onstore-section .fstar-onstore-price{color:#b30d1b}
.fstar-onstore-section .fstar-products-arrow{background:#b30d1b!important;border-color:#8e1020!important;color:#fff!important}
.fstar-onstore-section .fstar-onstore-card:hover{border-color:#bc1427;box-shadow:0 5px 15px rgba(10,28,62,.16)}
.fstar-onstore-section .fstar-products-autoplay{color:#8a1122!important}

/* 1.2.3 repair: tighter title/description and half-height CJ creatives. No theme artwork changes. */
#fstar-home-fallback-root,#fstar-home-footer-fallback{display:none}
.fstar-onstore-section{max-width:1240px;margin:20px auto 24px;padding:0 15px}
.fstar-onstore-heading{margin-bottom:10px}
.fstar-onstore-heading h2{font-size:clamp(19px,1.9vw,24px)!important;line-height:1.2}
.fstar-onstore-heading p{font-size:12px!important;line-height:1.45;margin:0!important}
.fstar-onstore-card{min-height:96px!important;gap:6px!important;padding:6px!important}
.fstar-onstore-title{font-size:11px!important;line-height:1.27!important;max-height:2.54em;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
.fstar-onstore-category{font-size:8.5px!important}
.fstar-featured .fstar-onstore-card{min-height:167px!important}
.fstar-featured .fstar-onstore-image{min-height:92px!important;flex-basis:92px!important}
.fstar-onstore-image img{max-height:96px}
.fstar-onstore-info{gap:4px!important}
.fstar-onstore-price{font-size:11px!important}
.fstar-ad-slot{margin:12px auto 18px!important;padding:0 14px!important}
.fstar-ad-grid{gap:8px!important}
.fstar-ad-card img{height:64px!important;max-height:64px!important;aspect-ratio:auto!important;object-fit:contain!important}
.fstar-ad-card{box-shadow:none!important;border-radius:6px!important}
.fstar-ad-inflow{margin:12px 0 14px!important;padding:8px!important}
.fstar-compact-footer-wrap{padding:4px 0 8px!important}
.fstar-compact-footer-wrap .fstar-ad-card img{height:35px!important;max-height:35px!important}
.single-product .fstar-ad-slot[data-layout="vertical"] .fstar-ad-card img{height:230px!important;max-height:230px!important}
.single-product div.product .summary .product_title{font-size:clamp(18px,1.4vw,23px)!important;line-height:1.22!important;margin-bottom:10px!important}
.single-product div.product .summary .woocommerce-product-details__short-description{font-size:13px!important;line-height:1.48!important;max-width:32ch}
/* Existing homepage offers/founds are identified narrowly by heading in home-layout.js. */
.home .fstar-legacy-cj-compact img{max-height:62px!important;height:auto!important;object-fit:contain!important}
.home .fstar-legacy-cj-compact iframe{max-height:78px!important}
.home .fstar-legacy-cj-compact p,.home .fstar-legacy-cj-compact a{font-size:12px;line-height:1.35}
.home .fstar-original-featured-compact h3,.home .fstar-original-featured-compact .woocommerce-loop-product__title{font-size:12px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
@media(max-width:760px){.fstar-onstore-section{padding:0 10px}.fstar-ad-card img{height:52px!important;max-height:52px!important}.fstar-compact-footer-wrap .fstar-ad-card img{height:30px!important;max-height:30px!important}}
