/**
 * Homepage premium theme — inspired by B2BMOBAN / Electrolo international e-commerce style.
 * Scoped to .home-premium so other pages are unaffected.
 */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

.home-premium {
    --hp-accent: var(--primary, #DC2814);
    --hp-accent-hover: var(--hov-primary, #c52907);
    --hp-brand-start: #6a76b5;
    --hp-brand-end: #1a1a4b;
    --hp-dark: #191919;
    --hp-text: #3a3a3a;
    --hp-muted: #6e6e6e;
    --hp-border: #e8eaed;
    --hp-surface: #ffffff;
    --hp-bg: #f2f4f5;
    --hp-radius: 12px;
    --hp-radius-sm: 8px;
    --hp-shadow: 0 8px 30px rgba(25, 25, 25, 0.06);
    --hp-shadow-hover: 0 16px 40px rgba(25, 25, 25, 0.1);
    font-family: 'Rubik', 'Open Sans', sans-serif;
    background: var(--hp-bg);
    padding-bottom: 2rem;
}

@media (min-width: 576px) {
    .home-premium .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* ── Hero banner area ── */
.home-premium .hp-hero {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
}

.home-premium .hp-hero__grid {
    align-items: flex-start;
}

@media (min-width: 992px) {
    .home-premium .hp-hero__grid {
        align-items: stretch;
    }

    .home-premium .hp-hero-cat-col .aiz-category-menu,
    .home-premium .hp-hero-deal-col .hp-today-deal {
        height: var(--hp-hero-sync-h, auto);
        min-height: 0;
    }
}

.home-premium .hp-hero__grid > [class*="col-lg"] {
    display: flex;
    flex-direction: column;
}

.home-premium .hp-hero-middle {
    min-height: 0;
}

.home-premium .aiz-category-menu {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: unset;
}

.home-premium .aiz-category-menu .bg-soft-primary {
    background: linear-gradient(135deg, var(--hp-brand-start) 0%, var(--hp-brand-end) 100%) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 1rem 1.15rem !important;
    flex-shrink: 0;
}

.home-premium .aiz-category-menu .bg-soft-primary a {
    color: rgba(255, 255, 255, 0.92) !important;
}

.home-premium .aiz-category-menu .categories.no-scrollbar {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: none;
}

.home-premium .aiz-category-menu .categories .category-nav-element > a {
    padding: 0.65rem 1rem !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.home-premium .aiz-category-menu .categories .category-nav-element > a:hover {
    background: rgba(106, 118, 181, 0.08);
    color: var(--hp-brand-end) !important;
    padding-left: 1.25rem !important;
}

.home-premium .hp-slider-wrap {
    border-radius: var(--hp-radius);
    overflow: hidden;
    background: var(--hp-surface);
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    height: 315px;
}

.home-premium .hp-slider-wrap--tall {
    height: 457px;
}

.home-premium .hp-slider-wrap .aiz-carousel,
.home-premium .hp-slider-wrap .slick-list,
.home-premium .hp-slider-wrap .slick-track,
.home-premium .hp-slider-wrap .slick-slide,
.home-premium .hp-slider-wrap .slick-slide > div,
.home-premium .hp-slider-wrap .carousel-box,
.home-premium .hp-slider-wrap .carousel-box > a {
    height: 100%;
}

.home-premium .hp-slider-wrap .carousel-box > a {
    display: block;
    line-height: 0;
}

.home-premium .hp-slider-wrap .carousel-box img,
.home-premium .hp-slider-img {
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-premium .hp-slider-img--tall {
    height: 100%;
}

.home-premium .hp-mobile-cats__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    box-shadow: var(--hp-shadow);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hp-dark);
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-premium .hp-mobile-cats__btn .la-th-large {
    font-size: 1.15rem;
    color: var(--hp-brand-start);
}

.home-premium .hp-mobile-cats__btn:hover {
    border-color: rgba(106, 118, 181, 0.45);
    box-shadow: var(--hp-shadow-hover);
    color: var(--hp-brand-end);
}

.home-premium .hp-slider-wrap .slick-dots {
    bottom: 14px;
}

.home-premium .hp-slider-wrap .slick-dots li button:before {
    font-size: 10px;
    opacity: 0.45;
}

.home-premium .hp-slider-wrap .slick-dots li.slick-active button:before {
    color: var(--hp-accent);
    opacity: 1;
}

.home-premium .hp-featured-cats {
    margin-top: 0.75rem !important;
}

.home-premium .hp-featured-cats .hp-fcat-item {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}

.home-premium .hp-featured-cats .hp-fcat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-hover);
    border-color: rgba(220, 40, 20, 0.25);
}

.home-premium .hp-featured-cats .hp-fcat-item img {
    border-radius: var(--hp-radius-sm) var(--hp-radius-sm) 0 0;
    width: 100%;
    height: auto;
    max-height: 78px;
    object-fit: cover;
}

.home-premium .hp-featured-cats .hp-fcat-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hp-brand-end);
}

