
.swipe-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    overflow: hidden;
}

.swipe-viewer.hidden {
    display: none;
}

.swipe-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2100;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* Vertical track: one full-screen slide per product, translated on the Y axis */
.swipe-track {
    position: absolute;
    inset: 0;
    transition: transform 0.4s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.swipe-track.no-transition {
    transition: none;
}

.swipe-slide {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swipe-photos {
    position: absolute;
    inset: 0;
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.swipe-photos.no-transition {
    transition: none;
}

.swipe-photo {
    flex: 0 0 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #111;
}

.swipe-dots {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.swipe-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background .2s ease, width .2s ease;
}

.swipe-dots span.active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

.swipe-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.swipe-info {
    position: absolute;
    left: 0;
    right: 84px;
    bottom: 0;
    padding: 20px 20px 30px;
    color: #fff;
    z-index: 5;
}

.swipe-premium-badge {
    display: inline-block;
    background: #FFD700;
    color: #222;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.swipe-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.swipe-price {
    font-size: 26px;
    font-weight: 700;
    color: #7CFC7C;
    margin-bottom: 8px;
}

.swipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    margin-bottom: 10px;
}

.swipe-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.swipe-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,.9);
    max-height: 4.5em;
    overflow: hidden;
    margin-bottom: 14px;
}

.swipe-cta-row {
    display: flex;
    gap: 10px;
}

.swipe-buy-btn,
.swipe-chat-btn {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.swipe-buy-btn {
    background: #006400;
    color: #fff;
}

.swipe-chat-btn {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    backdrop-filter: blur(4px);
}

.swipe-actions {
    position: absolute;
    right: 14px;
    bottom: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 5;
}

.swipe-action-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform .15s ease, background .2s ease;
}

.swipe-action-btn span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.swipe-action-btn.liked {
    background: #e53935;
}

.swipe-action-btn.saved {
    background: #006400;
}

.swipe-action-btn:active {
    transform: scale(0.9);
}

.swipe-action-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.swipe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.swipe-toast {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.swipe-toast.show {
    opacity: 1;
}

@media (min-width: 700px) {
    .swipe-slide {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .swipe-viewer {
        background: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swipe-track,
    .swipe-photos {
        transition: none !important;
    }
}
