/* Header cart (assets/cart.js): bag icon beside the navigation and a drop-down mini cart. */
.main-nav { margin-left: auto; }
.em-cart { position: relative; margin-left: 22px; flex: 0 0 auto; }
.em-cart-btn { all: unset; cursor: pointer; position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink, #2A2226); transition: background .2s, color .2s; }
.em-cart-btn:hover, .em-cart.open .em-cart-btn { background: rgba(226, 0, 126, .08); color: #E2007E; }
.em-cart-btn:focus-visible { outline: 2px solid #E2007E; outline-offset: 2px; }
.em-cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.em-cart-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #E2007E; color: #fff; font: 600 11px/18px 'Inter', sans-serif; text-align: center; }
.em-cart-n[hidden] { display: none; }
.em-cart-n.bump { animation: emCartBump .45s ease; }
@keyframes emCartBump { 40% { transform: scale(1.4); } }

.em-cart-pop { position: absolute; right: 0; top: calc(100% + 14px); width: 380px; max-width: calc(100vw - 24px); z-index: 120;
  background: #fff; border: 1px solid #EBD7DE; border-radius: 16px; box-shadow: 0 24px 60px rgba(42, 34, 38, .16);
  font-family: 'Inter', sans-serif; color: #2A2226; text-align: left; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.em-cart.open .em-cart-pop { opacity: 1; visibility: visible; transform: none; }
.em-cart-pop::before { content: ''; position: absolute; top: -7px; right: 15px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #EBD7DE; border-top: 1px solid #EBD7DE; transform: rotate(45deg); }
.em-cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid #F3E8ED; }
.em-cart-head b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 600; }
.em-cart-x { all: unset; cursor: pointer; font-size: 24px; line-height: 1; color: #7A6A71; padding: 0 4px; }
.em-cart-lines { max-height: min(48vh, 340px); overflow: auto; padding: 0 18px; }
.em-cart-empty { padding: 26px 0; text-align: center; color: #7A6A71; font-size: 14px; }
.em-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #F3E8ED; }
.em-line:last-child { border-bottom: none; }
.em-line-img { width: 56px; height: 56px; border-radius: 10px; border: 1px solid #EBD7DE; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.em-line-img img { width: 90%; height: 90%; object-fit: contain; }
.em-line-name { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #2A2226; text-decoration: none; margin-bottom: 7px; }
.em-line-name:hover { color: #E2007E; }
.em-qty { display: inline-flex; align-items: center; border: 1px solid #EBD7DE; border-radius: 999px; }
.em-qty button { all: unset; cursor: pointer; width: 28px; height: 28px; text-align: center; line-height: 28px; font-size: 15px; }
.em-qty span { min-width: 22px; text-align: center; font-size: 13.5px; }
.em-line-end { text-align: right; font-size: 13.5px; }
.em-line-rm { all: unset; cursor: pointer; display: block; margin-top: 7px; font-size: 12px; color: #7A6A71; text-decoration: underline; }
.em-cart-foot { padding: 14px 18px 18px; border-top: 1px solid #F3E8ED; }
.em-cart-sub { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.em-cart-sub b { font-size: 16px; }
.em-cart-go { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; text-align: center; background: #E2007E; color: #fff; font-size: 15px; font-weight: 500; padding: 14px; border-radius: 12px; transition: box-shadow .2s; }
.em-cart-go:hover { box-shadow: 0 10px 22px rgba(226, 0, 126, .3); }
.em-cart-go[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.em-cart-err { color: #C0392B; font-size: 12.5px; margin-top: 8px; min-height: 0; }
.em-cart-err:empty { display: none; }
.em-cart-shop { display: block; text-align: center; margin-top: 12px; font-size: 13.5px; color: #2A2226; text-decoration: underline; }
.em-cart-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; font-size: 12px; color: #7A6A71; }
.em-cart-secure svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* phones: the drop-down spans the screen under the header */
@media (max-width: 820px) {
  .em-cart { position: static; margin-left: auto; }
  .em-cart-pop { left: 12px; right: 12px; width: auto; max-width: none; top: calc(100% + 8px); }
  .em-cart-pop::before { display: none; }
}
