
/* =========================================================
   PRODUCTS PAGE MODERN UI
========================================================= */

:root{
   
    --ifp-dark:#111827;
    --ifp-text:#4b5563;
    --ifp-border:#e5e7eb;
    --ifp-bg:#f8fafc;
    --ifp-white:#ffffff;
    --ifp-success:#16a34a;
}

/* =========================================================
   Global
========================================================= */

.ifp-single-product-page{
    background:var(--ifp-bg);
}

.product-single-wrapper{
    background:var(--ifp-white);
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 40px rgba(0,0,0,0.05);
    animation:fadeUp 0.7s ease;
}

/* =========================================================
   Breadcrumbs
========================================================= */

.ifp-breadcrumbs{
    margin-bottom:30px;
    font-size:14px;
    color:var(--ifp-text);
}

.ifp-breadcrumbs a{
    text-decoration:none;
    color:var(--ifp-primary);
    transition:0.3s;
}

.ifp-breadcrumbs a:hover{
    color:var(--ifp-dark);
}


/* =========================================================
   MODERN PRODUCT SIDEBAR
========================================================= */

.product-sidebar{
    background:#fff;
    border-radius:24px;
    padding:25px;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.06);
    border:1px solid rgba(0,0,0,0.04);
    overflow:hidden;
    position:relative;
}

/* Top Glow */

.product-sidebar::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(
        90deg,
        #0d6efd,
        #00b4ff
    );
}

/* =========================================================
   Sidebar Header
========================================================= */

.sidebar-header{
    margin-bottom:30px;
}

.sidebar-subtitle{
    display:inline-block;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:1px;
    font-weight:700;
    color:#0d6efd;
    margin-bottom:10px;
}

.product-sidebar h4{
    font-size:30px;
    font-weight:800;
    color:#111827;
    margin:0;
}

/* =========================================================
   Category List
========================================================= */

.product-category-list{
    list-style:none;
    padding:0;
    margin:0;
}

.product-category-list li{
    margin-bottom:14px;
    position:relative;
}

/* Links */

.product-category-list a{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;

    background:#f8fafc;
    border:1px solid #eef2f7;

    padding:16px 18px;

    border-radius:16px;

    text-decoration:none;

    font-size:16px;
    font-weight:700;

    color:#111827;

    transition:all 0.35s ease;
}

/* Hover */

.product-category-list a:hover{
    background:linear-gradient(
        135deg,
        #0d6efd,
        #2563eb
    );

    color:#fff;

    transform:
        translateX(6px)
        scale(1.02);

    box-shadow:
        0 12px 30px rgba(37,99,235,0.25);
}

/* Active */

.current-cat > a,
.current-cat-parent > a{
    background:linear-gradient(
        135deg,
        #0d6efd,
        #2563eb
    );

    color:#fff;

    box-shadow:
        0 12px 30px rgba(37,99,235,0.25);
}

/* Arrow */

.product-category-list a::after{
    content:'→';
    font-size:18px;
    transition:0.3s;
}

.product-category-list a:hover::after{
    transform:translateX(4px);
}

/* =========================================================
   Child Categories
========================================================= */

.product-category-list .children{
    margin-top:12px;
    margin-left:18px;
    padding-left:15px;
    border-left:2px dashed #dbeafe;
}

.product-category-list .children li{
    margin-bottom:10px;
}

.product-category-list .children a{
    background:#fff;
    padding:12px 15px;
    font-size:15px;
    border-radius:12px;
    border:1px solid #edf2f7;
}

/* =========================================================
   Sidebar CTA
========================================================= */

.sidebar-cta{
    margin-top:35px;
    padding:30px;
    border-radius:20px;

    background:linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

    color:#fff;

    position:relative;
    overflow:hidden;
}

/* Decorative Circle */

.sidebar-cta::before{
    content:'';
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(255,255,255,0.06);
    top:-60px;
    right:-60px;
}

.sidebar-cta h5{
    font-size:24px;
    font-weight:800;
    margin-bottom:15px;
    position:relative;
    z-index:2;
}

.sidebar-cta p{
    font-size:15px;
    line-height:1.8;
    opacity:0.92;
    margin-bottom:20px;
    position:relative;
    z-index:2;
}

.sidebar-cta .btn{
    border-radius:14px;
    padding:14px 20px;
    font-weight:700;
    position:relative;
    z-index:2;
}



/* =========================================================
   Animation
========================================================= */

.product-sidebar{
    animation:sidebarFade 0.7s ease;
}

