/* Anderson Valadares Pinto, Antonio Carlos Davila, Leticia Heller Chioato, Thaina Farias da Silva, Polo SLS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* Variáveis e reset com integração ao Bootstrap 5 */
:root,
[data-bs-theme="light"] {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --text-main: #333;
    --text-secondary: #666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Sobrescrita de Variáveis Nativas do Bootstrap (Modo Claro) */
    --bs-primary: #2c3e50;
    --bs-primary-rgb: 44, 62, 80;
    --bs-secondary: #e74c3c;
    --bs-secondary-rgb: 231, 76, 60;
    --bs-info: #3498db;
    --bs-info-rgb: 52, 152, 219;
    --bs-light: #ecf0f1;
    --bs-dark: #2c3e50;
    --bs-body-bg: #f9f9f9;
    --bs-body-color: #333333;
    --bs-card-bg: #ffffff;
    --bs-card-color: #333333;
    --bs-border-color: #e2e8f0;
    --bs-tertiary-bg: #f1f5f9;
    --bs-link-color: #2c3e50;
    --bs-link-hover-color: #e74c3c;
}

body.dark-mode,
[data-bs-theme="dark"] {
    --bg-body: #1a1a1a;
    --bg-card: #2c2c2c;
    --bg-header: #242424;
    --text-main: #ecf0f1;
    --text-secondary: #bdc3c7;
    --primary: #ecf0f1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --text: #ecf0f1;
    --light: #2c3e50;
    --btn-text: #fff;
    --link-color: #bdc3c7;

    /* Sobrescrita de Variáveis Nativas do Bootstrap (Modo Escuro) */
    --bs-primary: #e74c3c;
    --bs-primary-rgb: 231, 76, 60;
    --bs-secondary: #3498db;
    --bs-secondary-rgb: 52, 152, 219;
    --bs-info: #3498db;
    --bs-body-bg: #1a1a1a;
    --bs-body-bg-rgb: 26, 26, 26;
    --bs-body-color: #ecf0f1;
    --bs-body-color-rgb: 236, 240, 241;
    --bs-card-bg: #2c2c2c;
    --bs-card-color: #ecf0f1;
    --bs-border-color: #444444;
    --bs-tertiary-bg: #242424;
    --bs-link-color: #bdc3c7;
    --bs-link-hover-color: #e74c3c;
    --bs-emphasis-color: #ffffff;
    --bs-secondary-color: #bdc3c7;
}

body.dark-mode .btn-secondary,
[data-bs-theme="dark"] .btn-secondary {
    color: #2c3e50;
    background-color: #ecf0f1;
}

body.dark-mode .filters-sidebar a,
[data-bs-theme="dark"] .filters-sidebar a {
    color: var(--text-secondary);
}

body.dark-mode .filters-sidebar a:hover,
[data-bs-theme="dark"] .filters-sidebar a:hover {
    color: var(--secondary);
}

/* Estilo do menu lateral (Sidebar) no Modo Escuro para melhor contraste */
body.dark-mode #sidebarMenu .nav-link.text-dark,
[data-bs-theme="dark"] #sidebarMenu .nav-link.text-dark {
    color: var(--text-main) !important;
}

body.dark-mode #sidebarMenu .nav-link.text-dark:hover,
[data-bs-theme="dark"] #sidebarMenu .nav-link.text-dark:hover {
    color: var(--bs-primary) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode #sidebarMenu .nav-link.text-muted,
[data-bs-theme="dark"] #sidebarMenu .nav-link.text-muted {
    color: var(--text-secondary) !important;
}

body.dark-mode #sidebarMenu .nav-link.text-muted:hover,
[data-bs-theme="dark"] #sidebarMenu .nav-link.text-muted:hover {
    color: var(--text-main) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #c0392b;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c0392b;
    border-color: #c0392b;
    color: white;
}

.btn-secondary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #1e2a36;
    border-color: #1e2a36;
    color: white;
}

/* Suporte adicional para elementos do Bootstrap (Cards, Forms, Tables, Badges, Alerts) */
.card,
.product-card,
.category-card {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--bs-border-color);
}

.form-control,
.form-select {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--bs-border-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.table {
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--bs-border-color);
    color: var(--text-main);
}

/* Header */
header {
    background-color: var(--bg-header);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--secondary);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Título */
