/*All Products*/ /* Product Grid Styling */ .woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } /* Individual product box */ .woocommerce ul.products li.product { border: 1px solid #eaeaea; padding: 15px; border-radius: 5px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); transition: all 0.3s ease-in-out; background-color: #fff; text-align: center; margin-bottom: 0px; /* gap between rows */ } /* Hover effect */ .woocommerce ul.products li.product:hover { transform: translateY(-8px) scale(1.005); box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); } /* Product image */ .woocommerce ul.products li.product img { max-width: 100%; height: auto; border-radius: 3px; object-fit: cover; } /* Product title */ .woocommerce ul.products li.product h2.woocommerce-loop-product__title { font-size: 14px; font-weight: 600; color: #333; margin: 10px 0 5px; } /* Product price */ .woocommerce ul.products li.product .price { color: #27ae60; font-size: 16px; font-weight: 600; margin-bottom: 10px; } /* Optional: Widget Titles */ .wc-block-price-filter__title, .widget-title { font-size: 18px; } .woocommerce ul.products li.product .button { display: block; width: 100%; text-align: center; white-space: nowrap; } /* 🌟 Container Setup */ .custom-hover-container { position: relative; overflow: hidden; border-radius: 10px; /* Rounded corner for entire block */ } /* 🖼️ Image Styling */ .custom-hover-container .hover-image { width: 100%; display: block; transition: transform 0.5s ease; border-radius: 10px; /* Rounded corner for image */ object-fit: cover; } /* 🔲 Overlay Effect */ .custom-hover-container::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* initial overlay */ transition: background-color 0.4s ease; z-index: 1; border-radius: 10px; /* Match image corner */ } /* 🔘 Button Style - Always Visible */ .custom-hover-container .hover-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; color: white; padding: 12px 24px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: background-color 0.3s ease; font-size: 16px; white-space: nowrap; } /* ✨ Hover Effects */ .custom-hover-container:hover::before { background-color: rgba(0, 0, 0, 0); /* fade overlay on hover */ } .custom-hover-container:hover .hover-image { transform: scale(1.1); } /* 📱 Mobile Responsive */ @media (max-width: 768px) { .custom-hover-container .hover-button { padding: 10px 20px; font-size: 14px; } .custom-hover-container .hover-image { border-radius: 8px; } .custom-hover-container::before { border-radius: 8px; } }