/* Estilos customizados para o site de material de construção */

:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --accent-color: #ffd700;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --success-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar customizada */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

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

/* Navbar Mobile - Melhorada */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        flex-grow: 1;
        text-align: center;
        font-size: 1.2rem !important;
    }

    .navbar-brand h1 {
        font-size: 1.2rem !important;
        margin: 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        background: rgba(44, 85, 48, 0.98);
        margin-top: 0.5rem;
        border-radius: 12px;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }

    .nav-link {
        color: #fff !important;
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin: 0.25rem 0;
        transition: all 0.3s;
        font-weight: 500;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: var(--accent-color) !important;
        transform: translateX(5px);
    }

    .d-flex.align-items-center.d-lg-none {
        gap: 0.5rem;
    }

    .btn-success {
        background: linear-gradient(135deg, #25d366, #128c7e);
        border: none;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        transition: all 0.3s;
    }

    .btn-success:hover {
        background: linear-gradient(135deg, #128c7e, #0d6b5f);
        transform: scale(1.05);
    }
}

/* Botões customizados */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a21, #3a5f47);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-success:hover {
    background: linear-gradient(135deg, #128c7e, #0d6b5f);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    border: none;
    color: white;
    transition: all 0.3s;
}

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

/* Cards de produtos */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.product-card .card-img-top {
    transition: transform 0.3s;
}

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

/* Preços */
.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.price-promo {
    color: var(--danger-color);
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

/* Badges */
.badge-promo {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Hero sections */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    margin-bottom: 2rem;
}

/* Hero Section Mobile - Otimizado */
@media (max-width: 767.98px) {
    .hero-section {
        border-radius: 0;
        margin-bottom: 1rem;
        padding: 1.5rem 0 !important;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        position: relative;
        overflow: hidden;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-section p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem !important;
        opacity: 0.95;
    }

    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        min-width: 140px;
    }

    .hero-section .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .hero-section .btn-warning {
        background: linear-gradient(135deg, #ffc107, #ff8f00);
        border: none;
        color: #000;
    }

    .hero-section .btn-outline-light {
        border: 2px solid rgba(255, 255, 255, 0.8);
        color: white;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .hero-section .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
        color: white;
    }

    .hero-section .container {
        position: relative;
        z-index: 1;
    }
}

/* Sidebar */
.sidebar {
    background: #f8f9fa;
    min-height: calc(100vh - 76px);
    padding: 20px 0;
    border-radius: 15px;
}

.sidebar .nav-link {
    color: #495057;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

/* Footer Mobile - Otimizado */
@media (max-width: 767.98px) {
    .footer {
        padding: 20px 0 15px;
        margin-top: 30px;
    }

    .footer h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .footer .small {
        font-size: 0.8rem;
    }

    .footer ul li {
        margin-bottom: 0.25rem;
    }

    .footer .contact-info p {
        margin-bottom: 0.5rem;
    }

    .footer .social-links a {
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }

    .footer hr {
        margin: 1rem 0;
    }
}

/* Formulários */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

/* Busca Desktop */
.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.search-item:hover {
    background: #f8f9fa;
}

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

/* Busca Mobile - Estilo melhorado */
.search-box-mobile {
    position: relative;
    margin: 0.5rem 0;
}

.search-box-mobile .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.search-box-mobile .input-group-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none;
    padding: 0.5rem 0.75rem;
}

.search-box-mobile .form-control {
    border: none;
    box-shadow: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.search-box-mobile .form-control:focus {
    border: none;
    box-shadow: none;
    background: #f8f9fa;
}

.search-box-mobile .btn {
    border: none;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

.search-box-mobile .btn:hover {
    background: linear-gradient(135deg, #1e3a21, #3a5f47);
    transform: scale(1.05);
}

.search-results-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 0.5rem;
}

.search-results-mobile .search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.search-results-mobile .search-result-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(5px);
}

.search-results-mobile .search-result-item:last-child {
    border-bottom: none;
}

/* Responsividade da busca mobile */
@media (max-width: 576px) {
    .search-box-mobile {
        margin: 0.25rem 0;
    }

    .search-box-mobile .input-group {
        border-radius: 20px;
    }

    .search-box-mobile .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .search-box-mobile .input-group-text,
    .search-box-mobile .btn {
        padding: 0.4rem 0.6rem;
    }
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    color: var(--primary-color);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .sidebar {
        margin-bottom: 2rem;
    }
}

/* Utilitários */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Efeitos hover */
.hover-lift {
    transition: transform 0.3s;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Gradientes customizados */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Cards de estatísticas */
.stats-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

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

/* Breadcrumb customizado */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Paginação customizada */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

/* Accordion customizado */
.accordion-button {
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.25);
}

/* Alertas customizados */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modais customizados */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

/* Tabelas customizadas */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(44, 85, 48, 0.05);
}

/* Dropdown customizado */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: rgba(44, 85, 48, 0.1);
    color: var(--primary-color);
}

/* Input groups customizados */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: var(--primary-color);
}

