﻿

@media (max-width: 480px) {
    .col-123 {
        width: 45% !important;
    }
}
@media (max-width: 480px) {
    .position-relative.bg-attach-cover {
        height: 450px !important;
        width: 342px !important;
    }
    .middle {
        opacity: 1 !important;
        top: 48% !important;
        margin-top: 216px;
        width: 186px;
      
    }

    .mobilbutton {
        opacity: 1 !important;
        top: -12% !important;
    }

    .col .image {
        opacity: 0.3;
    }
    .Regulatory {
        top: -13%;
    }
    .globalshoppping {
        top: -10% !important;
    }
    .custompack {
        top: -11%;
    }
    .contactUs {
        width: 78%;
    }
    .integrity {
        top: 51% !important;
    }
    .trick {
        margin-top: 325px !important;
    }
}

/* RESPONSIVE */
 @media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        height: 320px;
    }
}
.h-100 {
    height: 100% !important;
}

.mb-5 {
    margin-bottom: 2rem !important;
    margin-top: 48px;
}

.position-relative.bg-attach-cover {
    height: 450px;
    width: 450px; /* or whatever fits your layout */
}

.bg-overlay {
    background-image: url('/Images/Products/Candelila Wax.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* full width of parent */
    height: 80%; /* full height of parent */
    z-index: 1;
    margin-top: 46px;
    /* optional, below content */
}

.content-center {
    position: relative;
    z-index: 2; /* keeps text above the overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
/*    padding-bottom: 38px;*/
}

    .content-center p {
        /* gold color */
        font-size: 5rem; /* increase size */
        font-weight: 900; /* bold text */
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.7); /* glowing look */
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px !important;
    margin-top: 16px;
    padding: 20px;
    /* background: rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
}

    .pagination button {
        position: relative;
        border: none;
        background: linear-gradient(145deg, #F06724, #d85a1f);
        color: white;
        padding: 12px 20px;
        border-radius: 10px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(240, 103, 36, 0.3);
        overflow: hidden;
    }

        .pagination button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .pagination button:hover::before {
            left: 100%;
        }

        .pagination button:hover {
            background: linear-gradient(145deg, #ff8646, #F06724);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(240, 103, 36, 0.4);
        }

        .pagination button:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(240, 103, 36, 0.3);
        }

        .pagination button.active {
            background: linear-gradient(145deg, #333, #1a1a1a);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(0, 0, 0, 0.3);
            transform: scale(1.1);
            font-weight: 700;
        }

            .pagination button.active::after {
                content: '';
                position: absolute;
                bottom: 3px;
                left: 50%;
                transform: translateX(-50%);
                width: 60%;
                height: 3px;
                background: #F06724;
                border-radius: 2px;
                box-shadow: 0 0 10px #F06724;
            }

        .pagination button.prev,
        .pagination button.next {
            padding: 12px 16px;
            font-size: 16px;
            background: linear-gradient(145deg, #555, #333);
        }

            .pagination button.prev:hover,
            .pagination button.next:hover {
                background: linear-gradient(145deg, #666, #444);
            }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

            .pagination button:disabled:hover {
                background: linear-gradient(145deg, #555, #333);
                transform: none;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            }

        /* Ripple effect */
        .pagination button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .pagination button:not(.active):active::after {
            width: 200px;
            height: 200px;
        }

.btn-white-outline {
    background-color: transparent;
    border-color: white;
    color: white;
    border-width: 3px;
}
/* --- Mobile Responsive Styles --- */

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 118%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.col:hover .image {
    opacity: 0.3;
}

.col:hover .middle {
    opacity: 1;
}

.text {
    background-color: #04AA6D;
    color: white;
    font-size: 16px;
    padding: 16px 32px;
}

.section {
    padding: 10px 0px;
}
/* SECTION WRAPPER */
.product-section {
    width: 106%;
    display: flex;
    justify-content: center;
}

/* 90% WIDTH CONTAINER */
.product-wrapper {
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
}

/* GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARD */
.product-card {
    position: relative;
    height: 400px;
    width: 355px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
}

    /* DARK OVERLAY */
    .product-card .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,2.4);
    }

    /* CONTENT */
    .product-card .content {
        position: relative;
        z-index: 3;
        height: 100%; /* 🔥 REQUIRED */
        padding: 32px;
        color: #fff;
        display: flex; /* ✅ REQUIRED */
        flex-direction: column;
    }


    .product-card h4 {
        color: #F06724;
        font-size: 28px;
        margin-bottom: 10px;
    }

    .product-card p {
        font-weight: 600;
        margin-bottom: 20px;
    }

/* BUTTON */
.btn-white-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 28px;
    background: transparent;
}

    .btn-white-outline:hover {
        background: #fff;
        color: #000;
    }
.content p {
    color: white !important;
}

.read-more-btn {
    margin-top: auto; /* pushes to bottom */
    align-self: flex-start; 
    
    
    /* right aligned */
}


/* =========================================
   TABLET ( ≤ 992px )
========================================= */
@media (max-width: 992px) {

    /* Product grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Card sizing */
    .product-card,
    .position-relative.bg-attach-cover {
        width: 100%;
        height: 360px;
    }

        /* Card content */
        .product-card .content,
        .position-relative.bg-attach-cover .p-5 {
            padding: 24px;
        }

        .product-card h4 {
            font-size: 24px;
        }

        .product-card p {
            font-size: 15px;
        }

    /* Hero text */
    .content-center p {
        font-size: 3.2rem;
    }
    
}


/* =========================================
   MOBILE ( ≤ 576px )
========================================= */
@media (max-width: 576px) {

    /* Wrapper spacing */
    .product-wrapper {
        width: 92%;
    }

    /* One card per row */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Card size */
    .product-card,
    .position-relative.bg-attach-cover {
        width: 100%;
        height: 320px;
        border-radius: 10px;
    }

        /* Card text */
        .product-card h4 {
            font-size: 22px;
            line-height: 1.2;
        }

        .product-card p {
            font-size: 14px;
        }

    /* Button always visible */
    .middle {
        position: relative;
        opacity: 1;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 12px;
        width: auto;
    }

    /* Disable hover tricks on mobile */
    .col:hover .image,
    .col:hover .middle {
        opacity: 1;
    }

    /* Hero text */
    .content-center p {
        font-size: 2.2rem;
        padding: 0 12px;
    }
}


/* =========================================
   VERY SMALL DEVICES ( ≤ 480px )
========================================= */
@media (max-width: 480px) {

    /* Extra spacing safety */
    .product-wrapper {
        width: 94%;
    }

    /* Reduce card height */
    .product-card,
    .position-relative.bg-attach-cover {
        height: 300px;
    }

    /* Button sizing */
    .btn-white-outline {
        padding: 10px 22px;
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .read-more-btn {
        align-self: center; /* 🔥 centers horizontally */
        right: auto; /* safety reset if absolute existed */
        left: auto;
    }
}

