.mcp-widget .mcp-product:hover {
    border-color: #ff6b35;
    box-shadow: 
        0 6px 25px rgba(255, 107, 53, .15),
        0 2px 12px rgba(0, 0, 0, .06);
    transform: translateY(-1px) scale(1.003);
    background: linear-gradient(135deg, #ffffff 0%, #fff8f6 100%);
}

/* Контейнер - уменьшен еще на 15% от предыдущего (35% от оригинала) */
.mcp-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto 10px; /* было 12px */
    position: relative;
}

.mcp-widget .mcp-product {
    display: grid;
    grid-template-columns: 75px 1fr auto; /* было 88px */
    align-items: center;
    gap: 10px; /* было 12px */
    padding: 8px 11px; /* было 10px 14px - отступы уменьшены на 25% */
    border: 2px solid #f1f3f4;
    border-radius: 9px; /* было 10px */
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Убираем верхнюю линию внутри */
.mcp-widget .mcp-product::before {
    display: none;
}

/* Анимация при клике */
.mcp-widget .mcp-product:active {
    transform: translateY(-1px) scale(.99);
    transition: all .1s ease;
}

/* Изображение слева - компактнее на 15% */
.mcp-widget .mcp-product-image { 
    flex-shrink: 0;
    position: relative;
}

.mcp-widget .mcp-product-image img {
    width: 75px; /* было 88px */
    height: 75px; /* было 88px */
    object-fit: cover;
    border-radius: 7px; /* было 8px */
    border: 2px solid #f8f9fa;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease;
}

.mcp-widget .mcp-product:hover .mcp-product-image img {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

/* Центр: инфо с улучшенной компактностью */
.mcp-widget .mcp-product-body { 
    min-width: 0;
    padding-right: 5px; /* было 6px */
}

.mcp-widget .mcp-product-title {
    font-size: 16px; /* было 15px - увеличили на 1px */
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 3px; /* было 4px */
    line-height: 1.15; /* было 1.2 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease;
}

.mcp-widget .mcp-product:hover .mcp-product-title {
    color: #2d3748;
}

.mcp-widget .mcp-shop-name {
    font-size: 11px;
    color: #718096;
    margin: 0 0 4px; /* было 5px */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px; /* было 4px */
}

/* Мини иконка AliExpress */
.mcp-widget .mcp-shop-name::before {
    content: '';
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff6b35, #e53e3e);
    border-radius: 2px;
    display: inline-block;
    position: relative;
}

.mcp-widget .mcp-shop-name::after {
    content: 'AE';
    font-size: 6px;
    font-weight: 800;
    color: white;
    position: absolute;
    margin-left: -10px;
    margin-top: 1px;
}

/* Цена - увеличена на 1px */
.mcp-widget .mcp-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px; /* было 8px */
    flex-wrap: wrap;
    margin-top: auto;
}

.mcp-widget .mcp-product-price {
    font-size: 21px; /* было 20px - увеличили на 1px */
    font-weight: 800;
    color: #ff6b35;
    position: relative;
}

.mcp-widget .mcp-original-price {
    font-size: 12px;
    color: #a0aec0;
    text-decoration: line-through;
    font-weight: 500;
}

.mcp-widget .mcp-discount {
    background: linear-gradient(135deg, #ff6b35, #e53e3e);
    color: #fff;
    padding: 2px 5px; /* было 2px 6px */
    border-radius: 4px; /* было 5px */
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(255, 107, 53, .25);
    position: relative;
    overflow: hidden;
}

/* Анимированный блик на скидке */
.mcp-widget .mcp-discount::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .6s ease;
}

.mcp-widget .mcp-product:hover .mcp-discount::before {
    left: 100%;
}

/* Кнопка - размер оставлен прежним, но СУПЕР принудительно белый текст */
.mcp-widget .mcp-product-cta { 
    text-align: right;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.mcp-widget .mcp-product-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    background: linear-gradient(135deg, #ff5959 0%, #e53e3e 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 11px 18px; /* размер кнопки оставлен */
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(229, 62, 62, .25),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: 110px;
    pointer-events: all;
}

/* СУПЕР принудительно белый цвет текста везде - максимальная специфичность */
.mcp-widget .mcp-product-button,
.mcp-widget .mcp-product-button:link,
.mcp-widget .mcp-product-button:visited,
.mcp-widget .mcp-product-button:hover,
.mcp-widget .mcp-product-button:active,
.mcp-widget .mcp-product-button:focus,
.mcp-widget .mcp-product-button span,
.mcp-widget .mcp-product-button *,
a.mcp-product-button,
a.mcp-product-button:link,
a.mcp-product-button:visited,
a.mcp-product-button:hover,
a.mcp-product-button:active,
a.mcp-product-button:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Защита от WordPress тем */
.mcp-widget a.mcp-product-button {
    color: #ffffff !important;
}

.mcp-widget .mcp-product a.mcp-product-button {
    color: #ffffff !important;
}

/* Белая иконка корзины */
.mcp-widget .mcp-product-button::before {
    content: '🛒';
    font-size: 12px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Анимированный фон кнопки */
.mcp-widget .mcp-product-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .6s ease, height .6s ease;
}

.mcp-widget .mcp-product-button:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 
        0 8px 25px rgba(229, 62, 62, .35),
        inset 0 1px 0 rgba(255, 255, 255, .3);
    text-decoration: none !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff5959 0%, #e53e3e 100%) !important;
}

.mcp-widget .mcp-product-button:hover::after {
    width: 200px;
    height: 200px;
}

.mcp-widget .mcp-product-button:active {
    transform: translateY(0) scale(.98);
    transition: all .1s ease;
    color: #ffffff !important;
}

/* Улучшенный hover эффект */
.mcp-widget .mcp-product {
    transition: all .3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mcp-widget .mcp-product:hover {
    border-color: #ff6b35;
    box-shadow: 
        0 7px 28px rgba(255, 107, 53, .08),
        0 0 0 1px rgba(255, 107, 53, .1);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #fffbfa 100%);
}

/* Анимация цены */
.mcp-widget .mcp-product-price {
    position: relative;
    overflow: hidden;
}

.mcp-widget .mcp-product:hover .mcp-product-price {
    animation: price-glow 0.6s ease-out;
}

@keyframes price-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); color: #d73027; }
    100% { transform: scale(1); }
}

