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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-border: #e5e7eb;
    --color-hero-bg: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fdf2f8 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo__icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--color-primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    padding: 10px;
}

.btn--ghost:hover {
    color: var(--color-primary);
    background: #f3f4f6;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    background: var(--color-hero-bg);
    padding: 80px 0 100px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
    height: 320px;
}

.hero__card {
    position: absolute;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__card--1 {
    top: 40px;
    right: 20px;
}

.hero__card--2 {
    bottom: 40px;
    left: 20px;
}

.hero__card-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero__card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--color-surface);
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card__name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.category-card__count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Products */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.25s;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card__link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-card__cart {
    padding: 0 20px 20px;
    margin: 0;
}

.product-card__sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-card__body {
    padding: 20px;
}

.product-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 48px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.feature__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background: var(--color-text);
    color: #9ca3af;
    padding: 48px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer__brand .logo__icon,
.footer__brand .logo__text {
    color: #fff;
}

.footer__copy {
    margin-top: 12px;
    font-size: 0.875rem;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
