/* Carousel Product Card Styles */
.owl-carousel .item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.owl-carousel .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Cover Wrapper */
.owl-carousel .item .cover-wrapper {
    position: relative;
    background: #f5f5f5;
}

/* Cover Container */
.owl-carousel .item .cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.owl-carousel .item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.owl-carousel .item:hover .cover img {
    transform: scale(1.05);
}

/* Preview Video Styling */
.owl-carousel .item .preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Show video when ready */
.owl-carousel .item .cover-wrapper.video-ready .preview-video {
    opacity: 1;
}

/* Hide image when video is ready */
.owl-carousel .item .cover-wrapper.video-ready .cover img {
    opacity: 0;
}

/* Loading Spinner */
.owl-carousel .item .cover-wrapper.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    z-index: 3;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

.owl-carousel .item .cover-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Quick Action Buttons */
.owl-carousel .item .quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 4;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.owl-carousel .item:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.owl-carousel .item .action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
    font-size: 16px;
}

.owl-carousel .item .action-btn:hover {
    transform: scale(1.1);
}

.owl-carousel .item .action-btn.like-btn:hover {
    background: #ff4757;
    color: white;
}

.owl-carousel .item .action-btn.bookmark-btn:hover {
    background: #4a90e2;
    color: white;
}

.owl-carousel .item .action-btn.add-to-cart-btn:hover {
    background: #28a745;
    color: white;
}

.owl-carousel .item .action-btn.active {
    background: #ff4757;
    color: white;
}

.owl-carousel .item .action-btn.bookmark-btn.active {
    background: #4a90e2;
    color: white;
}

/* Badges */
.owl-carousel .item .product-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: .6rem;
    font-weight: 500;
    z-index: 3;
}

.owl-carousel .item .product-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: .6rem;
    font-weight: 500;
    z-index: 3;
}

.owl-carousel .item .pin-badge {
    position: absolute;
    top: 12px;
    left: 52px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: .6rem;
    font-weight: 500;
    z-index: 3;
}

.owl-carousel .item .product-title-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: .6rem;
    font-weight: 500;
    z-index: 3;
    max-width: 100px;
}

.owl-carousel .item .product-title-badge p {
    margin: 0;
    padding: 0;
    font-family: 'shabnam';
}


/* medium ---------------------------------- */
@media (min-width: 768px) {

    .owl-carousel .item .product-title-badge,
    .owl-carousel .item .product-type-badge,
    .owl-carousel .item .product-price-badge,
    .owl-carousel .item .pin-badge {
        font-size: 12px;
    }

    .owl-carousel .item .product-title-badge {
        max-width: 150px;
    }
}


/* Product Info */
.owl-carousel .item .product-info {
    padding: 16px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.owl-carousel .item .product-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.owl-carousel .item .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.owl-carousel .item .product-title-link:hover .product-title {
    color: #4a90e2;
}

/* Product Meta */
.owl-carousel .item .product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #888;
}

.owl-carousel .item .product-quality,
.owl-carousel .item .product-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.owl-carousel .item .product-quality i {
    color: #ffc107;
    font-size: 11px;
}

/* Product Footer */
.owl-carousel .item .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Product Price */
.owl-carousel .item .product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.owl-carousel .item .price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #4a90e2;
    direction: ltr;
    display: inline-block;
}

.owl-carousel .item .price-currency {
    font-size: 12px;
    color: #888;
}

.owl-carousel .item .free-price {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

/* Primary Add to Cart Button */
.owl-carousel .item .add-to-cart-btn-primary {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.owl-carousel .item .add-to-cart-btn-primary:hover {
    background: #357abd;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .owl-carousel .item .product-info {
        padding: 12px;
    }

    .owl-carousel .item .product-title {
        font-size: 14px;
    }

    .owl-carousel .item .price-amount {
        font-size: 16px;
    }

    .owl-carousel .item .add-to-cart-btn-primary {
        padding: 6px 12px;
        font-size: 12px;
    }

    .owl-carousel .item .add-to-cart-btn-primary span {
        display: none;
    }

    .owl-carousel .item .add-to-cart-btn-primary i {
        margin: 0;
    }

    .owl-carousel .item .action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Owl Carousel Specific Adjustments */
.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    height: auto;
}

.owl-carousel .item {
    height: 100%;
    margin: 10px;
}

/* Optional: Adjust carousel navigation buttons */
.owl-carousel .owl-nav button {
    background: rgba(0, 0, 0, 0.5) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    color: white !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1);
}