/* Shushiva Shop - compact product cards, Flipkart-style */
.shop-page, body { overflow-x:hidden; }

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.shop-card{
  background:#fff;
  border:1px solid #e2ece8;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(8,75,55,.06);
  min-width:0;
  transition:transform .18s ease,box-shadow .18s ease;
}

.shop-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(8,75,55,.10);
}

.shop-card>img{
  display:block;
  width:100%;
  height:175px;
  object-fit:cover;
  background:#f1f6f3;
}

.shop-card-body{padding:10px 11px 12px}

.shop-cat{
  font-size:9px;
  letter-spacing:.65px;
  text-transform:uppercase;
  color:#4f7569;
  font-weight:700;
}

.shop-card h3{
  font-size:14px;
  line-height:1.25;
  color:#0a4f3d;
  margin:4px 0 5px;
}

.shop-card p{
  font-size:10px;
  line-height:1.4;
  color:#71847d;
  margin:0 0 7px;
  min-height:28px;
}

.shop-card select{
  width:100%;
  height:32px;
  border:1px solid #d5e4df;
  border-radius:6px;
  background:#fff;
  padding:0 7px;
  color:#31564b;
  font-size:10px;
}

.buyrow{
  display:flex;
  gap:6px;
  align-items:center;
  margin-top:7px;
}

.buyrow input{
  width:48px;
  height:32px;
  border:1px solid #d5e4df;
  border-radius:6px;
  padding:0 5px;
  font-size:11px;
}

.buyrow .btn{
  height:32px;
  padding:0 10px;
  font-size:10px;
  white-space:nowrap;
}

.shopbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:15px;
}

.shopbar h2{margin:3px 0 0}

.market-note{
  font-size:10px;
  color:#71847d;
  margin-top:16px;
}

@media(max-width:1050px){
  .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .shop-card>img{height:145px}
}

@media(max-width:700px){
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .shop-card{border-radius:8px}

  .shop-card>img{
    height:125px;
  }

  .shop-card-body{
    padding:8px 8px 9px;
  }

  .shop-card h3{
    font-size:12px;
    margin:3px 0 4px;
  }

  .shop-card p{
    font-size:9px;
    min-height:0;
    margin-bottom:6px;
  }

  .shop-card select{
    height:29px;
    font-size:9px;
    padding:0 5px;
  }

  .buyrow{
    gap:4px;
    margin-top:6px;
  }

  .buyrow input{
    width:40px;
    height:29px;
    font-size:10px;
  }

  .buyrow .btn{
    height:29px;
    padding:0 7px;
    font-size:9px;
  }

  .shopbar{margin-bottom:10px}
  .shopbar h2{font-size:19px}
}

@media(max-width:390px){
  .product-grid{gap:7px}
  .shop-card>img{height:112px}
  .shop-card-body{padding:7px}
  .shop-card h3{font-size:11px}
  .shop-card p{display:none}
  .shop-card select{font-size:8.5px;padding:0 3px}
  .buyrow input{width:36px}
  .buyrow .btn{padding:0 5px;font-size:8.5px}
}

