/* Стиль карточек продуктов */
.tech-item, .attachment-item {
    background: linear-gradient(145deg, #333, #111);
    padding: 20px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Убираем фиксированную ширину для Grid */
}

.tech-item img, .attachment-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tech-item:hover img, .attachment-item:hover img {
    transform: scale(1.05);
}

.tech-item::before, .attachment-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 196, 15, 0.1); /* Цвет полупрозрачной подсветки */
    transition: opacity 0.5s ease; /* Плавная анимация */
    opacity: 0; /* Начальная прозрачность */
}

.tech-item:hover::before, .attachment-item:hover::before {
    opacity: 1; /* Полная видимость при наведении */
}

.tech-item:hover, .attachment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(241, 196, 15, 0.3);
}

.tech-item h3, .attachment-item h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f1c40f;
    transition: color 0.3s ease;
}

.tech-item p, .attachment-item p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.tech-item button, .attachment-item button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    background-color: #f1c40f;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tech-item button:hover, .attachment-item button:hover {
    background-color: #e2b109;
    transform: scale(1.05);
}








.product-actions {
    display: flex;
    justify-content: center;
    align-items: center;

}

.product-actions .add-to-cart-btn,
.product-actions .open-cart-btn {
     z-index: 8;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #3c3c3c;
    color: #272626;
    transition: background-color 0.3s ease;
}

.product-actions .open-cart-btn {
    background-color: #e2b109; /* Зеленая кнопка для оформления заказа */
}

.product-actions .add-to-cart-btn:hover,
.product-actions .open-cart-btn:hover {
    background-color: #616161;
}

.product-actions .open-cart-btn:hover {
    background-color: #e2b109;
}

.product-actions .add-to-cart-btn {
    font-size: 16px;
}