/*
 * AutoTire template custom styles
 * Focus: pneus, pecas e servicos automotivos
 */

:root {
    /* Botao principal: #fd0606 (rgb(253, 6, 6)) -> #5d1314 (rgb(93, 19, 20)) */
    --at-primary: #fd0606;
    --at-primary-dark: #5d1314;
    /* Fundos escuros */
    --at-secondary: #000000;
    /* Texto de banner: #e1f0f8 (rgb(225, 240, 248)) -> #7c8287 (rgb(124, 130, 135)) */
    --at-accent: #e1f0f8;
    --at-surface:  var(--bs-cyan);
    --at-text: #1f2937;
}

body {
    font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--at-text);
    background: var(--bs-white);
    /*background: radial-gradient(circle at top right, #e1f0f8 0%, #a8b0b7 10%, #101112 100%);*/
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.autotire-tag {
    font-family: 'Rajdhani', 'Barlow', sans-serif;
}

.bg-primary,
.badge.bg-primary,
.pagination .page-item.active .page-link {
    background: linear-gradient(120deg, rgb(0, 0, 0) 0%, rgb(18, 18, 18) 100%) !important;
    border-color: #111111 !important;
}

.pagination .page-link:hover {
    background: linear-gradient(120deg, rgb(20, 20, 20) 0%, rgb(60, 5, 5) 100%);
    color: #e1f0f8;
    border-color: #5d1314;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(253, 6, 6, 0.3);
    outline: none;
}

.btn-primary {
    background: linear-gradient(120deg, rgb(253, 6, 6) 0%, rgb(93, 19, 20) 100%) !important;
    border-color: #5d1314 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(120deg, rgb(93, 19, 20) 0%, rgb(253, 6, 6) 100%) !important;
    border-color: #5d1314 !important;
}

.btn-primary:active {
    background: linear-gradient(120deg, rgb(50, 8, 8) 0%, rgb(80, 15, 16) 100%) !important;
    border-color: #380808 !important;
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 2px solid #fd0606;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(253, 6, 6, 0.25) !important;
}

.nav-bar .bg-primary {
    background: linear-gradient(90deg, rgb(0, 0, 0) 0%, rgb(17, 17, 17) 100%) !important;
}