.shop-img-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:175px;background:linear-gradient(135deg,#eef7f2,#dceee6);color:#5f8276;font-size:12px;font-weight:700;letter-spacing:.3px}
@media(max-width:1050px){.shop-img-placeholder{height:160px}}
@media(max-width:700px){.shop-img-placeholder{height:145px}}
@media(max-width:390px){.shop-img-placeholder{height:125px}}
.shop-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.shop-tools input,.shop-tools select{min-height:46px;padding:0 14px;border:1px solid #d9dee7;border-radius:10px;background:#fff;font:inherit}.shop-tools input{flex:1;min-width:190px}.shop-tools select{min-width:150px}.product-media{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}.product-media img{display:block;width:100%;height:240px;object-fit:contain;background:#fff}.cart-item img{width:58px;height:58px;object-fit:contain;border-radius:8px;background:#fff}.cart-item{display:grid;grid-template-columns:58px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #e5e7eb}.cart-item-main{display:flex;flex-direction:column;gap:3px}.cart-item small{display:block;color:#6b7280}.qty-controls{display:flex;align-items:center;gap:8px;margin-top:5px}.qty-controls button{width:28px;height:28px;border:1px solid #ddd;border-radius:6px;background:#fff}.remove-btn{display:block;border:0;background:none;color:#b91c1c;font-size:12px;padding:5px 0;cursor:pointer}.product-modal{position:fixed;inset:0;background:rgba(0,0,0,.58);display:none;align-items:center;justify-content:center;padding:20px;z-index:1000}.product-modal.show{display:flex}.modal-card{position:relative;background:#fff;border-radius:18px;max-width:760px;width:100%;padding:28px;display:grid;grid-template-columns:1fr 1fr;gap:28px;box-shadow:0 20px 70px rgba(0,0,0,.25)}.modal-card>img{width:100%;height:360px;object-fit:contain}.modal-close{position:absolute;right:12px;top:10px;border:0;background:none;font-size:30px;cursor:pointer}.checkout-wrap{padding:55px 0}.checkout-grid{display:grid;grid-template-columns:1.5fr .9fr;gap:25px;margin-top:25px}.checkout-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{font-weight:600;font-size:14px}.form-grid label.full{grid-column:1/-1}.form-grid input,.form-grid textarea{width:100%;margin-top:7px;padding:12px;border:1px solid #d9dee7;border-radius:9px;font:inherit;box-sizing:border-box}.payment-options{display:flex;gap:18px;flex-wrap:wrap;margin:15px 0}.payment-options label{padding:12px 15px;border:1px solid #e1e5eb;border-radius:10px}.summary-item,.summary-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0}.summary-item span{display:flex;flex-direction:column}.summary-item small{color:#6b7280;margin-top:3px}.summary-row.total{font-size:18px}.checkout-msg{margin-top:15px;padding:12px;border-radius:10px;background:#f4f7f4}.market-note code{font-size:.9em}@media(max-width:760px){.shop-tools>*{width:100%}.modal-card{grid-template-columns:1fr;padding:20px}.modal-card>img{height:240px}.checkout-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.product-media img{height:210px}}

.account-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.login-gate{margin-bottom:18px;padding:14px;border-radius:10px;background:#fff4d6;border:1px solid #ead69b}.account-wrap{padding:55px 0}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:25px}.auth-grid label{display:block;font-weight:600;font-size:14px;margin-bottom:14px}.auth-grid input{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #d9dee7;border-radius:9px;box-sizing:border-box;font:inherit}.auth-grid .btn{margin-top:12px}.account-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0}.account-actions{margin-top:20px}.order-card{display:grid;grid-template-columns:1fr auto;gap:8px 18px;padding:16px 0;border-bottom:1px solid #e5e7eb}.order-card small{display:block;color:#6b7280;margin-top:4px}.order-card details{grid-column:1/-1;color:#4b5563;font-size:13px}.order-card summary{cursor:pointer;font-weight:600}.auth-grid small{color:#6b7280}@media(max-width:760px){.auth-grid{grid-template-columns:1fr}.account-head{align-items:flex-start;gap:15px;flex-direction:column}.order-card{grid-template-columns:1fr}.order-card details{grid-column:auto}}

.customer-auth{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.welcome-chip{display:inline-flex;align-items:center;min-height:46px;padding:0 14px;border:1px solid #cfe5dc;border-radius:10px;background:#eef8f3;color:#0a5a43;font-weight:700;text-decoration:none;white-space:nowrap}.logout-shop{min-height:46px;white-space:nowrap}.account-btn{white-space:nowrap}@media(max-width:760px){.customer-auth{width:100%;display:grid;grid-template-columns:1fr auto}.welcome-chip{min-width:0;overflow:hidden;text-overflow:ellipsis}.logout-shop{width:auto}.shop-tools .customer-auth{width:100%}}

/* Top cart bucket / mini cart */
.cart-top-wrap{position:relative;display:inline-flex;align-items:center}
.cart-top-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;white-space:nowrap}
.cart-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fff;color:#08784f;font-weight:800;font-size:12px;line-height:1}
.mini-cart{position:absolute;right:0;top:calc(100% + 10px);width:340px;max-width:min(92vw,340px);background:#fff;border:1px solid #dbe7e2;border-radius:14px;box-shadow:0 18px 45px rgba(8,75,55,.18);z-index:1100;display:none;overflow:hidden}
.mini-cart.show{display:block}
.mini-cart-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #e8eeeb;color:#0a4f3d}
.mini-cart-head button{border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:#587067}
.mini-cart-items{max-height:300px;overflow:auto;padding:4px 14px}
.mini-empty{padding:20px 4px;text-align:center;color:#71847d;font-size:13px}
.mini-cart-item{display:grid;grid-template-columns:46px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1ef}
.mini-cart-item:last-child{border-bottom:0}
.mini-cart-item img{width:46px;height:46px;object-fit:contain;border-radius:7px;background:#f7faf8}
.mini-cart-item div{min-width:0;display:flex;flex-direction:column;gap:2px}
.mini-cart-item strong{font-size:12px;color:#174f41;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-cart-item small,.mini-cart-item span{font-size:10px;color:#71847d}
.mini-cart-item>b{font-size:11px;color:#0a5a43;white-space:nowrap}
.mini-cart-foot{padding:12px 14px;background:#f6faf8;border-top:1px solid #e8eeeb}
.mini-cart-foot>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:6px;color:#63766f}
.mini-cart-foot>div strong{color:#0a4f3d}
.mini-cart-foot .btn{width:100%;margin-top:5px}
@media(max-width:760px){.cart-top-wrap{width:100%}.cart-top-btn{width:100%}.mini-cart{position:fixed;right:12px;left:12px;top:145px;width:auto;max-width:none}}

/* Premium Shushiva shop hero */
.shop-hero{position:relative;overflow:hidden;padding:76px 0 68px;background:linear-gradient(135deg,#045d47 0%,#087452 52%,#043f32 100%);color:#fff}
.shop-hero:before,.shop-hero:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.13);border-radius:50%;pointer-events:none;animation:heroFloat 8s ease-in-out infinite}
.shop-hero:before{width:320px;height:320px;right:-120px;top:-150px}.shop-hero:after{width:180px;height:180px;left:-80px;bottom:-100px;animation-delay:1.5s}
.shop-hero .container{position:relative;z-index:1}
.shop-hero-kicker{font-size:15px;letter-spacing:3px;font-weight:800;color:#b9f2d9;margin-bottom:12px;animation:heroIn .7s ease both}
.shop-hero h1{font-size:clamp(38px,6vw,66px);line-height:1.05;margin:0 0 15px;font-weight:850;letter-spacing:-1.2px;animation:heroIn .8s .1s ease both}
.shop-hero p{max-width:780px;font-size:17px;line-height:1.65;color:rgba(255,255,255,.88);margin:0;animation:heroIn .8s .2s ease both}
.hero-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;animation:heroIn .8s .3s ease both}.hero-pills span{padding:9px 13px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);border-radius:999px;font-size:12px;font-weight:700;backdrop-filter:blur(5px)}
@keyframes heroFloat{0%,100%{transform:translate3d(0,0,0) rotate(0deg)}50%{transform:translate3d(0,18px,0) rotate(8deg)}}
@keyframes heroIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.customer-auth{min-width:0}
.welcome-chip{transition:transform .2s ease,box-shadow .2s ease}.welcome-chip:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(8,75,55,.12)}
.product-gallery{display:flex;gap:8px;margin-top:10px;overflow:auto}.product-gallery button{border:1px solid #d9e5df;background:#fff;border-radius:8px;padding:3px;cursor:pointer}.product-gallery img{width:58px;height:58px;object-fit:cover;border-radius:6px}.modal-main-image{transition:opacity .2s ease}
/* Product manager */
.pm-wrap{padding:55px 0}.pm-card{background:#fff;border:1px solid #dfe9e5;border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(8,75,55,.06);margin-top:18px}.pm-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.pm-grid label{font-size:13px;font-weight:700;color:#244e42}.pm-grid input,.pm-grid select,.pm-grid textarea{width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #d8e3df;border-radius:9px;font:inherit;background:#fff}.pm-grid textarea{min-height:100px;resize:vertical}.pm-full{grid-column:1/-1}.pack-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:8px}.pack-row button{border:1px solid #efc8c8;background:#fff6f6;color:#a22;border-radius:8px;padding:0 12px}.image-help{font-size:12px;color:#6d8079;margin-top:5px}.pm-msg{padding:11px;border-radius:9px;background:#f3f8f5;margin-top:12px;display:none}.pm-list{display:grid;gap:10px}.pm-item{display:grid;grid-template-columns:70px 1fr auto;gap:12px;align-items:center;border:1px solid #e4ece8;border-radius:12px;padding:10px}.pm-item img{width:70px;height:70px;object-fit:cover;border-radius:8px}.pm-item small{display:block;color:#71847d;margin-top:3px}.pm-item button{border:0;background:#fff0f0;color:#a22;padding:8px 10px;border-radius:8px}.pm-lock{max-width:480px;margin:60px auto}.pm-brand{font-weight:900;color:#075b45;letter-spacing:.6px}
@media(max-width:760px){.shop-hero{padding:54px 0 48px}.shop-hero-kicker{font-size:11px;letter-spacing:2px}.shop-hero h1{font-size:39px}.shop-hero p{font-size:14px}.hero-pills span{font-size:10px;padding:7px 9px}.pm-grid{grid-template-columns:1fr}.pm-full{grid-column:auto}.pack-row{grid-template-columns:1fr 1fr}.pack-row button{grid-column:1/-1;height:36px}.pm-item{grid-template-columns:56px 1fr}.pm-item img{width:56px;height:56px}.pm-item button{grid-column:2}.product-gallery img{width:50px;height:50px}}

/* Premium Shushiva shop hero */
.shop-hero{position:relative;overflow:hidden;padding:76px 0 68px;background:linear-gradient(135deg,#045d47 0%,#087452 52%,#043f32 100%);color:#fff}
.shop-hero:before,.shop-hero:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.13);border-radius:50%;pointer-events:none;animation:heroFloat 8s ease-in-out infinite}
.shop-hero:before{width:320px;height:320px;right:-120px;top:-150px}.shop-hero:after{width:180px;height:180px;left:-80px;bottom:-100px;animation-delay:1.5s}
.shop-hero .container{position:relative;z-index:1}
.shop-hero-kicker{font-size:15px;letter-spacing:3px;font-weight:800;color:#b9f2d9;margin-bottom:12px;animation:heroIn .7s ease both}
.shop-hero h1{font-size:clamp(38px,6vw,66px);line-height:1.05;margin:0 0 15px;font-weight:850;letter-spacing:-1.2px;animation:heroIn .8s .1s ease both}
.shop-hero p{max-width:780px;font-size:17px;line-height:1.65;color:rgba(255,255,255,.88);margin:0;animation:heroIn .8s .2s ease both}
.hero-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;animation:heroIn .8s .3s ease both}.hero-pills span{padding:9px 13px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);border-radius:999px;font-size:12px;font-weight:700;backdrop-filter:blur(5px)}
@keyframes heroFloat{0%,100%{transform:translate3d(0,0,0) rotate(0deg)}50%{transform:translate3d(0,18px,0) rotate(8deg)}}
@keyframes heroIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.customer-auth{min-width:0}
.welcome-chip{transition:transform .2s ease,box-shadow .2s ease}.welcome-chip:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(8,75,55,.12)}
.product-gallery{display:flex;gap:8px;margin-top:10px;overflow:auto}.product-gallery button{border:1px solid #d9e5df;background:#fff;border-radius:8px;padding:3px;cursor:pointer}.product-gallery img{width:58px;height:58px;object-fit:cover;border-radius:6px}.modal-main-image{transition:opacity .2s ease}
/* Product manager */
.pm-wrap{padding:55px 0}.pm-card{background:#fff;border:1px solid #dfe9e5;border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(8,75,55,.06);margin-top:18px}.pm-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.pm-grid label{font-size:13px;font-weight:700;color:#244e42}.pm-grid input,.pm-grid select,.pm-grid textarea{width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #d8e3df;border-radius:9px;font:inherit;background:#fff}.pm-grid textarea{min-height:100px;resize:vertical}.pm-full{grid-column:1/-1}.pack-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:8px}.pack-row button{border:1px solid #efc8c8;background:#fff6f6;color:#a22;border-radius:8px;padding:0 12px}.image-help{font-size:12px;color:#6d8079;margin-top:5px}.pm-msg{padding:11px;border-radius:9px;background:#f3f8f5;margin-top:12px;display:none}.pm-list{display:grid;gap:10px}.pm-item{display:grid;grid-template-columns:70px 1fr auto;gap:12px;align-items:center;border:1px solid #e4ece8;border-radius:12px;padding:10px}.pm-item img{width:70px;height:70px;object-fit:cover;border-radius:8px}.pm-item small{display:block;color:#71847d;margin-top:3px}.pm-item button{border:0;background:#fff0f0;color:#a22;padding:8px 10px;border-radius:8px}.pm-lock{max-width:480px;margin:60px auto}.pm-brand{font-weight:900;color:#075b45;letter-spacing:.6px}
@media(max-width:760px){.shop-hero{padding:54px 0 48px}.shop-hero-kicker{font-size:11px;letter-spacing:2px}.shop-hero h1{font-size:39px}.shop-hero p{font-size:14px}.hero-pills span{font-size:10px;padding:7px 9px}.pm-grid{grid-template-columns:1fr}.pm-full{grid-column:auto}.pack-row{grid-template-columns:1fr 1fr}.pack-row button{grid-column:1/-1;height:36px}.pm-item{grid-template-columns:56px 1fr}.pm-item img{width:56px;height:56px}.pm-item button{grid-column:2}.product-gallery img{width:50px;height:50px}}

/* Final mobile/product-detail/cart/account fixes */
.shop-hero-kicker{font-size:16px;letter-spacing:3.5px;font-weight:900;text-transform:uppercase;text-shadow:0 1px 8px rgba(0,0,0,.16)}
.shop-hero h1 span{color:#d8ffe9}.hero-wave{display:inline-block;animation:waveFloat 1.8s ease-in-out infinite;transform-origin:70% 70%}@keyframes waveFloat{0%,100%{transform:rotate(0) translateY(0)}50%{transform:rotate(8deg) translateY(-4px)}}
.shop-hero h1{animation:heroIn .8s ease both;text-shadow:0 3px 20px rgba(0,0,0,.14)}
.product-media{background:#f7faf8;min-height:210px;display:flex;align-items:center;justify-content:center}.product-media img{height:210px;object-fit:contain;transition:transform .2s ease}.product-media:hover img{transform:scale(1.025)}
.product-modal{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(3,20,14,.44);padding:14px;overflow:auto}.modal-card{max-height:min(92vh,820px);overflow:auto;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:start;padding:24px}.modal-media{min-width:0}.modal-main-frame{width:100%;height:430px;background:#f7faf8;border:1px solid #e2ece8;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}.modal-main-image{width:100%;height:100%;object-fit:contain;display:block}.modal-info{padding-top:8px}.modal-info h2{font-size:30px;line-height:1.15;color:#0a4f3d;margin:7px 0 10px}.modal-info p{font-size:14px;line-height:1.65;color:#60766d}.modal-info h3{font-size:16px;margin:20px 0 8px;color:#0a4f3d}.modal-prices{list-style:none;margin:0;padding:0;border:1px solid #e2ece8;border-radius:12px;overflow:hidden}.modal-prices li{display:flex;justify-content:space-between;gap:15px;padding:12px 14px;border-bottom:1px solid #e7eeeb;background:#fff}.modal-prices li:last-child{border-bottom:0}.gallery-thumb.active{border-color:#08784f;box-shadow:0 0 0 2px rgba(8,120,79,.12)}.gallery-thumb img{width:62px;height:62px;object-fit:cover;border-radius:7px}.modal-add{margin-top:16px;width:100%;min-height:48px}.modal-close{z-index:2;background:#fff;border-radius:50%;width:40px;height:40px;line-height:36px;box-shadow:0 5px 15px rgba(0,0,0,.12)}body.modal-open{overflow:hidden}
.cart-panel{width:min(520px,94vw);display:flex;flex-direction:column}.cart-panel .cart-head{flex:0 0 auto}.cart-panel #cartItems{flex:1 1 auto;overflow:auto;padding:0 20px}.cart-panel .cart-total{flex:0 0 auto;padding:14px 20px;background:#f6faf8;border-top:1px solid #e2ece8}.cart-panel>.cart-checkout-btn{flex:0 0 auto;margin:0 20px 20px;width:calc(100% - 40px);min-height:54px;font-size:16px;font-weight:800;position:sticky;bottom:0;z-index:3}.cart-thumb{width:58px;height:58px;border-radius:9px;background:#f7faf8;overflow:hidden}.cart-thumb img{width:100%;height:100%;object-fit:contain}.mini-thumb{width:46px;height:46px;border-radius:7px;overflow:hidden;background:#f7faf8}.mini-thumb img{width:100%;height:100%;object-fit:contain}
.account-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start}.account-sidebar{background:#fff;border:1px solid #dfe9e5;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(8,75,55,.06);position:sticky;top:20px}.account-user-mini{display:flex;align-items:center;gap:10px;padding:18px;border-bottom:1px solid #e7eeeb}.account-avatar{width:44px;height:44px;border-radius:50%;background:#0a7653;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900}.account-user-mini small,.account-user-mini strong{display:block}.account-user-mini small{font-size:11px;color:#71847d}.account-user-mini strong{color:#0a4f3d;margin-top:2px}.account-side-link{width:100%;display:flex;align-items:center;gap:8px;padding:14px 16px;border:0;background:#fff;color:#214e42;text-decoration:none;font:inherit;font-weight:700;text-align:left;cursor:pointer}.account-side-link:hover,.account-side-link.active{background:#edf8f3;color:#08784f}.account-side-link.danger{color:#a33}.account-content{min-width:0}.account-panel{margin-bottom:18px}.save-inline{display:inline-block;margin-left:10px;color:#08784f;font-weight:700}.account-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.order-card{display:grid;grid-template-columns:1fr auto;gap:8px;padding:15px 0;border-bottom:1px solid #e5ebe8}.order-card:last-child{border-bottom:0}.order-card small{display:block;color:#71847d;margin-top:4px}.order-card details{grid-column:1/-1}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.checkout-card>h2{margin-top:0}.checkout-wrap .checkout-card .btn[type="submit"]{min-height:52px;font-size:16px}.checkout-grid{align-items:start}.order-summary{position:sticky;top:18px}
@media(max-width:760px){.shop-hero{padding:50px 0 44px}.shop-hero-kicker{font-size:12px;letter-spacing:2.5px}.shop-hero h1{font-size:36px}.shop-tools{gap:8px}.shop-tools input,.shop-tools select,.customer-auth,.cart-top-wrap{width:100%;min-width:0}.customer-auth{grid-template-columns:minmax(0,1fr) auto}.cart-top-wrap{display:block}.cart-top-btn{width:100%;min-height:50px}.mini-cart{top:118px}.product-media{min-height:150px}.product-media img{height:150px}.modal-card{grid-template-columns:1fr;max-height:94vh;padding:18px}.modal-main-frame{height:300px}.modal-info h2{font-size:24px}.gallery-thumb img{width:52px;height:52px}.cart-panel{width:100%;max-width:none;left:0!important;right:0!important;border-radius:18px 18px 0 0}.cart-panel>.cart-checkout-btn{min-height:58px;font-size:17px;margin-bottom:14px}.account-layout,.auth-grid{grid-template-columns:1fr}.account-sidebar{position:static;display:flex;flex-wrap:wrap}.account-user-mini{width:100%}.account-side-link{width:auto;flex:1 1 45%;justify-content:center}.account-head{align-items:flex-start}.order-summary{position:static}.checkout-wrap{padding:30px 0}.checkout-card{padding:18px}.order-card{grid-template-columns:1fr}.order-card details{grid-column:auto}.shop-category-section{padding-top:30px!important;padding-bottom:30px!important}}
@media(max-width:390px){.shop-hero h1{font-size:32px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-media{min-height:125px}.product-media img{height:125px}.buyrow .btn{font-size:9px}.cart-panel>.cart-checkout-btn{min-height:60px}}

.pm-back{background:#eef8f3!important;color:#0a5a43!important;border:1px solid #cfe5dc!important;box-shadow:none!important}


/* V3 mobile polish + cache-safe release */
.shop-tools{background:rgba(255,255,255,.94);border:1px solid #dce9e4;border-radius:18px;padding:12px;box-shadow:0 10px 28px rgba(8,75,55,.07);align-items:center}
.shop-tools input,.shop-tools select{min-height:44px;border-radius:11px}
.customer-auth{display:flex;gap:8px;align-items:center}
.welcome-chip{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:1px solid #cfe5dc;border-radius:12px;background:#eff9f4;color:#0a5f47;text-decoration:none;font-weight:800;font-size:13px;white-space:nowrap}
.logout-shop{min-height:44px!important;padding:0 16px!important;border-radius:12px!important}
.cart-top-btn{min-height:44px!important;border-radius:12px!important}
.shop-category-section{scroll-margin-top:18px}
.shopbar{margin-bottom:16px}
.shopbar h2{font-size:25px;margin:3px 0 0}
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.shop-card{border-radius:15px;box-shadow:0 5px 18px rgba(8,75,55,.07)}
.product-media{border:0;width:100%;cursor:pointer;padding:0}
.product-media:focus-visible{outline:3px solid rgba(8,120,79,.35);outline-offset:-3px}
.shop-card-body{padding:13px 13px 14px}
.shop-card h3{font-size:15px}
.shop-card p{font-size:11px;min-height:31px}
.buyrow input{width:58px;min-height:36px;border:1px solid #d5e4df;border-radius:8px;padding:0 7px;font-size:12px}
.buyrow .btn{min-height:36px;border-radius:9px;font-size:12px;flex:1}

/* Account redesign */
.account-wrap{padding:48px 0 58px;background:linear-gradient(180deg,#f5faf7 0%,#fff 48%)}
.account-wrap>.container>h1{margin:5px 0 24px;font-size:36px;letter-spacing:-.8px;color:#123f34}
.account-sidebar{border-radius:18px;box-shadow:0 10px 28px rgba(8,75,55,.08)}
.account-user-mini{padding:20px 18px;background:linear-gradient(135deg,#f0faf5,#fff)}
.account-avatar{width:48px;height:48px;box-shadow:0 6px 15px rgba(8,120,79,.18)}
.account-side-link{min-height:50px;border-top:1px solid #f0f4f2}
.account-side-link.active{font-weight:900;box-shadow:inset 3px 0 #08784f}
.account-content .checkout-card{border-radius:18px;box-shadow:0 10px 28px rgba(8,75,55,.07)}
.account-head{padding:24px 26px}
.account-head h2{font-size:25px;margin:4px 0 7px}
.account-head p{margin:0;color:#6c8078;font-size:13px;word-break:break-word}
.account-head .btn{min-width:105px;min-height:44px}
#addressPanel,#ordersPanel{padding:24px 26px}
#addressPanel h2,#ordersPanel h2{margin-top:0}
.order-card{padding:17px 0}
.order-card strong{color:#164d3e}
.auth-grid .checkout-card{border-radius:18px;box-shadow:0 10px 28px rgba(8,75,55,.07)}
.auth-grid .btn{min-height:48px}

/* Keep the shop usable even if server catalogue is temporarily unavailable */
.shop-loading-note{display:none;margin:18px 0;padding:14px;border:1px solid #dce9e4;border-radius:12px;background:#fff;color:#526d63;font-size:13px}

@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:760px){
 .shop-hero{padding:44px 0 38px}
 .shop-hero h1{font-size:34px;line-height:1.08}
 .shop-hero-kicker{font-size:11px;letter-spacing:2.2px}
 .shop-tools{padding:10px;border-radius:15px}
 .shop-tools input{flex-basis:100%}
 .customer-auth{grid-template-columns:1fr auto;display:grid}
 .welcome-chip{justify-content:flex-start;overflow:hidden;text-overflow:ellipsis}
 .logout-shop{width:auto}
 .cart-top-wrap{margin-top:2px}
 .cart-top-btn{box-shadow:0 6px 16px rgba(8,120,79,.16)}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .shop-card{border-radius:13px}
 .product-media{min-height:145px}
 .product-media img{height:145px}
 .shop-card-body{padding:10px}
 .shop-card h3{font-size:13px}
 .shop-card p{font-size:10px;min-height:28px}
 .shop-card select{height:34px;font-size:10px}
 .buyrow{gap:5px}
 .buyrow input{width:50px}
 .buyrow .btn{font-size:10px;padding:0 8px}
 .shopbar h2{font-size:21px}
 .account-wrap{padding:30px 0 42px}
 .account-wrap>.container>h1{font-size:29px;margin-bottom:18px}
 .account-layout{gap:14px}
 .account-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden}
 .account-user-mini{grid-column:1/-1;width:auto}
 .account-side-link{width:auto;min-height:48px;justify-content:flex-start;padding:12px 13px;font-size:12px}
 .account-side-link:last-child{grid-column:1/-1}
 .account-content .checkout-card,#addressPanel,#ordersPanel{padding:18px}
 .account-head{align-items:center;gap:12px}
 .account-head h2{font-size:20px}
 .account-head .btn{min-width:88px;min-height:42px}
 .auth-grid{gap:12px}
}
@media(max-width:390px){.product-grid{gap:8px}.shop-hero h1{font-size:30px}.welcome-chip{font-size:11px;padding:0 10px}.logout-shop{padding:0 11px!important}.account-side-link{font-size:11px}}

/* V4 mobile clarity: keep the shop visible behind the product dialog. */
.product-modal.show{animation:modalIn .16s ease-out both}
@keyframes modalIn{from{opacity:0}to{opacity:1}}
.modal-card{animation:modalCardIn .18s ease-out both}
@keyframes modalCardIn{from{transform:translateY(10px) scale(.985);opacity:.7}to{transform:none;opacity:1}}
@media(max-width:760px){.product-modal{background:rgba(3,20,14,.38)}.modal-card{width:100%;border-radius:20px;box-shadow:0 18px 55px rgba(0,0,0,.28)}.modal-main-frame{background:#fff}}


/* V5: persistent floating checkout shortcut for long product lists */
.floating-checkout{position:fixed;right:22px;bottom:22px;z-index:1250;display:none;align-items:center;gap:11px;min-width:205px;padding:11px 14px 11px 12px;border:1px solid rgba(255,255,255,.32);border-radius:16px;background:linear-gradient(135deg,#08784f,#075f43);color:#fff;box-shadow:0 12px 34px rgba(4,62,45,.32);cursor:pointer;font:inherit;text-align:left;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.floating-checkout.show{display:flex;animation:floatCheckoutIn .22s ease-out both}
.floating-checkout:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(4,62,45,.38)}
.floating-checkout:active{transform:translateY(0)}
.floating-checkout-icon{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-size:19px;flex:0 0 auto}
.floating-checkout-copy{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.15}
.floating-checkout-copy strong{font-size:14px;font-weight:900}
.floating-checkout-copy small{font-size:11px;opacity:.9;white-space:nowrap}
.floating-checkout-arrow{margin-left:auto;font-size:22px;font-weight:900;line-height:1}
@keyframes floatCheckoutIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:760px){
 .floating-checkout{left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));width:auto;min-width:0;justify-content:flex-start;padding:10px 13px;border-radius:15px}
 .floating-checkout-copy{flex:1}
 .floating-checkout-copy strong{font-size:14px}
 .floating-checkout-copy small{font-size:11px}
}
@media(max-width:390px){.floating-checkout{left:10px;right:10px}.floating-checkout-icon{width:35px;height:35px}.floating-checkout-copy strong{font-size:13px}.floating-checkout-copy small{font-size:10px}}

/* V6: product cards must remain visible on the shop page.
   The shared site animation can hide dynamically-rendered .reveal elements after load. */
.shop-card{opacity:1!important;visibility:visible!important;transform:none!important;}
.shop-card.reveal{opacity:1!important;visibility:visible!important;transform:none!important;}


/* V7: persistent checkout + compact customer account menu */
.account-menu-wrap{position:relative;display:inline-flex;align-items:center}
.profile-shop-btn{min-height:46px;white-space:nowrap}
.shop-account-menu{position:absolute;right:0;top:calc(100% + 10px);width:260px;background:#fff;border:1px solid #dce9e3;border-radius:16px;box-shadow:0 18px 50px rgba(7,72,53,.18);padding:8px;z-index:1400;display:none}
.shop-account-menu.show{display:block}
.shop-account-menu>a,.shop-account-menu>button{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:8px 11px;border:0;border-radius:10px;background:transparent;color:#174f41;text-decoration:none;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.shop-account-menu>a:hover,.shop-account-menu>button:hover{background:#eff8f4}
.shop-account-user{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #edf2ef;margin-bottom:5px}
.shop-account-user small{display:block;color:#7a8b85;font-size:10px}.shop-account-user strong{display:block;color:#0a5a43;font-size:13px}
.shop-account-avatar{width:34px;height:34px;border-radius:50%;background:#08784f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
/* Always-visible checkout shortcut: stays on screen even with long catalogues. */
.floating-checkout{display:flex!important;visibility:visible;opacity:1;position:fixed;right:18px;bottom:18px;z-index:1250;align-items:center;gap:11px;min-width:205px;padding:11px 14px 11px 12px;border:1px solid rgba(255,255,255,.32);border-radius:16px;background:linear-gradient(135deg,#08784f,#075f43);color:#fff;box-shadow:0 12px 34px rgba(4,62,45,.32);cursor:pointer;font:inherit;text-align:left}
.floating-checkout.show{display:flex!important}
.floating-checkout-copy{flex:1}
@media(max-width:760px){.shop-account-menu{position:fixed;right:12px;top:120px;width:min(300px,calc(100vw - 24px));}.floating-checkout{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;min-width:0;justify-content:flex-start;padding:10px 13px;border-radius:15px}.floating-checkout-copy{flex:1}.profile-shop-btn{width:auto}.customer-auth{width:auto!important;display:flex!important;grid-template-columns:none!important}.account-menu-wrap{width:auto}}


/* V8: larger checkout CTA + card quantity stays synced with cart quantity. */
.floating-checkout{min-width:300px;min-height:68px;padding:14px 18px 14px 15px;border-radius:18px;gap:13px;}
.floating-checkout-icon{width:46px;height:46px;border-radius:13px;font-size:22px;}
.floating-checkout-copy strong{font-size:17px;}
.floating-checkout-copy small{font-size:13px;}
.floating-checkout-arrow{font-size:27px;}
@media(max-width:760px){
  .floating-checkout{left:12px!important;right:auto!important;width:calc(100vw - 24px)!important;min-width:0!important;box-sizing:border-box;min-height:68px;padding:12px 16px;border-radius:18px;bottom:calc(12px + env(safe-area-inset-bottom));}
  .floating-checkout-icon{width:44px;height:44px;}
  .floating-checkout-copy strong{font-size:17px;}
  .floating-checkout-copy small{font-size:13px;}
}
@media(max-width:390px){.floating-checkout{left:10px!important;width:calc(100vw - 20px)!important;min-height:66px}.floating-checkout-copy strong{font-size:16px}.floating-checkout-copy small{font-size:12px}}
.qty-synced-note{font-size:10px;color:#477268;margin-top:2px;}


/* V9 colorful welcome hero */
.shop-hero{background:linear-gradient(135deg,#034f3c 0%,#087c59 45%,#075a70 72%,#073f52 100%);}
.shop-hero-kicker{color:#ffe6a3;text-shadow:0 0 14px rgba(255,220,120,.18);}
.shop-hero h1{
  background:linear-gradient(90deg,#ffffff 0%,#fff3b0 32%,#ffd166 55%,#ff9f68 78%,#ffffff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  background-size:220% auto;
  animation:heroIn .8s ease both,heroRainbow 6s linear 0.8s infinite;
  text-shadow:none;
}
.shop-hero h1 span{
  background:linear-gradient(90deg,#ffe082,#ffb36b,#ffd86b,#a8ffd8);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 3px 10px rgba(255,193,92,.15));
}
.shop-hero p{color:rgba(255,255,255,.94);}
.hero-pills span{
  border-color:rgba(255,224,140,.32);
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,211,107,.10));
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

@media(max-width:760px){.shop-hero h1{font-size:36px}}
@media(max-width:390px){.shop-hero h1{font-size:31px}}

/* V11: colorful moving welcome shine without covering the first letter */
@keyframes heroRainbow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.shop-hero h1{background-size:300% auto;}
.shop-hero h1 .hero-name{background:linear-gradient(90deg,#ffe082,#ff9f68,#ffd86b,#8ff0c5,#ffe082);background-size:260% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:heroRainbow 5s linear infinite;}
.shop-hero h1 .hero-wave{display:inline-block!important;background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;color:initial!important;filter:none!important;margin-left:8px;animation:waveFloat 1.8s ease-in-out infinite!important;}

/* V10 quantity controls: clear +/- buttons on every product card */
.buyrow{display:flex;align-items:center;gap:6px;}
.qty-control{display:flex;align-items:center;height:36px;border:1px solid #d7e5df;border-radius:9px;background:#fff;overflow:hidden;flex:0 0 auto;}
.qty-btn{width:30px;height:34px;border:0;background:#eef8f3;color:#08784f;font-size:20px;font-weight:900;line-height:1;cursor:pointer;padding:0;}
.qty-btn:active{transform:scale(.96);}
.qty-input{width:38px;height:34px;border:0!important;border-left:1px solid #e1ece7!important;border-right:1px solid #e1ece7!important;border-radius:0!important;text-align:center;font-weight:800;color:#173f35;background:#fff;padding:0 2px;}
.qty-input::-webkit-inner-spin-button,.qty-input::-webkit-outer-spin-button{opacity:1;}
.buyrow>.btn{flex:1;min-width:0;}
@media(max-width:760px){.qty-control{height:36px}.qty-btn{width:28px;height:34px}.qty-input{width:34px}.buyrow{gap:5px}}
@media(max-width:390px){.qty-btn{width:25px}.qty-input{width:30px}.buyrow>.btn{font-size:11px;padding:0 6px;}}


/* V12: final hero rendering + exact responsive product columns */
.shop-hero h1{background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;color:#fff!important;text-shadow:none!important;animation:heroIn .8s ease both!important;}
.hero-title-gradient{display:inline;background:linear-gradient(90deg,#ffffff 0%,#ffe082 18%,#ff9f68 36%,#ffd166 54%,#8ff0c5 72%,#6fe7ff 88%,#ffffff 100%);background-size:300% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:heroRainbow 5s linear infinite;filter:drop-shadow(0 3px 10px rgba(255,193,92,.12));}
.shop-hero h1 .hero-wave{display:inline-block!important;background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;color:inherit!important;filter:none!important;margin-left:8px;animation:waveFloat 1.8s ease-in-out infinite!important;}
@media(min-width:761px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;}}
@media(max-width:760px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}}

/* V14: password reset */
.forgot-password-link{display:inline-block;margin-top:12px;color:#087f5b;font-weight:700;text-decoration:none;font-size:14px}
.forgot-password-link:hover{text-decoration:underline}
.auth-single-card{max-width:620px;margin:28px auto 80px}
.auth-single-card p{color:#5b6b67;line-height:1.6}
.auth-single-card form{display:grid;gap:16px;margin-top:8px}
.auth-single-card label{display:block;font-weight:700;font-size:14px;color:#244d42}
.auth-single-card input{display:block;width:100%;margin-top:7px;padding:13px 14px;border:1px solid #d9dee7;border-radius:9px;box-sizing:border-box;font:inherit;background:#fff;min-height:46px}
.auth-single-card .btn{margin-top:2px;justify-self:start;min-height:48px}
.auth-back{margin-top:18px!important}
@media(max-width:760px){.auth-single-card{width:100%;max-width:none;margin:22px 0 55px}.auth-single-card{padding:18px}.auth-single-card .btn{width:100%;justify-content:center}}

/* Password visibility control for authentication forms */
.auth-single-card .password-field{position:relative;width:100%;margin-top:7px}
.auth-single-card .password-field input{margin-top:0;padding-right:56px}
.auth-single-card .password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:42px;height:38px;border:0;border-radius:9px;background:#f1f6f3;color:#0a7652;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center;padding:0}
.auth-single-card .password-toggle:hover{background:#e4efe9}
.auth-single-card .password-toggle:focus-visible{outline:2px solid #0a7652;outline-offset:2px}

/* V18: customer identity, account traceability and password security */
.customer-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid #e3ece8}.customer-details-grid>div{padding:13px 14px;border:1px solid #e2ebe7;border-radius:12px;background:#f8fcfa}.customer-details-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#71847d;font-weight:800;margin-bottom:5px}.customer-details-grid strong{display:block;color:#0a5a43;font-size:14px;word-break:break-word}.security-note{color:#65766f;line-height:1.5}.security-form{display:grid;gap:14px;margin-top:15px}.security-form label{display:block;font-weight:700;color:#244d42}.security-form input{display:block;width:100%;margin-top:7px;padding:13px 52px 13px 14px;border:1px solid #d9dee7;border-radius:10px;box-sizing:border-box;font:inherit;min-height:48px}.security-form .password-field{position:relative}.security-form .password-toggle{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:42px;height:38px;border:0;border-radius:9px;background:#f1f6f3;color:#0a7652;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center}.security-form .password-toggle:focus-visible{outline:2px solid #0a7652;outline-offset:2px}
@media(max-width:760px){.customer-details-grid{grid-template-columns:1fr}.customer-details-grid strong{font-size:13px}.security-form .btn{width:100%;justify-content:center}}

/* V18 password visibility on login, signup and security forms */
.auth-grid .password-field{position:relative;width:100%;margin-top:7px}.auth-grid .password-field input{margin-top:0;padding-right:54px}.auth-grid .password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:42px;height:38px;border:0;border-radius:9px;background:#f1f6f3;color:#0a7652;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center;padding:0}.auth-grid .password-toggle:focus-visible{outline:2px solid #0a7652;outline-offset:2px}
