.page-home{
    margin-top: 100px;
}

.page-home .hero-left-text {
    min-height: calc(100vh - 200px);
    align-items: center;
}

.hero-section .row.align-items-center {
    display: flex;
    align-items: center; 
}



.hero-right {
    display: flex;
    align-items: center;       
    justify-content: center;   
    flex-direction: column;    
    max-width: 500px;          
    width: 100%;
    margin: 0 auto;
}

/* Hero images */
.hero-img {
    display: none;             /* hide all except active */
    width: 100%;
    height: auto;
    max-height:400px;
    object-fit: contain;
    opacity:0
}

.hero-img.active {
    opacity:1;
    display: block;
}


/* Text responsive */
.page-home .hero-title {
    font-size: 48px;
    line-height: 1.3;
    word-wrap: break-word; /* prevent overflow */
}
@media (max-width: 1410px) {
    .page-home .hero-img-col {
        margin-top: 50px;
        margin-bottom: 24px;
        max-width: 100%;
    }
}
/* Mobile and tablet adjustments */
@media (max-width: 992px) {
    /* Stack columns */
    .page-home{
    margin-top: auto;
}
    .page-home .hero-left-text {
        flex-direction: column;
        min-height: auto;
    }

    .page-home .hero-img-col {
        justify-content: center; /* center image */
        margin-top: 24px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-right {
        max-width: 100%; /* full width on smaller screens */
    }

    .hero-img {
        max-height: 300px;
    }


    .page-home .hero-title {
        font-size: 36px; /* smaller font on medium screens */
    }
}

@media (max-width: 768px) {
   

    .page-home .hero-title {
        font-size: 28px;
    }

    .page-home .hero-subtext {
        font-size: 14px;
    }
    .hero-img {
        max-height: 200px;
    }
}

@media (max-width:993px) and (min-width:567px){
    .hero-section{
        margin-top:30px ;
    }
    .page-home .hero-text-wrap {
        max-width: 100%; 
        padding: 100px 0 0 0 ; 

    }
}

/* ============================================================
   HOME PAGE — CATEGORY CARDS
============================================================ */
/* category autoscroll */
/* ==============================
   CATEGORY SLIDER
============================== */
/* ============================================================
   CATEGORIES SECTION — UNIFIED CARD SYSTEM
   (Scoped → no collision with product cards)
============================================================ */
.category-bar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.category-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-weight: 600;
}

.category-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.category-actions .btn {
 margin-top: auto;
    border-radius: 10px;
    font-weight: 500;
    background: var(--button-color);
    color: white;
    border: none;
    transition: .2s;
    
}
.categories-section{
    padding: 30px 0;
    background: var(--bg-color);
}

/* slider wrapper */
.category-slider-wrapper{
    overflow: hidden;
    width: 100%;
}

