/**
 * OWEN Parser Frontend Styles
 * !B8;8 4;O >B>1@065=8O =>28=>: B>20@>2
 */

/* >=B59=5@ =>28=>: */
.owen-novelty-products {
    margin: 2rem 0;
}

/* !5:F8O :0B53>@88 */
.owen-category-section {
    margin-bottom: 3rem;
}

.owen-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

/* ">20@K =>28=:8 */
.owen-novelty-item {
    position: relative;
}

.owen-novelty-item .product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.owen-novelty-item .product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.owen-novelty-item:hover .product-image img {
    transform: scale(1.05);
}

/* ;59AE>;45@ 4;O B>20@>2 157 87>1@065=89 */
.product-image-placeholder .woocommerce-placeholder {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-image-placeholder .woocommerce-placeholder:before {
    content: "=�";
    font-size: 3rem;
    opacity: 0.5;
}

/* =D>@<0F8O > B>20@5 */
.owen-novelty-item .product-details {
    padding: 1rem 0;
}

.owen-novelty-item .woocommerce-loop-product__title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.owen-novelty-item .woocommerce-loop-product__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.owen-novelty-item .woocommerce-loop-product__title a:hover {
    color: #0073aa;
}

/* 5B08=D>@<0F8O */
.owen-product-meta {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.owen-product-meta .sku {
    font-weight: 500;
}

/* 5946 =>28=:8 */
.owen-novelty-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge.badge-new {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(238, 90, 36, 0.3);
}

.owen-date {
    color: #888;
    font-size: 0.8rem;
}

/* =>?:8 459AB289 */
.owen-novelty-item .product-action-wrap {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.owen-novelty-item .button {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.owen-novelty-item .button.alt {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.owen-novelty-item .button.alt:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.owen-novelty-item .button:not(.alt) {
    background: transparent;
    color: #0073aa;
    border-color: #0073aa;
}

.owen-novelty-item .button:not(.alt):hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

/* 40?B82=>ABL */
@media (max-width: 768px) {
    .owen-novelty-products .products {
        grid-template-columns: 1fr !important;
    }
    
    .owen-category-title {
        font-size: 1.3rem;
    }
    
    .owen-novelty-item .product-action-wrap {
        flex-direction: column;
    }
    
    .owen-novelty-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .owen-novelty-item .woocommerce-loop-product__title {
        font-size: 1rem;
    }
    
    .owen-novelty-item .button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* =8<0F88 703@C7:8 */
.owen-novelty-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.owen-novelty-item:nth-child(1) { animation-delay: 0.1s; }
.owen-novelty-item:nth-child(2) { animation-delay: 0.2s; }
.owen-novelty-item:nth-child(3) { animation-delay: 0.3s; }
.owen-novelty-item:nth-child(4) { animation-delay: 0.4s; }
.owen-novelty-item:nth-child(5) { animation-delay: 0.5s; }
.owen-novelty-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =B53@0F8O A WooCommerce AB8;O<8 */
.woocommerce .owen-novelty-products .products {
    margin: 0;
    padding: 0;
}

.woocommerce .owen-novelty-products .products li.product {
    margin-bottom: 2rem;
}

/* =D>@<0F8>==>5 A>>1I5=85 */
.woocommerce-info {
    background: #f7f7f7;
    border-left: 4px solid #0073aa;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-size: 1rem;
    color: #555;
}

.woocommerce-info:before {
    content: "9";
    margin-right: 0.5rem;
}

/* Дополнительные стили для локальных товаров */

/* Цена товара */
.owen-novelty-item .price-wrapper {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.owen-novelty-item .price-wrapper .price {
    color: #0073aa;
}

/* Статус наличия */
.stock-status {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-status .in-stock {
    color: #46b450;
}

.stock-status .out-of-stock {
    color: #dc3232;
}

/* Категория ОВЕН */
.owen-category {
    margin: 0.5rem 0;
}

.owen-category small {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

/* Обновление кнопок действий */
.owen-novelty-item .product-action-wrap {
    flex-wrap: wrap;
}

.owen-novelty-item .button {
    min-width: 80px;
}

/* Специальная кнопка ОВЕН */
.owen-novelty-item .button.owen-link {
    flex: 0 0 auto;
    min-width: 60px;
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
}

.owen-novelty-item .button.owen-link:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: white;
}