/* ──────────────────────────────────────────────────────────────────────
   mymobile.pk — additions for the ecommerce layer, written in the PHP
   site's visual language (same tokens: --theme-*, slate greys, radius).
   Everything else comes unchanged from bundle.min.css + site.css.
   ────────────────────────────────────────────────────────────────────── */

/* Header cart link */
.mm-cart-link{position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:clamp(36px,calc(var(--logo-h,40px) * .95),44px);height:clamp(36px,calc(var(--logo-h,40px) * .95),44px);
  border-radius:999px;color:var(--theme-header-text,#000);text-decoration:none;transition:background .2s}
.mm-cart-link:hover{background:rgba(15,23,42,.06)}
.mm-cart-link svg{width:22px;height:22px}
.mm-cart-badge{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--theme-secondary,#005BB4);color:#fff;font-size:10.5px;font-weight:800;line-height:18px;text-align:center}

/* Mobile search overlay controls (PHP used inline handlers for these states) */
.mm-search-back{background:none;border:none;padding:8px;cursor:pointer;color:#475569;flex-shrink:0;display:flex;
  align-items:center;justify-content:center;border-radius:50%;transition:background .2s}
.mm-search-back:hover{background:#f1f5f9}
.mm-search-input{width:100%;height:44px;padding:0 44px 0 38px;font-size:.95rem;border-radius:12px;border:1.5px solid #e2e8f0;
  background:#f8fafc;color:#1e293b;outline:none;font-family:inherit;transition:border-color .2s,background .2s}
.mm-search-input:focus{border-color:var(--theme-secondary);background:#fff}
.mm-search-clear{display:flex;position:absolute;right:10px;top:50%;transform:translateY(-50%);background:#e2e8f0;border:none;
  border-radius:50%;width:22px;height:22px;align-items:center;justify-content:center;cursor:pointer;color:#64748b;font-size:11px}

/* Buy box on the device page */
.mm-buy{display:flex;flex-direction:column;gap:10px;margin:14px 0 4px}
.mm-buy-variants{display:flex;flex-wrap:wrap;gap:8px}
.mm-buy-variant{border:1.5px solid #e2e8f0;background:#fff;border-radius:12px;padding:8px 14px;font-size:.86rem;font-weight:700;
  color:#1e293b;cursor:pointer;transition:border-color .15s,background .15s;display:flex;flex-direction:column;align-items:flex-start;line-height:1.25}
.mm-buy-variant small{font-weight:600;color:var(--theme-price,#005BB4);font-size:.78rem}
.mm-buy-variant:hover{border-color:#cbd5e1}
.mm-buy-variant.is-on{border-color:var(--theme-secondary,#005BB4);background:rgba(var(--theme-secondary-rgb,0,91,180),.06)}
.mm-buy-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.mm-buy-qty{display:inline-flex;align-items:center;border:1.5px solid #e2e8f0;border-radius:999px;height:46px;overflow:hidden}
.mm-buy-qty button{width:40px;height:100%;border:0;background:none;font-size:1.1rem;font-weight:700;color:#334155;cursor:pointer}
.mm-buy-qty span{min-width:28px;text-align:center;font-weight:700}
.mm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 22px;border-radius:999px;
  font-weight:800;font-size:.92rem;border:0;cursor:pointer;text-decoration:none;transition:filter .15s,transform .05s}
.mm-btn:active{transform:translateY(1px)}
.mm-btn[disabled]{opacity:.55;cursor:not-allowed}
.mm-btn-primary{background:var(--theme-secondary,#005BB4);color:#fff}
.mm-btn-primary:hover{filter:brightness(1.08)}
.mm-btn-dark{background:#0f172a;color:#fff}
.mm-btn-dark:hover{filter:brightness(1.2)}
.mm-btn-wa{background:#25d366;color:#fff}
.mm-buy-note{font-size:.8rem;color:#64748b;margin:0}
.mm-buy-msg{font-size:.85rem;font-weight:700;margin:0}
.mm-buy-msg.ok{color:#047857}
.mm-buy-msg.err{color:#b91c1c}
@media (max-width:640px){.mm-buy-row .mm-btn{flex:1 1 auto}}
