/**
 * Checkout Product Cards Shortcode Styles
 * Styles for merch_v3_checkout_product_cards shortcode
 * Unique prefix: merch-v3-checkout-product-cards-shortcode__
 * 
 * @package Merch.v3
 * @version 1.0.0
 */

/* Checkout Product Card */
.merch-v3-checkout-product-cards-shortcode__card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgb(33, 33, 33);
    padding: 0;
    box-sizing: border-box;
    margin-bottom: 0;
}

.merch-v3-checkout-product-cards-shortcode__card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Cart Item */
.merch-v3-checkout-product-cards-shortcode__item {
    border-bottom: none;
    padding-bottom: 0;
}

.merch-v3-checkout-product-cards-shortcode__item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item Body */
.merch-v3-checkout-product-cards-shortcode__item-body {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* Product Card (Left) - Large Visual Card */
.merch-v3-checkout-product-cards-shortcode__product-card {
    flex-shrink: 0;
    width: 65px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.merch-v3-checkout-product-cards-shortcode__product-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.merch-v3-checkout-product-cards-shortcode__product-card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

.merch-v3-checkout-product-cards-shortcode__product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.8;
}

/* Different gradients for different product types */
.merch-v3-checkout-product-cards-shortcode__product-card--gift .merch-v3-checkout-product-cards-shortcode__product-card-inner {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
}

.merch-v3-checkout-product-cards-shortcode__product-card--gift .merch-v3-checkout-product-cards-shortcode__product-card-overlay {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 68, 153, 0.85) 100%);
}

.merch-v3-checkout-product-cards-shortcode__product-card--game .merch-v3-checkout-product-cards-shortcode__product-card-inner {
    background: linear-gradient(135deg, #7B2CBF 0%, #5A189A 100%);
}

.merch-v3-checkout-product-cards-shortcode__product-card--game .merch-v3-checkout-product-cards-shortcode__product-card-overlay {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.85) 0%, rgba(90, 24, 154, 0.85) 100%);
}

/* Item Details (Right) */
.merch-v3-checkout-product-cards-shortcode__item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.merchandise-checkout [class*="info"] {
    background-color: transparent!important;
    border: none!important;
    padding: 0!important;
}

/* Item Info */
.merch-v3-checkout-product-cards-shortcode__item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
}

.merch-v3-checkout-product-cards-shortcode__item-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.7em; /* Зменшуємо всі шрифти на 30% */
}

.merch-v3-checkout-product-cards-shortcode__item-title {
    max-width: 50%;
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 14px; /* 16px * 0.7 = 11.2px (зменшено на 30%) */
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wp--preset--color--white);
}

.merchandise-checkout button {
    /* background-color: transparent!important; */
    color: var(--merch-v3-bg-white)!important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}

.merch-v3-checkout-product-cards-shortcode__item-title a {
    color: var(--merch-v3-footer-text, var(--wp--preset--color--white, #FFFFFF))!important;

}

.merch-v3-checkout-product-cards-shortcode__item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.merch-v3-checkout-product-cards-shortcode__item-title a:hover {
    color: var(--wp--preset--color--primary-light, #6BA0FF);
}

/* Category Tag */
.merch-v3-checkout-product-cards-shortcode__category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    background-color: rgb(255, 127, 106);
    color: var(--wp--preset--color--neutral-000, #ffffff);
}

.merch-v3-checkout-product-cards-shortcode__category-tag--inline {
    margin-left: 12px;
}

.merch-v3-checkout-product-cards-shortcode__category-tag--gift {
    background-color: var(--wp--preset--color--warning-orange, var(--wp--preset--color--warning-gold, #FFA07A));
    color: var(--merch-v3-bg-white, var(--wp--preset--color--white, #FFFFFF));
    border: none;
}

.merch-v3-checkout-product-cards-shortcode__category-tag--game {
    background-color: color-mix(in srgb, var(--wp--preset--color--purple-300, #A855F7) 20%, transparent);
    color: var(--wp--preset--color--purple-300, #A855F7);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--purple-300, #A855F7) 30%, transparent);
}

/* Region */
.merch-v3-checkout-product-cards-shortcode__item-region {
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--wp--preset--color--primary-light, #6BA0FF);
    text-transform: uppercase;
}

/* Item Controls Wrapper */
.merch-v3-checkout-product-cards-shortcode__item-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.merch-v3-checkout-product-cards-shortcode__item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Remove Button */
.merch-v3-checkout-product-cards-shortcode__remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.merch-v3-checkout-product-cards-shortcode__remove-btn:hover {
    color: var(--merch-v3-error, var(--wp--preset--color--danger-600, #DC2626));
    background-color: rgba(220, 38, 38, 0.1);
}

.merch-v3-checkout-product-cards-shortcode__remove-btn svg {
    width: 18px;
    height: 18px;
}

/* Quantity Controls */
.merch-v3-checkout-product-cards-shortcode__quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.merch-v3-checkout-product-cards-shortcode__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color:rgb(33, 33, 33);
    border: none;
    color: var(--merch-v3-bg-white, var(--wp--preset--color--white, #FFFFFF));
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
}

.merch-v3-checkout-product-cards-shortcode__qty-btn:hover {
    background-color: var(--merch-v3-primary-hover, var(--wp--preset--color--primary-600, #1B2E8C));
    opacity: 0.9;
}

.merch-v3-checkout-product-cards-shortcode__qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.merch-v3-checkout-product-cards-shortcode__qty-btn svg {
    width: 16px;
    height: 16px;
}

.merch-v3-checkout-product-cards-shortcode__qty-value {
    min-width: 40px;
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: var(--merch-v3-footer-text, var(--wp--preset--color--white, #FFFFFF));
    padding: 4px 8px;
    background-color: rgb(22, 22, 22);
    border: 1px solid rgb(33, 33, 33);
    border-radius: 4px;
}

/* Item Price */
.merch-v3-checkout-product-cards-shortcode__item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.merch-v3-checkout-product-cards-shortcode__price-original {
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.merch-v3-checkout-product-cards-shortcode__price-current {
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--merch-v3-footer-text, var(--wp--preset--color--white, #FFFFFF));
    display: flex;
    align-items: center;
    gap: 4px;
}

.merch-v3-checkout-product-cards-shortcode__price-plus {
    font-family: var(--wp--preset--font-family--outfit), sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #A855F7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .merch-v3-checkout-product-cards-shortcode__card {
        padding: 20px 16px;
    }
    
    .merch-v3-checkout-product-cards-shortcode__item-body {
        flex-direction: column;
    }
    
    .merch-v3-checkout-product-cards-shortcode__product-card {
        width: 100%;
        height: 240px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .merch-v3-checkout-product-cards-shortcode__item-details {
        width: 100%;
    }
    
    .merch-v3-checkout-product-cards-shortcode__item-price {
        align-items: flex-start;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .merch-v3-checkout-product-cards-shortcode__item-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .merch-v3-checkout-product-cards-shortcode__category-tag--inline {
        margin-left: 0;
        margin-top: 8px;
    }
}
