/* === Bouquets Slider Widget v1 === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.bs-widget *,
.bs-widget *::before,
.bs-widget *::after {
    box-sizing: border-box;
}

.bs-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 16px 24px 20px;
    border-radius: 16px;
    overflow: hidden;
}

/* ── Filters ─────────────────────────────────── */
.bs-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bs-filter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 7px 16px;
    border: none;
    background: #f3f4f6;

    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bs-filter:hover {
    color: #0077ff;
}

.bs-filter.active {
    background: #0077ff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,119,255,0.35);
}

/* ── Slider wrapper + arrows ─────────────────── */
.bs-slider-wrapper {
    position: relative;
}

.bs-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 4px 10px;
}

.bs-track::-webkit-scrollbar {
    display: none;
}

.bs-arrow {
    position: absolute;
    top: calc(50% - 18px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #1a1a2e;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    user-select: none;
}

.bs-arrow:hover {
    background: #0077ff;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,119,255,0.45);
}

.bs-arrow-left  { left: -18px; }
.bs-arrow-right { right: -18px; }

.bs-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Card ────────────────────────────────────── */
.bs-card {
    flex: 0 0 200px;
    background: #e8f4fd;

    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.bs-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    overflow: hidden;
}

.bs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.bs-card:hover .bs-card-img img {
    transform: scale(1.07);
}

.bs-card-img img.bs-no-photo {
    opacity: 0.65;
    filter: grayscale(30%);
}

.bs-badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.bs-badge.ready {
    top: 8px;
    left: 8px;
    background: #00c853;
}

.bs-badge.sale {
    top: 8px;
    right: 8px;
    background: #ff4081;
}

.bs-card-body {
    padding: 12px;
}

.bs-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.bs-card-price {
    font-size: 19px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 2px;
    line-height: 1.2;
}

.bs-card-old-price {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    margin-bottom: 8px;
}

.bs-order-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #0077ff;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.2px;
}

.bs-order-btn:hover  { background: #0066dd; transform: scale(1.02); }
.bs-order-btn:active { transform: scale(0.97); }

/* ── Skeleton ────────────────────────────────── */
.bs-card.skeleton .bs-card-img {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: bs-shimmer 1.5s infinite;
}

.bs-sk-line {
    height: 13px;
    background: #e8e8e8;
    border-radius: 7px;
    margin-bottom: 8px;
}

.bs-sk-line.w70 { width: 70%; }
.bs-sk-line.w50 { width: 50%; }
.bs-sk-line.w100 { width: 100%; height: 36px; border-radius: 10px; }

@keyframes bs-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty ───────────────────────────────────── */
.bs-empty {
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

/* ── Photo modal ─────────────────────────────── */
.bs-photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: zoom-out;
}

.bs-photo-modal.active {
    opacity: 1;
    visibility: visible;
}

.bs-photo-modal img {
    max-width: 92%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}

/* ── Modal ───────────────────────────────────── */
.bs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.bs-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bs-modal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    position: relative;
    transform: scale(0.88);
    transition: transform 0.3s;
}

.bs-modal-overlay.active .bs-modal {
    transform: scale(1);
}

.bs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-modal-close:hover { background: #e5e7eb; }

.bs-modal-bouquet {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.bs-modal-price {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.1;
}

.bs-modal-location {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 22px;
}

.bs-modal-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
}

.bs-messengers {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.bs-soc {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 28px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.bs-soc:hover { transform: scale(1.13); }

.bs-soc.whatsapp {
    background-color: #25D366;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

.bs-soc.telegram {
    background-color: #2AABEE;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
    box-shadow: 0 6px 20px rgba(42,171,238,0.45);
}

.bs-soc.max {
    background-color: #168ACD;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 42 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFFFFF' fill-rule='evenodd' d='M21.47 41.88c-4.11 0-6.02-.6-9.34-3-2.1 2.7-8.75 4.81-9.04 1.2 0-2.71-.6-5-1.28-7.5C1 29.5.08 26.07.08 21.1.08 9.23 9.82.3 21.36.3c11.55 0 20.6 9.37 20.6 20.91a20.6 20.6 0 0 1-20.49 20.67Zm.17-31.32c-5.62-.29-10 3.6-10.97 9.7-.8 5.05.62 11.2 1.83 11.52.58.14 2.04-1.04 2.95-1.95a10.4 10.4 0 0 0 5.08 1.81 10.7 10.7 0 0 0 11.19-9.97 10.7 10.7 0 0 0-10.08-11.1Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 28px;
    box-shadow: 0 6px 20px rgba(22,138,205,0.45);
}

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 640px) {
    .bs-widget {
        padding: 12px 16px 16px;
        border-radius: 12px;
    }

    .bs-arrow { width: 34px; height: 34px; font-size: 18px; }
    .bs-arrow-left  { left: -12px; }
    .bs-arrow-right { right: -12px; }

    .bs-card { flex: 0 0 160px; }
    .bs-card-body { padding: 10px; }
    .bs-card-name  { font-size: 12px; }
    .bs-card-price { font-size: 16px; }

    .bs-order-btn { padding: 8px; font-size: 12px; border-radius: 8px; }

    .bs-modal { padding: 30px 20px 26px; }
    .bs-modal-price { font-size: 28px; }
    .bs-soc { width: 54px; height: 54px; }
    .bs-messengers { gap: 14px; }
}
