:root {
    --primary: #4b2c0d; /* Marrom da Logo */
    --primary-hover: #351f09;
    --accent: #c59d33; /* Dourado da Logo */
    --accent-hover: #ad8a2c;
    --bg-color: #fdfaf5; /* Fundo creme suave */
    --card-bg: #ffffff;
    --text-main: #2d1a08; /* Marrom profundo para texto */
    --text-muted: #6b5a4b;
    --success: #16a34a;
    --danger: #dc2626;
    --border: #ece1d2;
    --shadow: 0 10px 25px -5px rgba(75, 44, 13, 0.12), 0 8px 10px -6px rgba(75, 44, 13, 0.07);
    --border-radius: 16px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 80px; /* space for mobile floating cart */
}

/* Header */
.store-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #633a11 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: var(--shadow);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.store-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.store-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.store-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.store-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #e5e7eb;
    color: #374151;
}
.status-badge.open {
    background: #dcfce7;
    color: #166534;
}
.status-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

/* Closed Banner */
.closed-banner {
    background-color: #fef2f2;
    color: #b91c1c;
    text-align: center;
    padding: 12px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: var(--border-radius);
    border: 1px solid #fecaca;
    font-weight: 600;
}
.hidden {
    display: none !important;
}

/* Container Layout */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* Menu Section */
.category-block {
    margin-bottom: 32px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: transform 0.2s;
    height: 100%;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    margin-bottom: 12px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
}

.btn-qty-card {
    background: transparent;
    border: none;
    color: white;
    width: 36px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty-card:hover {
    background: rgba(255,255,255,0.1);
}

.card-qty-value {
    font-weight: 700;
    font-size: 1rem;
}

/* Cart Section */
.cart-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

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

.cart-badge {
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.empty-cart-msg {
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    background: #f3f4f6;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main);
}
.btn-qty:hover {
    background: #e5e7eb;
}

.cart-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Checkout Form */
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    padding-top: 10px;
    border-top: 2px dashed #e5e7eb;
}

.checkout-form h3 {
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--accent);
}

.delivery-options {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--success);
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    font-family: inherit;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #15803d;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Mobile Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #633a11 100%);
    color: var(--accent);
    border: none;
    padding: 12px 20px;
    border-radius: 16px;
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(75, 44, 13, 0.3);
    z-index: 100;
    display: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(197, 157, 51, 0.3);
}

.floating-cart:active {
    transform: scale(0.95);
}

.floating-cart-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.floating-cart-icon {
    font-size: 1.5rem;
    background: rgba(197, 157, 51, 0.15);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--accent);
}

.floating-cart-info {
    display: flex;
    flex-direction: column;
}

.floating-cart-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    opacity: 0.9;
}

.floating-cart-details {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

@media (max-width: 767px) {
    .floating-cart {
        display: block;
    }
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.app-version {
    margin-top: 10px;
    opacity: 0.6;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Search Bar */
.search-container {
    margin-top: 25px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#product-search {
    width: 100%;
    padding: 14px 20px;
    padding-right: 50px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
    transition: all 0.3s;
}

#product-search:focus {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.6;
}

/* Category Nav */
.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    gap: 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-item:hover {
    color: var(--accent);
}

.nav-item.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom-color: var(--primary);
}

.nav-item.bold {
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
}

@media (max-width: 767px) {
    .category-nav {
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 20px;
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border);
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}
 / *   A n i m a t i o n s   * / 
 @ k e y f r a m e s   p u l s e - a n i m a t i o n   { 
         0 %   {   t r a n s f o r m :   s c a l e ( 1 ) ;   } 
         5 0 %   {   t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ;   } 
         1 0 0 %   {   t r a n s f o r m :   s c a l e ( 1 ) ;   } 
 } 
 
 . p u l s e   { 
         a n i m a t i o n :   p u l s e - a n i m a t i o n   0 . 3 s   e a s e - i n - o u t ; 
 }  
 