/* Customers Also Bought Plugin Styles */

.customers-also-bought {
    position: relative;
    padding: 40px 0;
    margin: 40px 0;
}

.customers-also-bought__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0 0 30px 0;
    padding: 0;
    text-transform: uppercase;
    color: #000;
}

.customers-also-bought__navigation {
    position: absolute;
    top: 40px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.customers-also-bought__nav {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #ff1701;
    transition: opacity 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customers-also-bought__nav:hover {
    opacity: 0.7;
}

.customers-also-bought__nav svg {
    width: 24px;
    height: 24px;
}

.customers-also-bought__products {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.customers-also-bought__products::-webkit-scrollbar {
    display: none;
}

.customers-also-bought__product {
    flex: 0 0 calc(25% - 15px);
    min-width: 280px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.customers-also-bought__product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customers-also-bought__product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.customers-also-bought__product-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    background: #f8f8f8;
}

.customers-also-bought__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.customers-also-bought__product:hover .customers-also-bought__product-image img {
    transform: scale(1.05);
}

.customers-also-bought__product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.customers-also-bought__product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    color: #000;
    min-height: 40px;
}

.customers-also-bought__product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.customers-also-bought__product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff1701;
}

.customers-also-bought__product-price--sale {
    color: #ff1701;
}

.customers-also-bought__product-price--regular {
    font-size: 16px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.customers-also-bought__product-badge {
    background: #f0e6ff;
    color: #1a0033;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    width: fit-content;
}

.customers-also-bought__product-options {
    margin-top: auto;
    padding-top: 12px;
}

.customers-also-bought__product-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.customers-also-bought__product-select:hover,
.customers-also-bought__product-select:focus {
    border-color: #ff1701;
    outline: none;
}

.customers-also-bought__product-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.customers-also-bought__add-to-cart {
    width: 100%;
    background: #ff1701;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.customers-also-bought__add-to-cart:hover {
    background: #d91401;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 23, 1, 0.3);
}

.customers-also-bought__add-to-cart:active {
    transform: translateY(0);
}

.customers-also-bought__add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.customers-also-bought__add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.customers-also-bought__add-to-cart-price {
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .customers-also-bought__product {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    .customers-also-bought__product {
        flex: 0 0 calc(50% - 10px);
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .customers-also-bought__title {
        font-size: 24px;
    }
    
    .customers-also-bought__navigation {
        top: 35px;
    }
    
    .customers-also-bought__product {
        flex: 0 0 calc(100% - 20px);
        min-width: 240px;
    }
    
    .customers-also-bought__products {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .customers-also-bought {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .customers-also-bought__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .customers-also-bought__product {
        padding: 15px;
        min-width: 220px;
    }
    
    .customers-also-bought__nav {
        width: 32px;
        height: 32px;
    }
    
    .customers-also-bought__nav svg {
        width: 20px;
        height: 20px;
    }
}
