/* ===== МОДЕРНА ПРОДУКТОВА СТРАНИЦА ===== */

/* Основни променливи - наследяват от category-improved.css */
:root {
    --primary-color: #fcb900;
    --primary-hover: #e6a600;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s ease;
    --base-font-size: 16px;
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
}

/* ===== HERO СЕКЦИЯ ===== */
.modern-product-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.hero-content {
    text-align: left;
}

.breadcrumbs-modern {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 14px;
}

/* Мобилен стил за breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs-modern {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumbs-modern::-webkit-scrollbar {
        height: 4px;
    }
    
    .breadcrumbs-modern::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 2px;
    }
    
    .breadcrumbs-modern::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .breadcrumbs-modern::-webkit-scrollbar-thumb:hover {
        background: black;
    }
    
    .breadcrumb-home,
    .breadcrumb-link,
    .breadcrumb-current {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .breadcrumb-separator {
        flex-shrink: 0;
    }
}

.breadcrumb-home,
.breadcrumb-link {
    color: black;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-home:hover,
.breadcrumb-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-separator {
    color: black;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== ОСНОВЕН LAYOUT ===== */
.product-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* ===== ГАЛЕРИЯ С ИЗОБРАЖЕНИЯ ===== */
.product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    margin-bottom: 1.5rem;
}

.main-image-container {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: var(--transition);
}

.main-product-image:hover {
    transform: scale(1.05);
}

/* Значки на продукта */
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge.discount {
    background: var(--error-color);
    color: white;
}

.badge.new {
    background: var(--success-color);
    color: white;
}

.badge.out-of-stock {
    background: #6c757d;
    color: white;
}

/* Thumbnails галерия */
.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--bg-light);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(252, 185, 0, 0.2);
}

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

/* ===== ЗАГЛАВИЕ НА ПРОДУКТА ===== */
.product-title-section {
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.title-with-badges {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.product-title-section .product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 300px;
}

.title-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Баджове в заглавието */
.availability-badge,
.rating-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    white-space: nowrap;
}

.availability-badge {
    border: 2px solid transparent;
}

.availability-badge.in-stock {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
}

.availability-badge.pre-order {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #f1c40f;
}

.availability-badge.out-of-stock {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
}


.availability-badge i {
    font-size: 16px;
}

/* ===== ИНФОРМАЦИЯ ЗА ПРОДУКТА ===== */
.product-info-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Рейтинг преглед в основната информация */
.rating-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.rating-info.no-rating {
    opacity: 0.7;
}

.rating-preview .rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-preview .rating-stars i {
    font-size: 18px;
    color: #ddd;
}

.rating-preview .rating-stars i.active {
    color: var(--primary-color);
}

.rating-preview .rating-text {
    color: black;
    font-size: 15px;
    font-weight: 600;
}

.btn-rating-action {
    padding: 0.75rem 1.5rem;
    background: white;
    color: black;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-rating-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(252, 185, 0, 0.1);
    text-decoration: none;
}

.btn-rating-action.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-rating-action.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    text-decoration: none;
}


/* Свързани продукти преглед */
.related-products-preview {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.related-products-preview h4 {
    margin: 0 0 1rem 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-products-preview h4 i {
    color: var(--primary-color);
}

.related-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-product-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    text-decoration: none;
    color: inherit;
}

.related-product-image {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    flex-shrink: 0;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    flex: 1;
}

.related-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.related-product-price {
    font-size: 13px;
    color: var(--error-color);
    font-weight: 600;
}

/* Единен бокс за покупка */
.product-purchase-box {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
    position: relative;
}

/* Значка с отстъпката в горния десен ъгъл */
.discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
}

.discount-amount {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    display: inline-block;
    transform: rotate(-5deg);
    animation: pulse-discount 2s infinite;
}

@keyframes pulse-discount {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
    }
    50% {
        transform: rotate(-5deg) scale(1.05);
    }
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-small);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 15px;
}

