 body {
    transition: background-color 0.5s ease;
  }

.shop-page main {
  padding-bottom: 100px;
}

.shop-hero {
  text-align: center;
  margin: 40px 0;
  padding: 30px 0;
  border-bottom: 2px solid var(--secondary);
}

.shop-hero h1 {
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.loja-info-header {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
  }

  .loja-header-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .loja-logo img {
    max-height: 60px;
    max-width: 60px;
    border-radius: 50%;
    object-fit: cover;
  }

  .loja-details h2 {
    margin: 0;
    font-size: 1.5rem;
  }

  .loja-details p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
  }

.loja-selected {
    background-color: var(--loja-bg-color);
  }

.shop-filters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-select {
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
}

.shop-select:focus {
  outline: none;
  border-color: var(--secondary);
}

.loja-info {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
  }

  .no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
  }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.shop-item {
  background: white;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.shop-item:hover {
  transform: translateY(-5px);
}

.item-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.item-image {
  height: 220px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  color: white;
  font-size: 4rem;
}

.item-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.shop-item:hover .item-image img {
  transform: scale(1.05);
}
.item-details {
  margin: 10px 0;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-details i {
  font-size: 0.7rem;
  color: var(--primary);
}

.item-info {
  padding: 20px;
}

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

.item-badge {
  background-color: #e74c3c;
  color: white;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 15px;
  border-radius: 3px;
  z-index: 2;
}

.item-info p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.item-price {
  margin: 20px 0;
}

.item-price .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.item-price .original-price {
  text-decoration: line-through;
  color: #999;
  margin-left: 10px;
  font-size: 1rem;
}

.btn-add-to-cart {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-to-cart:hover {
  background-color: #1a5276;
}

/* Carrinho de compras */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  margin: 0;
  color: var(--primary);
}

.btn-close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

.empty-cart i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.cart-total .total-price {
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background-color: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-checkout:hover {
  background-color: #FFC107;
}

.btn-checkout:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

.btn-cart-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#load-more-trigger {
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    visibility: hidden;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}
