/* Slide Cart Overlay */
#pyt-slide-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#pyt-slide-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide Cart Panel */
#pyt-slide-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#pyt-slide-cart.open {
    right: 0;
}

/* Header */
.pyt-slide-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.pyt-slide-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.pyt-slide-cart-close {
    background: none;
    border: 1px solid #ccc;
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.pyt-slide-cart-close:hover {
    background: #f0f0f0;
}

/* Added Product */
.pyt-slide-cart-product {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.pyt-added-product {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pyt-added-product:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pyt-cart-empty {
    text-align: center;
    color: #666;
    padding: 20px 0;
}

.pyt-added-product-image {
    flex-shrink: 0;
    width: 100px;
}

.pyt-added-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pyt-added-product-info {
    flex: 1;
}

.pyt-product-name {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px;
    color: #000;
}

.pyt-product-price {
    font-size: 14px;
    margin: 0 0 8px;
    color: #333;
}

.pyt-attr {
    font-size: 13px;
    color: #555;
    margin: 2px 0;
}

/* Action Buttons */
.pyt-slide-cart-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.pyt-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.pyt-btn-primary {
    background: #000;
    color: #fff;
}

.pyt-btn-primary:hover {
    background: #333;
    color: #fff;
}

.pyt-btn-secondary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.pyt-btn-secondary:hover {
    background: #f5f5f5;
}

.pyt-btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    background: #000;
    color: #fff;
}

.pyt-btn-sm:hover {
    background: #333;
    color: #fff;
}

/* Related Products */
.pyt-slide-cart-related {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    flex: 1;
}

.pyt-slide-cart-related h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #000;
}

.pyt-related-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pyt-related-item {
    text-align: center;
}

.pyt-related-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 6px;
}

.pyt-related-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pyt-related-name:hover {
    text-decoration: underline;
}

.pyt-related-price {
    font-size: 12px;
    color: #333;
    margin: 0 0 8px;
}

/* Loading state */
.pyt-slide-cart-product .pyt-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Mobile */
@media (max-width: 480px) {
    #pyt-slide-cart {
        width: 100%;
        right: -100%;
    }

    .pyt-related-products {
        grid-template-columns: repeat(2, 1fr);
    }
}
