@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg-color: #FFF6F8;
    --primary: #F6A6C1;
    --primary-dark: #E0729B;
    --text-color: #4A3540;
    --white: #FFFFFF;
    --error: #FF4D4D;
    
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Auth forms */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(224, 114, 155, 0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

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

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

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #FFE4ED;
    border-radius: 8px;
    font-family: var(--font-body);
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn:active {
    transform: scale(0.98);
}

.alert {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #FFE5E5;
    color: #D8000C;
    border: 1px solid #FFB2B2;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Product Grid & Cards */
.filters-section {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    transition: all 0.3s;
}

.chip:hover, .chip.active {
    background-color: var(--primary);
    color: var(--white);
}

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(224, 114, 155, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(224, 114, 155, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #FFE4ED;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.product-card .btn {
    margin-top: auto;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}
.cart-drawer {
    position: fixed;
    top: 0; right: -400px; width: 100%; max-width: 400px; height: 100%;
    background: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open {
    right: 0;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #FFE4ED;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 { margin: 0; font-size: 1.5rem; }
.cart-close {
    background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-color);
}
.cart-items {
    flex: 1; overflow-y: auto; padding: 20px;
}
.cart-item {
    display: flex; align-items: center; margin-bottom: 20px; position: relative;
    padding-bottom: 20px; border-bottom: 1px solid #FFE4ED;
}
.cart-item img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 10px; margin-right: 15px;
}
.cart-item-info h4 { margin: 0 0 5px 0; font-size: 1rem; }
.cart-item-info p { margin: 0 0 10px 0; color: var(--primary-dark); font-weight: 600; }
.cart-qty-controls {
    display: flex; align-items: center; gap: 10px;
}
.cart-qty-btn {
    background: #FFF6F8; border: 1px solid var(--primary); color: var(--primary-dark);
    width: 25px; height: 25px; border-radius: 50%; cursor: pointer; font-weight: bold;
}
.cart-qty-controls input {
    width: 30px; text-align: center; border: none; font-family: var(--font-body); font-weight: bold;
}
.cart-remove-btn {
    position: absolute; top: 0; right: 0; background: none; border: none; color: #aaa;
    font-size: 1.5rem; cursor: pointer;
}
.cart-remove-btn:hover { color: var(--error); }
.cart-footer {
    padding: 20px; border-top: 1px solid #FFE4ED; background: #fafafa;
}
.cart-total {
    display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px;
}
.cart-badge {
    background: var(--primary-dark); color: white; border-radius: 50%;
    padding: 2px 6px; font-size: 0.8rem; vertical-align: top; margin-left: 5px;
}
