body {
  overflow-y: auto;
  height: 100vh;
  overflow-x: hidden;
}

.logo img {
  width: 150px;
}

.navbar {
  background-color: black;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 5%;
  color: #fff;
}

.nav-icon-btn {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
}

.nav-icon-btn:focus {
  outline: none;
  box-shadow: none;
}

.dropdown {
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #eceaea;
}

.slogan{
  width: 100%;
}

.search {
  display: flex;
  align-items: center;
  width: 40%;
}

.search input,
.search button {
  height: 40px;
  box-sizing: border-box;
  font-size: 16px;
}

.search input {
  padding: 0 12px;
  width: 70%;
  border: 0;
  border-radius: 5px 0px 0px 5px;
}

.search-button {
  padding: 0 17px;
  cursor: pointer;
  background-color: red;
  border: 0;
  color: #fff;
  border-radius: 0px 5px 5px 0px;
}

.nav-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 43%;
}

.favorites a,
.car a,
.login a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.favorites a:hover,
.car a:hover,
.login a:hover {
  color: lightgray;
}

.user-container {
  display: flex;
  flex-direction: row;
}

.nav-info i {
  font-size: 35px;
  margin-right: 15px;
}

.product-container {
  display: flex;
  justify-content: center;
}

.product-container a {
  text-decoration: none;
}

.product-container table {
  display: flex;
  justify-content: center;
}

.product {
  background-color: rgb(235, 232, 232);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.footer {
  width: 100%;
  bottom: 0;
  background-color: black;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.payment-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.car-content {
  display: flex;
  flex-direction: column;
}

.car-content small {
  font-size: 10px;
}

.main-media {
  display: block;
  border-radius: 8px;
}

#mainProductVideo {
  max-height: 100vh;
}

.off-sale {
  margin-top: 2.32rem;
}

.thumbs {
  max-height: 520px;
}

.thumb-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 10px;
  opacity: .85;
  transition: .15s;
}

.thumb-img:hover {
  opacity: 1;
}

.thumb-img.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
  opacity: 1;
}

