/* Lupi Auto Peças - Public Site Custom Styles */

:root {
    --brand-primary: #0059c6; /* Vibrant Royal Blue (from logo) */
    --brand-dark: #111827; /* Dark Slate / Black (from logo text) */
    --accent-color: #0059c6; /* Accent color is Royal Blue */
    --accent-hover: #0047a0; /* Darker Royal Blue */
    --whatsapp-green: #25d366;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #374151;
    background-color: #f9fafb;
}

/* Header & Topbar */
.topbar {
    background-color: var(--brand-dark);
    font-size: 0.875rem;
}

.topbar a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s;
}

.topbar a:hover {
    color: var(--brand-primary);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--brand-primary);
}

.nav-link {
    font-weight: 500;
    color: #f3f4f6 !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1f2937 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 89, 198, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Buttons */
.btn-accent {
    background-color: var(--brand-primary);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 89, 198, 0.35);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Category Badge Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background-color: #f3f4f6;
    padding: 15px 0;
    border-y: 1px solid #e5e7eb;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-badge {
    display: inline-block;
    padding: 8px 18px;
    margin: 0 10px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.marquee-badge:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    transform: scale(1.05);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Value Props / Info Cards */
.value-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--brand-primary);
}

.value-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 89, 198, 0.08);
    border-color: var(--brand-primary);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background-color: #f3f4f6;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--brand-primary);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
}

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

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Category grid on homepage */
.category-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--brand-dark);
    display: block;
    height: 100%;
}

.category-box:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0047a0 100%);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 89, 198, 0.15);
}

.category-box i {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.category-box:hover i {
    color: white;
    transform: scale(1.1);
}

/* Sidebar filter (Catalog) */
.filter-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.filter-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-link:hover,
.filter-link.active {
    background-color: #f3f4f6;
    color: var(--brand-primary);
    font-weight: 600;
}

.filter-link.active {
    border-left: 4px solid var(--brand-primary);
}

/* Footer */
footer {
    background-color: var(--brand-dark);
    color: #9ca3af;
}

footer h5 {
    color: white;
    font-weight: 700;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand-primary);
}

/* Floating Budget Button */
.btn-floating-budget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0072ff 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 89, 198, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-floating-budget:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 12px 38px rgba(0, 89, 198, 0.5);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-floating-budget .badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


/* Budget Offcanvas Item Styles */
.budget-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.budget-item:hover {
    border-color: var(--brand-primary);
}

.budget-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    background-color: #f3f4f6;
}

.budget-item-info {
    flex-grow: 1;
}

.budget-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--brand-dark);
}

.budget-item-qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.budget-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s;
}

.budget-qty-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.budget-qty-val {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 20px;
    text-align: center;
}

.budget-item-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.1s;
}

.budget-item-remove:hover {
    color: #b91c1c;
}

/* Hero Slideshow Background */
.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-slide-image-clean {
    z-index: 1;
}

.hero-slide-image-blurred {
    z-index: 2;
    filter: blur(16px);
    /* Desfoque da direita para a esquerda: visivel à esquerda (100% de mask), invisivel à direita */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0) 80%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0) 80%);
}

.hero-slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Camada de sombra/overlay para o texto do lado esquerdo continuar legível */
    background: linear-gradient(90deg, 
        rgba(17, 24, 37, 0.95) 0%, 
        rgba(17, 24, 37, 0.8) 35%, 
        rgba(17, 24, 37, 0.4) 65%, 
        rgba(17, 24, 37, 0.2) 100%
    );
    z-index: 3;
    pointer-events: none;
}


