/* ===== WOOCOMMERCE СТИЛИ ===== */

/* Контейнер WooCommerce */
.woocommerce .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.woocommerce-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    color: #3A3A38;
    margin-bottom: 40px;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточка товара */
.product-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card-inner {
    padding: 16px;
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #009FE0;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.sale {
    background: #ff6b6b;
}

.product-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.product-card-title a {
    color: #3A3A38;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card-title a:hover {
    color: #009FE0;
}

.product-card-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #009FE0;
    margin-bottom: 15px;
}

.product-card-price del {
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.product-card-price ins {
    text-decoration: none;
}

.product-card-actions {
    margin-top: 15px;
}

.product-card-btn {
    display: inline-block;
    width: 100%;
    background: #009FE0;
    color: #FFFFFF;
    text-align: center;
    padding: 12px 20px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.product-card-btn:hover {
    background: #0077b3;
    color: #FFFFFF;
}

/* Пагинация */
.woocommerce-pagination {
    margin: 40px 0;
    text-align: center;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #3A3A38;
    text-decoration: none;
    transition: all 0.3s;
}

.woocommerce-pagination .page-numbers a:hover {
    background: #f5f5f5;
}

.woocommerce-pagination .page-numbers.current {
    background: #009FE0;
    color: #FFFFFF;
}

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-single-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ГАЛЕРЕЯ */
.product-gallery-section {
    position: sticky;
    top: 100px;
}

/* Контейнер галереи */
.woocommerce-product-gallery {
    position: relative;
}

/* Главное фото */
.woocommerce-product-gallery__image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Кнопка лупы */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-product-gallery__trigger:hover {
    background: #009FE0;
}

/* Стрелки навигации на главном фото */
.gallery-nav-prev,
.gallery-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #009FE0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.gallery-nav-prev {
    left: 15px;
}

.gallery-nav-next {
    right: 15px;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
    background: #009FE0;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.05);
}

/* Миниатюры - 3 штуки в ряд с горизонтальным скроллом */
.flex-control-thumbs {
    display: flex;
    gap: 15px;
    margin: 20px 0 0;
    padding: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.flex-control-thumbs::-webkit-scrollbar {
    height: 4px;
}

.flex-control-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.flex-control-thumbs::-webkit-scrollbar-thumb {
    background: #009FE0;
    border-radius: 4px;
}

.flex-control-thumbs li {
    list-style: none;
    flex: 0 0 calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
    margin: 0;
}

.flex-control-thumbs img {
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    height: auto;
    border: 2px solid transparent;
}

.flex-control-thumbs img:hover {
    opacity: 0.8;
}

.flex-control-thumbs img.flex-active {
    border-color: #009FE0;
}

/* Скрываем стандартные стрелки WooCommerce */
.flex-direction-nav {
    display: none !important;
}

/* ИНФОРМАЦИЯ О ТОВАРЕ */
.product-info-section {
    padding: 20px 0;
}

/* Бейдж */
.product-badge-single {
    display: inline-block;
    padding: 8px 16px;
    background: #009FE0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 20px;
}

/* Заголовок */
.product-title-single {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2;
    color: #3A3A38;
    margin: 0 0 15px 0;
}

/* Артикул */
.product-sku {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #3A3A38;
    margin-bottom: 25px;
}

/* Цены */
.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-price-single {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    color: #009FE0;
}

.product-price-single del {
    color: #999;
    font-size: 24px;
    margin-right: 10px;
}

.product-price-single ins {
    text-decoration: none;
}

.product-price-byn {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: #009FE0;
}

/* Краткое описание */
.product-short-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: #3A3A38;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(58, 58, 56, 0.1);
}

/* Характеристики */
.product-attributes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.product-attribute-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
}

.attribute-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #3A3A38;
    flex-shrink: 0;
}

.attribute-line {
    flex: 1;
    height: 1px;
    background: rgba(58, 58, 56, 0.2);
    margin: 0 5px;
}

.attribute-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #3A3A38;
    flex-shrink: 0;
    text-align: right;
}

/* Кнопка консультации */
.product-consult-btn-wrapper {
    margin-bottom: 30px;
}

.product-consult-btn {
    display: inline-block;
    width: 100%;
    max-width: 299px;
    background: #009FE0;
    border: none;
    border-radius: 20px;
    padding: 20px 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.product-consult-btn:hover {
    background: #0077b3;
    color: #FFFFFF;
    text-decoration: none;
}

/* Социальные кнопки */
.product-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #009FE0;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    background: #FFFFFF;
}

.social-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.social-btn span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: #009FE0;
}

.social-btn:hover {
    background: #009FE0;
    border-color: #009FE0;
}

.social-btn:hover span {
    color: #FFFFFF;
}