/* Умная типографика */
.mcp-widget .mcp-product-title {
    font-weight: 600;
    color: #2d3748;
    transition: all .3s ease;
    text-shadow: 0 0.5px 1px rgba(0,0,0,0.1);
}

.mcp-widget .mcp-product:hover .mcp-product-title {
    color: #1a202c;
    transform: translateX(1px);
}

/* Микро-взаимодействие с изображением */
.mcp-widget .mcp-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
}

.mcp-widget .mcp-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,107,53,.05) 100%);
    opacity: 0;
    transition: opacity .4s ease;
}

.mcp-widget .mcp-product:hover .mcp-product-image::after {
    opacity: 1;
}

.mcp-widget .mcp-product:hover .mcp-product-image img {
    transform: scale(1.04);
    filter: contrast(1.1) saturate(1.15);
}

/* Улучшенная скидка */
.mcp-widget .mcp-discount {
    background: linear-gradient(135deg, #10B981, #059669);
    animation: subtle-pulse 3s ease-in-out infinite;
    transform: rotate(-1.5deg);
}

@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 2px 6px rgba(16, 185, 129, .3);
        transform: rotate(-1.5deg) scale(1);
    }
    50% { 
        box-shadow: 0 3px 8px rgba(16, 185, 129, .4);
        transform: rotate(-1.5deg) scale(1.02);
    }
}

/* Лоадер - компактнее */
.mcp-widget .mcp-loading { 
    text-align: center; 
    padding: 20px; /* было 24px */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 9px;
}

.mcp-widget .mcp-spinner { 
    width: 26px; /* было 30px */
    height: 26px; /* было 30px */
    border: 3px solid #f1f3f4;
    border-top: 3px solid #ff6b35;
    border-radius: 50%; 
    animation: mcp-spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; 
    margin: 0 auto 8px; /* было 10px */
}

