﻿.cart-header { padding-bottom: 12px; background: linear-gradient(110deg, #69008d, #300b82); }
.cart-header .logo strong { color: white; }
.cart-main { padding: 14px 14px 25px; }
.cart-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-title h1 { margin: 0; font-size: clamp(23px, 5vw, 32px); letter-spacing: -.8px; }
.cart-title h1 span { color: #777382; font-size: clamp(11px, 2.8vw, 15px); font-weight: 400; white-space: nowrap; letter-spacing: normal; }
#clear-cart { display: flex; align-items: center; justify-content: center; gap: 3px; flex: none; min-height: 36px; padding: 5px 8px; border: 1px solid #aa7de1; border-radius: 9px; color: #6300a9; background: #f9f4ff; font-size: clamp(10px, 2.5vw, 13px); font-weight: 700; }
#clear-cart .ui-icon { width: 16px; height: 16px; }
.cart-demo-note { margin: 5px 0; color: #776b7b; font-size: 11px; }
.checkout-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 11px 0 12px; padding: 0; list-style: none; }
.checkout-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #7c7b86; font-size: clamp(10px, 2.5vw, 13px); text-align: center; }
.checkout-steps li:not(:last-child)::after { position: absolute; z-index: 0; top: 17px; left: 64%; width: 72%; height: 2px; background: #e5e3e7; content: ''; }
.checkout-steps li[aria-current] { color: #ef7100; font-weight: 700; }
.checkout-steps li[aria-current]::after { background: linear-gradient(90deg, #ff8500, #e5e3e7); }
.checkout-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #666273; background: #f0eef2; }
.checkout-steps li[aria-current] > span { color: white; background: #ff8500; }
.checkout-steps svg { width: 19px; height: 19px; }
.cart-list { display: grid; gap: 10px; }
.cart-group { overflow: hidden; border: 1px solid #eee9e5; border-radius: 13px; box-shadow: 0 2px 6px #0000000c; }
.group-heading { display: flex; align-items: center; gap: 7px; padding: 9px 10px; background: #fff6e9; }
.cart-group:nth-child(even) .group-heading { background: #f5effe; }
.group-heading .ui-icon { width: 18px; height: 18px; color: #f57800; }
.group-heading h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; }
.group-heading span { color: #77717d; font-size: 11px; white-space: nowrap; }
.cart-item { display: grid; grid-template-columns: 24px 64px minmax(0, 1fr) 35px; align-items: center; gap: 7px; padding: 9px 8px; }
.cart-item + .cart-item { border-top: 1px solid #eee; }
.item-check { width: 18px; height: 18px; accent-color: #fa7400; }
.item-image { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: #f5f4f4; }
.item-placeholder { display: grid; place-items: center; color: #8d799a; }
.item-info { min-width: 0; }
.item-info h3 { margin: 0 0 2px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.15; }
.item-description { margin: 2px 0; color: #77717d; font-size: 11px; line-height: 1.2; }
.item-stock { display: block; color: #1b9846; font-size: 11px; font-weight: 700; }
.item-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; }
.item-price { color: #e92121; font-size: 13px; font-weight: 800; white-space: nowrap; }
.quantity { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #e6e2e8; border-radius: 9px; }
.quantity button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; color: #211b22; background: #fff; }
.quantity button:disabled { opacity: .35; cursor: default; }
.quantity svg { width: 15px; height: 15px; }
.quantity output { min-width: 27px; padding: 0 3px; border-right: 1px solid #eee; border-left: 1px solid #eee; font-size: 13px; text-align: center; }
.item-actions { display: grid; gap: 1px; }
.item-actions button { display: grid; place-items: center; width: 35px; height: 35px; padding: 7px; border: 0; background: transparent; color: #8b8492; }
.item-actions button svg { width: 20px; height: 20px; }
.item-actions .remove { color: #e82d28; }
.item-actions [aria-pressed="true"] { color: #e9324b; }
.item-actions [aria-pressed="true"] svg { fill: currentColor; }
.cart-empty, .cart-warning { padding: 13px; border-radius: 10px; color: #58475f; background: #f8f2fb; font-size: 13px; }
.cart-empty a { color: #7900a9; font-weight: 700; text-decoration: underline; }
.promo-code, .cart-summary { margin-top: 10px; padding: 10px; border-radius: 13px; background: #f3edfd; }
.promo-code h2, .cart-summary h2 { margin: 0 0 8px; color: #58009e; font-size: 15px; }
.promo-code h2 .ui-icon, .cart-summary h2 .ui-icon { width: 19px; height: 19px; }
.promo-code form { display: flex; gap: 7px; }
.promo-code input { flex: 1; min-width: 0; padding: 9px; border: 1px solid #e1d8ec; border-radius: 8px; background: white; font-size: 12px; }
.promo-code button { min-height: 37px; padding: 6px 13px; border: 0; border-radius: 8px; color: white; background: #7100c8; font-size: 12px; font-weight: 700; }
.promo-code p, .cart-summary > p { margin: 6px 0 0; color: #61566a; font-size: 11px; }
.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; }
.cart-summary dt, .cart-summary dd { margin: 0; }
.cart-summary dd { text-align: right; }
#subtotal { color: #6902a9; font-weight: 700; }
.cart-summary .total-row { margin-top: 5px; padding-top: 8px; border-top: 1px solid #d5c9e3; font-weight: 800; }
#total { color: #e32120; font-size: 17px; }
.checkout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 12px; color: white; background: linear-gradient(#ff9900, #fa5500); font-size: 15px; font-weight: 800; }
.checkout-note { margin: 9px 0 0; color: #302836; text-align: center; font-size: 11px; }
.checkout-note .ui-icon { width: 13px; height: 13px; color: #18954a; }
.checkout-note span { color: #766b7b; }
.cart-dialog { width: min(90vw, 390px); padding: 23px; border: 0; border-radius: 16px; color: #211629; box-shadow: 0 12px 40px #0004; }
.cart-dialog::backdrop { background: #1b092b99; }
.cart-dialog h2 { margin: 0; font-size: 20px; }
.cart-dialog p { line-height: 1.4; }
.cart-dialog div { display: flex; justify-content: flex-end; gap: 8px; }
.cart-dialog button { min-height: 40px; padding: 8px 14px; border: 1px solid #dbd3e2; border-radius: 9px; background: white; font-weight: 700; }
#confirm-clear, #close-checkout { border-color: #f47700; color: white; background: #f47700; }
@media (max-width: 340px) { .cart-main { padding-right: 9px; padding-left: 9px; } .cart-item { grid-template-columns: 20px 54px minmax(0, 1fr) 30px; gap: 5px; padding: 8px 5px; } .item-image { width: 54px; height: 58px; } .item-actions button { width: 30px; } }

html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.cart-main { max-width: 680px; margin: auto; padding-bottom: 30px; }
.cart-main :is(button, input, select, a) { scroll-margin-bottom: calc(100px + env(safe-area-inset-bottom)); }
.checkout-steps li.completed { color: #7100a8; }
.checkout-steps li.completed > span { color: #fff; background: #7100a8; }
.checkout-steps li.completed::after { background: #7100a8; }
#checkout-stage h1 { margin: 8px 0 4px; font-size: clamp(24px, 6vw, 32px); line-height: 1.15; }
.stage-intro { margin: 5px 0 14px; color: #706976; font-size: 13px; line-height: 1.4; }
.stage-back { margin: 0 0 5px; padding: 8px 0; border: 0; color: #7100a8; background: transparent; font-weight: 700; }
.address-preview, .review-card, .confirmation-details { margin: 10px 0; padding: 14px; border: 1px solid #e6deea; border-radius: 12px; background: #fff; }
.address-preview { border-color: #9c64c6; background: #f9f4fd; }
.address-preview button, .review-card button { float: right; padding: 3px; border: 0; color: #7100a8; background: transparent; text-decoration: underline; font-size: 12px; font-weight: 700; }
.address-preview p, .review-card p { margin: 6px 0 0; color: #5f5865; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.new-address { width: 100%; margin: 0 0 10px; padding: 13px; border: 1px solid #e6deea; border-radius: 10px; background: #fff; text-align: left; font-weight: 700; }
.address-fields { display: grid; gap: 8px; }
.address-fields label { display: grid; gap: 4px; padding: 9px 11px; border: 1px solid #e6deea; border-radius: 10px; color: #332b39; font-size: 13px; font-weight: 700; }
.address-fields label span { color: #d72c28; }
.address-fields input, .address-fields select { width: 100%; min-width: 0; min-height: 32px; border: 0; outline-offset: 3px; color: #29222d; background: transparent; font: inherit; font-size: 16px; font-weight: 400; }
.choice-list { display: grid; gap: 8px; min-width: 0; margin: 17px 0 0; padding: 0; border: 0; }
.choice-list legend { padding: 0; font-size: 17px; font-weight: 800; }
.choice-list .stage-intro { margin: 0; }
.choice { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid #e5dfe8; border-radius: 11px; background: #fff; }
.choice:has(input:checked) { border-color: #8622b5; background: #f8f0fd; }
.choice input { flex: none; width: 18px; height: 18px; accent-color: #7800a9; }
.choice span { flex: 1; min-width: 0; font-size: 13px; }
.choice small { display: block; margin-top: 3px; color: #77707c; font-size: 11px; }
.choice b { color: #7100a8; font-size: 12px; white-space: nowrap; }
.payment-choice { min-height: 60px; }
.demo-notice { margin: 10px 0; padding: 12px; border-radius: 10px; color: #59466b; background: #f4edfb; font-size: 12px; line-height: 1.45; }
.demo-total { color: #e32120; font-size: 17px; }
.review-card > div { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.review-card button { flex: none; }
.review-card ul { margin: 8px 0 0; padding: 0; list-style: none; }
.review-card li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.review-card li b { flex: none; color: #7100a8; }
.confirmation { padding: 20px 0 8px; text-align: center; }
.confirmation h1 { color: #4a006b; }
.confirmation p { color: #706976; font-size: 13px; }
.success-mark { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: #ff7900; font-size: 51px; font-weight: 700; }
.confirmation-details > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.confirmation-details > div + div { border-top: 1px solid #eee8f0; }
.confirmation-details strong { color: #7100a8; text-align: right; overflow-wrap: anywhere; }
.tracking { margin: 12px 0; padding: 12px 15px 12px 40px; border: 1px solid #eee8f0; border-radius: 12px; list-style: circle; }
.tracking li { padding: 9px 0; font-size: 13px; }
.tracking .active { color: #7100a8; font-weight: 700; }
.tracking-button { background: linear-gradient(#9000bf, #60009c); }
.home-button { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 9px; border: 1px solid #d5ccda; border-radius: 12px; font-weight: 700; }
@media (max-width: 340px) { .cart-title h1 { font-size: 21px; } .cart-title h1 span { white-space: normal; } .choice { gap: 7px; padding: 10px; } .choice b { font-size: 11px; } }