/* Lista de contato */
.contact-info .fa {
    width: 20px;
    text-align: center;
}

/* Social links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Feature icons */
.feature-icon {
    color: var(--primary-color);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Lazy loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Controles de quantidade do carrinho */
.produto-quantidade {
    margin-bottom: 10px;
}

.produto-quantidade .input-group {
    width: 100%;
}

.produto-quantidade .input-group .btn {
    border-radius: 0;
    border-color: #dee2e6;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: bold;
    min-width: 35px;
}

.produto-quantidade .input-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.produto-quantidade .input-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.produto-quantidade .input-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.produto-quantidade .quantidade-input {
    border-left: none;
    border-right: none;
    border-color: #dee2e6;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

.produto-quantidade .quantidade-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Carrinho modal */
.carrinho-item {
    transition: background-color 0.3s;
}

.carrinho-item:hover {
    background-color: #f8f9fa;
}

.carrinho-item .btn-group .btn {
    border-radius: 0;
    border-color: #dee2e6;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: bold;
    min-width: 35px;
}

.carrinho-item .btn-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carrinho-item .btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.carrinho-item .btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.carrinho-item .btn-group .btn.disabled {
    background-color: white;
    color: var(--primary-color);
    border-color: #dee2e6;
}

/* Contador do carrinho */
#carrinho-contador,
#carrinho-contador-mobile {
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Animação do contador */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.carrinho-contador-bounce {
    animation: bounce 1s;
}

/* Badges de Segurança no Footer */
.badge-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.badge-item:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-item i {
    font-size: 1.1rem;
}

.badge-item span {
    font-weight: 500;
    color: white;
}

/* Responsividade dos badges */
@media (max-width: 768px) {
    .badge-item {
        padding: 0.5rem 0.75rem !important;
        margin: 0.25rem;
    }

    .badge-item i {
        font-size: 1rem;
    }

    .badge-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .badge-item {
        padding: 0.4rem 0.6rem !important;
        margin: 0.2rem;
    }

    .badge-item span {
        font-size: 0.75rem;
    }
}

/* Carrinho Fixo Mobile */
.carrinho-fixo-mobile {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.carrinho-fixo-mobile .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 20px rgba(44, 85, 48, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrinho-fixo-mobile .btn:hover {
    background: linear-gradient(135deg, #1e3a21, #3a5f47);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(44, 85, 48, 0.6);
}

.carrinho-fixo-mobile .btn i {
    font-size: 1.2rem;
    color: white;
}

.carrinho-fixo-mobile .badge {
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Animação de entrada do carrinho */
.carrinho-fixo-mobile {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Filtros Mobile - Produtos */
@media (max-width: 991.98px) {
    .accordion-item {
        border: 1px solid #e9ecef;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .accordion-button {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
        font-weight: 600;
        padding: 0.75rem 1rem;
    }

    .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, #1e3a21, #3a5f47);
        color: white;
        box-shadow: none;
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.25);
    }

    .accordion-body {
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }

    .categorias-mobile .btn {
        border-radius: 20px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.1rem;
        transition: all 0.3s ease;
        border: 1px solid var(--primary-color);
    }

    .categorias-mobile .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(44, 85, 48, 0.3);
    }

    .categorias-mobile .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-color: var(--primary-color);
    }

    .categorias-mobile .btn-outline-primary {
        color: var(--primary-color);
        background: white;
    }

    .categorias-mobile .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

    .form-label {
        color: var(--primary-color);
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .form-select-sm {
        border-radius: 8px;
        border: 1px solid #dee2e6;
        font-size: 0.85rem;
    }

    .form-select-sm:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
    }

    .input-group-sm .form-control {
        border-radius: 8px 0 0 8px;
        font-size: 0.85rem;
    }

    .input-group-sm .btn {
        border-radius: 0 8px 8px 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border: 1px solid var(--primary-color);
    }

    .input-group-sm .btn:hover {
        background: linear-gradient(135deg, #1e3a21, #3a5f47);
        border-color: #1e3a21;
    }
}

/* Melhorias gerais para produtos mobile */
@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 1rem;
    }

    .product-card .card-img-top {
        height: 150px !important;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-card .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .product-card .card-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .produto-quantidade .input-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .produto-quantidade .input-group-sm .form-control {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .sidebar,
    .carrinho-fixo-mobile {
        display: none !important;
    }

    .container {
        max-width: none !important;
    }
}

/* Cards de categorias */
.categoria-card {
    border-radius: 20px;
    /* More compact oval shape */
    overflow: hidden;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.categoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.2);
}

@media (max-width: 575.98px) {
    .categoria-card {
        margin-bottom: 0.5rem;
        border-radius: 15px;
    }

    .categoria-card .card-body {
        padding: 0.75rem;
    }

    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card-title {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 10px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .categoria-card .card-body {
        padding: 1rem;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}