/* Modern cart + checkout (panier.html) */
.pk { max-width: 1240px; margin: 0 auto; padding: 34px 24px 90px; }
.pk-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pk h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.pk-steps { list-style: none; display: flex; align-items: center; gap: 8px; }
.pk-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-mute); }
.pk-steps li + li::before { content: ''; width: 28px; height: 2px; background: var(--line); margin-right: 4px; }
.pk-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 800; background: #fff; border: 2px solid var(--line); transition: all .3s; }
.pk-steps li.active { color: var(--ink); }
.pk-steps li.active i { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(110, 118, 184, 0.2); }
.pk-steps li.done i { background: #0a7c4a; border-color: #0a7c4a; color: transparent; position: relative; }
.pk-steps li.done i::after { content: '✓'; position: absolute; color: #fff; font-size: 13px; }
.pk-steps li.done { color: #0a7c4a; }
@media (max-width: 560px) { .pk-steps span { display: none; } }
.pk-alert { background: #fff7e0; border: 1px solid #f1d98a; color: #6b5310; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.pk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .pk-grid { grid-template-columns: minmax(0, 1fr); } }
.pk-main, .pk-summary, .pk-item, .pk-design { min-width: 0; }
@media (max-width: 600px) { .pk { padding: 22px 14px 70px; } .pk-item { padding: 16px; } .pk-item-side { width: 100%; justify-content: space-between; } .pk-switch { font-size: 13.5px; align-items: flex-start; } .pk-designer { flex-direction: column; } .pk-summary { padding: 20px; } .pk-total strong { font-size: 30px; } }
.pk-main { display: grid; gap: 18px; }
.pk-item, .pk-card, .pk-empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); }
.pk-item { padding: 22px; transition: box-shadow .3s, border-color .3s; }
.pk-item:hover { box-shadow: 0 16px 34px -22px rgba(61, 21, 21, 0.35); }
.pk-flag { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.2); }
.pk-flag .pk-text, .pk-flag .pk-drop { border-color: #c0392b; }
.pk-item-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pk-item-title h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.pk-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pk-specs span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--paper-warm); color: var(--ink-soft); border: 1px solid var(--line); }
.pk-item-side { display: flex; align-items: center; gap: 16px; }
.pk-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.pk-qty button { width: 34px; height: 34px; font-size: 18px; color: var(--ink); transition: background .2s; }
.pk-qty button:hover { background: var(--accent-soft); }
.pk-qty span { min-width: 30px; text-align: center; font-weight: 700; }
.pk-item-price { font-size: 21px; font-weight: 800; min-width: 74px; text-align: right; }
.pk-remove { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fdeaea; color: #c0392b; transition: background .2s, color .2s, transform .15s; }
.pk-remove svg { width: 24px; height: 24px; }
.pk-remove:hover { background: #c0392b; color: #fff; transform: scale(1.08); }
.pk-design { padding-top: 16px; display: grid; gap: 14px; }
.pk-design-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pk-design-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; color: var(--ink-mute); }
.pk-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; user-select: none; }
.pk-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pk-switch-ui { width: 40px; height: 24px; border-radius: 999px; background: #d9d4cb; position: relative; transition: background .25s; flex: none; }
.pk-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease-out, ease); }
.pk-switch input:checked + .pk-switch-ui { background: var(--accent); }
.pk-switch input:checked + .pk-switch-ui::after { transform: translateX(16px); }
.pk-switch input:focus-visible + .pk-switch-ui { outline: 3px solid rgba(110, 118, 184, 0.45); outline-offset: 2px; }
.pk-designer { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #f4f5fb, #fbfaf7); border: 1px solid #dfe1f0; }
.pk-designer-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.pk-designer-ico svg { width: 22px; height: 22px; }
.pk-designer-txt { flex: 1; min-width: 0; }
.pk-designer-txt b { font-size: 15px; }
.pk-designer-txt p { font-size: 13.5px; color: var(--ink-soft); margin: 2px 0 10px; }
.pk-price-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 12.5px; margin-left: 4px; }
.pk-text { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); resize: vertical; }
.pk-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 118, 184, 0.2); }
.pk-drop { position: relative; border: 2px dashed #cfc8bc; border-radius: 14px; background: var(--paper-warm); padding: 26px 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pk-drop:hover, .pk-drop:focus-visible { border-color: var(--accent); background: #f4f5fb; outline: none; }
.pk-drop.over { border-color: var(--accent); background: #eceefb; transform: scale(1.01); }
.pk-drop.done { border-style: solid; border-color: #9bd5b3; background: #f1faf5; cursor: default; }
.pk-drop.err { border-color: #e2a3a3; background: #fdf3f3; }
.pk-drop-idle { display: grid; gap: 4px; justify-items: center; color: var(--ink-soft); }
.pk-drop-idle svg { width: 38px; height: 38px; color: var(--accent); margin-bottom: 4px; }
.pk-drop-idle b { font-size: 16px; color: var(--ink); }
.pk-drop-idle span { font-size: 13px; }
.pk-drop-idle u { color: var(--accent); }
.pk-file { display: none; }
.pk-drop-state { display: grid; gap: 8px; justify-items: center; font-size: 13.5px; }
.pk-drop-state.ok { display: flex; align-items: center; gap: 12px; text-align: left; justify-content: flex-start; }
.pk-drop-state.ok svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #0a7c4a; color: #fff; flex: none; }
.pk-drop-state.ok div { display: grid; flex: 1; min-width: 0; }
.pk-drop-state.ok b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-drop-state.ok span { color: #0a5a36; font-size: 12.5px; }
.pk-progress { width: 100%; max-width: 320px; height: 8px; border-radius: 999px; background: #e6e2da; overflow: hidden; }
.pk-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #9aa1e0); transition: width .25s; }
.pk-linkbtn { font-size: 13px; font-weight: 600; color: var(--accent); text-align: left; justify-self: start; }
.pk-linkbtn:hover { text-decoration: underline; }
.pk-linkbox { display: grid; gap: 8px; }
.pk-label { font-size: 13px; font-weight: 600; }
.pk-err { color: #c0392b; font-size: 13px; }
.pk-card { padding: 24px; }
.pk-card h2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pk-card h2 i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12.5px; }
.pk-sub { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 16px; }
.pk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .pk-fields { grid-template-columns: 1fr; } }
.pk-wide { grid-column: 1 / -1; }
.pk-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pk-field label em { font-style: normal; font-weight: 400; color: var(--ink-mute); }
.pk-field input, .pk-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.pk-field input:focus, .pk-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 118, 184, 0.2); }
.pk-field input.pk-input-err { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18); }
.pk-field label.pk-label-err { color: #c0392b; }
.pk-summary { position: sticky; top: 20px; padding: 26px; background: linear-gradient(160deg, #3d1515, #1f0a0a); color: #fff; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(31, 10, 10, 0.7); }
@media (max-width: 960px) { .pk-summary { position: static; } }
.pk-summary h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.pk-shipdest { margin-bottom: 14px; }
.pk-shipdest label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.pk-shipdest select { width: 100%; padding: 11px 13px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; font: 600 13.5px/1.3 inherit; cursor: pointer; }
.pk-shipdest select option { color: #1a1a1a; }
.pk-line { display: flex; justify-content: space-between; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.pk-free { color: #9be3b8; font-weight: 700; }
.pk-tag { font-size: 11px; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); margin-left: 4px; }
.pk-total { border: 0; padding-top: 18px; align-items: baseline; color: #fff; }
.pk-total strong { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.pk-promo { display: flex; gap: 8px; margin-top: 8px; }
.pk-promo input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; font: inherit; text-transform: uppercase; letter-spacing: .06em; }
.pk-promo input::placeholder { text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.4); }
.pk-promo button { padding: 0 16px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.3); color: #fff; font-weight: 700; font-size: 13px; transition: background .2s; }
.pk-promo button:hover { background: rgba(255,255,255,.12); }
.pk-promo-status { font-size: 12.5px; min-height: 18px; margin-top: 6px; }
.pk-promo-status.ok { color: #9be3b8; }
.pk-promo-status.err { color: #ffb3b3; }
.pk-error { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 120, 120, .15); border: 1px solid rgba(255, 120, 120, .5); color: #ffc2c2; font-size: 13.5px; }
.pk-pay { width: 100%; margin-top: 14px; padding: 17px 20px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #7b83c6, #5b63a5); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 16px 30px -14px rgba(110, 118, 184, .95); transition: filter .2s; }
.pk-pay:hover { filter: brightness(1.08); }
.pk-pay:disabled { opacity: .6; cursor: progress; }
.pk-pay svg { width: 19px; height: 19px; }
.pk-trust { list-style: none; margin-top: 16px; display: grid; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.65); }
.pk-trust li { padding-left: 20px; position: relative; }
.pk-trust li::before { content: '✓'; position: absolute; left: 0; color: #9be3b8; font-weight: 800; }
.pk-empty { padding: 60px 24px; text-align: center; }
.pk-empty svg { width: 54px; height: 54px; color: var(--ink-mute); opacity: .5; margin: 0 auto 14px; }
.pk-empty h2 { font-size: 24px; margin-bottom: 6px; }
.pk-empty p { color: var(--ink-mute); margin-bottom: 20px; }
.pk-btn { display: inline-flex; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
/* .upsell-modal-* moved to a sitewide injection in build.mjs — the trigger (cart.js) fires on
   every page via the cart drawer, not just here, so the CSS needs to load everywhere too. */
