﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #732d43;
    --primary-dark: #7a1450;
    --secondary: black;
    --accent: #d946ef;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    font-size: 15px;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-details-wrapper {
    background: var(--gray-50);
    min-height: 100vh;
    padding: 2rem 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 1rem;
}

/* ==================== BREADCRUMB ==================== */
.modern-breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 0;
    list-style: none;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

    .breadcrumb-item-modern:not(:last-child)::after {
        content: '/';
        margin: 0 0.75rem;
        color: var(--gray-400);
    }

    .breadcrumb-item-modern a {
        color: var(--gray-600);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .breadcrumb-item-modern a:hover {
            color: var(--primary);
        }

    .breadcrumb-item-modern.active {
        color: var(--primary);
        font-weight: 600;
    }

/* ==================== PRODUCT MAIN SECTION ==================== */
.product-main-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ==================== PRODUCT GALLERY ==================== */
.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

    .main-image-container:hover {
        box-shadow: var(--shadow-lg);
    }

/* Zoom Hint */
.zoom-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

    .zoom-hint i {
        font-size: 1rem;
    }

.main-product-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--white);
}

    .main-product-image:hover {
        transform: scale(1.02);
    }

.image-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.image-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

    .image-control-btn:hover {
        background: var(--white);
        color: var(--primary);
        box-shadow: var(--shadow);
        transform: scale(1.1);
    }

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
}

.featured-badge {
    background: var(--warning);
    color: var(--white);
}

.out-of-stock-badge {
    background: var(--gray-600);
    color: var(--white);
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-200);
}

    .thumbnail-gallery::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnail-gallery::-webkit-scrollbar-track {
        background: var(--gray-200);
        border-radius: 3px;
    }

    .thumbnail-gallery::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

.thumbnail-item {
    flex-shrink: 0;
}

.thumbnail-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid var(--gray-300);
    background: var(--white);
    padding: 2px;
}

    .thumbnail-image:hover,
    .thumbnail-image.active {
        opacity: 1;
        border-color: var(--primary);
        transform: scale(1.05);
    }

