html, body {
    font-family: 'Playfair Display', serif;
    background-color: #F4F4F4;
    margin: 0;
    height: 100%;               
    display: flex;
    flex-direction: column; 
}
main {
    flex: 1;                   /* take up all remaining space */
}

.custom-header {
    background: #003366;
    color: #fff;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}




/* ========= Slider ========= */
#mainCarousel .carousel-item {
    height: 600px;
    position: relative;
}
#mainCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}
#mainCarousel .carousel-caption {
    bottom: 20%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
}
#mainCarousel .carousel-caption h3 {
    font-size: 2rem;
    color: #FFD700;
}
#mainCarousel .carousel-caption p {
    color: #fff;
    font-size: 1.1rem;
}

/* ===== Mobile view ===== */
@media (max-width: 768px) {
    #mainCarousel .carousel-item {
        height: 250px; /* smaller height for mobile */
    }

    #mainCarousel .carousel-caption {
        bottom: 10px;
        padding: 10px;
    }

    #mainCarousel .carousel-caption h3 {
        font-size: 1.2rem; /* smaller heading */
    }

    #mainCarousel .carousel-caption p {
        font-size: 0.9rem; /* smaller text */
    }
}

/* ========= Shop by Category ========= */
.Categroies {
    background: #FFF8F0;
}
.category-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto;
    border: 4px solid #ff7f50;
    transition: transform 0.3s ease;
}
.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ensures full coverage */
    object-position: center; /* centers the image */
    display: block;
}

.category-circle:hover {
    transform: scale(1.1);
}

/* ========= Products Sections ========= */
.Top_Selling {
    background: #e0f7f4;
    padding: 80px 0;
}
.Latest_Products {
    background: #ffffff;
    padding: 80px 0;
}
/* Card styling */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Image wrapper: fixed 1:1 square */
.card-img-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 ratio */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eee; /* optional separator */
}

/* Image inside wrapper */
.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* crop but fill */
    object-position: center; /* keep main subject centered */
    transition: transform 0.3s ease;
}

/* Hover zoom effect */
.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Text adjustments */
.product-card .card-body {
    padding: 12px 8px;
    text-align: center;
}
.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    min-height: 40px; /* keeps equal height for 2-line titles */
}
.product-card .price {
    font-size: 1rem;
    font-weight: 700;
    color: #ff4d4f;
}


.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #003366, #0dcaf0);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(45deg, #002244, #0bb5d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}



/* ========= Mission Section ========= */
.Mission {
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative; /* required for overlay */
}

/* Overlay using a pseudo-element */
.Mission::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* dark overlay */
    z-index: 0;
}

/* Content inside Mission should be above overlay */
.Mission .container {
    position: relative;
    z-index: 1;
}


.Mission h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #FFD700;
}
.Mission p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

/* ========= Testimonials ========= */
.Testimonials {
    background: linear-gradient(135deg, #003366, #005580);
    color: #fff;
   
}
.Testimonials .card {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    color: #fff;
}
.Testimonials i {
    color: #FFD700;
}

/* ========= Call to Action ========= */
.CTA {
    background: #ff7f50;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.CTA h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.CTA .btn {
    margin: 10px;
    font-size: 1.1rem;
}

/* ========= Newsletter ========= */
.Newsletter {
    background: #e0f7f4;
    padding: 80px 20px;
    text-align: center;
}

.Newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.Newsletter p {
    font-size: 1rem;
    color: #333;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1 1 300px;
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #00c4cc; /* brighter hover color */
    color: #fff;
}




.Top_Selling, 
.Latest_Products, 
.Categroies, 
.Testimonials, 
.Mission, 
.CTA, 
.Newsletter {
    padding-top: 80px;
    padding-bottom: 80px;
}


footer {
    background: #003366;
    color: #fff;
    padding: 40px 20px;
}
footer a {
    color: #adb5bd;
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}