
.product-details-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-details-container h1,
.product-overview__heading h1 {
    color: #14498c;
    font-weight: 600;
    font-size: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.15);
    margin-bottom: 20px;
}

.product-overview__heading {
    width: 100%;
}

/* Улучшенные стили для изображения товара */
.product-img {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 115px;
    background-color: #fff;
}

.product-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: all 0.2s linear;
    object-fit: contain;
}

.product-img.product-feature-img {
    min-height: 120px;
    aspect-ratio: 1;
    width: 100%;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px;
    background-color: #f8f9fa;
    overflow: visible;
}

.product-img.product-feature-img.mb-30 {
    margin-bottom: 30px;
}

.product-feature-img__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s linear;
}

.product-feature-img--placeholder .product-feature-img__image {
    max-width: 72%;
    max-height: 72%;
}

.product-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

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

.product-img.product-feature-img:hover .product-feature-img__image {
    transform: scale(1.03);
}

.product-overview__heading {
    width: 100%;
    margin-bottom: 0;
}

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

/* Image + details overview — compact layout on desktop */
@media (min-width: 768px) {
    .product-overview__body {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .product-overview__media {
        flex: 0 0 140px;
        width: 140px;
        max-width: 140px;
    }

    .product-overview__info {
        flex: 1;
        min-width: 0;
    }

    .product-overview .product-img.product-feature-img {
        width: 140px;
        max-width: 140px;
        min-height: 140px;
        margin: 0;
    }

    .product-overview .product-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 140px;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .product-overview .product-img.product-feature-img {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Компактный контент продукта */
.product-content {
    padding: 15px 0;
}

.product-title h3 {
    color: #14498c;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.15);
}

/* Улучшенные стили для информации о товаре */
.product-details {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.options-container .product-details {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.options-container .product-details:hover {
    box-shadow: none;
}

.options-container .product-title {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(20, 73, 140, 0.12);
}

.product-details:hover {
    box-shadow: 0 3px 8px rgba(20, 73, 140, 0.1);
}

.product-details h5 {
    color: #14498c;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.product-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    color: #14498c;
    font-size: 13px;
    font-weight: 700;
}

.product-details ul li:last-child {
    border-bottom: none;
}

.product-details ul li span {
    font-weight: 600;
    color: #333;
}

/* Улучшенные стили для действий с товаром */
.product-action {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px #d7dfe9;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-action:hover {
    box-shadow: 0 3px 8px rgba(20, 73, 140, 0.1);
}

/* Стилизация счетчика количества в стиле корзины */
/*.product-quantity {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*.product-quantity .qua {*/
/*    margin-right: 15px;*/
/*    font-weight: 500;*/
/*    color: #333;*/
/*    white-space: nowrap;*/
/*}*/

/*.product-quantity span {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 4px;*/
/*    overflow: hidden;*/
/*}*/
.cart-product-quantity .product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Центрирование блока с количеством */
}
.cart-product-quantity input {
    width: 45px;
    text-align: center;
    border: 1px solid #ddd;
    height: 34px;
    padding: 0 5px;
    margin: 0 5px;
    border-radius: 4px;
}
.cart-product-quantity .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f9f9f9;
    color: #14498c;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
.cart-product-quantity .qty-btn:hover {
    background-color: #14498c;
    color: #fff;
    border-color: #14498c;
}
/* Стиль для кнопок +/- как в корзине */
.product-quantity a.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    color: #14498c;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    border-radius: 30px;
}

.product-quantity a.qty-btn:hover {
    background-color: #14498c;
    color: #fff;
}

.product-quantity a.qty-btn i {
    font-size: 12px;
}

.product-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    padding: 5px;
    background-color: transparent;
    font-weight: 500;
    font-size: 14px;
}

/* Улучшенные стили для кнопок действий */
.product-cta {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-cta .btn {
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.product-cta .btn-primary {
    background-color: #14498c;
    border-color: #14498c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    margin-right: 10px;
}

.product-cta .btn-primary:hover {
    background-color: #0e3567;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 73, 140, 0.3);
}

.product-cta .btn-secondary {
    background-color: #fff;
    color: #14498c;
    border-color: #14498c;
    width: 40px;
    padding: 10px 0;
}

.product-cta .btn-secondary:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 73, 140, 0.1);
}

/* Стилизация цены товара */
.summary-value {
    font-weight: 700;
    color: #14498c;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Стили для категорий */
.widget-categories {
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.widget-categories:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-categories .widget-title {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.15);
    border-radius: 4px 4px 0 0;
}

.widget-categories .widget-title h3 {
    color: #14498c;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    border-bottom: none;
    padding: 0;
}

.widget-content {
    padding: 15px 20px;
}

.widget-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
}

.widget-content ul li:last-child {
    border-bottom: none;
}

.widget-content ul li a {
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
}

.widget-content ul li a:hover {
    color: #14498c;
    transform: translateX(5px);
}

/* Add-to-cart success message */
.product-cart-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(20, 73, 140, 0.16);
    border-left: 4px solid #14498c;
    border-radius: 10px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 4px 14px rgba(20, 73, 140, 0.08);
    text-align: left;
}

.product-cart-alert__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 73, 140, 0.1);
    color: #14498c;
    font-size: 1.1rem;
    line-height: 1;
}

