/* ============================================================
   LOLLI SHOP HOME — ПОЛНЫЙ CSS ПОД НОВЫЙ PHP
   ВЕРСИЯ 2.0 — ПЕРЕПИСАНО ПОЛНОСТЬЮ ПОД АКТУАЛЬНУЮ HTML/PHP РАЗМЕТКУ
============================================================ */

/* ОБВЁРТКА */
.lolli-shop-home {
    width: min(1300px, 94%);
    margin: 40px auto 80px;
    color: #f7f0ff;
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO
============================================================ */

.lolli-hero {
    width: 100%;
    margin: 0 auto 60px;
}

.lolli-hero-inner {
    background:
        radial-gradient(circle at top, rgba(255,144,232,0.25), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(183,120,255,0.35), transparent 55%),
        #141421;
    border-radius: 28px;
    padding: 34px 34px 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
    gap: 30px;
    box-shadow: 0 0 40px rgba(255,120,220,0.4);
    position: relative;
    overflow: hidden;
}

.lolli-hero-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.lolli-hero-inner::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,174,246,0.52), transparent 70%);
    right: -80px;
    top: -60px;
    opacity: 0.85;
}

.lolli-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.lolli-hero-label {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15,15,30,0.6);
    border: 1px solid rgba(255,120,220,0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #ffd8f8;
    margin-bottom: 12px;
}

.lolli-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    text-shadow: 0 0 14px rgba(255,120,220,0.3);
}

.lolli-hero-title span {
    color: #ff9ce9;
}

.lolli-hero-subtitle {
    font-size: 15px;
    color: #f3e9ff;
    max-width: 460px;
    margin-bottom: 18px;
    opacity: 0.96;
}

.lolli-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lolli-hero-btn {
    padding: 11px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #1a1020;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(255,120,220,0.8);
    transition: .25s ease;
}

.lolli-hero-btn:hover {
    background: #ff7cd8;
    color: #fff;
    transform: translateY(-1px);
}

.lolli-hero-link {
    font-size: 14px;
    color: #9bd6ff;
    text-decoration: none;
    position: relative;
}

.lolli-hero-link:hover {
    color: #ffd4ff;
}

/* Правая часть */
.lolli-hero-art {
    position: relative;
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lolli-hero-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffb4f7 0%, #ff8bdc 35%, #f9e1ff 80%);
    box-shadow: 0 0 40px rgba(255,171,244,0.85);
}

.lolli-hero-avatar {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lolli-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   СЕКЦИИ
============================================================ */

.lolli-section {
    margin-bottom: 48px;
    position: relative;
}

.lolli-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.lolli-section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #ffd8f8;
}

.lolli-section-link {
    color: #9bd6ff;
    font-size: 14px;
    text-decoration: none;
    transition: .25s ease;
}

.lolli-section-link:hover {
    color: #ffb4ff;
}

.lolli-section-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(90deg,#ff7dd1,#b067ff);
    text-transform: uppercase;
}


/* ============================================================
   НОВИНКИ — СКРОЛЛ
============================================================ */

.lolli-home-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    padding-top: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.lolli-home-scroll::-webkit-scrollbar {
    height: 6px;
}

.lolli-home-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,120,220,0.45);
    border-radius: 10px;
}

.lolli-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10,10,20,0.9);
    color: #ffd8f8;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    z-index: 5;
}

.lolli-scroll-btn.left {
    left: -8px;
}

.lolli-scroll-btn.right {
    right: -8px;
}

.lolli-scroll-btn:hover {
    background: #ff7cd8;
    color: #fff;
}


/* ============================================================
   КАРТОЧКА ТОВАРА (НОВАЯ — ПОД PHP)
============================================================ */

.lolli-home-card {
    background: #191923;
    border-radius: 18px;
    padding: 14px 14px 16px;
    box-shadow: 0 0 18px rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 190px;
    max-width: 210px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    text-align: center;
    position: relative;
}

.lolli-home-img {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
}

.lolli-home-img img {
    width: 100%;
    height: auto;
    transition: transform .25s ease;
    object-fit: contain !important;
    display: block;
}

.lolli-home-card:hover .lolli-home-img img {
    transform: scale(1.05);
}

