/* ==========================================================================
   MOBILE IMPROVEMENTS - UniFi Store v3.2.0
   Fixes: touch targets, swipe slider, footer accordion, bottom nav, PWA
   ========================================================================== */

/* ==========================================================================
   1. TOUCH TARGETS - Увеличенные зоны касания для категорий
   ========================================================================== */

/* Category Navigation - Mobile */
@media (max-width: 768px) {
    .category-nav {
        padding: 0;
        border-top: 1px solid #E6E6E6;
    }

    .category-nav-inner {
        padding: 0 12px;
        gap: 4px;
    }

    .category-link {
        padding: 14px 12px;
        min-width: 72px;
        min-height: 80px;
        gap: 8px;
        border-radius: 12px;
        margin: 8px 0;
        /* Minimum touch target 48x48 */
        touch-action: manipulation;
    }

    .category-link img {
        height: 36px;
        width: auto;
    }

    .category-link span {
        font-size: 0.6875rem;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .category-link {
        padding: 12px 10px;
        min-width: 68px;
        min-height: 76px;
    }

    .category-link img {
        height: 32px;
    }

    .category-link span {
        font-size: 0.625rem;
    }
}

/* ==========================================================================
   2. MOBILE SEARCH IN MENU
   ========================================================================== */

/* Search in mobile nav */
.mobile-nav-search {
    padding: 0 16px 16px;
    border-bottom: 1px solid #E6E6E6;
    margin-bottom: 8px;
}

.mobile-nav-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F5F5F5;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s;
}

.mobile-nav-search-input:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px #006FFF;
}

.mobile-nav-search-input svg {
    flex-shrink: 0;
    color: #666;
}

.mobile-nav-search-input input {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: none;
    font-size: 16px; /* Prevent iOS zoom */
    outline: none;
    color: #1A1A1A;
}

.mobile-nav-search-input input::placeholder {
    color: #999;
}

/* ==========================================================================
   3. HERO SLIDER WITH SWIPE
   ========================================================================== */

.hero-slider {
    padding: var(--space-6) 0 var(--space-8);
}

.slider-container {
    position: relative;
}

.slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 8px 0 16px;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.hero-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
}

/* Slider dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E0E0E0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #006FFF;
    width: 24px;
    border-radius: 4px;
}

/* Mobile slider */
@media (max-width: 768px) {
    .hero-card {
        flex: 0 0 calc(100vw - 48px);
        min-height: 320px;
    }

    .hero-slider .container {
        padding: 0 24px;
    }

    .slider-track {
        margin: 0 -24px;
        padding: 8px 24px 16px;
        scroll-padding-left: 24px;
    }
}

@media (max-width: 480px) {
    .hero-card {
        flex: 0 0 calc(100vw - 32px);
        min-height: 300px;
    }

    .hero-slider .container {
        padding: 0 16px;
    }

    .slider-track {
        margin: 0 -16px;
        padding: 8px 16px 16px;
        scroll-padding-left: 16px;
    }
}

/* ==========================================================================
   4. FOOTER ACCORDION FOR MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-column {
        border-bottom: 1px solid #E6E6E6;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-column h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        margin: 0;
        cursor: pointer;
        user-select: none;
    }

    .footer-column h4::after {
        content: '';
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.2s;
    }

    .footer-column.expanded h4::after {
        transform: rotate(180deg);
    }

    .footer-column ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding-bottom: 0;
    }

    .footer-column.expanded ul {
        max-height: 200px;
        padding-bottom: 16px;
    }

    /* Subscribe form always visible */
    .footer-subscribe {
        border-bottom: none;
        padding-top: 24px;
    }

    .footer-subscribe h4 {
        cursor: default;
    }

    .footer-subscribe h4::after {
        display: none;
    }

    .footer-subscribe ul,
    .footer-subscribe .subscribe-form,
    .footer-subscribe .social-links {
        max-height: none;
        overflow: visible;
    }
}

/* ==========================================================================
   5. BOTTOM NAVIGATION BAR
   ========================================================================== */

