/**
 * TejCart Side Cart (Drawer) Styles
 *
 * The drawer is rendered in the footer on every page, so this stylesheet
 * is loaded globally alongside tejcart-public.css. Depends on design
 * tokens declared in tejcart-public.css.
 *
 * Layout: fixed full-height panel sliding from the right with a three-
 * region flex column — sticky header, scrolling item list, sticky
 * footer. Mobile (<600px) takes full width minus a small inset so the
 * backdrop is still visible at the edge.
 *
 * @package TejCart
 */

.tejcart-cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: var(--tejcart-bg-backdrop);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--tejcart-duration-slow) var(--tejcart-ease),
        visibility var(--tejcart-duration-slow) var(--tejcart-ease);
    z-index: var(--tejcart-z-backdrop);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tejcart-cart-drawer-overlay.active,
.tejcart-cart-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.tejcart-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    background: var(--tejcart-bg-surface);
    box-shadow: var(--tejcart-shadow-prominent);
    transform: translateX(100%);
    transition: transform var(--tejcart-duration-slow) var(--tejcart-ease);
    z-index: var(--tejcart-z-drawer);
    visibility: hidden;
    font-family: var(--tejcart-font-family);
    color: var(--tejcart-text);
    border-left: 1px solid var(--tejcart-border-subtle);
    will-change: transform;
    overflow: hidden;
}

.tejcart-cart-drawer.open,
.tejcart-cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

