/* MM Feeds — shop page */
.no-scroll{overflow:hidden}
.main-nav a[aria-current="page"]{border-color:var(--leaf)}

/* Cart button in header */
.cart-btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--ink);color:#fff;border:0;border-radius:999px;padding:.6rem 1rem;font:inherit;font-weight:700;cursor:pointer;position:relative}
.cart-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cart-btn svg circle{fill:currentColor;stroke:none}
.cart-count{background:var(--lime);color:#15300A;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:.8rem;padding:0 6px}
.cart-count[hidden]{display:none}
.cart-count.bump{animation:bump .35s ease}
@keyframes bump{50%{transform:scale(1.35)}}

/* Page head */
.shop-head{background:var(--pasture);color:#fff;padding:calc(var(--header-h) + env(safe-area-inset-top,0px) + 3.5rem) 0 3rem}
.shop-head h1{font-size:clamp(2.4rem,5vw,4.2rem);font-stretch:122%;font-weight:850;line-height:.95;margin-bottom:.2em}
.shop-head .urdu{color:var(--lime);font-size:1.4rem;text-align:left;margin-bottom:1rem}
.shop-head p:last-child{color:#D9E6D5;margin:0}

/* Product rows */
.shop-list{padding:3rem 0 2rem}
#products{display:grid;gap:1.25rem}
.prod{display:grid;grid-template-columns:150px 1fr 260px;gap:2rem;align-items:center;background:#fff;border-radius:var(--radius-l);padding:1.25rem 2rem 1.25rem 1.25rem;box-shadow:0 1px 0 var(--line);border-left:10px solid var(--c)}
.prod-img{background:var(--c);border-radius:14px;padding:12px;display:flex;justify-content:center}
.prod-img img{height:190px;width:auto;border-radius:8px;transform:rotate(-3deg);box-shadow:0 12px 20px -12px rgba(0,0,0,.5)}
.prod-use{font-weight:700;color:var(--muted);margin:0 0 .2rem;font-size:.95rem}
.prod h2{font-size:clamp(1.6rem,2.6vw,2.2rem);font-stretch:122%;font-weight:900;margin:0;max-width:none}
.prod .urdu{margin:.1rem 0 .4rem;font-size:1.1rem;text-align:left;color:var(--leaf-dark)}
.prod-body p{margin-bottom:.5rem}
.prod-specs{font-size:.92rem;font-weight:600;color:var(--muted)}
.prod-buy{display:grid;gap:.7rem;justify-items:start}
.prod-price{font-size:1.5rem;font-weight:850;font-stretch:115%;margin:0;line-height:1.1}
.prod-price small{display:block;font-size:.85rem;font-weight:600;color:var(--muted);font-stretch:100%}
.prod-buy .stepper input{width:64px}
.prod-buy .add{width:100%}
.added{font-size:.9rem;min-height:1.4em;margin:0;color:var(--leaf-dark);font-weight:600}
.view-cart{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--ink);text-decoration:underline;cursor:pointer}

/* Notes */
.shop-notes{padding:3rem 0 6rem}
.notes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;border-top:1px solid var(--line);padding-top:2.5rem}
.notes-grid h2{font-size:1.25rem;margin-bottom:.4rem}
.notes-grid p{color:var(--muted);margin:0}
.notes-grid a{color:var(--leaf-dark);font-weight:700}

/* Drawer */
.cart-backdrop{position:fixed;inset:0;background:rgba(10,25,15,.5);z-index:60}
.cart{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--paper);z-index:61;transform:translateX(105%);transition:transform .3s cubic-bezier(.2,.7,.2,1);display:flex;flex-direction:column;padding:calc(1.25rem + env(safe-area-inset-top,0px)) 1.5rem calc(1.25rem + env(safe-area-inset-bottom,0px));overflow-y:auto;box-shadow:-20px 0 40px -20px rgba(0,0,0,.4)}
.cart.is-open{transform:none}
.cart:focus{outline:none}
.cart-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.cart-top h2{font-size:1.6rem;margin:0}
.cart-close{background:none;border:0;font-size:2rem;line-height:1;width:44px;height:44px;cursor:pointer;color:var(--ink);border-radius:50%}
.cart-close:hover{background:var(--sage)}
.cart-items{list-style:none;padding:0;margin:0}
.cart-items li{display:grid;grid-template-columns:56px 1fr auto;gap:.9rem;align-items:center;padding:.9rem 0;border-bottom:1px solid var(--line)}
.cart-items img{border-radius:6px;height:80px;width:auto}
.ci-main b{display:block;font-stretch:112%}
.ci-main span{font-size:.9rem;color:var(--muted);display:block;margin-bottom:.4rem}
.stepper.small button{width:36px;height:36px;font-size:1.1rem}
.stepper.small input{width:48px;font-size:1rem}
.ci-remove{background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit;font-size:.85rem}
.cart-empty{color:var(--muted);padding:2rem 0}
.cart-foot{margin-top:1.2rem}
.cart-sum{display:flex;justify-content:space-between;padding:.35rem 0}
.cart-sum.total{border-top:2px solid var(--ink);margin-top:.4rem;padding-top:.7rem;font-size:1.15rem}
.cart-note{font-size:.88rem;color:var(--muted);margin:.4rem 0 1rem}
.btn-block{width:100%}

/* Checkout form */
#step-checkout{display:grid;gap:.9rem}
#step-checkout[hidden],#step-cart[hidden],#step-done[hidden]{display:none}
#step-checkout label{display:flex;flex-direction:column;gap:.35rem;font-weight:700;font-size:.95rem}
#step-checkout input:not([type=radio]),#step-checkout textarea{font:inherit;font-weight:500;padding:.75rem .9rem;border:1.5px solid var(--line);border-radius:var(--radius-s);background:#fff;color:var(--ink);min-height:46px;resize:vertical}
#step-checkout input:focus,#step-checkout textarea:focus{border-color:var(--leaf);outline:none;box-shadow:0 0 0 3px rgba(59,179,42,.25)}
.back-link{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--leaf-dark);cursor:pointer;justify-self:start}
.pay{border:0;padding:0;margin:.3rem 0 0;display:grid;gap:.6rem}
.pay legend{font-weight:700;margin-bottom:.5rem}
.pay-opt{flex-direction:row!important;align-items:flex-start;gap:.7rem!important;border:1.5px solid var(--line);border-radius:12px;padding:.9rem;background:#fff;cursor:pointer;font-weight:400!important}
.pay-opt[hidden]{display:none!important}
.pay-opt input{margin-top:.3rem;accent-color:var(--pasture);width:18px;height:18px}
.pay-opt span{font-size:.9rem;color:var(--muted)}
.pay-opt b{display:block;color:var(--ink);font-size:1rem}
.pay-opt:has(input:checked){border-color:var(--pasture);box-shadow:0 0 0 1px var(--pasture)}
.bank-box{background:var(--sage);border-radius:12px;padding:1rem 1.1rem}
.bank-box dl{margin:0 0 .8rem;display:grid;gap:.5rem}
.bank-box dt{font-size:.8rem;color:var(--muted);font-weight:600}
.bank-box dd{margin:0;font-weight:700;word-break:break-word}
.bank-box p{font-size:.85rem;color:var(--muted);margin:.7rem 0 0}
.copy-btn{background:var(--pasture);color:#fff;border:0;border-radius:999px;padding:.5rem .9rem;font:inherit;font-weight:700;font-size:.9rem;cursor:pointer}
.form-error{color:#B3261E;font-weight:600;margin:0;min-height:0}
.form-error:empty{display:none}
.done h3{font-size:1.5rem}
.done a{color:var(--leaf-dark);font-weight:700}

@media (max-width:1020px){
  .cart-btn{margin-left:auto}
  .cart-btn + .menu-toggle{margin-left:.3rem}
}
@media (max-width:860px){
  .prod{grid-template-columns:110px 1fr;padding:1rem;gap:1rem 1.2rem}
  .prod-img img{height:140px}
  .prod-buy{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center}
  .prod-buy .add{grid-column:1/-1}
  .added{grid-column:1/-1}
  .notes-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .cart-btn span{display:none}
  .prod{grid-template-columns:1fr}
  .prod-img{justify-self:start}
}
