/**
 * Nored Farms - Shopping Cart Styles
 * Deep Iron dark theme - cart sidebar, notifications, and checkout
 * Uses design tokens: --color--seedgreen, --color--snowwhite, etc.
 */

/* ============================================
   CART TOGGLE BUTTON
   ============================================ */

.cart-toggle {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--color--seedgreen, #50e8c0);
    color: var(--color--snowwhite, #12181a);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
}

.cart-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.cart-toggle svg {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--color-guidance-fluorescent-green, #50e8c0);
    color: var(--color--seedgreen, #12181a);
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 500;
    border-radius: 99em;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-bounce {
    animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ============================================
   CART OVERLAY
   ============================================ */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   CART SIDEBAR
   ============================================ */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--color--snowwhite, #1e2628);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(80, 232, 192, 0.05);
}

.cart-header h2 {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: var(--color--seedgreen, #bccac4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--color--seedgreen, #bccac4);
}

.cart-close {
    width: 32px;
    height: 32px;
    background: var(--color--foamwhite, #181e20);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color--olivegreen, #506460);
    transition: all 0.2s ease;
}

.cart-close:hover {
    background: rgba(80, 232, 192, 0.1);
    color: var(--color--seedgreen, #bccac4);
}

.cart-close svg {
    width: 16px;
    height: 16px;
}

/* Cart Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

/* Empty Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color--olivegreen, #506460);
    padding: 40px 24px;
}

.cart-empty svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.2;
}

.cart-empty h3 {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--color--seedgreen, #bccac4);
    margin-bottom: 6px;
}

.cart-empty p {
    font-size: 14px;
    font-weight: 350;
    color: var(--color--olivegreen, #506460);
}

/* Cart Items */
.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: var(--color--foamwhite, #181e20);
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
}

.cart-item-image {
    width: 56px;
    height: 56px;
    background: var(--color--snowwhite, #1e2628);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color--mossroot, #50e8c0);
}

.cart-item-placeholder svg {
    width: 24px;
    height: 24px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cart-item-name {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--color--seedgreen, #bccac4);
    line-height: 1.3;
}

.cart-item-category {
    font-size: 12px;
    font-weight: 350;
    color: var(--color--olivegreen, #506460);
}

.cart-item-price {
    font-size: 14px;
    font-weight: 400;
    color: var(--color--seedgreen, #bccac4);
}

/* Quantity Controls */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    background: var(--color--snowwhite, #1e2628);
    border: 1px solid rgba(80, 232, 192, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color--seedgreen, #bccac4);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--color--seedgreen, #50e8c0);
    border-color: var(--color--seedgreen, #50e8c0);
    color: var(--color--snowwhite, #12181a);
}

.qty-btn svg {
    width: 12px;
    height: 12px;
}

.qty-value {
    min-width: 22px;
    text-align: center;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-weight: 400;
    font-size: 14px;
    color: var(--color--seedgreen, #bccac4);
}

/* Remove Button */
.cart-item-remove {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color--olivegreen, #506460);
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: rgba(196, 92, 75, 0.06);
    color: var(--color-error, #c45c4b);
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

/* Cart Footer */
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(80, 232, 192, 0.05);
    background: var(--color--snowwhite, #1e2628);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 350;
    color: var(--color--olivegreen, #506460);
}

.cart-summary-row.total {
    font-size: 16px;
    font-weight: 400;
    color: var(--color--seedgreen, #bccac4);
    padding-top: 8px;
    border-top: 1px solid rgba(80, 232, 192, 0.08);
}

.cart-checkout-btn {
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    background: var(--color--seedgreen, #50e8c0);
    color: var(--color--snowwhite, #12181a);
    border: none;
    border-radius: 99em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-checkout-btn:hover {
    background: var(--color--seedgreen-hover, #40d0a8);
}

.cart-checkout-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 350;
    color: var(--color--olivegreen, #506460);
}

.cart-security svg {
    width: 12px;
    height: 12px;
}

/* ============================================
   ADD TO CART NOTIFICATION
   ============================================ */

.cart-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--color--snowwhite, #1e2628);
    color: var(--color--seedgreen, #bccac4);
    padding: 10px 16px;
    border-radius: 99em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(80, 232, 192, 0.05);
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification svg {
    width: 16px;
    height: 16px;
    color: var(--color--mossroot, #50e8c0);
    flex-shrink: 0;
}

.cart-notification span {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 400;
}

/* ============================================
   ADD TO CART BUTTON ON PRODUCTS
   ============================================ */

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color--seedgreen, #50e8c0);
    color: var(--color--snowwhite, #12181a);
    border: none;
    border-radius: 99em;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--color--seedgreen-hover, #40d0a8);
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.add-to-cart-btn.adding {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.added {
    background: var(--color--mossroot, #50e8c0);
    pointer-events: none;
}

/* ============================================
   CHECKOUT MODAL (legacy demo)
   ============================================ */

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.checkout-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-modal.open .checkout-modal-overlay {
    opacity: 1;
}

.checkout-modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--color--snowwhite, #1e2628);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    transform: scale(0.95) translateY(16px);
    opacity: 0;
    transition: all 0.3s ease;
}

.checkout-modal.open .checkout-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.checkout-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--color--foamwhite, #181e20);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color--olivegreen, #506460);
    transition: all 0.2s ease;
}

.checkout-modal-close:hover {
    background: rgba(80, 232, 192, 0.1);
    color: var(--color--seedgreen, #bccac4);
}

.checkout-modal-close svg {
    width: 16px;
    height: 16px;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.checkout-header svg {
    width: 24px;
    height: 24px;
    color: var(--color--seedgreen, #50e8c0);
}

.checkout-header h2 {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--color--seedgreen, #bccac4);
}

.checkout-summary {
    background: var(--color--foamwhite, #181e20);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.checkout-summary h3 {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color--olivegreen, #506460);
    margin-bottom: 12px;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 350;
    color: var(--color--seedgreen, #bccac4);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(80, 232, 192, 0.08);
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--color--seedgreen, #bccac4);
}

.checkout-notice {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color--lemongrass, rgba(80, 232, 192, 0.08));
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkout-notice svg {
    width: 18px;
    height: 18px;
    color: var(--color--mossroot, #50e8c0);
    flex-shrink: 0;
    margin-top: 1px;
}

.checkout-notice p {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 350;
    color: var(--color--seedgreen, #bccac4);
    line-height: 1.5;
}

.checkout-actions {
    display: flex;
    gap: 10px;
}

.checkout-actions .btn {
    flex: 1;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    padding: 12px 16px;
    border-radius: 99em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.checkout-actions .btn-secondary {
    background: transparent;
    color: var(--color--seedgreen, #bccac4);
    border: 1px solid rgba(80, 232, 192, 0.12);
}

.checkout-actions .btn-secondary:hover {
    border-color: var(--color--seedgreen, #50e8c0);
    background: rgba(80, 232, 192, 0.03);
}

.checkout-actions .btn-primary {
    background: var(--color--seedgreen, #50e8c0);
    color: var(--color--snowwhite, #12181a);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.checkout-actions .btn-primary:hover {
    background: var(--color--seedgreen-hover, #40d0a8);
}

.checkout-actions .btn-primary svg {
    width: 16px;
    height: 16px;
}

/* Checkout Success */
.checkout-success {
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--color--lemongrass, rgba(80, 232, 192, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color--mossroot, #50e8c0);
}

.checkout-success h2 {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--color--seedgreen, #bccac4);
    margin-bottom: 6px;
}

.checkout-success p {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 350;
    color: var(--color--olivegreen, #506460);
    margin-bottom: 12px;
}

.order-number {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--color--mossroot, #50e8c0);
    margin-bottom: 24px !important;
    letter-spacing: 0.02em;
}

/* ============================================
   INLINE CHECKOUT FORM (guest checkout)
   ============================================ */

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section titles */
.checkout-form-section-title {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color--olivegreen, #506460);
    margin-top: 20px;
    margin-bottom: 10px;
}

.checkout-form-section-title:first-child {
    margin-top: 0;
}

/* Order summary inside checkout form */
.checkout-form-summary {
    background: var(--color--foamwhite, #181e20);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 4px;
}

.checkout-form-summary .checkout-form-section-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.checkout-form-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.checkout-form-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 350;
    color: var(--color--seedgreen, #bccac4);
}

.checkout-form-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 12px;
}

.checkout-form-item-qty {
    color: var(--color--olivegreen, #506460);
}

.checkout-form-item-price {
    flex-shrink: 0;
    font-weight: 400;
}

.checkout-form-totals {
    border-top: 1px solid rgba(80, 232, 192, 0.06);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-form-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 350;
    color: var(--color--olivegreen, #8e9c98);
}

.checkout-form-row-total {
    font-size: 15px;
    font-weight: 400;
    color: var(--color--seedgreen, #bccac4);
    padding-top: 6px;
    border-top: 1px solid rgba(80, 232, 192, 0.06);
    margin-top: 4px;
}

/* Form groups */
.checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.checkout-form-group:last-child {
    margin-bottom: 0;
}

/* Row of side-by-side inputs */
.checkout-form-row-inputs {
    display: grid;
    grid-template-columns: 1fr 72px 90px;
    gap: 8px;
    margin-bottom: 12px;
}

.checkout-form-group-flex {
    margin-bottom: 0;
}

.checkout-form-group-small {
    margin-bottom: 0;
}

/* Labels */
.checkout-label {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 400;
    color: var(--color--olivegreen, #8e9c98);
    letter-spacing: 0.01em;
}

/* Input fields */
.checkout-input {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 350;
    color: var(--color--seedgreen, #bccac4);
    background: var(--color--foamwhite, #181e20);
    border: 1px solid rgba(80, 232, 192, 0.08);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.checkout-input::placeholder {
    color: var(--color-text-muted, #506460);
    font-weight: 350;
}

.checkout-input:focus {
    border-color: rgba(80, 232, 192, 0.3);
    box-shadow: 0 0 0 3px rgba(80, 232, 192, 0.06);
}

.checkout-input:hover:not(:focus) {
    border-color: rgba(80, 232, 192, 0.15);
}

/* Input error state */
.checkout-input-error {
    border-color: var(--color-error, #c45c4b);
}

.checkout-input-error:focus {
    border-color: var(--color-error, #c45c4b);
    box-shadow: 0 0 0 3px rgba(196, 92, 75, 0.1);
}

/* Field error text */
.checkout-field-error {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 350;
    color: var(--color-error, #c45c4b);
    min-height: 0;
    line-height: 1.3;
}

.checkout-field-error:empty {
    display: none;
}

/* Security notice */
.checkout-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(80, 232, 192, 0.04);
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.checkout-form-notice svg {
    width: 16px;
    height: 16px;
    color: var(--color--olivegreen, #506460);
    flex-shrink: 0;
    margin-top: 1px;
}

.checkout-form-notice span {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 350;
    color: var(--color--olivegreen, #8e9c98);
    line-height: 1.5;
}

/* Form actions (back + submit) */
.checkout-form-actions {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

/* Back button */
.checkout-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 350;
    color: var(--color--olivegreen, #8e9c98);
    background: transparent;
    border: 1px solid rgba(80, 232, 192, 0.08);
    border-radius: 99em;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkout-back-btn svg {
    width: 16px;
    height: 16px;
}

.checkout-back-btn:hover {
    color: var(--color--seedgreen, #bccac4);
    border-color: rgba(80, 232, 192, 0.2);
    background: rgba(80, 232, 192, 0.03);
}

/* Submit button */
.checkout-submit-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 350;
    color: var(--color-text-inverse, #12181a);
    background: var(--color--mossroot, #50e8c0);
    border: none;
    border-radius: 99em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-submit-btn svg {
    width: 16px;
    height: 16px;
}

.checkout-submit-btn:hover {
    background: #40d0a8;
}

.checkout-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner for submit button */
.checkout-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(18, 24, 26, 0.25);
    border-top-color: var(--color-text-inverse, #12181a);
    border-radius: 50%;
    animation: checkoutSpin 0.6s linear infinite;
}

@keyframes checkoutSpin {
    to { transform: rotate(360deg); }
}

/* Error banner */
.checkout-form-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(196, 92, 75, 0.08);
    border: 1px solid rgba(196, 92, 75, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    animation: checkoutErrorIn 0.2s ease;
}

.checkout-form-error-banner svg {
    width: 16px;
    height: 16px;
    color: var(--color-error, #c45c4b);
    flex-shrink: 0;
    margin-top: 1px;
}

.checkout-form-error-banner span {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 350;
    color: var(--color-error, #c45c4b);
    line-height: 1.4;
}

.checkout-form-error-banner-fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes checkoutErrorIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }

    .cart-header {
        padding: 16px;
    }

    .cart-body {
        padding: 12px 16px;
    }

    .cart-item {
        grid-template-columns: 48px 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .cart-item-image {
        width: 48px;
        height: 48px;
    }

    .cart-item-quantity {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    .cart-item-remove {
        position: absolute;
        right: 12px;
        top: 12px;
    }

    .cart-footer {
        padding: 16px;
    }

    .cart-toggle {
        bottom: 24px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .cart-toggle svg {
        width: 18px;
        height: 18px;
    }

    .cart-notification {
        right: 16px;
        left: 16px;
        bottom: 80px;
    }

    .checkout-modal-content {
        padding: 24px;
    }

    .checkout-actions {
        flex-direction: column;
    }

    /* Checkout form responsive */
    .checkout-form-row-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .checkout-form-row-inputs .checkout-form-group-flex {
        grid-column: 1 / -1;
    }

    .checkout-form-actions {
        flex-direction: column-reverse;
    }

    .checkout-back-btn {
        width: 100%;
        justify-content: center;
    }

    .checkout-submit-btn {
        width: 100%;
    }
}
