/* Header Styling */
.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-top: -4px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.75em;
    border-radius: 30px;
    font-weight: 600;
}

/* Hero Carousel Slider Customizations */
.hero-carousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.hero-banner-slide {
    min-height: 280px;
    max-height: 380px;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.hero-banner-slide::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(29, 53, 87, 0.92) 0%, rgba(29, 53, 87, 0.65) 60%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: var(--border-radius);
    z-index: 1;
}

.hero-banner-slide .slide-content {
    position: relative;
    z-index: 2;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 28px;
    border-radius: 10px;
    opacity: 1;
    background-color: var(--primary-color);
}

.carousel-control-prev, .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: var(--primary-color);
    opacity: 1;
}

/* Categories Section & Sticky Wrapper Fix */
.categories-sticky-container {
    position: sticky;
    top: var(--store-header-height, 68px);
    z-index: 100;
    background-color: #f4f6f8;
    padding-top: 10px;
    padding-bottom: 12px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

.categories-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 5px 8px 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.category-btn {
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #4a5568;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.product-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #f1f1f1;
}

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

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

.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #1a202c;
}

.product-desc {
    font-size: 0.85rem;
    color: #718096;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    min-height: 2.5em;
}

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

.btn-add {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-add:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: scale(1.03);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--accent-green);
    color: white;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Cart Offcanvas */
.cart-item-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.1s ease;
}

.qty-btn:hover {
    background: #edf2f7;
}

/* Micro Toast Animation */
.toast-container {
    z-index: 1090;
}

/* Section Titles */
.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Ajustes incrementais mobile-first: safe-area, toque e teclado virtual. */
html { scroll-padding-top: calc(var(--store-header-height, 90px) + 60px); }
.order-review { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-card, .flex-grow-1 { min-width: 0; }
.product-title, footer p { overflow-wrap: anywhere; }
.qty-btn { min-width: 44px; min-height: 44px; }
.modal, .offcanvas { z-index: 1060; }
.offcanvas-body { overflow-y: auto; }
.offcanvas-body > .flex-grow-1 { flex-shrink: 0; }
.offcanvas-body > .border-top { flex-shrink: 0; padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important; }
:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.bg-danger { background-color: var(--primary-color) !important; }
.text-danger { color: var(--primary-color) !important; }
.btn-danger, .btn-add { --bs-btn-bg: var(--primary-color); --bs-btn-border-color: var(--primary-color); --bs-btn-hover-bg: var(--primary-hover); --bs-btn-hover-border-color: var(--primary-hover); }
.btn-outline-danger { --bs-btn-color: var(--primary-color); --bs-btn-border-color: var(--primary-color); --bs-btn-active-bg: var(--primary-color); --bs-btn-active-border-color: var(--primary-color); --bs-btn-hover-bg: var(--primary-color); --bs-btn-hover-border-color: var(--primary-color); }
#mobile-nav { display:none; }

/* Dimensões da estrutura e imagens, extraídas do HTML. */
.store-header { z-index:1050; }
.store-logo-placeholder { width:40px; height:40px; }
.store-hours { font-size:.75rem; }
#clear-search { display:none; }
#cartOffcanvas { width:420px; max-width:100vw; }
.change-amount-group { max-width:200px; }
.featured-item-img { width:90px; height:90px; object-fit:cover; border-radius:12px; }

/* Logo fornecida: imagem inteira, sem recorte ou distorção. */
.store-logo-image {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
}
.navbar-brand { min-width: 0; }
.store-logo-placeholder { flex-shrink: 0; }
