/* =====================================================
   product-page.css — Vostberg Gold
   Стиль сторінки товару — без зміни layout Astra
   ===================================================== */

/* =====================================================
   ГАЛЕРЕЯ
   ===================================================== */



.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: #f8f6f1;
}

.woocommerce-product-gallery__image img {
    transition: transform 0.4s ease;
}
.woocommerce-product-gallery__image:hover img {
    transform: scale(1.02);
}

.flex-control-nav.flex-control-thumbs {
    display: flex !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    list-style: none !important;
}
.flex-control-thumbs li {
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.5;
    transition: opacity 0.2s, outline 0.2s;
    cursor: pointer;
    margin: 0 !important;
    flex: 1;
}
.flex-control-thumbs li.flex-active,
.flex-control-thumbs li:hover {
    opacity: 1;
    outline: 2px solid #b8860b;
    outline-offset: 2px;
}
.flex-control-thumbs li img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* =====================================================
   ПРАВА ПАНЕЛЬ — SUMMARY
   ===================================================== */

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-size: 10px !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}
.woocommerce-breadcrumb a { color: #333 !important; text-decoration: none !important; }
.woocommerce-breadcrumb a:hover { color: #b8860b !important; }

/* Категорія */
.single-product-category { display: block; margin-bottom: 8px; }
.single-product-category a {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #b8860b !important;
    text-decoration: none !important;
    background: rgba(184,134,11,0.08) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(184,134,11,0.2) !important;
}

/* Заголовок */
.product_title.entry-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    color: #111 !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.3px !important;
}

/* Популярний бейдж перед назвою */
.woocommerce div.product.vb-is-popular .product_title::before {
    /*content: '⭐';*/
    /*display: block !important;*/
    /*width: fit-content !important;*/
    /*font-size: 10px !important;*/
    /*font-weight: 700 !important;*/
    /*background: #fff8e1 !important;*/
    /*color: #92650a !important;*/
    /*padding: 3px 10px !important;*/
    /*border-radius: 20px !important;*/
    /*border: 1px solid #f0d080 !important;*/
    /*margin-bottom: 8px !important;*/
    /*letter-spacing: 0.3px !important;*/
}

/* SKU і мета */
.product_meta {
    margin: 0 0 0 !important;
    padding: 20px 0 !important;
    border-top: 0 solid #f0f0f0;
    border-bottom: 0 solid #f0f0f0;
}
.product_meta .sku_wrapper,
.product_meta .posted_in {
    font-size: 14px !important;
    color: #000 !important;
    margin-right: 16px;
    display: inline;
    font-weight: 400 !important;
}
.product_meta .sku,
.product_meta .posted_in a {
    font-weight: 600 !important;
    color: #666 !important;
    text-decoration: none !important;
}

/* =====================================================
   БЛОК ЦІН
   ===================================================== */

.vostberg-price-block {
    background: #fff !important;
    border: 1px solid #e8e2d5 !important;
    border-radius: 14px !important;
    padding: 20px 22px !important;
    margin: 0 0 20px !important;
    max-width: 100% !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}

.vb-product-nav {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 15px 0 0 !important;
    padding: 25px 0 0 0 !important;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 0 solid #f0f0f0 !important;
}

.vostberg-price-cols {
    display: flex !important;
    gap: 0 !important;
}

.vostberg-col {
    flex: 1;
    padding-right: 20px;
}

.vostberg-col.vostberg-sell {
    padding-right: 0;
    padding-left: 20px;
    border-left: 1px solid #f0ece0;
}

.vostberg-col-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    /* text-transform: uppercase !important; */
    letter-spacing: 0px !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

.vostberg-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.4px !important;
}