@keyframes mcp-spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.mcp-widget .mcp-loading::after {
    content: 'Загрузка товаров...';
    display: block;
    color: #718096;
    font-size: 11px; /* было 12px */
    font-weight: 500;
}

.mcp-widget .mcp-error { 
    text-align: center; 
    color: #e53e3e; 
    padding: 17px; /* было 20px */
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border-radius: 9px;
    font-weight: 600;
}

/* Стили для кнопки "Показать еще" */
.mcp-show-more {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
}

.mcp-show-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mcp-show-more-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    color: #ffffff !important;
}

.mcp-show-more-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.mcp-show-more-btn::before {
    content: '📦';
    font-size: 10px;
}

/* Кнопка "Посмотреть все" */
.mcp-view-all-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #e53e3e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.mcp-view-all-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
    color: #ffffff !important;
}

.mcp-view-all-btn::before {
    content: '🔍';
    font-size: 12px;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ - компактнее на 15% от предыдущего */
@media (max-width: 640px) {
    .mcp-widget { 
        width: 100%;
        margin: 0 auto 7px; /* было 8px */
        padding: 0 6px; /* было 8px */
    }
    
    .mcp-widget .mcp-product {
        grid-template-columns: 55px 1fr auto; /* было 65px */
        gap: 8px; /* было 10px */
        padding: 6px 8px; /* было 8px 10px */
    }
    
    .mcp-widget .mcp-product-cta {
        text-align: right;
        align-self: center;
    }
    
    .mcp-widget .mcp-product-image img { 
        width: 55px; /* было 65px */
        height: 55px; /* было 65px */
        border-radius: 5px; /* было 6px */
    }
    
    .mcp-widget .mcp-product-title { 
        font-size: 14px; /* было 13px, увеличили на 1px */
        -webkit-line-clamp: 2;
        margin-bottom: 2px; /* было 3px */
        line-height: 1.1; /* было 1.15 */
    }
    
    .mcp-widget .mcp-shop-name {
        font-size: 9px; /* было 10px */
        margin-bottom: 3px; /* было 4px */
    }
    
    .mcp-widget .mcp-product-price { 
        font-size: 17px; /* было 16px, увеличили на 1px */
    }
    
    .mcp-widget .mcp-original-price {
        font-size: 9px; /* было 10px */
    }
    
    .mcp-widget .mcp-discount {
        font-size: 8px; /* было 9px */
        padding: 1px 4px; /* было 2px 5px */
    }
    
    .mcp-widget .mcp-product-button { 
        padding: 8px 14px; /* размер кнопки оставлен */
        min-width: 85px;
        font-size: 11px;
        border-radius: 8px;
        color: #ffffff !important;
    }
}

/* Средние экраны - компактнее на 15% */
@media (max-width: 768px) {
    .mcp-widget {
        width: 100%;
        margin: 0 auto 8px; /* было 10px */
        padding: 0 8px; /* было 10px */
    }

    .mcp-widget .mcp-product {
        grid-template-columns: 61px 1fr auto; /* было 72px */
        gap: 10px; /* было 12px */
        padding: 7px 9px; /* было 9px 11px */
    }

    .mcp-widget .mcp-product-image img {
        width: 61px; /* было 72px */
        height: 61px; /* было 72px */
    }

    .mcp-widget .mcp-product-title {
        font-size: 15px; /* было 14px, увеличили на 1px */
        -webkit-line-clamp: 2;
    }

    .mcp-widget .mcp-product-price {
        font-size: 19px; /* было 18px, увеличили на 1px */
    }
}

/* Малые экраны - кардинально компактнее */
@media (max-width: 576px) {
    .mcp-widget .mcp-product {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px; /* было 6px */
        padding: 6px 8px; /* было 8px 10px */
    }

    .mcp-widget .mcp-product-image {
        margin: 0 auto;
    }

    .mcp-widget .mcp-product-image img {
        width: 60px; /* было 70px */
        height: 60px; /* было 70px */
    }

    .mcp-widget .mcp-product-body {
        padding: 0;
        text-align: center;
    }

    .mcp-widget .mcp-product-title {
        font-size: 13px; /* было 12px, увеличили на 1px */
        margin-bottom: 2px;
    }

    .mcp-widget .mcp-shop-name {
        font-size: 8px; /* было 9px */
        margin-bottom: 2px; /* было 3px */
    }

    .mcp-widget .mcp-price-row {
        justify-content: center;
        margin: 3px 0; /* было 4px */
    }

    .mcp-widget .mcp-product-price {
        font-size: 15px; /* было 14px, увеличили на 1px */
    }

    .mcp-widget .mcp-original-price {
        font-size: 8px; /* было 9px */
    }

    .mcp-widget .mcp-discount {
        font-size: 7px; /* было 8px */
        padding: 1px 3px; /* было 1px 4px */
    }

    .mcp-widget .mcp-product-cta {
        width: 100%;
    }

    .mcp-widget .mcp-product-button {
        width: 100%;
        min-width: auto;
        padding: 6px 12px; /* размер кнопки оставлен */
        font-size: 10px; /* было 11px */
        color: #ffffff !important;
    }

    /* Убираем эффекты для оптимизации */
    .mcp-widget .mcp-product:hover {
        transform: none;
        box-shadow: none;
    }

    .mcp-widget .mcp-product-button:hover {
        transform: none;
        color: #ffffff !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .mcp-widget {
        padding: 0 5px; /* было 6px */
    }

    .mcp-widget .mcp-product {
        padding: 5px 6px; /* было 6px 8px */
        gap: 4px; /* было 5px */
    }

    .mcp-widget .mcp-product-image img {
        width: 50px; /* было 60px */
        height: 50px; /* было 60px */
    }

    .mcp-widget .mcp-product-title {
        font-size: 12px; /* было 11px, увеличили на 1px */
        margin-bottom: 2px;
    }

    .mcp-widget .mcp-shop-name {
        font-size: 7px; /* было 8px */
        margin-bottom: 2px;
    }

    .mcp-widget .mcp-product-price {
        font-size: 14px; /* было 13px, увеличили на 1px */
    }

    .mcp-widget .mcp-original-price {
        font-size: 7px; /* было 8px */
    }

    .mcp-widget .mcp-discount {
        font-size: 6px; /* было 7px */
        padding: 1px 2px; /* было 1px 3px */
    }

    .mcp-widget .mcp-product-button {
        padding: 5px 10px; /* размер кнопки оставлен */
        font-size: 9px;
        color: #ffffff !important;
    }
}

/* Защита от конфликтов */
.mcp-widget *, 
.mcp-widget *:before, 
.mcp-widget *:after { 
    box-sizing: border-box; 
}

/* Pointer events */
.mcp-widget .mcp-product > * {
    pointer-events: none;
}

.mcp-widget .mcp-product-button {
    pointer-events: all;
}

/* Доступность */
.mcp-widget .mcp-product:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 1px;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .mcp-widget .mcp-product {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .mcp-widget .mcp-product:hover {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #ff6b35;
    }
    
    .mcp-widget .mcp-product-title {
        color: #e2e8f0;
    }
    
    .mcp-widget .mcp-shop-name {
        color: #a0aec0;
    }
    
    .mcp-widget .mcp-product-button {
        color: #ffffff !important;
    }
}

/* Улучшения для печати */
@media print {
    .mcp-widget {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .mcp-widget .mcp-product {
        break-inside: avoid;
    }

    .mcp-widget .mcp-product-button {
        display: none !important;
    }
}

/* Высокие DPI экраны */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mcp-widget .mcp-product-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Экономия данных */
@media (prefers-reduced-data: reduce) {
    .mcp-widget .mcp-product::before,
    .mcp-widget .mcp-product-button::after {
        display: none;
    }

    .mcp-widget .mcp-product {
        background: #fff;
    }
}

/* Устройства с hover */
@media (hover: hover) {
    .mcp-widget .mcp-product:hover .mcp-product-image img {
        transform: scale(1.04);
    }

    .mcp-widget .mcp-product-button:hover::after {
        width: 200px;
        height: 200px;
    }
}

/* Уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .mcp-widget .mcp-product,
    .mcp-widget .mcp-product-button,
    .mcp-widget .mcp-product-image img {
        transition: none !important;
    }

    .mcp-widget .mcp-spinner {
        animation-duration: 1.5s;
    }
}