.caffia-hero-title{
    margin: 0;
}
.caffia-hero-wrapper{
    padding-top: 100px;
    padding-bottom: 100px;
}
.caffia-hero-content{
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 50%;
}
.caffia-hero-content-wrapper{
    display: flex;
    gap: 100px;
    align-items: center;
}
/* Control carousel image dimensions */
.caffia-hero-carousel {
    max-width: 600px;
    width: 50%;
    overflow: hidden;

}

.caffia-hero-carousel .swiper-container {
    width: 100%;
    height: 100%;
}

.caffia-hero-carousel .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caffia-hero-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This maintains aspect ratio while filling the container */
    object-position: center; /* Centers the image */
}
/* Bullet navigation with animation */
.caffia-hero-bullets {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.carousel-bullet {
    width: 30px;
    height: 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.carousel-bullet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #fff;
}

.carousel-bullet.active::after {
    animation: fillBullet 5s linear forwards;
}

@keyframes fillBullet {
    from { width: 0; }
    to { width: 100%; }
}
.carousel-bullet.active::after {
    animation: fillBullet var(--bullet-fill-duration, 5s) linear forwards;
}
@media screen and (max-width:1100px) {
    .caffia-hero-content-wrapper{
        flex-direction: column-reverse;
    }
    .caffia-hero-content{
        width: 100%;
        max-width: none;
        align-items: center;
        text-align: center;
    }
    .caffia-hero-carousel {
        width: 100%;
        max-width: none;
        max-height: 400px;
    }
    
}
.floating-mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 999;
    font-size: 14px;
}

.floating-mini-cart.hidden {
    display: none;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 20px;
}

.mini-cart-products {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.mini-cart-product {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mini-cart-product-thumb {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.mini-cart-product-thumb img {
    width: 100%;
    height: auto;
}

.mini-cart-product-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

.mini-cart-product-details {
    margin-left: 10px;
    flex-grow: 1;
}

.mini-cart-product-title {
    font-weight: 500;
}

.mini-cart-product-price {
    font-weight: bold;
}

.mini-cart-totals {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.mini-cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mini-cart-row.total {
    font-weight: bold;
    border-top: 1px solid #ccc;
    padding-top: 8px;
    margin-top: 8px;
}

.mini-cart-actions {
    margin-top: 20px;
    text-align: center;
}

.checkout-btn {
    display: block;
    background: #d10a2c;
    color: #fff;
    padding: 10px 0;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    font-weight: bold;
}

.view-cart-btn {
    display: block;
    background: #f5f5f5;
    color: #000;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 10px;
}

.continue-shopping {
    font-size: 13px;
    text-decoration: underline;
    color: #555;
}

@media screen and (max-width:700px) {
    .caffia-hero-content .caffia-hero-title-wrapper h1{
        font-size: 32px !important;
    }
    .caffia-hero-content .caffia-hero-description-wrapper p{
        font-size: 12px !important;
    }
    .caffia-hero-content{
        text-align: start;
        align-items: flex-start;
        gap: 16px;
    }
    .caffia-hero-button-wrapper{
        width: 100%;
    }
    .caffia-hero-button-wrapper .hero-button{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .caffia-hero-bullets{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .caffia-hero-wrapper{
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .caffia-hero-content-wrapper{
        gap: 0;
    }
}