/* ========================================
   СТИЛИ КОМПОНЕНТА КАРТОЧКИ ТОРТА
   ======================================== */

/* Стили для кнопки "Открыть в новой вкладке" */
.bulma-info-button {
    background: linear-gradient(135deg, #202953 0%, #545f617a 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulma-info-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white;
}

.bulma-info-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulma-info-button .bulma-icon {
    margin-right: 0.5rem;
}

/* Стили для галереи изображений */
.bulma-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bulma-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.bulma-thumbnail:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bulma-thumbnail.bulma-thumbnail-active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.bulma-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bulma-thumbnail:hover img {
    transform: scale(1.1);
}

.bulma-main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.bulma-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease-in-out;
}

/* Стили для радио кнопок */
.bulma-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bulma-radio:hover {
    background: #f8f9fa;
}

.bulma-radio input[type="radio"] {
    display: none;
}

.bulma-radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.bulma-radio input[type="radio"]:checked + .bulma-radio-mark {
    border-color: #007bff;
    background: #007bff;
}

.bulma-radio input[type="radio"]:checked + .bulma-radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Стили для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bulma-notification-toast {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Стили для разных типов уведомлений */
.bulma-notification.bulma-is-success {
    background-color: #48c774;
    color: white;
}

.bulma-notification.bulma-is-warning {
    background-color: #ffdd57;
    color: #4a4a4a;
}

.bulma-notification.bulma-is-info {
    background-color: #3298dc;
    color: white;
}

.bulma-notification.bulma-is-danger {
    background-color: #f14668;
    color: white;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .bulma-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .bulma-thumbnails {
        gap: 0.25rem;
    }
    
    .bulma-notification-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================================
   Flowwow-style product page (детальная карточка товара)
   ============================================================ */
.cake-card-container { --ff-pink: var(--pp-accent, #913d45); --ff-pink-dark: color-mix(in srgb, var(--pp-accent, #913d45) 85%, #000); color: #1a1a1a; }

/* Галерея */
.ff-pp-main-image { position: relative; border-radius: 18px; box-shadow: none; background: #f3f3f5; }
.ff-pp-main-image img { border-radius: 18px; aspect-ratio: 1/1; object-fit: cover; width: 100%; height: auto; }
.ff-pp-image-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 3; }
.ff-pp-img-btn {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #1a1a1a; font-size: 1rem; transition: all .2s ease;
}
.ff-pp-img-btn:hover { color: #000; transform: scale(1.05); }
.ff-pp-fav.active { color: #000; }
.ff-pp-gallery .bulma-thumbnail { border-radius: 12px; border: 2px solid #eee; }
.ff-pp-gallery .bulma-thumbnail:hover { border-color: var(--ff-pink); }
.ff-pp-gallery .bulma-thumbnail.bulma-thumbnail-active { border-color: var(--ff-pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-accent, #913d45) 18%, transparent); }

/* Шапка инфо */
.ff-pp-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: #9b9b9b; margin-bottom: .6rem; flex-wrap: wrap; }
.ff-pp-breadcrumb a { color: #9b9b9b; text-decoration: none; }
.ff-pp-breadcrumb a:hover { color: #000; text-decoration: underline; }
.ff-pp-breadcrumb i { font-size: .55rem; color: #c4c4c4; }
.ff-pp-breadcrumb__current { color: #1a1a1a; }
.ff-pp-title.bulma-title { font-size: 1.7rem; font-weight: 800; color: #1a1a1a; letter-spacing: -.4px; margin-bottom: .6rem; }

/* Цена */
.ff-pp-price-block { margin-bottom: .35rem; }
.ff-pp-price.bulma-cake-price { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; margin: 0; }
.ff-pp-price .price-text { font-size: 1.9rem; font-weight: 800; color: #1a1a1a; }
.ff-pp-price .price-text.price-text-dynamic-hint { font-size: 1rem; font-weight: 600; color: #000; }
.ff-pp-price-old { font-size: 1.05rem; color: #b8b8b8; text-decoration: line-through; }
.ff-pp-sale-badge { background: var(--ff-pink); color: #fff; font-size: .78rem; font-weight: 700; padding: .2rem .5rem; border-radius: 8px; }
.ff-pp-split { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: #6a6a6a; background: #f6f3ff; border: 1px solid #ece6ff; padding: .45rem .7rem; border-radius: 10px; margin-bottom: 1rem; }
.ff-pp-split i { color: #7c5cff; }

/* CTA (Заказать) */
.cake-card-order-button.ff-pp-order,
.ff-pp-order.tastify-btn-primary {
    background: var(--ff-pink) !important; background-image: none !important; border: none !important; color: #fff !important;
    border-radius: 14px !important; height: 54px; font-size: 1.05rem; font-weight: 700;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--pp-accent, #913d45) 28%, transparent); transition: all .2s ease; margin-bottom: 1rem;
}
.cake-card-order-button.ff-pp-order:hover { background: var(--ff-pink-dark) !important; transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--pp-accent, #913d45) 34%, transparent); }
.cake-card-order-button.ff-pp-order:disabled { background: #e7e7ea !important; color: #9b9b9b !important; box-shadow: none; cursor: not-allowed; }

/* Доставка / гарантии */
.ff-pp-delivery { border: 1px solid #f0f0f0; border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; background: #fafafa; }
.ff-pp-delivery__row { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #4a4a4a; }
.ff-pp-delivery__row i { color: #000; width: 18px; text-align: center; }
.ff-pp-delivery__row b { color: #1a1a1a; }

/* Размеры — чипсы */
.bulma-sizes-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.bulma-size-card-option { display: inline-block; }
.bulma-size-card-option input[type="radio"] { display: none; }
.bulma-size-card {
    position: relative; border: 1.5px solid #e6e6e6; border-radius: 12px; padding: .55rem .9rem;
    cursor: pointer; transition: all .2s ease; background: #fff; min-width: 56px; text-align: center;
}
.bulma-size-card .bulma-size-name { font-size: .9rem; font-weight: 600; color: #1a1a1a; }
.bulma-size-card .bulma-size-overlay { display: none; }
.bulma-size-card-option input[type="radio"]:checked + .bulma-size-card { border-color: var(--ff-pink); background: color-mix(in srgb, var(--pp-accent, #913d45) 8%, #fff); box-shadow: 0 2px 8px color-mix(in srgb, var(--pp-accent, #913d45) 15%, transparent); }

/* Начинки — карточки */
.bulma-fillings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.bulma-filling-card-option input[type="radio"] { display: none; }
.bulma-filling-card { border: 1.5px solid #eee; border-radius: 14px; overflow: hidden; cursor: pointer; transition: all .2s ease; background: #fff; }
.bulma-filling-card-option input[type="radio"]:checked + .bulma-filling-card { border-color: var(--ff-pink); box-shadow: 0 2px 10px color-mix(in srgb, var(--pp-accent, #913d45) 18%, transparent); }
.bulma-filling-image-container { position: relative; aspect-ratio: 1/1; background: #f3f3f5; }
.bulma-filling-image { width: 100%; height: 100%; object-fit: cover; }
.bulma-filling-overlay { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ff-pink); color: #fff; display: none; align-items: center; justify-content: center; font-size: .65rem; }
.bulma-filling-card-option input[type="radio"]:checked + .bulma-filling-card .bulma-filling-overlay { display: flex; }
.bulma-filling-name { display: block; padding: .4rem .5rem; font-size: .78rem; font-weight: 600; color: #1a1a1a; text-align: center; }

/* Табы описание/состав — розовый акцент */
.bulma-tabs-section { border-radius: 14px; }
.bulma-tabs li.bulma-is-active a { color: #000 !important; border-bottom-color: var(--ff-pink) !important; }
.bulma-tabs li:hover a { color: #000; }

/* Карточка магазина (профиль) */
.bulma-profile-section { border-top: 1px solid #f0f0f0; padding-top: 1.25rem; }

/* ----- Flowwow-style shop card (PublicPortalCustomerProfile) ----- */
.ff-shopcard { --ff-accent: #ff2d6f; background: #fff; border: 1px solid #f0f0f0; border-radius: 18px; padding: 1.1rem 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.ff-shopcard__main { display: flex; align-items: flex-start; gap: 1.1rem; }
.ff-shopcard__avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: #f3f3f5; display: flex; align-items: center; justify-content: center; }
.ff-shopcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ff-shopcard__avatar-fallback { font-size: 2rem; font-weight: 800; color: #fff; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--ff-accent) 60%, #fff) 0%, var(--ff-accent) 100%); }
.ff-shopcard__info { flex: 1 1 auto; min-width: 0; }
.ff-shopcard__name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ff-shopcard__name { font-size: 1.3rem; font-weight: 800; color: #1a1a1a; margin: 0; letter-spacing: -.3px; }
.ff-shopcard__verified { color: #000; font-size: 1rem; line-height: 1; }
.ff-shopcard__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .55rem; font-size: .88rem; color: #6a6a6a; }
.ff-shopcard__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ff-shopcard__meta-item i { color: #000; width: 15px; text-align: center; }
.ff-shopcard__meta-item a { color: #6a6a6a; text-decoration: none; }
.ff-shopcard__meta-item a:hover { color: #000; }
.ff-shopcard__desc { margin: .65rem 0 0; font-size: .88rem; color: #4a4a4a; line-height: 1.45; }
.ff-shopcard__actions { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.ff-shopcard__btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 1.05rem; border-radius: 12px; font-size: .9rem; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; transition: all .2s ease; text-decoration: none; }
.ff-shopcard__btn--primary { background: var(--pp-accent, #913d45); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--pp-accent, #913d45) 30%, transparent); }
.ff-shopcard__btn--primary:hover { filter: brightness(.94); transform: translateY(-1px); color: #fff; }
.ff-shopcard__btn--ghost { background: #fff; color: #1a1a1a; border-color: #e6e6e6; }
.ff-shopcard__btn--ghost:hover { border-color: var(--pp-accent, #913d45); color: #000; }
.ff-shopcard__btn--ghost.is-active { border-color: var(--pp-accent, #913d45); color: #000; background: color-mix(in srgb, var(--pp-accent, #913d45) 8%, #fff); }
.ff-shopcard__qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ff-shopcard__qr img { width: 110px; height: 110px; border-radius: 12px; border: 1px solid #f0f0f0; padding: 4px; background: #fff; }
.ff-shopcard__qr-cap { font-size: .72rem; color: #9b9b9b; text-align: center; }

@media (max-width: 768px) {
    .ff-shopcard__main { flex-wrap: wrap; }
    .ff-shopcard__avatar { width: 64px; height: 64px; }
    .ff-shopcard__name { font-size: 1.1rem; }
    .ff-shopcard__qr { display: flex; width: 100%; align-items: stretch; }
    .ff-shopcard__qr .pp-messenger-login { width: 100%; }
    .ff-shopcard__btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 768px) {
    .cake-card-container.bulma-columns { flex-direction: column; }
    .ff-pp-title.bulma-title { font-size: 1.35rem; }
    .ff-pp-price .price-text { font-size: 1.55rem; }
    .cake-card-order-button.ff-pp-order { height: 50px; }
}

/* Компактный SEO-заголовок страницы карточки товара */
.cakecard-head {
    display: block;
    padding: 1rem 1.25rem 0.1rem;
}

.cakecard-head__title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
}

.cakecard-answer {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 768px) {
    .cakecard-head {
        padding: 0.75rem 1rem 0.1rem;
    }

    .cakecard-head__title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .cakecard-answer {
        font-size: 0.95rem;
    }
}
