/* Wholesale Page Specific Styles */

.offer-banner {
    background-image: url('assets/images/banner10.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 30px;
}

.offer-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.offer-text {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

@media (max-width: 600px) {
    .offer-text {
        font-size: 1rem;
        padding: 6px 16px;
    }
    .offer-banner {
        height: 120px;
        margin-bottom: 15px;    
    }
}

/* Products Section */
.products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.discount-label {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: bold;
}
  
.search-filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 76px;
    z-index: 1040;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.category-header {
    margin-top: 2rem;
}

.category-header:first-child {
    margin-top: 0;
}

.serial-number {
    color: #ff0000;
    font-weight: bold;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
    height: 100%;
}

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

.product-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: #0d007e;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-unit {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.product-prices {
    font-size: 14px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #e9ecef;
    padding-bottom: 8px;
}

.original-price-label {
    text-decoration: line-through;
    color: #6c757d;
}

.discount-price-label {
    color: #dc3545;
    font-weight: bold;
    margin-left: 8px;
}

.wholesale-section {
    background-color: #fff9e6;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #ffeeba;
}

.wholesale-qty {
    font-size: 13px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 4px;
}

.wholesale-price {
    font-size: 16px;
    font-weight: 800;
    color: #28a745;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    color: white;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filter-section {
        padding: 1rem;
    }
    
    .product-image img {
        height: 110px;
    }
    
    .product-details {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .wholesale-price {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .category-header h3 {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    animation: fadeInUp 0.6s ease-out;
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
