/* Cart drawer — luxury polish (black + #FFD333 gold) */

/* ============ /cart empty state ============ */
.cart-empty {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-family: 'Roboto', sans-serif;
}
.cart-empty__card {
    width: 100%;
    max-width: 460px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 48px 32px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
.cart-empty__icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD333 0%, #D4AF37 100%);
    color: #111;
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}
.cart-empty__title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111;
}
.cart-empty__text {
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #777;
}
.cart-empty__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.cart-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    height: 48px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
    border: 1px solid transparent;
}
.cart-empty__btn--primary {
    background: #FFD333;
    color: #111;
    border-color: #FFD333;
}
.cart-empty__btn--primary:hover {
    background: #f0c520;
    border-color: #f0c520;
    color: #111;
    text-decoration: none;
    transform: translateY(-1px);
}
.cart-empty__btn--ghost {
    background: transparent;
    color: #111;
    border-color: transparent;
    letter-spacing: 0.12em;
    height: auto;
    font-size: 0.78rem;
}
.cart-empty__btn--ghost:hover {
    color: #D4AF37;
    text-decoration: none;
}
.cart-empty__btn--ghost i {
    margin-right: 6px;
}


.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(440px, 100%);
    background: #fff;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
    font-family: 'Roboto', sans-serif;
}
.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 1040;
}
.cart-drawer__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.cart-drawer__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #111;
}
.cart-drawer__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #555;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-drawer__close:hover {
    background: #f4f4f4;
    color: #111;
}

.cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 24px 24px;
}

.cart-drawer__empty {
    text-align: center;
    padding: 56px 16px;
    color: #777;
}
.cart-drawer__empty-icon {
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 12px;
}
.cart-drawer__empty-text {
    font-size: 0.95rem;
    margin: 0;
}

.cart-line {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-line:last-child {
    border-bottom: none;
}

.cart-line__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    background: #f7f7f7;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.cart-line__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-line__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1.4rem;
}

.cart-line__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cart-line__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.cart-line__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1.3;
}
.cart-line__variant {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
    letter-spacing: 0.04em;
}
.cart-line__unit {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2px;
}
.cart-line__total {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

.cart-line__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 999px;
    overflow: hidden;
    height: 30px;
}
.qty-stepper__btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 140ms ease;
}
.qty-stepper__btn:hover:not(:disabled) {
    background: #f4f4f4;
}
.qty-stepper__btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}
.qty-stepper__value {
    min-width: 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
    user-select: none;
}

.cart-line__remove {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 140ms ease;
}
.cart-line__remove:hover {
    color: #c0392b;
    text-decoration: underline;
}

.cart-drawer__footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.cart-drawer__subtotal-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
}
.cart-drawer__subtotal-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}
.cart-drawer__note {
    font-size: 0.72rem;
    color: #888;
    margin: 0 0 16px;
    line-height: 1.5;
}

.cart-drawer__actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.cart-drawer__actions > * {
    flex: 1 1 0;
}
.cart-drawer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
    border: 1px solid transparent;
}
.cart-drawer__btn--primary {
    background: #FFD333;
    color: #111;
    border-color: #FFD333;
}
.cart-drawer__btn--primary:hover {
    background: #f0c520;
    border-color: #f0c520;
    color: #111;
    text-decoration: none;
}
.cart-drawer__btn--ghost {
    background: #fff;
    color: #111;
    border-color: #111;
}
.cart-drawer__btn--ghost:hover {
    background: #f4f4f4;
    color: #111;
    border-color: #111;
    text-decoration: none;
}
.cart-drawer__btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
