/* ================================================================
   PRIYO STORY — SHOP
   ================================================================ */

/* ---------------- the product form ---------------- */
.sh-form .sh-two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sh-extra{
  background:var(--bg, #f0f2f0);
  border-radius:12px;
  padding:14px;
  margin-bottom:14px;
}
.sh-extra-head{
  font-size:13.5px; font-weight:800;
  color:var(--green-dark, #0f5132);
  margin-bottom:10px;
}
.sh-multi{ display:flex; gap:7px; flex-wrap:wrap; }
.sh-opt{
  border:1.5px solid var(--border, #e2e8e4);
  background:#fff;
  border-radius:9px;
  padding:8px 14px;
  font-family:inherit; font-size:13.5px; font-weight:600;
  cursor:pointer;
}
.sh-opt.on{
  border-color:var(--green-dark, #0f5132);
  background:var(--green-dark, #0f5132);
  color:#fff;
}
.sh-note{
  font-size:12.5px; line-height:1.7;
  color:#7a5510;
  background:#fff6e5;
  border-radius:9px;
  padding:10px 12px;
}
.cp-tab-shop .cp-shopico{ font-size:17px; }
.pg-comp-btn.sell{ color:var(--green-dark, #0f5132); font-weight:700; }

/* ---------------- product grid ---------------- */
.sh-head{
  display:flex; gap:12px; align-items:center;
  flex-wrap:wrap; margin-bottom:14px;
}
.sh-filters{ display:flex; gap:7px; overflow-x:auto; flex:1; min-width:0; scrollbar-width:none; }
.sh-filters::-webkit-scrollbar{ display:none; }
.sh-chip{
  border:1.5px solid var(--border, #e2e8e4);
  background:var(--card, #fff);
  border-radius:20px; padding:8px 14px;
  font-family:inherit; font-size:13.5px; font-weight:600;
  cursor:pointer; white-space:nowrap;
}
.sh-chip.on{
  border-color:var(--green-dark, #0f5132);
  background:var(--green-dark, #0f5132);
  color:#fff;
}
.sh-search input{
  border:1.5px solid var(--border, #e2e8e4);
  border-radius:20px; padding:9px 16px;
  font-family:inherit; font-size:14px;
  outline:none; min-width:170px;
}
.sh-search input:focus{ border-color:var(--green, #1a7a4c); }

.sh-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
  gap:14px;
}
.sh-card{
  background:var(--card, #fff);
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(15,81,50,.07);
  display:flex; flex-direction:column;
}
.sh-card-pic{
  position:relative;
  display:block;
  aspect-ratio:1 / 1;
  background:var(--bg, #f0f2f0);
  overflow:hidden;
}
.sh-card-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.sh-off{
  position:absolute; left:8px; top:8px;
  background:var(--red, #e2231a); color:#fff;
  font-size:11.5px; font-weight:800;
  padding:3px 9px; border-radius:6px;
}
.sh-out{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.78);
  font-size:14px; font-weight:800;
  color:var(--muted, #6b7a72);
}
.sh-card-body{ padding:11px 12px 13px; display:flex; flex-direction:column; gap:5px; flex:1; }
.sh-card-name{
  font-size:14.5px; font-weight:600;
  color:inherit; text-decoration:none;
  line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
}
.sh-price{
  font-size:17px; font-weight:800;
  color:var(--green-dark, #0f5132);
  display:flex; align-items:baseline; gap:7px;
}
.sh-price s{ font-size:13px; font-weight:600; color:var(--muted, #6b7a72); }
.sh-add{
  margin-top:auto;
  border:1.5px solid var(--border, #e2e8e4);
  background:var(--card, #fff);
  border-radius:9px; padding:9px;
  font-family:inherit; font-size:13.5px; font-weight:700;
  color:var(--green-dark, #0f5132);
  cursor:pointer;
}
.sh-add:hover{ background:var(--green-light, #e8f5ee); border-color:var(--green, #1a7a4c); }
.sh-add:disabled{ opacity:.5; cursor:not-allowed; }

/* ---------------- the shop's own link ---------------- */
.sh-link{
  background:var(--green-light, #e8f5ee);
  border:1px solid #bfe3ce;
  border-radius:12px;
  padding:14px;
  margin-bottom:16px;
}
.sh-link-head{
  font-size:14px; font-weight:800;
  color:var(--green-dark, #0f5132);
  margin-bottom:9px;
}
.sh-link-head small{ font-weight:600; opacity:.8; }
.sh-link-row{ display:flex; gap:8px; }
.sh-link-row input{
  flex:1; min-width:0;
  border:1px solid #bfe3ce; border-radius:9px;
  padding:9px 12px; font-size:13px;
  background:#fff; color:var(--text, #1f2a24);
}
.sh-link-row button{
  border:none; background:var(--green-dark, #0f5132); color:#fff;
  border-radius:9px; padding:9px 15px;
  font-family:inherit; font-size:13.5px; font-weight:700;
  cursor:pointer; flex-shrink:0;
}
.sh-link-note{
  font-size:12.5px; line-height:1.7;
  color:var(--green-dark, #0f5132);
  margin-top:8px; opacity:.85;
}

/* ---------------- product in the feed ---------------- */
.sp-product{
  display:flex; gap:14px;
  border:1px solid var(--border, #e2e8e4);
  border-radius:13px;
  overflow:hidden;
  text-decoration:none; color:inherit;
  margin-top:4px;
}
.sp-product-pic{
  position:relative;
  width:150px; flex-shrink:0;
  background:var(--bg, #f0f2f0);
}
.sp-product-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.sp-product-off{
  position:absolute; left:7px; top:7px;
  background:var(--red, #e2231a); color:#fff;
  font-size:11px; font-weight:800;
  padding:2px 8px; border-radius:5px;
}
.sp-product-body{ padding:12px 14px 12px 0; display:flex; flex-direction:column; gap:5px; min-width:0; }
.sp-product-name{ font-size:16px; font-weight:700; line-height:1.45; }
.sp-product-price{
  font-size:18px; font-weight:800;
  color:var(--green-dark, #0f5132);
  display:flex; align-items:baseline; gap:8px;
}
.sp-product-price s{ font-size:13.5px; font-weight:600; color:var(--muted, #6b7a72); }
.sp-product-desc{
  font-size:13.5px; color:var(--muted, #6b7a72); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.sp-product-go{
  font-size:13.5px; font-weight:700;
  color:var(--green-dark, #0f5132);
  margin-top:auto;
}

/* ================================================================
   PRODUCT PAGE
   ================================================================ */
.pd-wrap{ max-width:1120px; margin:0 auto; padding:20px 16px 60px; }
.pd-loading{ text-align:center; padding:50px 20px; color:var(--muted, #6b7a72); }

.pd-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:28px;
  align-items:start;
}

.pd-stage{
  position:relative;
  aspect-ratio:1 / 1;
  background:var(--card, #fff);
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(15,81,50,.07);
}
.pd-slide{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;
  opacity:0;
  transition:opacity .25s ease;
}
.pd-slide.on{ opacity:1; }
.pd-off{
  position:absolute; left:12px; top:12px;
  background:var(--red, #e2231a); color:#fff;
  font-size:13px; font-weight:800;
  padding:5px 12px; border-radius:7px;
  z-index:2;
}
.pd-nav{
  position:absolute; top:50%;
  transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  border:none; background:rgba(255,255,255,.92);
  box-shadow:0 2px 10px rgba(0,0,0,.16);
  font-size:24px; line-height:1;
  color:var(--text, #1f2a24);
  cursor:pointer; z-index:2;
}
.pd-nav.prev{ left:10px; }
.pd-nav.next{ right:10px; }

.pd-thumbs{ display:flex; gap:8px; margin-top:10px; overflow-x:auto; scrollbar-width:none; }
.pd-thumbs::-webkit-scrollbar{ display:none; }
.pd-thumb{
  width:64px; height:64px; flex-shrink:0;
  border:2px solid transparent;
  border-radius:9px; overflow:hidden;
  background:var(--card, #fff);
  padding:0; cursor:pointer;
}
.pd-thumb.on{ border-color:var(--green-dark, #0f5132); }
.pd-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.pd-video{ margin-top:12px; border-radius:13px; overflow:hidden; background:#000; }
.pd-video video{ width:100%; display:block; max-height:420px; }

.pd-cat{ font-size:13.5px; color:var(--muted, #6b7a72); margin-bottom:5px; }
.pd-name{ font-size:26px; font-weight:800; line-height:1.35; margin-bottom:10px; }
.pd-price{
  display:flex; align-items:baseline; gap:11px; flex-wrap:wrap;
  font-size:30px; font-weight:800;
  color:var(--green-dark, #0f5132);
  margin-bottom:8px;
}
.pd-price s{ font-size:17px; font-weight:600; color:var(--muted, #6b7a72); }
.pd-save{
  font-size:13px; font-weight:700;
  background:#fdecea; color:var(--red, #e2231a);
  padding:3px 10px; border-radius:20px;
}
.pd-stock{ font-size:14px; font-weight:700; margin-bottom:16px; }
.pd-stock.in{ color:var(--green-dark, #0f5132); }
.pd-stock.out{ color:var(--red, #e2231a); }

.pd-choice{ margin-bottom:14px; }
.pd-choice-label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:7px; }
.pd-choice-row{ display:flex; gap:8px; flex-wrap:wrap; }
.pd-opt{
  border:1.5px solid var(--border, #e2e8e4);
  background:var(--card, #fff);
  border-radius:9px; padding:9px 16px;
  font-family:inherit; font-size:14px; font-weight:600;
  cursor:pointer;
}
.pd-opt.on{
  border-color:var(--green-dark, #0f5132);
  background:var(--green-light, #e8f5ee);
  color:var(--green-dark, #0f5132);
  font-weight:700;
}

.pd-qty{ display:flex; align-items:center; gap:9px; margin-bottom:16px; }
.pd-qty > span{ font-size:14px; font-weight:700; margin-right:5px; }
.pd-qbtn{
  width:38px; height:38px;
  border:1.5px solid var(--border, #e2e8e4);
  background:var(--card, #fff);
  border-radius:9px;
  font-size:19px; cursor:pointer;
}
#pdQty{
  width:64px; height:38px; text-align:center;
  border:1.5px solid var(--border, #e2e8e4);
  border-radius:9px;
  font-family:inherit; font-size:15px; font-weight:700;
}

.pd-buy{ display:flex; gap:10px; margin-bottom:16px; }
.pd-btn{
  flex:1;
  border:none; border-radius:11px;
  padding:14px;
  font-family:inherit; font-size:15.5px; font-weight:700;
  cursor:pointer;
}
.pd-btn.cart{
  background:var(--green-light, #e8f5ee);
  color:var(--green-dark, #0f5132);
}
.pd-btn.buy{ background:var(--green-dark, #0f5132); color:#fff; }
.pd-btn:disabled{ opacity:.5; cursor:not-allowed; }

.pd-ship{
  display:flex; gap:9px; flex-wrap:wrap;
  margin-bottom:16px;
}
.pd-ship span{
  font-size:13px; font-weight:600;
  background:var(--bg, #f0f2f0);
  padding:8px 13px; border-radius:20px;
}

.pd-shop{
  display:flex; align-items:center; gap:12px;
  padding:13px;
  border:1px solid var(--border, #e2e8e4);
  border-radius:12px;
  text-decoration:none; color:inherit;
}
.pd-shop-pic{
  width:46px; height:46px; border-radius:12px;
  background:var(--green-light, #e8f5ee);
  overflow:hidden; flex-shrink:0;
}
.pd-shop-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.pd-shop-main{ flex:1; min-width:0; }
.pd-shop-main b{ display:block; font-size:15px; font-weight:700; }
.pd-shop-main i{ font-style:normal; font-size:12.5px; color:var(--muted, #6b7a72); }
.pd-shop-go{ font-size:13.5px; font-weight:700; color:var(--green-dark, #0f5132); }

.pd-details{ margin-top:28px; }
.pd-block{
  background:var(--card, #fff);
  border-radius:14px;
  padding:20px;
  margin-bottom:16px;
}
.pd-h2{ font-size:18px; font-weight:700; margin-bottom:12px; }
.pd-desc{ font-size:15px; line-height:1.9; white-space:pre-wrap; }
.pd-row{
  display:flex; justify-content:space-between; gap:16px;
  padding:10px 0;
  border-bottom:1px solid var(--border, #e2e8e4);
  font-size:14.5px;
}
.pd-row:last-child{ border-bottom:none; }
.pd-row span{ color:var(--muted, #6b7a72); }
.pd-related{ margin-top:8px; }

/* ---------------- cart & checkout ---------------- */
.ck-empty{ padding:34px; text-align:center; color:var(--muted, #6b7a72); }
.ck-item{
  display:flex; gap:12px; align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--border, #e2e8e4);
}
.ck-item:last-child{ border-bottom:none; }
.ck-pic{
  width:58px; height:58px; border-radius:10px;
  background:var(--bg, #f0f2f0);
  overflow:hidden; flex-shrink:0;
}
.ck-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.ck-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ck-main b{ font-size:14.5px; font-weight:700; }
.ck-main i{ font-style:normal; font-size:12.5px; color:var(--muted, #6b7a72); }
.ck-price{ font-size:13px; color:var(--muted, #6b7a72); }
.ck-side{ text-align:right; flex-shrink:0; }
.ck-side b{ display:block; font-size:15px; font-weight:800; color:var(--green-dark, #0f5132); }
.ck-x{
  border:none; background:transparent;
  color:var(--red, #e2231a);
  font-family:inherit; font-size:12.5px; font-weight:700;
  cursor:pointer; padding:3px 0;
}

.ck-sum{
  border-top:2px solid var(--border, #e2e8e4);
  margin-top:12px; padding-top:12px;
}
.ck-sum div{
  display:flex; justify-content:space-between;
  font-size:14.5px; padding:5px 0;
}
.ck-sum .total{
  font-size:18px; font-weight:800;
  color:var(--green-dark, #0f5132);
  border-top:1px solid var(--border, #e2e8e4);
  margin-top:6px; padding-top:10px;
}

.ck-two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ck-pay{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ck-payopt{
  border:2px solid var(--border, #e2e8e4);
  background:var(--card, #fff);
  border-radius:12px; padding:14px 12px;
  font-family:inherit; cursor:pointer; text-align:left;
}
.ck-payopt b{ display:block; font-size:14.5px; font-weight:700; margin-bottom:3px; }
.ck-payopt i{ font-style:normal; font-size:12.5px; color:var(--muted, #6b7a72); }
.ck-payopt.on{
  border-color:var(--green-dark, #0f5132);
  background:var(--green-light, #e8f5ee);
}
.ck-total{
  font-size:16px; text-align:right;
  margin:14px 0 4px;
}
.ck-total b{ font-size:22px; font-weight:800; color:var(--green-dark, #0f5132); }

.ck-done{ text-align:center; padding:26px 14px; }
.ck-tick{
  width:66px; height:66px; margin:0 auto 14px;
  border-radius:50%;
  background:var(--green-light, #e8f5ee);
  color:var(--green-dark, #0f5132);
  display:flex; align-items:center; justify-content:center;
  font-size:32px; font-weight:800;
}
.ck-done h3{ font-size:20px; font-weight:800; margin-bottom:8px; }
.ck-done p{ font-size:14.5px; line-height:1.8; color:var(--muted, #6b7a72); }

/* ---------------- reviews ---------------- */
.rv-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.rv-avg b{ font-size:34px; font-weight:800; color:var(--green-dark, #0f5132); }
.rv-stars{ color:#e3a913; font-size:19px; margin-left:9px; }
.rv-stars.small{ font-size:15px; margin:0; }
.rv-avg i{ display:block; font-style:normal; font-size:13px; color:var(--muted, #6b7a72); }
.rv-item{
  display:flex; gap:12px;
  padding:13px 0;
  border-bottom:1px solid var(--border, #e2e8e4);
}
.rv-item:last-child{ border-bottom:none; }
.rv-pic{
  width:42px; height:42px; border-radius:50%;
  background:var(--green-light, #e8f5ee);
  overflow:hidden; flex-shrink:0;
}
.rv-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.rv-main{ flex:1; min-width:0; }
.rv-main b{ font-size:14.5px; font-weight:700; }
.rv-main p{ font-size:14.5px; line-height:1.8; margin-top:4px; }
.rv-pick{ display:flex; gap:5px; }
.rv-star{
  border:none; background:transparent;
  font-size:30px; line-height:1;
  color:var(--border, #e2e8e4);
  cursor:pointer; padding:0 2px;
}
.rv-star.on{ color:#e3a913; }

/* ---------------- responsive ---------------- */
@media (max-width:900px){
  .pd-grid{ grid-template-columns:1fr; gap:20px; }
  .pd-name{ font-size:22px; }
  .pd-price{ font-size:26px; }
}
@media (max-width:600px){
  .pd-wrap{ padding:14px 12px 50px; }
  .sh-grid{ grid-template-columns:1fr 1fr; gap:11px; }
  .sh-form .sh-two, .ck-two, .ck-pay{ grid-template-columns:1fr; }
  .sp-product{ flex-direction:column; }
  .sp-product-pic{ width:100%; aspect-ratio:16 / 10; }
  .sp-product-body{ padding:0 14px 14px; }
  .pd-buy{ flex-direction:column; }
  .pd-name{ font-size:20px; }
  .pd-price{ font-size:24px; }
  .sh-link-row{ flex-wrap:wrap; }
  .sh-link-row input{ flex:1 1 100%; }
}
@media (max-width:380px){
  .sh-grid{ grid-template-columns:1fr; }
}

/* ---------------- the cart, always reachable ---------------- */
.sh-float{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex; align-items:center; gap:11px;
  background:var(--green-dark, #0f5132);
  color:#fff;
  border:none;
  border-radius:30px;
  padding:12px 22px 12px 16px;
  font-family:'Hind Siliguri', sans-serif;
  font-size:15px; font-weight:700;
  box-shadow:0 8px 24px rgba(15,81,50,.32);
  cursor:pointer;
  z-index:8500;
  max-width:calc(100vw - 28px);
}
.sh-float:active{ transform:translateX(-50%) scale(.97); }
.sh-float-ico{ position:relative; font-size:20px; line-height:1; }
.sh-float-n{
  position:absolute; right:-9px; top:-7px;
  background:var(--red, #e2231a);
  border:2px solid var(--green-dark, #0f5132);
  border-radius:20px;
  min-width:19px; height:19px;
  font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  padding:0 4px;
}
.sh-float-txt{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.25; }
.sh-float-txt b{ font-size:13px; font-weight:800; opacity:.92; }

/* it must not sit under the bottom bar or a modal */
body.has-bnav .sh-float{ bottom:78px; }
body.cp-lock .sh-float{ display:none; }

@media (max-width:400px){
  .sh-float{ font-size:14px; padding:11px 18px 11px 14px; }
}
