/* Outlet by Yassma — order bag (assets/js/order-bag.js): add button, header counter, floating button, side drawer */
html.bag-lock, html.bag-lock body { overflow: hidden; }

.bag-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d4a63c; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; direction: ltr; }
.bag-n:not(.has) { display: none; }

/* "Add to bag" — reuses the .wa-order-btn box, in the shop's pink instead of WhatsApp green */
.wa-order-btn.bag-add { border: 0; cursor: pointer; font-family: inherit; background: linear-gradient(135deg, #ee86ad, #c64a7d); box-shadow: 0 8px 18px -10px rgba(198, 74, 125, .9); }
.wa-order-btn.bag-add:hover { box-shadow: 0 12px 22px -10px rgba(198, 74, 125, 1); }
.wa-order-btn.bag-add i { font-size: 14px; }
.wa-order-btn.bag-add.in { background: #fde8f0; color: #c64a7d !important; box-shadow: inset 0 0 0 1.5px #e7739f; }

/* the pair under each product: "Add to bag" (main) + "Quick order" (outline, straight to WhatsApp) */
.bag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; width: 100%; }
.bag-row .wa-order-btn { flex: 1 1 130px; width: auto; margin-top: 0; }
.bag-quick { flex: 0 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #1ebe5b; background: #fff; color: #128c4b; font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.bag-quick:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.bag-quick i { font-size: 17px; }
.bag-quick.lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
@media (max-width: 600px) { .bag-row:not(.lg) .bag-quick { flex: 1 1 100%; padding: 8px 10px; } }

.bag-fab { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 9000; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #ee86ad, #c64a7d); color: #fff; font-size: 22px; display: none; place-items: center; box-shadow: 0 8px 24px rgba(198, 74, 125, .45); }
.bag-fab.on { display: grid; }
.bag-fab .bag-n { position: absolute; top: -4px; inset-inline-end: -4px; box-shadow: 0 0 0 2px #fff; }
.bag-fab.bump { animation: bag-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bag-bump { 40% { transform: scale(1.25); } }

.bag-toast { position: fixed; top: 14px; left: 50%; z-index: 10050; transform: translate(-50%, -20px); background: #2b1d24; color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.bag-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* side drawer */
.bag-dr { position: fixed; inset: 0; z-index: 10000; visibility: hidden; transition: visibility 0s .3s; color: #2b1d24; text-align: start; }
.bag-dr.open { visibility: visible; transition-delay: 0s; }
.bag-dr *, .bag-dr *::before, .bag-dr *::after { box-sizing: border-box; }
.bag-back { position: absolute; inset: 0; background: rgba(43, 29, 36, .5); opacity: 0; transition: opacity .3s; }
.bag-dr.open .bag-back { opacity: 1; }
.bag-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(440px, 100%); background: #fff8fa; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.2, .75, .2, 1); }
.bag-dr[dir=rtl] .bag-panel { transform: translateX(100%); }
.bag-dr[dir=ltr] .bag-panel { transform: translateX(-100%); }
.bag-dr.open .bag-panel { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f3d6e2; background: #fff; }
.bag-head h2 { margin: 0; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #c64a7d; }
.bag-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #f3d6e2; background: #fff; font-size: 16px; color: #2b1d24; cursor: pointer; }
.bag-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.bag-empty { text-align: center; color: #7d6570; padding: 40px 10px; line-height: 1.8; }
.bag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bag-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #f3d6e2; border-radius: 14px; padding: 8px; }
.bag-ph { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: #fde8f0; display: block; }
.bag-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.bag-info b { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bag-info span { font-size: 13px; color: #c64a7d; font-weight: 700; }
.bag-qty { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; direction: ltr; }
.bag-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #f3d6e2; background: #fff8fa; font-weight: 800; font-size: 16px; line-height: 1; color: #c64a7d; cursor: pointer; padding: 0; }
.bag-qty button:hover { background: #e7739f; border-color: #e7739f; color: #fff; }
.bag-qty span { min-width: 18px; text-align: center; font-weight: 800; }
.bag-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f3d6e2; display: flex; flex-direction: column; gap: 12px; }
.bag-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14px; margin: 0; }
.bag-form input[type=text], .bag-form textarea { width: 100%; border: 1px solid #f3d6e2; background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 400; color: #2b1d24; resize: vertical; }
.bag-form input:focus, .bag-form textarea:focus { outline: 2px solid #e7739f; outline-offset: 1px; }
.bag-form .bag-gift { flex-direction: row; align-items: center; gap: 10px; background: #fff7e6; border: 1px dashed #d4a63c; border-radius: 12px; padding: 11px 14px; cursor: pointer; font-size: 15px; }
.bag-gift input { width: 20px; height: 20px; accent-color: #e7739f; flex: 0 0 auto; margin: 0; }
.bag-giftbox { display: flex; flex-direction: column; gap: 12px; padding-inline-start: 12px; border-inline-start: 3px solid #d4a63c; }
.bag-giftbox[hidden] { display: none; }
.bag-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #f3d6e2; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.bag-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.bag-total b { font-size: 20px; color: #c64a7d; }
.bag-send { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 22px; font: inherit; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #25d366, #1ebe5b); box-shadow: 0 8px 18px -10px rgba(30, 190, 91, .9); }
.bag-send:hover { filter: brightness(1.05); }
.bag-send i { font-size: 22px; }
.bag-clear { border: 0; background: none; color: #7d6570; font-size: 13px; text-decoration: underline; align-self: center; padding: 2px 8px; cursor: pointer; }

/* Header bag button: a filled pill so shoppers notice it; it pulses while the bag has items and jumps when one lands */
body .header-btn.bag-btn { background: linear-gradient(135deg, #ee86ad, #c64a7d); border-color: transparent; color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 800; gap: 8px; box-shadow: 0 6px 16px -6px rgba(231, 115, 159, .9); }
body .header-btn.bag-btn:hover { background: linear-gradient(135deg, #f397ba, #d2588a); border-color: transparent; }
body .header-btn.bag-btn .bag-n { display: inline-grid; min-width: 22px; height: 22px; font-size: 13px; background: #f3d27a; color: #4a2a05; }
body .header-btn.bag-btn.has { animation: bag-pulse 2.2s ease-out infinite; }
body .header-btn.bag-btn.bump { animation: bag-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bag-pulse { 0% { box-shadow: 0 6px 16px -6px rgba(231, 115, 159, .9), 0 0 0 0 rgba(243, 210, 122, .75); } 70%, 100% { box-shadow: 0 6px 16px -6px rgba(231, 115, 159, .9), 0 0 0 12px rgba(243, 210, 122, 0); } }
@media (max-width: 992px) { body .header-btn.bag-btn { padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { body .header-btn.bag-btn.has, .bag-fab.bump { animation: none; } }
/* desktop header is full: the search box, nav spacing and the login label give way so the bag pill fits */
@media (min-width: 993px) and (max-width: 2100px) {
  body .header-btn.login-btn .btn-text, body .header-btn.profile-btn .btn-text { display: none; }
  body .header-right .search-box input { width: 150px; }
}
@media (min-width: 993px) and (max-width: 1750px) { body .header-right .search-box input { width: 110px; } body .header-right { gap: 10px; } }
@media (min-width: 993px) and (max-width: 1600px) {
  body .header { padding-left: 16px; padding-right: 16px; }
  body .main-nav ul li a { font-size: 14px; letter-spacing: 0; padding: 6px 8px; }
}
@media (min-width: 993px) and (max-width: 1500px) {
  body .main-nav ul li a { font-size: 13px; padding: 5px 6px; }
  body .header-right .search-box input { width: 90px; }
  body .header-right { gap: 6px; }
}
@media (min-width: 993px) and (max-width: 1340px) { body .header-btn.bag-btn .btn-text { display: none; } }
@media (min-width: 993px) and (max-width: 1260px) {
  body .header { padding-left: 8px; padding-right: 8px; }
  body .main-nav ul li a { font-size: 12px; padding: 4px 4px; }
  body .header-right .search-box input { width: 76px; }
  body .header-right { gap: 5px; }
}
@media (min-width: 993px) and (max-width: 1260px) { body .header-btn .btn-text { display: none; } }
@media (min-width: 993px) and (max-width: 1090px) {
  body .main-nav ul li a { font-size: 11.5px; padding: 3px 2px; }
  body .header-right .search-box input { width: 56px; }
  body .header-right { gap: 4px; }
}