.meta-label {
    color: black;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-value {
    color: black;
    font-weight: 600;
}

.delivery-icon {
    color: var(--error-color);
    font-size: 16px;
}

/* ===== ЦЕНА В БОКСА ===== */
.product-purchase-box .product-pricing {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.promo-validity {
    background: var(--warning-color);
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.price-container {
    text-align: center;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 20px;
    display: block;
}

.current-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-bgn {
    color: var(--error-color);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.price-eur {
    color: var(--error-color);
    font-size: 26px;
    font-weight: 800;
}

/* ===== ДЕЙСТВИЯ С ПРОДУКТА В БОКСА ===== */
.product-purchase-box .product-actions {
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Количество селектор */
.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-label {
    font-weight: 600;
    color: black;
    font-size: 15px;
}

.quantity-controls {
    display: flex;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-light);
    color: black;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 80px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: black;
    background: white;
}

.quantity-input:focus {
    outline: none;
    background: var(--bg-light);
}

/* Бутони за действия */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-to-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.secondary-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(252, 185, 0, 0.1);
}

.btn-secondary.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== КРЕДИТНА ИНФОРМАЦИЯ ===== */
.credit-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f1c40f;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.credit-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 15px;
    color: #856404;
}

.credit-highlight i {
    font-size: 18px;
    color: var(--primary-color);
}

.credit-calculator-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.credit-calculator-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ===== БЪРЗА ПОРЪЧКА ===== */
.fast-order-section {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.fast-order-header h3 {
    margin: 0 0 1rem 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fast-order-header i {
    color: var(--primary-color);
    font-size: 20px;
}

.fast-order-alerts {
    margin-bottom: 1rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert .close {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
}

.alert .close:hover {
    opacity: 1;
}

.fast-order-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.fast-order-form .form-row .form-group {
    margin-bottom: 5px;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 185, 0, 0.1);
}

.btn-fast-order {
    padding: 0.75rem 1.5rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    max-width: 100px;
}

.btn-fast-order:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* ===== ВРЪЗКА КЪМ КАТЕГОРИЯТА ===== */
.category-link {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.view-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.view-category-btn:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== OUT OF STOCK СЪОБЩЕНИЕ ===== */
.out-of-stock-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.out-of-stock-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.out-of-stock-message h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.out-of-stock-message p {
    font-size: 1rem;
    margin: 0;
}

/* ===== СЕКЦИИ С ИНФОРМАЦИЯ (БЕЗ ТАБОВЕ) ===== */
.product-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-section {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease;
}

.section-header {
    background: transparent;
    padding: 0;
    border-bottom: none;
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.section-content {
    padding: 0;
}

.description-text {
    color: black;
    line-height: 1.7;
    font-size: 16px;
}

.description-text p {
    margin-bottom: 1rem;
}

.description-text h3,
.description-text h4 {
    color: black;
    margin: 1.5rem 0 1rem 0;
}

.description-text ul,
.description-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.description-text li {
    margin-bottom: 0.5rem;
}

/* ===== СПЕЦИФИКАЦИИ ===== */
.specifications-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    max-width: 800px;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.spec-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.spec-label {
    background: transparent;
    padding: 0.5rem 0;
    font-weight: 600;
    color: var(--text-color);
    border-right: none;
}

.spec-value {
    padding: 0.5rem 0;
    color: black;
}

.brand-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.brand-link:hover {
    text-decoration: underline;
}

/* ===== ИНСТРУКЦИИ ===== */
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.instruction-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.instruction-card:hover {
    border-color: var(--primary-color);
    background: rgba(252, 185, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: inherit;
}

.instruction-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.instruction-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 700;
    color: black;
}

.instruction-info p {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    color: black;
}

.file-type {
    font-size: 12px;
    color: black;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== ОТЗИВИ ===== */
.reviews-section .reviews-header {
    margin-bottom: 2rem;
}

.reviews-section .section-content {
    max-width: none; /* Отзивите заемат цялата ширина */
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.rating-overview {
    text-align: center;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    font-size: 20px;
    color: #ddd;
}

.rating-stars i.active {
    color: var(--primary-color);
}

.rating-count {
    font-size: 14px;
    color: black;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 30px;
    align-items: center;
    gap: 1rem;
    font-size: 14px;
}

.star-label {
    color: black;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.count {
    color: black;
    text-align: right;
}

/* Добавяне на отзив */
.add-review-section {
    margin: 2rem 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.btn-add-review {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-review:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.add-review-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.add-review-form h3 {
    margin: 0 0 1.5rem 0;
    font-size: 18px;
    color: black;
}

.rating-input {
    margin-bottom: 1.5rem;
}

.rating-input label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: black;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    direction: ltr;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star-label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating .star-label:hover,
.star-rating .star-label.active {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-submit {
    padding: 0.75rem 1.5rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Филтри за отзиви */
.reviews-filters {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-small);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: black;
    font-size: 14px;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Списък с отзиви */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-rating {
    display: flex;
    gap: 0.15rem;
}

.review-rating i {
    font-size: 14px;
    color: #ddd;
}

.review-rating i.active {
    color: var(--primary-color);
}

.review-date {
    font-size: 13px;
    color: black;
}

.review-text {
    color: black;
    line-height: 1.6;
    font-size: 15px;
}

.no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: black;
}

.no-reviews i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-reviews p {
    font-size: 16px;
    margin: 0;
}

/* ===== СВЪРЗАНИ ПРОДУКТИ ===== */
.related-products-section {
    margin-bottom: 4rem;
}

.related-products-section .section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.related-products-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.related-products-section .section-header i {
    color: var(--primary-color);
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    overflow-x: visible;
    padding: 1rem 0;
}

/* Адаптивен layout за различни бройки продукти */
.products-slider:has(.product-slide:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
}

.products-slider:has(.product-slide:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.products-slider:has(.product-slide:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

/* Fallback за браузъри без :has() поддръжка */
@supports not selector(:has(*)) {
    .products-slider.single-product {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .products-slider.two-products {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 0 auto;
    }
    
    .products-slider.three-products {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

.product-slide {
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    width: auto;
}

/* Използваме същите стилове като в категорийната страница */
.products-slider .product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.products-slider .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Изображение на продукта */
.products-slider .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-light);
}

.products-slider .image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.products-slider .main-image,
.products-slider .hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.products-slider .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover ефект само ако има втора снимка */
.products-slider .product-card:hover .hover-image {
    opacity: 1;
}

.products-slider .product-card:hover .main-image {
    opacity: 0;
}

/* Ако няма втора снимка, не правим hover ефект */
.products-slider .product-card:not(.has-hover-image):hover .main-image {
    opacity: 1;
}

/* Контрол на видимостта на бутоните */
.products-slider .list-only {
    display: none;
}

/* Позиционираме бутоните в мрежовия изглед спрямо снимката */
.products-slider .product-image {
    position: relative;
}

/* Действия за продукта в мрежа - позиционирани в снимката */
.products-slider .product-actions.grid-only {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 5;
}

.products-slider .grid-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    justify-content: center;
}

.products-slider .product-card:hover .grid-actions {
    opacity: 1;
    transform: translateY(0);
}

.products-slider .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.products-slider .action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.products-slider .action-btn.active {
    background: var(--primary-color);
    color: white;
}

.products-slider .add-to-cart {
    background: var(--primary-color);
    color: white;
}

.products-slider .add-to-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Информация за продукта */
.products-slider .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-slider .product-title {
    margin: 0 0 1rem;
    font-size: 18px; /* Увеличен размер с още 4px */
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

.products-slider .product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.products-slider .product-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.products-slider .product-price {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.products-slider .price-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.products-slider .old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
    order: -1; /* Показваме я първа (отгоре) */
}

.products-slider .current-price, 
.products-slider .price-secondary {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
}

/* ===== МОБИЛЕН БУТОН ЗА КОЛИЧКА В GRID VIEW ===== */
.products-slider .mobile-cart-button {
    display: none; /* Скрит по подразбиране */
    margin-top: 1rem;
}

.products-slider .mobile-add-to-cart {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    min-height: 36px;
}

.products-slider .mobile-add-to-cart:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.products-slider .mobile-add-to-cart:disabled {
    background: var(--text-light);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Показваме мобилния бутон само на мобилни устройства в grid view */
@media (max-width: 768px) {
    .products-slider .mobile-cart-button {
        display: block;
    }
    
    /* Скриваме hover бутоните (за сравнение и любими) в grid view на мобилни */
    .products-slider .product-actions.grid-only .grid-actions .compare-btn,
    .products-slider .product-actions.grid-only .grid-actions .wishlist-btn {
        display: none !important;
    }
}

/* ===== МОБИЛЕН ФИКСИРАН БУТОН ===== */
.mobile-purchase-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.mobile-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--error-color);
}

.mobile-add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.mobile-add-to-cart:hover {
    background: var(--primary-hover);
}

.mobile-purchase-bar .mobile-add-to-cart {
    max-width: 160px;
}
.hidden_vnoska {
    display: none;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideInUp 0.5s ease forwards;
}

/* ===== RESPONSIVE ДИЗАЙН ===== */

@media (max-width: 1200px) {
    .product-layout {
        gap: 3rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .products-slider {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .product-purchase-box {
        grid-column: 1 / -1;
        order: 3;
        position: static;
    }
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
        order: 1;
    }
    
    .product-info-main {
        order: 2;
    }
    
    .product-purchase-box {
        order: 3;
        position: static;
    }
    
    .product-title-section .product-title {
        font-size: 2rem;
        text-align: left;
    }
    
    .title-with-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .title-badges {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .rating-preview {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .rating-info {
        justify-content: center;
        text-align: center;
    }
    
    .btn-rating-action {
        width: 100%;
        justify-content: center;
    }
    
    .product-sections {
        gap: 2rem;
    }
    
    .section-header {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-content {
        padding: 0;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .reviews-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .specifications-table .spec-row {
        grid-template-columns: 1fr;
    }
    
    .spec-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Добавяме padding-bottom към body за да не се застъпва с мобилния бар */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 0 15px;
    }
    
    .modern-product-hero {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .product-title-section .product-title {
        font-size: 1.6rem;
    }
    
    .title-with-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .title-badges {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .availability-badge,
    .rating-badge {
        padding: 0.4rem 0.8rem;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .rating-preview {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .rating-info {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-rating-action {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .product-purchase-box {
        padding: 1.5rem;
        position: static;
    }
    
    .product-actions {
        padding: 1.5rem;
    }
    
    .fast-order-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-fast-order {
        width: 100%;
        justify-content: center;
    }
    
    .secondary-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .instruction-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        overflow-x: visible;
    }
    
    .product-slide {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Оптимизации за мобилни продукти в 2 колони */
    .products-slider .product-card {
        min-height: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .products-slider .product-info {
        padding: 1rem;
    }
    
    .products-slider .product-title {
        font-size: 16px;
    }
    
    .products-slider .product-description {
        display: none;
    }
    
    .products-slider .current-price {
        font-size: 18px;
    }
    
    .products-slider .price-secondary {
        font-size: 18px;
    }
    
    .products-slider .old-price {
        font-size: 16px;
    }
    
    .products-slider .mobile-cart-button {
        margin-top: 0.75rem;
    }
     
    .products-slider .mobile-add-to-cart {
        padding: 0.6rem 1rem;
        font-size: 14px;
        min-height: 36px;
    }
    
    .add-review-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    .mobile-purchase-bar {
        display: grid;
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 0 10px;
    }
    
    .breadcrumbs-modern {
        font-size: 12px;
    }
    
    .product-title {
        font-size: 1.4rem;
    }
    
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .section-header {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-content {
        padding: 0;
    }
    
    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        overflow-x: visible;
    }
    
    .product-slide {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Оптимизации за мобилни продукти в 2 колони - 480px */
    .products-slider .product-card {
        min-height: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .products-slider .product-info {
        padding: 0.75rem;
    }
    
    .products-slider .product-title {
        font-size: 16px;
    }
    
    .products-slider .current-price {
        font-size: 18px;
    }
    
    .products-slider .price-secondary {
        font-size: 18px;
    }
    
    .products-slider .old-price {
        font-size: 16px;
    }
    
    .products-slider .mobile-add-to-cart {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
        min-height: 36px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .review-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-purchase-bar {
        padding: 0.75rem 1rem;
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
        display: flex;
        justify-content: space-between;
    }
    
    .mobile-add-to-cart {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus стилове за достъпност */
.btn-add-to-cart:focus,
.btn-secondary:focus,
.action-btn:focus,
.form-control:focus,
.quantity-input:focus,
.btn-add-review:focus,
.btn-submit:focus,
.btn-cancel:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Печат стилове */
@media print {
    .mobile-purchase-bar,
    .product-actions,
    .fast-order-section,
    .credit-info,
    .add-review-section {
        display: none !important;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        background: transparent !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .product-section {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000;
        margin-bottom: 2rem;
    }
}

/* Scroll стилове */
.products-slider::-webkit-scrollbar {
    height: 6px;
}

.products-slider::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.products-slider::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.products-slider::-webkit-scrollbar-thumb:hover {
    background: black;
}
