/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРОВ (ИНТЕРНЕТ-МАГАЗИН) ========== */

/* Контейнер с товарами - сетка 4 колонки */
.shop-pane {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 30px 0;
}

/* Карточка товара */
.shop-pane .shop-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 15px;
}

.shop-pane .shop-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Блок с изображением */
.shop-pane .shop_img {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    text-align: center;
}

.shop-pane .shop_img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.shop-pane .shop-item:hover .shop_img img {
    transform: scale(1.05);
}

/* Избранное (лайк) */
.shop-pane .shop_wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-pane .shop_wishlist:before {
    content: '\f08a';
    font-family: 'FontAwesome';
    font-size: 16px;
    color: #999;
}

.shop-pane .shop_wishlist:hover:before {
    color: #f29541;
}

/* Название товара */
.shop-pane .shop-item-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1b569b;
    text-decoration: none;
    padding: 12px 12px 5px 12px;
    transition: color 0.2s ease;
    line-height: 1.3;
    min-height: 55px;
}

.shop-pane .shop-item-title:hover {
    color: #f29541;
}

/* Артикул */
.shop-pane .shop_article {
    font-size: 12px;
    color: #888;
    padding: 0 12px 5px 12px;
}

/* Скидка */
.shop-pane .shop_discount {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
    padding: 0 12px 8px 12px;
}

.shop-pane .shop_discount_value {
    font-weight: 700;
}
/* Анонс */
.shop_anons {
	padding-left: 12px;
	padding-right: 12px;
	font-size: 12px;
	color: #0c3d81;
}

.shop_anons ul {
	padding-inline-start: 15px;
}



/* Блок с ценой */
.shop-pane .shop-item-price {
    padding: 5px 12px 10px 12px;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.shop-pane .shop-item-price .title {
    font-size: 13px;
    color: #666;
    margin-right: 5px;
}

.shop-pane .shop-item-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #f29541;
}

