.product-card {
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card .img-container {
    position: relative;
    padding-top: 100%; /* Соотношение сторон 1:1 */
    overflow: hidden;
    cursor: pointer;
}

.product-card .img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: center;
}

.product-card .card-title:hover {
    color: #0056b3;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #468C25;
    text-align: center;
}

.product-card .package-select {
    margin-top: auto;
    min-height: 31px; /* Высота select в Bootstrap */
}

.product-card .package-select select {
    width: 100%;
}

.product-card .form-select-sm {
    font-size: 0.875rem;
}

.product-card .input-group-sm {
    max-width: 120px;
    margin: 0 auto;
}

.product-card .input-group-sm input {
    text-align: center;
}

/* Скрываем стрелочки в поле ввода количества */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.product-card .cart-controls {
    margin-top: auto;
}

/* Стили для мобильных устройств */
@media (max-width: 767.98px) {
    .product-card .card-title {
        font-size: 0.9rem;
    }
    
    .product-card .price {
        font-size: 1rem;
    }
    
    .product-card .form-select-sm {
        font-size: 0.8rem;
    }
    
    .product-card .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

.category-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
} 