.home-premium .hp-featured-cats .hp-fcat-item:hover .hp-fcat-name {
    color: var(--hp-brand-start);
}

/* ── Today's deal vertical scroller ── */
.home-premium .hp-today-deal {
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    background: var(--hp-surface);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: unset;
}

.home-premium .hp-today-deal__head {
    background: linear-gradient(135deg, var(--hp-brand-start) 0%, var(--hp-brand-end) 100%);
    color: #fff;
    padding: 0.85rem 0.75rem;
    text-align: center;
    flex-shrink: 0;
}

.home-premium .hp-today-deal__head .badge-primary {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-premium .hp-today-deal__controls {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.5rem 0.45rem 0.65rem;
    background: var(--hp-bg);
}

.home-premium .hp-today-deal__arrow {
    flex-shrink: 0;
    width: 100%;
    border: 1px solid var(--hp-border);
    background: var(--hp-surface);
    color: var(--hp-dark);
    border-radius: var(--hp-radius-sm);
    height: 32px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.home-premium .hp-today-deal__arrow:hover:not(:disabled) {
    background: var(--hp-accent);
    border-color: var(--hp-accent);
    color: #fff;
}

.home-premium .hp-today-deal__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.home-premium .hp-today-deal__arrow--up {
    margin-bottom: 0.35rem;
}

.home-premium .hp-today-deal__arrow--down {
    margin-top: 0.35rem;
}

.home-premium .hp-today-deal__viewport {
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}

.home-premium .hp-today-deal__track {
    will-change: transform;
}

.home-premium .hp-today-deal__item {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.55rem;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-premium .hp-today-deal__item:last-child {
    margin-bottom: 0 !important;
}

.home-premium .hp-today-deal__item:hover {
    border-color: rgba(220, 40, 20, 0.35);
    box-shadow: var(--hp-shadow);
}

.home-premium .hp-today-deal__item-media {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.home-premium .hp-today-deal__item-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-premium .hp-today-deal__item-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.home-premium .hp-today-deal__item-price {
    line-height: 1.35;
}

.home-premium .hp-today-deal__price-current {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hp-accent);
}

.home-premium .hp-today-deal__price-old {
    display: block;
    font-size: 0.75rem;
    color: var(--hp-muted);
    margin-top: 0.15rem;
}

/* ── Promo banner strips ── */
.home-premium .hp-promo-strip {
    margin-bottom: 1.5rem;
}

.home-premium .hp-promo-strip a {
    display: block;
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-premium .hp-promo-strip a:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-hover);
}

.home-premium .hp-promo-strip img {
    width: 100%;
    display: block;
}

/* ── Product section panels ── */
.home-premium .hp-panel {
    background: var(--hp-surface);
    border-radius: var(--hp-radius);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow);
    padding: 1.25rem 1.5rem 1.5rem;
}

.home-premium .hp-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--hp-border);
}

.home-premium .hp-section-head__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 0;
    line-height: 1.3;
    position: relative;
    padding-left: 14px;
}

.home-premium .hp-section-head__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 4px;
    background: var(--hp-accent);
}

.home-premium .hp-section-head__title span {
    color: var(--hp-accent);
}

