/* Homepage extra sections v2.1 */

.section-head-app {
    align-items: flex-end;
    margin-bottom: 14px;
}

.section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f9a825;
    margin-bottom: 4px;
}

/* Shared homepage blocks — tune section rhythm */
.home-section.home-block-v3 {
    padding-top: 20px;
    padding-bottom: 24px;
}

@media (min-width: 992px) {
    .home-section.home-block-v3 {
        padding-top: 28px;
        padding-bottom: 32px;
    }
}

.home-block-v3 .section-head-app {
    margin-bottom: 12px;
}

.home-featured-block {
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.home-featured-block .product-rail-wrap {
    margin-top: 4px;
}

.home-bestsellers-block {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

/* First extra section after featured */
.home-extra-first {
    padding-top: 24px;
    border-top: none;
}

@media (min-width: 992px) {
    .home-extra-first {
        padding-top: 36px;
    }
}

/* Electrical solutions */
.home-solutions-section {
    padding: 28px 0 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.home-solutions-section .section-heading {
    font-size: 1.35rem;
}

.home-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 992px) {
    .home-solutions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.home-solution-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 148px;
    text-decoration: none;
    color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
    transition: transform .2s, box-shadow .2s;
}

@media (min-width: 992px) {
    .home-solution-tile {
        min-height: 172px;
        padding: 20px;
    }
}

.home-solution-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
    color: #fff;
}

.home-solution-tile .sol-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.home-solution-tile i {
    font-size: 24px;
}

.home-solution-tile strong {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    line-height: 1.25;
}

@media (min-width: 992px) {
    .home-solution-tile strong {
        font-size: 16px;
    }
}

.home-solution-tile span:not(.sol-arrow) {
    font-size: 11px;
    opacity: .9;
    line-height: 1.35;
}

.home-solution-tile .sol-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.home-solution-tile.sol-fans {
    background: linear-gradient(145deg, #4e342e 0%, #8d6e63 100%);
}

.home-solution-tile.sol-lights {
    background: linear-gradient(145deg, #e65100 0%, #ffb300 100%);
}

.home-solution-tile.sol-switches {
    background: linear-gradient(145deg, #37474f 0%, #78909c 100%);
}

.home-solution-tile.sol-appliances {
    background: linear-gradient(145deg, #0d47a1 0%, #42a5f5 100%);
}

/* Brands */
.home-brands-section {
    padding: 28px 0 32px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.home-brands-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(249, 168, 37, .18), transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(255, 111, 0, .12), transparent 40%);
    pointer-events: none;
}

.home-brands-section .container-fluid {
    position: relative;
    z-index: 1;
}

.home-brands-section .section-heading {
    color: #fff;
}

.home-brands-section .section-eyebrow {
    color: #fbbf24;
}

.home-brands-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-brands-scroll::-webkit-scrollbar {
    display: none;
}

.home-brand-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 11px 20px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

.home-brand-chip:hover {
    background: linear-gradient(135deg, #f9a825, #ff6f00);
    color: #1e293b;
    border-color: transparent;
}

/* Why shop */
.home-deals-section {
    padding: 28px 0 32px;
    background: #fff;
}

.home-deals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .home-deals-grid {
        grid-template-columns: 1.15fr 1fr 1fr;
        gap: 14px;
    }
}

.home-deal-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 130px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

@media (min-width: 992px) {
    .home-deal-card {
        padding: 24px 20px;
        min-height: 150px;
        border-radius: 18px;
    }
}

.home-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
    border-color: #fcd34d;
    color: inherit;
}

.home-deal-card .deal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fffbeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #f9a825;
}

.home-deal-card strong {
    font-size: 15px;
    color: #111827;
}

.home-deal-card span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.home-deal-card.deal-highlight {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: none;
    color: #fff;
}

.home-deal-card.deal-highlight .deal-icon {
    background: rgba(249, 168, 37, .22);
    color: #fbbf24;
}

.home-deal-card.deal-highlight strong,
.home-deal-card.deal-highlight span {
    color: #fff;
}

.home-deal-card.deal-highlight span {
    opacity: .88;
}

/* CTA */
.home-cta-section {
    padding: 0 0 32px;
    background: #f3f4f6;
}

.home-cta-strip {
    margin: 0 12px;
    padding: 22px 18px;
    background: linear-gradient(135deg, #f9a825 0%, #ff8f00 45%, #ff6f00 100%);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 10px 32px rgba(249, 168, 37, .35);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .home-cta-strip {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin: 0;
        padding: 26px 28px;
        border-radius: 20px;
    }
}

.home-cta-strip::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.home-cta-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.home-cta-strip h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .home-cta-strip h3 {
        font-size: 1.25rem;
    }
}

.home-cta-strip p {
    margin: 0;
    font-size: 13px;
    color: rgba(30, 41, 59, .92);
    line-height: 1.5;
}

.home-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.home-cta-actions .btn {
    flex: 1;
    min-width: 120px;
    border-radius: 12px;
    font-weight: 700;
    min-height: 46px;
}

@media (min-width: 576px) {
    .home-cta-actions .btn {
        flex: 0 1 auto;
    }
}

.home-cta-actions .btn-whatsapp {
    background: #25d366;
    border: none;
    color: #fff;
}

.home-cta-actions .btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

/* Promo banners on home */
.home-promo-banners .promo-banner-link {
    border-radius: 14px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    transition: transform .2s;
}

.home-promo-banners .promo-banner-link:hover {
    transform: scale(1.02);
}

.home-promo-banners img {
    width: 100%;
    height: auto;
    display: block;
}