@media (min-width: 600px) {
    .tejcart-cart-drawer {
        width: 440px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tejcart-cart-drawer,
    .tejcart-cart-drawer-overlay {
        transition: none;
    }
}

.tejcart-cart-drawer button,
.tejcart-cart-drawer-overlay {
    box-shadow: none;
    text-shadow: none;
}

.tejcart-cart-drawer .tejcart-cart-drawer-close,
.tejcart-cart-drawer .tejcart-cart-drawer-item-remove {
    background: transparent !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-shipping-icon svg,
.tejcart-cart-drawer .tejcart-cart-drawer-empty-cta svg,
.tejcart-cart-drawer .tejcart-cart-drawer-trust-item svg,
.tejcart-cart-drawer .tejcart-cart-drawer-view-cart-arrow {
    display: block !important;
    pointer-events: none;
}

.tejcart-cart-drawer .tejcart-cart-drawer-shipping-icon svg path,
.tejcart-cart-drawer .tejcart-cart-drawer-empty-cta svg path,
.tejcart-cart-drawer .tejcart-cart-drawer-trust-item svg path,
.tejcart-cart-drawer .tejcart-cart-drawer-view-cart-arrow path {
    stroke: currentColor !important;
    fill: none !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-close,
.tejcart-cart-drawer .tejcart-cart-drawer-item-remove,
.tejcart-cart-drawer .tejcart-qty-btn {
    color: var(--tejcart-text) !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-close::before,
.tejcart-cart-drawer .tejcart-cart-drawer-item-remove::before,
.tejcart-cart-drawer .tejcart-qty-btn::before {
    content: "" !important;
    display: block !important;
    background-color: currentColor !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    pointer-events: none;
}

.tejcart-cart-drawer .tejcart-cart-drawer-close::before {
    width: 20px !important;
    height: 20px !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>") !important;
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>") !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-remove::before {
    width: 14px !important;
    height: 14px !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'><path d='M5 5l10 10M15 5L5 15'/></svg>") !important;
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'><path d='M5 5l10 10M15 5L5 15'/></svg>") !important;
}

.tejcart-cart-drawer .tejcart-qty-decrement::before {
    width: 14px !important;
    height: 14px !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M2 7h10'/></svg>") !important;
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M2 7h10'/></svg>") !important;
}

.tejcart-cart-drawer .tejcart-qty-increment::before {
    width: 14px !important;
    height: 14px !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M7 2v10M2 7h10'/></svg>") !important;
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M7 2v10M2 7h10'/></svg>") !important;
}

.tejcart-cart-drawer-trust-payments .tejcart-trust-payment {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.tejcart-cart-drawer-trust-payments .tejcart-trust-payment[data-payment="visa"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24'><rect width='38' height='24' rx='3' fill='%231a1f71'/><path d='M16.8 15.4h-2.3l1.44-8.8h2.3l-1.44 8.8zm7.9-8.6c-.45-.17-1.17-.36-2.06-.36-2.27 0-3.87 1.18-3.88 2.87-.01 1.25 1.17 1.94 2.06 2.36.91.42 1.22.69 1.22 1.07-.01.57-.72.83-1.39.83-.92 0-1.42-.13-2.18-.46l-.3-.14-.33 1.95c.55.24 1.58.45 2.65.46 2.41 0 3.99-1.17 4.01-2.97.01-.99-.61-1.74-1.94-2.36-.81-.4-1.3-.67-1.3-1.08.01-.37.42-.76 1.33-.76.76-.01 1.3.15 1.73.32l.21.1.3-1.83zm3.7 5.47c.19-.49.92-2.43.92-2.43-.01.02.19-.5.31-.83l.16.75s.44 2.08.53 2.51h-1.92zm2.7-5.67h-1.78c-.55 0-.96.15-1.2.71l-3.42 8.09h2.41l.48-1.32h2.95c.07.31.28 1.32.28 1.32h2.13l-1.85-8.8zm-17.5 0-2.24 5.99-.24-1.2c-.42-1.39-1.72-2.89-3.17-3.64l2.05 7.65h2.43l3.61-8.8h-2.44z' fill='%23fff'/></svg>") !important;
}

.tejcart-cart-drawer-trust-payments .tejcart-trust-payment[data-payment="mastercard"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24'><rect width='38' height='24' rx='3' fill='%23fff'/><rect width='37' height='23' x='.5' y='.5' rx='2.5' fill='none' stroke='%23e1e3e5'/><circle cx='15' cy='12' r='6' fill='%23eb001b'/><circle cx='23' cy='12' r='6' fill='%23f79e1b'/><path d='M19 7.6a6 6 0 0 0 0 8.8 6 6 0 0 0 0-8.8z' fill='%23ff5f00'/></svg>") !important;
}

.tejcart-cart-drawer-trust-payments .tejcart-trust-payment[data-payment="amex"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24'><rect width='38' height='24' rx='3' fill='%231f72cd'/><path d='M8.5 9.5h3l.5 1.2.5-1.2h7v.7c.5-.4 1.1-.7 1.8-.7h2.4l.5 1.2.5-1.2h3v.9c.5-.6 1.2-.9 2-.9H32l-.8 1.9.8 2.2h-2c-.6 0-1.2-.3-1.6-.7v.7h-3l-.5-1.2-.6 1.2h-2.1c-.6 0-1.2-.2-1.6-.6v.6h-5.2l-.5-1.2-.5 1.2h-2l1.5-3.3-1.4-3z' fill='%23fff'/></svg>") !important;
}

.tejcart-cart-drawer-trust-payments .tejcart-trust-payment[data-payment="paypal"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24'><rect width='38' height='24' rx='3' fill='%23fff'/><rect width='37' height='23' x='.5' y='.5' rx='2.5' fill='none' stroke='%23e1e3e5'/><path d='M14.5 7h4.1c2 0 3.2 1 2.9 2.9-.3 2.2-1.7 3.4-3.7 3.4h-1.3c-.2 0-.4.1-.4.4l-.4 2.6c0 .1-.1.2-.3.2h-2l1.1-9.5z' fill='%23003087'/><path d='M22.5 7h4.1c2 0 3.2 1 2.9 2.9-.3 2.2-1.7 3.4-3.7 3.4H24.5c-.2 0-.4.1-.4.4l-.4 2.6c0 .1-.1.2-.3.2h-2L22.5 7z' fill='%23009cde'/></svg>") !important;
}

.tejcart-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tejcart-space-3);
    padding: var(--tejcart-space-5) var(--tejcart-space-6);
    border-bottom: 1px solid var(--tejcart-border-subtle) !important;
    background: var(--tejcart-bg-surface);
    flex-shrink: 0;
}

.tejcart-cart-drawer-heading {
    display: flex;
    align-items: center;
    gap: var(--tejcart-space-2);
    min-width: 0;
}

.tejcart-cart-drawer-title {
    font-size: var(--tejcart-font-size-lg);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    letter-spacing: var(--tejcart-letter-spacing-tight);
    margin: 0;
    line-height: 1.2;
}

.tejcart-cart-drawer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    font-size: var(--tejcart-font-size-xs);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text-muted);
    background: var(--tejcart-bg-surface-alt);
    border: 1px solid var(--tejcart-border-subtle);
    border-radius: var(--tejcart-radius-pill);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.tejcart-cart-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tejcart-touch-target);
    height: var(--tejcart-touch-target);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--tejcart-radius-pill);
    color: var(--tejcart-text);
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        color var(--tejcart-duration-base) var(--tejcart-ease);
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    line-height: 1;
}

