.mattress-product-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.mattress-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 14px;
}

.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #007bff;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 600;
}

.breadcrumb-divider {
    color: #adb5bd;
}

.mattress-product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Стили для медиа-секции */
.main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-mattress-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image-container:hover .main-mattress-image {
    transform: scale(1.02);
}

.image-badges {
    position: absolute;
    top: 15px;
    right: 15px; /* Изменено left на right */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.discount-badge { background: #e74c3c; }
.new-badge { background: #2ecc71; }
.popular-badge { background: #f39c12; }

.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail-item.active {
    border-color: #007bff;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.feature-card i {
    font-size: 24px;
    color: #007bff;
}

.feature-card div {
    display: flex;
    flex-direction: column;
}

.feature-card strong {
    font-size: 12px;
    color: #495057;
}

.feature-card span {
    font-size: 11px;
    color: #6c757d;
}

/* Стили для информационной панели */
.mattress-info-panel {
    padding: 30px;
    height: 100%;
}

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

.brand-section {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.brand-name {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.sku {
    color: #6c757d;
    font-size: 12px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.stars-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-value {
    font-weight: 600;
    color: #f39c12;
}

.reviews-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.views-count {
    color: #6c757d;
    font-size: 14px;
}

.pricing-block {
    margin-bottom: 25px;
}

.old-price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.old-price {
    font-size: 18px;
    color: #6c757d;
    text-decoration: line-through;
}

.discount-percent {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.price-note {
    color: #6c757d;
    font-size: 12px;
}

.short-description {
    margin-bottom: 25px;
}

.short-description p {
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
}

.size-selection-block {
    margin-bottom: 30px;
}

.block-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.size-option-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option-card:hover {
    border-color: #007bff;
}

.size-option-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
}

.size-value {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.size-price {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.purchase-block {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.quantity-block {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-block label {
    font-weight: 600;
    color: #495057;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #f8f9fa;
}

.qty-input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: white;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-add-to-cart, .btn-buy-now {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart.primary {
    background: #28a745;
    color: white;
}

.btn-add-to-cart.primary:hover {
    background: #218838;
}

.btn-buy-now.secondary {
    background: #007bff;
    color: white;
}

.btn-buy-now.secondary:hover {
    background: #0056b3;
}

.wishlist-compare {
    display: flex;
    gap: 10px;
}

.wishlist-btn, .compare-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.wishlist-btn:hover, .compare-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.product-meta-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.meta-item i {
    width: 16px;
    color: #007bff;
}

.in-stock {
    color: #28a745;
}

/* Стили для табов */
.details-tabs {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.tab-headers {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-header {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
    position: relative;
    font-size: 18px;
}

.tab-header.active {
    background: white;
    color: #007bff;
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #007bff;
}

.reviews-count {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .media-features {
        grid-template-columns: 1fr;
    }
    
    .size-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mattress-product-card .row {
        flex-direction: column;
    }
    
    .main-mattress-image {
        height: 70%;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
}

