:root {
    /* Paleta Kubanza - Cores Vivas */
    --primary: #0A0E27;
    --primary-light: #1A1F3A;
    --orange: #FF5722;
    --orange-hover: #E64A19;
    --orange-light: #FF7043;
    --blue: #5B4ED9;
    --blue-light: #7B6FE8;
    --blue-bg: rgba(91, 78, 217, 0.08);

    /* Neutros */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #E5E5E5;
    --border-light: #F5F5F5;
    --surface: #FFFFFF;
    --surface-elevated: #FAFAFA;
    --background: #FFFFFF;

    /* Estados */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Gradientes Kubanza */
    --gradient-orange: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    --gradient-blue: linear-gradient(135deg, #5B4ED9 0%, #7B6FE8 100%);
    --gradient-mixed: linear-gradient(135deg, #FF5722 0%, #5B4ED9 100%);

    /* Tipografia */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espaçamento Sistema 8pt */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;
    --space-8: 8rem;

    /* Sombras Suaves (Etsy-style) */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px -6px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    line-height: 1.75;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }
}

/* Header Etsy-inspired */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-orange);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo span {
    color: var(--orange);
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
}

nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

nav a:hover,
nav a.active {
    color: var(--orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Buttons Kubanza Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
}

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

.btn-outline:hover {
    background: var(--orange);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(72px + var(--space-7)) 0 var(--space-7);
    background: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 78, 217, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Product Grid Etsy-inspired */
.products-section {
    padding: var(--space-7) 0;
    background: var(--surface-elevated);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-header h2 {
    margin-bottom: var(--space-3);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card Etsy Style */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.product-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    padding: 0.375rem 0.875rem;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    border: 1px solid var(--border-light);
}

.product-image {
    aspect-ratio: 4/3;
    background: var(--surface-elevated);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.product-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    flex: 1;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.02em;
}

.product-price-old {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.cart-icon:hover {
    background: var(--white);
    border-color: var(--orange);
    color: var(--orange);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--orange);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.category-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: var(--space-7) 0 var(--space-4);
    margin-top: var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-col h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-3);
    font-weight: 700;
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-2);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: var(--space-3);
    }

    .hero {
        padding: calc(72px + var(--space-5)) 0 var(--space-5);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .products-section {
        padding: var(--space-5) 0;
    }
}