/* ============================================================================
   СТИЛИ ДЛЯ ДОРАБОТАННОЙ КАРТОЧКИ ТОВАРА
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Блок для неавторизованных пользователей
   ---------------------------------------------------------------------------- */

.auth-required-block {
    padding: 30px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-required-block svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    color: #6c757d;
    margin-bottom: 15px;
}

.auth-required-block h3 {
    color: #212529;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.auth-required-block p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.auth-required-block .btn {
    margin: 5px;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.auth-required-block .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.auth-required-block .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.auth-required-block .btn-default {
    background-color: #fff;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.auth-required-block .btn-default:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------------------
   Торговые предложения (селекторы)
   ---------------------------------------------------------------------------- */

.offer-props-wrapper {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.sku_props {
    width: 100%;
}

.bx_catalog_item_scu {
    margin-bottom: 15px;
}

.bx_item_detail_size {
    margin-bottom: 20px;
}

.bx_item_section_name {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.bx_item_section_name .sku_mdash {
    margin: 0 5px;
    color: #999;
}

.list_values_wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.list_values_wrapper li {
    position: relative;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 80px;
    text-align: center;
}

.list_values_wrapper li:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.list_values_wrapper li.active {
    border-color: #007bff;
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
}

.list_values_wrapper li.active .cnt {
    color: #fff;
}

.list_values_wrapper li i {
    display: none;
}

.list_values_wrapper li .cnt {
    font-size: 14px;
    color: #333;
    display: block;
}

.list_values_wrapper li.active .cnt {
    color: #fff;
}

/* ----------------------------------------------------------------------------
   Блок цены
   ---------------------------------------------------------------------------- */

.prices_block {
    margin: 20px 0;
}

.cost.prices.detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price_matrix_wrapper {
    display: inline-block;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.price_value {
    color: #000;
}

.price_currency {
    font-size: 20px;
    margin-left: 5px;
}

.price_measure {
    font-size: 14px;
    color: #999;
    margin-left: 5px;
    font-weight: 400;
}

/* ----------------------------------------------------------------------------
   Блок покупки
   ---------------------------------------------------------------------------- */

.buy_block {
    margin: 25px 0;
}

.counter_wrapp {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.counter_block_inner {
    flex-shrink: 0;
}

.counter_block {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.counter_block .minus,
.counter_block .plus {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter_block .minus:hover,
.counter_block .plus:hover {
    background: #e9ecef;
}

.counter_block .minus svg,
.counter_block .plus svg {
    width: 16px;
    height: 16px;
    fill: #333;
}

.counter_block input.text {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    padding: 10px 5px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.counter_block input.text:focus {
    background: #f8f9fa;
}

.button_block {
    flex-grow: 1;
}

.to-cart,
.in-cart {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
}

.to-cart {
    background: #007bff;
    color: #fff;
}

.to-cart:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.in-cart {
    background: #28a745;
    color: #fff;
}

.in-cart:hover {
    background: #1e7e34;
}

.to-cart svg,
.in-cart svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Кнопка "Купить в 1 клик" */
.wrapp-one-click {
    margin-top: 15px;
}

.one_click {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    background: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.one_click:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* ----------------------------------------------------------------------------
   Адаптивность
   ---------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .auth-required-block {
        padding: 20px 15px;
    }
    
    .auth-required-block h3 {
        font-size: 18px;
    }
    
    .auth-required-block .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .counter_wrapp {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button_block {
        width: 100%;
    }
    
    .to-cart,
    .in-cart {
        width: 100%;
        justify-content: center;
    }
    
    .list_values_wrapper {
        gap: 5px;
    }
    
    .list_values_wrapper li {
        min-width: 60px;
        padding: 8px 15px;
    }
    
    .price {
        font-size: 24px;
    }
    
    /* Галерея на мобильных */
    .product-detail-gallery {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .product-detail-gallery__container {
        width: 100% !important;
    }
    
    /* Основной контейнер */
    .product-info.noffer .flexbox--row {
        flex-direction: column !important;
    }
    
    .product-main {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Кнопки упаковок */
    .pack-selector {
        margin: 15px 0 !important;
    }
    
    .pack-buttons {
        gap: 8px !important;
    }
    
    .pack-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-width: auto !important;
    }
    
    /* Блок цены */
    .prices_block {
        margin: 15px 0 !important;
    }
    
    #current-price {
        font-size: 24px !important;
    }
    
    .price_measure {
        font-size: 16px !important;
    }
    
    /* Блок покупки */
    .buy_block {
        margin: 20px 0 !important;
    }
    
    .counter_wrapp.big {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .counter_block_inner {
        width: 100%;
    }
    
    .counter_block {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: space-between;
    }
    
    .counter_block .minus,
    .counter_block .plus {
        padding: 12px 20px !important;
    }
    
    .counter_block input.text {
        flex: 1;
        min-width: 80px !important;
        width: auto !important;
        font-size: 18px !important;
        padding: 12px 10px !important;
		width: 80px !important;
    }
    
    .button_block {
        width: 100% !important;
    }
    
    .to-cart,
    .in-cart {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        justify-content: center !important;
    }
    
    /* Характеристики */
    .product-chars {
        margin-top: 20px;
    }
    
    .info_ext_block .title {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .property_item {
        flex-direction: column;
        padding: 12px 0;
    }
    
    .property_name {
        flex: none;
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .property_value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .price {
        font-size: 20px;
    }
    
    .price_currency {
        font-size: 16px;
    }
    
    .counter_block input.text {
        min-width: 70px !important;
        font-size: 16px !important;
        padding: 10px 8px !important;
    }
    
    #current-price {
        font-size: 20px !important;
    }
    
    .pack-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* ----------------------------------------------------------------------------
   Анимации загрузки
   ---------------------------------------------------------------------------- */

.animate-load {
    position: relative;
    overflow: hidden;
}

.animate-load.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* ----------------------------------------------------------------------------
   Дополнительные улучшения UI
   ---------------------------------------------------------------------------- */

.product-chars {
    margin-top: 30px;
}

.info_ext_block {
    margin-bottom: 25px;
}

.info_ext_block .title {
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 15px;
}

.info_ext_block .text {
    padding: 15px 0;
    line-height: 1.6;
}

.property_item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.property_name {
    flex: 0 0 40%;
    font-weight: 600;
    color: #666;
}

.property_value {
    flex: 1;
    color: #333;
}

/* ----------------------------------------------------------------------------
   Избранное
   ---------------------------------------------------------------------------- */

.like_icons {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.wish_item_button span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wish_item_button span:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wish_item_button span svg {
    width: 20px;
    height: 20px;
}

.wish_item_button .wish_item.in {
    display: none;
}

.wish_item_button .wish_item.to.added {
    display: none;
}

.wish_item_button .wish_item.in.added {
    display: flex !important;
}

.wish_item_button .wish_item.in svg path {
    fill: #dc3545;
}