/* CartCanvas v1.0.0 */

:root {
    --cc-primary:      #1a1a1a;
    --cc-primary-text: #ffffff;
    --cc-accent:       #4CAF50;
    --cc-bg:           #ffffff;
    --cc-text:         #1a1a1a;
    --cc-border:       #e8e8e8;
    --cc-badge-bg:     #1a1a1a;
    --cc-badge-text:   #ffffff;
    --cc-radius:       0px;
    --cc-z:            999999;
}

/* ════ OVERLAY ════ */
.cc-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--cc-z) - 1);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.cc-overlay.open { opacity: 1; pointer-events: all; }

/* ════ DRAWER ════ */
.cc-drawer {
    position: fixed;
    top: 0; bottom: 0;
    width: min(420px, 100vw);
    background: var(--cc-bg);
    z-index: var(--cc-z);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,0.12);
}
.cc-drawer--right { right: 0; }
.cc-drawer--left  { left: 0; transform: translateX(-100%); box-shadow: 4px 0 32px rgba(0,0,0,0.12); }
.cc-drawer.open   { transform: translateX(0); }

/* Announcement */
.cc-announcement {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    flex-shrink: 0;
}

/* Head */
.cc-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--cc-border);
    flex-shrink: 0;
}
.cc-drawer-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; color: var(--cc-text);
}
.cc-head-count { font-weight: 400; color: #888; font-size: 14px; }
.cc-drawer-close {
    background: transparent; border: none; cursor: pointer;
    padding: 4px; color: var(--cc-text); display: flex;
    border-radius: 50%; transition: background 0.15s;
}
.cc-drawer-close:hover { background: var(--cc-border); }

/* Shipping bar */
.cc-shipping-bar {
    padding: 10px 20px;
    border-bottom: 1px solid var(--cc-border);
    flex-shrink: 0;
    background: #f9f9f9;
}
.cc-shipping-msg { font-size: 12px; color: var(--cc-text); margin-bottom: 6px; text-align: center; }
.cc-shipping-track {
    height: 4px; background: var(--cc-border); border-radius: 2px; overflow: hidden;
}
.cc-shipping-fill {
    height: 100%; background: var(--cc-accent);
    border-radius: 2px; transition: width 0.5s ease;
}

/* Timer */
.cc-timer {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; background: #fff3cd; color: #856404;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
    border-bottom: 1px solid #ffc107;
}

/* Body */
.cc-drawer-body {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

/* Empty state */
.cc-empty {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 48px 24px; gap: 12px;
}
.cc-empty-icon { opacity: 0.25; margin-bottom: 8px; }
.cc-empty-heading { font-size: 18px; font-weight: 700; color: var(--cc-text); margin: 0; }
.cc-empty-sub { font-size: 13px; color: #888; margin: 0; }

/* Cart items */
.cc-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cc-border);
    align-items: start;
    position: relative;
}
.cc-item-img-wrap { position: relative; }
.cc-item-img {
    width: 80px; height: 80px;
    object-fit: contain; display: block;
    background: #f5f5f5; border: 1px solid var(--cc-border);
}
.cc-item-info { min-width: 0; }
.cc-item-name {
    font-size: 13px; font-weight: 600; color: var(--cc-text);
    display: block; margin-bottom: 4px; line-height: 1.3;
    text-decoration: none;
}
.cc-item-name:hover { text-decoration: underline; }
.cc-item-variation { font-size: 11px; color: #888; display: block; margin-bottom: 8px; }
.cc-item-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-item-price { font-size: 13px; font-weight: 700; color: var(--cc-text); }
.cc-item-line-total { font-size: 12px; color: #888; }

/* Qty stepper */
.cc-qty-stepper {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--cc-border); border-radius: 3px;
    overflow: hidden; height: 30px;
}
.cc-qty-btn {
    width: 28px; height: 28px; background: transparent;
    border: none; cursor: pointer; font-size: 16px; font-weight: 500;
    color: var(--cc-text); transition: background 0.12s;
    display: flex; align-items: center; justify-content: center;
}
.cc-qty-btn:hover { background: var(--cc-border); }
.cc-qty-input {
    width: 36px; height: 28px; border: none; border-left: 1.5px solid var(--cc-border);
    border-right: 1.5px solid var(--cc-border); text-align: center;
    font-size: 13px; font-weight: 600; color: var(--cc-text); background: transparent;
}
.cc-qty-input::-webkit-outer-spin-button,
.cc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Remove button */
.cc-item-remove {
    background: transparent; border: none; cursor: pointer;
    color: #bbb; padding: 2px; font-size: 16px;
    transition: color 0.12s; align-self: center;
    display: flex; align-items: center;
}
.cc-item-remove:hover { color: #e53935; }

/* Social proof */
.cc-social-proof {
    font-size: 11px; color: #e53935; font-weight: 500;
    display: block; margin-top: 6px;
}

/* Undo bar */
.cc-undo-bar {
    margin: 8px 20px; padding: 10px 14px;
    background: #f5f5f5; border: 1px solid var(--cc-border);
    border-radius: 4px; font-size: 13px;
    display: flex; align-items: center; justify-content: space-between;
}
.cc-undo-btn {
    background: transparent; border: none; cursor: pointer;
    font-weight: 700; text-decoration: underline; font-size: 13px;
    color: var(--cc-primary);
}

/* Upsells slider */
.cc-upsells-section {
    border-top: 1px solid var(--cc-border);
    padding: 12px 0;
    flex-shrink: 0;
}
.cc-section-heading {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #888;
    padding: 0 20px; margin-bottom: 12px;
}
.cc-upsells-slider {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 0 20px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cc-upsells-slider::-webkit-scrollbar { display: none; }
.cc-upsell-card {
    flex-shrink: 0; width: 120px; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 6px;
}
.cc-upsell-img {
    width: 120px; height: 120px; object-fit: contain;
    background: #f5f5f5; display: block;
}
.cc-upsell-name { font-size: 11px; font-weight: 600; color: var(--cc-text); line-height: 1.3; }
.cc-upsell-price { font-size: 11px; color: #888; }
.cc-upsell-add {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 6px 0;
    background: var(--cc-primary); color: var(--cc-primary-text);
    border: none; cursor: pointer; width: 100%;
    transition: opacity 0.15s;
}
.cc-upsell-add:hover { opacity: 0.85; }

/* ════ FBT CAROUSEL ════ */
.cc-fbt-carousel-section {
    border-top: 1px solid var(--cc-border);
    padding: 16px 0 0;
    flex-shrink: 0;
}
.cc-fbt-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 12px;
}
.cc-fbt-carousel-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cc-fbt-prev, .cc-fbt-next {
    width: 28px; height: 28px;
    border: 1.5px solid var(--cc-border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cc-text);
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
    padding: 0;
}
.cc-fbt-prev:hover, .cc-fbt-next:hover {
    background: var(--cc-primary);
    color: var(--cc-primary-text);
    border-color: var(--cc-primary);
}
.cc-fbt-dots {
    display: flex; gap: 5px; align-items: center;
}
.cc-fbt-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cc-border);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.cc-fbt-dot.active {
    background: var(--cc-primary);
    transform: scale(1.3);
}
.cc-fbt-carousel-track-wrap {
    padding: 0 20px 16px;
    overflow: hidden;
}
.cc-fbt-carousel-track {
    transition: opacity 0.2s ease;
}
.cc-fbt-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid var(--cc-border);
    border-radius: 4px;
    padding: 12px;
}
.cc-fbt-card-img-wrap {
    width: 90px; height: 90px;
    background: #fff;
    border: 1px solid var(--cc-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cc-fbt-card-img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.cc-fbt-card-body {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.cc-fbt-card-name {
    font-size: 13px; font-weight: 600; color: var(--cc-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cc-fbt-card-stars { font-size: 11px; color: #f5a623; }
.cc-fbt-card-price { font-size: 13px; font-weight: 700; color: var(--cc-text); }
.cc-fbt-card-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    background: var(--cc-primary);
    color: var(--cc-primary-text);
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    white-space: nowrap;
    transition: opacity 0.15s;
    align-self: center;
}
.cc-fbt-card-btn:hover { opacity: 0.85; }

/* Order bump */
.cc-bump {
    border-top: 1px solid var(--cc-border);
    padding: 14px 20px; flex-shrink: 0;
}
.cc-bump-inner {
    border: 2px dashed var(--cc-primary);
    border-radius: 4px; padding: 12px; position: relative;
}
.cc-bump-badge {
    position: absolute; top: -10px; left: 12px;
    background: var(--cc-primary); color: var(--cc-primary-text);
    font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
    padding: 2px 8px; border-radius: 2px;
}
.cc-bump-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cc-bump-check { display: none; }
.cc-bump-checkmark {
    width: 20px; height: 20px; border: 2px solid var(--cc-border); border-radius: 3px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s; margin-top: 2px;
}
.cc-bump-check:checked + .cc-bump-checkmark {
    background: var(--cc-primary); border-color: var(--cc-primary);
}
.cc-bump-check:checked + .cc-bump-checkmark::after {
    content: ''; width: 5px; height: 9px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px); display: block;
}
.cc-bump-content { display: flex; align-items: center; gap: 10px; }
.cc-bump-img { width: 48px; height: 48px; object-fit: contain; background: #f5f5f5; }
.cc-bump-text { display: flex; flex-direction: column; gap: 2px; }
.cc-bump-headline { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--cc-primary); }
.cc-bump-name { font-size: 13px; font-weight: 600; color: var(--cc-text); }
.cc-bump-price { font-size: 12px; font-weight: 700; color: var(--cc-accent); }
.cc-bump-desc { font-size: 11px; color: #888; }

/* Cart notes */
.cc-notes-section { border-top: 1px solid var(--cc-border); padding: 12px 20px; flex-shrink: 0; }
.cc-notes-toggle {
    display: flex; align-items: center; gap: 6px;
    background: transparent; border: none; cursor: pointer;
    font-size: 12px; color: #888; padding: 0;
}
.cc-notes-arrow { transition: transform 0.2s; }
.cc-notes-section.open .cc-notes-arrow { transform: rotate(180deg); }
.cc-notes-wrap { margin-top: 10px; }
.cc-notes-input {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 1.5px solid var(--cc-border); border-radius: 3px;
    font-size: 13px; resize: vertical; min-height: 80px;
    font-family: inherit; color: var(--cc-text);
}
.cc-notes-input:focus { outline: none; border-color: var(--cc-primary); }
.cc-notes-save {
    margin-top: 6px; font-size: 11px; font-weight: 700; padding: 6px 14px;
    background: transparent; border: 1.5px solid var(--cc-primary);
    cursor: pointer; color: var(--cc-primary);
}
.cc-notes-save:hover { background: var(--cc-primary); color: var(--cc-primary-text); }

/* Coupon */
.cc-coupon-section { border-top: 1px solid var(--cc-border); padding: 12px 20px; flex-shrink: 0; }
.cc-coupon-toggle {
    display: flex; align-items: center; gap: 6px;
    background: transparent; border: none; cursor: pointer;
    font-size: 12px; color: #888; padding: 0;
}
.cc-coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.cc-coupon-input {
    flex: 1; padding: 9px 12px; border: 1.5px solid var(--cc-border); border-radius: 3px;
    font-size: 13px; font-family: inherit; color: var(--cc-text); text-transform: uppercase;
}
.cc-coupon-input:focus { outline: none; border-color: var(--cc-primary); }
.cc-coupon-msg { font-size: 12px; margin-top: 6px; }
.cc-coupon-msg--success { color: var(--cc-accent); }
.cc-coupon-msg--error { color: #e53935; }
.cc-applied-coupons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cc-applied-coupon {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; background: #f0fff4; border: 1px solid var(--cc-accent);
    border-radius: 20px; font-size: 11px; font-weight: 700; color: #2e7d32;
}
.cc-remove-coupon {
    background: transparent; border: none; cursor: pointer;
    color: #2e7d32; font-size: 14px; line-height: 1; padding: 0;
}

/* Footer */
.cc-drawer-foot {
    border-top: 1px solid var(--cc-border); padding: 16px 20px;
    flex-shrink: 0; display: flex; flex-direction: column; gap: 12px;
    background: var(--cc-bg);
}
.cc-totals { display: flex; flex-direction: column; gap: 6px; }
.cc-totals-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: var(--cc-text);
}
.cc-totals-row--total { font-size: 16px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--cc-border); }

/* Trust badges */
.cc-trust-badges {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    padding: 8px 0; border-top: 1px solid var(--cc-border);
}
.cc-trust-badge {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10px; color: #888; text-align: center;
}
.cc-trust-badge svg { color: #888; }
.cc-trust-badges--column { flex-direction: column; align-items: flex-start; gap: 8px; }
.cc-trust-badges--column .cc-trust-badge { flex-direction: row; gap: 8px; font-size: 12px; }

/* Buttons */
.cc-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 14px 20px; font-size: 13px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
    text-decoration: none; transition: background 0.15s, opacity 0.15s;
    border-radius: var(--cc-radius); border: 2px solid transparent; white-space: nowrap;
    line-height: 1;
}
.cc-btn--checkout {
    background: var(--cc-primary); color: var(--cc-primary-text);
    border-color: var(--cc-primary); width: 100%;
}
.cc-btn--checkout:hover { opacity: 0.88; }
.cc-btn--outline {
    background: transparent; color: var(--cc-primary); border-color: var(--cc-primary);
}
.cc-btn--outline:hover { background: var(--cc-primary); color: var(--cc-primary-text); }
.cc-btn--sm { padding: 8px 14px; font-size: 11px; }
.cc-btn--full { width: 100%; box-sizing: border-box; }
.cc-btn--ghost { background: transparent; color: #888; border-color: var(--cc-border); }

/* Sticky checkout (mobile) */
.cc-sticky-checkout {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--cc-bg); border-top: 1px solid var(--cc-border);
    padding: 12px 16px; z-index: calc(var(--cc-z) - 2);
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.cc-sticky-total { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.cc-sticky-checkout .cc-btn--checkout { flex: 1; }

/* Cart icon */
.cc-cart-icon {
    position: relative; background: transparent; border: none;
    cursor: pointer; padding: 8px; color: inherit; display: inline-flex;
    align-items: center; justify-content: center;
}
.cc-icon-count {
    position: absolute; top: 0; right: 0;
    background: var(--cc-badge-bg); color: var(--cc-badge-text);
    border-radius: 50%; width: 18px; height: 18px;
    font-size: 10px; font-weight: 800; display: flex;
    align-items: center; justify-content: center; line-height: 1;
    transition: transform 0.2s;
}
.cc-icon-count.hidden { display: none; }

/* Save cart */
.cc-save-cart-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: transparent; border: none; cursor: pointer;
    font-size: 12px; color: #888; text-decoration: underline;
    text-underline-offset: 2px; padding: 4px 0; width: 100%;
}

/* ════ POST-ADD POPUP ════ */
.cc-popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: calc(var(--cc-z) + 1); opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.cc-popup-overlay.open { opacity: 1; pointer-events: all; }
.cc-popup {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-48%);
    z-index: calc(var(--cc-z) + 2); background: var(--cc-bg);
    width: min(500px, 94vw); max-height: 90vh; overflow-y: auto;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.cc-popup.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.cc-popup-inner { padding: 28px; }
.cc-popup-close {
    position: absolute; top: 12px; right: 12px;
    background: transparent; border: none; cursor: pointer;
    color: #888; padding: 4px; display: flex;
}
.cc-popup-close:hover { color: var(--cc-text); }
.cc-popup-confirm {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid var(--cc-border);
}
.cc-popup-check {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--cc-accent); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.cc-popup-confirm-info { display: flex; align-items: center; gap: 12px; }
.cc-popup-confirm-img { width: 56px; height: 56px; object-fit: contain; background: #f5f5f5; }
.cc-popup-confirm-name { font-size: 14px; font-weight: 600; color: var(--cc-text); margin: 0 0 4px; }
.cc-popup-confirm-label { font-size: 12px; color: #888; margin: 0; }
.cc-popup-upsell-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 12px; }
.cc-popup-upsell-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.cc-popup-upsell-item { display: flex; flex-direction: column; gap: 6px; }
.cc-popup-upsell-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f5f5f5; }
.cc-popup-upsell-name { font-size: 11px; font-weight: 600; color: var(--cc-text); line-height: 1.3; }
.cc-popup-upsell-price { font-size: 11px; color: #888; }
.cc-popup-upsell-add {
    font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 5px 0;
    background: var(--cc-primary); color: var(--cc-primary-text);
    border: none; cursor: pointer; width: 100%;
}
.cc-popup-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.cc-popup-actions .cc-btn { flex: 1; }
.cc-popup-totals { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #888; }
.cc-popup-view-cart { color: var(--cc-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ════ CART PAGE ════ */
.cc-cart-page { width: 100%; font-family: inherit; }
.cc-cart-page-inner { display: grid; grid-template-columns: 1fr 380px; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 32px 40px; box-sizing: border-box; }
.cc-cart-page-title { font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cc-text); margin: 0 0 24px; }
.cc-cart-page-count { font-weight: 400; color: #888; }
.cc-page-continue { font-size: 12px; color: #888; text-decoration: none; display: inline-block; margin: 12px 0 24px; }
.cc-page-continue:hover { color: var(--cc-text); }
.cc-page-items { display: flex; flex-direction: column; }
.cc-page-item { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--cc-border); align-items: start; }
.cc-page-item-img { width: 100px; height: 100px; object-fit: contain; background: #f5f5f5; }
.cc-page-item-info { display: flex; flex-direction: column; gap: 8px; }
.cc-page-item-name { font-size: 14px; font-weight: 600; color: var(--cc-text); text-decoration: none; }
.cc-page-item-variation { font-size: 12px; color: #888; }
.cc-page-item-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cc-page-item-price { font-size: 15px; font-weight: 700; color: var(--cc-text); }
.cc-page-item-remove { font-size: 11px; color: #bbb; text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; }
.cc-page-item-remove:hover { color: #e53935; }

/* Summary card */
.cc-summary-card { background: #f9f9f9; border: 1px solid var(--cc-border); padding: 24px; position: sticky; top: 80px; }
.cc-summary-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cc-text); margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--cc-border); }
.cc-summary-totals { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cc-totals-row--shipping { color: #888; }
.cc-totals-row--total { font-size: 16px; font-weight: 700; padding-top: 12px; border-top: 2px solid var(--cc-text); margin-top: 4px; }

/* FBT section */
.cc-fbt-section { margin-top: 32px; }
.cc-fbt-heading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; }
.cc-fbt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cc-fbt-item { display: flex; flex-direction: column; gap: 8px; }
.cc-fbt-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f5f5f5; }
.cc-fbt-name { font-size: 12px; font-weight: 600; color: var(--cc-text); }
.cc-fbt-price { font-size: 12px; color: #888; }
.cc-fbt-add { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 8px 0; background: var(--cc-primary); color: var(--cc-primary-text); border: none; cursor: pointer; width: 100%; }

/* Page notes */
.cc-page-notes { margin-top: 24px; }
.cc-page-notes-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* Page upsells */
.cc-page-upsells { max-width: 1200px; margin: 0 auto; padding: 32px 40px; border-top: 1px solid var(--cc-border); }
.cc-page-upsells h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; }

/* ════ MINICART ════ */
.cc-minicart { position: relative; display: inline-block; }
.cc-minicart-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 320px; background: var(--cc-bg); border: 1px solid var(--cc-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: calc(var(--cc-z) - 2);
    display: none; flex-direction: column;
}
.cc-minicart:hover .cc-minicart-dropdown,
.cc-minicart.open .cc-minicart-dropdown { display: flex; }
.cc-minicart-items { max-height: 280px; overflow-y: auto; padding: 12px; }
.cc-minicart-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cc-border); }
.cc-minicart-img { width: 48px; height: 48px; object-fit: contain; background: #f5f5f5; }
.cc-minicart-info { flex: 1; }
.cc-minicart-name { font-size: 12px; font-weight: 600; color: var(--cc-text); }
.cc-minicart-price { font-size: 11px; color: #888; }
.cc-minicart-foot { padding: 12px; border-top: 1px solid var(--cc-border); display: flex; flex-direction: column; gap: 8px; }
.cc-minicart-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }

/* ════ RESPONSIVE ════ */
@media (max-width: 1024px) {
    .cc-cart-page-inner { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .cc-summary-card { position: static; }
}
@media (max-width: 768px) {
    .cc-drawer { width: 100vw; }
    .cc-fbt-grid { grid-template-columns: repeat(2,1fr); }
    .cc-popup-upsell-grid { grid-template-columns: repeat(2,1fr); }
    .cc-cart-page-inner { padding: 16px; }
    .cc-page-item { grid-template-columns: 80px 1fr; }
    .cc-page-item-img { width: 80px; height: 80px; }
}

/* ════ FLOATING CART BUTTON (FAB) ════ */
#ccFab,
.cc-fab {
    position: fixed !important;
    z-index: 999997 !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    background: var(--cc-primary) !important;
    color: var(--cc-primary-text) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.cc-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}
.cc-fab:active { transform: scale(0.97); }
.cc-fab svg { width: 26px; height: 26px; }

/* Positions */
.cc-fab--bottom-right { bottom: 24px; right: 24px; }
.cc-fab--bottom-left  { bottom: 24px; left:  24px; }
.cc-fab--bottom-center{ bottom: 24px; left: 50%; transform: translateX(-50%); }
.cc-fab--bottom-center:hover { transform: translateX(-50%) scale(1.06); }

/* Adjust for WooCommerce/theme sticky bars at bottom */
@media (max-width: 768px) {
    .cc-fab--bottom-right { bottom: 80px; right: 16px; }
    .cc-fab--bottom-left  { bottom: 80px; left:  16px; }
}

/* Badge */
.cc-fab .cc-icon-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #fff;
    border-radius: 50%;
    /* Always show on FAB even when 0 */
    display: flex !important;
}

/* Bounce animation when item added */
@keyframes cc-fab-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.2); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.cc-fab.cc-fab--bounce { animation: cc-fab-bounce 0.4s ease; }
.cc-fab--bottom-center.cc-fab--bounce {
    animation: none; /* centre version already has transform */
}

/* Hide regular cart icon when FAB is enabled */
.cc-fab-mode .cc-cart-icon { display: none; }

@media (min-width: 1025px) { .cc-fab--mobile-only { display: none !important; } }

/* ════ GIFT NOTIFICATION ════ */
.cc-gift-notification {
    margin: 0 20px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3c4 100%);
    border: 1.5px solid #f5c842;
    border-radius: 6px;
    flex-shrink: 0;
}
.cc-gift-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc-gift-icon { font-size: 20px; flex-shrink: 0; }
.cc-gift-msg {
    font-size: 13px;
    font-weight: 600;
    color: #7a5c00;
    line-height: 1.4;
}

/* Gift badge on cart item */
.cc-item[data-is-gift="1"] .cc-item-img-wrap::after {
    content: '🎁 FREE';
    position: absolute;
    bottom: 0; left: 0;
    background: #f5c842;
    color: #7a5c00;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    letter-spacing: 0.06em;
}
.cc-item[data-is-gift="1"] .cc-item-price {
    text-decoration: line-through;
    color: #bbb;
}
.cc-item[data-is-gift="1"]::after {
    content: 'FREE';
    font-size: 10px;
    font-weight: 800;
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* FAB side tab pulse */
@keyframes cc-tab-pulse {
    0%   { transform: translateY(-50%) scaleX(1); }
    40%  { transform: translateY(-50%) scaleX(1.12); }
    100% { transform: translateY(-50%) scaleX(1); }
}
#ccFabTab.cc-fab-pulse { animation: cc-tab-pulse 0.5s ease; }