.page-title {
    background-color: var(--light);
    padding: 40px 0;
    text-align: center;
    color: var(--primary);
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Destaques de produto */
.featured {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
    margin: 10px auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 405px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.product-price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Página de categorias */
.category-content {
    padding: 40px 0;
}

.category-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.filters-sidebar {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-self: start;
}

.filters-sidebar h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.filter-group ul li {
    margin-bottom: 8px;
}

.filter-group a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-group a:hover {
    color: var(--secondary);
}

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

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Página de categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-info {
    padding: 20px;
    background: var(--bg-card);
}

.category-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.category-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Promoção */
.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contato */
.contact-content {
    padding: 40px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.contact-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background-color: var(--bg-body);
}

.faq-item {
    background: var(--bg-card);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Breadcrumb Nav */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* página detalhe de produtos */
.product-detail {
    padding-bottom: 60px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-body);
    padding: 20px;
    border-radius: 8px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card-info h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.author {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.rating {
    margin-bottom: 20px;
    color: #f39c12;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 5px;
}

.price {
    margin-bottom: 25px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-right: 15px;
}

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

.discount {
    background-color: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 10px;
    vertical-align: middle;
}

.shipping {
    background-color: #e8f8f5;
    color: #27ae60;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 500;
}

.description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.description p {
    margin-bottom: 15px;
}

.product-detail .product-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-buttons .btn {
    flex: 1;
    padding: 15px;
}

.product-meta p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-meta strong {
    color: var(--primary);
}

/* Abas produtos */
.product-tabs {
    margin-top: 50px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Tabelas abas produtos */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    width: 30%;
    color: var(--primary);
    font-weight: 600;
}

/* Avaliações */
.review {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer {
    font-weight: 700;
    color: var(--primary);
}

/* Produtos Relacionados */
.related-products {
    padding: 60px 0;
    background-color: var(--bg-body);
}

/* Listas */
.products-listing {
    flex: 1;
}

.product-card-info {
    padding: 20px;
}

.product-card .product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-card .product-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.product-info-card {
    padding: 20px;
}

.product-actions-card {
    display: flex;
    gap: 10px;
}

.product-actions-card .btn {
    flex: 1;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
}

/* Dark Mode para detalhes do produto */
body.dark-mode .product-detail-content,
body.dark-mode .product-gallery {
    background-color: var(--bg-card);
}

body.dark-mode .shipping {
    background-color: #2c3e50;
    color: #2ecc71;
}

body.dark-mode .quantity-input {
    background-color: #333;
    border-color: #555;
    color: white;
}

body.dark-mode .tab-btn {
    color: var(--text-secondary);
}

body.dark-mode .tab-btn.active {
    color: var(--secondary);
}

body.dark-mode .specs-table th,
body.dark-mode .specs-table td {
    border-bottom-color: #444;
}

body.dark-mode .product-detail .product-actions {
    border-bottom-color: #444;
}

body.dark-mode .product-gallery img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Detalhes de Produto Responsivo */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* Página Carrinho */
.cart-page {
    padding: 60px 0;
    min-height: 60vh;
}

.cart-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cart-items {
    flex: 2;
}

.cart-item {
    display: flex;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    align-items: center;
    gap: 20px;
}

.cart-item-image {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-details h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.cart-item-price {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #eee;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: #ddd;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item-actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}

.item-total {
    font-weight: 700;
    font-size: 1.1rem;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.remove-btn:hover {
    color: #c0392b;
}

.cart-summary {
    flex: 1;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cart-summary h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
}

.continue-shopping:hover {
    text-decoration: underline;
}

/* Dark Mode para carrinho */
body.dark-mode .quantity-btn {
    background-color: #444;
    color: white;
}

body.dark-mode .quantity-btn:hover {
    background-color: #555;
}

body.dark-mode .quantity-input {
    background-color: #333;
    border-color: #555;
    color: white;
}

body.dark-mode .cart-summary {
    background-color: var(--bg-card);
}

/* Carrinho Responsivo */
@media (max-width: 768px) {
    .cart-container {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        width: 150px;
        height: 220px;
    }

    .cart-item-actions {
        flex-direction: row;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
    }

    .cart-item-quantity {
        justify-content: center;
    }
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Pagina Agradecimento  */
.thank-you-section {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
}

.thank-you-content {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto 30px;
    box-shadow: inset 0px 0px 0px #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    background: #2ecc71;
    position: relative;
}

.checkmark::after {
    content: '';
    display: block;
    width: 20px;
    height: 40px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 15px;
    left: 28px;
}

.thank-you-content h1 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.thank-you-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.order-details {
    background-color: var(--bg-body);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 30px;
}

.order-details h2 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.order-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-item p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.order-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: right;
}

.thank-you-content .action-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.thank-you-content .btn {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Dark Mode para pagina de agradecimento */
body.dark-mode .thank-you-content {
    background-color: var(--bg-card);
}

body.dark-mode .order-details {
    background-color: #333;
}

body.dark-mode .order-details h2,
body.dark-mode .order-total {
    border-color: #555;
    color: var(--primary);
}

body.dark-mode .order-item {
    border-color: #444;
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #2ecc71;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    margin-top: 5px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        order: 2;
    }

    .products-listing {
        order: 1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

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

    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* Ajustes Adicionais Bootstrap + Leitura Mágica Theme */
.badge-secondary,
.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: #ffffff;
}

.badge-primary,
.badge.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff;
}

.pagination .page-item .page-link {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--bs-border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.pagination .page-item .page-link:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.alert-primary {
    background-color: rgba(44, 62, 80, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-secondary {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

[data-bs-theme="dark"] .alert-primary {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: var(--secondary);
    color: #ffffff;
}

[data-bs-theme="dark"] .alert-secondary {
    background-color: rgba(52, 152, 219, 0.2);
    border-color: var(--accent);
    color: #ffffff;
}

/* Suporte para Bootstrap Bundle Script Tooltips, Modals e Dropdowns */
.dropdown-menu {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--bs-border-color);
}

.dropdown-item {
    color: var(--text-main);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bs-tertiary-bg);
    color: var(--secondary);
}