/* Ecommerce Page - Clean & Modern Layout */

/* General Section Styling */
.ecom-main-section {
    background-color: #f9fafb;
}

/* Hero Banner */
.ecom-hero {
    border-bottom: 1px solid #e5e7eb;
    padding: 3rem 0;
    text-align: center;
}
/* .ecom-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}
.ecom-hero-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
} */

/* Filters Sidebar */
.ecom-filters {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    position: sticky;
    top: 6rem; /* Adjust based on header height */
    align-self: flex-start; /* Prevents stretching */
}

.ecom-filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.ecom-filter-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}
.ecom-filter-group select,
.ecom-filter-group input[type="number"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    background-color: #f9fafb;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ecom-filter-group select:focus,
.ecom-filter-group input[type="number"]:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Product Grid & Cards */
.ecom-product-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}


.ecom-product-image-wrapper {
    background-color: #f3f4f6; /* Neutral background for the image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 200px;
}
.ecom-product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.ecom-product-details {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes the card content fill the space */
}
.ecom-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}
.ecom-product-brand {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.ecom-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #242424; /* A nice green for price */
    /* margin-top: auto; Pushes price and button to the bottom */
    padding-top: 1rem;
}
.ecom-product-details .cta-button {
    margin-top: 0.75rem;
    width: 100%;
    background-color: #16a34a; /* Green for add to cart */
}


/* Cart Sidebar */
.ecom-cart {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
}
.ecom-cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
/* .ecom-cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
} */
.ecom-cart-item img {
    width: 60px;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}
.ecom-cart-item-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
}
.ecom-cart-item-price {
    font-size: 0.875rem;
    color: #6b7280;
}
.ecom-cart-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 600;
}
.ecom-cart .cta-button {
    width: 100%;
    margin-top: 1.5rem;
}

/* Features Section */
.ecom-features-section {
    background-color: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid #e5e7eb;
}
.ecom-feature-item {
    text-align: center;
}
.ecom-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #e0f2fe; /* Light blue background */
    color: #0284c7; /* Blue icon */
    font-size: 2rem;
    margin-bottom: 1rem;
}
.ecom-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}
.ecom-feature-desc {
    font-size: 1rem;
    color: #4b5563;
} 