.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #fff;
        border-top: 1px solid #E6E6E6;
        z-index: 9998;
        padding: 0 8px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: #666;
        font-size: 0.625rem;
        font-weight: 500;
        transition: color 0.15s;
        padding: 8px 4px;
        /* Touch target */
        min-height: 48px;
    }

    .bottom-nav-item:active {
        background: #F5F5F5;
    }

    .bottom-nav-item.active {
        color: #006FFF;
    }

    .bottom-nav-item svg {
        width: 24px;
        height: 24px;
    }

    .bottom-nav-item .cart-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 18px);
        min-width: 16px;
        height: 16px;
        background: #006FFF;
        color: #fff;
        font-size: 0.625rem;
        font-weight: 600;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    .bottom-nav-item .cart-badge:empty {
        display: none;
    }

    /* Add padding to footer for bottom nav */
    .site-footer {
        padding-bottom: 80px;
    }

    /* Hide header cart on mobile (moved to bottom nav) */
    .header-actions .cart-btn {
        display: none;
    }

    /* Sticky cart bar position adjustment */
    .sticky-cart-bar {
        bottom: 64px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }
}

/* ==========================================================================
   6. PWA SUPPORT STYLES
   ========================================================================== */

/* Splash screen / Loading state */
.pwa-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pwa-splash.loading {
    opacity: 1;
    visibility: visible;
}

.pwa-splash-logo {
    width: 120px;
    margin-bottom: 24px;
}

.pwa-splash-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E6E6E6;
    border-top-color: #006FFF;
    border-radius: 50%;
    animation: pwa-spin 1s linear infinite;
}

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

/* Install prompt banner */
.pwa-install-prompt {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.pwa-install-prompt.show {
    display: flex;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-install-icon img {
    width: 32px;
    height: 32px;
}

.pwa-install-text h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 4px;
}

.pwa-install-text p {
    font-size: 0.8125rem;
    color: #666;
    margin: 0;
}

.pwa-install-actions {
    display: flex;
    gap: 8px;
}

.pwa-install-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.pwa-install-btn.primary {
    background: #006FFF;
    color: #fff;
    border: none;
}

.pwa-install-btn.primary:hover {
    background: #0059CC;
}

.pwa-install-btn.secondary {
    background: #F5F5F5;
    color: #666;
    border: none;
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FF6B6B;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    z-index: 99999;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* ==========================================================================
   7. MOBILE FILTERS IN CATALOG
   ========================================================================== */

.mobile-filter-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: #F5F5F5;
        border: none;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
        color: #1A1A1A;
        cursor: pointer;
    }

    .mobile-filter-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Filter modal */
    .filter-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 99999;
        flex-direction: column;
    }

    .filter-modal.active {
        display: flex;
    }

    .filter-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid #E6E6E6;
    }

    .filter-modal-header h3 {
        font-size: 1.125rem;
        font-weight: 600;
        margin: 0;
    }

    .filter-modal-close {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
    }

    .filter-modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
    }

    .filter-group {
        margin-bottom: 24px;
    }

    .filter-group h4 {
        font-size: 0.9375rem;
        font-weight: 600;
        margin: 0 0 12px;
        color: #1A1A1A;
    }

    /* Price range slider */
    .price-range {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .price-inputs {
        display: flex;
        gap: 12px;
    }

    .price-input {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .price-input label {
        font-size: 0.75rem;
        color: #666;
    }

    .price-input input {
        padding: 10px 12px;
        border: 1px solid #E6E6E6;
        border-radius: 8px;
        font-size: 0.9375rem;
        outline: none;
    }

    .price-input input:focus {
        border-color: #006FFF;
    }

    /* Category checkboxes */
    .filter-checkbox {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        cursor: pointer;
    }

    .filter-checkbox input {
        width: 20px;
        height: 20px;
        accent-color: #006FFF;
    }

    .filter-checkbox span {
        font-size: 0.9375rem;
        color: #1A1A1A;
    }

    .filter-modal-footer {
        padding: 16px;
        border-top: 1px solid #E6E6E6;
        display: flex;
        gap: 12px;
    }

    .filter-reset-btn {
        flex: 1;
        padding: 14px;
        background: #F5F5F5;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #666;
        cursor: pointer;
    }

    .filter-apply-btn {
        flex: 2;
        padding: 14px;
        background: #006FFF;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
    }
}

/* ==========================================================================
   8. ADDITIONAL MOBILE FIXES
   ========================================================================== */

/* Better breadcrumbs on mobile */
@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        font-size: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 0;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce-breadcrumb a {
        padding: 8px 4px;
        display: inline-block;
    }
}