@keyframes sidebarFade{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* =========================================================
   Mobile
========================================================= */

@media(max-width:991px){

    .product-sidebar{
        padding:25px;
        margin-bottom:30px;
    }

    .product-sidebar h4{
        font-size:24px;
    }

}

@media(max-width:767px){

    .product-category-list a{
        padding:14px 16px;
        font-size:15px;
    }

    .sidebar-cta{
        padding:24px;
    }

}


/* =========================================================
   Product Title
========================================================= */
.product-card .h5 a {
    color: #121212;
}

.product-title{
    font-size:42px;
    font-weight:800;
    color:var(--ifp-dark);
    line-height:1.2;
    margin-bottom:20px;
    animation:fadeRight 0.8s ease;
}

/* =========================================================
   Price
========================================================= */

.product-price{
    font-size:32px;
    font-weight:800;
    color:var(--ifp-primary);
    margin-bottom:25px;
    animation:zoomIn 0.6s ease;
}

/* =========================================================
   Short Description
========================================================= */

.product-short-desc{
    font-size:17px;
    line-height:1.9;
    color:var(--ifp-text);
}

/* =========================================================
   Featured Image
========================================================= */

.product-main-image{
    overflow:hidden;
    border-radius:18px;
}

.product-main-image img{
    transition:transform 0.5s ease;
}

.product-main-image:hover img{
    transform:scale(1.05);
}

/* =========================================================
   Gallery
========================================================= */

.product-gallery img{
    width:100%;
    border-radius:14px;
    transition:all 0.4s ease;
    cursor:pointer;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
}

.product-gallery img:hover{
    transform:translateY(-6px) scale(1.03);
    box-shadow:0 12px 30px rgba(0,0,0,0.12);
}


/* =========================================================
   Product Description
========================================================= */

.product-description{
    margin-top:60px;
    padding-top:40px;
    border-top:1px solid var(--ifp-border);
}

.product-description h2{
    font-size:34px;
    font-weight:800;
    margin-bottom:25px;
    color:var(--ifp-dark);
}

.product-description p{
    font-size:17px;
    line-height:1.9;
    color:var(--ifp-text);
}

/* =========================================================
   CTA Section
========================================================= */

.product-cta{
    background:linear-gradient(
        135deg,
        #0d6efd,
        #2563eb
    );
    color:#fff;
    border-radius:24px;
    position:relative;
    overflow:hidden;
}

.product-cta::before{
    content:'';
    position:absolute;
    width:300px;
    height:300px;
    background:rgba(255,255,255,0.08);
    border-radius:50%;
    top:-120px;
    right:-120px;
}

.product-cta h3{
    font-size:32px;
    font-weight:800;
}

.product-cta p{
    font-size:18px;
    opacity:0.95;
}

/* =========================================================
   Related Products
========================================================= */

.related-products{
    margin-top:70px;
}

.related-products h3{
    font-size:32px;
    font-weight:800;
    margin-bottom:35px;
}

.related-products .card{
    border-radius:18px;
    overflow:hidden;
    transition:all 0.4s ease;
}

.related-products .card:hover{
    transform:translateY(-10px);
    box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

.related-products .card img{
    transition:0.4s;
}

.related-products .card:hover img{
    transform:scale(1.08);
}

.related-products .card-body{
    padding:25px;
}

.related-products .card-body a{
    text-decoration:none;
    color:var(--ifp-dark);
    font-weight:700;
    font-size:18px;
}

/* =========================================================
   Product Cards
========================================================= */

.product-card{
    border-radius:18px;
    overflow:hidden;
    transition:all 0.4s ease;
    background:#fff;
}

.product-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.1);
}

.product-card img{
    transition:0.4s;
}

.product-card:hover img{
    transform:scale(1.05);
}

/* =========================================================
   Trust Badges
========================================================= */

.badge-box{
    background:#f3f4f6;
    padding:20px;
    border-radius:14px;
    transition:0.3s;
}

.badge-box:hover{
    background:var(--ifp-primary);
    color:#fff;
    transform:translateY(-5px);
}

/* =========================================================
   Animations
========================================================= */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes fadeLeft{

    from{
        opacity:0;
        transform:translateX(-40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes fadeRight{

    from{
        opacity:0;
        transform:translateX(40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes zoomIn{

    from{
        opacity:0;
        transform:scale(0.8);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

/* =========================================================
   Responsive
========================================================= */

@media(max-width:991px){

    .product-single-wrapper{
        padding:25px;
    }

    .product-title{
        font-size:32px;
    }

    .product-price{
        font-size:28px;
    }

    .product-description h2,
    .related-products h3,
    .product-cta h3{
        font-size:26px;
    }

    .product-sidebar{
        margin-bottom:30px;
    }

}

@media(max-width:767px){

    .product-title{
        font-size:28px;
    }

    .btn{
        width:100%;
    }

    .product-cta{
        text-align:center;
    }

}