.lolli-home-cat {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,120,220,0.15);
    color: #ffe5ff;
    text-decoration: none;
    margin-bottom: 6px;
    display: inline-block;
}

.lolli-home-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.lolli-home-title a {
    color: #ffffff;
    text-decoration: none;
}

.lolli-home-title a:hover {
    color: #ffb4ff;
}

.lolli-home-price {
    font-size: 15px;
    font-weight: 700;
    color: #ffe5ff;
    margin-bottom: 10px;
}

.lolli-home-btn {
    margin-top: auto;
    padding: 9px 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1020;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: .25s ease;
}

.lolli-home-btn:hover {
    background: #ff7cd8;
    color: #fff;
}


/* ============================================================
   FULL GRID
============================================================ */

.lolli-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}


/* ============================================================
   КАТЕГОРИИ
============================================================ */

.lolli-cats-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}

.lolli-cat-card {
    background: #181822;
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 18px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.04);
    transition: .25s ease;
}

.lolli-cat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,120,220,0.6);
    box-shadow: 0 0 26px rgba(255,120,220,0.5);
}

.lolli-cat-icon {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: #f9e5f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lolli-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffd8f8;
}


/* ============================================================
   ТОВАР ДНЯ
============================================================ */

.lolli-deal-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    background: #181822;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 0 24px rgba(0,0,0,0.8);
    text-decoration: none;
    color: inherit;
}

.lolli-deal-image img {
    overflow: hidden;
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 18px;
}

.lolli-deal-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #ffd8f8;
}

.lolli-deal-price {
    font-size: 16px;
    font-weight: 700;
    color: #ffe5ff;
    margin-bottom: 10px;
}

.lolli-deal-text {
    font-size: 14px;
    color: #f3e9ff;
    margin-bottom: 10px;
}

.lolli-deal-cta {
    font-size: 13px;
    font-weight: 700;
    color: #ffb8ff;
    margin-top: 4px;
    display: inline-block;
}


/* ============================================================
   ОТЗЫВЫ
============================================================ */

.lolli-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.lolli-review-card {
    background: #181822;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.lolli-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lolli-review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle,#ff9ce9,#b067ff);
}

.lolli-review-author {
    font-size: 14px;
    font-weight: 600;
    color: #ffd8f8;
}

.lolli-review-stars {
    font-size: 13px;
}

.lolli-review-stars .star-on {
    color: #ffe179;
}

.lolli-review-stars .star-off {
    color: #555;
}

.lolli-review-content {
    font-size: 14px;
    color: #f2e8ff;
    margin-bottom: 10px;
}

.lolli-review-link {
    font-size: 13px;
    color: #c6a8ff;
    text-decoration: none;
    font-weight: 600;
}

.lolli-review-link:hover {
    color: #ffb8ff;
}


/* ============================================================
   COMMUNITY
============================================================ */