.tejcart-cart-drawer-close:hover,
.tejcart-cart-drawer-close:focus-visible {
    background: var(--tejcart-accent-soft);
    color: var(--tejcart-text);
}

.tejcart-cart-drawer-close:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tejcart-shadow-focus);
}

.tejcart-cart-drawer-shipping {
    flex-shrink: 0;
    padding: var(--tejcart-space-3) var(--tejcart-space-6);
    background: var(--tejcart-bg-surface-alt);
    border-bottom: 1px solid var(--tejcart-border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-2);
}

.tejcart-cart-drawer-shipping.is-unlocked {
    background: var(--tejcart-success-bg);
    color: var(--tejcart-success-fg);
}

.tejcart-cart-drawer-shipping-text {
    margin: 0;
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    display: flex;
    align-items: center;
    gap: var(--tejcart-space-2);
    line-height: 1.4;
}

.tejcart-cart-drawer-shipping.is-unlocked .tejcart-cart-drawer-shipping-text {
    color: var(--tejcart-success-fg);
    font-weight: var(--tejcart-font-weight-semibold);
}

.tejcart-cart-drawer-shipping-text strong {
    color: var(--tejcart-text);
    font-weight: var(--tejcart-font-weight-semibold);
}

.tejcart-cart-drawer-shipping-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tejcart-text-muted);
}

.tejcart-cart-drawer-shipping.is-unlocked .tejcart-cart-drawer-shipping-icon {
    color: var(--tejcart-success-accent);
}

.tejcart-cart-drawer-shipping-icon svg {
    width: 16px;
    height: 16px;
}

.tejcart-cart-drawer-shipping-bar {
    position: relative;
    height: 6px;
    border-radius: var(--tejcart-radius-pill);
    background: var(--tejcart-border-subtle);
    overflow: hidden;
}

.tejcart-cart-drawer-shipping-bar-fill {
    display: block;
    height: 100%;
    background: var(--tejcart-accent);
    border-radius: var(--tejcart-radius-pill);
    transition: width var(--tejcart-duration-slow) var(--tejcart-ease);
}

.tejcart-cart-drawer-shipping.is-unlocked .tejcart-cart-drawer-shipping-bar-fill {
    background: var(--tejcart-success-accent);
}

.tejcart-cart-drawer-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--tejcart-space-2) 0;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--tejcart-border-strong) transparent;
    overscroll-behavior: contain;
}

.tejcart-cart-drawer-items::-webkit-scrollbar {
    width: 6px;
}

.tejcart-cart-drawer-items::-webkit-scrollbar-thumb {
    background: var(--tejcart-border-strong);
    border-radius: var(--tejcart-radius-pill);
}

.tejcart-cart-drawer-items::-webkit-scrollbar-track {
    background: transparent;
}

.tejcart-cart-drawer-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: var(--tejcart-space-4);
    padding: var(--tejcart-space-4) var(--tejcart-space-6);
    border-bottom: 1px solid var(--tejcart-border-subtle);
    border-left: 2px solid transparent;
    transition:
        opacity var(--tejcart-duration-slow) var(--tejcart-ease),
        transform var(--tejcart-duration-slow) var(--tejcart-ease),
        background var(--tejcart-duration-base) var(--tejcart-ease),
        border-left-color var(--tejcart-duration-base) var(--tejcart-ease);
    position: relative;
}