/* slider track */
.category-slider{
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* each slide */
.category-slide-item{
    flex: 0 0 25%;   /* 4 per screen desktop */
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* ==============================
   CATEGORY CARD (UI SYSTEM)
============================== */

.category-card{
    background: var(--bg-color);
    border-radius: 18px;
    border: 1.5px solid var(--card-bg-color);
    padding: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all .25s ease;
}

.category-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* image box */
.category-img-box{
    width: 100%;
    height: 220px;
    background: #f7f7f7;
    border-radius: 14px;
    overflow: hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* image */
.category-img-box img{
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 🔥 same as product cards */
}

/* body */
.category-card .card-body{
    padding: 10px 4px 4px;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

/* title */
.category-card .card-title{
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* button */
.category-card .view-more-btn{
    margin-top: auto;
    border-radius: 10px;
    font-weight: 500;
    background: var(--button-color);
    color: white;
    border: none;
    transition: .2s;
    padding: 8px 12px;
}

.category-card .view-more-btn:hover{
    opacity: .9;
}

/* ==============================
   DOTS
============================== */

.category-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.category-dots .dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition:.2s;
}

.category-dots .dot.active{
    background: var(--button-color);
}

/* ==============================
   RESPONSIVE
============================== */

@media(max-width: 992px){
    .category-slide-item{
        flex: 0 0 33.33%; /* 3 per screen */
    }

    .category-img-box{
        height: 200px;
    }
}

@media(max-width: 768px){
    .category-slide-item{
        flex: 0 0 50%; /* 2 per screen */
    }

    .category-img-box{
        height: 180px;
    }

    .category-card{
        padding: 10px;
    }

    .category-card .card-title{
        font-size: 15px;
    }
}

@media(max-width: 480px){
    .category-slide-item{
        flex: 0 0 100%;   /* 1 per screen */
        padding: 14px;
    }

    .category-card{
        max-width: 92%;
        margin: 0 auto;
    }

    .category-img-box{
        height: 200px;
    }

    .category-card .card-title{
        font-size: 16px;
    }

    .category-card .view-more-btn{
        font-size: 14px;
        padding: 10px;
    }
}

/* ============================================================
   BUTTONS — SHARED ON HOMEPAGE
============================================================ */
.page-home .shop-now { 
    background:var(--button-color);
    color: var(--bg-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    width: 160px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-home .shop-now:hover {
    opacity: 0.9;
}

/* "View more" text link */
.page-home .view-more {
    display: block;          /* important */
    width: fit-content;      /* shrink to content */
    margin: 8px auto 0;
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
    color:var(--button-color);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    
}

.page-home .know-more {
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
    color: var(--button-color);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    margin-left: 100px;
}
.page-home .know-more:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.page-home .view-more:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

/* ============================================================
   HOMEPAGE RESPONSIVE — HERO & CATEGORY
============================================================ */
@media (max-width: 576px) {
    .page-home .hero-title {
        font-size: clamp(28px, 5vw, 48px);
        line-height: 1.3;
        margin: 10px auto 0;
        max-width: 100%;
        padding-top: 120px;
        margin-right: 0px;
    }
    .page-home .know-more {
        margin-left: 0px;
    }
    .page-home .hero-image {
        width: 100%;
        height: auto;
        margin: 32px auto 0; /* top margin + horizontal centering */
        max-width: 320px; 
        margin-left: 0;
    }
    .page-home .hero-section {
        text-align: center;
        padding-top: 40px;
        padding-bottom: 50px;
    }
    .page-home .hero-left-text {
        padding: 0px;
    }
    

    .page-home .category-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .page-home .hero-title {
        font-size: 30px;
    }

    .page-home .hero-image {
        width: 90%;
        margin: auto;
        align-items: center;
        display: none;
    }
}

@media (max-width: 992px) {
    .page-home .hero-section {
        text-align: center;
    }
}

/* ============================================================
   HOME — TRADITION SECTION
============================================================ */
.page-home .tradition-section {
    background:var(--card-bg-color);
}

.page-home .tradition-img {
    width: 480px;
    height: 286px;
    border-radius: 8px;
    opacity: 1;    
    margin-left: -50px;
}

.page-home .tradition-title {
    font-weight: 500;
    font-style: Medium;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-left: 100px;
    line-height: 1.3;
    margin-right: -60px;
}

.page-home .tradition-text {
    font-size: 16px;
    color: var(--text-color);
    font-style: Medium;
    line-height: 100%;
    letter-spacing: 0%;
    margin-left: 100px;
    line-height: 1.3;
}

/* Tradition responsive */
@media (max-width: 576px) {
    .page-home .tradition-title {
        font-size: 24px;
        margin-left: 0px;
        line-height: 1.3;
        margin-right: 0px;
    }

    .page-home .tradition-text {
        font-size: 15px;
        line-height: 100%;
        margin-left: 0px;
        line-height: 1.4;
    }

    .page-home .tradition-img {
        width: 100%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .page-home .tradition-title {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .page-home .tradition-section {
        text-align: center;
    }
}




/* ============================================================
   HOME — PRODUCT CARDS (Homepage Version)
============================================================ */
/* ============================================================
   BEST SELLERS — UNIFIED PRODUCT CARD SYSTEM
   (Scoped, no collision, product-style UI)
============================================================ */

.best-sellers-section{
    background: var(--bg-color);
}

/* Grid container fix */
.best-sellers-section .row{
    align-items: stretch;
}

/* ==============================
   CARD
============================== */

.best-sellers-section .home-product-card{
    background: var(--bg-color);
    border-radius: 18px;
    border: 1.5px solid var(--card-bg-color);
    padding: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all .25s ease;
}

.best-sellers-section .home-product-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* ==============================
   IMAGE
============================== */

.best-sellers-section .home-product-img-fixed{
    width: 100%;
    height: 220px;
    object-fit: contain;              
    background: #f7f7f7;
    border-radius: 14px;
    padding: 10px;
}

/* ==============================
   BODY
============================== */

.best-sellers-section .card-body{
    padding: 10px 4px 4px;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

/* ==============================
   TEXT
============================== */

.best-sellers-section .home-product-name{
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.best-sellers-section .home-product-price{
    font-size: 15px;
    font-weight: 600;
    color: var(--button-color);
    margin-bottom: 10px;
}

.best-sellers-section .home-product-price span{
    font-size: 12px;
    color: var(--description-color);
}

/* ==============================
   BUTTON
============================== */

.best-sellers-section .product-btn-wrap{
    margin-top: auto; /* 🔥 push button to bottom */
}

.best-sellers-section .whatsapp-btn{
    width: 100%;
    border-radius: 10px;
    font-weight: 500;
    background: var(--button-color);
    color: white;
    border: none;
    padding: 10px;
    transition: .2s;
}

.best-sellers-section .whatsapp-btn:hover{
    opacity: .9;
}

/* ==============================
   RESPONSIVE
============================== */

@media(max-width: 992px){
    .best-sellers-section .home-product-img-fixed{
        height: 200px;
    }
}

@media(max-width: 768px){
    .best-sellers-section .home-product-img-fixed{
        height: 180px;
    }

    .best-sellers-section .home-product-name{
        font-size: 15px;
    }
}

@media(max-width: 576px){
    .best-sellers-section .home-product-img-fixed{
        height: 160px;
    }

    .best-sellers-section .home-product-name{
        font-size: 14px;
    }

    .best-sellers-section .whatsapp-btn{
        font-size: 14px;
        padding: 10px;
    }
}

/* ============================================================
   HOME — STILL CRAVING SECTION
============================================================ */
.page-home .spice-img {
    height: 180px;
    width: 250px;
    object-fit: contain;
    margin-left: auto;
    display: block;
}

.page-home .View-all-Products {
    background: var(--button-color);
    color: var(--bg-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
}

.page-home .View-all-Products:hover {
    opacity: 0.9;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .page-home .spice-img {
        height: 130px;
        margin: 0 auto;
        display: none;
    }
    .page-home .still-craving-goodness {
        font-size: 24px;
        line-height: 1.3;
    }
    .page-home .View-all-Products {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-home .still-craving-goodness {
        font-size: 28px;
    }
}

/* Reset row spacing */
.page-home .row {
    margin-right: 0;
    margin-left: 0;
}
