:root {
    --twm-pfc-black: #111111;
    --twm-pfc-white: #ffffff;
    --twm-pfc-gold: #D0A743;
    --twm-pfc-soft: #f8f4ea;
    --twm-pfc-border: rgba(208, 167, 67, 0.28);
    --twm-pfc-shadow: 0 30px 90px rgba(17, 17, 17, 0.34);
}

.twm-pfc-float,
.twm-pfc-drawer,
.twm-pfc-drawer * {
    box-sizing: border-box;
}

.twm-pfc-float {
    position: fixed;
    right: 24px;
    bottom: 28px;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(208, 167, 67, 0.7);
    border-radius: 999px;
    background: radial-gradient(circle at 28% 20%, #3a321f 0%, #111111 58%, #000000 100%);
    color: var(--twm-pfc-white);
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255,255,255,0.08);
    transform-style: preserve-3d;
    transition: transform 380ms cubic-bezier(.2,.8,.2,1), box-shadow 380ms ease;
    isolation: isolate;
}

.twm-pfc-float:hover {
    transform: translateY(-8px) rotateX(12deg) rotateY(-12deg) scale(1.06);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.46), 0 0 38px rgba(208, 167, 67, 0.28);
}

.twm-pfc-float__glow {
    position: absolute;
    inset: -9px;
    border-radius: inherit;
    background: conic-gradient(from 180deg, transparent, rgba(208,167,67,.7), transparent 55%);
    filter: blur(10px);
    opacity: .62;
    z-index: -1;
    animation: twmPfcSpin 5.5s linear infinite;
}

.twm-pfc-float__icon {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--twm-pfc-gold);
}

.twm-pfc-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--twm-pfc-gold);
    color: var(--twm-pfc-black);
    border: 2px solid var(--twm-pfc-black);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
}

.twm-pfc-overlay {
    position: fixed;
    inset: 0;
    z-index: 999997;
    background: rgba(17, 17, 17, 0.56);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(7px);
    transition: opacity 350ms ease;
}

body.twm-pfc-open .twm-pfc-overlay {
    opacity: 1;
    pointer-events: auto;
}

.twm-pfc-drawer {
    position: fixed;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: 420px;
    max-width: calc(100vw - 36px);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--twm-pfc-border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,244,234,.98));
    box-shadow: var(--twm-pfc-shadow);
    opacity: 0;
    transform: perspective(1200px) translateX(118%) rotateY(-22deg) scale(.92);
    transform-origin: right center;
    transition: opacity 460ms ease, transform 560ms cubic-bezier(.16,1,.3,1);
}

body.twm-pfc-open .twm-pfc-drawer {
    opacity: 1;
    transform: perspective(1200px) translateX(0) rotateY(0) scale(1);
}

.twm-pfc-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 26px;
    background: linear-gradient(135deg, #111111 0%, #211b10 54%, #D0A743 160%);
    color: var(--twm-pfc-white);
}

.twm-pfc-top:after {
    content: "";
    position: absolute;
    inset: auto 24px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(208,167,67,.86), transparent);
}

.twm-pfc-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--twm-pfc-gold);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.twm-pfc-top h3 {
    margin: 0;
    color: rgb(255, 255, 255);
    font-family: Petrona, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(36px, 5vw, 49px);
    line-height: 1.1;
}

.twm-pfc-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(208,167,67,.5);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--twm-pfc-white);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: transform 250ms ease, background 250ms ease;
}

.twm-pfc-close:hover {
    transform: rotate(90deg) scale(1.04);
    background: rgba(208,167,67,.22);
}

.twm-pfc-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.twm-pfc-items {
    display: grid;
    gap: 14px;
}

.twm-pfc-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 15px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(17,17,17,.06);
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 14px 34px rgba(17,17,17,.08);
    animation: twmPfcPop 420ms ease both;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.twm-pfc-item:hover {
    transform: translateY(-3px) rotateX(2deg);
    border-color: rgba(208,167,67,.42);
    box-shadow: 0 20px 44px rgba(17,17,17,.12);
}

.twm-pfc-item__image img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(208,167,67,.25);
}

.twm-pfc-item__title {
    display: block;
    margin-bottom: 7px;
    color: rgb(17, 17, 17);
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 20px;
    line-height: 28px;
    text-decoration: none;
}

.twm-pfc-item__meta,
.twm-pfc-item__price {
    color: rgba(17,17,17,.68);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.twm-pfc-item__price {
    color: var(--twm-pfc-gold);
    font-weight: 900;
}

.twm-pfc-empty {
    min-height: 330px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 34px 18px;
}

.twm-pfc-empty__icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--twm-pfc-black);
    color: var(--twm-pfc-gold);
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(17,17,17,.18);
}

.twm-pfc-empty h4 {
    margin: 0 0 8px;
    color: var(--twm-pfc-black);
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 900;
}

.twm-pfc-empty p {
    max-width: 270px;
    margin: 0 auto;
    color: rgba(17,17,17,.65);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

.twm-pfc-footer {
    padding: 18px;
    background: rgba(255,255,255,.92);
    border-top: 1px solid rgba(208,167,67,.22);
}

.twm-pfc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--twm-pfc-soft);
    color: var(--twm-pfc-black);
    font-family: "DM Sans", sans-serif;
}

.twm-pfc-subtotal span {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.twm-pfc-subtotal strong {
    font-size: 20px;
    font-weight: 900;
}

.twm-pfc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.twm-pfc-btn {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 16px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.twm-pfc-btn:hover {
    transform: translateY(-3px);
}

.twm-pfc-btn--ghost {
    background: #111111;
    color: #ffffff !important;
}

.twm-pfc-btn--gold {
    background: linear-gradient(135deg, #D0A743, #f1d27b);
    color: #111111 !important;
    box-shadow: 0 14px 30px rgba(208,167,67,.32);
}

@keyframes twmPfcSpin {
    to { transform: rotate(360deg); }
}

@keyframes twmPfcPop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
    .twm-pfc-drawer {
        top: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: none;
        border-radius: 24px;
    }

    .twm-pfc-float {
        right: 16px;
        bottom: 18px;
        width: 66px;
        height: 66px;
    }

    .twm-pfc-actions {
        grid-template-columns: 1fr;
    }
}
