/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f2; /* Light beige background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo i {
    font-size: 2.5rem;
    margin-right: 10px;
    color: #ffcc00; /* Bee yellow */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50; /* Dark blue */
}

.logo-text span:last-child {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}

.search-bar button {
    background-color: #ffcc00;
    border: 2px solid #ffcc00;
    border-radius: 0 25px 25px 0;
    padding: 10px 20px;
    cursor: pointer;
    color: #2c3e50;
}

.user-actions {
    display: flex;
    gap: 20px;
}

.user-actions a {
    color: #2c3e50;
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    overflow-x: auto;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 0;
}

.nav-menu a.active {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

.nav-menu a:hover {
    color: #ffcc00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #ffcc00;
    color: #2c3e50;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ffcc00;
    color: #ffcc00;
}

.btn-outline:hover {
    background-color: #ffcc00;
    color: #2c3e50;
}

/* Sections */
main {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ffcc00;
    margin: 10px auto;
}

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.category-img {
    background-color: #fff9e6;
    padding: 30px;
}

.category-img i {
    font-size: 3rem;
    color: #ffcc00;
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img {
    position: relative;
    height: 200px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-img i {
    font-size: 4rem;
    color: #ddd;
}

.personalize-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffcc00;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 15px 0;
}

.product-price-sale {
            font-size: 1.5rem;
            color: var(--light-grey);
            text-decoration: line-through;
            margin-bottom: 10px;
        }

.sale-price {
    color: var(--red);
    font-weight: bold;
    font-size: 2.5rem;
    margin-left: 15px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-details {
    flex: 1;
    background-color: #3498db;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

.btn-cart {
    flex: 1;
    background-color: #2ecc71;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

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

.personalization-preview {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.preview-text {
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    background-color: white;
    border: 1px dashed #ddd;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ffcc00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .categories,
    .products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
/* Products Page Specific Styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.products-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.products-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.category-filter {
    list-style: none;
}

.category-filter li {
    margin-bottom: 8px;
}

.category-filter a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-filter a:hover,
.category-filter a.active {
    background-color: #ffcc00;
    color: #2c3e50;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.price-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.price-inputs span {
    color: #7f8c8d;
}

.personalization-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.personalization-filter a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.personalization-filter a:hover,
.personalization-filter a.active {
    background-color: #ffcc00;
    color: #2c3e50;
    border-color: #ffcc00;
}

/* Products Main Area */
.products-main {
    display: flex;
    flex-direction: column;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 1rem;
}

.results-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-category {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0;
    height: 45px;
    overflow: hidden;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
    margin-right: 10px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e74c3c;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-products i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.no-products a {
    color: #ffcc00;
    text-decoration: none;
}

.no-products a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #ffcc00;
    color: #2c3e50;
    border-color: #ffcc00;
}

.pagination .ellipsis {
    border: none;
    padding: 8px 5px;
}

/* Responsive Design for Products Page */
@media (max-width: 992px) {
    .products-page {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}