/* Страница товара */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Основная информация */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 20px;
}
.main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* ← теперь изображение не обрезается */
}
.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: var(--white);
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
}

/* Детали товара */
.product-details h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
}

.stock.in-stock {
    color: #27ae60;
}

.stock.out-of-stock {
    color: #e74c3c;
}

/* Цена */
.product-price-block {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.prices {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Описание */
.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.product-description p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Покупка */
.product-buy {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 16px;
}

.qty-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

#quantity {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-left: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
}

.add-to-cart-large {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Преимущества */
.product-features {
    display: grid;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 28px;
    color: var(--secondary-color);
}

.feature strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feature p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Похожие товары */
.similar-products {
    margin: 80px 0;
}

/* Адаптивность */
@media (max-width: 968px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-buy {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
    }
}