/* Контейнер за каталога */
.wc-flipbook-catalog {
    max-width: 1400px;
    margin: 60px auto;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    padding: 0 20px;
}

/* Обвивка за стрелките */
.flipbook-shell {
    position: relative;
    display: inline-block;
}

/* Flipbook – височина по-висока, имитира 3D книгата */
.flipbook {
    width: 1080px;
    height: 750px;
    margin: 0 auto;
    position: relative;
    perspective: 1800px;
}

/* забраняваме селектиране на текст при drag, без да чупим drag-а */
.flipbook,
.flipbook * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* вертикален разделител между две страници – само десктоп */
@media (min-width: 768px) {
    .flipbook::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 24px;
        bottom: 24px;
        width: 2px;
        border-radius: -36px;
        transform: translateX(-50%);
        background: #e3e3e3;
        opacity: 0.75;
        z-index: 35;
        pointer-events: none;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
}

/* Страници */
.flipbook .page {
    background: transparent;
    border: none;
    display: block;
    position: relative;
    overflow: visible;
    border-radius: 25px;
}

/* Layout за вътрешността на страницата */
.flipbook-page-inner {
    position: relative;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid #e3e3e3;
    box-shadow:
        rgba(15, 18, 40, 0.18) 0px 25px 50px -12px,
        rgba(0, 0, 0, 0.12) 0px 18px 36px -18px;
}

/* Продуктови страници – фулсекшън изображение + overlay */
.page:not(.page-cover) .flipbook-page-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* COVER страница */
.page-cover .flipbook-page-inner {
    display: flex;
    flex-direction: column;
    padding: 50px 40px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f6f8fb 0%, #eaedf4 45%, #dde3f0 100%);
}

.catalog-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.catalog-subtitle {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a5568;
    font-family: 'Montserrat', sans-serif;
}

/* Фул секция снимка */
.product-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5% 6% 50%;
    box-sizing: border-box;
    background: #fefefe;
}

.product-image img {
    max-height: 90%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Overlay блок с информация (40% от височината) */
.product-content {
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 20px;
    height: 40%;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2933;
    padding: 33px 0px 0px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

@media (max-width: 767px) {
    .product-content {
        padding: 40px 0px 0px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* Текст в долната секция */
.product-title {
    font-size: 14px;
    margin: 4px 0 6px;
    font-weight: 600;
    text-align: center;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.product-sku {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 6px;
    color: #090909;
}

.product-description {
    font-size: 12px;
    line-height: 1.6;
    max-width: 95%;
    text-align: center;
    color: #000;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

/* Стрелки (десктоп) */
.flipbook-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    width: 34px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 25;
}

.flipbook-arrow.arrow-left {
    left: -40px;
}

.flipbook-arrow.arrow-right {
    right: -40px;
}

.flipbook-arrow:hover {
    background: rgba(0,0,0,0.55);
    transform: translateY(-50%) scale(1.05);
}

.flipbook-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Брояч */
.flipbook-counter-bar {
    margin-top: 14px;
}

.flipbook-counter {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    background: #f1f1f1;
    font-size: 14px;
    color: #444;
}

/* МОБИЛНО – една страница, без спайн и без стрелки */
@media (max-width: 767px) {
    
    .product-image {
        padding: 5% 6% 60%;
    }
    
    .product-content {
        padding: 28px 0px 0px;
        left: 10px;
    right: 10px;
    bottom: 10px;
    
    }
.product-description {
        font-size: 10px;
}
.product-title {
        font-size: 13px;
        margin: 4px 10px 6px;
    }
    .wc-flipbook-catalog {
        max-width: 100%;
        padding: 0 10px;
    }

    .flipbook-shell {
        width: 100%;
    }

    .flipbook {
        width: 100%;
        height: auto; /* turn.js ще си прецени височината */
        border: none!important;
    }

    .flipbook::before {
        display: none; /* махаме разделителя */
    }

    .flipbook-arrow {
        display: none; /* махаме стрелките – само swipe */
    }

    .catalog-title {
        font-size: 32px;
    }

    .catalog-subtitle {
        font-size: 16px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-description {
        font-size: 12px;
    }

    .flipbook-counter-bar {
        margin-top: 18px;
    }
}
