/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 120px 10px 80px;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-description {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.filter-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group label {
    color: #333;
    font-weight: 500;
}

.category-select {
    padding: 8px 16px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.category-select:hover {
    border-color: #0056b3;
}

.category-select:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

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

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

.product-image {
    position: relative;
    padding-top: 125%; /* 4:5 aspect ratio */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 20px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.product-code {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: #007bff;
}

/* Notification Styles */
#notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-align: center;
}

#notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Cart Icon Styles */
.nav-cart {
    position: relative;
    margin-left: 18px;
}

.nav-cart .material-icons {
    font-size: 28px;
    vertical-align: middle;
    color: #333;
    transition: color 0.2s;
}

.nav-cart .material-icons:hover {
    color: #007bff;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: -10px;
    background: #007bff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 7px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .nav-cart {
        margin-left: 10px;
    }
    .nav-cart .material-icons {
        font-size: 24px;
    }
    .cart-count {
        font-size: 11px;
        min-width: 18px;
        padding: 1px 5px;
        top: 0;
        right: -8px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
    background: #007bff;
    color: white;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.12);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px 12px;
    border-bottom: 1px solid #eee;
}
.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-footer {
    padding: 18px 24px;
    border-top: 1px solid #eee;
}
.cart-total {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 14px;
}
.cart-item-details {
    flex: 1;
}
.cart-item-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}
.cart-item-price {
    font-size: 0.95rem;
    color: #007bff;
}
.cart-item-qty {
    font-size: 0.9rem;
    color: #666;
}
.remove-cart-item {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 8px;
}

/* Order Modal Styles */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.order-modal.open {
    display: flex;
}
.order-modal-content {
    background: #fff;
    padding: 32px 28px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 400px;
    position: relative;
}
.close-order-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}
#orderForm input, #orderForm textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
#orderForm button {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
    .order-modal-content {
        max-width: 95vw;
        padding: 18px 8px 12px;
    }
}

@media screen and (max-width: 768px) {
    .products-section {
        padding: 100px 0 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 10px;
    }
}
