/**
 * Точная копия стилей страницы товара из оригинального HTML сайта Wallmann.uz
 * Endpoint: Product Page CSS Replication
 * Method: Original HTML Styles Integration
 * Authorization: WordPress theme CSS modification access
 */

/* === ТЕМНЫЙ ФОН ДЛЯ СТРАНИЦЫ ТОВАРА === */

.product-page-wrapper {
    background-color: #1a1a1a !important; /* Темный фон */
    color: #ffffff !important; /* Белый текст */
    min-height: 100vh;
    padding: 20px 0;
}

/* Переопределяем цвета для всех элементов в product-page-wrapper */
.product-page-wrapper * {
    color: #ffffff !important;
}

.product-page-wrapper h1,
.product-page-wrapper h2,
.product-page-wrapper h3,
.product-page-wrapper h4,
.product-page-wrapper h5,
.product-page-wrapper h6 {
    color: #ffffff !important;
    font-weight: 300 !important;
}

.product-page-wrapper .breadcrumb {
    background-color: transparent !important;
    border: none !important;
    padding-left: 0 !important;
}

.product-page-wrapper .breadcrumb a {
    color: #cccccc !important;
    text-decoration: none !important;
}

.product-page-wrapper .breadcrumb a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* === ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ ТОВАРА === */

/* Хлебные крошки - точная копия */
.breadcrumb {
    padding: 8px 15px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.breadcrumb > li {
    display: inline-block;
}

.breadcrumb > li + li:before {
    content: "/\00a0";
    padding: 0 5px;
    color: #ccc;
}

.breadcrumb > .active {
    color: #777;
}

/* Структура товара - точная копия */
.product-flex-info {
    padding-right: 15px;
    padding-left: 15px;
}

.product-flex-gallery {
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

/* Заголовок товара */
.product-page-wrapper .title {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    color: #ffffff !important;
    margin-bottom: 20px;
}

/* Цена товара */
.product-page-wrapper .price {
    margin-bottom: 15px;
}

.product-page-wrapper .price .h3 {
    font-size: 24px;
    font-weight: 300;
    color: #ffffff !important;
    margin: 0;
}

/* Старые стили цены - оставляем для совместимости */
.price {
    margin-bottom: 20px;
}

.price .h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    color: #d35400;
    margin-top: 0;
    margin-bottom: 10px;
}

.price small {
    font-size: 65%;
    font-weight: normal;
    line-height: 1;
    color: #777;
}

/* Блок информации */
.info-box {
    margin-bottom: 20px;
}

.info-box p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #333;
}

.info-box strong {
    font-weight: 600;
}

.info-box ul {
    margin: 0 0 10px 25px;
    padding: 0;
}

.info-box li {
    margin-bottom: 5px;
    line-height: 1.6;
}

/* Кнопка покупки */
.btn-buy {
    position: relative !important;
    top: 15px;
    z-index: 10;
    background: linear-gradient(45deg, #d35400, #ff6b00);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.btn-buy:hover {
    background: linear-gradient(45deg, #b8470f, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Галерея товара */
.owl-product-gallery {
    margin-bottom: 20px;
    text-align: center;
}

.owl-product-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.owl-product-gallery img:hover {
    transform: scale(1.02);
}

/* Маленькая галерея */
.small-image {
    margin-top: 15px;
    text-align: center;
}

.small-image img {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    margin: 0 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Блок преимуществ - точная копия */
.product-page-wrapper .premushestva {
    margin-top: 40px;
    padding: 30px 0;
    background-color: #2a2a2a !important; /* Темный фон для блока преимуществ */
    border-radius: 10px;
}

.product-page-wrapper .premushestva > div {
    text-align: center;
    padding: 20px 10px;
    margin-bottom: 20px;
}

.product-page-wrapper .premushestva .icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    color: #ffffff !important; /* Белые иконки */
    background-color: #d35400 !important; /* Оранжевый фон для иконок */
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.product-page-wrapper .premushestva .icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    background-color: #ff6b00 !important; /* Более яркий оранжевый при наведении */
}

.product-page-wrapper .premushestva p {
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff !important; /* Белый текст */
    margin: 0;
    font-weight: 500;
}

/* Иконки - точные стили из оригинала */
.icon-pencil:before { content: "\e600"; }
.icon-cog:before { content: "\e601"; }
.icon-user:before { content: "\e602"; }
.icon-bookmark:before { content: "\e603"; }
.icon-thumbs-up:before { content: "\e604"; }
.icon-sun:before { content: "\e605"; }
.icon-star:before { content: "\e606"; }
.icon-pie-chart:before { content: "\e607"; }

/* Социальные кнопки */
.ya-share2 {
    margin: 15px 0;
}

/* Модальное окно заказа */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.fade.in {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    max-width: 600px;
    margin: 30px auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 6px;
    box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    background-clip: padding-box;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.43px;
}

.modal-title {
    margin: 0;
    line-height: 1.42857143;
    font-size: 18px;
    font-weight: 500;
}

.modal-body {
    position: relative;
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.2;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.5;
}

/* Формы */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.form-control:focus {
    border-color: #d35400;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(211,84,0,0.6);
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: #d35400;
    border-color: #d35400;
}

.btn-primary:hover {
    color: #fff;
    background-color: #b8470f;
    border-color: #a53f0d;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-flex-info,
    .product-flex-gallery {
        margin-bottom: 20px;
    }
    
    .btn-buy {
        position: static;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .price .h3 {
        font-size: 20px;
    }
    
    .premushestva > div {
        margin-bottom: 15px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .premushestva > div {
        padding: 15px 5px;
    }
    
    .premushestva p {
        font-size: 12px;
    }
}

/* Bootstrap Grid System - необходимые части */
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1170px;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}
