@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');
/**
 * Cart Drawer
 */
.tnk-drawer {
    --tnk-red: #E31E24;
    --tnk-green: #00b67a;
    --tnk-black: #131313;
    --tnk-cream: #f7f5f2;
    --tnk-line: #ededed;
    --tnk-line-soft: #f4f4f4;
    --tnk-muted: #737373;
    --tnk-faint: #999;
    --tnk-ease: cubic-bezier(0.4, 0, 0.2, 1);

    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.tnk-drawer *, .tnk-drawer *::before, .tnk-drawer *::after { box-sizing: border-box; }
.tnk-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.tnk-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s var(--tnk-ease);
}
.tnk-drawer.is-open .tnk-drawer__backdrop { opacity: 1; }

.tnk-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 100%;
    background: #fff;
    color: var(--tnk-black);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s var(--tnk-ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
.tnk-drawer.is-open .tnk-drawer__panel { transform: translateX(0); }

/* HEADER */
.tnk-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--tnk-line);
    flex-shrink: 0;
}
.tnk-drawer__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tnk-black);
}
.tnk-drawer__title .tnk-cart-count {
    background: var(--tnk-black);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    min-width: 22px;
    text-align: center;
    display: inline-block;
}
.tnk-drawer__close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tnk-black);
    padding: 0;
    transition: background-color 0.2s;
}
.tnk-drawer__close:hover { background: var(--tnk-line); }
.tnk-drawer__close svg { width: 18px; height: 18px; }

/* PROGRESS */
.tnk-drawer__contents { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.tnk-drawer__progress {
    padding: 14px 24px;
    background: var(--tnk-cream);
    border-bottom: 1px solid var(--tnk-line);
    flex-shrink: 0;
}
.tnk-drawer__progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--tnk-black);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tnk-drawer__progress-text strong { color: var(--tnk-red); font-weight: 800; }
.tnk-drawer__progress-text .amount,
.tnk-drawer__progress-text .woocommerce-Price-amount { color: var(--tnk-red); font-weight: 800; }
.tnk-drawer__progress.is-unlocked .tnk-drawer__progress-text strong { color: var(--tnk-green); }
.tnk-drawer__progress-bar {
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.tnk-drawer__progress-fill {
    height: 100%;
    background: var(--tnk-red);
    border-radius: 99px;
    transition: width 0.5s var(--tnk-ease), background-color 0.3s;
}
.tnk-drawer__progress.is-unlocked .tnk-drawer__progress-fill {
    background: var(--tnk-green);
}
.tnk-drawer__progress-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tnk-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/9px no-repeat;
    flex-shrink: 0;
}

/* BODY */
.tnk-drawer__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ITEMS */
.tnk-drawer__items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tnk-drawer__item {
    display: flex;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tnk-line-soft);
}
.tnk-drawer__item:last-child { border-bottom: none; }

.tnk-drawer__item-thumb-link { flex-shrink: 0; display: block; }
.tnk-drawer__item-thumb {
    width: 80px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--tnk-cream);
    flex-shrink: 0;
    position: relative;
}
.tnk-drawer__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tnk-drawer__item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tnk-drawer__item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tnk-black);
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.tnk-drawer__item-name a {
    color: inherit;
    text-decoration: none;
}
.tnk-drawer__item-name a:hover { color: var(--tnk-red); }
.tnk-drawer__item-variant {
    font-size: 11px;
    color: var(--tnk-muted);
    margin: 0 0 8px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.tnk-drawer__item-variant dl,
.tnk-drawer__item-variant p { margin: 0; }
.tnk-drawer__item-variant dt {
    display: inline;
    font-weight: 600;
}
.tnk-drawer__item-variant dt::after { content: ': '; }
.tnk-drawer__item-variant dd { display: inline; margin: 0; }
.tnk-drawer__item-variant em {
    font-style: normal;
    color: var(--tnk-red);
    font-weight: 700;
}

.tnk-drawer__item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    gap: 12px;
}

.tnk-drawer__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tnk-line);
    border-radius: 99px;
    overflow: hidden;
    height: 28px;
}
.tnk-drawer__qty-btn {
    background: transparent;
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--tnk-black);
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s;
}
.tnk-drawer__qty-btn:hover { background: var(--tnk-line); }
.tnk-drawer__qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tnk-drawer__qty-num {
    min-width: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--tnk-black);
}
.tnk-drawer__qty.is-loading { opacity: 0.5; pointer-events: none; }

