body {
    background: #fafafa;
}

.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0; /* Remove extra padding for navbar alignment */
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.dot {
    color: orange;
}

.navbar {
    background: transparent !important;
    padding: 0;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    margin-right: 20px;
    color: #222 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:last-child {
    margin-right: 0;
}

.nav-link:hover {
    color: orange !important;
}

.search-box {
    max-width: 200px;
}

@media (max-width: 991.98px) {
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .header {
        min-height: 72px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .header .logo {
        font-size: 1.5rem;
    }

    .navbar-nav {
        align-items: flex-start;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .search-box {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 10px;
    }
}

.card-custom {
    border: none;
    border-radius: 0;
    overflow: hidden;
    min-height: 350px;
}

/* Product listing section background */
.container.my-5 {
    background: #f2f2f2;
    border-radius: 16px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.card-img {
    height: 350px;
    object-fit: cover;
    filter: brightness(0.85);
}

.card-img-overlay {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
}

.category-badge {
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.btn-read {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 0;
    padding: 6px 18px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: 0.2s;
}

.btn-read:hover {
    background: #fff;
    color: orange;
    border-color: orange;
}

@media (max-width: 991.98px) {
    .card-img {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .card-img {
        height: 180px;
    }
}

/* Orange Hero + Feature Cards Section */

.product-title-main {
    position: absolute;
    left: 65%;
    top: 85%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: #ea5421;
    letter-spacing: 2px;
    z-index: 4;
    text-shadow: 2px 2px 16px #fff, 0 2px 2px #fff;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    padding: 0;
}

@media (max-width: 991.98px) {
    .product-title-main {
        font-size: 3rem;
        left: 50%;
        top: 90%;
        white-space: normal;
        padding: 0 16px;
    }
}

@media (max-width: 575.98px) {
    .product-title-main {
        font-size: 2rem;
        left: 50%;
        top: 98%;
        white-space: normal;
        text-shadow: 1px 1px 8px #fff, 0 1px 1px #fff;
        padding: 0 8px;
    }
}

.product-hero-shadow {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    background: #e3e8ed;
    border-radius: 50%;
    z-index: 1;
}

.product-hero-mainimg {
    width: 646px;
    height: 646px;
    object-fit: cover;
    border: 8px solid #fff;
    background: #f2f2f2;
    position: relative;
    z-index: 2;
}

.product-hero-smallimg {
    width: 283px;
    height: 283px;
    object-fit: cover;
    left: -40px;
    bottom: -30px;
    border: 6px solid #fff;
    background: #f2f2f2;
    z-index: 3;
}

@media (max-width: 991.98px) {
    .product-hero-mainimg {
        width: 350px;
        height: 350px;
    }

    .product-hero-smallimg {
        width: 140px;
        height: 140px;
        left: -20px;
        bottom: -10px;
    }

    .product-hero-shadow {
        width: 260px;
        height: 260px;
        right: -60px;
    }
}

@media (max-width: 575.98px) {
    .product-hero-mainimg {
        width: 180px;
        height: 180px;
    }

    .product-hero-smallimg {
        width: 90px;
        height: 90px;
        left: -10px;
        bottom: -10px;
    }

    .product-hero-shadow {
        width: 120px;
        height: 120px;
        right: -20px;
    }
}

.feature-hero-bg {
    background: #ea5421;
    position: relative;
    z-index: 1;
    border-radius: 0 0 200px 200px/0 0 80px 80px;
    min-height: 210px;
}

.feature-hero-container {
    z-index: 3;
    margin-top: -80px;
}

.feature-badge {
    background: #ea5421;
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid #fff;
    box-shadow: 0 2px 8px #0001;
}

/* Scoped pagination tweaks */
.pagination-wrapper nav .pagination .page-link {
    padding: 0.25rem 0.5rem; /* compact */
    font-size: 0.9rem;
}

.pagination-wrapper nav .pagination {
    gap: 0.25rem; /* small space between buttons */
}

/* Hide summary like "Showing 1 to 4 of 7 results" if present in the pagination block */
.pagination-wrapper nav .small.text-muted,
.pagination-wrapper nav .pagination-summary {
    display: none !important;
}

/* Ensure the whole area has breathing room from above content */
.pagination-wrapper {
    scroll-margin-top: 80px; /* nice anchor offset if any */
}


.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img-wrapper{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: transform 500ms ease;
    transform: scale(1);
}
.gallery-item:hover .gallery-img-wrapper {
    transform: scale(1.1);
}
.gallery-img-wrapper img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    left: 0;
    top: 0;
}