/* ============================================
   CONSULTA PREÇOS - Frontend Público
   Paleta: Laranja e Preto
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --orange-50: #FFF7ED;
    --orange-100: #FFEDD5;
    --orange-200: #FED7AA;
    --orange-300: #FDBA74;
    --orange-400: #FB923C;
    --orange-500: #F97316;
    --orange-600: #EA580C;
    --orange-700: #C2410C;
    --orange-800: #9A3412;
    --orange-900: #7C2D12;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-medium: #2D2D2D;
    --gray-dark: #404040;
    --gray: #737373;
    --gray-light: #A3A3A3;
    --gray-lighter: #D4D4D4;
    --white: #FAFAFA;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ---- HEADER / LOGO ---- */
.header {
    padding: 40px 20px 20px;
    text-align: center;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.logo-container img {
    max-height: 80px;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.3));
    transition: var(--transition);
}

.logo-container img:hover {
    filter: drop-shadow(0 6px 20px rgba(249, 115, 22, 0.5));
    transform: scale(1.02);
}

.site-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

.site-description {
    color: var(--gray-light);
    font-size: 1.05rem;
    font-weight: 300;
    margin-top: 6px;
}

/* ---- SEARCH SECTION ---- */
.search-section {
    width: 100%;
    max-width: 720px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--black-light);
    border: 2px solid var(--black-medium);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
}

.search-box:focus-within {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15), var(--shadow-lg);
}

.search-box .search-icon {
    position: absolute;
    left: 20px;
    color: var(--gray);
    font-size: 1.2rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-box:focus-within .search-icon {
    color: var(--orange-500);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 18px 20px 18px 52px;
    font-size: 1.1rem;
    color: var(--white);
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box .btn-search {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border: none;
    color: white;
    padding: 12px 28px;
    margin: 6px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.search-box .btn-clear-search {
    width: 40px;
    height: 40px;
    margin: 6px 0 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-light);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box .btn-clear-search.visible {
    display: inline-flex;
}

.search-box .btn-clear-search:hover {
    border-color: rgba(249, 115, 22, 0.45);
    color: var(--orange-400);
    background: rgba(249, 115, 22, 0.12);
}

.search-box .btn-search:hover {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
    transform: scale(1.03);
}

/* ---- SEARCH PREVIEW DROPDOWN ---- */
.search-preview {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.search-preview.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--transition);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item:hover {
    background: rgba(249, 115, 22, 0.08);
}

.preview-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.preview-item-name {
    flex: 1;
    font-weight: 500;
    color: var(--white);
    font-size: 0.95rem;
    min-width: 0;
    padding-right: 12px;
}

.preview-item-name mark {
    background: rgba(249, 115, 22, 0.25);
    color: var(--orange-400);
    border-radius: 3px;
    padding: 0 2px;
}

.preview-item-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
    min-width: 172px;
}

.price-original {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.price-current {
    color: var(--orange-400);
    font-weight: 700;
}

.price-promo {
    color: #22C55E;
    font-weight: 700;
}

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

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #16A34A, #22C55E);
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--gray);
}

.preview-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ---- FILTERS ---- */
.filters-section {
    width: 100%;
    max-width: 720px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--black-medium);
    background: var(--black-light);
    color: var(--gray-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    user-select: none;
}

.filter-chip:hover {
    border-color: var(--orange-500);
    color: var(--orange-400);
    background: rgba(249, 115, 22, 0.08);
}

.filter-chip.active {
    border-color: var(--orange-500);
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange-400);
}

.filter-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.filter-chip-promo {
    border-color: rgba(34, 197, 94, 0.3);
}

.filter-chip-promo:hover,
.filter-chip-promo.active {
    border-color: #22C55E;
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
}

/* ---- RESULTS SECTION ---- */
.results-section {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px 60px;
}

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

.results-count {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.results-count strong {
    color: var(--orange-400);
}

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

/* ---- PRODUCT CARD ---- */
.product-card {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--orange-500);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(249,115,22,0.1);
}

.product-card .card-promo-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #16A34A, #22C55E);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Card meta row - categoria + badge aro */
.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.product-card .card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.product-card .card-category .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.product-card .card-category span {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.4;
    flex: 1;
}

.product-card .card-price-area {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card .card-price-old {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-card .card-price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--orange-400);
}

.product-card.is-promo .card-price-current {
    color: #22C55E;
}

.product-card .card-price-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ---- FOOTER ---- */
.footer {
    margin-top: auto;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--black-medium);
    color: var(--gray);
    font-size: 0.85rem;
}

.footer a {
    color: var(--orange-500);
    text-decoration: none;
}

/* ---- LOADING ---- */
.results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 180px;
    padding: 32px 20px;
    text-align: center;
    color: var(--gray-light);
}

.results-loading-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---- NO RESULTS ---- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 8px;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--black-medium);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .search-box input {
        padding: 14px 16px 14px 46px;
        font-size: 1rem;
    }

    .search-box .btn-search {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .search-box .btn-search span {
        display: none;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 24px 16px 12px;
    }

    .logo-container img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.6rem;
    }

    .filter-chip {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .results-loading {
        min-height: 150px;
        padding: 24px 16px;
    }

    .loading-spinner {
        width: 48px;
        height: 48px;
    }
}

/* ---- ANIMAÇÕES E ESTILOS DE VALIDAÇÃO ---- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-error {
    animation: shake 0.4s ease-in-out;
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--black-medium);
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--white);
}

.no-results p {
    color: var(--gray);
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- PRODUCT CARD IMAGES ---- */
.card-image-wrapper {
    width: 100%;
    height: 200px;
    background: var(--black-medium);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
}