.home-premium .hp-section-head__action {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hp-accent);
    border: 1px solid var(--hp-accent);
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}

.home-premium .hp-section-head__action:hover {
    background: var(--hp-accent);
    color: #fff !important;
}

.home-premium .hp-section-head .btn-primary {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 1.15rem;
    box-shadow: none !important;
}

.home-premium .hp-section-head.hp-flash-head .aiz-count-down {
    margin-left: auto;
    margin-right: 0.75rem;
    font-weight: 600;
    color: var(--hp-dark);
}

.home-premium .hp-section-head.hp-flash-head .hp-section-head__action {
    flex-shrink: 0;
}

/* ── Square product thumbs (1:1) ── */
.home-premium .aiz-card-box .product-box-thumb {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 100% !important;
    overflow: hidden !important;
    background: #f3f4f6;
    line-height: 0;
}

.home-premium .aiz-card-box .embed-responsive-1by1 {
    background: #f3f4f6;
}

.home-premium .aiz-card-box .product-box-thumb > img,
.home-premium .aiz-card-box .embed-responsive-1by1 > img,
.home-premium .aiz-card-box .embed-responsive-item {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}

.home-premium .aiz-card-box .product-box-thumb > img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* ── Product cards on homepage ── */
.home-premium .aiz-card-box {
    border: 1px solid var(--hp-border) !important;
    border-radius: var(--hp-radius-sm) !important;
    box-shadow: none !important;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s !important;
    overflow: hidden;
}

.home-premium .aiz-card-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-hover) !important;
    border-color: rgba(220, 40, 20, 0.2) !important;
}

.home-premium .aiz-card-box .badge-custom {
    background: var(--hp-accent);
    border-radius: 0 var(--hp-radius-sm) 0 var(--hp-radius-sm);
}

.home-premium .aiz-card-box .fw-700.text-primary {
    color: var(--hp-accent) !important;
    font-size: 1rem;
}

.home-premium .aiz-card-box h3 a {
    color: var(--hp-dark) !important;
    font-weight: 500 !important;
}

.home-premium .aiz-card-box h3 a:hover {
    color: var(--hp-accent) !important;
}

.home-premium .aiz-p-hov-icon a {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow);
}

.home-premium .aiz-p-hov-icon a:hover {
    background: var(--hp-accent);
    border-color: var(--hp-accent);
    color: #fff !important;
}

.home-premium .aiz-carousel .slick-prev,
.home-premium .aiz-carousel .slick-next {
    width: 42px;
    height: 42px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 50%;
    box-shadow: var(--hp-shadow);
    z-index: 2;
}

.home-premium .aiz-carousel .slick-prev:hover,
.home-premium .aiz-carousel .slick-next:hover {
    background: var(--hp-accent);
    border-color: var(--hp-accent);
    color: #fff;
}

.home-premium .aiz-carousel .slick-prev:before,
.home-premium .aiz-carousel .slick-next:before {
    color: var(--hp-dark);
    font-size: 18px;
}

.home-premium .aiz-carousel .slick-prev:hover:before,
.home-premium .aiz-carousel .slick-next:hover:before {
    color: #fff;
}

