:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --primary: #2563eb;
  --text: #111827;
  --subtext: #6b7280;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: #111827;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.cart {
    font-size: 20px;
    text-decoration: none;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
}

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

.hero p {
    color: #6b7280;
}

/* PRODUTOS */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.05);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.card p {
    color: #2563eb;
    font-weight: bold;
}

.card button {
    margin-top: 10px;
    padding: 10px;

    border: none;
    border-radius: 8px;

    background: #2563eb;
    color: white;

    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background: #1d4ed8;
}
/* CONTAINER */
.cart-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* ITEM */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: white;
    padding: 15px;
    border-radius: 10px;

    margin-bottom: 15px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-item img {
    width: 80px;
    border-radius: 8px;
}

/* INFO */
.cart-item .info {
    flex: 1;
    margin-left: 15px;
}

/* BOTÃO */
.cart-item button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* RESUMO */
.cart-summary {
    margin-top: 30px;
    text-align: right;
}

.checkout {
    margin-top: 10px;
    padding: 12px 20px;

    background: #10b981;
    color: white;

    border: none;
    border-radius: 8px;

    cursor: pointer;
}
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: #111827;
    color: white;

    padding: 12px 20px;
    border-radius: 8px;

    opacity: 0;
    pointer-events: none;

    transform: translateY(20px);
    transition: 0.3s;
}

/* quando ativo */
#toast.show {
    opacity: 1;
    transform: translateY(0);
}
.cart {
    position: relative;
    font-size: 22px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;

    background: #ef4444;
    color: white;

    font-size: 12px;
    font-weight: bold;

    padding: 3px 6px;
    border-radius: 50%;
}