/* Shortcode Premium Styles for UniShop2 */

/* 1. Base reset for shortcode containers */
.shortcode-product, .shortcode-products, .shortcode-category {
    margin: 25px 0;
    clear: both;
}

/* 2. Default Product Card */
.shortcode-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e9eef2;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.shortcode-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #0b91d2;
}

.shortcode-product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.shortcode-product-item:hover img {
    transform: scale(1.05);
}

.shortcode-product-item h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0;
    text-align: center;
}

.shortcode-product-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.shortcode-product-item h4 a:hover {
    color: #0b91d2;
}

.shortcode-product-item .price {
    font-size: 19px;
    color: #f05;
    font-weight: 700;
    margin-top: 10px;
    padding: 5px 15px;
    background: rgba(255, 0, 85, 0.05);
    border-radius: 20px;
}

/* 3. Mini Product List/Item */
.shortcode-products-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fbfbfc;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #edf2f6;
}

.shortcode-product-mini {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f3f6;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
}

.shortcode-product-mini:hover {
    border-color: #0b91d2;
    background: #f0f9ff;
    transform: translateX(8px);
    box-shadow: 2px 4px 12px rgba(11, 145, 210, 0.1);
}

.shortcode-product-mini img {
    border-radius: 8px;
    background: #fff;
    padding: 3px;
    border: 1px solid #efefef;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.shortcode-product-mini .name {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    flex-grow: 1;
}

.shortcode-product-mini .price {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
}

/* 4. Default Category Card */
.shortcode-category-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcode-category-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-color: #0b91d2;
    transform: translateY(-4px);
}

.shortcode-category-item img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f8fafc;
}

.shortcode-category-item .caption {
    flex-grow: 1;
}

.shortcode-category-item h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
}

.shortcode-category-item h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.shortcode-category-item h3 a:hover {
    color: #0b91d2;
}

.shortcode-category-item .description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5. Responsive fixes */
@media (max-width: 768px) {
    .shortcode-category-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .shortcode-product-mini {
        padding: 10px;
    }
    
    .shortcode-product-mini .price {
        font-size: 13px;
    }
}