.vostberg-buy .vb-price-pln  { color: #cc0000 !important; }
.vostberg-sell .vb-price-pln { color: #007a00 !important; }
.vostberg-manual-price .vb-price-pln { color: #007a00 !important; }

.vostberg-price-secondary,
.vb-price-eur {
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 0.55 !important;
    line-height: 1.3 !important;
}

.vostberg-updated {
    margin-top: 15px !important;
    font-size: 14px !important;
    color: #333 !important;
    border-top: 1px solid #f5f0e5 !important;
    padding-top: 15px !important;
}

/* =====================================================
   НАЯВНІСТЬ
   ===================================================== */

.vb-flat-label{
    background: var(--Gradient, linear-gradient(270deg, #AC8331 0%, #32312D 100%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #bbb !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.vb-flat-body h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 30px 0 20px !important;
}

.vb-flat-body p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #555 !important;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
}

.vb-flat-body ul li {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #555 !important;
    margin-bottom: 15px !important;
}

.vb-flat-body table td {
    padding: 14px 16px !important;
    border: 1px solid #ede9e0 !important;
    color: #333 !important;
}

.vb-attr-flat-key {
    padding: 12px 16px 12px 0 !important;
    color: #aaa !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 35% !important;
    vertical-align: top !important;
}

.vb-attr-flat-val {
    padding: 12px 0 !important;
    color: #222 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.vostberg-avail {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    margin: -10px 0 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    order: -1;
    width: fit-content;
    border: 1px solid #e1e1e1;
    background-color: #fdfaf3;
    color: #000000;
}

.avail-in  { color: #006610 !important; background: #f0fff4 !important; border-color: #b8e6bf !important; }
.avail-exp { color: #7a5500 !important; background: #fffbea !important; border-color: #f0d080 !important; }
.avail-out { color: #b00 !important;    background: #fff2f2 !important; border-color: #ffb3b3 !important; }

/* =====================================================
   ПЕРЕДЗАМОВЛЕННЯ
   ===================================================== */

.vostberg-preorder-wrap { margin: 0 0 16px !important; }

.vostberg-preorder-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #b8860b, #c9980f) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 20px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 3px 14px rgba(184, 134, 11, 0.28) !important;
    letter-spacing: 0.1px !important;
}

.vostberg-preorder-btn:hover {
    background: linear-gradient(135deg, #9a7000, #b8860b) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 18px rgba(184,134,11,0.38) !important;
}

.flex-control-nav.flex-control-thumbs li {
    padding: 12px;
    background-color: #fff;
    border-radius: 10px;
}

.vostberg-form {
    background: #fafaf8 !important;
    border: 1px solid #e8e4d8 !important;
    border-radius: 14px !important;
    padding: 22px !important;
    margin-top: 10px !important;
}

.vostberg-form-title {
    margin: 0 0 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.vb-field { margin-bottom: 12px !important; }
.vb-field label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #888 !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.vb-field input,
.vb-field textarea {
    width: 100% !important;
    padding: 10px 13px !important;
    border: 1px solid #ddd9ce !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    transition: border 0.15s, box-shadow 0.15s !important;
    color: #333 !important;
}
.vb-field input:focus,
.vb-field textarea:focus {
    border-color: #b8860b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1) !important;
}
.vostberg-submit-btn {
    width: 100% !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}
.vostberg-submit-btn:hover { background: #333 !important; }

.vostberg-success {
    background: #f0fff4 !important;
    border: 1px solid #b8e6bf !important;
    color: #006610 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* =====================================================
   ХАРАКТЕРИСТИКИ
   ===================================================== */

.vostberg-attributes {
    background: #fafaf8 !important;
    border: 1px solid #ede9e0 !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    margin: 0 0 16px !important;
    max-width: 100% !important;
}

.vostberg-attr-title {
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #ccc !important;
    margin-bottom: 12px !important;
}

.vostberg-attr-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12px !important;
}
.vostberg-attr-table tr { border-bottom: 1px solid #f0ece0; }
.vostberg-attr-table tr:last-child { border-bottom: none; }
.vostberg-attr-key {
    padding: 8px 12px 8px 0 !important;
    color: #aaa !important;
    font-weight: 500 !important;
    width: 42% !important;
    font-size: 11px !important;
    vertical-align: top !important;
}
.vostberg-attr-val {
    padding: 8px 0 !important;
    color: #222 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* =====================================================
   ВКЛАДКИ
   ===================================================== */

.woocommerce-tabs {
    border-top: 1px solid #ede9e0 !important;
    margin-top: 40px !important;
    padding-top: 0 !important;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #ede9e0 !important;
    margin-bottom: 28px !important;
    padding: 0 !important;
    background: none !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after { display: none !important; }

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 14px 22px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #bbb !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important;
    transition: color 0.15s !important;
    white-space: nowrap !important;
    background: none !important;
}
.woocommerce-tabs ul.tabs li a:hover { color: #666 !important; background: none !important; }
.woocommerce-tabs ul.tabs li.active a {
    color: #111 !important;
    border-bottom-color: #b8860b !important;
    background: none !important;
}

.woocommerce-tabs .panel {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Опис */
.woocommerce-Tabs-panel--description h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #ede9e0 !important;
}
.woocommerce-Tabs-panel--description h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 22px 0 10px !important;
}
.woocommerce-Tabs-panel--description p {
    font-size: 14px !important;
    line-height: 1.75 !important;
    color: #555 !important;
    margin-bottom: 14px !important;
}
.woocommerce-Tabs-panel--description ul li {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #555 !important;
    margin-bottom: 8px !important;
}
.woocommerce-Tabs-panel--description table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
    margin: 16px 0 !important;
    border: 1px solid #ede9e0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.woocommerce-Tabs-panel--description table tr:first-child {
    background: #f5f0e8 !important;
}
.woocommerce-Tabs-panel--description table tr:nth-child(even):not(:first-child) {
    background: #fafaf8 !important;
}
.woocommerce-Tabs-panel--description table td {
    padding: 10px 16px !important;
    border: 1px solid #ede9e0 !important;
    color: #333 !important;
}

/* Додаткова інформація */
.shop_attributes { width: 100% !important; border-collapse: collapse !important; }
.shop_attributes tr { border-bottom: 1px solid #f0ece0 !important; }
.shop_attributes tr:last-child { border-bottom: none !important; }
.shop_attributes .woocommerce-product-attributes-item__label {
    padding: 10px 16px 10px 0 !important;
    color: #aaa !important;
    font-weight: 600 !important;
    width: 30% !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    vertical-align: top !important;
    background: transparent !important;
}
.shop_attributes .woocommerce-product-attributes-item__value {
    padding: 10px 0 !important;
    color: #222 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    background: transparent !important;
}
.shop_attributes .woocommerce-product-attributes-item__value p { margin: 0 !important; }
.shop_attributes .woocommerce-product-attributes-item__value a {
    color: #b8860b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* =====================================================
   СУПУТНІ ТОВАРИ
   ===================================================== */

.related.products {
    margin-top: 0 !important;
    padding-top: 40px !important;
    border-top: 0 !important;
}

.vg-footer {
    margin-top: 0 !important;
}

.ast-woocommerce-container {
    padding: 10px 0 0 0 !important;
}

.vb-hours-table td {
    padding: 11px 20px !important;
    font-size: 14px;
    color: #444;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 60px;
    margin-bottom: 0 !important;
}

.vb-popup {
    max-width: 580px !important;
}

.vb-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.15s;
    line-height: 1;
    padding: 0;
}

.vb-popup-body p {
    margin: 0 0 15px !important;
    font-size: 15px !important;
}

.vb-returns-list li {
    padding: 10px 0 !important;
    font-size: 15px !important;
}

.related.products > h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #333 !important;
    margin-bottom: 28px !important;
    background: var(--Gradient, linear-gradient(270deg, #AC8331 0%, #32312D 100%));
    background-clip: text;
    -webkit-background-clip: text;
}

.flex-control-nav li {
    max-width: 80px;
    border-radius: 0;
    opacity: 1;
    border: none !important;
    outline: none !important;
}

.single-product .site-content{
    padding: 0 10px 0 10px;
    background-color: #f5f5f5 !important;
    margin: 0 0 0 0;
    border-left: 0;
    border-radius: 0;
}

.single-product .site-content .main-container{
    max-width: 1920px;
    margin-top: 0 !important;
}

.single-product .wp-post-image img,
.single-product .woocommerce-product-gallery__image img{
    max-height: 700px;
    height: 100% !important;
    object-fit: contain;
    padding: 3vw;
}

.single-product .wp-post-image:hover img,
.single-product .woocommerce-product-gallery__image:hover img{
    max-height: auto;
    height: auto !important;
}

.single-product .flex-viewport .woocommerce-product-gallery__wrapper > div {
    background-color: #ffffff;
    border-radius: 20px;
}

.woocommerce-product-gallery__image img {
    transition: transform 0.9s ease;
}

.single-product  .summary{
    background-color: #fff;
    padding: 4%;
    border-radius: 20px;
    width: 49% !important;
    display: flex;
    flex-direction: column;
}

.single-product  .summary .woocommerce-breadcrumb,
.single-product  .summary .single-product-category a,
.single-product  .summary .single-product-category{
    display: none !important;
}

.single-product  .woocommerce-breadcrumb {
    color: #777;
    display: flex;
    flex-direction: row;
    margin-bottom: 30px !important;
    margin-top: -80px !important;
    font-size: 14px !important;
}

.vb-flat-content {
    max-width: 100%;
    margin: 0 !important;
    padding-top: 0;
    display: inline-block;
}

.single-product .vb-flat-section{
    background-color: #fff;
    padding: 3%;
    border-radius: 20px;
    padding-top: 3% !important;
    margin: 20px 0;
    border: none;
}

#vb-popup-returns .vb-popup{
    max-width: 1080px !important;
}

#vb-popup-returns .vb-popup h2{
    font-size: 20px;
}

#vb-popup-returns .vb-popup h3{
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 0;
    color: #000;
}
#vb-popup-returns .vb-popup p{
    font-size: 14px !important;
    margin-bottom: 15px !important;
    line-height: 1.5;
}


/* =====================================================
   МОБІЛЬНА
   ===================================================== */

@media (max-width: 1200px) {
    .single-product .woocommerce-breadcrumb {
        margin-bottom: 10px !important;
        margin-top: 0px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 1100px) {
    .single-product .woocommerce-breadcrumb {
        margin-bottom: 15px !important;
        margin-top: 15px !important;
    }

    .main-container {
        padding: 0 10px !important;
    }

    .product_title.entry-title {
        font-size: 22px !important;
    }

    .vostberg-price,
    html[data-currency="EUR"] .vb-price-eur, body[data-currency="EUR"] .vb-price-eur{
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 922px) {
    .single-product .summary {
        padding: 4%;
        border-radius: 20px;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .single-product .woocommerce-breadcrumb {
        display: flex;
        flex-direction: row;
        margin-bottom: 15px !important;
        margin-top: -5px !important;
        font-size: 11px !important;
        overflow-x: scroll;
        flex-wrap: nowrap;
        width: 100%;
        white-space: pre;
    }

    .vb-flat-body p{
        font-size: 14px !important;
    }

    #vb-popup-returns .vb-popup .vb-popup-body {
        overflow-y: scroll;
        height: 80vh;
        overflow-x: hidden;
        padding-right: 10px;
    }

    .single-product .summary {
        padding: 8% 6% 6% 6%;
        margin-bottom: 0 !important;
    }

    .vostberg-col-title,
    .product_meta .sku_wrapper,
    .product_meta .posted_in,
    .vostberg-col-title,
    .vostberg-updated,
    .vb-contacts-label {
        font-size: 13px !important;
    }

    .product_meta {
        margin: 10px 0 0 !important;
        border-top: 1px solid #f0f0f0 !important;
        padding: 20px 0 !important;
        border-top: 0 solid #f0f0f0;
        border-bottom: 0 solid #f0f0f0;
    }

    .ast-header-break-point .ast-primary-header-bar {
        border-bottom-color: #ffffff !important;
    }

    .vb-nav-link {
        font-size: 13px;
        padding: 8px 15px;
    }

    .site-content .main-container {
        padding: 0 5px !important;
    }

    .woocommerce-js div.product div.summary {
        margin-bottom: 0;
    }

    .single-product .vb-flat-section {
        padding-top: 6% !important;
        padding-left: 6% !important;
        padding-right: 6% !important;
    }

    .vb-flat-body .translation-block ul {
        padding-left: 0 !important;
        margin-bottom: 20px !important;
        margin: 0 0 1.5em 1.5em !important;
        font-size: 14px;
    }

    .vb-flat-body .translation-block ul li {
        font-size: 14px !important;
        line-height: 1.75 !important;
        color: #555 !important;
        margin-bottom: 10px !important;
    }

    .vb-flat-section .vb-flat-body table td {
        padding: 16px 14px !important;
        border: 1px solid #ede9e0 !important;
        color: #333 !important;
        font-size: 13px !important;
    }

    .vb-hours-table td {
        padding: 12px 0px !important;
        font-size: 14px;
        color: #444;
        border-left: 1px solid #d1d5db00;
        border-right: 1px solid #d1d5db00;
    }

}



@media (max-width: 544px) {
    .product_title.entry-title { font-size: 20px !important; }
    .vostberg-price { font-size: 17px !important; }
    .vostberg-price-block { padding: 16px !important; }
    .vostberg-col { padding-right: 12px !important; }
    .vostberg-col.vostberg-sell { padding-left: 12px !important; }
    .woocommerce-tabs ul.tabs li a { padding: 12px 14px !important; font-size: 10px !important; }
}