*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:#f6f8f4;color:#2f3c35;font:16px/1.55 system-ui,-apple-system,sans-serif}main{max-width:1100px;margin:auto;padding:20px 16px 90px}h1{font:600 clamp(26px,5.4vw,42px)/1.2 Georgia,serif}h2,h3{line-height:1.35}.eyebrow{letter-spacing:.13em;font-size:12px;color:#617568}nav{display:flex;flex-wrap:wrap;gap:15px}nav a{color:#385947}a{color:#375b46}.panel{background:#fff;padding:18px;border:1px solid #dce5dd;border-radius:16px;margin:14px 0;min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:16px}.grid .panel{margin:0;overflow:hidden}.photo{display:block;width:100%;height:250px;max-width:100%;object-fit:contain;background:#f3f5f1;border-radius:10px;cursor:zoom-in}.badge{display:inline-block;background:#edf1eb;color:#335240;padding:6px 10px;border-radius:100px;font-size:13px;margin-top:10px}.muted,.hint{color:#64756a}.price{font-size:20px;font-weight:700}.tabs,.filters,.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin:8px 0}.tabs button,.toolbar button,button{background:#496653;color:white;border:0;padding:11px 16px;border-radius:10px;font:600 15px system-ui;cursor:pointer}button.light{background:#e9efe9;color:#30483a}button:disabled{background:#adb6ad;color:#fff;cursor:not-allowed}input,select,textarea{box-sizing:border-box;font:inherit;max-width:100%;min-height:42px;padding:9px;border:1px solid #c6d5c8;border-radius:8px}label{display:block;margin:10px 0}label input,label textarea{display:block;width:100%}.tabs button.active{background:#294536;color:#fff}.banner{background:#edf3ed;padding:12px 16px;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}.banner.err{background:#ffefed;color:#9c2820}dialog{max-width:min(94vw,560px);width:94%;max-height:88vh;overflow:auto;border:1px solid #d4ded5;border-radius:16px;padding:20px;color:#263e31;background:#fff}dialog::backdrop{background:#0009}.photo-viewer{max-width:min(96vw,1050px);width:96%;background:#181d18;color:white}.photo-large{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto;touch-action:pinch-zoom}.photo-viewer .toolbar{justify-content:space-between}.photo-viewer button{background:#e5eee8;color:#203c2b}@media(max-width:600px){main{padding:14px 12px 80px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.panel{padding:12px}.grid h3{font-size:15px}.grid .photo{height:165px}.grid .panel p{font-size:13px}.filters>*{min-width:0;flex:1}dialog{max-width:96vw}.eyebrow{font-size:10px}}
.sfc-shop-card{display:flex;flex-direction:column;gap:8px;min-width:0}.sfc-shop-card .photo{width:100%;aspect-ratio:1/1;object-fit:contain}.sfc-shop-card h3{font-size:clamp(14px,2.6vw,18px);line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.8em;margin:0}.sfc-shop-card .price{margin-top:auto}.sfc-shop-card .sfc-shop-extra{font-size:13px}.sfc-shop-card .sfc-shop-extra summary{cursor:pointer}.sfc-shop-card .sfc-shop-extra[open] {padding:8px;border:1px solid #d9e2dc;border-radius:10px}.sfc-available-toggle{display:block;margin:10px 0;padding:8px;color:#2f4e3d}.sfc-available-toggle input{width:20px;height:20px;vertical-align:middle}#floatingCart{position:fixed;right:15px;bottom:calc(78px + env(safe-area-inset-bottom));background:#2e503e;color:white;z-index:60;border-radius:999px;padding:13px 17px;text-decoration:none;box-shadow:0 3px 16px #0003;font-weight:700}#floatingCartCount{background:#b22e2c;color:#fff;border-radius:99px;margin-left:5px;padding:2px 7px}#floatingCartCount:empty{display:none}
.sfc-shop-card{gap:6px;padding:10px!important}.sfc-shop-card .badge{margin-top:4px;padding:3px 8px;font-size:12px}.sfc-shop-card h3{min-height:0;margin:2px 0 4px}.sfc-shop-card .price{margin-top:auto;margin-bottom:3px}.sfc-shop-card .hint{margin:1px 0;font-size:12px}.sfc-shop-card button{padding:9px 8px}.sfc-shop-extra summary{padding:0;margin:0}.sfc-shop-extra p{margin:5px 0}

/* R8: simple browsing cards, fully user-initiated media */
.sfc-cover-button{background:none!important;border:0;padding:0!important;display:block;width:100%;cursor:pointer}
.sfc-cover-button .photo{width:100%;display:block}
.sfc-no-cover{display:grid;place-items:center;aspect-ratio:1;background:#eef4ef;color:#3c5845;border-radius:10px}
.sfc-details-button{background:#e7efe8!important;color:#294734!important}
.sfc-shop-card .badge{align-self:flex-start}
.sfc-video-placeholder{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#29342c;border-radius:12px;color:#f6faf5}
.sfc-play-button{font-size:18px;background:#eaf4eb!important;color:#23432d!important}
.sfc-video{display:block;max-width:100%;max-height:65vh;margin:auto}
.sfc-listing-details{background:#fff;color:#29382e;border-radius:12px;padding:12px;margin-top:12px}
.sfc-listing-details h2{font-size:20px;margin:0}.sfc-listing-details p{margin:7px 0}
.sfc-reel-link a{font-weight:700;text-decoration:underline}
.photo-viewer{background:#1d241f}.photo-viewer .toolbar{margin:12px 0}
@media(max-width:600px){.sfc-shop-card .sfc-details-button{padding:8px}.sfc-listing-details{padding:10px}}
/* R10 consistent Customer Portal header (no Welcome on Browse Shop). */
.sfc-shop-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0 8px}
.sfc-shop-brand{font-family:Georgia,serif;font-weight:700;font-size:clamp(21px,3.5vw,31px);color:#284a36;text-decoration:none}
.sfc-shop-actions{display:flex;gap:7px;align-items:center;margin-left:auto}
.sfc-shop-circle{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;border-radius:50%;border:1px solid #274536;color:white;background:#274536;text-decoration:none;font-size:21px;padding:0;line-height:1;cursor:pointer}
.sfc-shop-circle svg,#floatingCart svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sfc-shop-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:11px 0 20px}
.sfc-shop-nav a{display:block;text-align:center;text-decoration:none;color:#284a36;font-weight:600;border-radius:9px;border:1px solid #c9d8cd;padding:12px 4px;background:white;overflow-wrap:anywhere}
.sfc-shop-nav a[aria-current=page]{background:#29493a;color:white}
#floatingCart{display:grid;place-items:center;position:fixed;bottom:16px;right:16px;width:48px;height:48px;padding:0;border-radius:50%;background:#274536;color:#fff;font-size:0;box-shadow:0 4px 10px #0002;z-index:30}
#floatingCartCount{position:absolute;top:-8px;right:-6px;font-size:11px;background:#bf4742;color:#fff;border-radius:12px;padding:1px 5px}
@media(max-width:520px){.sfc-shop-brand{flex:0 0 100%;font-size:22px}.sfc-shop-actions{margin-left:auto}.sfc-shop-nav a{font-size:12px;padding:11px 1px}}

/* Quick add to cart */
.sfc-buyrow{display:flex;gap:8px;align-items:stretch;margin-top:8px}
.sfc-qty{display:flex;align-items:stretch;border:1px solid #cbd8ca;border-radius:10px;overflow:hidden;background:#fff;flex:0 0 auto}
.sfc-qty button{min-width:34px;padding:0 8px;border:0;border-radius:0;font-size:18px;line-height:1;background:#f3f6f2;color:#2e503e}
.sfc-qty button:disabled{opacity:.35}
.sfc-qty input{width:40px;border:0;text-align:center;font-size:15px;padding:0;margin:0;background:#fff;-moz-appearance:textfield}
.sfc-qty input::-webkit-outer-spin-button,.sfc-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sfc-addcart{flex:1 1 auto}
.sfc-flydot{position:fixed;z-index:9999;width:18px;height:18px;border-radius:50%;background:#2e503e;box-shadow:0 0 0 3px #fff8;pointer-events:none;transition:transform .6s cubic-bezier(.5,-.3,.7,1),opacity .6s}
@keyframes sfcBump{0%{transform:scale(1)}35%{transform:scale(1.18)}70%{transform:scale(.95)}100%{transform:scale(1)}}
#floatingCart.sfc-bump{animation:sfcBump .45s ease}
#sfcToast{position:fixed;left:50%;bottom:calc(140px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:9998;max-width:min(92vw,460px);background:#2e503e;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:0 4px 18px #0004;font-size:14px;line-height:1.45;transition:opacity .2s,transform .2s}
#sfcToast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
#sfcToast.bad{background:#8e2b22}
#sfcToast a{color:#fff;font-weight:700}

.sfc-by{margin:-4px 0 6px;font-size:13px;color:#5b6b60}

/* compact quantity + add (v2) */
.sfc-buyrow{gap:6px!important;align-items:center!important}
.sfc-qty{height:34px!important}
.sfc-qty button{min-width:26px!important;width:26px;height:34px!important;min-height:0!important;padding:0!important;font-size:16px!important}
.sfc-qty input{width:26px!important;height:34px!important;font-size:14px!important}
.sfc-addcart{flex:1 1 auto!important;height:34px!important;min-height:0!important;padding:0 12px!important;font-size:14px!important;white-space:nowrap;display:inline-flex!important;align-items:center;justify-content:center;gap:5px}
.sfc-qty{display:inline-flex!important;align-items:center!important}
.sfc-qty input{box-sizing:border-box!important;padding:0!important;margin:0!important;border:0!important;line-height:34px!important;text-align:center!important;font-size:16px!important;-webkit-appearance:none;appearance:textfield;vertical-align:middle;display:block}
.sfc-qty button{display:flex!important;align-items:center;justify-content:center;line-height:1!important}