.tejcart-cart-drawer-item:hover {
    border-left-color: var(--tejcart-accent);
    background: var(--tejcart-bg-surface-alt);
}

.tejcart-cart-drawer-item:last-child {
    border-bottom: none;
}

.tejcart-cart-drawer-item.is-removing {
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
}

.tejcart-cart-drawer-item.is-just-added {
    animation: tejcart-cart-drawer-item-pulse 2s var(--tejcart-ease) 1;
}

@keyframes tejcart-cart-drawer-item-pulse {
    0%   { background-color: var(--tejcart-accent-soft); }
    100% { background-color: transparent; }
}

.tejcart-cart-drawer-item.is-updating {
    opacity: 0.6;
    pointer-events: none;
}

.tejcart-cart-drawer-item-thumb {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: var(--tejcart-radius-md);
    overflow: hidden;
    background: var(--tejcart-bg-surface-alt);
    border: 1px solid var(--tejcart-border-subtle);
    flex-shrink: 0;
    text-decoration: none;
    transition: transform var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-cart-drawer-item-thumb:hover {
    transform: scale(1.02);
}

.tejcart-cart-drawer-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tejcart-cart-drawer-item-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tejcart-text-subtle);
}

.tejcart-cart-drawer-item-thumb-placeholder svg {
    width: 28px;
    height: 28px;
}

.tejcart-cart-drawer-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-1);
}

.tejcart-cart-drawer-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tejcart-space-3);
    min-width: 0;
}

.tejcart-cart-drawer-item-name {
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    line-height: var(--tejcart-line-height-snug);
    letter-spacing: var(--tejcart-letter-spacing-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
}

a.tejcart-cart-drawer-item-name:hover {
    color: var(--tejcart-text-link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tejcart-cart-drawer-item-variant {
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    line-height: var(--tejcart-line-height-snug);
}

.tejcart-cart-drawer-item-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: -2px;
}

.tejcart-cart-drawer-item-unit-label {
    color: var(--tejcart-text-subtle) !important;
    font-weight: var(--tejcart-font-weight-regular, 400);
}

.tejcart-cart-drawer-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--tejcart-text-subtle);
    border-radius: var(--tejcart-radius-pill);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;

    margin-top: -7px;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        color var(--tejcart-duration-base) var(--tejcart-ease);
    -webkit-appearance: none;
    appearance: none;
}

.tejcart-cart-drawer-item-remove:hover,
.tejcart-cart-drawer-item-remove:focus-visible {
    background: var(--tejcart-error-bg);
    color: var(--tejcart-error-accent);
}

.tejcart-cart-drawer-item-remove:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tejcart-shadow-focus-error);
}

.tejcart-cart-drawer-item-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--tejcart-space-3);
    margin-top: 0;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty.tejcart-qty-stepper {
    display: inline-flex !important;
    align-items: stretch !important;
    height: 40px !important;
    border: 1px solid var(--tejcart-border-strong) !important;
    border-radius: var(--tejcart-radius-pill) !important;
    background: var(--tejcart-bg-surface) !important;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    font-family: var(--tejcart-font-family);
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--tejcart-text) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: background var(--tejcart-duration-base) var(--tejcart-ease),
                color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-btn:hover {
    background: var(--tejcart-accent-soft) !important;
    color: var(--tejcart-text) !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-btn:active {
    background: var(--tejcart-border-subtle) !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-btn:focus-visible {
    outline: 2px solid transparent;
    outline-offset: -2px;
    background: var(--tejcart-accent-soft) !important;
    box-shadow: inset 0 0 0 2px var(--tejcart-border-focus) !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-btn[disabled],
.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-btn:disabled {
    color: var(--tejcart-text-disabled) !important;
    cursor: not-allowed;
    background: transparent !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-input {
    flex: 0 0 auto !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 64px !important;
    height: 100% !important;
    padding: 0 2px !important;
    margin: 0 !important;
    border: none !important;
    border-left: 1px solid var(--tejcart-border-subtle) !important;
    border-right: 1px solid var(--tejcart-border-subtle) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--tejcart-text) !important;
    font-family: var(--tejcart-font-numeric) !important;
    font-size: var(--tejcart-font-size-base) !important;
    font-weight: var(--tejcart-font-weight-semibold) !important;
    font-variant-numeric: tabular-nums;
    text-align: center !important;
    box-shadow: none !important;
    line-height: 1 !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: textfield !important;
    appearance: textfield !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-input::-webkit-outer-spin-button,
.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.tejcart-cart-drawer .tejcart-cart-drawer-item-qty .tejcart-qty-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--tejcart-border-focus) !important;
}

.tejcart-cart-drawer-item-price {
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    letter-spacing: var(--tejcart-letter-spacing-tight);
    flex: 0 0 auto;
    line-height: var(--tejcart-line-height-snug);
    align-self: flex-start;
    padding-top: 1px;
}

@media (max-width: 359px) {
    .tejcart-cart-drawer-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: var(--tejcart-space-3);
        padding: var(--tejcart-space-3) var(--tejcart-space-4);
    }
    .tejcart-cart-drawer-item-thumb {
        width: 68px;
        height: 68px;
    }
    .tejcart-cart-drawer-header,
    .tejcart-cart-drawer-shipping,
    .tejcart-cart-drawer-footer {
        padding-left: var(--tejcart-space-4);
        padding-right: var(--tejcart-space-4);
    }
}

.tejcart-cart-drawer-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--tejcart-space-9) var(--tejcart-space-6);
    gap: var(--tejcart-space-4);
}

