/**
 * Products Showcase Block Frontend Styles
 * 
 * @package 4BRV
 */

/* Action button states - NO hover color change */
.product-card__action-btn {
    transition: all 0.3s ease !important;
}

/* Wishlist button states */
.product-card__action-btn--wishlist.is-in-wishlist {
    background: linear-gradient(180deg, #b78b5b, #60401e);
    color: #ffffff;
}

.product-card__action-btn--wishlist.is-in-wishlist svg {
    fill: #ffffff;
}

.product-card__action-btn--wishlist.adding,
.product-card__action-btn--wishlist.removing {
    animation: pulse 0.3s ease;
}

.product-card__action-btn--cart.loading,
.product-card__action-btn--quick-view.loading {
    pointer-events: none;
}

.product-card__action-btn--cart.loading svg,
.product-card__action-btn--quick-view.loading svg {
    opacity: 0;
}

.product-card__action-btn--cart.loading::after,
.product-card__action-btn--quick-view.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.product-card__action-btn--cart.added {
    background: #4CAF50 !important;
    color: #ffffff;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Quick View Modal */
.ceit-quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ceit-quick-view-modal.is-open {
    display: flex;
}

.ceit-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.ceit-quick-view-content {
    position: relative;
    background: #000000;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ceit-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.ceit-quick-view-close:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

.ceit-quick-view-body {
    padding: 40px;
}

.ceit-quick-view-loading {
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
    font-size: 18px;
}

/* Quick View Product Layout */
.ceit-quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: #ffffff;
}

@media (max-width: 767px) {
    .ceit-quick-view-product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ceit-quick-view-body {
        padding: 30px 20px;
    }
}

.ceit-quick-view-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ceit-quick-view-details {
    display: flex;
    flex-direction: column;
}

.ceit-quick-view-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    color: #ffffff;
}

.ceit-quick-view-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(180deg, #b78b5b, #60401e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
}

.ceit-quick-view-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px 0;
}

.ceit-quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.ceit-quick-view-btn {
    flex: 1;
    padding: 15px 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ceit-quick-view-btn--primary {
    background: linear-gradient(180deg, #b78b5b, #60401e);
    color: #ffffff;
}

.ceit-quick-view-btn--primary:hover {
    background: linear-gradient(180deg, #60401e, #b78b5b);
}

.ceit-quick-view-btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.ceit-quick-view-btn--secondary:hover {
    background: #ffffff;
    color: #000000;
}
