:root {
    --fxmc-bg: #ffffff;
    --fxmc-fg: #1f2937;
    --fxmc-muted: #6b7280;
    --fxmc-border: #e5e7eb;
    --fxmc-accent: #ef4444;
    --fxmc-radius: 10px;
    --fxmc-width: 420px;
    --fxmc-z: 9999;
}

.fxmc-overlay { display: none; }
.fxmc-overlay.is-closing {
    display: block ;
    position: fixed ; inset: 0 ;
    background: rgba(15, 23, 42, .45) ;
    z-index: 99998 ;
    backdrop-filter: blur(2px) ;
    -webkit-backdrop-filter: blur(2px) ;
    animation: fxmc-fadeout .3s ease-in both ;
    pointer-events: none ;
}
.fxmc-overlay.is-open {
    display: block ;
    position: fixed ;
    inset: 0 ;
    background: rgba(15, 23, 42, .45) ;
    opacity: 1 ;
    visibility: visible ;
    z-index: 99998 ;
    margin: 0 ;
    backdrop-filter: blur(2px) ;
    -webkit-backdrop-filter: blur(2px) ;
    animation: fxmc-fadein .35s ease-out both ;
}
@keyframes fxmc-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxmc-fadeout { from { opacity: 1; } to { opacity: 0; } }

.fxmc-drawer { display: none; }
.fxmc-drawer.is-closing {
    display: flex ;
    position: fixed ;
    top: 0 ; right: 0 ; left: auto ; bottom: 0 ;
    width: 420px ; max-width: 100vw ;
    background: #fff ;
    box-shadow: -10px 0 30px rgba(0,0,0,.12) ;
    z-index: 99999 ;
    flex-direction: column ;
    margin: 0 ;
    animation: fxmc-slideout .32s cubic-bezier(.4,0,.7,.4) both ;
    pointer-events: none ;
}
@keyframes fxmc-slideout {
    0%   { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: .3; }
}
aside#fxmc-drawer.is-open,
.fxmc-drawer.is-open {
    display: flex ;
    position: fixed ;
    top: 0 ; right: 0 ; left: auto ; bottom: 0 ;
    width: 420px ; max-width: 100vw ;
    background: #fff ; color: #1f2937 ;
    box-shadow: -10px 0 30px rgba(0,0,0,.12) ;
    z-index: 99999 ;
    flex-direction: column ;
    visibility: visible ;
    margin: 0 ;
    animation: fxmc-slidein .42s cubic-bezier(.16,.84,.44,1) both ;
    will-change: transform, opacity;
}
@keyframes fxmc-slidein {
    0%   { transform: translateX(100%); opacity: .4; }
    60%  { opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

.fxmc-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--fxmc-border);
}
.fxmc-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--fxmc-fg); }
.fxmc-count {
    display: inline-block; margin-left: 6px;
    background: var(--fxmc-accent); color: #fff;
    border-radius: 10px; padding: 2px 8px;
    font-size: 12px; font-weight: 600; line-height: 16px;
}
.fxmc-close {
    background: none; border: none; cursor: pointer;
    padding: 6px; color: var(--fxmc-muted);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: background .15s, color .15s;
}
.fxmc-close:hover { background: #f3f4f6; color: var(--fxmc-fg); }

.fxmc-body {
    flex: 1 1 auto; overflow-y: auto;
    display: flex; flex-direction: column;
}

.fxmc-empty {
    flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center; color: var(--fxmc-muted);
}
.fxmc-empty svg { color: var(--fxmc-muted); margin-bottom: 14px; }
.fxmc-empty p { margin: 0; font-size: 14px; }

.fxmc-items {
    list-style: none; margin: 0; padding: 0; flex: 1 1 auto;
}
.fxmc-item {
    display: flex; gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--fxmc-border);
    position: relative;
}
.fxmc-thumb {
    flex-shrink: 0; width: 64px; height: 64px;
    border-radius: 8px; overflow: hidden;
    background: #f9fafb;
    display: block;
}
.fxmc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fxmc-info { flex: 1 1 auto; min-width: 0; }
.fxmc-name {
    display: block;
    font-size: 14px; font-weight: 500; color: var(--fxmc-fg);
    text-decoration: none; line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fxmc-name:hover { color: var(--fxmc-accent); }
.fxmc-line { font-size: 13px; color: var(--fxmc-muted); margin-bottom: 8px; }
.fxmc-line .amount { color: var(--fxmc-fg); }

.fxmc-qty-row {
    display: flex; align-items: center; gap: 4px;
}
.fxmc-qty-btn {
    width: 26px; height: 26px;
    background: #f3f4f6; border: none;
    border-radius: 6px; cursor: pointer;
    color: var(--fxmc-fg); font-size: 14px; font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.fxmc-qty-btn:hover { background: #e5e7eb; }
.fxmc-qty-input {
    width: 40px; height: 26px;
    border: 1px solid var(--fxmc-border);
    border-radius: 6px; text-align: center;
    font-size: 13px; padding: 0 4px;
    background: #fff; color: var(--fxmc-fg);
    -moz-appearance: textfield;
}
.fxmc-qty-input::-webkit-inner-spin-button,
.fxmc-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.fxmc-line-sub {
    margin-left: auto;
    font-size: 13px; font-weight: 600; color: var(--fxmc-fg);
}

.fxmc-remove {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; cursor: pointer;
    padding: 4px; color: var(--fxmc-muted);
    border-radius: 4px;
}
.fxmc-remove:hover { color: var(--fxmc-accent); background: #fef2f2; }

.fxmc-foot {
    padding: 18px 22px;
    border-top: 1px solid var(--fxmc-border);
    background: #fff;
}
.fxmc-subtotal {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; font-size: 15px;
}
.fxmc-subtotal strong { font-size: 16px; color: var(--fxmc-fg); }
.fxmc-checkout-btn {
    display: block; width: 100%; padding: 13px;
    background: var(--fxmc-accent); color: #fff;
    text-align: center; text-decoration: none;
    font-weight: 600; font-size: 14px;
    border-radius: var(--fxmc-radius);
    transition: opacity .15s;
    box-sizing: border-box;
}
.fxmc-checkout-btn:hover { opacity: .92; color: #fff; }
.fxmc-view-cart {
    display: block; text-align: center;
    margin-top: 10px; padding: 9px;
    color: var(--fxmc-muted); text-decoration: none;
    font-size: 13px;
}
.fxmc-view-cart:hover { color: var(--fxmc-fg); }

.fxmc-loading { opacity: .55; pointer-events: none; }
.fxmc-item.is-removing { opacity: 0; transform: translateX(20px); transition: opacity .2s, transform .2s; }

@media (max-width: 480px) {
    :root { --fxmc-width: 100vw; }
    .fxmc-drawer { box-shadow: none; }
}

/* fxmc-cart-badge removed in v1.0.16 — we now only update existing theme counters (.count-badge κτλ) */
