/* Global responsive overrides for inner pages */

/* Make heroes properly scale on mobiles */
@media (max-width: 992px) {
    .hero {
        height: 350px !important;
    }
    .section-factory {
        height: 350px !important;
    }
    .intro-text h2, .intro-heading h2 {
        font-size: 28px !important;
    }
    .hero-content h1 {
        font-size: 40px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 250px !important;
    }
    .section-factory {
        height: 250px !important;
    }
    
    /* Make custom values grid stack using flex-column if Bootstrap row is absent */
    .values-grids {
        flex-direction: column;
        gap: 20px;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .values-grids > div {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .values-grids .p_div {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #ccc;
        padding-top: 10px;
        margin-top: 10px;
        background: transparent !important;
    }
}


/* Restore strict image sizing for all inner pages except header */
section img, .row img, .container img, .product-item img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Ensure images embedded don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Premium Image Zoom Inside Cards */
.card {
    overflow: hidden !important; /* Ensure zooming image doesn't break card border */
}
.card img, .product-item img, .img-fluid {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.card:hover img, .product-item:hover img {
    transform: scale(1.08) !important;
}

/* Premium Product Slider Item Hover */
.product-item-hover {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 16px !important;
}
.product-item-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.product-item-hover img {
    transition: transform 0.6s ease;
}
.product-item-hover:hover img {
    transform: scale(1.1);
}


/* Transparent Minimalist Float Hover */
.minimal-hover {
    display: block;
    cursor: pointer;
}
.minimal-hover .img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.04);
}
.minimal-hover:hover .img-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.minimal-hover img {
    transition: transform 0.6s ease;
}
.minimal-hover:hover img {
    transform: scale(1.05);
}

.product-title-color {
    color: var(--primary-green) !important;
    font-weight: 700;
    font-size: 1.15rem;
    transition: color 0.3s ease;
}
.minimal-hover:hover .product-title-color {
    color: #111 !important; /* Turns dark on hover to signify interactability */
}

/* Make value grids icon pop more */
.values-grids .text-primary {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.values-grids > div:hover .text-primary {
    transform: scale(1.2) rotate(5deg) translateY(-5px);
}

