.product-card {
    text-align: left;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px); /* Slight lift on hover */
}

/* --- Image & Hover Overlay --- */
.product-image-wrapper {
    position: relative;
    background-color: #f8f9fa; /* Light gray background for product images */
    overflow: hidden;
    /* Forces a uniform square shape. Remove aspect-ratio if you want original image sizes */
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box cleanly */
}

/* The Yellow Overlay */
.product-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgb(0 68 94 / 80%); /* The vibrant yellow color */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* Icons touch each other based on dashed borders */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
    visibility: visible;
}

/* Dashed Icons inside Overlay */
.hover-icon-btn {
    color: #ffffff;
    border: 1px dashed #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    margin-left: -1px; /* Overlaps borders so they don't double up */
}

.hover-icon-btn:hover {
    background-color: #ffffff;
    color: #0045e; /* Yellow icon on white background */
}

/* --- Typography --- */
.product-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    /* Truncates to 2 lines if the title is very long */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #dca759; /* Optional: brand color on hover */
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
}

/* --- Swiper Arrows (Show on Hover) --- */
.custom-swiper-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    width: 40px;
    height: 40px;
    color: #555555;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    top: 40%;
}

/* Hide default swiper icon font */
.custom-swiper-arrow::after {
    display: none !important; 
    content: '' !important;
}

.custom-swiper-arrow i {
    font-size: 18px;
}
.swiper-button-next svg, .swiper-button-prev svg{
	display: none;
}
/* Show arrows when hovering over the slider container */
.popular-categories-inner:hover .custom-swiper-arrow {
    opacity: 1;
    visibility: visible;
}

/* Position adjustments */
.swiper-button-prev.custom-swiper-arrow { left: -15px; }
.swiper-button-next.custom-swiper-arrow { right: -15px; }

.custom-swiper-arrow:hover {
    background-color: #f8f9fa;
    color: #000000;
}

@media (max-width: 768px) {
    /* Keep arrows visible on mobile since there is no hover */
    .custom-swiper-arrow {
        opacity: 1;
        visibility: visible;
        left: 0;
        right: 0;
    }
}