:root {
    --primary: #5D3779;
    --primary-dark: #4A2C61;
    --secondary: #26AF8E;
    --secondary-dark: #1E8C72;
    --accent: #E91E63;
    --text: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --bg: #F9F9F9;
    --bg-light: #F2F2F2;
    --border: #EEEEEE;
    --shadow: 0 4px 12px rgba(93, 55, 121, 0.08);
}

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

body {
    font-family: 'DM Sans', 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* HEADER */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.top-bar-slider {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-main {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 48px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    outline: none;
    font-size: 14px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* MENU CATEGORIAS */
.nav-menu {
    border-top: 1px solid var(--border);
    background: var(--white);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-menu ul li a:hover {
    color: var(--primary);
}

/* HERO BANNER */
.hero {
    height: 480px;
    background: linear-gradient(135deg, var(--primary) 0%, #7b4b96 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://www.bellaphytus.com.br/assets/themes/flex/static/images/banner-home-desktop.png') no-repeat right center;
    background-size: contain;
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-family: 'Sora', sans-serif;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* PRODUTOS */
.section-title {
    padding: 60px 0 30px;
    text-align: center;
}

.section-title h2 {
    font-size: 28px;
    color: var(--primary);
    font-family: 'Sora', sans-serif;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-container {
    margin: 10px 0;
}

.price-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.product-stars {
    color: #FFB300;
    font-size: 12px;
    margin-bottom: 5px;
}

.btn-buy {
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-buy:hover {
    background: var(--secondary-dark);
    transform: scale(1.02);
}

/* MINI CART */
.cart-drawer {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 30px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* RODAPÉ */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.7;
    font-size: 14px;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-family: 'Sora', sans-serif;
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer-links ul li a:hover {
    opacity: 1;
}

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

    .hero h1 {
        font-size: 32px;
    }

    .nav-main {
        flex-direction: column;
        gap: 20px;
    }

    .search-bar {
        margin: 0;
        width: 100%;
    }
}