/* Контакты */
.social-links {
    display: flex;
    gap: 30px; /* Увеличиваем расстояние между иконками */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;  /* Увеличиваем размер контейнера */
    height: 50px; /* Увеличиваем размер контейнера */
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 3rem; /* Увеличиваем размер иконок */
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    transform: scale(1.1); /* Добавляем анимацию при наведении */
}


/* Хлебные крошки */
.breadcrumbs {
    background: var(--background-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-lighter);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* Детали товара */
.product-detail {
    padding: 3rem 0;
    background: var(--background);
}

.product-detail__content {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
    align-items: start;
}

.detail_product-price-section{
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}
/* Галерея */
img#main-image{
    object-fit: contain;
}
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.product-gallery__main {
    background: var(--background-light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-gallery__main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}


.product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-item.active {
    border-color: var(--primary-color);
}

.thumb-item:hover {
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}


.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.star {
    color: var(--border-color);
    font-size: 1.2rem;
}

.star.filled {
    color: #FFC107;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}




.product-old-price {
    font-size: 1.5rem;
    color: var(--text-lighter);
    text-decoration: line-through;
}

.product-discount {
    background: #FF4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}


.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.meta-label {
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    color: var(--primary-color);
    font-weight: 600;
}

.meta-value.in-stock {
    color: var(--primary-color);
}

/* Цена и действия */
.detail_product-price-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    min-width: 280px;
}

.detail_product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.detail_product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-old-price {
    font-size: 1.2rem;
    color: var(--text-lighter);
    text-decoration: line-through;
}

.product-discount {
    background: #FF4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Действия с товаром */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.product-actions span {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    white-space: pre-wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--background);
    justify-content: space-between;
}

.quantity-btn {
    background: var(--background);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-color);
    min-width: 44px;
}

.quantity-btn:hover {
    background: var(--background-dark);
}

#quantity {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    background: var(--background);
    padding: 0.75rem 0;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Особенности */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.2rem;
}

/* Вкладки */
.product-tabs {
    border-top: 1px solid var(--border-light);
    padding-top: 3rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Характеристики */
.specifications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tabs-content {
    max-width: 40%;
    min-width: 400px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--radius);
}

.spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    color: var(--text-color);
    font-weight: 600;
}

/* Отзывы */
.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius);
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
}


/* Адаптивность */
@media (max-width: 1024px) {
    .product-detail__content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .detail_product-price-container {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .product-actions {
        flex-direction: row;
        align-items: center;
    }
    
    .btn-add-to-cart {
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .product-detail {
        padding: 1.5rem 0;
    }
    
    .product-detail__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-gallery__main img {
        height: 300px;
    }
    
    .product-gallery__thumbs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .thumb-item {
        width: 50px;
        height: 50px;
    }
    
    .product-info-section {
        padding: 0;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .detail_product-price-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .detail_product-price-section {
        justify-content: center;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
    
    .tabs-header {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        text-align: left;
        padding: 1rem;
    }
    
    .tab-btn.active {
        border-bottom: 2px solid var(--primary-color);
        background: var(--primary-light);
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .spec-label,
    .spec-value {
        text-align: left;
        width: 100%;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 1rem 0;
    }
    
    .product-gallery__main img {
        height: 250px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .detail_product-price {
        font-size: 1.5rem;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .thumb-item {
        width: 45px;
        height: 45px;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .tab-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* Особые случаи для ландшафтной ориентации */
@media (max-width: 900px) and (orientation: landscape) {
    .product-gallery__main img {
        height: 350px;
    }
    
    .product-detail__content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Улучшения для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .thumb-item:hover {
        border-color: var(--border-color);
    }
    
    .thumb-item.active {
        border-color: var(--primary-color);
    }
    
    .btn-add-to-cart:hover {
        transform: none;
    }
    
    .quantity-btn:hover {
        background: var(--background);
    }
}