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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
}

.top-header {
    background: white;
    padding: 8px 4%;
    display: grid;
    grid-template-columns: auto 1fr 170px;
    align-items: center;
    gap: 50px;
    border-bottom: 1px solid #ddd;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo span {
    color: #d4a300;
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}
.logo img {
    height: 150px;
    width: auto;
    display: block;
}

.header-center {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone {
    color: #111;
    font-size: 18px;
    font-weight: bold;
}

.search-area {
    display: flex;
    width: 100%;
}

.search-area input {
    flex: 1;
    height: 46px;
    padding: 0 15px;
    border: 1px solid #cfcfcf;
    outline: none;
    font-size: 15px;
}

.search-area button {
    width: 110px;
    border: 1px solid #1f6cff;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.header-message {
    font-size: 13px;
    color: #222;
    text-align: center;
}

.header-cart {
    width: 150px;
    height: 58px;

    background: white;
    border: 1px solid #d5d5d5;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 12px;
    box-sizing: border-box;

    cursor: pointer;

    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.cart-icon {
    font-size: 19px;
    color: black;
}

.cart-values {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

#headerCartCount {
    font-size: 13px;
    font-weight: bold;
    color: black;
}

#headerCartTotal {
    font-size: 14px;
    font-weight: bold;
    color: black;
}

.header-cart div {
    font-size: 13px;
    margin-bottom: 4px;
}

.header-cart span {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.header-cart strong {
    display: block;
    margin-bottom: 8px;
}

.header-cart button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.main-nav {
    background: #0b5a3f;
    padding: 0 4%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 16px 18px;
    font-weight: bold;
    font-size: 14px;
}

.main-nav a:hover {
    background: #0e704e;
}

.company-name {
    margin-left: auto;
    color: white;
    font-weight: bold;
    padding: 16px 18px;
    font-size: 14px;
}

.hero {
    background: #123e74;
    color: white;
    padding: 70px 5%;
    text-align: center;
}

.hero h2 {
    color: #ffcc00;
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
}

.hero a {
    background: #2da139;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
}

#categorias,
#produtos {
    padding: 50px 5%;
    max-width: 1200px;
    margin: auto;
}

#categorias h2,
#produtos h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0b305e;
}

.categorias {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.categorias button {
    background: white;
    border: none;
    padding: 20px;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 16px;
}

#productsGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 230px));
justify-content: center;
    gap: 20px;
}

.product {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}
.product-image {
    width: 100%;
    height: 145px;
    object-fit: contain;
    display: block;
    margin-bottom: 15px;
}
.product-code {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.product-package,
.product-min {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}

.product-price {
    font-size: 19px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 12px;
}
.product h3 {
    min-height: 42px;
}

.product button {
    margin-top: auto;
}
.product h3 {
    margin-bottom: 10px;
}

.product p {
    margin-bottom: 10px;
}

.product button {
    width: 100%;
    padding: 10px;
    background: #2da139;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.product-buy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.product-buy-row input {
    width: 75px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.product-buy-row button {
    flex: 1;
    width: auto;
    height: 38px;
    margin-top: 0;
    padding: 0 10px;
    border-radius: 4px;
}
.product-code {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.product-package,
.product-min {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}

.product-price {
    font-size: 19px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 12px;
}

footer {
    background: #4a250c;
    color: white;
    padding: 40px 5%;
    text-align: center;
}

#cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    padding: 25px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
    overflow-y: auto;
}

#cart.active {
    right: 0;
}

#cart h2 {
    margin: 20px 0;
}

#cartItems {
    margin-bottom: 20px;
}

.cart-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

@media (max-width: 900px) {
    #productsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #productsGrid {
        grid-template-columns: 1fr;
    }

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

    nav {
        flex-wrap: wrap;
    }
}#cart button {
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.cart-item > div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}
.cart-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product-image {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
}
.cart-item > div button {
    width: 32px;
    height: 32px;
    background: #eeeeee;
    font-size: 14px;
}

.cart-item > button {
    background: #e53935;
    color: white;
    padding: 7px 12px;
    margin-bottom: 10px;
}

#cart > button:first-child {
    background: #0b305e;
    color: white;
    padding: 8px 12px;
}

#cart > button:last-child {
    background: #25d366;
    color: white;
    padding: 13px;
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
    font-size: 15px;
}