.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.expanded-product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Бэйджи товаров - адаптированные для мобильных */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

/* ✅ Бейджи */
.product-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  min-width: 56px;
  text-align: center;
}

.popular-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.new-badge {
  background: linear-gradient(135deg, #51cf66, #40c057);
}

.best-badge {
  background: linear-gradient(135deg, #ffd43b, #fcc419);
  color: #333;
}

.product-image {
    height: 140px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 120px !important;
  padding: 20px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-gray);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 2;
}


.product-title:hover {
    color: var(--primary-yellow);
}

.product-image-link {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.spec-item i {
    width: 16px;
    color: var(--primary-yellow);
    font-size: 0.8rem;
}

.product-price {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Рейтинг товара - компактный */
.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 8px 0;
    color: #ffb300;
    font-size: 0.85rem;
    min-height: 20px;
}

.product-rating .far.fa-star {
    color: #e0e0e0;
}

.rating-count {
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin-left: 4px;
}

/* Действия с товаром - компактные */
.product-actions {
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.action-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.action-btn:hover {
    color: var(--primary-yellow);
    background: rgba(255, 179, 0, 0.1);
}

@media (max-width: 360px) {
    .product-image {
        height: 120px;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 130px;
    }
    
    .product-info {
        padding: 10px;
    }
}

@media (min-width: 1200px) {
    .product-image {
        height: 200px;
    }
    
    .products-grid {
        gap: 30px;
    }
    
    .promo-grid {
        gap: 30px;
    }
}

.product-stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin: 8px 0;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.product-stock-status.in-stock {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.product-stock-status.out-of-stock {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ff8f00;
}

.product-stock-status i {
    font-size: 0.8rem;
}

.out-of-stock-label {
    z-index: 2;
    opacity: 0.5;
}

/* Для мобильных */
@media (max-width: 768px) {
    .product-stock-status {
        font-size: 0.8rem;
        padding: 3px 6px;
        margin: 6px 0;
    }
    
    .product-stock-status span {
        font-size: 0.75rem;
    }

    .product-badge {
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 9px;
        font-weight: 700;
        color: white;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        min-width: 56px;
        text-align: center;
    }
}