/* styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    background: #f8f8f8;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    color: #e91e63;
    font-weight: bold;
}

.search-bar input {
    padding: 0.5rem;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Auth Page */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.auth-tabs button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.auth-tabs button.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e91e63;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-form button {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.product-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-card button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Cart */
.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-link {
    position: relative;
    display: inline-block;
    color: #333;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #e91e63;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.cart-count.hidden {
    opacity: 0;
}

/* Latest Products Section */
.section {
    padding: 2rem 1rem;
    background: #fff;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #e91e63;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #e91e63;
    display: block;
    margin: 0.5rem auto 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-actions .btn {
    flex: 1;
    margin-right: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background: #e91e63;
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    color: #e91e63;
    border: 2px solid #e91e63;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary:hover {
    background: #d81b60;
}

/* Badge for New Arrival */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e91e63;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 1;
}

/* Rating Stars */
.rating {
    color: gold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card {
        grid-column: span 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-bar input {
        width: 100%;
    }
}