.card-image-wrapper:hover {
    border-color: var(--orange-500);
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-image-wrapper:hover .card-image {
    transform: scale(1.1);
}

.card-image-fallback {
    background: linear-gradient(135deg, var(--black-medium), var(--gray-dark));
}

.card-icon {
    font-size: 4rem;
    display: block;
    line-height: 1;
}

/* ---- IMAGE MODAL ---- */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--orange-500);
}

.image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.image-modal-emoji {
    font-size: 12rem;
    line-height: 1;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ---- DYNAMIC BACKGROUND EFFECT ---- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 15s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    }
    50% {
        background: radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    }
}

main {
    position: relative;
    z-index: 1;
}

/* ---- LOADING SPINNER ---- */
.loading-spinner {
    display: inline-block;
    width: 56px;
    height: 56px;
    border: 3px solid rgba(249, 115, 22, 0.18);
    border-top-color: var(--orange-500);
    border-right-color: rgba(255, 181, 107, 0.55);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- LAZY LOAD CONTAINER ---- */
.lazy-load-trigger {
    padding: 20px;
    text-align: center;
    color: var(--gray);
}

.lazy-load-trigger.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ---- FADE IN ANIMATION FOR PRODUCTS ---- */
.product-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- FEATURED PRODUCTS SECTION ---- */
.featured-section {
    margin: 30px 0;
    padding: 20px 0;
}

.featured-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--orange-500);
    border-radius: 2px;
}

/* ---- INTERSECTION OBSERVER FADE ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RIM BADGES (Com Aro / Sem Aro) ---- */
.rim-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    line-height: 1;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

/* Efeito shimmer no badge */
.rim-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: rimShimmer 3s ease-in-out infinite;
}

@keyframes rimShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* No card de produto */
.product-card .rim-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    margin-left: auto;
    animation: rimBadgeIn 0.5s ease-out;
}

@keyframes rimBadgeIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

/* No preview de busca */
.preview-item .rim-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    margin-left: 0;
    order: 0;
}

.preview-item .price-current,
.preview-item .price-promo {
    order: 1;
    min-width: 74px;
    text-align: right;
}

.rim-with {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 12px rgba(239, 68, 68, 0.15);
    animation: rimPulseRed 2.5s ease-in-out infinite;
}

@keyframes rimPulseRed {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 12px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.3); }
}

.rim-without {
    background: linear-gradient(135deg, #525252, #404040);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 8px rgba(82, 82, 82, 0.15);
    animation: rimPulseGray 2.5s ease-in-out infinite;
}

@keyframes rimPulseGray {
    0%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 8px rgba(82, 82, 82, 0.15); }
    50% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 16px rgba(82, 82, 82, 0.25); }
}

/* ---- BOTÃO ADICIONAR AO CARRINHO ---- */
.card-add-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.3s ease;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18);
}

.card-add-cart-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.card-add-cart-button:active {
    transform: translateY(0);
}

.card-add-cart-button.added {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18);
}

@media (max-width: 480px) {
    .card-add-cart-button {
        min-height: 42px;
        padding: 11px 14px;
        font-size: 0.9rem;
    }
}

/* ---- CARRINHO FLUTUANTE ---- */
.cart-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4), 0 0 0 0 rgba(249, 115, 22, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

body.cart-footer-visible .cart-floating-btn {
    bottom: 86px;
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
}

.cart-floating-btn.cart-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.25); }
    50% { transform: scale(0.95); }
    70% { transform: scale(1.1); }
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ---- CART TOOLTIP ---- */
.cart-tooltip {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    max-height: 480px;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.1);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: tooltipSlideUp 0.25s ease;
}

body.cart-footer-visible .cart-tooltip {
    bottom: 158px;
}

.cart-tooltip.active {
    display: flex;
}

@keyframes tooltipSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--black-medium);
    background: rgba(249, 115, 22, 0.05);
}

.cart-tooltip-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange-400);
}

.cart-tooltip-close {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.cart-tooltip-close:hover {
    color: var(--white);
}

.cart-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.cart-empty p {
    margin-top: 8px;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.cart-items-list::-webkit-scrollbar {
    width: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: var(--black-medium);
    border-radius: 2px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 10px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.78rem;
    color: var(--orange-400);
    font-weight: 600;
    margin-top: 2px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--black-medium);
    background: var(--black);
    color: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    border-color: var(--orange-500);
    color: var(--orange-400);
    background: rgba(249, 115, 22, 0.1);
}

.cart-qty-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    min-width: 24px;
    text-align: center;
}

.cart-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 4px;
}

.cart-remove-btn:hover {
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--black-medium);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--gray-light);
}

.cart-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

.cart-order-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.3);
}

.cart-order-btn:active {
    transform: translateY(0);
}

/* ---- CART RESPONSIVE ---- */
@media (max-width: 480px) {
    .cart-floating-btn {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }

    body.cart-footer-visible .cart-floating-btn {
        bottom: 74px;
    }

    .cart-floating-btn svg {
        width: 22px;
        height: 22px;
    }

    .cart-tooltip {
        left: 12px;
        right: 12px;
        bottom: 84px;
        width: auto;
        max-height: 60vh;
    }

    body.cart-footer-visible .cart-tooltip {
        bottom: 140px;
    }

    .cart-item {
        padding: 8px 14px;
    }

    .cart-item-name {
        font-size: 0.8rem;
    }
}
