

/* Start:/bitrix/templates/modern_market/components/bitrix/catalog.section/main_products_grid/style.css?17707840535896*/
/* Modern Product Card Styles */
:root {
    --primary-color: #C21F39;
    --primary-hover: #a51a30;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --radius-md: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.favorite-btn:hover {
    background: #fff;
    color: var(--danger-color);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--danger-color);
}

.product-image-link {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: transparent;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    background-color: #f3f4f6;
}

/* Заглушка для отсутствующих изображений */
.product-image--placeholder {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image--placeholder::before {
    content: "";
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    flex-grow: 1;
}

.product-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-price {
    margin-top: auto;
    margin-bottom: 1rem;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.price-old {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-installment {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #9aa1ad;
    line-height: 1.2;
}

.price-request {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-cart {
    width: 100%;
    padding: 0.75rem;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: none;
    position: relative;
}

.btn-cart:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(194, 31, 57, 0.25);
    transform: translateY(-1px);
}

.btn-cart:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(194, 31, 57, 0.2);
}

.btn-cart svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-cart:disabled,
.btn-cart.btn-cart--in-basket {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border-color: var(--success-color);
    cursor: default;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-cart:disabled:hover,
.btn-cart.btn-cart--in-basket:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.product-status {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Pagination */
.catalog-pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
/* End */
/* /bitrix/templates/modern_market/components/bitrix/catalog.section/main_products_grid/style.css?17707840535896 */
