/* ============================================================
   Карточка товара (новый дизайн) — item_view_new.css
   Swiper 14 (основная карусель + миниатюры), lightGallery для зума.
   Без Slick / imgLiquid.
   ============================================================ */

/* ===== Переменные и база ===== */
.sc_item_view_new{
    --yellow:#f9ba07;
    --ink:#17171b;
    --muted:#6d6e77;
    --light:#f3f3f5;
    --border:#e9e9ed;
    --gallery-h:500px;
    --thumb-h:90px;
    color:var(--ink);
    font-size:15px;
    line-height:1.45;
    font-family:Arial,Helvetica,sans-serif;
}
.sc_item_view_new *{box-sizing:border-box}
.sc_item_view_new a{text-decoration:none;color:inherit}
.sc_item_view_new .sc_icon{width:21px;height:21px;flex:none;color:var(--ink);stroke:currentColor}

/* ===== Переопределение h1 (глобальные стили main.css) ===== */
.sc_item_view_new .sc_title{
    font-family:Arial,Helvetica,sans-serif!important;
    text-transform:none!important;
    letter-spacing:-1.5px!important;
    font-size:42px!important;
    line-height:1.1!important;
    margin:8px 0 5px!important;
    padding:0!important;
}
.sc_item_view_new .sc_title span{color:inherit!important}

/* ===== Раскладка ===== */
.sc_new_header{
    display:grid;
    grid-template-columns:minmax(320px,1.18fr) minmax(0,1fr);
    gap:38px;
    align-items:start;
    margin-bottom:40px;
}
.sc_new_gallery{min-width:0;max-width:100%;overflow:hidden}
.sc_new_info{min-width:0}

