/* Floating cart button */

.ts-floating-cart {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    opacity: 1;
   /* Floating cart button - temporarily disabled  ***visible***   */
	visibility: none !important;
}

.ts-floating-cart:hover {
    background: #c82333;
    color: #fff;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.55);
    transform: translateY(-2px);
}

.ts-floating-cart svg {
    width: 26px;
    height: 26px;
}

.ts-floating-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #fff;
    color: #dc3545;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    border-radius: 11px;
    border: 2px solid #dc3545;
    font-family: 'dana', sans-serif;
}

.ts-floating-cart-count:empty,
.ts-floating-cart-count[data-count="0"] {
    display: none;
}

/* Cart popup overlay */

.ts-cart-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    direction: rtl;
    font-family: 'dana', sans-serif;
}

.ts-cart-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.ts-cart-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.ts-cart-popup-overlay.show .ts-cart-popup {
    transform: translateY(0) scale(1);
}

.ts-cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}

.ts-cart-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.ts-cart-popup-title svg {
    flex-shrink: 0;
}

.ts-cart-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background 0.2s ease;
}

.ts-cart-popup-close:hover {
    background: #e9e9e9;
    color: #333;
}

.ts-cart-popup-body {
    padding: 24px;
}

.ts-cart-popup-product {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ts-cart-popup-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-cart-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ts-cart-popup-details {
    flex: 1;
    min-width: 0;
}

.ts-cart-popup-name {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.ts-cart-popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.ts-cart-popup-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ts-cart-popup-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc3545;
}

.ts-cart-popup-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid #eee;
}

.ts-cart-popup-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    border: none;
    font-family: 'dana', sans-serif;
}

.ts-cart-popup-btn-continue {
    background: #f5f5f5;
    color: #333;
}

.ts-cart-popup-btn-continue:hover {
    background: #e9e9e9;
    color: #333;
}

.ts-cart-popup-btn-cart {
    background: #dc3545;
    color: #fff;
}

.ts-cart-popup-btn-cart:hover {
    background: #c82333;
    color: #fff;
}

.ts-cart-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
    gap: 10px;
}

.ts-cart-popup-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #eee;
    border-top-color: #dc3545;
    border-radius: 50%;
    animation: ts-cart-spin 0.7s linear infinite;
}

@keyframes ts-cart-spin {
    to { transform: rotate(360deg); }
}

body.ts-cart-popup-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .ts-floating-cart {
        bottom: 16px;
        left: 16px;
        width: 50px;
        height: 50px;
    }

    .ts-floating-cart svg {
        width: 22px;
        height: 22px;
    }

    .ts-cart-popup-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ts-cart-popup-image {
        width: 120px;
        height: 120px;
    }

    .ts-cart-popup-footer {
        flex-direction: column;
    }
/*	.ts-floating-cart,
.ts-floating-cart.visible {
    display: none !important;
}*/
}
