/* Контейнер для breadcrumbs и иконок */
.breadcrumbs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    min-height: 40px;
}

/* Иконки избранного и поделиться - всегда справа */
.product-actions-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.favorite-heart-btn,
.share-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
}

.favorite-heart-btn:hover,
.share-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.share-icon-btn svg {
    width: 28px;
    height: 28px;
    stroke: #666;
    stroke-width: 1;
    fill: transparent;
    transition: all 0.2s ease;
}

.favorite-heart-btn svg {
    width: 26px;
    height: 26px;
    stroke: #666;
    stroke-width: 1;
    fill: transparent;
    transition: all 0.2s ease;
}

.favorite-heart-btn.active svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

.favorite-heart-btn:hover svg {
    stroke: #e74c3c;
}

.share-icon-btn:hover svg {
    stroke: #0071e3;
}

.breadcrumbs {
    font-size: 14px;
    flex: 1;
}

.breadcrumbs a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
    font-weight: bold;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: #495057;
    font-weight: bold;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #adb5bd;
    font-weight: bold;
}

.product-card {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: none;
    border-radius: 0;
}

.product-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-gallery {
    display: flex;
    gap: 15px;
    flex: 0 0 580px;
    position: relative;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
    max-height: 500px;
}

.thumbnails::-webkit-scrollbar {
    width: 8px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.thumbnails::-webkit-scrollbar-track {
    background-color: #f9f9f9;
}

.thumbnail {
    width: 70px;
    height: 95px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    box-sizing: border-box;
}

.thumbnail:hover {
    border-color: #0071e3;
    box-shadow: 0 0 5px rgba(0, 113, 227, 0.3);
}

.thumbnails div {
    width: 70px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    flex: 1;
    width: 100%;
    display: block;
}

.image-container {
    position: relative;
    width: 100%;
    cursor: zoom-in;
    display: block;
}

.zoomable {
    width: 100%;
    height: auto;
    max-height: 900px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    vertical-align: top;
}

.zoom-lens {
    position: absolute;
    cursor: none;
    pointer-events: none;
    display: none;
}

.image-container:hover .zoom-lens {
    display: block;
}

.product-info {
    flex: 1 1 380px;
}

.product-title {
    font-size: 22px;
    margin: 0 0 15px;
    color: #333;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.rating svg {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.rating .review-icon {
    font-size: 16px;
    color: #ffa500;
}

.rating .store-rating,
.rating .review-count {
    font-weight: bold;
    color: #000;
    font-size: 14px;
}

.review-count {
    color: #666;
    font-size: 16px;
}

.product-right-column {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-actions-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    font-size: 18px;
    color: #e74c3c;
    font-weight: 500;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-button {
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
    font-weight: 500;
    background-color: #0071e3;
    color: #fff;
}

.cart-button:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.delivery-info {
    font-size: 16px;
    color: #555;
    padding: 5px;
}

/* === КОМПАКТНЫЙ БЛОК ИНФОРМАЦИИ О МАГАЗИНЕ === */
.seller-info-compact {
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.store-name-text {
    font-weight: 600;
    color: #555;
    font-size: 14px;
    flex: 1;
}

.store-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-link-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-link {
    font-size: 12px;
    color: #4361ee;
    text-decoration: none;
    transition: color 0.2s ease;
}

.store-link:hover {
    color: #3a56d4;
    text-decoration: underline;
}

.store-rating-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

.seller-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.seller-action-btn:hover {
    background: #fff;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-btn:hover {
    color: #007bff;
    border-color: #007bff;
}

.message-btn:hover {
    color: #28a745;
    border-color: #28a745;
}

.product-bottom {
    margin-top: 20px;
}

.product-description h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.product-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .breadcrumbs-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 15px 20px;
    }
    
    .product-actions-icons {
        position: static;
        transform: none;
        align-self: center;
    }
    
    .favorite-heart-btn svg,
    .share-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .breadcrumbs {
        flex: 1;
        margin-right: 15px;
    }

    .product-top {
        flex-direction: column;
        gap: 15px;
    }

    .product-gallery {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        width: 100%;
    }

    .thumbnail {
        width: 70px;
        height: 95px;
    }

    .product-info {
        max-width: 100%;
    }

    .product-right-column {
        flex: 1 1 100%;
        max-width: 100%;
        gap: 12px;
    }
    
    .seller-info-compact {
        padding: 10px 12px;
    }
    
    .store-name-text {
        font-size: 13px;
    }
    
    .store-link {
        font-size: 11px;
    }
    
    .store-rating-compact {
        font-size: 11px;
    }
    
    .seller-action-btn {
        width: 28px;
        height: 28px;
    }
    
    .seller-action-btn svg {
        width: 14px;
        height: 14px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 22px;
    }

    .cart-button {
        font-size: 16px;
    }

    .product-description h2 {
        font-size: 18px;
    }

    .product-description p {
        font-size: 14px;
    }
}

.product-characteristics {
    margin-top: 10px;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
}

.characteristic-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.characteristic-label {
    font-weight: 600;
    color: #aaa;
    margin-right: 8px;
}

.characteristic-value {
    text-align: right;
    display: inline-block;
    max-width: 400px;
    word-wrap: break-word;
    color: #555;
    line-height: 1.5;
}

.toggle-text {
    cursor: pointer;
    font-size: 14px;
    color: #555;          
    display: inline-block;
    margin-left: 4px;
    text-decoration: none; 
    line-height: 1.5;
}

.full-characteristics-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 500px;
    min-width: 280px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
    padding: 20px 20px 20px 50px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.full-characteristics-panel.open {
    transform: translateX(0);
}

.full-characteristics-panel h3.product-full-name {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.full-characteristics-panel .product-full-description {
    margin-top: 20px;
    line-height: 1.5;
}

.full-characteristics-panel .product-full-description strong {
    display: block;
    margin-bottom: 5px;
}

.full-characteristics-panel .close-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    user-select: none;
}

.full-characteristics-panel .close-panel:hover {
    color: #555;
}

#showFullCharacteristics {
    display: inline-block;
    padding: 6px 8px;
    margin-left: 0;
    background-color: #e0e0e0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-align: left;
}

#showFullCharacteristics:hover {
    background-color: #d5d5d5;
    transform: translateY(-1px);
}

#showFullCharacteristics:active {
    transform: translateY(1px);
}