:root {
    --wtp-floating-accent: #f04422;
    --wtp-floating-accent-dark: #d93615;
    --wtp-floating-blue: #0b57ff;
    --wtp-floating-panel-width: 420px;
}

.wtp-floating-product-list {
    font-family: inherit;
}

.wtp-floating-product-trigger {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 156px;
    padding: 14px 10px;
    background: var(--wtp-floating-accent);
    color: #fff;
    border: 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 14px 34px rgba(240, 68, 34, 0.32);
    cursor: pointer;
    transform: translateY(-50%);
    transition: left 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wtp-floating-product-trigger:hover,
.wtp-floating-product-trigger:focus {
    background: var(--wtp-floating-accent-dark);
    color: #fff;
    outline: none;
    box-shadow: 0 18px 42px rgba(240, 68, 34, 0.42);
}

.wtp-floating-trigger-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}

.wtp-floating-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    line-height: 1;
    transition: transform 0.32s ease;
}

.wtp-floating-product-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99997;
    width: var(--wtp-floating-panel-width);
    max-width: calc(100vw - 58px);
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 24px 0 70px rgba(15, 23, 42, 0.20);
    transform: translateX(-105%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.wtp-floating-product-list.is-open .wtp-floating-product-panel {
    transform: translateX(0);
}

.wtp-floating-product-list.is-open .wtp-floating-product-trigger {
    left: var(--wtp-floating-panel-width);
}

.wtp-floating-product-list.is-open .wtp-floating-trigger-icon {
    transform: rotate(180deg);
}

.wtp-floating-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 22px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
    border-bottom: 1px solid #eef1f6;
}

.wtp-floating-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--wtp-floating-blue);
    text-transform: uppercase;
}

.wtp-floating-panel-header h3 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 850;
}

.wtp-floating-close {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wtp-floating-close:hover,
.wtp-floating-close:focus {
    background: #111827;
    color: #fff;
    transform: rotate(90deg);
    outline: none;
}

.wtp-floating-panel-body {
    height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 18px 18px 26px;
    background: #fff;
    scroll-behavior: smooth;
}

.wtp-floating-panel-body::-webkit-scrollbar {
    width: 6px;
}

.wtp-floating-panel-body::-webkit-scrollbar-thumb {
    background: #d8dee9;
    border-radius: 999px;
}

.wtp-floating-category {
    margin-bottom: 14px;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.wtp-floating-category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border: 0;
    background: #fbfcff;
    color: #111827;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}

.wtp-floating-category-toggle::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.wtp-floating-category.is-open .wtp-floating-category-toggle::after {
    transform: rotate(225deg);
}

.wtp-floating-category-toggle small {
    margin-left: auto;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(11, 87, 255, 0.09);
    color: var(--wtp-floating-blue);
    font-size: 12px;
    font-weight: 800;
}

.wtp-floating-category-content {
    display: none;
    padding: 10px;
}

.wtp-floating-category.is-open .wtp-floating-category-content {
    display: block;
    animation: wtpFloatingFadeUp 0.28s ease both;
}

.wtp-floating-product-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    padding: 11px;
    border-radius: 13px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wtp-floating-product-item + .wtp-floating-product-item {
    margin-top: 8px;
}

.wtp-floating-product-item:hover {
    background: #f7f9ff;
    transform: translateX(3px);
    box-shadow: inset 3px 0 0 var(--wtp-floating-blue);
}

.wtp-floating-product-thumb {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7fb;
    border: 1px solid #edf0f5;
}

.wtp-floating-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wtp-floating-product-info {
    min-width: 0;
}

.wtp-floating-product-title {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    text-decoration: none;
}

.wtp-floating-product-title:hover,
.wtp-floating-product-title:focus {
    color: var(--wtp-floating-blue);
    outline: none;
}

.wtp-floating-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.2;
    color: #6b7280;
}

.wtp-floating-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.wtp-floating-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.wtp-floating-product-item.is-out-of-stock .wtp-floating-stock::before {
    background: #9ca3af;
}

.wtp-floating-price {
    color: #111827;
    font-weight: 800;
}

.wtp-floating-price del,
.wtp-floating-price ins {
    font-size: inherit;
}

.wtp-floating-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    min-height: 31px;
    border-radius: 999px;
    background: var(--wtp-floating-blue);
    color: #fff !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(11, 87, 255, 0.20);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wtp-floating-learn-more:hover,
.wtp-floating-learn-more:focus {
    background: #111827;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
    outline: none;
}

.wtp-floating-product-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99996;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.wtp-floating-product-list.is-open .wtp-floating-product-backdrop {
    opacity: 1;
    visibility: visible;
}

body.wtp-floating-product-open {
    overflow: hidden;
}

@keyframes wtpFloatingFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 782px) {
    .wtp-floating-product-backdrop {
        background: rgba(15, 23, 42, 0.18);
    }
}

@media (max-width: 520px) {
    :root {
        --wtp-floating-panel-width: calc(100vw - 54px);
    }

    .wtp-floating-product-trigger {
        top: 56%;
        min-height: 138px;
        padding: 12px 9px;
        border-radius: 0 10px 10px 0;
    }

    .wtp-floating-trigger-text {
        font-size: 14px;
    }

    .wtp-floating-product-list.is-open .wtp-floating-product-trigger {
        left: calc(100vw - 54px);
    }

    .wtp-floating-panel-header {
        padding: 21px 18px 16px;
    }

    .wtp-floating-panel-header h3 {
        font-size: 22px;
    }

    .wtp-floating-panel-body {
        padding: 14px 13px 24px;
    }
}
