/* Products Section Styles */
.products-section {
    padding-top: 45px;
    background-color: #f8f9fa;
}

.section-heading {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-heading span {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: normal;
}

/* Filters Container */
.filters-container {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.filters-container h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.filters-container h5 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Search and Filter Container */
.search-filter-container {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.search-container {
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #424242;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.search-input:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.1);
}

.category-filter {
    min-width: 200px;
}

.category-select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #424242;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.category-select:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.1);
}

.no-results {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* Products Container */
#productsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
}

/* Product Card */
.product-card {
    border: none;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 200px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Product Image Container */
.product-image-container {
    height: 160px;
    width: 100%;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Product Info */
.card-body {
    padding: 8px 0;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00796b;
}

.product-price .currency {
    color: #00796b;
}

.product-price .unit {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.stock-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.stock-status.in {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.stock-status.low {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.stock-status.out {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Quantity Selector */
.quantity-wrapper {
    margin-bottom: 12px;
}

.quantity-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #424242;
    transition: all 0.3s ease;
}

.quantity-select:hover:not(:disabled) {
    border-color: #00796b;
}

.quantity-select:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.1);
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #00796b, #009688);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 121, 107, 0.2);
}

.btn-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(45deg, #00695c, #00897b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 121, 107, 0.3);
}

.btn-add-to-cart:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 121, 107, 0.2);
}

.btn-add-to-cart:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
}

/* Price Range Slider */
.price-range {
    padding: 0.5rem 0;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Scroll Buttons */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #productsContainer {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 160px;
    }
    
    .product-image-container {
        height: 140px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #productsContainer {
        gap: 0.8rem;
    }
    
    .product-card {
        width: 140px;
    }
    
    .product-image-container {
        height: 120px;
    }
}

/* Products Row */
.products-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-notification-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-notification-details {
    flex-grow: 1;
}

.cart-notification-details p {
    margin: 0;
    font-size: 0.9rem;
}

.cart-notification-price {
    color: #2ecc71;
    font-weight: 600;
}

.cart-notification button {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    background: transparent;
    transition: all 0.3s ease;
}

.cart-notification button:hover {
    background: #2ecc71;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Update existing button styles */
.btn-add-to-cart {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        font-size: 0.9rem;
    }
    
    .cart-notification-image {
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design for Search and Filter */
@media (max-width: 768px) {
    .search-filter-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .category-filter {
        min-width: 100%;
    }
}

/* Add to existing CSS */

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-content i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} 