/* Pebbl Protein — cart drawer (shared). Uses page tokens when present, with fallbacks. */
.pc { position: fixed; inset: 0; z-index: 200; }
.pc[hidden] { display: none; }
.pc__scrim { position: absolute; inset: 0; background: rgba(46, 53, 32, .5); opacity: 0; transition: opacity .25s ease; }
.pc__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper, #F6F2EC); color: var(--ink, #3A3833); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); transform: translateX(100%); transition: transform .25s ease; font-family: var(--sans, "Figtree", system-ui, sans-serif); }
.pc.is-open .pc__scrim { opacity: 1; }
.pc.is-open .pc__panel { transform: none; }
html.pc-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pc__scrim, .pc__panel { transition: none; } }
.pc__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid rgba(58,56,51,.12); }
.pc__head h2 { margin: 0; font: 400 1.5rem/1.1 var(--serif, Georgia, serif); font-variation-settings: "SOFT" 100; }
.pc__n { font: 500 .95rem var(--sans, sans-serif); color: var(--ink-soft, #5C574F); }
.pc__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; color: inherit; }
.pc__x:hover { background: rgba(58,56,51,.08); }
.pc__ship { margin: 0; padding: 10px 20px; background: var(--olive, #4F5A36); color: var(--paper, #F6F2EC); font-size: .82rem; font-weight: 600; }
.pc__list { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.pc__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(58,56,51,.12); }
.pc__item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--sand, #E4D6C1); }
.pc__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .82rem; }
.pc__info strong { font-size: .92rem; }
.pc__info small { color: var(--ink-soft, #5C574F); font-size: .74rem; }
.pc__perk { color: var(--terracotta, #A85A40) !important; font-weight: 600; }
.pc__qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pc__qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sand-deep, #D6C2A4); background: #fff; font-size: 1rem; line-height: 1; cursor: pointer; color: inherit; }
.pc__qty button:disabled { opacity: .4; cursor: default; }
.pc__qty span { min-width: 1.4em; text-align: center; font-weight: 600; }
.pc__qty .pc__rm { width: auto; height: auto; border: 0; background: none; font-size: .74rem; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; color: var(--ink-soft, #5C574F); }
.pc__price { display: flex; flex-direction: column; align-items: flex-end; font-size: .78rem; color: var(--ink-soft, #5C574F); }
.pc__price strong { font-size: 1rem; color: var(--ink, #3A3833); }
.pc__empty { padding: 48px 0; text-align: center; color: var(--ink-soft, #5C574F); }
.pc__empty a { display: inline-block; margin-top: 12px; color: var(--terracotta, #A85A40); font-weight: 700; }
.pc__foot { padding: 16px 20px 20px; border-top: 1px solid rgba(58,56,51,.12); background: var(--cream, #FBF8F3); }
.pc__row { display: flex; justify-content: space-between; font-size: .88rem; padding: 3px 0; }
.pc__row[hidden] { display: none; }
.pc__row strong { font-size: 1.1rem; }
.pc__row--save span:last-child { color: var(--olive, #4F5A36); font-weight: 700; }
.pc__checkout { display: flex; justify-content: center; align-items: center; min-height: 52px; margin-top: 12px; border-radius: 999px; background: var(--terracotta, #A85A40); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px -10px rgba(168,90,64,.8); }
.pc__checkout:hover { background: var(--terracotta-dark, #8E4A33); }
.pc__checkout.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.pc__fine { margin: 10px 0 0; font-size: .72rem; color: var(--ink-soft, #5C574F); text-align: center; }
.pc button:focus-visible, .pc a:focus-visible { outline: 2px solid var(--terracotta, #A85A40); outline-offset: 2px; }
[data-cart-count][hidden] { display: none !important; }