.main-image-card {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.main-image {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.buy-box {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  position: sticky;
  top: 18px;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.details-card {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.cart-title {
  font-weight: 800;
  letter-spacing: .5px;
}

.cart-header {
  display: grid;
  grid-template-columns: 1fr 160px 220px;
  padding: 10px 12px;
  border-bottom: 1px solid #e9e9e9;
  color: #666;
  font-size: .9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 160px 220px;
  gap: 12px;
  padding: 16px 12px;
  border-bottom: 1px solid #ededed;
  background: #fff;
}

.cart-item-left {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.cart-thumb {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

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

.cart-item-name {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cart-item-meta {
  color: #666;
  font-size: .88rem;
  line-height: 1.25;
}

.cart-item-link {
  display: inline-block;
  margin-top: 6px;
  font-size: .9rem;
  text-decoration: none;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  line-height: 1;
}

.qty-input {
  width: 44px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  justify-content: center;
  outline: none;
  display: flex;
  align-items: center;
}

.trash-btn {
  margin-left: 6px;
  border: none;
  background: transparent;
  font-size: 18px;
  opacity: .75;
}

.trash-btn:hover {
  opacity: 1;
}

.cart-item-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pix-price {
  color: #16a34a;
  font-weight: 800;
}

.summary-box {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  position: sticky;
  top: 16px;
}

.summary-title {
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .95rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  background: #f5f5f5;
  border-radius: 10px;
  margin-top: 10px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 1rem;
}

.summary-highlight {
  margin-top: 14px;
  text-align: center;
}

.pix-total {
  font-size: 2rem;
  font-weight: 900;
  color: #16a34a;
  line-height: 1.1;
}

.pix-note {
  color: #666;
  font-size: .9rem;
  margin-top: 4px;
}

.or-sep {
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
}

.or-sep span {
  background: #eee;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .85rem;
  color: #555;
}

.card-total {
  font-size: 1.6rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1.1;
}

.card-note {
  color: #666;
  font-size: .9rem;
  margin-top: 4px;
}

.cart i {
  font-size: 35px;
  margin-right: 15px;
}

.cart a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.relateds-mobile {
  display: none;
}

.nav-mobile {
  display: none;
}

.heart small {
  top: 54%;
  left: 74%;
  font-size: x-small;
  color: black;
}

.cart-mobile small {
  font-size: x-small;
}

.breadcrumb-account {
  font-size: 0.95rem;
}

/* ====== MENU LATERAL ====== */
.nav-account {
  font-size: larger;
  border: 1px solid gray;
  border-radius: 5px;
  overflow: hidden;
  /* hover respeita borda arredondada */
  background: #fff;
}

.nav-account i {
  color: red;
}

.nav-account a {
  padding: 10px;
  color: black;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.my_select {
  background-color: #ee8989;
}

.nav-account a:hover {
  background-color: #ee8989;
}

/* Desktop: menu em coluna com separadores */
@media (min-width: 992px) {
  .nav-account a {
    border-bottom: 1px solid #d0d0d0;
  }

  .nav-account a:last-child {
    border-bottom: 0;
  }
}

/* Mobile: menu vira horizontal rolável */
@media (max-width: 991.98px) {
  .nav-account {
    flex-direction: row !important;
    /* sobrescreve flex-column do Bootstrap */
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-account a {
    flex: 0 0 auto;
    border-right: 1px solid #d0d0d0;
  }

  .nav-account a:last-child {
    border-right: 0;
  }
}

/* ====== CONTEÚDO PEDIDOS ====== */
.my-orders {
  padding: 10px;
}

.my-orders h3 {
  color: red;
}

/* ====== CARD DO PEDIDO ====== */
.orders-container {
  border: 1px solid gray;
  border-radius: 5px;
  padding: 15px;
  background: #fff;
}

/* INFO DO PEDIDO: desktop flex, mobile grid */
.orders-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  /* deixa quebrar se precisar */
}

.order-block {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  /* garante um “bloco” visível no desktop */
}

@media (max-width: 991.98px) {
  .nav-container h3 {
    font-size: 1.1rem;
  }

  .logo img {
    width: 120px;
  }
}

/* Mobile: vira grid 2 colunas e status em linha inteira */
@media (max-width: 991.98px) {
  .orders-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Status ocupa a linha inteira (fica mais bonito) */
  .order-block:last-child {
    grid-column: 1 / -1;
  }
}

/* ====== STEPPER STATUS ====== */
.orders-status {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.orders-status-info {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.orders-status-info h6 {
  margin: 0;
}

.orders-status-info i {
  color: red;
  margin-right: 10px;
  font-size: x-large;
}

/* Linha do stepper (desktop) */
.line {
  border: 1px solid gray;
  width: 6%;
  height: 0;
  display: flex;
  align-self: center;
}

/* Mobile: stepper vira vertical e remove a linha */
@media (max-width: 991.98px) {
  .orders-status {
    flex-direction: column;
    align-items: flex-start;
  }

  .line {
    display: none;
  }

  .orders-status-info {
    padding: 6px 0;
  }
}

/* Responsivo: empilha colunas no mobile */
@media (max-width: 992px) {
  .relateds {
    display: none;
  }

  .relateds-mobile {
    display: block;
  }

  .nav-desk {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .show-products {
    width: 60%;
  }


}

.cart-header {
  display: grid;
  grid-template-columns: 1fr 120px 180px;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8f9fa;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Item do carrinho */
.cart-item {
  display: grid;
  grid-template-columns: 1fr 120px 180px;
  /* igual ao header */
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
}

.cart-item-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cart-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

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

.cart-item-name {
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-meta {
  color: #6b7280;
  font-size: .9rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.qty-input {
  min-width: 42px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 700;
  background: #f8f9fa;
}

.trash-btn i {
  font-size: 1.2rem;
}

.pix-price {
  font-weight: 700;
}

/* Resumo */
.summary-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.summary-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.summary-total {
  border-bottom: none;
  padding-top: 12px;
  font-size: 1.05rem;
}

.summary-highlight {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #eef2f7;
}

.pix-total {
  font-size: 1.4rem;
  font-weight: 900;
}

.pix-note,
.card-note {
  color: #6b7280;
  font-size: .9rem;
}

.or-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  color: #6b7280;
}

.or-sep span {
  padding: 0 10px;
  background: #f8f9fa;
}

/* Sticky só no desktop */
@media (min-width: 992px) {
  .summary-sticky {
    position: sticky;
    top: 16px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 767.98px) {
  .breadcrumb-cart {
    margin-left: 1rem !important;
  }

  /* Item vira card empilhado */
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cart-item-qty {
    justify-content: space-between;
  }

  .cart-thumb {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 991.98px) {
    .main-image-card {
        min-height: unset !important;
    }
}