body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #2c2c2c;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6200;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
}

nav ul li a:hover {
    color: #ff6200;
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-actions a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
}

.user-actions a:hover {
    color: #ff6200;
}

.cart-heart {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.heart-icon {
    font-size: 1.5rem;
    color: #ff6200;
    transition: transform 0.2s ease;
}

.heart-icon:hover {
    transform: scale(1.2);
}

.cart-count {
    background-color: #ff6200;
    color: #fff;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Filter and Search Styles */
.filter-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.filter-form, .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-form .form-group, .search-form .form-group {
    flex: 1;
    min-width: 150px;
}

.filter-form select, .search-form input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-form select:focus, .search-form input[type="text"]:focus {
    outline: none;
    border-color: #ff6200;
    box-shadow: 0 0 5px rgba(255,98,0,0.3);
}

.search-form input[type="text"] {
    min-width: 200px;
}

/* Products Page Styles */
.products-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.products-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.products-container h1 {
    font-size: 2rem;
    color: #ff6200;
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-filter a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-filter a:hover,
.category-filter a.active {
    background-color: #ff6200;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-card .category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-card .price {
    color: #ff6200;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-card .mrp {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.product-card .availability {
    font-size: 0.9rem;
    color: #2c662d;
    margin-bottom: 0.5rem;
}

.product-card .availability.out-of-stock {
    color: #662d2d;
}

.product-card .rating {
    font-size: 0.9rem;
    color: #ff6200;
    margin-bottom: 0.5rem;
}

.product-card form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.product-card input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 60px;
}

/* Product Details Page Styles */
.product-details {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-details-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-details-container h1 {
    font-size: 2rem;
    color: #ff6200;
    margin-bottom: 0.5rem;
}

.product-details-container .category {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-media {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.gallery-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
}

.gallery-image.active {
    border: 2px solid #ff6200;
    transform: scale(1.05);
}

.product-video {
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-info {
    margin-bottom: 2rem;
}

.product-info .price {
    color: #ff6200;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-info .mrp {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.product-info .availability {
    font-size: 1rem;
    color: #2c662d;
    margin-bottom: 0.5rem;
}

.product-info .availability.out-of-stock {
    color: #662d2d;
}

.product-info .description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.specifications-table th,
.specifications-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.specifications-table th {
    background-color: #ff6200;
    color: #fff;
    font-weight: 500;
}

.specifications-table td {
    background-color: #f8f8f8;
}

.back-btn {
    display: inline-block;
    margin-top: 1rem;
}

/* Admin Upload Page Styles */
.admin-upload {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-container h1 {
    font-size: 2rem;
    color: #ff6200;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6200;
    box-shadow: 0 0 5px rgba(255,98,0,0.3);
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-container img,
.preview-container video {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer Styles */
.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background-color: #2c2c2c;
    color: #fff;
    flex-wrap: wrap;
}

.footer-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-container ul {
    list-style: none;
    padding: 0;
}

.footer-container ul li {
    margin-bottom: 0.5rem;
}

.footer-container ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-container ul li a:hover {
    color: #ff6200;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    background-color: #1a1a1a;
    color: #fff;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-button img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.whatsapp-text {
    font-size: 1rem;
    font-weight: 500;
}

.whatsapp-button:hover {
    background-color: #20b354;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .user-actions {
        justify-content: center;
    }
    .filter-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form, .search-form {
        width: 100%;
        justify-content: space-between;
    }
    .product-details-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    .user-actions {
        flex-direction: column;
    }
    .filter-form .form-group, .search-form .form-group {
        min-width: 120px;
    }
    .search-form input[type="text"] {
        min-width: 150px;
    }
    .products-container {
        padding: 1rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .filter-form, .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form .form-group, .search-form .form-group {
        width: 100%;
    }
    .filter-form select, .search-form input[type="text"] {
        font-size: 0.9rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card h3 {
        font-size: 1rem;
    }
    .product-card .price {
        font-size: 0.9rem;
    }
    .product-card .rating {
        font-size: 0.8rem;
    }
}