.tejcart-cart-drawer-empty-illustration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--tejcart-bg-surface-alt);
    color: var(--tejcart-text-subtle);
    margin-bottom: var(--tejcart-space-2);
}

.tejcart-cart-drawer-empty-illustration svg {
    width: 48px;
    height: 48px;
}

.tejcart-cart-drawer-empty-title {
    font-size: var(--tejcart-font-size-lg);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    margin: 0;
    letter-spacing: var(--tejcart-letter-spacing-tight);
}

.tejcart-cart-drawer-empty-desc {
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    margin: 0;
    max-width: 32ch;
    line-height: var(--tejcart-line-height-snug);
}

.tejcart-cart-drawer-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--tejcart-space-2);
    margin-top: var(--tejcart-space-3);
    padding: 0 var(--tejcart-space-6);
    height: var(--tejcart-button-height);
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    border: 1px solid var(--tejcart-accent);
    border-radius: var(--tejcart-radius-md);
    text-decoration: none;
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-semibold);
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        transform var(--tejcart-duration-fast) var(--tejcart-ease);
}

.tejcart-cart-drawer-empty-cta:hover,
.tejcart-cart-drawer-empty-cta:focus-visible {
    background: var(--tejcart-accent-hover);
    color: var(--tejcart-accent-foreground);
    text-decoration: none;
}

.tejcart-cart-drawer-empty-cta:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tejcart-shadow-focus);
}

.tejcart-cart-drawer-empty-cta:active {
    transform: translateY(1px);
}

.tejcart-cart-drawer-empty-cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-cart-drawer-empty-cta:hover svg {
    transform: translateX(3px);
}

.tejcart-cart-drawer-footer {
    flex-shrink: 0;
    padding: var(--tejcart-space-4) var(--tejcart-space-6) var(--tejcart-space-5);
    background: var(--tejcart-bg-surface-alt);
    border-top: 1px solid var(--tejcart-border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-3);
    box-shadow: var(--tejcart-shadow-elevated-up);
}

.tejcart-cart-drawer-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tejcart-cart-drawer-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--tejcart-space-3);
}

.tejcart-cart-drawer-summary-row[hidden] {
    display: none;
}

.tejcart-cart-drawer-summary-label {
    color: var(--tejcart-text);
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-semibold);
}

.tejcart-cart-drawer-summary-row--line .tejcart-cart-drawer-summary-label,
.tejcart-cart-drawer-summary-row--line .tejcart-cart-drawer-summary-value {
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-medium);
    color: var(--tejcart-text-muted);
}

.tejcart-cart-drawer-summary-row--discount .tejcart-discount-value {
    color: var(--tejcart-success-accent);
}

