/* 
   Sir Dube's Water Supply - Product & Equipment Image Styles
   Created: May 2025
*/

/* Product Image Enhancements */
.product-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 250px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 119, 182, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    background-color: #ffffff;
    color: #0077b6;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #03045e;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Product Card Enhancements */
.product-card {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #03045e;
    font-size: 18px;
}

.product-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-weight: 700;
    color: #0077b6;
    font-size: 18px;
}

.btn-inquire {
    background-color: #0077b6;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-inquire:hover {
    background-color: #03045e;
    transform: translateY(-3px);
}

/* Equipment Image Enhancements */
.category-img {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    margin-bottom: 30px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-content {
    padding: 20px;
}

.category-content h4 {
    margin-bottom: 10px;
    color: #03045e;
}

.category-items {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.category-items li {
    padding: 5px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.category-items li:last-child {
    border-bottom: none;
}

.btn-view {
    display: inline-block;
    margin-top: 15px;
    background-color: #0077b6;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #03045e;
    transform: translateY(-3px);
}

/* Featured Equipment Slider */
.equipment-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.equipment-slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.equipment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.equipment-img {
    height: 250px;
    overflow: hidden;
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.equipment-info h4 {
    margin-bottom: 10px;
    color: #03045e;
}

.equipment-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.equipment-price {
    font-weight: 700;
    color: #0077b6;
    font-size: 18px;
    margin-bottom: 10px;
}

.equipment-availability {
    font-size: 14px;
    color: #28a745;
    margin-bottom: 10px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.prev-slide, .next-slide {
    background-color: #0077b6;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
    background-color: #03045e;
    transform: translateY(-3px);
}

/* Supplies Grid */
.supplies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.supply-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.supply-card:hover {
    transform: translateY(-10px);
}

.supply-img {
    height: 180px;
    overflow: hidden;
}

.supply-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.supply-card:hover .supply-img img {
    transform: scale(1.1);
}

.supply-info {
    padding: 15px;
}

.supply-info h4 {
    margin-bottom: 8px;
    color: #03045e;
    font-size: 16px;
}

.supply-price {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #0077b6;
}

/* Image Placeholder Styling */
.image-placeholder {
    background-color: #f0f0f0;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.image-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #0077b6;
}

.image-placeholder.pump {
    background-color: #e6f2ff;
}

.image-placeholder.tank {
    background-color: #e6f9ff;
}

.image-placeholder.pipe {
    background-color: #f0f9ff;
}

.image-placeholder.filter {
    background-color: #e6eeff;
}

.image-placeholder.accessory {
    background-color: #f0faff;
}

.image-placeholder.equipment {
    background-color: #e6f0ff;
}

.image-placeholder.supply {
    background-color: #e6f6ff;
}
