/* Base */
html, body {
  background-color: #1e1e1e;
  background: url('/img_mktplace/background/homeMarkePlace-bg.png') no-repeat center center/cover;
}

/* Corpo com centralização total */
.welcome-body {
  margin: 0;
  padding: 0;
  background-color: #004aad;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Botão com estilo consistente */
.btn-welcome {
  display: inline-block;
  background-color: #0b93f2;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-welcome:hover {
  background-color: #004aad;
}

.bg-darkBlue {
    background-color: #1e1e1e;
}

.welcome-transparent-container {
  margin: auto;
  margin-top: 10px;
  margin-bottom: 2px;
  min-width: 1400px;
  max-width: fit-content;
  text-align: left;
  padding: 4rem;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.welcome-container::before {
  content: none;
}

.welcome-icon {
    font-size: 60px;
    color: #dc3545;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 28px;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 20px;
}

.welcome-message {
    font-size: 14px;
    color: #DDD;
    margin-bottom: 30px;
}

.empty-actions a:hover {
    background-color: #0056b3;
}

.row {
    width: 100%;
    display: flex;
    align-items: flex-start;
}

/* NEW HOME STYLES */

/* Cards */
.category-card {
  background-color: #1e1e1e;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card-title {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Botão padrão */
.btn.btn-primary {
  background-color: transparent !important;
  color: #e0e0e0 !important;
  border: 1.5px solid #cccccc !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid #333;
  background-color: #1e1e1e;
  color: #ccc;
  padding: 1rem 0;
  text-align: center;
}

/* Banner Carrossel */
#promo-carousel {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.carousel-wrapper {
  transition: transform 0.6s ease;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.arrow.left {
  left: 16px;
}

.arrow.right {
  right: 16px;
}

/* Responsivo */
@media (max-width: 992px) {
  .marketplace-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .logo-img {
    height: 50px;
  }

  .navbar .location-info {
    font-size: 0.9rem;
  }

  .navbar .form-control {
    width: 160px;
    height: 2.5rem;
    font-size: 0.95rem;
  }

  .cart-icon img {
    width: 30px;
  }

  #cart-count {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  #promo-carousel {
    height: 180px;
  }

  .arrow {
    font-size: 18px;
    padding: 8px 12px;
  }

  .marketplace-text {
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.1rem;
  }

  .navbar .form-control {
    width: 140px;
  }

  .location-info {
    display: none;
  }

  .navbar .d-flex.align-items-center {
    gap: 0.8rem;
  }

  .cart-icon img {
    width: 28px;
  }
}

/* Logo */
.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* Texto do marketplace */
.marketplace-text {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Localização */
.navbar .location-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.navbar .location-info img,
.location-info img {
  filter: invert(100%);
}

.location-info span {
  font-size: 0.95rem;
  white-space: nowrap;
}

.center-content-style {
    max-width: 1600px;
    margin: auto;
}

.allContent {
  flex: 1;
  display: flex;
}

.row {
    width: 100%;
    display: flex;
    align-items: flex-start;
}

/* Buttons */
.btn {
    background-color: transparent;
    color: #e0e0e0;
    border: 1.5px solid #cccccc;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-primary {
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-success {
    background-color: #0b93f2;
    border-color: #0b93f2;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #004aad;
    border-color: #1e7e34;
}

.main-content {
    margin: 3% 1%;
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-count {
    color: #999;
    font-size: 0.85rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b93f2;
    margin-bottom: 1rem;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.btn-cart {
  background-color: #0b93f2;
  border: none;
  border-radius: 0.375rem;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cart svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.btn-cart:hover {
  background-color: #004aad;
  transform: scale(1.05);
}

.btn-cart:active {
  transform: scale(0.95);
}

.btn-cart:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5);
}

.add-to-cart-form {
    margin: 0;
    flex: 1;
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    color: #cccccc;
    text-decoration: none;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 45px;
}

.page-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #666;
}

.page-item.active .page-link {
    background-color: #ffffff;
    color: #004aad;
    border-color: #ffffff;
}

.product-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.product-actions .btn-details {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
    font-size: 0.9rem;
    width: 100%;
}

.product-actions .btn-cart {
    flex: 1;
    padding: 0.6rem;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-to-cart-form {
    width: 100%;
    height: 100%;
    display: flex;
}

.bg-darkBlue {
    background-color: #1e1e1e;
}

/* Sidebar */
.sidebar {
    margin-top: 10px;
    border-radius: 0px 10px 10px 0px;
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: fixed;
}

.sidebar.collapsed {
    width: 40px;
}

.toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    width: 30px;
    height: 60px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toggle-btn:hover {
    background-color: #444;
    border-color: #666;
}

.sidebar.collapsed .toggle-btn {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-content {
    padding: 1.4rem;
    padding-right: 36px;
    height: 78vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 60px 0 1.5rem;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.sidebar-content h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.sidebar-content h6 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 1rem;
}

.price-range {
    margin-bottom: 1rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 0.5rem;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
    accent-color: #ffffff;
}

.checkbox-item label {
    color: #cccccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-item:hover label {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar.expanded {
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
    }

    .main-content {
        padding: 20px;
    }
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* oculta barra de rolagem */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0b93f2 !important;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.left {
    left: -30px;
}

.carousel-btn.right {
    right: -30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: visible;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 calc(20% - 1rem);
    box-sizing: border-box;
}

.alert-success {
  max-width: 80%;
  margin: auto;
  background-color: #0b93f2;
  color: #d4edda;
  border: 1px solid #1b5e20;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  float: right;
  cursor: pointer;
}

.carousel-container { position: relative; overflow: hidden; margin-bottom: 40px; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.product-card { min-width: 200px; margin-right: 15px; flex-shrink: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: #0b93f2; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; z-index: 10; }
.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }
.carousel-segment { display: none; }
.carousel-segment.active { display: block; }