.tejcart-cart-drawer-summary-row--total {
    margin-top: 2px;
    padding-top: var(--tejcart-space-2);
    border-top: 1px solid var(--tejcart-border-subtle, rgba(0, 0, 0, 0.08));
}

.tejcart-cart-drawer-summary-value,
.tejcart-cart-drawer-summary-row .tejcart-total-value {
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--tejcart-text);
    letter-spacing: var(--tejcart-letter-spacing-tight);
}

.tejcart-cart-drawer-summary-row--total .tejcart-cart-drawer-summary-value,
.tejcart-cart-drawer-summary-row--total .tejcart-total-value {
    font-size: 20px;
    font-weight: var(--tejcart-font-weight-semibold);
    letter-spacing: -0.01em;
}

.tejcart-cart-drawer-summary-row--total .tejcart-cart-drawer-summary-label {
    font-size: var(--tejcart-font-size-md);
    letter-spacing: 0.01em;
}

.tejcart-cart-drawer-summary-note {
    margin: 0;
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    line-height: var(--tejcart-line-height-snug);
}

.tejcart-cart-drawer-checkout {
    width: 100%;
    min-height: var(--tejcart-button-height-lg);
    font-size: var(--tejcart-font-size-md);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tejcart-space-3);
    padding: 0 var(--tejcart-space-5);
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    border: 1px solid var(--tejcart-accent);
    border-radius: var(--tejcart-radius-pill);
    text-decoration: none;
    font-weight: var(--tejcart-font-weight-semibold);
    letter-spacing: 0.02em;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        transform var(--tejcart-duration-fast) var(--tejcart-ease),
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease);
    box-shadow: var(--tejcart-shadow-subtle);
}

.tejcart-cart-drawer-checkout > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: var(--tejcart-space-2);
}

.tejcart-cart-drawer-checkout > span:first-child::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M6 8V6a4 4 0 0 1 8 0v2M4 8h12v9H4z' stroke='black' stroke-width='1.5' stroke-linejoin='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M6 8V6a4 4 0 0 1 8 0v2M4 8h12v9H4z' stroke='black' stroke-width='1.5' stroke-linejoin='round'/></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0.9;
}

.tejcart-cart-drawer-checkout-total {
    font-variant-numeric: tabular-nums;
    opacity: 0.95;
}

.tejcart-cart-drawer-checkout:hover,
.tejcart-cart-drawer-checkout:focus-visible {
    background: var(--tejcart-accent-hover);
    color: var(--tejcart-accent-foreground);
    box-shadow: var(--tejcart-shadow-prominent);
    transform: translateY(-1px);
    text-decoration: none;
}

.tejcart-cart-drawer-checkout:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tejcart-shadow-focus);
}

.tejcart-cart-drawer-checkout:active {
    transform: translateY(1px);
    background: var(--tejcart-accent-active);
}

.tejcart-cart-drawer-express-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-2);
    position: relative;
}

.tejcart-cart-drawer-express-label {
    position: relative;
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--tejcart-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--tejcart-font-weight-medium);
    padding: var(--tejcart-space-1) 0;
}

.tejcart-cart-drawer-express-label::before,
.tejcart-cart-drawer-express-label::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: var(--tejcart-border-subtle);
}

.tejcart-cart-drawer-express-label::before { left: 0; }
.tejcart-cart-drawer-express-label::after  { right: 0; }

.tejcart-cart-drawer-express {
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-2);
    min-height: 45px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.tejcart-cart-drawer-express > div[id^="tejcart-drawer-express-"] {
    display: block;
    width: 100%;
    min-height: 45px;
    box-sizing: border-box;
}

.tejcart-cart-drawer-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--tejcart-space-3);
    padding-top: var(--tejcart-space-3);
    border-top: 1px solid var(--tejcart-border-subtle);
}

.tejcart-cart-drawer-trust-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tejcart-space-5);
    flex-wrap: wrap;
}

.tejcart-cart-drawer-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    font-weight: var(--tejcart-font-weight-medium);
}

.tejcart-cart-drawer-trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--tejcart-success-accent);
}

.tejcart-cart-drawer-trust-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tejcart-cart-drawer-trust-payments .tejcart-trust-payment {
    display: inline-block;
    width: 32px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    background-color: var(--tejcart-bg-surface);
    box-shadow: inset 0 0 0 1px var(--tejcart-border-subtle);
}