/* Improved product tabs on mobile */
@media (max-width: 768px) {
    .product-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 8px 0;
        margin-bottom: 16px;
    }

    .product-tabs button {
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 0.875rem;
        font-weight: 500;
        background: #F5F5F5;
        border: none;
        border-radius: 20px;
        color: #666;
        cursor: pointer;
        transition: all 0.15s;
        /* Touch target */
        min-height: 44px;
    }

    .product-tabs button.active {
        background: #1A1A1A;
        color: #fff;
    }
}

/* Safe area padding for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .site-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Prevent zoom on inputs (iOS) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Better touch feedback */
@media (max-width: 768px) {
    .product-card,
    .category-link,
    .mobile-nav-link,
    .bottom-nav-item,
    .btn-add-cart,
    .header-btn,
    .mobile-menu-toggle {
        -webkit-tap-highlight-color: transparent;
    }

    .product-card:active {
        transform: scale(0.98);
    }
}

/* ==========================================================================
   FIX: Наложение текста в категориях и кнопке корзины
   ========================================================================== */

/* Fix category text overlap - увеличить расстояние между категориями */
@media (max-width: 768px) {
    .category-nav-inner {
        gap: 8px !important;
        padding: 0 16px !important;
    }
    
    .category-link {
        min-width: 80px !important;
        padding: 12px 8px !important;
        flex-shrink: 0;
    }
    
    .category-link span {
        font-size: 0.625rem !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }
    
    .category-link img {
        height: 32px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .category-nav-inner {
        gap: 4px !important;
        padding: 0 12px !important;
    }
    
    .category-link {
        min-width: 70px !important;
        padding: 10px 6px !important;
    }
    
    .category-link span {
        font-size: 0.5625rem !important; /* 9px */
    }
    
    .category-link img {
        height: 28px !important;
    }
}

/* Fix add to cart button - prevent icon/text overlap */
@media (max-width: 768px) {
    .btn-add-to-cart,
    .add_to_cart_button,
    .product-card .button,
    .woocommerce ul.products li.product .button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        font-size: 0.6875rem !important; /* 11px */
        white-space: nowrap !important;
        min-height: 36px;
        overflow: hidden;
    }
    
    .btn-add-to-cart svg,
    .add_to_cart_button svg,
    .product-card .button svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }
    
    /* Если иконка перед текстом */
    .btn-add-to-cart img,
    .add_to_cart_button img {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 380px) {
    .btn-add-to-cart,
    .add_to_cart_button,
    .product-card .button,
    .woocommerce ul.products li.product .button {
        padding: 6px 10px !important;
        font-size: 0.625rem !important; /* 10px */
        gap: 4px !important;
    }
    
    /* На очень маленьких экранах скрываем текст, оставляем иконку */
    .btn-add-to-cart span.btn-text,
    .add_to_cart_button span {
        display: none;
    }
    
    .btn-add-to-cart svg,
    .add_to_cart_button svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Product card price and button row fix */
@media (max-width: 768px) {
    .product-card-footer,
    .product-card .price-row,
    .product-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .product-card .price {
        font-size: 0.875rem !important;
        font-weight: 600;
    }
    
    /* Ensure button doesn't overflow */
    .product-card .button-wrap,
    .product-card .add-to-cart-wrap {
        width: 100%;
    }
    
    .product-card .button-wrap .button,
    .product-card .add-to-cart-wrap .button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   FIX v2: Кнопка В корзину - правильное отображение
   ========================================================================== */

@media (max-width: 768px) {
    /* Основной контейнер цены и кнопки */
    .product-card .product-price-cart,
    .product-info .product-price-cart,
    .product-card-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    /* Цена товара */
    .product-card .price,
    .product-info .price {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    /* Кнопка В корзину - показываем полностью */
    .product-card .button,
    .product-card .add_to_cart_button,
    .product-info .button,
    .btn-add-to-cart,
    a.add_to_cart_button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 10px 16px !important;
        font-size: 0.8125rem !important;
        font-weight: 500 !important;
        background: #006FFF !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* SVG иконка в кнопке */
    .product-card .button svg,
    .btn-add-to-cart svg,
    a.add_to_cart_button svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    
    /* Hover состояние */
    .product-card .button:hover,
    .btn-add-to-cart:hover,
    a.add_to_cart_button:hover {
        background: #0059CC !important;
    }
}

/* Для очень маленьких экранов - только иконка */
@media (max-width: 360px) {
    .product-card .button,
    .btn-add-to-cart,
    a.add_to_cart_button {
        padding: 10px 12px !important;
        font-size: 0 !important; /* Скрываем текст */
    }
    
    .product-card .button svg,
    .btn-add-to-cart svg,
    a.add_to_cart_button svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Показываем только иконку через псевдоэлемент нельзя, так что оставим как есть */
}

/* ==========================================================================
   FIX v3: Кнопка В корзину - принудительная ширина auto
   ========================================================================== */

.btn-add-cart,
a.btn-add-cart,
.btn-add-cart.ajax_add_to_cart,
a.ajax_add_to_cart {
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
    padding: 8px 16px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .btn-add-cart,
    a.btn-add-cart,
    .btn-add-cart.ajax_add_to_cart,
    a.ajax_add_to_cart {
        width: auto !important;
        min-width: unset !important;
        padding: 10px 16px !important;
    }
    
    /* Контейнер цена + кнопка */
    .product-price-cart {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    .btn-add-cart,
    a.btn-add-cart {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* ==========================================================================
   FIX v4: Layout карточки - цена и кнопка вертикально
   ========================================================================== */

@media (max-width: 768px) {
    /* Контейнер карточки */
    .product-card-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Цена */
    .product-card-footer .price,
    .product-price {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    
    /* Кнопка В корзину - полная ширина */
    .product-card-footer .btn-add-cart,
    .product-card-footer a.btn-add-cart,
    .product-card-footer a[href*='add-to-cart'] {
        width: 100% !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 10px 16px !important;
        font-size: 0.8125rem !important;
        text-align: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    /* Контент карточки */
    .product-card-content {
        width: 100% !important;
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    .product-card-footer .btn-add-cart,
    .product-card-footer a[href*='add-to-cart'] {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* ==========================================================================
   FIX v5: Переопределяем mobile icon-only кнопку - ПОКАЗЫВАЕМ ТЕКСТ
   Это переопределяет style.css строки 2156-2180
   ========================================================================== */

@media (max-width: 600px) {
    .product-card .btn-add-cart,
    .add_to_cart_button:not(.single_add_to_cart_button),
    a.btn-add-cart.ajax_add_to_cart {
        width: auto !important;
        height: auto !important;
        min-width: unset !important;
        padding: 10px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }
    
    /* Добавляем иконку корзины ПЕРЕД текстом */
    .product-card .btn-add-cart::before,
    a.btn-add-cart.ajax_add_to_cart::before {
        content: '' !important;
        width: 14px !important;
        height: 14px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3l1.1-2h7.45c.75 0 1.41-.41 1.75-1.03L21.7 4H5.21l-.94-2H1v2h2l3.6 7.59L3.62 17H19v-2H7z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        flex-shrink: 0 !important;
    }
    
    /* Убираем ::after псевдоэлемент */
    .product-card .btn-add-cart::after,
    a.btn-add-cart.ajax_add_to_cart::after,
    .add_to_cart_button:not(.single_add_to_cart_button)::after {
        display: none !important;
        content: none !important;
    }
}

@media (max-width: 380px) {
    .product-card .btn-add-cart,
    a.btn-add-cart.ajax_add_to_cart {
        padding: 8px 10px !important;
        font-size: 0.6875rem !important;
    }
    
    .product-card .btn-add-cart::before,
    a.btn-add-cart.ajax_add_to_cart::before {
        width: 12px !important;
        height: 12px !important;
    }
}

/* ==========================================================================
   FIX v6: LIST VIEW для товаров на мобильных (как UI.com)
   ========================================================================== */

@media (max-width: 600px) {
    /* Превращаем grid в список */
    .products-grid,
    ul.products {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* Карточка товара - горизонтальная строка */
    .product-card,
    .products li.product {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 16px !important;
        border-bottom: 1px solid #E5E7EB !important;
        background: #fff !important;
        gap: 16px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .product-card:last-child,
    .products li.product:last-child {
        border-bottom: none !important;
    }
    
    /* Изображение - маленькое слева */
    .product-card .product-card-image,
    .product-card .product-image,
    .products li.product .attachment-woocommerce_thumbnail,
    .products li.product img {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        object-fit: contain !important;
        background: #F9FAFB !important;
        padding: 8px !important;
        margin: 0 !important;
    }
    
    /* Контент - справа от изображения */
    .product-card .product-card-content,
    .products li.product .woocommerce-loop-product__title,
    .products li.product .woocommerce-LoopProduct-link {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-width: 0 !important;
    }
    
    /* Название товара */
    .product-card .product-card-title,
    .product-card .product-title,
    .products li.product .woocommerce-loop-product__title {
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        color: #1A1A1A !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Цена */
    .product-card .product-card-price,
    .product-card .product-price,
    .products li.product .price {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        color: #1A1A1A !important;
        margin: 0 !important;
    }
    
    /* Footer карточки - кнопка справа */
    .product-card .product-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* Кнопка корзины - иконка */
    .product-card .btn-add-cart,
    .products li.product .add_to_cart_button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        font-size: 0 !important;
        border-radius: 10px !important;
        background: #006FFF !important;
        color: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .product-card .btn-add-cart::before,
    .products li.product .add_to_cart_button::before {
        content: '' !important;
        width: 20px !important;
        height: 20px !important;
        background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=white viewBox=0 0 24 24%3E%3Cpath d=M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z/%3E%3C/svg%3E) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    .product-card .btn-add-cart::after,
    .products li.product .add_to_cart_button::after {
        display: none !important;
    }
    
    /* Скрываем ненужные элементы */
    .product-card .product-card-sku,
    .product-card .product-card-desc,
    .product-card .product-sku,
    .products li.product .onsale {
        display: none !important;
    }
    
    /* Заголовок секции */
    .products-section .section-header,
    .woocommerce-products-header {
        padding: 16px !important;
    }
    
    .products-section .section-title {
        font-size: 1.125rem !important;
    }
}

/* ==========================================================================
   FIX v7: LIST VIEW - Исправленные селекторы
   ========================================================================== */

@media (max-width: 600px) {
    /* Grid → Flex column */
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    /* Карточка товара - строка */
    .products-grid .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #E5E7EB !important;
        background: #fff !important;
        gap: 12px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    .products-grid .product-card:last-child {
        border-bottom: none !important;
    }
    
    /* Изображение - ссылка с картинкой */
    .products-grid .product-card .product-card-image {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #F9FAFB !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px !important;
    }
    
    .products-grid .product-card .product-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    /* Контент справа */
    .products-grid .product-card .product-card-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    
    /* Название */
    .products-grid .product-card .product-card-title {
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        color: #1A1A1A !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .products-grid .product-card .product-card-title a {
        color: inherit !important;
        text-decoration: none !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Скрыть SKU и описание */
    .products-grid .product-card .product-card-sku,
    .products-grid .product-card .product-card-desc {
        display: none !important;
    }
    
    /* Footer с ценой и кнопкой */
    .products-grid .product-card .product-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
    
    /* Цена */
    .products-grid .product-card .product-card-price {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        color: #1A1A1A !important;
        white-space: nowrap !important;
    }
    
    /* Кнопка - круглая иконка */
    .products-grid .product-card .btn-add-cart {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        font-size: 0 !important;
        border-radius: 10px !important;
        background: #006FFF !important;
        color: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        border: none !important;
    }
    
    .products-grid .product-card .btn-add-cart::before {
        content: '' !important;
        width: 18px !important;
        height: 18px !important;
        background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=white viewBox=0 0 24 24%3E%3Cpath d=M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z/%3E%3C/svg%3E) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    .products-grid .product-card .btn-add-cart::after {
        display: none !important;
        content: none !important;
    }
    
    /* Заголовок секции */
    .products-section .section-header {
        padding: 16px !important;
        margin-bottom: 0 !important;
    }
    
    .products-section .section-title {
        font-size: 1.125rem !important;
        margin: 0 !important;
    }
    
    .products-section .section-link {
        font-size: 0.8125rem !important;
    }
}

/* ==========================================================================
   FIX v8: LIST VIEW - Grid в одну колонку + кнопка корзины
   ========================================================================== */

@media (max-width: 600px) {
    /* Grid - принудительно одна колонка */
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    /* Карточка - горизонтальная строка */
    .products-grid .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #E5E7EB !important;
        background: #fff !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Изображение */
    .products-grid .product-card .product-card-image {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        flex-shrink: 0 !important;
        background: #F5F5F5 !important;
        border-radius: 8px !important;
        padding: 4px !important;
    }
    
    /* Контент */
    .products-grid .product-card .product-card-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    /* Название - полное */
    .products-grid .product-card .product-card-title,
    .products-grid .product-card .product-card-title a {
        font-size: 0.9375rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #1A1A1A !important;
        text-decoration: none !important;
    }
    
    /* Footer с ценой и кнопкой */
    .products-grid .product-card .product-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
    
    /* Цена */
    .products-grid .product-card .product-card-price {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        color: #1A1A1A !important;
    }
    
    /* Кнопка корзины - видимая круглая */
    .products-grid .product-card .btn-add-cart,
    .products-grid .product-card a.btn-add-cart {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 10px !important;
        background: #006FFF !important;
        border: none !important;
        padding: 0 !important;
        font-size: 0 !important;
        color: transparent !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
    }
    
    .products-grid .product-card .btn-add-cart::before {
        content: '' !important;
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=white viewBox=0 0 24 24%3E%3Cpath d=M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z/%3E%3C/svg%3E) !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    
    .products-grid .product-card .btn-add-cart::after {
        display: none !important;
    }
}

/* ==========================================================================
   FIX v8: HOMEPAGE VERTICAL CARDS - Вертикальные карточки на главной
   Переопределяем LIST VIEW только для .products-section на главной
   ========================================================================== */

@media (max-width: 768px) {
    /* Homepage sections - Grid 2 columns */
    .products-section .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 16px !important;
    }
    
    /* Vertical card layout */
    .products-section .product-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        padding: 12px !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: none !important;
        border-bottom: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    }
    
    /* Large image at top */
    .products-section .product-card .product-card-image,
    .products-section .product-card a.product-card-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        min-width: unset !important;
        margin-bottom: 12px !important;
        background: #F9FAFB !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px !important;
    }
    
    .products-section .product-card .product-card-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Content below image */
    .products-section .product-card .product-card-content {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }
    
    /* Title */
    .products-section .product-card .product-card-title,
    .products-section .product-card .product-card-title a {
        font-size: 0.8125rem !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        text-overflow: unset !important;
    }
    
    /* Hide SKU and description */
    .products-section .product-card .product-card-sku,
    .products-section .product-card .product-card-desc {
        display: none !important;
    }
    
    /* Footer with price and button - horizontal */
    .products-section .product-card .product-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: auto !important;
        padding: 0 !important;
        border-top: none !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Price */
    .products-section .product-card .product-card-price {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        color: #1A1A1A !important;
    }
    
    /* Blue cart button - icon only */
    .products-section .product-card .btn-add-cart,
    .products-section .product-card a.btn-add-cart {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background: #006FFF !important;
        color: transparent !important;
        font-size: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .products-section .product-card .btn-add-cart::before {
        content: '' !important;
        width: 18px !important;
        height: 18px !important;
        background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25z'/%3E%3C/svg%3E) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
    }
    
    .products-section .product-card .btn-add-cart::after {
        display: none !important;
    }
}

/* ==========================================================================
   FIX v9: MOBILE HEADER CLEANUP - Убираем дубли
   ========================================================================== */

@media (max-width: 768px) {
    /* Hide search bar in header on mobile (duplicated in bottom nav) */
    .search-bar-uicom {
        display: none !important;
    }
    
    /* Hide account icon in header on mobile (duplicated in bottom nav) */
    .header-actions .header-btn[aria-label="Аккаунт"],
    .header-actions .desktop-only {
        display: none !important;
    }
    
    /* Hide cart in header on mobile (duplicated in bottom nav) */
    .header-actions .cart-btn {
        display: none !important;
    }
    
    /* Show logo on mobile - ensure visibility */
    .site-logo {
        display: flex !important;
        align-items: center !important;
    }
    
    .site-logo .brand-logo {
        display: block !important;
        height: 28px !important;
        width: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Simplify header layout on mobile */
    .header-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        gap: 12px !important;
    }
    
    /* Menu toggle on left */
    .mobile-menu-toggle {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* Logo in center */
    .site-logo {
        order: 2 !important;
        flex: 1 !important;
        justify-content: center !important;
    }
    
    /* Empty space on right for balance (or minimal actions) */
    .header-actions {
        order: 3 !important;
        flex-shrink: 0 !important;
        width: 40px !important; /* Same as menu toggle for balance */
    }
    
    /* Hide desktop-only category nav */
    .category-nav-uicom {
        display: none !important;
    }
}

/* FIX v10: HIDE CATEGORY NAV ON MOBILE */
@media (max-width: 768px) {
    .category-nav-uicom,
    .category-nav,
    nav.category-nav-uicom,
    nav.category-nav {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Ensure logo is visible and proper size */
    .site-logo .brand-logo {
        height: 24px !important;
        width: auto !important;
        max-width: 140px !important;
    }
}

/* FIX v11: HERO CARDS - prevent cut off and fix scroll */
@media (max-width: 768px) {
    .hero-section,
    .hero-slider {
        overflow: visible !important;
    }
    
    .slider-container {
        overflow: visible !important;
    }
    
    .slider-track {
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 20px 24px 20px !important;
        margin: 0 -24px !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }
    
    .hero-card {
        flex: 0 0 calc(100vw - 48px) !important;
        scroll-snap-align: start !important;
        transform: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }
    
    .hero-card:hover,
    .hero-card:active {
        transform: translateY(-4px) !important;
    }
    
    /* Ensure badge is not cut off */
    .hero-card .badge,
    .hero-card .hero-badge {
        position: absolute !important;
        top: 16px !important;
        left: 16px !important;
        z-index: 10 !important;
    }
}

/* FIX v12: HERO CAROUSEL - correct selectors */
@media (max-width: 768px) {
    .hero-slider {
        overflow: visible !important;
        padding-top: 16px !important;
    }
    
    .hero-slider .container {
        overflow: visible !important;
    }
    
    .hero-carousel {
        overflow: visible !important;
        margin: 0 -16px !important;
        padding: 0 16px !important;
    }
    
    .hero-carousel-track {
        display: flex !important;
        gap: 16px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding: 16px 16px 20px !important;
        margin: 0 -16px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .hero-carousel-track::-webkit-scrollbar {
        display: none !important;
    }
    
    .hero-carousel-track .hero-card-uicom {
        flex: 0 0 calc(100vw - 48px) !important;
        min-width: calc(100vw - 48px) !important;
        scroll-snap-align: start !important;
        margin: 0 !important;
    }
}

/* FIX v13: HERO CAROUSEL OVERFLOW & SEARCH MODAL */

/* Fix hero card badge cutoff on hover - applies to ALL viewports */
.hero-carousel {
    overflow: visible !important;
}

.hero-carousel-track {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-top: 8px !important;
    margin-top: -8px !important;
}

.hero-carousel-card {
    overflow: visible !important;
}

/* Fix search modal display */
.search-modal {
    display: none;
}

.search-modal.active {
    display: block !important;
}

/* Responsive hero adjustments */
@media (max-width: 768px) {
    .hero-carousel-track {
        padding-top: 12px !important;
        margin-top: -12px !important;
    }
    
    .hero-carousel-card:hover {
        transform: translateY(-6px) !important;
    }
}

/* FIX v14: Mobile search icon - fix img instead of svg */
.mobile-search-input-wrapper img {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.mobile-search-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #E6E6E6 !important;
    background: #fff !important;
}

.mobile-search-input-wrapper {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    background-color: #F6F6F8 !important;
    border-radius: 10px !important;
}

.mobile-search-cancel {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #006FFF !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px 0 !important;
    white-space: nowrap !important;
}

/* ===========================================
   FIX v15: Product card footer - vertical layout like category page
   =========================================== */
.product-card-footer,
.products-section .product-card-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #F0F0F0 !important;
}

.product-card-price,
.products-section .product-card-price {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
}

.btn-add-cart,
.products-section .btn-add-cart {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px 16px !important;
    background: #006FFF !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.btn-add-cart:hover,
.products-section .btn-add-cart:hover {
    background: #0059CC !important;
    color: #fff !important;
}
