/* Paleta de Cores e Definições de Estilo Globais */
:root {
    --primary-color: #1b1464;
    --secondary-color: #2e268a;
    --accent-color: #4a3df5;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Barra Superior */
.top-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cabeçalho Principal */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo .accent {
    color: var(--accent-color);
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--white);
}

.search-bar select {
    border: none;
    background-color: var(--bg-light);
    padding: 0 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
}

.search-bar input {
    border: none;
    padding: 10px 15px;
    flex: 1;
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-action {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background-color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 30px;
    transition: background-color 0.2s;
}

.cart-action:hover {
    background-color: var(--border-color);
}

.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

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

.cart-text {
    display: flex;
    flex-direction: column;
}

.cart-text .label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.cart-text .value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Menu de Navegação */
.main-nav {
    background-color: var(--primary-color);
}

.nav-content {
    display: flex;
}

.nav-links {
    display: flex;
    width: 100%;
}

.nav-links li {
    flex: 1;
    text-align: center;
}

.nav-links li a {
    display: block;
    padding: 15px 10px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: var(--secondary-color);
}

/* Banner de Destaque (Hero) */
.hero-section {
    margin-top: 25px;
    margin-bottom: 25px;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 12px;
    padding: 60px;
    color: var(--white);
}

.hero-text {
    max-width: 550px;
}

.hero-text .badge {
    background-color: #ffc107;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

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

.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    background-color: var(--bg-light);
}

/* Blocos de Vantagens */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-info h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.feature-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Vitrina de Artigos */
.products-section {
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-title p {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-image-wrapper {
    position: relative;
    background-color: #eaedf2;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-details h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-details .description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    height: 36px;
    overflow: hidden;
}

.product-price-box {
    margin-top: auto;
    margin-bottom: 15px;
}

.product-price-box .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-to-cart-btn {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: var(--border-color);
}

.buy-direct-btn {
    background-color: var(--whatsapp-green);
    color: var(--white);
    border: none;
    padding: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.buy-direct-btn:hover {
    background-color: var(--whatsapp-dark);
}

/* Banner Informativo */
.info-banner-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.info-banner {
    padding: 30px;
    border-radius: 8px;
    color: var(--white);
}

.info-banner.secure {
    background-color: var(--secondary-color);
}

.info-banner.help {
    background-color: var(--accent-color);
}

.info-banner h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.info-banner p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Rodapé */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding-top: 45px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.brand-info h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.brand-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 400px;
}

.links-info h3, .contact-info h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.links-info ul li {
    margin-bottom: 8px;
}

.links-info ul li a {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.links-info ul li a:hover {
    color: var(--accent-color);
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-bottom {
    background-color: #eaedf2;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Interface do Carrinho Lateral */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}

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

.empty-cart-text {
    text-align: center;
    color: var(--text-light);
    margin-top: 40px;
    font-size: 0.95rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-info .item-cat {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.cart-item-info .item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.remove-item-btn:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 20px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.digital-warning-box {
    background-color: #fffaf0;
    border-left: 4px solid #dd6b20;
    padding: 12px;
    font-size: 0.8rem;
    color: #7b341e;
    margin-bottom: 15px;
    border-radius: 4px;
    line-height: 1.4;
}

.checkout-whatsapp-btn {
    width: 100%;
    background-color: var(--whatsapp-green);
    color: var(--white);
    border: none;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-whatsapp-btn:hover {
    background-color: var(--whatsapp-dark);
}

/* Responsividade Básica */
@media (max-width: 900px) {
    .features-section, .info-banner-section {
        grid-template-columns: 1fr;
    }
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* CORRECÇÃO DO LOGÓTIPO NA LOJA PÚBLICA */
#logo-container, #footer-logo-container {
    display: flex;
    align-items: center;
    max-height: 50px;
    max-width: 250px;
    overflow: hidden;
}

#logo-container img, #footer-logo-container img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}