/* Home page (moved from views/home.php) */

/* =====================================
   Home: Shop by Category
   Plain cards, no hover colour change.
===================================== */
.np-cat-section{
    padding:60px 0;
    background:linear-gradient(180deg,#f6f4ff 0%,#ffffff 100%);
}
.np-cat-section .section-title{
    margin-bottom:30px;
}
.np-cat-section .section-title h2{
    margin-top:8px;
}
.np-cat-section .section-title p{
    max-width:560px;
    margin:10px auto 0;
    color:#555b6d;
}
.np-cat-section .swiper-slide{
    height:auto;
    padding:6px 2px 20px;
}
.np-cat-card,
.np-cat-card:hover,
.np-cat-card:focus{
    display:flex;
    flex-direction:column;
    height:100%;
    padding:12px;
    background:#fff;
    border:1px solid #ebe8f5;
    border-radius:20px;
    box-shadow:0 8px 24px rgba(9,5,47,.06);
    color:inherit;
    text-decoration:none;
}
.np-cat-thumb{
    display:block;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:14px;
    background:#f4f2fb;
}
.np-cat-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.np-cat-thumb img.is-fallback{
    object-fit:contain;
    padding:24%;
    opacity:.35;
}
.np-cat-body{
    display:flex;
    flex:1;
    flex-direction:column;
    align-items:center;
    padding:16px 6px 6px;
    text-align:center;
}
.np-cat-name,
.np-cat-card:hover .np-cat-name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:2.7em;
    margin:0 0 10px;
    font-size:18px;
    line-height:1.35;
    color:var(--header);
}
.np-cat-link,
.np-cat-card:hover .np-cat-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:auto;
    padding:7px 16px;
    border-radius:30px;
    background:#f1ecff;
    font-size:14px;
    font-weight:600;
    color:var(--theme);
}
.np-cat-nav{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:14px;
}
.np-cat-nav button,
.np-cat-nav button:hover{
    width:46px;
    height:46px;
    border:1px solid #e3ddf7;
    border-radius:50%;
    background:#fff;
    color:var(--header);
    font-size:16px;
    box-shadow:0 4px 14px rgba(9,5,47,.06);
}
@media (max-width:767px){
    .np-cat-section{
        padding:40px 0;
    }
    .np-cat-card{
        padding:8px;
        border-radius:16px;
    }
    .np-cat-body{
        padding:12px 2px 4px;
    }
    .np-cat-name{
        font-size:15px;
    }
    .np-cat-link{
        padding:5px 12px;
        font-size:12px;
    }
}

/* =====================================
   Home: Featured Products
   12 items = full rows at 4 / 3 / 2 columns.
===================================== */
.np-feat-section{
    padding:70px 0;
}
.np-feat-head{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:30px;
}
.np-feat-head .section-title{
    margin-bottom:0;
}
.np-feat-head .section-title h2{
    margin-top:8px;
}
.np-feat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}
.np-feat-card,
.np-feat-card:hover,
.np-feat-card:focus{
    display:flex;
    flex-direction:column;
    padding:12px;
    background:#fff;
    border:1px solid #ebe8f5;
    border-radius:20px;
    box-shadow:0 8px 24px rgba(9,5,47,.06);
    color:inherit;
    text-decoration:none;
}
.np-feat-thumb{
    position:relative;
    display:block;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:14px;
    background:#f6f5fb;
}
.np-feat-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.np-feat-thumb img.is-fallback{
    padding:24%;
    opacity:.35;
}
.np-feat-badge{
    position:absolute;
    top:10px;
    left:10px;
    padding:4px 10px;
    border-radius:30px;
    background:var(--theme);
    color:#fff;
    font-size:12px;
    font-weight:600;
    line-height:1.4;
}
.np-feat-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:14px 4px 2px;
}
.np-feat-cat{
    margin-bottom:6px;
    font-size:12px;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:var(--theme);
}
.np-feat-name,
.np-feat-card:hover .np-feat-name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:2.7em;
    margin:0 0 12px;
    font-size:17px;
    line-height:1.35;
    color:var(--header);
}
.np-feat-foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid #f0edf8;
}
.np-feat-price{
    font-size:16px;
    font-weight:700;
    color:var(--header);
}
.np-feat-price small{
    font-size:12px;
    font-weight:500;
    color:#6b7080;
}
.np-feat-price del{
    margin-right:4px;
    font-size:13px;
    font-weight:500;
    color:#9a9fae;
}
.np-feat-go{
    display:inline-flex;
    flex-shrink:0;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background:#f1ecff;
    color:var(--theme);
}
@media (max-width:1199px){
    .np-feat-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
@media (max-width:767px){
    .np-feat-section{
        padding:45px 0;
    }
    .np-feat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
    }
    .np-feat-card{
        padding:8px;
        border-radius:16px;
    }
    .np-feat-name{
        font-size:14px;
    }
    .np-feat-price{
        font-size:14px;
    }
    .np-feat-go{
        display:none;
    }
}

/* ===== Popular products: arrows sit in the heading row, never over the cards ===== */
.np-popular-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:16px;
}
.popular-product-section .array-button{
    opacity:1;
    visibility:visible;
}
.popular-product-section .array-button .array-prev,
.popular-product-section .array-button .array-next{
    position:static;
    transform:none;
}

/* ===== Trending + Featured products: equal-size cards & images ===== */

.product-slider .swiper-slide{
    height:auto;
    display:flex;
}

.product-slider .products-box-items{
    flex:1;
    display:flex;
    flex-direction:column;
    width:100%;
}

.feature-product-section .row > [class*="col-"]{
    display:flex;
}

.feature-product-section .feature-product-items{
    flex:1;
    display:flex;
    flex-direction:column;
    width:100%;
}

.product-slider .products-box-items .product-thumb,
.feature-product-section .feature-product-items .product-thumb{
    aspect-ratio:1 / 1;
    width:100%;
    background:#f8f9fc;
    border-radius:8px;
}

.product-slider .products-box-items .product-thumb > a,
.feature-product-section .feature-product-items .product-thumb > a{
    display:block;
    width:100%;
    height:100%;
}

.product-slider .products-box-items .product-thumb img,
.feature-product-section .feature-product-items .product-thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.product-slider .products-box-items .product-top li:first-child{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
    padding-right:10px;
}

.product-slider .products-box-items .product-top li:nth-child(2){
    flex-shrink:0;
}

.product-slider .products-box-items .product-content,
.feature-product-section .feature-product-items .product-content{
    flex:1;
    display:flex;
    flex-direction:column;
}

.product-slider .products-box-items .product-content h4,
.feature-product-section .feature-product-items .product-content h4{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    line-height:1.35;
    min-height:2.7em;
}

.feature-product-section .feature-product-items .product-content .price-list{
    margin-top:auto;
}

/* Trending eye icon: same as the Featured section - 45px dark circle in the centre of the image */
.product-slider .products-box-items .product-thumb .product-icon{
    top:50%;
    left:50%;
    right:auto;
    transform:translate(-50%,-50%);
}

.product-slider .products-box-items .product-thumb .product-icon li{
    width:45px;
    height:45px;
    line-height:45px;
    border-radius:50%;
    background-color:var(--header);
}

.product-slider .products-box-items .product-thumb .product-icon li a i{
    color:var(--white);
}

.product-slider .products-box-items .product-thumb .product-icon li:hover{
    background-color:var(--theme);
}