.tejcart-cart-drawer-view-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 6px;
    padding: 4px 0;
    color: var(--tejcart-text-muted);
    font-size: var(--tejcart-font-size-xs);
    font-weight: var(--tejcart-font-weight-medium);
    text-decoration: underline dotted;
    text-decoration-color: var(--tejcart-border-strong);
    text-underline-offset: 3px;
    text-align: center;
    transition:
        color var(--tejcart-duration-base) var(--tejcart-ease),
        text-decoration-color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-cart-drawer-view-cart:hover,
.tejcart-cart-drawer-view-cart:focus-visible {
    color: var(--tejcart-text);
    text-decoration-color: var(--tejcart-text);
}

.tejcart-cart-drawer-view-cart-arrow {
    width: 12px;
    height: 12px;
    transition: transform var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-cart-drawer-view-cart:hover .tejcart-cart-drawer-view-cart-arrow,
.tejcart-cart-drawer-view-cart:focus-visible .tejcart-cart-drawer-view-cart-arrow {
    transform: translateX(2px);
}

.tejcart-cart-drawer-divider {
    margin: var(--tejcart-space-2) 0 0;
}

@media (max-width: 480px) {
    .tejcart-cart-drawer-empty {
        padding: var(--tejcart-space-7) var(--tejcart-space-5);
    }
    .tejcart-cart-drawer-empty-illustration {
        width: 80px;
        height: 80px;
    }
    .tejcart-cart-drawer-empty-illustration svg {
        width: 40px;
        height: 40px;
    }
    .tejcart-cart-drawer-checkout {
        font-size: var(--tejcart-font-size-sm);
    }
}

/* Mobile-only refinements: tighter spacing, clearer separation between line price
   and remove button, and a more prominent "View full cart" link. Tap targets are
   preserved by the (hover: none) and (pointer: coarse) rules below. */
@media (max-width: 599px) {
    .tejcart-cart-drawer-item {
        padding: var(--tejcart-space-3) var(--tejcart-space-5);
        gap: var(--tejcart-space-3);
    }

    .tejcart-cart-drawer-item-head {
        gap: var(--tejcart-space-2);
    }

    .tejcart-cart-drawer-item-price {
        margin-right: var(--tejcart-space-2);
    }

    .tejcart-cart-drawer-item-remove {
        margin-top: -4px;
        margin-right: -6px;
    }

    .tejcart-cart-drawer-footer {
        padding: var(--tejcart-space-4) var(--tejcart-space-5);
        gap: var(--tejcart-space-3);
    }

    .tejcart-cart-drawer-summary-note {
        font-size: 11px;
    }

    .tejcart-cart-drawer-express-label {
        font-size: 10px;
        padding: 0;
    }

    .tejcart-cart-drawer-trust {
        gap: var(--tejcart-space-2);
        padding-top: var(--tejcart-space-2);
    }

    .tejcart-cart-drawer-trust-lines {
        gap: var(--tejcart-space-4);
    }

    /* Trust signals come last so the "View full cart" link sits above them and
       isn't buried at the absolute bottom of the footer. */
    .tejcart-cart-drawer-footer .tejcart-cart-drawer-trust {
        order: 1;
    }

    .tejcart-cart-drawer-footer .tejcart-cart-drawer-view-cart {
        padding: 8px 12px;
        font-size: var(--tejcart-font-size-sm);
        font-weight: var(--tejcart-font-weight-semibold);
        color: var(--tejcart-text);
        text-decoration: underline solid;
        text-decoration-color: var(--tejcart-border-strong);
        text-underline-offset: 4px;
    }

    .tejcart-cart-drawer-footer .tejcart-cart-drawer-view-cart-arrow {
        width: 14px;
        height: 14px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .tejcart-cart-drawer .tejcart-qty-btn { min-height: 44px; min-width: 40px; }
    .tejcart-cart-drawer-item-remove { min-height: 36px; }
    .tejcart-cart-drawer-checkout,
    .tejcart-cart-drawer-empty-cta { min-height: 48px; }
}
