/* =============================================
   BUSYA MAIN STYLESHEET
   Consolidated from: busya-shop.css, busya-shops.css, and embedded styles.
   ============================================= */

/* =============================================
   1. SHARED COMPONENTS & VARIABLES
   ============================================= */

/* Global Box Sizing & Defaults */
.busya-top-page-wrapper *,
.busya-shop-page *,
.busya-shops-layout * {
    box-sizing: border-box;
}

/* Common Buttons */
.busya-btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.busya-btn-primary:hover {
    background: #2563eb;
    color: #fff;
}

/* View All Button (Outline) */
.busya-view-all-btn {
    display: inline-block;
    width: auto;
    min-width: 200px;
    background: transparent;
    color: #3b82f6 !important;
    border: 2px solid #3b82f6;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 8px 24px;
    border-radius: var(--busya-radius-btn, 8px);
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: none;
    cursor: pointer;
}

.busya-view-all-btn:hover {
    background-color: #3b82f6;
    color: #fff !important;
    text-decoration: none !important;
}

/* Вторичный (контурный) вид для навигационных кнопок «Все магазины» и т.п.
   Раскладку/размеры берёт из базового .shop-link-btn, меняется только стиль. */
.shop-link-btn.is-ghost {
    background: transparent !important;
    color: var(--busya-accent, #3b82f6) !important;
    border: 2px solid var(--busya-accent, #3b82f6) !important;
}

.shop-link-btn.is-ghost:hover {
    background: var(--busya-accent, #3b82f6) !important;
    color: #fff !important;
}

/* Неактивная кнопка: у магазина нет партнёрской ссылки. На практике такие
   магазины скрыты (см. busya_is_shop_visible), но защищаемся явно — кнопка
   серая и некликабельная вместо ведущей в никуда ссылки. */
.shop-link-btn.is-disabled {
    background: var(--busya-faint, #94a3b8) !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

/* =============================================
   2. MODAL (Global)
   ============================================= */
.busya-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.busya-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.busya-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.busya-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 672px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    margin: 20px;
    color: var(--busya-text, #1e293b);
}

.busya-modal.open .busya-modal-content {
    transform: scale(1);
}

.busya-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    z-index: 10;
}

.busya-modal-close:hover {
    color: #0f172a;
}

.busya-modal-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    text-align: left;
    gap: 20px;
    /* Отступ справа, чтобы логотип не залезал под кнопку-крестик (× в углу). */
    padding-right: 34px;
}

.busya-modal-header-title {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.busya-modal-row-header img {
    height: 90px;
    width: 140px;
    object-fit: contain;
    object-position: right center;
    border-radius: 6px;
    background: transparent;
}

.busya-modal-description {
    font-size: 16px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.busya-modal-code-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: transparent;
    padding: 0;
    border: none;
}

#busya-modal-code-input {
    flex: 1;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    outline: none;
    padding: 10px;
    border-radius: 12px;
    transition: border-color 0.2s;
}

#busya-modal-copy-btn {
    width: 44px;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #3b82f6;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#busya-modal-copy-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.busya-modal-expiry-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    font-style: italic;
    text-align: left;
}

.busya-modal-btn-primary {
    display: block;
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: 2px solid #3b82f6;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border-radius: var(--busya-radius-btn, 8px);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: none;
}

.busya-modal-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Mobile Modal */
@media (max-width: 600px) {
    .busya-modal-row-header {
        flex-direction: column-reverse;
        text-align: center;
    }

    .busya-modal-description {
        text-align: center;
    }
}


/* =============================================
   3. SINGLE SHOP PAGE (Layout)
   ============================================= */
.busya-shop-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin: 30px 0;
    align-items: start;
}

.bsp-sidebar {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.bsp-logo img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bsp-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--busya-text, #1e293b);
    line-height: 1.2;
}

.bsp-description {
    font-size: 14px;
    color: #475569;
}

.bsp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 800px);
    gap: 16px;
    justify-content: start;
    margin-top: 24px;
}