/* Скрываем ненужные вкладки */
.woocommerce-tabs {
    display: none;
}

/* Адаптив */
@media (max-width: 1024px) {
    .product-single-grid {
        gap: 40px;
    }
    
    .product-title-single {
        font-size: 36px;
    }
    
    .product-price-single {
        font-size: 28px;
    }
    
    .product-price-byn {
        font-size: 20px;
    }
    
    .gallery-nav-prev,
    .gallery-nav-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-single-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery-section {
        position: static;
    }
    
    .product-title-single {
        font-size: 28px;
    }
    
    .product-sku {
        font-size: 16px;
    }
    
    .product-price-single {
        font-size: 24px;
    }
    
    .product-price-byn {
        font-size: 18px;
    }
    
    .attribute-label,
    .attribute-value {
        font-size: 14px;
    }
    
    .product-consult-btn {
        max-width: 100%;
    }
    
    .product-social-buttons {
        justify-content: center;
    }
    
    .gallery-nav-prev,
    .gallery-nav-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .flex-control-thumbs li {
        flex: 0 0 calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
    }
    
    .flex-control-thumbs {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-title {
        font-size: 28px;
    }
    
    .product-title-single {
        font-size: 24px;
    }
    
    .product-price-single {
        font-size: 20px;
    }
    
    .product-price-byn {
        font-size: 16px;
    }
    
    .attribute-label,
    .attribute-value {
        font-size: 12px;
    }
    
    .social-btn {
        padding: 8px 15px;
    }
    
    .social-btn span {
        font-size: 12px;
    }
    
    .social-btn img {
        width: 20px;
        height: 20px;
    }
    
    .gallery-nav-prev,
    .gallery-nav-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .flex-control-thumbs li {
        flex: 0 0 calc(33.333% - 6px);
        min-width: calc(33.333% - 6px);
    }
    
    .flex-control-thumbs {
        gap: 8px;
    }
}









/* Убираем выделение фоток при клике на стрелки */
.wcgs-slider-image img {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

.wcgs-slider-image a {
    -webkit-tap-highlight-color: transparent !important;
}

.wcgs-slider-image:focus,
.wcgs-slider-image:active,
.wcgs-slider-image img:focus,
.wcgs-slider-image img:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Убираем выделение при клике на миниатюры */
.wcgs-thumb {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.wcgs-thumb:focus,
.wcgs-thumb:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.wcgs-thumb img {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}











/* ===== МЕТКИ ТОВАРА (БЕЙДЖИ) ===== */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.product-badge-tag,
.product-badge-sale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #009FE0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
}

.product-badge-tag {
    background: #009FE0; /* цвет по умолчанию, будет меняться динамически */
}

.product-badge-sale {
    background: #ff6b6b;
}

/* Адаптив для меток */
@media (max-width: 768px) {
    .product-badge-tag,
    .product-badge-sale {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .product-badges {
        gap: 8px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .product-badge-tag,
    .product-badge-sale {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 8px;
    }
}




























/* ===== КАРТОЧКА ТОВАРА В КАТАЛОГЕ ===== */

/* Сетка товаров - 3 колонки на десктопе */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* На планшетах 2 колонки */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* На мобилках 1 колонка */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Карточка */
.product-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card-inner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== СЛАЙДЕР ===== */
.product-card-slider {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-slide {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 375 / 246;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки навигации */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #009FE0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: #009FE0;
    color: #FFFFFF;
}

/* Пагинация (точки) */
.slider-pagination {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #009FE0;
    opacity: 1;
}

/* ===== КОНТЕНТ ===== */
.product-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Заголовок + цена */
.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 24px;
    color: #3A3A38;
    margin: 0;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card-title a:hover {
    color: #009FE0;
}

.product-card-price {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 24px;
    color: #3A3A38;
    white-space: nowrap;
}

.product-card-price del {
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.product-card-price ins {
    text-decoration: none;
}

/* Характеристики */
.product-card-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
}

.spec-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #3A3A38;
    flex-shrink: 0;
    white-space: nowrap;
}

.spec-line {
    flex: 1;
    height: 1px;
    background: rgba(58, 58, 56, 0.2);
}

.spec-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #3A3A38;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

/* Кнопка */
.product-card-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 123px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #009FE0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #009FE0;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card-details-btn:hover {
    background: #009FE0;
    color: #FFFFFF;
    border-color: #009FE0;
}




/* Принудительная сетка для WooCommerce */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 60px !important;
    list-style: none !important;
    padding: 0 !important;
}

ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* На планшетах 2 колонки */
@media (max-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* На мобилках 1 колонка */
@media (max-width: 768px) {
    ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.woocommerce-result-count {
    display: none;
}
.woocommerce-ordering {
    display: none;
}