.product-cart-alert__content {
    min-width: 0;
    flex: 1;
}

.product-cart-alert__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: #14498c;
}

@media (max-width: 767px) {
    .product-cart-alert {
        align-items: flex-start;
    }

    .product-cart-alert__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .product-cart-alert__title {
        font-size: 0.9rem;
    }
}

/* Legacy alert block kept for other pages using product-details.css */
.alert {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #e8f4fd;
    border-radius: 4px;
    border-left: 3px solid #14498c;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alert-icon {
    margin-right: 15px;
    color: #14498c;
    font-size: 20px;
}

.alert-content h4 {
    margin: 0;
    color: #14498c;
    font-weight: 600;
}

/* Дополнительная информация */
.product-share {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-share:hover {
    box-shadow: 0 3px 8px rgba(20, 73, 140, 0.1);
}

.product-share h5 {
    color: #14498c;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.product-share ul {
    padding-left: 15px;
    margin-bottom: 0;
}

.product-share ul li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
}

.product-share ul li::before {
    content: "•";
    color: #14498c;
    position: absolute;
    left: -15px;
}

/* Компактный дизайн для мобильных устройств */
@media (max-width: 767px) {
    .product-details-container {
        padding: 0;
        margin-top: 0;
    }

    .compact-layout .product-details-container {
        padding-left: 0;
        padding-right: 0;
    }

    .product-details-container h1,
    .product-overview__heading h1 {
        font-size: 20px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .product-content {
        padding: 10px 0;
    }

    .product-title h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-action, .product-details, .product-share {
        padding: 12px;
    }

    .product-cta {
        justify-content: center;
    }

    .product-cta .btn {
        padding: 8px 15px;
        font-size: 13px;
        margin: 5px;
    }

    .widget-title {
        padding: 12px 15px;
    }

    .widget-title h3 {
        font-size: 16px;
    }

    .widget-content {
        padding: 10px 15px;
    }

    .product-quantity {
        justify-content: center;
        margin-bottom: 15px;
    }

    .product-quantity.pull-left {
        float: none !important;
    }

    .product-img.product-feature-img {
        max-width: 130px;
        min-height: 130px;
        padding: 10px;
    }

    .ml-30 {
        margin-left: 0 !important;
        margin-top: 10px;
    }
}

/* Анимация для обновления цен */
@keyframes price-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #14498c; }
    100% { transform: scale(1); }
}

.price-updated {
    animation: price-update 0.5s ease;
}

/* Улучшенный контейнер параметров товара */
.options-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.options-container:hover {
    box-shadow: 0 3px 8px rgba(20, 73, 140, 0.1);
}

/* Улучшенные стили для разметки страницы */
.shop-content {
    transition: all 0.3s ease;
}

/* Стилизация для компактного вида */

.compact-layout .product-content {
    padding: 10px 0;
}

.compact-layout .product-action,
.compact-layout .product-share {
    padding: 12px;
    margin-bottom: 15px;
}

.compact-layout .options-container .product-details {
    padding: 0;
    margin-bottom: 0;
}

.compact-layout hr {
    margin: 15px 0;
}

.pr-container h3 {
    font-size: 20px;
}

/* Стили для фиксированной прокрутки */
.sticky-sidebar {
    position: sticky;
    z-index: 100;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}
.mt-3 {
    margin-top: 10px;
}
.mr-3 {
    margin-right: 10px;
}
.product-details .list-unstyled {
    margin-bottom: 3px;
}
.list-unstyled {
    margin-bottom: 0;
}
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}