.nav-bar .navbar-toggler[data-bs-target="#allCat"] h4,
.nav-bar .navbar-toggler[data-bs-target="#allCat"] h4 i {
    color: var(--bs-white) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #f4f8ff;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--at-accent) !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.card-header.bg-primary,
.card-header.bg-primary h5,
.card-header.bg-primary .mb-0 {
    color: #ffffff !important;
}

.card-text.text-muted,
.text-muted {
    color: #5b6472 !important;
}

.product-card .card-title a,
.card.h-100 .card-title a {
    color: #1f2937 !important;
}

.product-card .card-title a:hover,
.card.h-100 .card-title a:hover {
    color: #5d1314 !important;
}

.product-card .h5.text-primary,
.card.h-100 .h5.text-primary {
    color: var(--text-primary) !important;
}

.navbar-light .navbar-nav .nav-link:focus-visible {
    outline: 2px solid rgba(253, 6, 6, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--at-accent) !important;
    opacity: 0.88;
}

.autotire-hero-intro {
    position: relative;
    z-index: 1;
}

.autotire-panel,
.autotire-services {
    border-radius: 14px;
    height: 100%;
}

.autotire-panel {
    background: linear-gradient(135deg, rgb(0, 0, 0) 0%, rgb(20, 20, 20) 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.autotire-panel h2 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.8rem;
    background: linear-gradient(120deg, rgb(225, 240, 248) 0%, rgb(124, 130, 135) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.autotire-panel p {
    color: #d9e2f0;
    margin-bottom: 0.8rem;
}

.autotire-tag {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(242, 194, 0, 0.2);
    border: 1px solid rgba(242, 194, 0, 0.8);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.autotire-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.autotire-highlights span {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #eff4ff;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.9rem;
}

.autotire-services {
    background: linear-gradient(120deg, #e1f0f8 0%, #7c8287 100%);
    border: 1px solid var(--bs-white);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.autotire-services .service-item {
    background: #ffffff;
    border: 1px solid #f2df9a;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    color: #2b3441;
}

.autotire-services .service-item i {
    color: #cf8600;
}

.autotire-services .service-item:hover {
    border-color: #fd0606;
    box-shadow: 0 4px 14px rgba(253, 6, 6, 0.14);
    transform: translateX(3px);
    transition: all 0.18s ease;
    color: #1a1a1a;
}

.autotire-tools .autotire-tool-card {
    border-radius: 14px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #dbe4f1;
    box-shadow: 0 10px 28px rgba(15, 37, 72, 0.08);
}

.autotire-tools .autotire-tool-card h3 {
    color: #0d2240;
    margin-bottom: 0.35rem;
}

.autotire-tools .autotire-tool-card p {
    color: #5a6575;
    margin-bottom: 0.9rem;
}

.autotire-tools .service-cta {
    background: linear-gradient(145deg, rgb(0, 0, 0) 0%, rgb(24, 24, 24) 100%);
    border: none;
}

.autotire-tools .service-cta h3,
.autotire-tools .service-cta p {
    color: #ffffff;
}

.autotire-cta-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.autotire-cta-actions .btn-success {
    background: #18b566;
    border-color: #18b566;
}

.autotire-cta-actions .btn-success:hover,
.autotire-cta-actions .btn-success:focus {
    background: #129e57;
    border-color: #129e57;
    box-shadow: 0 0 0 3px rgba(24, 181, 102, 0.3) !important;
}

.autotire-cta-actions .btn-success:active {
    background: #0d7a42;
    border-color: #0d7a42;
}

.autotire-cta-actions .btn-outline-dark {
    border-color: #e1f0f8;
    color: #e1f0f8;
}

.autotire-cta-actions .btn-outline-dark:hover {
    background: linear-gradient(120deg, rgb(225, 240, 248) 0%, rgb(124, 130, 135) 100%);
    color: #000000;
}

.autotire-cta-actions .btn-outline-dark:focus,
.autotire-cta-actions .btn-outline-dark:focus-visible {
    background: linear-gradient(120deg, rgb(225, 240, 248) 0%, rgb(124, 130, 135) 100%);
    color: #000000;
    box-shadow: 0 0 0 3px rgba(225, 240, 248, 0.35) !important;
    outline: none;
}

.autotire-promos .promo-banner {
    border-radius: 14px;
    padding: 1.2rem;
    min-height: 190px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(15, 37, 72, 0.18);
}

.autotire-promos .promo-banner .promo-label {
    display: inline-block;
    width: max-content;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.autotire-promos .promo-banner h4 {
    margin: 0.65rem 0 0.35rem;
    background: linear-gradient(120deg, rgb(225, 240, 248) 0%, rgb(124, 130, 135) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.autotire-promos .promo-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.65rem;
}

.autotire-promos .promo-meta {
    color: #e1f0f8;
    font-weight: 600;
}

.promo-tone-1 {
    background: linear-gradient(135deg, rgb(0, 0, 0) 0%, rgb(16, 16, 16) 100%);
}

.promo-tone-2 {
    background: linear-gradient(135deg, rgb(253, 6, 6) 0%, rgb(93, 19, 20) 100%);
}

.promo-tone-3 {
    background: linear-gradient(135deg, rgb(0, 0, 0) 0%, rgb(28, 28, 28) 100%);
}

.product-card,
.card.h-100 {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e9f0;
    box-shadow: 0 8px 20px rgba(19, 30, 45, 0.05);
}

.card.h-100:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(19, 30, 45, 0.12);
}

.btn {
    border-radius: 10px;
}

.dropdown-menu {
    border: 1px solid #eceff5;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(13, 21, 34, 0.12);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(90deg, rgb(0, 0, 0) 0%, rgb(24, 24, 24) 100%);
    color: #ffffff;
    outline: none;
}

.list-group-item.active {
    background-color: var(--at-primary);
    border-color: var(--at-primary);
}

.list-group-item:not(.active):hover {
    background: rgba(253, 6, 6, 0.05);
    border-left: 3px solid #fd0606;
    color: #5d1314;
    transition: all 0.15s ease;
}

.footer {
    background: linear-gradient(120deg, rgb(0, 0, 0) 0%, rgb(14, 14, 14) 100%);
    color: rgba(255, 255, 255, 0.65);
}

.copyright {
    background: #000000;
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Links gerais no footer */
.footer a {
    color: #a2aeb8;
    transition: color 0.18s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--at-accent);
    text-decoration: underline;
    outline: none;
}

/* Sobrescreve style.css: .footer .footer-item a usa var(--bs-body) que é escuro */
.footer .footer-item a {
    color: #a2aeb8 !important;
    letter-spacing: 0;
}

.footer .footer-item a:hover,
.footer .footer-item a:focus {
    color: var(--at-accent) !important;
    letter-spacing: 0;
    text-decoration: underline;
}

/* Parágrafos e textos gerais no footer */
.footer p,
.footer .footer-item p,
.footer span {
    color: rgba(255, 255, 255, 0.65);
}

/* Copyright bar */
.copyright .text-body,
.copyright span,
.copyright p {
    color: rgba(255, 255, 255, 0.65) !important;
}

.copyright a {
    color: rgba(255, 255, 255, 0.75);
}

.copyright a:hover,
.copyright a:focus {
    color: var(--at-accent);
}

/* Header Middle — fundo escuro */
.bg-dark .navbar-brand h1,
.bg-dark .navbar-brand span {
    color: #fff !important;
}
.bg-dark #cart-total-display,
.bg-dark .text-dark,
.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}
.bg-dark .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.35);
}
.bg-dark .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.55);
}
/* Select de categorias: garante que o texto não fique embaixo da seta */
.d-flex.border.rounded-pill .form-select {
    padding-right: 2.5rem !important;
}

/* Topbar — fundo escuro */
.topbar-dark {
    background-color: #1a1a2e !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
.topbar-dark .text-muted,
.topbar-dark .text-dark,
.topbar-dark small {
    color: #fff !important;
}
.topbar-dark a.text-muted,
.topbar-dark a.text-dark,
.topbar-dark .dropdown-toggle {
    color: #fff !important;
}
.topbar-dark a:hover {
    color: var(--at-accent, #f0a500) !important;
}

/* Cart and Wishlist — ícone e texto brancos no fundo escuro */
.bg-dark .btn-md-square {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}
.bg-dark .btn-md-square i {
    color: #fff !important;
}
.bg-dark #cart-total-display,
.bg-dark #cart-total-display * {
    color: #fff !important;
}
.bg-dark a.text-muted {
    color: #fff !important;
}
.bg-dark a.text-muted:hover {
    color: var(--at-accent, #f0a500) !important;
}

/* ── Dropdown Carrinho — visual profissional ─────────────────────────── */
.dropdown-cart {
    min-width: 340px !important;
    max-height: 70vh;
    overflow-y: auto;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
    padding: 0 !important;
}

/* Cabeçalho "Limpar tudo" */
.dropdown-cart li.cleaner {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
    text-align: right;
}
.dropdown-cart li.cleaner .btn-blue-round {
    font-size: 0.75rem;
    color: #6c757d;
    text-decoration: none;
    border: 1px solid #dee2e6;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fff;
    transition: all 0.2s;
}
.dropdown-cart li.cleaner .btn-blue-round:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Divider */
.dropdown-cart li.divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Item individual */
.dropdown-cart li.shop-item {
    list-style: none;
    padding: 10px 16px;
    transition: background 0.15s;
}
.dropdown-cart li.shop-item:hover {
    background: #f8f9fa;
}

/* Layout interno do item */
.dropdown-cart .item {
    position: relative;
}
.dropdown-cart .item-in {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Imagem */
.dropdown-cart .left-side {
    flex-shrink: 0;
}
.dropdown-cart .left-side img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Texto do item */
.dropdown-cart .right-side {
    flex: 1;
    min-width: 0;
}
.dropdown-cart .right-side a.item-info {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    gap: 2px;
}
.dropdown-cart .right-side a.item-info span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.dropdown-cart .right-side .prices {
    font-size: 0.8rem;
    color: #6c757d;
}
.dropdown-cart .right-side .currency {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Botão remover */
.dropdown-cart .item-x-absolute {
    position: absolute;
    top: 0;
    right: 0;
}
.dropdown-cart .item-x-absolute .btn-danger {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 20px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.dropdown-cart .item-x-absolute .btn-danger:hover {
    opacity: 1;
}

/* Botão checkout */
.dropdown-cart li.text-center:last-child {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}
.dropdown-cart .go-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--bs-primary, #0d6efd);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.dropdown-cart .go-checkout:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

/* Mensagem "sem produtos" */
.dropdown-cart li.text-center {
    padding: 20px;
    color: #6c757d;
    font-size: 0.875rem;
}
/* ── Fim Dropdown Carrinho ───────────────────────────────────────────── */

@media (max-width: 992px) {
    .autotire-panel h2 {
        font-size: 1.55rem;
    }

    .autotire-services {
        gap: 0.6rem;
    }
}