.shop-pane .shop_old_price {
    font-size: 13px;
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Форма покупки */
.shop-pane .shop_form {
    padding: 0 12px;
}

/* Поле ввода количества */
.shop-pane .shop_buy .number {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

/* Кнопка "Купить" */
.shop-pane .shop_buy .button {
    background: #f29541;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.shop-pane .shop_buy .button:hover {
    background: #1b569b;
}

/* Кнопка "Купить в один клик" */
.shop-pane .shop_one_click input {
    background: transparent;
    color: #1b569b;
    border: 1px solid #1b569b;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
    transition: all 0.2s ease;
	font-weight: bold;
}

.shop-pane .shop_one_click input:hover {
    background: #1b569b;
    color: #fff;
}

.shop_waitlist {
	font-size: 12px;
}

/* Сообщение о товаре в корзине */
.shop-pane .shop_form .error {
    font-size: 11px;
    color: #27ae60;
    padding: 5px 0;
    display: block !important;
}

/* Кнопка добавления к сравнению */
.shop-pane .shop_compare_button {
    margin: 10px 12px 0 12px;
}

.shop-pane .add_compare {
    font-size: 12px;
    color: #888;
    cursor: pointer;
    margin-left: 5px;
}

.shop-pane .add_compare:hover {
    color: #1b569b;
}

/* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ ========== */
@media (max-width: 991px) {
    .shop-pane {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ========== АДАПТИВ ДЛЯ ТЕЛЕФОНОВ ========== */
@media (max-width: 767px) {
    .shop-pane {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .shop-pane .shop-item-title {
        font-size: 14px;
        min-height: auto;
    }
    
    .shop-pane .shop-item-price .price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .shop-pane {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========== СТИЛИ ДЛЯ ФОРМЫ "КУПИТЬ В ОДИН КЛИК" ========== */

/* Контейнер формы */
.cart_one_click {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Заголовок формы (добавим через CSS, если нет в HTML) */
.cart_one_click:before {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1b569b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4ebfff;
}

/* Группы полей */
.cart_one_click .order_form_param1,
.cart_one_click .order_form_param2,
.cart_one_click .order_form_param3,
.cart_one_click .order_form_param11,
.cart_one_click .order_form_param12,
.cart_one_click .order_form_param13 {
    margin-bottom: 15px;
}

/* Подписи к полям */
.cart_one_click .infofield {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Поля ввода */
.cart_one_click input[type="text"],
.cart_one_click input[type="email"],
.cart_one_click input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cart_one_click input[type="text"]:focus,
.cart_one_click input[type="email"]:focus,
.cart_one_click input[type="tel"]:focus {
    border-color: #4ebfff;
    outline: none;
    box-shadow: 0 0 5px rgba(78, 191, 255, 0.3);
}

/* Поле даты */
.cart_one_click .timecalendar {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: #fff;
    cursor: pointer;
}

/* Чекбокс */
.cart_one_click .order_form_param13 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart_one_click .order_form_param13 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.cart_one_click .order_form_param13 label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.cart_one_click .order_form_param13 label:hover {
    color: #1b569b;
}

/* Кнопка "Заказать" */
.cart_one_click input[type="button"] {
    background: #f29541;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart_one_click input[type="button"]:hover {
    background: #1b569b;
}

/* Текст об обязательных полях */
.cart_one_click .required_field  {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

.privacy_field {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    text-align: center;
	border-top: 1px solid #eee;
	padding-top: 10px;
}

/* Сообщения об ошибках */
.cart_one_click .errors {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    padding-left: 5px;
}

/* Стили для datepicker (календаря) */
.ui-datepicker {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.ui-datepicker-header {
    background: #4ebfff;
    color: #fff;
    border-radius: 5px;
    padding: 5px;
}

.ui-datepicker-calendar td a {
    text-decoration: none;
    color: #333;
    padding: 5px;
    display: block;
    text-align: center;
}

.ui-datepicker-calendar td a:hover {
    background: #f29541;
    color: #fff;
    border-radius: 3px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
    .cart_one_click {
        padding: 15px;
    }
    
    .cart_one_click:before {
        font-size: 14px;
    }
    
    .cart_one_click input[type="button"] {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Анимация появления формы */
.cart_one_click {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавное появление формы */
.cart_one_click[style*="display: block"] {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ ОФОРМЛЕННОГО ЗАКАЗА ========== */

/* Благодарственное сообщение .container > p:first-of-type*/
.cart + p,
.greet_order
 {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 500;
}



/* Контейнер таблицы заказа */
.cart.table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

/* Заголовок таблицы */
.cart.table thead tr {
    background: #1b569b;
    color: #fff;
}

.cart.table thead th {
    padding: 15px 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border-bottom: none;
}

.cart.table thead th:first-child {
    text-align: left;
    padding-left: 20px;
}

/* Ячейки таблицы */
.cart.table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.cart.table tbody tr:hover {
    background: #f8f9fa;
}

.cart.table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.cart.table tbody td:first-child {
    text-align: left;
    padding-left: 20px;
}

/* Изображение товара - УМЕНЬШЕННОЕ */
.cart.table .cart_img {
    width: 80px;
    padding: 10px !important;
}

.cart.table .cart_img a {
    display: block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.cart.table .cart_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.cart.table .cart_img a:hover img {
    transform: scale(1.05);
}

/* Наименование товара */
.cart.table .cart_name {
    text-align: left;
    font-weight: 500;
}

.cart.table .cart_name a {
    color: #1b569b;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.cart.table .cart_name a:hover {
    color: #f29541;
}

/* Цены и суммы */
.cart.table .cart_price,
.cart.table .cart_summ {
    font-weight: 600;
    color: #f29541;
    font-size: 16px;
}

/* Количество */
.cart.table .cart_count {
    font-weight: 500;
}

/* Итоговая строка */
.cart.table .cart_last_tr {
    background: #f8f9fa;
}

.cart.table .cart_last_tr td {
    font-weight: 700;
    font-size: 16px;
    padding: 18px 12px;
}

.cart.table .cart_total {
    text-align: left !important;
    font-weight: 700;
    color: #1b569b;
    font-size: 16px;
}

.cart.table .cart_last_tr .cart_summ {
    font-size: 18px;
    font-weight: 800;
    color: #f29541;
}

/* Параметры заказа (ФИО, Email и т.д.) */
.cart_param {
    background: #f0f7ff;
    border: 1px solid #d0e3f5;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.cart_param:last-of-type {
    margin-bottom: 0;
}

.cart_param_value {
    font-weight: 700;
    color: #1b569b;
    margin-left: 5px;
}

/* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ ========== */
@media (max-width: 991px) {
    .cart.table thead th {
        font-size: 12px;
        padding: 12px 8px;
    }
    
    .cart.table tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .cart.table .cart_img {
        width: 60px;
    }
    
    .cart.table .cart_img a {
        width: 50px;
        height: 50px;
    }
    
    .cart.table .cart_price,
    .cart.table .cart_summ {
        font-size: 14px;
    }
}

/* ========== АДАПТИВ ДЛЯ ТЕЛЕФОНОВ ========== */
@media (max-width: 767px) {
    /* Таблица становится прокручиваемой */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart.table {
        min-width: 500px;
    }
    
    .cart.table thead th {
        font-size: 11px;
        padding: 10px 6px;
    }
    
    .cart.table tbody td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .cart.table .cart_img {
        width: 50px;
    }
    
    .cart.table .cart_img a {
        width: 40px;
        height: 40px;
    }
    
    .cart.table .cart_name a {
        font-size: 13px;
    }
    
    .cart.table .cart_price,
    .cart.table .cart_summ {
        font-size: 13px;
    }
    
    .cart.table .cart_last_tr td {
        padding: 12px 6px;
        font-size: 14px;
    }
    
    .cart.table .cart_last_tr .cart_summ {
        font-size: 16px;
    }
    
    /* Параметры заказа на телефоне */
    .cart_param {
        padding: 10px 14px;
        font-size: 13px;
        flex-direction: column;
    }
    
    .cart_param_value {
        margin-left: 0;
        margin-top: 4px;
        display: inline-block;
    }
    
    /* Благодарность на телефоне */
    .greet_order > p:first-of-type {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .cart.table .cart_name a {
        font-size: 12px;
    }
    
    .cart.table .cart_img a {
        width: 35px;
        height: 35px;
    }
    
    .cart.table .cart_img {
        width: 45px;
    }
}

/* Анимация для благодарственного сообщения */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greet_order > p:first-of-type {
    animation: fadeInUp 0.5s ease;
}


	