/* ===== Табы галереи ===== */
.sc_gallery_tabs{display:flex;gap:12px;margin-bottom:14px}
.sc_gallery_tab{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    background:#f0f0f2;
    padding:11px 15px;
    border-radius:14px;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    color:var(--ink);
    transition:background .2s;
}
.sc_gallery_tab .sc_icon{width:19px;height:19px;color:var(--ink)!important}
.sc_gallery_tab.active{background:var(--yellow)}
.sc_gallery_tab:hover:not(.active){background:#e6e6ea}

/* ===== Панели галереи ===== */
.sc_gallery_panel{position:relative;min-width:0;max-width:100%;overflow:hidden}
.sc_gallery_panel_hidden{display:none!important}
.sc_gallery_empty{padding:60px 20px;text-align:center;background:var(--light);border-radius:15px;color:var(--muted)}

/* ============================================================
   Swiper 14: критично — box-sizing: initial у wrapper
   ============================================================ */
.sc_swiper_main,
.sc_swiper_thumbs{
    position:relative;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
}
.sc_swiper_main{border-radius:15px;background:#f1f0ef}

.sc_swiper_main .swiper-wrapper,
.sc_swiper_thumbs .swiper-wrapper{
    box-sizing:initial!important;
    width:100%;
    display:flex;
}
.sc_swiper_main .swiper-slide,
.sc_swiper_thumbs .swiper-slide{
    box-sizing:border-box!important;
    flex-shrink:0;
    height:var(--gallery-h);
    overflow:hidden;
    background:#f1f0ef;
}
.sc_swiper_main .swiper-slide{height:var(--gallery-h)}
.sc_swiper_thumbs .swiper-slide{height:var(--thumb-h)}

.sc_slide_img{position:relative;width:100%;height:100%;overflow:hidden}
.sc_slide_img img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Кнопка увеличения (lightGallery) */
.sc_gallery_selector{
    position:absolute;
    right:14px;
    top:14px;
    z-index:5;
    width:40px;
    height:40px;
    line-height:40px;
    text-align:center;
    border-radius:50%;
    background:rgba(255,255,255,.9);
    color:var(--ink);
    cursor:pointer;
    box-shadow:0 2px 10px #0002;
    font-size:16px;
}
.sc_gallery_selector:hover{background:#fff}

/* Стрелки Swiper */
.sc_swiper_arrow{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#fff;
    color:var(--ink);
    box-shadow:0 2px 10px #0002;
    display:flex;
    align-items:center;
    justify-content:center;
}
.sc_swiper_arrow:after{font-size:28px;font-weight:700;line-height:1}
.sc_swiper_main .swiper-button-prev{left:14px}
.sc_swiper_main .swiper-button-next{right:14px}
/* Убираем дефолтные стрелки Swiper (SVG + псевдоэлемент) */
.sc_swiper_main .swiper-button-prev:after,
.sc_swiper_main .swiper-button-next:after{
    content:none!important;
    display:none!important;
}
.sc_swiper_main .swiper-button-prev .swiper-navigation-icon,
.sc_swiper_main .swiper-button-next .swiper-navigation-icon{
    display:none!important;
}

/* Свои стрелки: чёрные, по одной */
.sc_swiper_main .swiper-button-prev,
.sc_swiper_main .swiper-button-next{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#fff;
    color:var(--ink);
    box-shadow:0 2px 10px #0002;
    display:flex;
    align-items:center;
    justify-content:center;
    --swiper-navigation-color:var(--ink);
    --swiper-navigation-size:18px;
}
.sc_swiper_main .swiper-button-prev:hover,
.sc_swiper_main .swiper-button-next:hover{
    background:#fff;
}
/* Рисуем свою стрелку через ::before */
.sc_swiper_main .swiper-button-prev:before,
.sc_swiper_main .swiper-button-next:before{
    font-family:inherit;
    font-size:22px;
    font-weight:400;
    line-height:1;
    color:var(--ink);
    display:block;
}
.sc_swiper_main .swiper-button-prev:before{content:'‹'}
.sc_swiper_main .swiper-button-next:before{content:'›'}
.sc_swiper_main .swiper-button-prev{left:14px}
.sc_swiper_main .swiper-button-next{right:14px}

/* ============================================================
   Swiper: миниатюры
   ============================================================ */
.sc_swiper_thumbs{margin-top:13px;padding:0 2px}
.sc_swiper_thumbs .swiper-slide{
    border-radius:13px;
    border:3px solid transparent;
    cursor:pointer;
    background:#f1f0ef;
    transition:border-color .2s;
}
.sc_swiper_thumbs .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.sc_swiper_thumbs .swiper-slide-thumb-active{border-color:var(--yellow)}
.sc_swiper_thumbs .swiper-slide:hover{border-color:var(--yellow)}

/* ============================================================
   Видео
   ============================================================ */
.sc_video_list{display:flex;flex-direction:column;gap:16px}
.sc_video_item{
    border-radius:15px;
    overflow:hidden;
    background:#424242;
    aspect-ratio:16/9;
    height:auto;          /* было height: var(--gallery-h) */
    max-height:none;      /* было max-height: var(--gallery-h) */
}
.sc_video_item video{width:100%;height:100%;display:block;object-fit:contain;background:#424242;}

/* ============================================================
   Схемы
   ============================================================ */
.sc_schemes_view{
    position:relative;
    border-radius:15px;
    overflow:hidden;
    background:#fff;
    border:1px solid var(--border);
    height:var(--gallery-h);
    display:flex;
    align-items:center;
    justify-content:center;
}
.sc_scheme_img{display:none;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.sc_scheme_img.active{display:block}
.sc_scheme_sizes{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

/* ============================================================
   Инфо-колонка
   ============================================================ */
.sc_eyebrow{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.sc_eyebrow b{color:var(--ink)}
.sc_subtitle{font-size:23px;margin:0 0 20px;color:var(--ink)}

/* Прямоугольники преимуществ */
.sc_benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:20px}
.sc_benefit{
    background:#ededf0;
    border-radius:15px;
    min-height:102px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
    gap:4px;
    padding:10px 5px;
}
.sc_benefit .sc_icon{width:21px;height:21px;color:var(--ink)!important}
.sc_benefit b{font-size:14px;line-height:1.15;font-weight:700}
.sc_benefit span{font-size:12px;line-height:1.15}
.sc_benefits_count_1 .sc_benefit:nth-child(1){background:var(--yellow)}
.sc_benefits_count_2 .sc_benefit:nth-child(1){background:var(--yellow)}
.sc_benefits_count_3 .sc_benefit:nth-child(1){background:var(--yellow)}
.sc_benefits_count_4 .sc_benefit:nth-child(1),
.sc_benefits_count_4 .sc_benefit:nth-child(4){background:var(--yellow)}
.sc_benefits_count_1{grid-template-columns:1fr}
.sc_benefits_count_2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sc_benefits_count_3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Размеры */
.sc_line{border:0;border-top:1px solid var(--border);margin:17px 0 13px}
.sc_section_heading{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:800;margin-bottom:7px}
.sc_section_heading .sc_icon{width:21px;height:21px;color:var(--ink)!important}
.sc_size_label{font-size:14px;margin:0 0 9px;color:var(--muted)}
.sc_sizes_list{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.sc_size_btn{
    border:1px solid var(--border);
    background:#f0f0f2;
    color:var(--ink);
    padding:8px 17px;
    border-radius:24px;
    font-size:13px;
    white-space:nowrap;
    cursor:pointer;
    transition:all .2s;
}
.sc_size_btn:hover{border-color:var(--yellow)}
.sc_size_btn.active{background:var(--yellow);border-color:var(--yellow)}

/* Материалы */
.sc_materials{display:flex;gap:12px;margin:0 0 22px}
.sc_materials .sc_icon{width:22px;height:22px;color:var(--ink)!important;flex:none;margin-top:2px}
.sc_materials strong{font-size:16px;display:block}
.sc_materials p{color:var(--muted);font-size:13px;margin:3px 0 0}

/* Цена */
.sc_price_row{
    margin-top:22px;
    background:#f5f5f6;
    border-radius:16px;
    padding:12px 14px;
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    align-items:center;
    gap:14px;
}
.sc_price_row_no_price{grid-template-columns:1fr}
.sc_price_label{font-size:13px;color:var(--muted)}
.sc_price{font-size:25px;font-weight:900;white-space:nowrap;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.sc_price_current{color:var(--ink)}
.sc_price_old{font-size:15px;color:var(--muted);font-weight:400;text-decoration:line-through}
.sc_cta_btn{
    border:0;
    background:#ffce22;
    color:#111;
    border-radius:12px;
    padding:18px 14px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:62px;
    cursor:pointer;
    text-align:center;
    transition:background .2s;
    font-size:15px;
}
.sc_cta_btn:hover{background:#ffd94a}
.sc_cta_btn .sc_icon{width:20px;height:20px;color:var(--ink)!important}

/* Действия */
.sc_actions{display:grid;grid-template-columns:1fr 1.15fr;gap:12px;margin-top:18px}
.sc_action{display:flex;gap:10px;align-items:center;padding:7px 5px;font-size:13px;text-align:left;background:none;border:0}
.sc_action .sc_icon{width:24px;height:24px;color:var(--ink)!important;flex:none}
.sc_action b{font-size:13px;font-weight:700}
.sc_action small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.sc_action_salon{border-left:1px solid #ddd;padding-left:22px;cursor:pointer}
.sc_action_salon .sc_icon:last-child{margin-left:auto;color:var(--muted)!important}
.sc_salon_panel{background:var(--light);border-radius:12px;padding:16px;margin-top:12px;font-size:13px}
.sc_salon_panel ul{margin:8px 0 0;padding-left:18px}
.sc_salon_panel li{margin:4px 0}
.sc_salon_panel a{color:var(--ink);text-decoration:underline}
.sc_hidden{display:none!important}
.sc_artikul{margin-top:16px;font-size:13px;color:var(--muted)}

/* ============================================================
   Описание (content_top)
   ============================================================ */
.sc_new_description{margin:16px 0 40px;padding:16px 25px;background:var(--light);border-radius:20px}
.sc_new_description .sc_desc_block{display:grid;grid-template-columns:1.03fr .7fr 1fr;gap:28px;align-items:stretch;width:100%}
.sc_desc_col{min-width:0}
.sc_desc_title{font-size:19px;margin:0 0 8px;font-weight:800}
.sc_desc_text p,.sc_desc_col p{font-size:14px;line-height:1.45;margin:0 0 8px}
.sc_desc_benefits{border-left:2px solid #e2e2e7;padding-left:27px}
.sc_check_item{display:flex;align-items:center;gap:12px;margin:10px 0;font-size:14px}
.sc_check{background:var(--yellow);border-radius:50%;width:23px;height:23px;display:grid;place-items:center;flex:none}
.sc_check .sc_icon{width:14px;height:14px;color:#111!important}
.sc_desc_img_col img{width:100%;height:100%;min-height:135px;max-height:210px;object-fit:cover;border-radius:13px}
.sc_desc_readmore{display:inline-flex;align-items:center;gap:6px;font-weight:800;border:0;background:none;padding:5px 0;cursor:pointer;color:var(--ink);font-size:14px}
.sc_desc_readmore:hover{text-decoration:underline}
.sc_disclaimer{font-size:13px;color:var(--muted);margin-top:16px;padding:14px;background:#fff;border-radius:10px}
.sc_disclaimer p{margin:0 0 6px}

.sc_position_2_fields,.sc_position_5_fields{margin-top:20px}

/* ============================================================
   Нужное из старого item_view.css (перенесено)
   ============================================================ */
.sc_item_view .tags_bar{background:none;padding:0!important}
.sc_item_view .tags_bar .tags_bar_link{
    display:inline-block;
    line-height:13px;
    vertical-align:middle;
    margin:0 8px 6px 0;
    background:#e8e8e8;
    padding:7px 15px;
    color:#555;
    text-transform:none;
    border:none;
    position:relative;
    border-radius:0 3px 3px 0;
}
.sc_item_view .tags_bar .tags_bar_link:hover{background-color:#e0e0e0;color:#444!important}
.sc_item_view .body>a.sc_tag_add{
    display:block;
    background:#f5f5f5;
    border-top:1px solid #ddd;
    margin:0 -15px -15px;
    padding:5px;
    text-align:center;
    color:#a5a5a5;
}
.sc_item_view .body>a.sc_tag_add:hover{color:#777;background:#eee}
.sc_item_view .widget_tabbed{box-shadow:none;border-radius:0}
.sc_item_view .widget_tabbed .tabs{overflow:hidden;border-bottom:none}
.sc_item_view .widget_tabbed .tabs ul{
    overflow:visible;
    height:47px;
    line-height:47px;
    list-style:none;
    margin:0;
    padding:0;
}
.sc_item_view .widget_tabbed .tabs ul li{height:47px;line-height:47px;margin:0;float:left;width:33.3333%}
.sc_item_view .widget_tabbed .tabs ul li a{
    overflow:hidden;
    color:#ababab;
    border:1px solid #f9ba07;
    font-size:12px!important;
    text-align:center;
    font-weight:normal;
    display:block;
    height:47px;
    line-height:47px;
    padding:0 5px;
    cursor:pointer;
    text-transform:none;
    margin:0;
    transition:none;
    text-decoration:none;
}
.sc_item_view .widget_tabbed .tabs ul li.tab:first-child a{border-left:1px solid #f9ba07}
.sc_item_view .widget_tabbed .tabs ul li a.active{background:#f9ba07;color:#424242}
.sc_item_view .widget_tabbed .widgets>.body{box-shadow:none;padding:15px;position:relative}
.sc_item_view .content_item_props{clear:both;padding:0;margin-bottom:15px;background:#fff;border:none}
.sc_item_view .content_item_props table{width:100%}
.sc_item_view .content_item_props table .title{
    font-weight:bold;
    letter-spacing:1px;
    padding:8px 0;
    background:#fff;
    border-left:none;
    border-right:none;
    width:50%;
    color:#68809B;
}
.sc_item_view .content_item_props table tr td{
    border-color:#ddd;
    font-size:14px;
    padding:4px 0;
    border-bottom:solid 1px #B3C2C9;
    border-left:none;
    border-right:none;
}
.sc_item_view .content_item_props table .heading{text-align:center}
.sc_item_view .content_item_props table .value{color:#7f8c8d;padding-left:10px;text-align:right}
.sc_item_view .sc_item_fields{clear:both}
#sc_goods_artikul{margin:0 0 15px;color:#666}
.sc_tab_textBox{padding-top:25px}
.table.colspan td,.table.colspan th{border:1px solid #888}
.content_item .value ul li{margin:0 0 10px -20px}
#widget-2 .ft_html table,#widget-2 .ft_html table th,#widget-2 .ft_html table td{border:none;text-align:center}
#widget-2 .ft_html table th{font-weight:bold;text-decoration:underline}
#widget-2 .ft_html table tbody tr:hover{background:none}
.f_shwg td.first{border:2px solid #f9ba07!important;cursor:pointer}
.f_shwg td.first.active{background-color:#f9ba07}

/* Адаптив табов из старого item_view.css */
@media screen and (max-width:768px){
    .sc_item_view .widget_tabbed .tabs ul.tab_count_6 li a .fa,
    .sc_item_view .widget_tabbed .tabs ul.tab_count_7 li a .fa,
    .sc_item_view .widget_tabbed .tabs ul.tab_count_8 li a .fa{display:none;font-size:13px!important}
}
@media screen and (max-width:580px){
    .sc_item_view .widget_tabbed .tabs ul.tab_count_5 li a .fa{display:none;font-size:13px!important}
}
@media screen and (max-width:480px){
    .sc_item_view .widget_tabbed .tabs ul.tab_count_5 li a .fa{display:inline-block;font-size:16px!important}
    .sc_item_view .widget_tabbed .tabs ul.tab_count_5 li a span{display:none}
    .sc_item_view .widget_tabbed .tabs,.sc_item_view .widget_tabbed .tabs ul{height:auto}
    .sc_item_view .widget_tabbed .tabs ul li{width:100%}
    .sc_item_view .widget_tabbed .tabs ul li a{border-left:1px solid #f9ba07}
}
@media screen and (max-width:320px){
    .sc_item_view .widget_tabbed .tabs ul li a{padding:0 10px;height:35px!important;line-height:34px}
    .sc_item_view .widget_tabbed .tabs ul li,.sc_item_view .widget_tabbed .tabs ul{height:34px;line-height:34px}
    .sc_item_view .widget_tabbed .tabs{height:35px}
}

/* ============================================================
   Мобильная плашка
   ============================================================ */
.sc_mobile_sticky{display:none}

/* ============================================================
   Адаптив
   ============================================================ */
@media(max-width:1250px){
    .sc_item_view_new{--gallery-h:420px;--thumb-h:80px}
    .sc_new_header{gap:23px}
    .sc_title{font-size:36px!important}
    .sc_subtitle{font-size:19px}
    .sc_benefit{min-height:95px}
    .sc_benefit b{font-size:12px}
    .sc_benefit span{font-size:10px}
    .sc_price{font-size:22px}
    .sc_price_row{grid-template-columns:1fr}
    .sc_new_description .sc_desc_block{grid-template-columns:1fr 1fr 1fr}
}

@media(max-width:850px){
    .sc_item_view_new{--gallery-h:380px;--thumb-h:70px}
    .sc_new_header{grid-template-columns:1fr}
    .sc_new_gallery{min-width:0}
    .sc_benefit b{font-size:14px}
    .sc_benefit span{font-size:12px}
    .sc_price_row{grid-template-columns:1fr 1.2fr}
    .sc_new_description .sc_desc_block{grid-template-columns:1fr 1fr}
    .sc_desc_img_col{grid-column:1/-1;max-height:260px}
}

@media(max-width:520px){
    .sc_item_view_new{--gallery-h:260px;--thumb-h:60px}
    .sc_new_header{gap:20px}
    .sc_gallery_tabs{gap:5px}
    .sc_gallery_tab{flex:1;min-width:0;padding:10px 5px;font-size:12px}
    .sc_gallery_tab .sc_icon{width:16px;height:16px}
    .sc_title{font-size:32px!important}
    .sc_subtitle{font-size:18px;margin-bottom:14px}
    .sc_benefits{gap:5px}
    .sc_benefit{min-height:98px;padding:7px 3px;border-radius:9px}
    .sc_benefit .sc_icon{width:17px;height:17px}
    .sc_benefit b{font-size:11px}
    .sc_benefit span{font-size:9px}
    .sc_benefits_count_2,.sc_benefits_count_3{grid-template-columns:repeat(2,minmax(0,1fr))}
    .sc_price_row{grid-template-columns:1fr}
    .sc_price{font-size:25px}
    .sc_actions{gap:5px}
    .sc_action{font-size:11px}
    .sc_action b{font-size:11px}
    .sc_action small{font-size:10px}
    .sc_action_salon{padding-left:10px}
    .sc_new_description .sc_desc_block{grid-template-columns:1fr;padding:0;gap:18px}
    .sc_new_description{padding:19px}
    .sc_desc_benefits{border-left:0;border-top:1px solid var(--border);padding:16px 0 0}
    .sc_desc_img_col{grid-column:auto}
    .sc_mobile_sticky{
        display:flex;
        position:sticky;
        bottom:0;
        z-index:5;
        background:#fff;
        box-shadow:0 -3px 15px #0001;
        padding:10px 14px;
        align-items:center;
        gap:12px;
    }
    .sc_mobile_sticky .sc_cta_btn{flex:1;min-height:55px;font-size:13px}
    .sc_mobile_price{font-size:17px;font-weight:900;white-space:nowrap}
}