.bsp-empty {
    font-size: 14px;
    color: #64748b;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .busya-shop-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bsp-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   4. COUPON CARDS (Standard & Compact)
   ============================================= */
/* Standard Card (Horizontal) */
.busya-coupon-card {
    display: flex;
    width: 100%;
}

.bcc-link {
    display: grid;
    grid-template-columns: 100px 1fr 140px;
    /* 3 zones */
    align-items: center;
    width: 100%;
    min-height: 100px;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.bcc-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Zone 1: Discount/Logo */
.bcc-discount {
    background: #fff;
    color: var(--busya-text, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
    border-right: 2px dashed #cbd5e1;
}

.bcc-discount img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.bcc-discount-text {
    font-size: 26px;
    font-weight: 600;
    color: #3b82f6;
    text-align: center;
    line-height: 1.2;
}

/* Zone 2: Info */
.bcc-info {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border-right: 2px dashed #cbd5e1;
    height: 100%;
}

.bcc-excerpt {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bcc-content {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bcc-expires {
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bcc-expires::before {
    content: "⏰";
    font-size: 12px;
    opacity: 0.7;
}

/* Zone 3: CTA Button */
.bcc-link button {
    margin: 0 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    width: calc(100% - 40px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    display: block;
}

.bcc-link button:hover {
    background: #2563eb;
}

/* Mobile Card */
@media (max-width: 600px) {
    .busya-coupon-card {
        margin-bottom: 0;
    }

    .bcc-link {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }

    .bcc-discount {
        grid-row: 1 / 2;
        font-size: 16px;
    }

    .bcc-info {
        grid-row: 1 / 2;
        border-right: none;
        padding: 12px 15px;
    }

    .bcc-link button {
        grid-column: 1 / -1;
        width: auto;
        margin: 0 12px 12px;
        border-radius: var(--busya-radius-btn, 8px);
        padding: 12px;
    }
}

/* Compact Layout (Used on Homepage) */
.busya-layout-compact .bcc-link {
    grid-template-columns: 80px 1fr !important;
    min-height: 50px !important;
    padding: 0;
    align-items: center;
}

.busya-layout-compact .bcc-content,
.busya-layout-compact .bcc-expires,
.busya-layout-compact .busya-get-btn {
    display: none !important;
}

.busya-layout-compact .bcc-discount {
    width: 80px !important;
    min-width: 80px !important;
    height: 60px !important;
    padding: 5px;
    border-right: 1px solid #f1f5f9;
}

.busya-layout-compact .bcc-discount-text {
    font-size: 18px;
}

.busya-layout-compact .bcc-info {
    border-right: none;
    padding: 10px 15px;
    align-items: center;
    display: flex;
}

.busya-layout-compact .bcc-excerpt {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .busya-layout-compact .bcc-link {
        grid-template-columns: 70px 1fr !important;
        height: auto;
    }
}

/* Coupon "Plate" (Compact Variant) */
.busya-coupon-plate {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    height: 100%;
}

.busya-coupon-plate:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: none;
    border-color: #e2e8f0;
}

.busya-plate-logo {
    flex-shrink: 0;
    margin-right: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-right: 2px dashed #cbd5e1;
}

.busya-plate-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.busya-plate-placeholder {
    font-size: 24px;
    color: #94a3b8;
}

.busya-plate-info {
    flex: 1;
    overflow: hidden;
}

.busya-plate-shop {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.busya-plate-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.busya-coupon-plate:hover .busya-plate-title {
    color: #3b82f6;
}

.busya-plate-desc {
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.busya-plate-expiry {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
}


/* =============================================
   5. SINGLE COUPON PAGE
   ============================================= */
.bsp-single-coupon {
    width: 800px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.bsp-coupon-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.bsp-coupon-discount {
    background: #3b82f6;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
}

.bsp-coupon-expires {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

.bsp-coupon-code-inline {
    margin-left: auto;
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px dashed #eab308;
    white-space: nowrap;
}

.bsp-coupon-short {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 10px;
}

.bsp-coupon-full {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 20px;
}

.bsp-coupon-btn {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    padding: 12px 22px;
    border-radius: var(--busya-radius-btn, 8px);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.bsp-coupon-btn:hover {
    opacity: 0.9;
}

.bsp-coupon-btn:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .bsp-coupon-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bsp-coupon-discount,
    .bsp-coupon-btn {
        width: 100%;
        text-align: center;
    }
}


/* =============================================
   6. SHOPS ARCHIVE & GLOSSARY ([busya_shops])
   ============================================= */
.busya-shops-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    margin: 24px 0;
}

/* Sidebar with filters */
.busya-sidebar {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: fit-content;
    font-size: 15px;
}

.busya-sidebar h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.busya-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.busya-categories li {
    margin-bottom: 6px;
}

.busya-categories a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #334155;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.busya-categories a:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.busya-categories a.active {
    background: #3b82f6;
    color: #fff;
    font-weight: 500;
}

/* Letter Filter */
.busya-letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 15px;
}

.busya-letter-filter a {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #475569;
    background: #fff;
    transition: all 0.2s;
}

.busya-letter-filter a:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.busya-letter-filter a.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Search */
.busya-shops-search {
    margin-bottom: 28px;
}

.busya-shops-search input[type="text"] {
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 260px;
    max-width: 100%;
}

.busya-shops-search button {
    padding: 10px 20px;
    margin-left: 8px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 120px;
}

.busya-shops-search button:hover {
    background: #2563eb;
}

/* Shops Grid */
.busya-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.busya-shop-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.busya-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bsc-logo {
    height: 140px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bsc-logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.bsc-logo-placeholder {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #64748b;
}

.bsc-info {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bsc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
    text-decoration: none;
}

.bsc-coupons {
    margin: 0 0 0 12px;
    background: #3b82f6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

/* Pagination */
.busya-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.busya-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.busya-pagination a,
.busya-pagination span {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s;
}

.busya-pagination a:hover {
    background: #3b82f6;
    color: #fff;
}

.busya-pagination .current {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .busya-shops-layout {
        grid-template-columns: 1fr;
    }

    .busya-sidebar {
        order: 2;
    }

    .busya-shops-search input[type="text"] {
        width: 100%;
        margin-bottom: 12px;
    }

    .busya-shops-search button {
        width: 100%;
        margin-left: 0;
    }
}


/* =============================================
   7. CATEGORIES GRID (Shared)
   ============================================= */
.busya-categories-list-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.busya-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}

@media (max-width: 768px) {
    .busya-cats-grid {
        grid-template-columns: 1fr;
    }
}

.busya-cat-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    text-decoration: none !important;
    background: none;
    border: none;
    box-shadow: none;
    padding: 10px 0;
    transition: none;
    color: #334155;
}

.busya-cat-item:hover {
    color: #3b82f6;
}

.busya-cat-item:hover .busya-cat-name {
    color: #3b82f6;
    text-decoration: none;
}

.busya-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-right: 16px;
    flex-shrink: 0;
}

.busya-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.busya-cat-bullet {
    color: var(--busya-faint, #94a3b8);
    font-size: 20px;
    margin-right: 10px;
}

.busya-cat-name {
    font-size: 16px;
    font-weight: normal;
    color: inherit;
    line-height: 1.4;
    transition: color 0.2s;
}


/* =============================================
   8. POPULAR SHOPS CAROUSEL (Extracted from shortcode)
   ============================================= */
.busya-popular-container-sc {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px auto;
    padding: 40px 5px;
    font-family: var(--busya-font, system-ui, -apple-system, sans-serif);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    position: relative;
}

.busya-pop-title-sc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 700;
    color: var(--busya-text, #1e293b);
}

.busya-carousel-wrapper-sc {
    position: relative;
    display: flex;
    align-items: center;
}

.busya-carousel-overflow-sc {
    overflow: hidden;
    width: 100%;
    margin: 0 30px;
}

.busya-carousel-track-sc {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.busya-carousel-page-sc {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 12px;
    box-sizing: border-box;
    padding: 4px;
}

@media (max-width: 1100px) {
    .busya-carousel-page-sc { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .busya-carousel-page-sc { grid-template-columns: repeat(3, 1fr); }
}

.busya-pop-item-sc {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
    color: var(--busya-text, #1e293b);
    border: 1px solid transparent;
}

.busya-pop-item-sc:hover {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
    text-decoration: none !important;
}

.busya-pop-logo-sc {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 14px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}

.busya-pop-name-sc {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Режим "только иконки" (например, "Популярные магазины" на главной) */
.busya-icons-only-sc .busya-pop-item-sc {
    justify-content: center;
    padding: 16px;
}

.busya-icons-only-sc .busya-pop-logo-sc {
    width: 100%;
    height: 64px;
    margin-right: 0;
}

.busya-carousel-btn-sc {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    color: #cbd5e1;
    z-index: 10;
    transition: color 0.2s;
    padding: 0;
    box-shadow: none;
}

.busya-carousel-btn-sc:hover {
    color: #3b82f6;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

.busya-carousel-prev-sc {
    left: -5px;
}

.busya-carousel-next-sc {
    right: -5px;
}

@media (max-width: 768px) {
    .busya-carousel-page-sc {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .busya-carousel-overflow-sc {
        margin: 0 25px;
    }

    .busya-carousel-btn-sc {
        font-size: 24px;
        width: 25px;
    }

    .busya-carousel-prev-sc {
        left: -5px;
    }

    .busya-carousel-next-sc {
        right: -5px;
    }

    .busya-popular-container-sc {
        padding: 30px 5px;
    }
}


/* =============================================
   9. HOMEPAGE GRID & BLOCK STYLES
   ============================================= */
/* White Card Blocks */
.busya-coupon-block-list,
.busya-coupon-block-grid {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
    margin-bottom: 40px;
}

.busya-coupon-block-grid h3,
.busya-coupon-block-list h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1e293b;
    text-align: center;
}

/* Grids */
.busya-coupon-grid-container {
    display: grid;
    gap: 15px;
}

.busya-grid-1 .busya-coupon-grid-container {
    grid-template-columns: 1fr;
}

.busya-grid-2 .busya-coupon-grid-container {
    grid-template-columns: repeat(2, 1fr);
}

.busya-grid-4 .busya-coupon-grid-container {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .busya-coupon-grid-container {
        grid-template-columns: 1fr !important;
    }
}

/* Shops Grid 4 (Popular) */
.busya-shops-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 30px;
}

.busya-shop-card-simple {
    text-align: left;
}

.busya-shop-card-simple a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: var(--busya-text, #1e293b);
    font-size: 16px;
    line-height: 1.4;
}

.busya-shop-card-simple a:hover {
    color: #3b82f6;
    text-decoration: none;
}

@media (max-width: 992px) {
    .busya-shops-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .busya-shops-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}