.lolli-community-inner {
    background: linear-gradient(90deg,#ff7dd1,#b067ff);
    border-radius: 22px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    gap: 18px;
}

.lolli-community-text h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.lolli-community-text p {
    font-size: 14px;
    margin: 0;
}

.lolli-community-btn {
    padding: 10px 18px;
    background: #fff;
    color: #1a1020;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    transition: .25s ease;
}

.lolli-community-btn:hover {
    background: #ffe3ff;
    transform: translateY(-1px);
}


/* ============================================================
   АДАПТИВ
============================================================ */

@media (max-width: 1200px) {
    .lolli-products-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 960px) {

    .lolli-shop-home {
        margin: 24px auto 60px;
    }

    .lolli-hero-inner {
        grid-template-columns: 1fr;
    }

    .lolli-products-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lolli-cats-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lolli-deal-card {
        grid-template-columns: 1fr;
    }

    .lolli-community-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 600px) {

    body, html { overflow-x: hidden; }

    .lolli-shop-home {
        width: 100%;
        margin: 20px auto 60px;
        padding: 0 12px;
    }

    .lolli-section {
        margin-left: 0;
        margin-right: 0;
    }

    .lolli-products-grid {
        grid-template-columns: repeat(1,minmax(0,1fr));
    }

    .lolli-reviews-grid {
        grid-template-columns: 1fr;
    }

    .lolli-home-scroll {
        gap: 14px;
    }

    .lolli-home-card {
        min-width: 160px;
        max-width: 100%;
    }

    .lolli-community-inner {
        padding: 16px;
    }

    .lolli-hero-inner {
        padding: 24px 20px 28px;
    }
}

/* ============================================================
   УВЕЛИЧЕНИЕ КАРТОЧЕК ТОВАРОВ НА ПК
============================================================ */
@media (min-width: 1024px) {

    .lolli-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 26px;
    }

    .lolli-home-card {
        min-width: 240px;
        max-width: 300px;
        padding: 18px 18px 22px;
        border-radius: 20px;
    }

    .lolli-home-img {
        border-radius: 30px;
        margin-bottom: 14px;
    }

    .lolli-home-img img {
        width: 100%;
        height: auto;
    }

    .lolli-home-cat {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 8px;
    }

    .lolli-home-title {
        font-size: 16px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .lolli-home-price {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .lolli-home-btn {
        font-size: 15px;
        padding: 11px 14px;
        border-radius: 14px;
    }
}
/* ============================================================
   HOVER-ЭФФЕКТ КАК В КАТЕГОРИЯХ ДЛЯ КАРТОЧЕК ТОВАРОВ
============================================================ */
.lolli-home-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.lolli-home-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,120,220,0.6);
    box-shadow: 0 0 26px rgba(255,120,220,0.45);
}
.lolli-home-cat {
    display: block;
    width: fit-content;
    margin: 0 auto 8px;  /* центрирование */
    text-align: center;
}

/* ============================================================
   HERO SEARCH BOX (Lollibuy Style)
============================================================ */
.lolli-hero-search {
    margin-top: 13px;
    margin-bottom: 13px;
    width: 100%;
    max-width: 480px;

    background: rgba(20, 20, 32, 0.55);
    border: 1px solid rgba(255,120,220,0.25);
    backdrop-filter: blur(12px);

    padding: 6px 9px;
    border-radius: 18px;

    box-shadow:
        0 0 14px rgba(255,120,220,0.22),
        inset 0 0 12px rgba(255,120,220,0.08);
}

/* стили для поля поиска FiboSearch */
.lolli-hero-search .dgwt-wcas-search-input {
    background: #141421 !important;
    border: 1px solid #ff82dd !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
}

/* скрыть лишние элементы */
.lolli-hero-search .dgwt-wcas-search-icon,
.lolli-hero-search .dgwt-wcas-search-icon svg,
.lolli-hero-search .dgwt-wcas-search-submit {
    display: none !important;
    visibility: hidden !important;
}

/* при фокусе — мягкое свечение */
.lolli-hero-search .dgwt-wcas-search-input:focus {
    box-shadow: 0 0 12px rgba(255,120,220,0.4) !important;
    border-color: #ff9cee !important;
}

/* MOBILE адаптация */
@media (max-width: 768px) {
    .lolli-hero-search {
        max-width: 100%;
        padding: 10px 14px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .lolli-hero-search .dgwt-wcas-search-input {
        padding: 10px 14px !important;
        font-size: 15px !important;
    }
}

.lolli-bf-banner {
    margin: 40px 0;
    text-align: center;
}

.lolli-bf-banner picture,
.lolli-bf-banner img {
    width: 100%;
    height: auto; /* сохраняем пропорции */
    display: block;
    border-radius: 22px;
    object-fit: contain !important; /* НИЧЕГО НЕ ОБРЕЗАЕМ */
    box-shadow: 0 0 35px rgba(255,0,120,0.25);
}

/* Убираем любые max-height, чтобы изображение НЕ сжималось */
.lolli-bf-banner img {
    max-height: none !important;
}

/* Ховер на ПК */
.lolli-bf-banner img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 55px rgba(255,0,160,0.35);
}

/* Мобильная квадратная версия */
@media (max-width: 600px) {
    .lolli-bf-banner img {
        aspect-ratio: 1 / 1; /* делаем квадрат */
        object-fit: cover;
        max-height: none;
    }
}