/* ── Top categories & brands ── */
.home-premium .hp-top-grid .hp-top-item {
    border: 1px solid var(--hp-border) !important;
    border-radius: var(--hp-radius-sm) !important;
    background: var(--hp-surface);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-premium .hp-top-grid .hp-top-item:hover {
    transform: translateX(4px);
    box-shadow: var(--hp-shadow);
    border-color: var(--hp-accent) !important;
}

.home-premium .hp-top-grid .la-angle-right {
    color: var(--hp-accent) !important;
}

/* ── Best sellers cards ── */
.home-premium .box-3 {
    border-radius: var(--hp-radius-sm) !important;
    border-color: var(--hp-border) !important;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.home-premium .box-3:hover {
    box-shadow: var(--hp-shadow-hover) !important;
    border-color: rgba(220, 40, 20, 0.2) !important;
}

.home-premium .box-3 .btn-soft-primary {
    border-radius: 999px;
    font-weight: 600;
}

/* ── Classified ads ── */
.home-premium section.mb-4 .border-light.rounded.hov-shadow-md {
    border-color: var(--hp-border) !important;
    border-radius: var(--hp-radius-sm) !important;
}

@media (max-width: 991.98px) {
    .home-premium {
        padding-bottom: 1.25rem;
    }

    .home-premium .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-premium .hp-hero {
        padding-top: 0.75rem;
    }

    .home-premium .hp-panel {
        padding: 1rem;
        overflow: hidden;
    }

    .home-premium .hp-section-head__title {
        font-size: 1.15rem;
    }

    .home-premium .hp-section-head.hp-flash-head {
        flex-wrap: wrap;
    }

    .home-premium .hp-section-head.hp-flash-head .aiz-count-down {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        order: 3;
    }

    .home-premium .aiz-category-menu {
        height: auto;
        min-height: auto;
    }

    .home-premium .hp-slider-wrap,
    .home-premium .hp-slider-wrap--tall {
        height: auto;
        min-height: 160px;
        max-height: 240px;
    }

    .home-premium .hp-slider-wrap .aiz-carousel,
    .home-premium .hp-slider-wrap .slick-list,
    .home-premium .hp-slider-wrap .slick-track,
    .home-premium .hp-slider-wrap .slick-slide,
    .home-premium .hp-slider-wrap .slick-slide > div,
    .home-premium .hp-slider-wrap .carousel-box,
    .home-premium .hp-slider-wrap .carousel-box > a {
        height: 100%;
        min-height: 160px;
    }

    .home-premium .hp-slider-img,
    .home-premium .hp-slider-img--tall {
        height: 100%;
        min-height: 160px;
        max-height: 240px;
    }

    .home-premium .hp-featured-cats {
        margin-top: 0.5rem !important;
    }

    .home-premium .hp-featured-cats .hp-fcat-name {
        font-size: 0.75rem;
    }

    .home-premium .hp-today-deal {
        height: auto;
        min-height: auto;
    }

    .home-premium .hp-today-deal--horizontal {
        min-height: auto;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__controls {
        flex-direction: row;
        align-items: stretch;
        padding: 0.5rem;
        gap: 0.35rem;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__arrow {
        width: 36px;
        height: auto;
        margin: 0 !important;
        flex-shrink: 0;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__arrow--up i {
        transform: rotate(-90deg);
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__arrow--down i {
        transform: rotate(-90deg);
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__viewport {
        flex: 1 1 auto;
        min-height: 110px;
    }

    .home-premium .hp-today-deal__track--horizontal {
        display: flex;
        flex-direction: row;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__item {
        flex-direction: column;
        align-items: stretch;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__item-media {
        flex: 0 0 auto;
        height: 72px;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__item-body {
        justify-content: flex-start;
        padding-top: 0.25rem;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__price-current {
        font-size: 0.8125rem;
    }

    .home-premium .aiz-carousel .slick-prev,
    .home-premium .aiz-carousel .slick-next {
        width: 34px;
        height: 34px;
    }

    .home-premium .aiz-carousel .slick-prev {
        left: 6px;
    }

    .home-premium .aiz-carousel .slick-next {
        right: 6px;
    }

    .home-premium .hp-promo-strip {
        margin-bottom: 1rem;
    }

    .home-premium .hp-panel .half-outside-arrow .slick-prev {
        left: 4px;
    }

    .home-premium .hp-panel .half-outside-arrow .slick-next {
        right: 4px;
    }

    .home-premium .hp-panel .slick-list {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .home-premium .hp-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-premium .hp-section-head__action {
        width: 100%;
        justify-content: center;
    }

    .home-premium .hp-featured-cats .row {
        margin-left: -4px;
        margin-right: -4px;
    }

    .home-premium .hp-featured-cats .row > [class*="col-"] {
        padding-left: 4px;
        padding-right: 4px;
    }

    .home-premium .hp-today-deal__head {
        padding: 0.65rem 0.5rem;
        font-size: 0.875rem;
    }

    .home-premium .hp-today-deal--horizontal .hp-today-deal__item-media {
        height: 64px;
    }
}