.tnk-drawer__item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--tnk-black);
    font-variant-numeric: tabular-nums;
}
.tnk-drawer__item-price .woocommerce-Price-amount { font-weight: 700; }

.tnk-drawer__item-remove {
    background: transparent;
    border: none;
    color: var(--tnk-faint);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    text-align: left;
    align-self: flex-start;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.tnk-drawer__item-remove:hover { color: var(--tnk-red); }

/* EMPTY */
.tnk-drawer__empty {
    padding: 80px 32px;
    text-align: center;
}
.tnk-drawer__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--tnk-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tnk-muted);
}
.tnk-drawer__empty-icon svg { width: 24px; height: 24px; }
.tnk-drawer__empty-h {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    color: var(--tnk-black);
}
.tnk-drawer__empty-sub {
    font-size: 13px;
    color: var(--tnk-muted);
    margin: 0;
    line-height: 1.5;
}

/* RECOMMENDATIONS */
.tnk-drawer__recs {
    border-top: 1px solid var(--tnk-line);
    padding: 20px 24px;
    background: #fcfcfc;
}
.tnk-drawer__recs-h {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tnk-muted);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tnk-drawer__recs-h::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tnk-red);
}
.tnk-drawer__recs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.tnk-drawer__rec {
    text-decoration: none;
    color: inherit;
    display: block;
}
.tnk-drawer__rec-thumb {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    border-radius: 4px;
    background: var(--tnk-cream);
    margin-bottom: 6px;
    overflow: hidden;
    transition: transform 0.2s var(--tnk-ease);
}
.tnk-drawer__rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tnk-drawer__rec:hover .tnk-drawer__rec-thumb { transform: translateY(-2px); }
.tnk-drawer__rec-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--tnk-black);
    line-height: 1.3;
    margin: 0 0 2px;
}
.tnk-drawer__rec-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--tnk-muted);
    font-variant-numeric: tabular-nums;
}

/* FOOTER */
.tnk-drawer__foot {
    padding: 20px 24px 24px;
    background: #fff;
    border-top: 1px solid var(--tnk-line);
    flex-shrink: 0;
}
.tnk-drawer__foot-totals {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.tnk-drawer__foot-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tnk-black);
}
.tnk-drawer__foot-total {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--tnk-black);
    font-variant-numeric: tabular-nums;
}
.tnk-drawer__foot-meta {
    font-size: 11px;
    color: var(--tnk-muted);
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}
.tnk-drawer__foot-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tnk-drawer__foot-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 99px;
    text-decoration: none !important;
    border: 1.5px solid var(--tnk-black);
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s, gap 0.2s, border-color 0.2s;
}
.tnk-drawer__foot-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.tnk-drawer__foot-cta--primary {
    background: var(--tnk-black);
    color: #fff;
}
.tnk-drawer__foot-cta--primary:hover {
    background: var(--tnk-red);
    border-color: var(--tnk-red);
    color: #fff;
    gap: 12px;
}
.tnk-drawer__foot-cta--primary:hover svg { transform: translateX(2px); }
.tnk-drawer__foot-cta--ghost {
    background: transparent;
    color: var(--tnk-black);
}
.tnk-drawer__foot-cta--ghost:hover {
    background: var(--tnk-black);
    color: #fff;
}
.tnk-drawer__foot-continue {
    text-align: center;
    margin-top: 12px;
}
.tnk-drawer__foot-continue a {
    font-size: 11px;
    font-weight: 600;
    color: var(--tnk-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.tnk-drawer__foot-continue a:hover {
    color: var(--tnk-black);
    border-bottom-color: var(--tnk-black);
}

/* Body lock when drawer open */
body.tnk-drawer-open {
    overflow: hidden;
}

/* Header cart count badge (used outside the drawer in header) */
.tnk-cart-count {
    font-variant-numeric: tabular-nums;
}

/* Mobile */
@media (max-width: 480px) {
    .tnk-drawer__panel { width: 100%; }
    .tnk-drawer__head { padding: 18px 18px 14px; }
    .tnk-drawer__progress { padding: 12px 18px; }
    .tnk-drawer__item { padding: 16px 18px; }
    .tnk-drawer__foot { padding: 16px 18px 20px; }
    .tnk-drawer__recs { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .tnk-drawer__panel, .tnk-drawer__backdrop, .tnk-drawer__progress-fill,
    .tnk-drawer__rec-thumb, .tnk-drawer__foot-cta, .tnk-drawer__foot-cta svg {
        transition: none !important;
    }
}

/* === Manrope font override (matches RK) === */
.tnk-drawer,
.tnk-drawer * {
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
