@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --catalog-bg: #f8fafc;
  --catalog-text: #6b7280;
  --catalog-text-muted: #212529bf;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--catalog-bg);
  font-family: 'Nunito', sans-serif !important; 
}

.catalog-categories-nav {
  position: sticky;
  top: 70px;
  display: flex;
  width: 100%;
  z-index: 1019;
  background-color: var(--catalog-bg);
  border-bottom: 1px solid #e5e7eb;
}

.catalog-categories-tabs {
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 0.25rem;
}

.catalog-categories-tabs .nav-link {
  color: var(--catalog-text);
  font-weight: 700;
  padding: 0.75rem 0.9rem;
}

.catalog-category-section {
  width: 100%;
  scroll-margin-top: 150px;
}

.catalog-category-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 1.25rem 0 0.85rem;
}

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

.search-product {
  padding: 0.5rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  width: 100%;
  border-radius: 50px;
}
.search-product:focus {
  outline: none;
}

.title-page{
  color: var(--catalog-text-muted);
}

.product-row-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.product-row-desc {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.product-row-price {
  font-size: 0.9rem;
  font-weight: 600;
}

.product-row-image {
  width: 132px;
  flex: 0 0 132px;
}

.product-row-image img,
.product-row-placeholder {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.product-row-placeholder i {
  font-size: 2rem;
}

.product-row-card .add-to-cart-btn {
  padding: 0.45rem 0.9rem;
  font-weight: 700;
}

.cart-icon{
  position: relative !important;
  background:transparent !important;
  border: 0 !important;
}

.cart-badge {
    position: absolute;
    top: -3px;
    right: -2px;

    min-width: 15px;
    height: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ef4444;
    color: #fff;

    font-size: 10px;
    font-weight: 700;

    border-radius: 999px;

    pointer-events: none;
}

.navbar-toggler {
  background-color: transparent;
  border: 0;
  padding: 0;
}

.custom-topbar {
    display: flex;
    width: 100%;
    justify-content: center;
    max-height: 76px;
    padding: 1rem;
    background-color: var(--catalog-bg);
}
.topbar-content {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: space-between;
}

.topbar-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.topbar-link:hover {
    opacity: 1;
}

.topbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: #0d6efd;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.topbar-link:hover::after,
.topbar-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}



.offcanvas{
  z-index: 1050;
}

#offcanvasCartBody{
  padding-bottom: 5.5rem;
}

.quantity-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 50%;
}
.quantity-input .btn-min,
.quantity-input .btn-plus {
  background-color: transparent;
  border: 0;
}
.quantity-input .input-number{
  display: block;
  width: 100%;
  color: var(--catalog-text);
  text-align: center;
  border: 0;
}

.btn-back{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  line-height: 40px;
  text-decoration: none;
  background-color: white;
  position: absolute;
  top: 5px;
  left: 5px;
  border-radius: 999px;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4.6rem;

    background: #ffffff;
    border-top: 1px solid #e5e7eb;

    display: flex;
    justify-content: space-around;
    align-items: center;

    z-index: 9999;

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav .nav-item {
    flex: 1;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-decoration: none;

    color: var(--catalog-text);
    font-size: 12px;
    font-weight: 500;

    transition: all 0.25s ease;
}

.bottom-nav .nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.bottom-nav .nav-item.active {
    color: #2563eb;
}

.bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav .nav-item:hover {
    color: #2563eb;
}

.entrega-option.active{
  color: #2563eb;
  border: 1px solid #2563eb !important;
  background-color: #d2e4ff65;
  border-radius: 50%;
}

.btn-check:checked+.btn{
  background-color: #d2e4ffa1 !important;
  color: #2563eb;
  border: 1px solid #2563eb !important;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    .catalog-categories-tabs {
      width: 100% !important;
    }
}

/* Evita que o conteúdo fique escondido atrás da barra */
body {
    padding-bottom: 4.6rem;
}

@media (max-width: 768px) {
    .topbar-content {
        width: 100%;
    }
    .catalog-categories-nav {
        top: 70px;
    }
    .product-row-image {
        width: 108px;
        flex-basis: 108px;
    }
    .product-row-image img,
    .product-row-placeholder {
        height: 82px;
    }
    #AdressModal .modal-body{
        height: 400px;
        overflow: auto;
    }
}
