/* Layout 5 home — sidebar + hero, Top Rated column, red panels, bundle carousel, red newsletter */
.ecom-t5-home{
    background:#F5F7F9;
}

.ecom-t5-sidebar{
    background:#fff;
    border:1px solid #E4E7E9;
    border-radius:4px;
    height:100%;
    padding:6px 0;
}

.ecom-t5-sidebar a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:9px 16px;
    font-size:13px;
    color:#191C1F;
    text-decoration:none;
}

.ecom-t5-sidebar a:hover{
    background:#FDF2F1;
    color:var(--ecom-t5-red,#E53935);
}

.ecom-t5-sidebar a i{
    font-size:10px;
    color:#9AA4AB;
}

.ecom-t5-sidebar-all{
    border-top:1px solid #EEF0F2;
    margin-top:4px;
    font-weight:700;
    color:var(--ecom-t5-red,#E53935) !important;
}

.ecom-t5-hero{
    border-radius:4px;
    overflow:hidden;
    background:var(--ecom-t5-red,#E53935);
    height:100%;
    min-height:340px;
}

.ecom-t5-hero .carousel,
.ecom-t5-hero .carousel-inner,
.ecom-t5-hero .carousel-item{
    height:100%;
}

.ecom-t5-hero-img{
    width:100%;
    height:100%;
    min-height:340px;
    object-fit:cover;
    display:block;
}

.ecom-t5-hero-fallback{
    min-height:340px;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    padding:40px;
    color:#fff;
    background:linear-gradient(120deg,#C62828 0%,#E53935 55%,#EF5350 100%);
}

.ecom-t5-hero .carousel-indicators [data-bs-target]{
    width:8px;
    height:8px;
    border-radius:50%;
    border:0;
}

.ecom-t5-panel{
    background:#fff;
    border:1px solid #E4E7E9;
    border-radius:4px;
    overflow:hidden;
}

.ecom-t5-panel-head{
    background:var(--ecom-t5-red,#E53935);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 16px;
}

.ecom-t5-panel-title{
    margin:0;
    font-size:15px;
    font-weight:700;
    color:#fff;
}

.ecom-t5-panel-link{
    color:#fff;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
    opacity:0.92;
}

.ecom-t5-panel-link:hover{
    color:#fff;
    opacity:1;
}

.ecom-t5-panel-body{
    padding:16px;
}

.ecom-t5-rated-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    border-bottom:1px solid #F0F2F4;
    color:#191C1F;
    text-decoration:none;
}

.ecom-t5-rated-row:last-child{
    border-bottom:0;
}

.ecom-t5-rated-row:hover{
    background:#FDF2F1;
    color:#191C1F;
}

.ecom-t5-rated-thumb{
    width:56px;
    height:56px;
    flex:0 0 56px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#F5F7F9;
    border-radius:4px;
    overflow:hidden;
}

.ecom-t5-rated-thumb img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.ecom-t5-rated-name{
    font-size:12px;
    font-weight:600;
    line-height:1.35;
    margin-bottom:4px;
}

.ecom-t5-rated-price{
    font-size:13px;
    font-weight:700;
}

.ecom-t5-rated-price s{
    font-size:11px;
    font-weight:400;
    color:#929FA5;
    margin-left:4px;
}

.ecom-t5-cat-track{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scrollbar-width:thin;
    padding-bottom:4px;
}

.ecom-t5-cat-tile{
    flex:0 0 120px;
    text-align:center;
    color:#191C1F;
    text-decoration:none;
    padding:8px 4px;
    border-radius:4px;
}

.ecom-t5-cat-tile:hover{
    background:#FDF2F1;
    color:var(--ecom-t5-red,#E53935);
}

.ecom-t5-cat-media{
    width:84px;
    height:84px;
    margin:0 auto 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#F5F7F9;
    overflow:hidden;
    color:#9AA4AB;
    font-size:26px;
}

.ecom-t5-cat-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ecom-t5-cat-title{
    font-size:12px;
    font-weight:600;
    line-height:1.3;
}

.ecom-t5-card{
    position:relative;
    background:#fff;
    border:1px solid #E4E7E9;
    border-radius:4px;
    height:100%;
    display:flex;
    flex-direction:column;
    transition:box-shadow 0.2s ease;
}

.ecom-t5-card:hover{
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

.ecom-t5-card-media{
    display:flex;
    align-items:center;
    justify-content:center;
    height:170px;
    padding:16px;
}

.ecom-t5-card-media img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.ecom-t5-card-tag{
    position:absolute;
    top:10px;
    left:10px;
    background:var(--ecom-t5-accent,#F57C00);
    color:#fff;
    font-size:10px;
    font-weight:800;
    padding:3px 7px;
    border-radius:2px;
    z-index:2;
}

.ecom-t5-card-wish{
    position:absolute;
    top:10px;
    right:10px;
    width:30px;
    height:30px;
    border-radius:4px;
    border:1px solid rgba(229,57,53,0.28);
    background:#fff;
    color:var(--ecom-t5-red,#E53935);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    z-index:2;
    padding:0;
}

.ecom-t5-card-body{
    padding:0 14px 14px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.ecom-t5-card-title{
    font-size:13px;
    font-weight:600;
    color:#191C1F;
    text-decoration:none;
    min-height:36px;
    margin-bottom:6px;
}

.ecom-t5-card-title:hover{
    color:var(--ecom-t5-red,#E53935);
}

.ecom-t5-card-seller{
    font-size:11px;
    color:#77878F;
    margin-bottom:8px;
}

.ecom-t5-card-seller strong{
    color:#191C1F;
    font-weight:600;
}

.ecom-t5-card-price{
    font-size:14px;
    font-weight:700;
    color:#191C1F;
    margin-bottom:12px;
}

.ecom-t5-card-price s{
    font-size:11px;
    font-weight:400;
    color:#929FA5;
    margin-left:6px;
}

.ecom-t5-card-cart{
    margin-top:auto;
    display:block;
    width:100%;
    text-align:center;
    border:1.5px solid var(--ecom-t5-red,#E53935);
    border-radius:4px;
    color:var(--ecom-t5-red,#E53935);
    font-size:12px;
    font-weight:700;
    letter-spacing:0.03em;
    padding:7px 10px;
    text-decoration:none;
    background:#fff;
    cursor:pointer;
}

.ecom-t5-card-cart:hover{
    background:var(--ecom-t5-red,#E53935);
    color:#fff;
}

.ecom-t5-card-cart:disabled{
    opacity:0.75;
    cursor:wait;
}

.ecom-t5-grid-state{
    padding:32px 0;
    text-align:center;
    font-size:13px;
    color:#77878F;
}

.ecom-t5-bundle-nav{
    width:28px;
    height:28px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.6);
    background:transparent;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
}

.ecom-t5-bundle-nav:hover{
    background:#fff;
    color:var(--ecom-t5-red,#E53935);
}

.ecom-t5-bundle-track{
    display:flex;
    gap:16px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding-bottom:4px;
}

.ecom-t5-bundle-track::-webkit-scrollbar{
    display:none;
}

.ecom-t5-bundle-slide{
    flex:0 0 calc((100% - 48px) / 4);
    scroll-snap-align:start;
    min-width:220px;
}

.ecom-t5-bundle-slide .ecom-t5-card-media{
    background:#FDF2F1;
    border-radius:4px 4px 0 0;
    margin-bottom:12px;
}

.ecom-t5-newsletter-section{
    background:var(--ecom-t5-red,#E53935);
    color:#fff;
}

.ecom-t5-newsletter-section .form-control{
    border:0;
    border-radius:4px 0 0 4px;
}

.ecom-t5-newsletter-btn{
    background:var(--ecom-t5-red-dark,#C62828);
    color:#fff;
    font-weight:800;
    border:1px solid rgba(255,255,255,0.35);
    border-radius:0 4px 4px 0;
}

.ecom-t5-newsletter-btn:hover{
    background:#fff;
    color:var(--ecom-t5-red,#E53935);
}

@media (max-width:991.98px){
    .ecom-t5-hero,
    .ecom-t5-hero-img,
    .ecom-t5-hero-fallback{
        min-height:200px;
    }

    .ecom-t5-bundle-slide{
        flex-basis:calc((100% - 16px) / 2);
    }
}

@media (max-width:575.98px){
    .ecom-t5-bundle-slide{
        flex-basis:80%;
    }

    .ecom-t5-card-media{
        height:140px;
    }
}
