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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--primary);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.logo {
    max-height: 80px;
    max-width: 200px;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
}

.contact-info {
    margin-top: 10px;
}

.phone {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

/* Categories Navigation */
.categories-nav {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories-list {
    display: flex;
    overflow-x: auto;
    padding: 15px 0;
    gap: 10px;
}

.category-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: white;
    color: var(--primary);
}

.product-count {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Main Content */
.main {
    padding: 40px 0;
}

.category-section {
    margin-bottom: 60px;
    display: block;
}

.category-section.hidden {
    display: none;
}

.category-title {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.category-description {
    display: block;
    font-size: 0.6em;
    color: var(--text);
    opacity: 0.8;
    margin-top: 5px;
    font-weight: normal;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.combo-products {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #555;
}

.product-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.address {
    margin-top: 10px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 2em;
    }
    
    .categories-list {
        padding: 10px 0;
    }
    
    .category-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-title {
        font-size: 1.6em;
    }
    
    .main {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.6em;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .category-title {
        font-size: 1.4em;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* ===== HEADER STYLES ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

.main-header {
    background: var(--primary);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.site-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.contact-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-icon {
    font-size: 1.2em;
}

.contact-text {
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* ===== NAVIGATION STYLES ===== */
.main-navigation {
    background: var(--secondary);
    position: sticky;
    top: 89px; /* Altura do header */
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== FOOTER STYLES ===== */
.main-footer {
    background: var(--secondary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.info-icon {
    font-size: 1.1em;
}

.info-text {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-text:hover {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.business-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
}

.day {
    color: rgba(255,255,255,0.8);
}

.time {
    color: white;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.developed-by {
    font-size: 0.9em;
    margin-top: 5px !important;
}

.back-to-top {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .contact-section {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        top: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .site-title {
        font-size: 1.4em;
    }
    
    .logo {
        max-height: 50px;
    }
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

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

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE PREFERENCE ===== */
@media (prefers-color-scheme: dark) {
    /* Estilos automáticos para usuários que preferem dark mode */
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border-radius: 2px;
    }
    
    .product-card {
        border: 2px solid var(--text);
    }
}

/* ===== THEME SUPPORT ===== */
body.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Garantir que as variáveis do tema sejam aplicadas */
.header {
    background: var(--primary);
}

.categories-nav {
    background: var(--secondary);
}

body {
    background-color: var(--background);
    color: var(--text);
}

.product-card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.product-price {
    color: var(--accent);
}

/* Estados de sucesso, erro, etc. */
.status-active {
    color: var(--success);
}

.status-inactive {
    color: var(--error);
}

.btn-primary {
    background: var(--primary);
}

.btn-success {
    background: var(--success);
}

.btn-warning {
    background: var(--warning);
}

.btn-danger {
    background: var(--error);
}

.btn-info {
    background: var(--info);
}