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

:root {
    --primary: #f85c70;
    --primary-dark: #e04559;
    --bg-color: #fbfbfd;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-radius: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(248, 92, 112, 0.15);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), #ffa372);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Category & Product Grid */
.category-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background-color: #f1f2f6; 
}

.category-title {
    padding: 1rem 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

/* Products */
.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border: 1px solid rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f1f2f6;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.badge {
    display: inline-block;
    background: #ffecb3;
    color: #f39c12;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* Sections */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

/* Detail Page */
.detail-img-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
    border-radius: calc(var(--border-radius) * 1.5);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.detail-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.detail-info {
    text-align: center;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-price {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* General Buttons */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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