/* ==================== PRODUCT INFORMATION ==================== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1.5rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.product-sku code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    font-size: 0.75rem;
}

/* ==================== PRICE SECTION ==================== */
.price-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.price-with-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.original-price {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.savings {
    background: var(--success);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== STOCK SECTION ==================== */
.stock-section {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.stock-available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.stock-unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* ==================== PRODUCT DESCRIPTION ==================== */
.product-description {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.section-title {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

    .section-title i {
        color: var(--primary);
    }

.description-text {
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
}

/* ==================== PRODUCT ACTIONS ==================== */
.product-actions {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.quantity-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quantity-label {
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

    .quantity-btn:hover {
        background: var(--primary);
        color: var(--white);
    }

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: var(--white);
    outline: none;
    font-size: 0.95rem;
    transition: transform 0.15s ease;
    -moz-appearance: textfield;
}

    .quantity-input::-webkit-outer-spin-button,
    .quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

/* ==================== BUTTONS ==================== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-add-to-cart,
.btn-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    width: 100%;
}

.btn-add-to-cart {
    background: transparent;
    color: var(--primary);
}

    .btn-add-to-cart::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: var(--border-radius);
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        z-index: -1;
    }

    .btn-add-to-cart::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: calc(var(--border-radius) - 2px);
        background: white;
        z-index: -1;
        transition: opacity 0.3s ease;
    }

    .btn-add-to-cart:hover {
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }

        .btn-add-to-cart:hover::after {
            opacity: 0;
        }

    .btn-add-to-cart i {
        transition: transform 0.3s ease;
    }

    .btn-add-to-cart:hover i {
        transform: translateX(3px);
    }

.btn-notify {
    background: var(--warning);
    color: var(--white);
}

    .btn-notify:hover {
        background: #d97706;
        transform: translateY(-2px);
    }

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-add-to-cart.loading span {
    opacity: 0;
}

.btn-add-to-cart.loading .btn-loading {
    opacity: 1;
}

.out-of-stock-section {
    text-align: center;
}

.out-of-stock-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* ==================== ADDITIONAL INFO ==================== */
.additional-info {
    margin-top: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.2s ease;
    text-align: center;
}

    .info-item:hover {
        transform: translateY(-3px);
    }

    .info-item i {
        color: var(--primary);
        font-size: 1.8rem;
    }

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .info-content strong {
        display: block;
        font-weight: 600;
        color: #111827;
        font-size: 0.95rem;
    }

    .info-content span {
        font-size: 0.85rem;
       
    }

/* ==================== RELATED PRODUCTS ==================== */
.related-products-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .section-header .section-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 0.5rem;
    }

.section-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

    .related-product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.related-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .related-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        padding: 1rem;
    }

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-product-card:hover .related-product-overlay {
    opacity: 1;
}

.btn-view-product {
    background: var(--white);
    color: var(--primary);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.85rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

    .btn-view-product:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.05);
        text-decoration: none;
    }

.related-product-info {
    padding: 1.25rem;
}

.related-product-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.related-product-description {
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .related-product-price .price-current {
        font-size: 1rem;
        font-weight: 700;
        color: var(--gray-900);
    }

    .related-product-price .price-old {
        font-size: 0.85rem;
        color: var(--gray-500);
        text-decoration: line-through;
    }

/* ==================== IMAGE MODAL ==================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

    .image-modal-content img {
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 8px;
    }

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .image-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.modal-instructions {
    margin-top: 1rem;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

    .modal-instructions i {
        margin-right: 0.5rem;
    }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-main-section {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .current-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .product-details-wrapper {
        padding: 1rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .modern-breadcrumb {
        margin-bottom: 1rem;
    }

    .breadcrumb-modern {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* ✅ КЛЮЧОВА ПРОМЯНА */
    .product-main-section {
        padding: 0; /* Премахваме padding */
        border-radius: 12px;
        overflow: hidden;
    }

    .row {
        margin: 0;
    }

    .col-lg-6 {
        padding: 0;
    }

    /* ✅ Снимката обхваща пълна ширина */
    .product-gallery {
        margin: 0; /* Без negative margin */
    }

    .main-image-container {
        margin-bottom: 0.75rem;
        border-radius: 0; /* Без скръглени ъгли на mobile */
    }

    .main-product-image {
        height: 300px;
        border-radius: 0;
        object-fit: contain;
        width: 100%;
    }

    .zoom-hint {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .thumbnail-gallery {
        gap: 0.5rem;
        padding: 0.5rem 1rem 1rem 1rem;
    }

    .thumbnail-image {
        width: 55px;
        height: 55px;
    }

    /* ✅ Информацията да има padding */
    .product-info-section {
        gap: 0.75rem;
        margin-top: 0;
        padding: 1rem; /* Добавяме padding тук */
    }

    .product-header {
        padding-bottom: 0.75rem;
    }

    .product-category {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .product-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .product-meta {
        font-size: 0.75rem;
        gap: 1rem;
    }

    .product-sku code {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .price-section {
        padding: 1rem;
    }

    .price-with-discount {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .current-price {
        font-size: 1.4rem;
    }

    .original-price {
        font-size: 1rem;
    }

    .savings {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .stock-section {
        padding: 0.75rem;
    }

    .stock-available,
    .stock-unavailable {
        font-size: 0.85rem;
    }

    .product-description {
        padding: 0.85rem;
    }

    .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .description-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .product-actions {
        padding: 0.75rem;
    }

    .quantity-section {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .quantity-label {
        font-size: 0.9rem;
        text-align: center;
    }

    .quantity-btn {
        width: 38px;
        height: 38px;
    }

    .quantity-input {
        width: 55px;
        height: 38px;
        font-size: 0.9rem;
    }

    .action-buttons {
        gap: 0;
    }

    .btn-add-to-cart,
    .btn-notify {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .additional-info {
        padding: 1rem;
        text-align: center;
    }

    .info-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .info-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }

        .info-item i {
            font-size: 1.3rem;
        }

    .info-content strong {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .info-content span {
        font-size: 0.8rem;
    }

    .related-products-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .section-header {
        margin-bottom: 1rem;
    }

        .section-header .section-title {
            font-size: 1.2rem;
        }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .related-product-image {
        height: 140px;
    }

        .related-product-image img {
            padding: 0.75rem;
        }

    .related-product-info {
        padding: 0.75rem;
    }

    .related-product-name {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .related-product-description {
        font-size: 0.75rem; 
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .related-product-price .price-current {
        font-size: 0.9rem;
    }

    .related-product-price .price-old {
        font-size: 0.75rem;
    }

    .btn-view-product {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .image-modal-close {
        top: -40px;
        width: 40px;
        height: 40px;
    }

    .modal-instructions {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }

    .product-details-wrapper {
        padding: 0.75rem 0;
    }

    .breadcrumb-modern {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .breadcrumb-item-modern {
        font-size: 0.7rem;
    }

        .breadcrumb-item-modern:not(:last-child)::after {
            margin: 0 0.5rem;
        }

    /* ✅ КЛЮЧОВА ПРОМЯНА */
    .product-main-section {
        padding: 0; /* Без padding */
        border-radius: 10px;
        overflow: hidden;
    }

    /* ✅ Снимката обхваща пълна ширина */
    .product-gallery {
        margin: 0;
    }

    .main-image-container {
        border-radius: 0;
        margin-bottom: 0.75rem;
    }

    .main-product-image {
        height: 280px;
        object-fit: contain;
        width: 100%;
    }

    .product-badges {
        top: 0.75rem;
        left: 0.75rem;
        gap: 0.4rem;
    }

    .product-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    .image-controls {
        top: 0.75rem;
        right: 0.75rem;
    }

    .image-control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .zoom-hint {
        font-size: 0.75rem;
        padding: 0.5rem 0.85rem;
        bottom: 0.75rem;
    }

    .thumbnail-gallery {
        gap: 0.4rem;
        padding: 0.5rem 0.75rem 1rem 0.75rem;
    }

    .thumbnail-image {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    /* ✅ Информацията да има padding */
    .product-info-section {
        gap: 0.65rem;
        padding: 0.75rem; /* Добавяме padding тук */
    }

    .product-header {
        padding-bottom: 0.65rem;
    }

    .product-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .product-meta {
        gap: 0.75rem;
        font-size: 0.7rem;
    }

    .price-section {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .current-price {
        font-size: 1.25rem;
    }

    .original-price {
        font-size: 0.95rem;
    }

    .savings {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .stock-section {
        padding: 0.6rem;
    }

    .stock-available i,
    .stock-unavailable i {
        font-size: 0.9rem;
    }

    .product-description {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .section-title {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

        .section-title i {
            font-size: 0.85rem;
        }

    .description-text {
        font-size: 0.8rem;
    }

    .product-actions {
        padding: 0.75rem;
    }

    .quantity-section {
        margin-bottom: 0.5rem;
        gap: 0.4rem;
    }

    .quantity-label {
        font-size: 0.85rem;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
    }

    .quantity-input {
        width: 52px;
        height: 36px;
    }

    .btn-add-to-cart,
    .btn-notify {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }

    .additional-info {
        padding: 1rem;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .info-item {
        padding: 0.85rem 0.5rem;
        gap: 0.5rem;
    }

        .info-item i {
            font-size: 1.5rem;
        }

    .info-content strong {
        font-size: 0.85rem;
    }

    .info-content span {
        font-size: 0.75rem;
    }

    .related-products-section {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .section-header {
        margin-bottom: 0.75rem;
    }

        .section-header .section-title {
            font-size: 1.1rem;
        }

    .section-subtitle {
        font-size: 0.75rem;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .related-product-card {
        border-radius: 10px;
    }

    .related-product-image {
        height: 180px;
    }

        .related-product-image img {
            padding: 0.85rem;
        }

    .related-product-info {
        padding: 0.75rem;
    }

    .related-product-name {
        font-size: 0.9rem;
    }

    .related-product-description {
        font-size: 0.8rem;
    }

    .related-product-price {
        gap: 0.6rem;
    }

        .related-product-price .price-current {
            font-size: 0.95rem;
        }

        .related-product-price .price-old {
            font-size: 0.8rem;
        }

    .image-modal-content {
        width: 95%;
    }

    .image-modal-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .modal-instructions {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 380px) {
    .product-title {
        font-size: 1.05rem;
    }

    .current-price {
        font-size: 1.15rem;
    }

    /* ✅ Снимката обхваща пълна ширина */
    .product-gallery {
        margin: 0;
    }

    .main-product-image {
        height: 240px;
        object-fit: contain;
        width: 100%;
    }

    .thumbnail-gallery {
        padding: 0.4rem 0.75rem 0.75rem 0.75rem;
    }

    .thumbnail-image {
        width: 45px;
        height: 45px;
    }

    .related-product-image {
        height: 160px;
    }

        .related-product-image img {
            padding: 0.75rem;
        }

    .btn-add-to-cart,
    .btn-notify {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .zoom-hint {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }
}


/* ==================== ACCESSIBILITY ==================== */
.thumbnail-image:focus,
.quantity-btn:focus,
.btn-add-to-cart:focus,
.btn-notify:focus,
.image-control-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
