:root {
    --primary: #ff477e;
    --secondary: #ff7096;
    --accent: #ff85a1;
    --bg: #fff5f7;
    --text: #2d3436;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(255, 71, 126, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #ff477e 0%, #ff85a1 100%);
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Categories Bar */
.categories-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.category-pill {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

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

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

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

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.buy-btn {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.3s;
}

.buy-btn:hover {
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(255, 71, 126, 0.4);
}

/* Admin Styles */
.admin-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 40px auto;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .card-img-wrapper { height: 180px; }
    .price { font-size: 1.1rem; }
}
