
:root{
  --sf-primary:#00b862;
  --sf-primary-dark:#009d54;
  --sf-accent:#ff3d71;
  --sf-bg:#f6f7f8;
  --sf-card:#fff;
  --sf-text:#262626;
  --sf-muted:#777;
  --sf-line:#eceef0;
  --sf-shadow:0 8px 30px rgba(25,30,35,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;direction:rtl;background:var(--sf-bg);color:var(--sf-text);
  font-family:Vazirmatn,"IRANSansX","Segoe UI",Tahoma,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;line-height:1.6
}
body.rpp-lock{overflow:hidden}
button,input{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.sf-shell{width:min(1180px,calc(100% - 30px));margin-inline:auto}

/* header */
.sf-header{
  position:sticky;top:0;z-index:700;background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);border-bottom:1px solid #f0f0f0
}
.sf-header-row{
  height:78px;display:grid;grid-template-columns:auto minmax(240px,1fr) auto;gap:18px;align-items:center
}
.sf-brand{display:flex;align-items:center;min-width:64px}
.sf-brand .custom-logo{max-height:48px;width:auto}
.sf-brand-mark{width:44px;height:44px;border-radius:15px;background:var(--sf-primary);color:#fff;display:grid;place-items:center;font-weight:900}
.sf-address{border:0;background:transparent;display:flex;align-items:center;gap:10px;text-align:right;color:#333;padding:8px 10px;border-radius:14px;justify-self:start}
.sf-address:hover{background:#f8faf9}
.sf-address-pin{font-size:22px;color:var(--sf-primary)}
.sf-address-copy{display:flex;flex-direction:column}
.sf-address-copy small{font-size:10px;color:#999}
.sf-address-copy strong{font-size:13px}
.sf-chevron{font-size:14px;color:#888}
.sf-head-actions{display:flex;gap:8px}
.sf-head-btn{width:44px;height:44px;border:1px solid var(--sf-line);background:#fff;border-radius:14px;display:grid;place-items:center;position:relative;box-shadow:0 4px 14px rgba(0,0,0,.03)}
.sf-cart-count{position:absolute;top:-6px;left:-6px;min-width:20px;height:20px;border-radius:999px;background:var(--sf-accent);color:#fff;font-size:10px;display:grid;place-items:center;border:2px solid #fff}
.sf-search-row{padding-bottom:12px}
.sf-search-box{position:relative}
.sf-search-box input{width:100%;height:52px;border:0;background:#f2f4f5;border-radius:16px;padding:0 48px 0 44px;outline:none;transition:.2s}
.sf-search-box input:focus{background:#fff;box-shadow:0 0 0 3px rgba(0,184,98,.12),var(--sf-shadow)}
.sf-search-icon{position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:21px;color:#777}
.sf-search-clear{position:absolute;left:12px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#aaa;font-size:22px}

/* main */
.sf-main{padding:18px 0 130px}
.sf-hero{min-height:310px;border-radius:28px;position:relative;overflow:hidden;background:linear-gradient(120deg,#151515,#303030);display:flex;align-items:center;padding:42px;box-shadow:var(--sf-shadow)}
.sf-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sf-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,15,15,.88),rgba(15,15,15,.44),rgba(15,15,15,.12))}
.sf-hero-content{position:relative;z-index:2;color:#fff;max-width:530px}
.sf-hero-pill{display:inline-flex;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 12px;font-size:11px}
.sf-hero h1{margin:14px 0 8px;font-size:clamp(30px,4vw,48px);line-height:1.35}
.sf-hero p{margin:0 0 22px;color:#e2e2e2;font-size:14px}
.sf-hero-btn{border:0;background:var(--sf-primary);color:#fff;border-radius:14px;padding:12px 20px;font-weight:900;display:inline-flex;align-items:center;gap:8px;box-shadow:0 10px 26px rgba(0,184,98,.25)}

.sf-benefits{margin-top:16px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.sf-benefits>div{background:#fff;border:1px solid var(--sf-line);border-radius:18px;padding:14px;display:grid;grid-template-columns:38px 1fr;gap:0 10px;align-items:center}
.sf-benefits>div>span{grid-row:1/3;width:38px;height:38px;border-radius:12px;background:#eefaf4;display:grid;place-items:center}
.sf-benefits strong{font-size:12px}
.sf-benefits small{font-size:10px;color:#999}

.sf-section{margin-top:28px}
.sf-section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:14px}
.sf-section-head h2{font-size:21px;margin:0 0 3px}
.sf-section-head p{font-size:11px;color:#999;margin:0}
.sf-live-dot{font-size:11px;color:var(--sf-primary);font-weight:900}

.sf-categories{display:flex;gap:10px;overflow:auto;padding:2px 0 8px;scrollbar-width:none}
.sf-categories::-webkit-scrollbar{display:none}
.rpp-cat{border:0;background:transparent;min-width:86px;padding:4px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#555}
.rpp-cat-media{width:70px;height:70px;border-radius:22px;background:#fff;border:1px solid var(--sf-line);display:grid;place-items:center;overflow:hidden;box-shadow:0 5px 16px rgba(0,0,0,.035);transition:.2s}
.rpp-cat-media img{width:100%;height:100%;object-fit:cover}
.rpp-cat-name{font-size:11px;font-weight:800;max-width:86px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rpp-cat.active .rpp-cat-media{border:2px solid var(--sf-primary);box-shadow:0 7px 18px rgba(0,184,98,.14)}
.rpp-cat.active .rpp-cat-name{color:var(--sf-primary)}
.sf-all-cat{font-size:27px;background:#fff4e8}
.sf-cat-placeholder{font-size:25px}

.sf-promo-strip{margin-top:18px;background:linear-gradient(95deg,#fff0f5,#fff);border:1px solid #ffe0e9;border-radius:20px;padding:14px 16px;display:flex;align-items:center;gap:12px}
.sf-promo-icon{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;font-size:23px}
.sf-promo-copy{flex:1;display:flex;flex-direction:column}
.sf-promo-copy strong{font-size:13px}
.sf-promo-copy span{font-size:10px;color:#888}
.sf-promo-strip button{border:0;background:var(--sf-accent);color:#fff;border-radius:12px;padding:9px 14px;font-weight:800}

/* products */
.rpp-products-wrap{position:relative;min-height:240px}
.rpp-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.sf-product-card{background:#fff;border:1px solid var(--sf-line);border-radius:20px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.035);transition:.2s}
.sf-product-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.07)}
.sf-product-media{height:205px;padding:14px;background:#fff;position:relative}
.sf-product-media img{width:100%;height:100%;object-fit:contain}
.sf-sale-badge{position:absolute;right:10px;top:10px;background:var(--sf-accent);color:#fff;border-radius:8px;padding:3px 7px;font-size:10px;font-weight:900}
.sf-product-body{padding:12px 13px 14px}
.sf-product-meta{font-size:9px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:15px}
.sf-product-title{margin:4px 0 10px;font-size:13px;line-height:1.65;min-height:43px;font-weight:900}
.sf-product-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.sf-product-price{display:flex;flex-direction:column;gap:1px;min-width:0}
.rpp-regular{font-size:10px;color:#aaa;text-decoration:line-through}
.rpp-current{font-size:12px;font-weight:900;color:#202020}
.sf-add-btn{border:0;background:var(--sf-primary);color:#fff;border-radius:12px;min-width:78px;height:38px;padding:0 11px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:900;box-shadow:0 7px 16px rgba(0,184,98,.16)}
.sf-add-btn:hover{background:var(--sf-primary-dark)}
.sf-add-plus{font-size:16px;line-height:1}
.sf-add-btn.disabled{background:#e8ebea;color:#999;box-shadow:none}
.sf-add-btn.choose{background:#fff;color:var(--sf-primary);border:1px solid #cceede;box-shadow:none}
.sf-qty{height:38px;display:flex;border:1px solid #d9eee3;border-radius:12px;overflow:hidden;background:#fff}
.sf-qty button{width:30px;border:0;background:#eefaf4;color:var(--sf-primary);font-size:17px;font-weight:900}
.sf-qty span{width:25px;display:grid;place-items:center;font-size:11px;font-weight:900}

.rpp-loader{position:absolute;inset:0;z-index:20;background:rgba(246,247,248,.75);display:none;place-items:center;backdrop-filter:blur(2px);border-radius:20px}
.rpp-products-wrap.loading .rpp-loader{display:grid}
.rpp-spinner{width:35px;height:35px;border:3px solid #dbeee4;border-top-color:var(--sf-primary);border-radius:50%;animation:sfspin .7s linear infinite}
@keyframes sfspin{to{transform:rotate(360deg)}}
.rpp-empty{grid-column:1/-1;background:#fff;border:1px dashed #ddd;border-radius:18px;padding:38px;text-align:center;color:#888}

/* cart drawer */
.rpp-overlay{position:fixed;inset:0;background:rgba(20,20,20,.48);backdrop-filter:blur(3px);z-index:1800;opacity:0;visibility:hidden;transition:.25s}
.rpp-overlay.open{opacity:1;visibility:visible}
.sf-cart-drawer{position:fixed;right:50%;bottom:0;transform:translate(50%,110%);width:min(560px,100%);max-height:86vh;background:#fff;z-index:1900;border-radius:26px 26px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.18);transition:.28s;display:flex;flex-direction:column;overflow:hidden}
.sf-cart-drawer.open{transform:translate(50%,0)}
.rpp-drawer-head{padding:16px 18px;border-bottom:1px solid var(--sf-line);display:flex;align-items:center;justify-content:space-between}
.rpp-drawer-head small{font-size:10px;color:#999}
.rpp-drawer-title{margin:0;font-size:18px}
.rpp-close{width:38px;height:38px;border:0;border-radius:12px;background:#f4f5f5;font-size:22px}
.rpp-cart-content{overflow:auto;padding:4px 16px 18px}
.rpp-cart-item{display:grid;grid-template-columns:68px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f0f0}
.rpp-cart-img{width:68px;height:68px;border-radius:16px;background:#fafafa;padding:5px}
.rpp-cart-img img{width:100%;height:100%;object-fit:contain}
.rpp-cart-item h4{font-size:12px;margin:0 0 4px}
.rpp-cart-price{font-size:11px;color:#777}
.rpp-cart-controls{display:flex;align-items:center;gap:5px}
.rpp-mini-btn{width:30px;height:30px;border:1px solid #e5e7e6;background:#fff;border-radius:9px;color:var(--sf-primary);font-weight:900}
.rpp-mini-btn.remove{color:#e24c4c}
.rpp-cart-summary{margin-top:12px;background:#f7f8f8;border-radius:16px;padding:12px}
.rpp-summary-row{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:11px}
.rpp-summary-row.total{font-size:14px;font-weight:900;border-top:1px solid #e7e7e7;margin-top:6px;padding-top:10px}
.rpp-checkout{margin-top:10px;display:flex;justify-content:space-between;background:var(--sf-primary);color:#fff;border-radius:13px;padding:12px 14px;font-weight:900;font-size:12px}

.rpp-toast{position:fixed;right:50%;bottom:100px;transform:translateX(50%) translateY(12px);z-index:2200;background:#222;color:#fff;padding:9px 13px;border-radius:11px;font-size:11px;opacity:0;visibility:hidden;transition:.2s}
.rpp-toast.show{opacity:1;visibility:visible;transform:translateX(50%) translateY(0)}

/* desktop cart */
.sf-desktop-cart{position:fixed;left:24px;bottom:24px;z-index:900;border:0;background:#222;color:#fff;border-radius:18px;padding:10px 14px;display:flex;align-items:center;gap:8px;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.sf-desktop-cart small{color:#bbb;font-size:9px}
.sf-desktop-cart b{background:var(--sf-primary);padding:5px 8px;border-radius:9px;font-size:10px}

/* bottom nav */
.sf-bottom-nav{display:none}

@media(max-width:900px){
  .rpp-products{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:680px){
  .sf-shell{width:calc(100% - 20px)}
  .sf-header-row{height:62px;grid-template-columns:auto 1fr auto;gap:8px}
  .sf-brand .custom-logo{max-height:38px;max-width:70px}
  .sf-brand-mark{width:38px;height:38px;border-radius:13px}
  .sf-address{padding:5px;gap:6px}
  .sf-address-pin{font-size:18px}
  .sf-address-copy small{font-size:8px}
  .sf-address-copy strong{font-size:11px}
  .sf-head-btn{width:38px;height:38px;border-radius:12px}
  .sf-search-row{padding-bottom:10px}
  .sf-search-box input{height:46px;border-radius:14px;padding-right:43px;font-size:12px}
  .sf-search-icon{right:15px;font-size:19px}

  .sf-main{padding:10px 0 104px}
  .sf-hero{min-height:205px;border-radius:22px;padding:24px 20px}
  .sf-hero h1{font-size:27px}
  .sf-hero p{font-size:11px;margin-bottom:16px}
  .sf-hero-btn{padding:10px 16px;font-size:11px;border-radius:12px}
  .sf-hero-pill{font-size:9px}

  .sf-benefits{grid-template-columns:repeat(2,1fr);gap:7px;margin-top:10px}
  .sf-benefits>div{padding:10px;border-radius:15px;grid-template-columns:33px 1fr;gap:0 7px}
  .sf-benefits>div>span{width:33px;height:33px;border-radius:10px}
  .sf-benefits strong{font-size:10px}
  .sf-benefits small{font-size:8px}

  .sf-section{margin-top:20px}
  .sf-section-head{margin-bottom:10px}
  .sf-section-head h2{font-size:17px}
  .sf-section-head p{font-size:9px}

  .sf-categories{gap:3px}
  .rpp-cat{min-width:74px;gap:5px}
  .rpp-cat-media{width:58px;height:58px;border-radius:18px}
  .rpp-cat-name{font-size:9px;max-width:72px}

  .sf-promo-strip{margin-top:12px;border-radius:16px;padding:10px}
  .sf-promo-icon{width:40px;height:40px;border-radius:12px}
  .sf-promo-copy strong{font-size:11px}
  .sf-promo-copy span{font-size:8px}
  .sf-promo-strip button{font-size:9px;padding:8px 10px}

  .rpp-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .sf-product-card{border-radius:17px}
  .sf-product-media{height:145px;padding:9px}
  .sf-product-body{padding:9px 9px 11px}
  .sf-product-meta{font-size:8px}
  .sf-product-title{font-size:11px;min-height:38px;margin:3px 0 7px}
  .rpp-current{font-size:10px}
  .rpp-regular{font-size:8px}
  .sf-add-btn{min-width:58px;height:34px;border-radius:10px;padding:0 8px;font-size:9px}
  .sf-add-plus{font-size:14px}
  .sf-qty{height:34px;border-radius:10px}
  .sf-qty button{width:26px;font-size:15px}
  .sf-qty span{width:21px;font-size:9px}

  .sf-desktop-cart{display:none}

  .sf-bottom-nav{
    display:grid;grid-template-columns:repeat(5,1fr);position:fixed;right:0;left:0;bottom:0;height:70px;
    z-index:1500;background:#fff;border-top:1px solid #e8e8e8;box-shadow:0 -8px 24px rgba(0,0,0,.06);
    padding-bottom:env(safe-area-inset-bottom)
  }
  .sf-bottom-item{
    border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;font-size:9px;color:#888
  }
  .sf-bottom-item.active{color:var(--sf-primary)}
  .sf-bottom-icon{font-size:20px;line-height:1}
  .sf-bottom-cart{
    width:56px;height:56px;border-radius:50%;border:5px solid #fff;background:var(--sf-primary);color:#fff;
    justify-self:center;align-self:start;transform:translateY(-17px);position:relative;box-shadow:0 10px 22px rgba(0,184,98,.26)
  }
  .sf-bottom-cart-icon{font-size:20px}
  .sf-bottom-cart b{position:absolute;top:-4px;left:-3px;min-width:20px;height:20px;border-radius:999px;background:var(--sf-accent);font-size:9px;display:grid;place-items:center;border:2px solid #fff}

  .sf-cart-drawer{max-height:88vh;border-radius:24px 24px 0 0}
  .rpp-cart-item{grid-template-columns:58px 1fr;align-items:start}
  .rpp-cart-img{width:58px;height:58px}
  .rpp-cart-controls{grid-column:2}
}

@media(max-width:380px){
  .sf-product-media{height:130px}
  .sf-add-btn{min-width:52px;padding:0 6px}
}

/* v3.0.1 product image safety fix */
.sf-product-media{display:flex;align-items:center;justify-content:center;overflow:hidden}
.sf-product-media .sf-real-product-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.sf-no-product-image{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#f8f9f8;border-radius:14px;color:#a6aaa8}
.sf-no-product-image span{font-size:34px;filter:grayscale(1);opacity:.45}
.sf-no-product-image small{font-size:10px;font-weight:700}

/* Persistent cart peek: appears after first add and stays available */
.rpp-order-fab{position:fixed;z-index:9997;left:50%;bottom:0;transform:translate(-50%,0);width:min(430px,calc(100% - 34px));height:88px;border:0;border-radius:52px 52px 0 0;background:#ff6500;color:#fff;box-shadow:0 -10px 32px rgba(18,35,28,.18);display:flex;align-items:center;justify-content:center;gap:11px;padding:17px 28px 12px;cursor:pointer;transition:transform .28s ease,opacity .25s ease,box-shadow .25s ease;font:inherit;direction:rtl}
.rpp-order-fab.is-hidden{opacity:0;pointer-events:none;transform:translate(-50%,105%)}
.rpp-order-fab.has-items,.rpp-order-fab.force-show{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.rpp-order-fab-handle{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:38px;height:4px;border-radius:99px;background:rgba(255,255,255,.55)}
.rpp-order-fab-icon{font-size:24px;line-height:1}
.rpp-order-fab-text{display:flex;flex-direction:column;text-align:right;line-height:1.25}
.rpp-order-fab-text strong{font-size:15px;font-weight:800}.rpp-order-fab-text small{font-size:10px;opacity:.82;margin-top:3px}
.rpp-order-fab-badge{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:999px;background:#fff;color:#ff6500;font-size:13px;font-weight:900}
.rpp-order-fab.rpp-pop{animation:rppFabPop .42s ease}@keyframes rppFabPop{50%{transform:translate(-50%,-8px) scale(1.025)}}
@media (max-width:680px){.rpp-order-fab{bottom:70px;width:calc(100% - 44px);height:78px;border-radius:42px 42px 14px 14px;padding-bottom:10px}.rpp-order-fab.is-hidden{transform:translate(-50%,150%)}.rpp-order-fab.has-items,.rpp-order-fab.force-show{transform:translate(-50%,0)}}
@media (min-width:681px){.rpp-order-fab{bottom:18px;width:360px;border-radius:48px;height:70px}.sf-desktop-cart{bottom:100px!important}}

/* v3.0.3 - instant AJAX feedback + persistent cart peek */
.rpp-add-to-cart{position:relative;transition:transform .18s ease,opacity .18s ease!important}
.rpp-add-to-cart.loading{pointer-events:none;opacity:.78;transform:scale(.97)}
.rpp-add-to-cart.loading span{visibility:hidden}
.rpp-add-to-cart.loading:after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:rppSpin .65s linear infinite}
@keyframes rppSpin{to{transform:rotate(360deg)}}
.rpp-order-fab{display:flex!important;visibility:visible!important}
.rpp-order-fab.has-items,.rpp-order-fab.force-show,.rpp-order-fab.is-adding{opacity:1!important;pointer-events:auto!important;transform:translate(-50%,0)!important}
.rpp-order-fab.is-adding .rpp-order-fab-text strong:after{content:" ..."}
@media(max-width:680px){.rpp-order-fab{z-index:10050!important;bottom:72px!important;left:50%!important;width:230px!important;height:92px!important;border-radius:115px 115px 18px 18px!important;padding:20px 18px 10px!important;box-shadow:0 -8px 28px rgba(0,0,0,.22)!important}.rpp-order-fab-text small{display:none}.rpp-order-fab-text strong{font-size:14px}.rpp-order-fab-icon{font-size:21px}}


/* =========================================================
   V3.0.7 — Samin cart + checkout app-like UI
   ========================================================= */

/* Floating cart: lower on mobile; never on cart / checkout */
@media(max-width:760px){
  body:not(.samin-cart-page):not(.samin-checkout-page) #saminFloatingCart{
    bottom:78px!important;
    top:auto!important;
  }
  body.samin-cart-page #saminFloatingCart,
  body.samin-checkout-page #saminFloatingCart{
    display:none!important;
  }
}

/* WooCommerce page shell */
.samin-cart-page .woocommerce,
.samin-checkout-page .woocommerce{
  width:min(1080px,calc(100% - 24px));
  margin:24px auto 120px!important;
  font-family:inherit!important;
  color:#202124;
}
.samin-cart-page .entry-title,
.samin-checkout-page .entry-title{
  font-size:28px!important;
  font-weight:900!important;
  margin:0 0 18px!important;
}
.samin-cart-page .woocommerce-notices-wrapper,
.samin-checkout-page .woocommerce-notices-wrapper{
  margin-bottom:12px;
}
.samin-cart-page .woocommerce-message,
.samin-cart-page .woocommerce-info,
.samin-checkout-page .woocommerce-message,
.samin-checkout-page .woocommerce-info{
  border:0!important;
  border-radius:16px!important;
  background:#f2fbf6!important;
  color:#23673f!important;
  padding:14px 16px!important;
}

/* ---------------- CART ---------------- */
.samin-cart-page .woocommerce-cart-form{
  background:#fff;
  border:1px solid #eceff1;
  border-radius:24px;
  padding:10px 16px 16px;
  box-shadow:0 10px 34px rgba(25,30,35,.05);
  overflow:hidden;
}
.samin-cart-page table.shop_table{
  border:0!important;
  border-collapse:separate!important;
  border-spacing:0 10px!important;
  margin:0!important;
}
.samin-cart-page table.shop_table thead{
  display:none!important;
}
.samin-cart-page table.shop_table tbody tr.cart_item{
  background:#fff!important;
  border:1px solid #edf0f1!important;
  border-radius:18px!important;
  box-shadow:0 4px 16px rgba(0,0,0,.025);
}
.samin-cart-page table.shop_table td{
  border:0!important;
  vertical-align:middle!important;
  padding:13px 10px!important;
}
.samin-cart-page .product-thumbnail{
  width:88px!important;
}
.samin-cart-page .product-thumbnail img{
  width:76px!important;
  height:76px!important;
  object-fit:contain!important;
  border-radius:16px!important;
  background:#fafafa!important;
  padding:5px!important;
}
.samin-cart-page .product-name a{
  font-size:13px!important;
  font-weight:900!important;
  color:#242424!important;
}
.samin-cart-page .product-name .variation{
  margin:7px 0 0!important;
  font-size:10px!important;
  color:#868686!important;
}
.samin-cart-page .product-price,
.samin-cart-page .product-subtotal{
  font-size:12px!important;
  font-weight:900!important;
}
.samin-cart-page .product-remove a.remove{
  width:34px!important;
  height:34px!important;
  border-radius:12px!important;
  background:#fff1f1!important;
  color:#e04646!important;
  display:grid!important;
  place-items:center!important;
  font-size:20px!important;
}
.samin-cart-page .quantity .qty{
  width:64px!important;
  height:38px!important;
  border:1px solid #dfe5e1!important;
  border-radius:11px!important;
  text-align:center!important;
}
.samin-cart-page .actions{
  background:#fafbfb!important;
  border-radius:16px!important;
  padding:12px!important;
}
.samin-cart-page .coupon{
  display:flex!important;
  gap:8px!important;
}
.samin-cart-page .coupon input{
  min-width:180px!important;
  height:42px!important;
  border:1px solid #e1e5e3!important;
  border-radius:12px!important;
  padding:0 12px!important;
}
.samin-cart-page .button{
  min-height:42px!important;
  border:0!important;
  border-radius:12px!important;
  background:#edf7f1!important;
  color:#16844a!important;
  font-weight:900!important;
  padding:0 15px!important;
}
.samin-cart-page .button:hover{
  background:#e2f4e9!important;
}
.samin-cart-page .cart-collaterals{
  margin-top:16px!important;
}
.samin-cart-page .cart_totals{
  width:100%!important;
  float:none!important;
  background:#fff!important;
  border:1px solid #eceff1!important;
  border-radius:24px!important;
  padding:18px!important;
  box-shadow:0 10px 34px rgba(25,30,35,.05)!important;
}
.samin-cart-page .cart_totals h2{
  font-size:18px!important;
  font-weight:900!important;
  margin:0 0 10px!important;
}
.samin-cart-page .cart_totals table{
  border:0!important;
}
.samin-cart-page .cart_totals th,
.samin-cart-page .cart_totals td{
  border:0!important;
  border-bottom:1px solid #f0f1f1!important;
  padding:12px 4px!important;
  font-size:12px!important;
}
.samin-cart-page .cart_totals tr.order-total th,
.samin-cart-page .cart_totals tr.order-total td{
  font-size:15px!important;
  font-weight:900!important;
  border-bottom:0!important;
}
.samin-cart-page .wc-proceed-to-checkout{
  padding:12px 0 0!important;
}
.samin-cart-page .checkout-button{
  width:100%!important;
  min-height:54px!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#00b862,#009d54)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:14px!important;
  font-weight:900!important;
  box-shadow:0 10px 24px rgba(0,184,98,.20)!important;
}

/* ---------------- CHECKOUT ---------------- */
.samin-checkout-page form.checkout{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.samin-checkout-page #customer_details,
.samin-checkout-page #order_review{
  background:#fff!important;
  border:1px solid #eceff1!important;
  border-radius:24px!important;
  padding:18px!important;
  box-shadow:0 10px 34px rgba(25,30,35,.05)!important;
}
.samin-checkout-page #order_review_heading{
  grid-column:2!important;
  margin:0 0 -4px!important;
  padding:0 6px!important;
  font-size:18px!important;
  font-weight:900!important;
}
.samin-checkout-page .woocommerce-billing-fields h3,
.samin-checkout-page .woocommerce-additional-fields h3{
  font-size:18px!important;
  font-weight:900!important;
  margin:0 0 14px!important;
}
.samin-checkout-page .form-row{
  margin:0 0 10px!important;
}
.samin-checkout-page .form-row label{
  font-size:10px!important;
  font-weight:800!important;
  color:#666!important;
  margin-bottom:5px!important;
}
.samin-checkout-page input.input-text,
.samin-checkout-page textarea,
.samin-checkout-page .select2-selection{
  width:100%!important;
  min-height:46px!important;
  border:1px solid #e0e5e2!important;
  border-radius:13px!important;
  background:#fafbfb!important;
  box-shadow:none!important;
}
.samin-checkout-page input.input-text{
  padding:0 12px!important;
}
.samin-checkout-page textarea{
  min-height:84px!important;
  padding:10px 12px!important;
}
.samin-checkout-page .select2-selection{
  display:flex!important;
  align-items:center!important;
}
.samin-checkout-page #order_review table.shop_table{
  border:0!important;
  margin:0 0 12px!important;
}
.samin-checkout-page #order_review table.shop_table th,
.samin-checkout-page #order_review table.shop_table td{
  border:0!important;
  border-bottom:1px solid #f0f1f1!important;
  padding:11px 4px!important;
  font-size:11px!important;
}
.samin-checkout-page #order_review .order-total th,
.samin-checkout-page #order_review .order-total td{
  font-size:14px!important;
  font-weight:900!important;
}
.samin-checkout-page #payment{
  background:#f7f9f8!important;
  border-radius:18px!important;
  padding:10px!important;
}
.samin-checkout-page #payment ul.payment_methods{
  border:0!important;
  padding:0!important;
}
.samin-checkout-page #payment .payment_box{
  background:#fff!important;
  border-radius:12px!important;
  font-size:10px!important;
  margin:8px 0!important;
}
.samin-checkout-page #place_order{
  width:100%!important;
  min-height:54px!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#00b862,#009d54)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  box-shadow:0 10px 24px rgba(0,184,98,.20)!important;
}
.samin-checkout-page .woocommerce-privacy-policy-text{
  font-size:9px!important;
  color:#888!important;
  line-height:1.8!important;
}

/* mobile cart */
@media(max-width:760px){
  .samin-cart-page .woocommerce,
  .samin-checkout-page .woocommerce{
    width:calc(100% - 16px)!important;
    margin:12px auto 90px!important;
  }

  .samin-cart-page .entry-title,
  .samin-checkout-page .entry-title{
    font-size:22px!important;
    margin:6px 4px 12px!important;
  }

  .samin-cart-page .woocommerce-cart-form{
    padding:6px 8px 10px!important;
    border-radius:20px!important;
  }

  .samin-cart-page table.shop_table,
  .samin-cart-page table.shop_table tbody{
    display:block!important;
  }
  .samin-cart-page table.shop_table tr.cart_item{
    display:grid!important;
    grid-template-columns:72px 1fr auto!important;
    grid-template-areas:
      "img name remove"
      "img price price"
      "img qty subtotal"!important;
    gap:4px 10px!important;
    margin:8px 0!important;
    padding:10px!important;
    border:1px solid #edf0f1!important;
    border-radius:18px!important;
  }
  .samin-cart-page table.shop_table td{
    display:block!important;
    padding:2px!important;
  }
  .samin-cart-page .product-thumbnail{grid-area:img!important;width:auto!important}
  .samin-cart-page .product-thumbnail:before{display:none!important}
  .samin-cart-page .product-name{grid-area:name!important}
  .samin-cart-page .product-remove{grid-area:remove!important}
  .samin-cart-page .product-price{grid-area:price!important}
  .samin-cart-page .product-quantity{grid-area:qty!important}
  .samin-cart-page .product-subtotal{grid-area:subtotal!important;align-self:center!important;text-align:left!important}
  .samin-cart-page td:before{display:none!important}

  .samin-cart-page .product-thumbnail img{
    width:70px!important;height:70px!important;border-radius:15px!important;
  }
  .samin-cart-page .product-name a{font-size:11px!important}
  .samin-cart-page .product-price,
  .samin-cart-page .product-subtotal{font-size:10px!important}

  .samin-cart-page .actions{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  .samin-cart-page .coupon{
    width:100%!important;
  }
  .samin-cart-page .coupon input{
    min-width:0!important;
    flex:1!important;
  }

  .samin-cart-page .cart_totals{
    border-radius:20px!important;
    padding:14px!important;
  }

  .samin-checkout-page form.checkout{
    display:block!important;
  }
  .samin-checkout-page #customer_details,
  .samin-checkout-page #order_review{
    border-radius:20px!important;
    padding:14px!important;
    margin-bottom:12px!important;
  }
  .samin-checkout-page #order_review_heading{
    margin:18px 4px 8px!important;
  }
  .samin-checkout-page .col2-set .col-1,
  .samin-checkout-page .col2-set .col-2{
    width:100%!important;
    float:none!important;
  }
}


/* ===== V3.0.8 storefront + cart capsule + checkout ===== */
.sf-section-head h2{font-size:25px!important;font-weight:950!important}
.sf-section-head p{font-size:12px!important;color:#7b7f82!important}
.rpp-cat-name{font-size:12px!important;font-weight:900!important;color:#3b3d3f!important}
.rpp-cat.active .rpp-cat-name{color:#00a85a!important}

.sf-product-card{
  border:1px solid #e6ece8!important;border-radius:24px!important;
  box-shadow:0 10px 28px rgba(31,45,37,.06)!important;
  background:linear-gradient(180deg,#fff 0%,#fcfefd 100%)!important;
}
.sf-product-card:nth-child(4n+1){background:linear-gradient(180deg,#fff 0%,#f8fff9 100%)!important}
.sf-product-card:nth-child(4n+2){background:linear-gradient(180deg,#fff 0%,#fffaf7 100%)!important}
.sf-product-card:nth-child(4n+3){background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important}
.sf-product-media{height:235px!important;padding:18px!important;background:rgba(255,255,255,.9)!important}
.sf-product-body{padding:15px 16px 16px!important}
.sf-product-meta{font-size:10px!important;color:#00a65a!important;font-weight:800!important}
.sf-product-title{font-size:15px!important;line-height:1.7!important;min-height:52px!important;font-weight:950!important}
.rpp-current{font-size:14px!important;font-weight:950!important}
.sf-add-btn{
  min-width:96px!important;height:42px!important;border-radius:14px!important;
  background:linear-gradient(135deg,#00bd67,#00a258)!important;color:#fff!important;
  font-size:11px!important;font-weight:950!important;box-shadow:0 9px 20px rgba(0,184,98,.22)!important
}
.sf-add-btn.choose{background:#effaf4!important;color:#009f55!important;border:1px solid #cceedd!important;box-shadow:none!important}
.sf-qty{height:42px!important;border-radius:14px!important;border:1px solid #cfeada!important;box-shadow:0 5px 14px rgba(0,163,87,.08)!important}
.sf-qty button{width:34px!important;background:#e9f9f0!important;color:#009d54!important;font-weight:950!important}
.sf-qty span{width:28px!important;font-size:12px!important}

#saminCartCapsule308{
  position:fixed!important;right:22px!important;bottom:24px!important;left:auto!important;top:auto!important;
  transform:none!important;width:320px!important;min-height:64px!important;
  border:0!important;border-radius:18px!important;padding:10px 16px!important;
  background:linear-gradient(135deg,#ff8b25,#ff6b00)!important;color:#fff!important;
  box-shadow:0 14px 34px rgba(255,107,0,.28)!important;z-index:2147482900!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  display:flex!important;align-items:center!important;gap:11px!important;direction:rtl!important;
  font-family:inherit!important;cursor:pointer!important;
}
#saminCartCapsule308.is-visible{transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
#saminCartCapsule308.is-loading{animation:scc308PulseFixed .7s ease-in-out infinite alternate!important}
#saminCartCapsule308 .scc308-icon{width:42px!important;height:42px!important;border-radius:14px!important;background:rgba(255,255,255,.16)!important;display:grid!important;place-items:center!important;font-size:20px!important;flex:0 0 auto!important}
#saminCartCapsule308 .scc308-copy{flex:1!important;text-align:right!important;display:flex!important;flex-direction:column!important;min-width:0!important}
#saminCartCapsule308 .scc308-copy strong{font-size:13px!important;font-weight:950!important}
#saminCartCapsule308 .scc308-copy small{font-size:10px!important;opacity:.93!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#saminCartCapsule308>b{min-width:30px!important;height:30px!important;border-radius:999px!important;background:#fff!important;color:#ff6d00!important;display:grid!important;place-items:center!important;font-size:11px!important;font-weight:950!important;padding:0 5px!important}
@keyframes scc308PulseFixed{from{filter:brightness(1)}to{filter:brightness(1.06)}}
#saminFloatingCart,#saminCartPeekHard,#saminCartPeekPlugin,#rppOrderFab{display:none!important}
@media(max-width:760px){
  #saminCartCapsule308{
    left:12px!important;right:12px!important;bottom:82px!important;width:auto!important;min-height:62px!important;
    border-radius:18px!important;padding:9px 14px!important;
  }
}

  .rpp-products{gap:10px!important}
  .sf-product-card{border-radius:20px!important}
  .sf-product-media{height:170px!important;padding:11px!important}
  .sf-product-body{padding:11px 11px 13px!important}
  .sf-product-title{font-size:12.5px!important;min-height:44px!important}
  .rpp-current{font-size:11.5px!important}
  .sf-add-btn{min-width:70px!important;height:38px!important;font-size:9.5px!important;border-radius:12px!important}
  .sf-qty{height:38px!important;border-radius:12px!important}
}

.samin-checkout-page .woocommerce{width:min(760px,calc(100% - 24px))!important}
.samin-checkout-page form.checkout{display:block!important}
.samin-checkout-page #customer_details,
.samin-checkout-page #order_review{
  width:100%!important;background:#fff!important;border:1px solid #e7ece9!important;border-radius:24px!important;
  padding:20px!important;box-shadow:0 12px 34px rgba(31,44,37,.06)!important;margin-bottom:16px!important
}
.samin-checkout-page #order_review_heading{margin:22px 4px 10px!important;font-size:20px!important;font-weight:950!important}
.samin-checkout-page .woocommerce-billing-fields h3,
.samin-checkout-page .woocommerce-additional-fields h3{font-size:20px!important;font-weight:950!important;margin-bottom:16px!important}
.samin-checkout-page .form-row label{font-size:11px!important;color:#555!important;font-weight:900!important}
.samin-checkout-page input.input-text,
.samin-checkout-page textarea,
.samin-checkout-page .select2-selection{
  min-height:50px!important;background:#f8faf9!important;border:1px solid #dde5e0!important;border-radius:14px!important;font-size:13px!important
}
.samin-checkout-page #payment{background:#f5f9f7!important;border:1px solid #e2ebe6!important;padding:14px!important;border-radius:18px!important}
.samin-checkout-page #place_order{
  min-height:58px!important;background:linear-gradient(135deg,#00bd67,#009d54)!important;
  font-size:15px!important;box-shadow:0 12px 26px rgba(0,184,98,.24)!important
}
@media(max-width:760px){
  .samin-checkout-page .woocommerce{width:calc(100% - 14px)!important;margin-top:8px!important}
  .samin-checkout-page #customer_details,.samin-checkout-page #order_review{padding:15px!important;border-radius:19px!important}
}

/* FINAL MOBILE CART FIX 2026-08-30
 * Keep the rectangular #saminCartCapsule308 cart bar.
 * Remove only the old upper / semicircle #rppOrderFab on mobile.
 */
@media (max-width: 760px) {
  #rppOrderFab,
  .rpp-order-fab {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    transform: translate(-50%, 200%) !important;
  }

  #saminCartCapsule308 {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* MOBILE SINGLE CART GUARANTEE 2026-08-30
 * Keep only #saminCartCapsule308. Hide every legacy floating/semicircle cart on mobile.
 */
@media (max-width: 760px) {
  #saminFloatingCart,
  #rppOrderFab,
  .rpp-order-fab,
  #saminCartPeekHard,
  #saminCartPeekPlugin {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  #saminCartCapsule308 {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
