/* Стили для страниц товаров */

/* Хлебные крошки */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Детали товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 30px 0 60px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
    width: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Убираем миниатюры */
.thumbnails {
    display: none;
}

/* Информация о товаре */
.product-info {
    padding: 0;
    width: 100%;
}

.product-info h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-price {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    width: 100%;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.price-note {
    color: #666;
    font-size: 0.9rem;
    display: block;
    line-height: 1.4;
}

.product-specs {
    margin-bottom: 30px;
    width: 100%;
}

.product-specs h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-specs h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li strong {
    min-width: 180px;
    color: var(--secondary-color);
    font-weight: 600;
    flex-shrink: 0;
    padding-right: 15px;
}

.product-specs li span {
    color: #555;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 30px;
}

.btn-order-big {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
    text-align: center;
    min-width: 200px;
    border: none;
    cursor: pointer;
}

.btn-order-big:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(202, 160, 86, 0.3);
}

.btn-call {
    padding: 15px 30px;
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
    text-align: center;
    min-width: 200px;
}

.btn-call:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Описание товара */
.product-description {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 60px;
    grid-column: 1 / -1;
    width: 100%;
}

.product-description h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description h2 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.product-description h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-description p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-description li {
    padding: 10px 0 10px 25px;
    color: #555;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.product-description li:last-child {
    border-bottom: none;
}

.product-description li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.product-description li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Таблица характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
}

.specs-table th {
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.specs-table th:last-child {
    border-right: none;
}

.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    vertical-align: top;
}

.specs-table td:last-child {
    border-right: none;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Дополнительная информация */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-card h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Убираем лишние секции */
.examples-gallery,
.video-review,
.reviews-section,
.related-products {
    display: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .main-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-info h1 {
        font-size: 2rem;
    }

    .product-specs li {
        flex-direction: column;
        gap: 5px;
    }

    .product-specs li strong {
        min-width: auto;
        padding-right: 0;
    }

    .price {
        font-size: 1.8rem;
    }

    .product-description {
        padding: 25px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-order-big,
    .btn-call {
        min-width: 100%;
    }

    .additional-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 280px;
    }

    .product-info h1 {
        font-size: 1.8rem;
    }

    .specs-table {
        font-size: 0.85rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px;
    }

    .info-card {
        padding: 20px;
    }
}

/* Улучшение отступов */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Убираем лишние отступы */
.product-page {
    padding: 20px 0 60px;
}

/* Обеспечиваем одинаковую высоту колонок */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.product-gallery,
.product-info {
    display: flex;
    flex-direction: column;
}

/* Картинка занимает всю доступную высоту */
.main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .product-detail {
        gap: 40px;
    }

    .product-info h1 {
        font-size: 2.2rem;
    }

    .additional-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Планшеты в портретной ориентации */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px 0 40px;
    }

    .main-image {
        height: 350px;
        max-height: 50vh;
    }

    .product-info h1 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .price {
        font-size: 2rem;
    }

    .product-description {
        padding: 25px;
        margin-bottom: 40px;
    }

    .product-description h2 {
        font-size: 1.6rem;
    }

    .additional-info {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .specs-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .specs-table table {
        min-width: 600px;
    }
}

/* Телефоны */
@media (max-width: 576px) {
    .breadcrumbs {
        padding: 12px 0;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-image {
        height: 280px;
        min-height: 200px;
    }

    .product-info h1 {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .product-price {
        padding: 15px;
        border-radius: 8px;
    }

    .price {
        font-size: 1.8rem;
    }

    .product-specs {
        margin-bottom: 20px;
    }

    .product-specs h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .product-specs li {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }

    .product-specs li strong {
        min-width: auto;
        padding-right: 0;
        font-size: 0.95rem;
    }

    .product-specs li span {
        font-size: 0.9rem;
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .btn-order-big,
    .btn-call {
        width: 100%;
        min-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: center;
        text-align: center;
    }

    .product-description {
        padding: 20px;
        border-radius: 12px;
    }

    .product-description h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .product-description h3 {
        font-size: 1.2rem;
        margin: 20px 0 12px;
    }

    .product-description p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }

    .product-description li {
        padding: 8px 0 8px 20px;
        font-size: 0.9rem;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .info-card p {
        font-size: 0.9rem;
    }
}

/* Маленькие телефоны */
@media (max-width: 400px) {
    .product-info h1 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 1.6rem;
    }

    .main-image {
        height: 220px;
        min-height: 180px;
    }

    .product-description h2 {
        font-size: 1.3rem;
    }

    .product-actions {
        gap: 10px;
    }

    .btn-order-big,
    .btn-call {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .product-detail {
        flex-direction: row;
        gap: 20px;
    }

    .product-gallery {
        flex: 1;
    }

    .product-info {
        flex: 1;
    }

    .main-image {
        height: 250px;
        max-height: 70vh;
    }

    .product-info h1 {
        font-size: 1.4rem;
        text-align: left;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* Для очень высоких экранов */
@media (max-width: 768px) and (min-height: 800px) {
    .main-image {
        height: 350px;
        max-height: 40vh;
    }

    .product-info h1 {
        font-size: 1.9rem;
    }
}

/* Исправления для iOS */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .breadcrumbs {
            -webkit-overflow-scrolling: touch;
        }

        .specs-table {
            -webkit-overflow-scrolling: touch;
        }

        .btn-order-big,
        .btn-call {
            -webkit-appearance: none;
        }
    }
}

/* Для планшетов в альбомной ориентации */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }

    .main-image {
        height: 350px;
    }
}

