/* The cart (assets/js/cart.js): a header button once something is in it, and a drawer. */
.head-cart { position: relative; flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; margin-left: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.03); color: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.head-cart[hidden] { display: none; }
.head-cart:hover { border-color: rgba(255,106,43,.6); background: rgba(255,106,43,.08); }
.head-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.head-cart-n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #ff6a2b; color: #fff; font-size: .68rem; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #0b0c0f; }
.head-cart-n:empty { display: none; }
.head-cart.is-bump .head-cart-n { animation: cartBump .45s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.cart-wrap { position: fixed; inset: 0; z-index: 1200; }
.cart-wrap[hidden] { display: none; }
.cart-veil { position: absolute; inset: 0; background: rgba(6,7,10,.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.cart { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: #0e0f12; border-left: 1px solid rgba(255,255,255,.1); box-shadow: -30px 0 60px -20px rgba(0,0,0,.8); transform: translateX(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); color: #f4f1ec; }
.cart-wrap.is-on .cart-veil { opacity: 1; }
.cart-wrap.is-on .cart { transform: none; }
html.cart-open { overflow: hidden; }
.cart-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.cart-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.cart-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: rgba(255,106,43,.15); color: #ff9a66; font-size: .74rem; font-weight: 800; line-height: 22px; text-align: center; }
.cart-n:empty { display: none; }
.cart-x { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.6); font-size: 1.4rem; cursor: pointer; }
.cart-x:hover { background: rgba(255,255,255,.06); color: #fff; }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 18px; overscroll-behavior: contain; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto 30px; align-items: center; gap: 12px; padding: 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.02); }
.cart-pic { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #191a1d; }
.cart-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.cart-txt { min-width: 0; }
.cart-txt b { display: block; font-size: .86rem; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-txt small { color: rgba(255,255,255,.45); font-size: .72rem; }
.cart-price { font-weight: 800; font-size: .9rem; }
.cart-rm { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.45); font-size: 1.15rem; cursor: pointer; }
.cart-rm:hover { background: rgba(255,255,255,.07); color: #fff; }
.cart-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,106,43,.08); border: 1px solid rgba(255,106,43,.25); color: rgba(255,255,255,.75); font-size: .78rem; line-height: 1.5; }
.cart-wait { color: rgba(255,255,255,.55); font-size: .86rem; }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 10px; text-align: center; color: rgba(255,255,255,.55); }
.cart-empty svg { width: 40px; height: 40px; fill: none; stroke: rgba(255,255,255,.25); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty p { margin: 0; }
.cart-browse { color: #ff9a66; font-weight: 700; text-decoration: none; }
.cart-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.07); background: #121316; display: grid; gap: 8px; }
.cart-foot[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cart-total span { color: rgba(255,255,255,.6); font-weight: 600; }
.cart-total b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.cart-pay { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; text-decoration: none; cursor: pointer; }
.cart-pay.is-main { border: 0; background: linear-gradient(135deg, #ff6a2b, #e8642d); }
.cart-pay:disabled { opacity: .6; cursor: default; }
.cart-sub { margin: 2px 0 0; text-align: center; color: rgba(255,255,255,.45); font-size: .74rem; }
/* Phones: a sheet from the bottom. */
@media (max-width: 640px) {
  .head-cart { width: 38px; height: 38px; margin-left: 6px; }
  .cart { top: auto; left: 0; width: 100%; max-height: 86vh; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .cart-head { padding: 14px 14px 12px 18px; }
  .cart-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255,255,255,.18); }
}
@media (prefers-reduced-motion: reduce) { .cart, .cart-veil { transition: none; } }

/* Product page: Add to cart under Buy now. */
.product-add-cart { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 8px 0 0; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.03); color: #fff; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.product-add-cart:hover { border-color: rgba(255,106,43,.55); background: rgba(255,106,43,.06); }
.product-add-cart svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-add-cart:disabled { opacity: .45; cursor: default; }
.product-add-cart.is-in { border-color: rgba(255,106,43,.45); color: #ffb27a; }
/* Phones: no Get Pro button in the header (Pro stays in the menu and on the pages); the cart takes its place. */
@media (max-width: 640px) {
  html[data-cart] .site-head .head-pro { display: none; }
}

/* Computers: the cart sits with the search button as one pill, and the header keeps its width
   (one social icon fewer, the fifth stays in the footer). */
@media (min-width: 821px) {
  .site-head .head-search-btn + .head-cart { margin-left: -12px; border-top-left-radius: 0; border-bottom-left-radius: 0; background: transparent; }
  .site-head .head-search-btn:has(+ .head-cart) { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
}
@media (min-width: 1101px) {
  html[data-cart] .home-head .head-inner { gap: 12px; }
  html[data-cart] .head-social a:nth-child(n+5) { display: none; }
}
@media (min-width: 821px) and (max-width: 1000px) { html[data-cart] .home-head .head-inner { gap: 8px; } }
@media (min-width: 821px) and (max-width: 880px) {
  html[data-cart] .site-head .head-pro span { display: none; }
  html[data-cart] .site-head .head-pro { padding-left: 0; padding-right: 0; width: 40px; justify-content: center; }
}

/* Drawer: the code applied, and the way to the full cart page. */
.cart-price s { display: block; color: rgba(255,255,255,.4); font-weight: 600; font-size: .72rem; text-align: right; }
.cart-promo-row { display: flex; justify-content: space-between; color: #86efac; font-size: .84rem; }
.cart-view { display: block; text-align: center; padding: 6px 0 0; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 700; text-decoration: none; }
.cart-view:hover { color: #ff9a66; }

/* The cart page (/cart). */
.cartpg-main { padding: clamp(28px, 5vw, 48px) 0 70px; }
.cartpg { width: min(1040px, calc(100% - 40px)); margin: 0 auto; color: #f4f1ec; }
.cartpg-k { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ff6a2b; }
.cartpg-k.is-dim { color: rgba(255,255,255,.55); }
.cartpg-h { margin: 10px 0 0; font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.cartpg-h span { color: #ff6a2b; }
.cartpg .cart-note { margin: 18px 0 0; }
.cartpg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 26px; }
.cartpg-lines { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: #0e0f12; }
.cartpg-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 34px; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.cartpg-line:last-child { border-bottom: 0; }
.cartpg-pic { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #191a1d; display: block; }
.cartpg-pic img, .cartpg-spic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.cartpg-txt b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.cartpg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cartpg-chips em { font-style: normal; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); }
.cartpg-chips em.is-o { border-color: rgba(255,106,43,.5); color: #ffb27a; background: rgba(255,106,43,.08); }
.cartpg-price { text-align: right; }
.cartpg-price b { font-size: 1rem; font-weight: 800; }
.cartpg-price s { display: block; color: rgba(255,255,255,.4); font-weight: 600; font-size: .78rem; }
.cartpg-rm { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); background: transparent; color: rgba(255,255,255,.5); font-size: 1.1rem; cursor: pointer; }
.cartpg-rm:hover { color: #fff; background: rgba(255,255,255,.06); }
.cartpg-sug { margin-top: 28px; }
.cartpg-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cartpg-sc { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: #0e0f12; }
.cartpg-spic { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #191a1d; display: block; }
.cartpg-sc a { color: inherit; text-decoration: none; }
.cartpg-sc b { display: block; font-size: .84rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cartpg-sc small { color: rgba(255,255,255,.55); font-size: .74rem; }
.cartpg-add { grid-column: 1 / -1; justify-self: start; font: inherit; font-weight: 800; font-size: .78rem; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255,106,43,.5); background: transparent; color: #ffb27a; cursor: pointer; text-decoration: none; }
.cartpg-add:hover { background: rgba(255,106,43,.1); }
.cartpg-sum { position: sticky; top: 20px; padding: 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: #0e0f12; display: grid; gap: 10px; }
.cartpg-st { margin: 0; font-weight: 800; font-size: 1.05rem; }
.cartpg-row { display: flex; justify-content: space-between; font-size: .9rem; color: rgba(255,255,255,.6); }
.cartpg-row span:last-child { color: #f4f1ec; }
.cartpg-row.is-off, .cartpg-row.is-off span:last-child { color: #86efac; }
.cartpg-code { display: flex; gap: 8px; margin-top: 4px; }
.cartpg-code input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #fff; padding: 0 12px; font: inherit; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }
.cartpg-code input:focus { outline: none; border-color: rgba(255,106,43,.6); }
.cartpg-code button { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.cartpg-applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(74,222,128,.45); background: rgba(74,222,128,.06); font-size: .84rem; }
.cartpg-applied b { color: #86efac; letter-spacing: .06em; }
.cartpg-applied button { margin-left: auto; border: 0; background: none; color: rgba(255,255,255,.55); font: inherit; font-size: .78rem; cursor: pointer; }
.cartpg-applied button:hover { color: #fff; }
.cartpg-msg { margin: 0; font-size: .8rem; color: #86efac; }
.cartpg-msg.is-bad { color: #fca5a5; }
.cartpg-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.cartpg-total span { color: rgba(255,255,255,.6); font-weight: 700; }
.cartpg-total b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; }
.cartpg-who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); font-size: .8rem; color: rgba(255,255,255,.75); overflow-wrap: anywhere; }
.cartpg-who i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #ff6a2b, #a78bfa); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .74rem; color: #fff; }
.cartpg-sum .cart-pay { min-height: 52px; font-size: 1rem; }
.cartpg-trust { display: flex; justify-content: center; gap: 16px; margin: 0; font-size: .74rem; color: rgba(255,255,255,.45); }
.cartpg-empty { display: grid; justify-items: start; gap: 14px; margin-top: 22px; padding: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: #0e0f12; color: rgba(255,255,255,.65); max-width: 560px; }
.cartpg-empty svg { width: 40px; height: 40px; fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cartpg-empty p { margin: 0; }
.cartpg-empty .cart-pay { padding: 0 22px; white-space: nowrap; }
.cartpg-bar { display: none; }
@media (max-width: 860px) {
  .cartpg-grid { display: flex; flex-direction: column; gap: 16px; }
  .cartpg-left { display: contents; }
  .cartpg-lines { order: 1; width: 100%; }
  .cartpg-sum { order: 2; position: static; width: 100%; }
  .cartpg-sug { order: 3; margin-top: 4px; width: 100%; }
  .cartpg-sgrid { grid-template-columns: 1fr; }
  .cartpg-sc { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cartpg-add { grid-column: auto; justify-self: end; }
}
@media (max-width: 640px) {
  .cartpg { width: calc(100% - 32px); }
  .cartpg-line { grid-template-columns: 64px minmax(0, 1fr) 30px; gap: 12px; padding: 12px; align-items: start; }
  .cartpg-pic { width: 64px; height: 64px; }
  .cartpg-price { grid-column: 2; grid-row: 2; text-align: left; margin-top: -4px; display: flex; align-items: baseline; gap: 6px; }
  .cartpg-price s { display: inline; margin-left: 6px; }
  .cartpg-price b { order: -1; }
  .cartpg-rm { grid-column: 3; grid-row: 1; width: 30px; height: 30px; }
  body.has-cartbar { padding-bottom: 84px; }
  .cartpg-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14,15,18,.96); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.1); }
  .cartpg-bar small { display: block; font-size: .68rem; color: rgba(255,255,255,.55); }
  .cartpg-bar b { font-size: 1.35rem; font-weight: 800; }
  .cartpg-bar .cart-pay { flex: 1; min-height: 48px; }
}

/* Suggestions: as many columns as there are (never filled up), with the reason each is shown */
.cartpg-sgrid.is-1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.cartpg-sgrid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartpg-why { display: block; font-style: normal; font-size: .7rem; color: #ffb27a; margin-top: 3px; line-height: 1.35; }
/* Pro, under the payment: quiet, never in the way */
.cart-pro { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(167,139,250,.28); background: rgba(167,139,250,.05); }
.cart-pro-i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(167,139,250,.16); color: #c4b5fd; font-size: .9rem; }
.cart-pro b { display: block; font-size: .84rem; color: #fff; }
.cart-pro small { display: block; color: rgba(255,255,255,.58); font-size: .76rem; line-height: 1.5; margin-top: 2px; }
.cart-pro a { display: inline-block; margin-top: 6px; color: #c4b5fd; font-weight: 800; font-size: .78rem; text-decoration: none; }
.cart-pro a:hover { text-decoration: underline; }
@media (max-width: 860px) { .cartpg-sgrid.is-1, .cartpg-sgrid.is-2 { grid-template-columns: 1fr; max-width: none; } }

/* Paying without an account: the email above the buttons. */
.cart-mail { display: grid; gap: 6px; margin: 4px 0 10px; }
.cart-mail span { color: #9aa4ae; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.cart-mail input { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.04); color: #f4f1ec; font: inherit; font-size: 1rem; }
.cart-mail input:focus { outline: none; border-color: #e8642d; box-shadow: 0 0 0 3px rgba(232,100,45,.18); }
.cart-mail input.is-bad { border-color: #f87171; }
.cart-sub a { color: #f4f1ec; text-decoration: underline; text-underline-offset: 2px; }

/* "Make it all formats": under a line whose product is sold as a pack too. */
.cartpg-pack { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 0; padding: 10px 12px; border: 1px dashed rgba(232,100,45,.55); border-radius: 12px; background: rgba(232,100,45,.05); }
.cartpg-pack span { flex: 1; min-width: 0; } .cartpg-pack b { display: block; font-size: .86rem; color: #f4f1ec; } .cartpg-pack small { color: #9aa4ae; font-size: .76rem; }
.cartpg-pack button { flex: none; padding: 8px 12px; border: 0; border-radius: 9px; background: #e8642d; color: #fff; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; }
