/* Spacey shop: carrito, página de producto y checkout */

/* ---------- cart button ---------- */
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); color: var(--ink); transition: transform .3s var(--ease), color .6s; }
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 100px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: background .6s; }
.cart-count[hidden] { display: none; }

/* ---------- cart drawer ---------- */
.cart { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cart-scrim { position: absolute; inset: 0; background: rgba(46, 26, 92, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.cart-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100% - 24px)); background: #fff; border-radius: 28px; display: flex; flex-direction: column; transform: translateX(110%); transition: transform .55s var(--ease); box-shadow: 0 40px 80px -30px rgba(46, 26, 92, .5); overflow: hidden; color: #2E1A5C; }
.cart.on { pointer-events: auto; }
.cart.on .cart-scrim { opacity: 1; }
.cart.on .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px; }
.cart-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cart-head h3 span { font-weight: 400; opacity: .6; }
.cart-x { width: 38px; height: 38px; border-radius: 50%; background: #F3EFFB; font-size: 22px; line-height: 1; }
.cart-ship { margin: 0 24px 8px; padding: 14px 16px; border-radius: 16px; background: #F3EFFB; font-size: 14px; }
.cart-ship-bar { height: 6px; border-radius: 100px; background: #fff; margin-top: 10px; overflow: hidden; }
.cart-ship-bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #7B5CE0, #F2558F); transition: width .5s var(--ease); }
.cart-items { list-style: none; flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-items li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(46, 26, 92, .08); }
.cart-items img { width: 72px; height: 88px; object-fit: cover; border-radius: 14px; }
.cart-items b { display: block; font-size: 15px; }
.cart-items span { font-size: 12.5px; opacity: .65; }
.cart-items strong { font-size: 15px; align-self: start; padding-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(46, 26, 92, .15); }
.qty button { width: 28px; height: 28px; border-radius: 50%; font-size: 16px; }
.qty button:hover { background: #F3EFFB; }
.qty em { font-style: normal; min-width: 18px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.cart-empty img { width: 110px; animation: bob 5s ease-in-out infinite; }
.cart.is-empty .cart-empty { display: flex; }
.cart.is-empty .cart-items, .cart.is-empty .cart-foot, .cart.is-empty .cart-ship { display: none; }
.cart-foot { padding: 18px 24px 24px; border-top: 1px solid rgba(46, 26, 92, .08); }
.cart-sub { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; }
.cart-foot p { font-size: 13px; opacity: .6; margin: 6px 0 16px; }
.cart-go { width: 100%; justify-content: center; background: #2E1A5C; color: #E6DAFF; }

/* ---------- add to cart on flavor cards ---------- */
.flavor > a { display: block; }
.flavor-atc { position: absolute; top: 12px; right: 12px; z-index: 2; height: 38px; padding: 0 16px; border-radius: 100px; background: #fff; color: #2E1A5C; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 10px 20px -10px rgba(46, 26, 92, .5); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); }
.flavor:hover .flavor-atc, .flavor-atc:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .flavor-atc { opacity: 1; transform: none; } }

/* ---------- product page ---------- */
.pdp { padding: 120px 0 80px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a:hover { text-decoration: underline; }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.pdp-media { position: sticky; top: 96px; display: grid; gap: 12px; min-width: 0; }
.pdp-stage { position: relative; }
.pdp-thumbs { order: 2; display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumbs button { flex: none; }
.pdp-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #2E1A5C; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(46, 26, 92, .5); transition: transform .25s var(--ease), background .2s; }
.pdp-nav:hover { background: #fff; transform: scale(1.06); }
.pdp-nav svg { width: 20px; height: 20px; }
.pdp-prev { left: 14px; }
.pdp-next { right: 14px; }
.pdp-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.pdp-dots i { width: 7px; height: 7px; border-radius: 100px; background: rgba(255, 255, 255, .6); transition: width .3s, background .3s; }
.pdp-dots i.on { width: 20px; background: #fff; }
.pdp-thumbs button { width: 76px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #fff; position: relative; transition: box-shadow .2s; }
.pdp-thumbs button.on { box-shadow: 0 0 0 2px var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs button[data-kind="video"]::after { content: "\25B6"; position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 9px; display: grid; place-items: center; color: #2E1A5C; }
.pdp-thumbs button[data-kind="cut"] img { object-fit: contain; padding: 10px; background: linear-gradient(160deg, #E3EEFF, #F1E8FF); }
.pdp-main { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; background: #fff; box-shadow: 0 40px 80px -40px rgba(46, 26, 92, .45); }
.pdp-main img, .pdp-main video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-main.cut img { object-fit: contain; padding: 14%; background: linear-gradient(160deg, #E3EEFF, #F1E8FF); }
.pdp-info .eyebrow { margin-bottom: 10px; }
.pdp-info h1 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pdp-info h1 em { color: var(--accent); }
.pdp-tagline { font-size: 18px; margin: 12px 0 6px; }
.pdp-contents { font-size: 14px; color: var(--ink-soft); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; font-size: 30px; font-weight: 600; }
.pdp-price s { font-size: 18px; font-weight: 400; opacity: .5; }
.pdp-price small { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--accent); color: #fff; }
.opt-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.opt-label span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.swatches button { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 6px; border-radius: 100px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; transition: box-shadow .2s, background .2s; }
.swatches button i { width: 36px; height: 36px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatches button.on { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.plans { display: grid; gap: 10px; margin-bottom: 22px; }
.plan { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s; }
.plan input { accent-color: var(--ink); width: 18px; height: 18px; }
.plan b { display: block; font-size: 16px; }
.plan span { font-size: 13px; color: var(--ink-soft); }
.plan strong { font-size: 16px; }
.plan.on { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 14px; }
.buy-row .qty { margin: 0; height: 58px; padding: 0 8px; background: rgba(255, 255, 255, .7); }
.buy-row .qty button { width: 36px; height: 36px; }
.buy-row .btn { height: 58px; justify-content: center; font-size: 17px; }
.pdp-perks { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 28px; }
.pdp-perks span::before { content: "\2726  "; color: var(--accent); }
.pdp-acc details { border-top: 1px solid var(--line); }
.pdp-acc details:last-child { border-bottom: 1px solid var(--line); }
.pdp-acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "+"; font-weight: 400; transition: transform .3s; }
.pdp-acc details[open] summary::after { transform: rotate(45deg); }
.pdp-acc details > div { padding: 0 0 18px; color: var(--ink-soft); line-height: 1.6; font-size: 15px; }
.dose-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.dose-mini div { text-align: center; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .7); font-size: 13px; }
.dose-mini img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 6px; }
.dose-mini b { display: block; color: var(--ink); }
.pair { margin-top: 90px; }
.pair-card { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 30px; border-radius: 36px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.pair-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pair-card > div { padding: 30px 30px 30px 0; }
.pair-card h2 { font-size: clamp(32px, 4vw, 52px); margin: 10px 0 14px; }
.pair-card p { color: var(--ink-soft); line-height: 1.55; margin-bottom: 24px; max-width: 420px; }
.pair-card .row { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(46, 26, 92, .5); }
.sticky-buy b { flex: 1; font-size: 15px; }
.sticky-buy .btn { height: 46px; }

/* ---------- checkout ---------- */
.co { padding: 110px 0 80px; }
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.co h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 8px; }
.co-demo { display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, .7); color: var(--ink-soft); margin-bottom: 30px; }
.co-step { border-radius: 26px; background: rgba(255, 255, 255, .72); padding: 26px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.co-step h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.co-step h2 i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--light); font-size: 14px; display: grid; place-items: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .full { grid-column: 1 / -1; }
.fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.fields input, .fields select { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font: inherit; font-size: 15px; color: #2E1A5C; outline: none; transition: border-color .2s, box-shadow .2s; }
.fields input:focus, .fields select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 92, 224, .18); }
.ship-opts { display: grid; gap: 10px; }
.co-summary { position: sticky; top: 96px; border-radius: 30px; background: #fff; padding: 26px; box-shadow: 0 30px 60px -30px rgba(46, 26, 92, .4); color: #2E1A5C; }
.co-summary h2 { font-size: 20px; margin-bottom: 8px; }
.co-summary ul { list-style: none; }
.co-summary li { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(46, 26, 92, .08); font-size: 14px; }
.co-summary li img { width: 60px; height: 72px; border-radius: 12px; object-fit: cover; }
.co-summary li span { display: block; opacity: .6; font-size: 12.5px; }
.co-lines { display: grid; gap: 8px; margin: 18px 0; font-size: 15px; }
.co-lines div { display: flex; justify-content: space-between; }
.co-total { font-size: 20px; font-weight: 700; padding-top: 12px; border-top: 1px solid rgba(46, 26, 92, .1); }
.co-place { width: 100%; justify-content: center; height: 58px; font-size: 17px; }
.co-note { font-size: 12.5px; opacity: .6; text-align: center; margin-top: 12px; }
.co-empty { text-align: center; padding: 30px 0; }
.done { text-align: center; max-width: 560px; margin: 0 auto; padding: 160px 24px 100px; }
.done img { width: 140px; margin: 0 auto 20px; animation: bob 5s ease-in-out infinite; }
.done h1 { font-size: clamp(42px, 5vw, 64px); font-weight: 600; letter-spacing: -.04em; }
.done p { color: var(--ink-soft); line-height: 1.6; margin: 14px 0 28px; }

/* ---------- mini nav (interior pages) ---------- */
.nav-back { font-size: 15px; font-weight: 500; opacity: .8; }

@media (max-width: 960px) {
  .pdp-grid, .co-grid { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .pdp-thumbs button { width: 64px; }
  .pdp-nav { width: 40px; height: 40px; margin-top: -20px; }
  .pair-card { grid-template-columns: 1fr; }
  .pair-card > div { padding: 0 24px 28px; }
  .co-summary { position: static; }
  .sticky-buy { display: flex; }
  .pdp { padding-bottom: 120px; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .buy-row .btn { font-size: 15px; }
}
