:root {
  --bg: #ffffff;
  --text: #000000;
  --accent: #000000;
  --secondary: #f8f8f8;
  --border: #e0e0e0;
  --hover: #f0f0f0;
  --danger: #dc3545;
}

/* Promo Banner Styles */
.promo-banner {
  background: #f8f9fa;
  color: #333333;
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.promo-text {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-message {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
}

.promo-message.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .promo-banner {
    font-size: 12px;
    padding: 10px 0;
  }
  
  .promo-text {
    height: 18px;
  }
}

/* Banner Carousel Styles */
.banner-carousel {
  margin-bottom: 2rem;
}

.banner-image-pc,
.banner-image-mobile {
  max-height: 600px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .banner-image-mobile {
    max-height: 400px;
  }
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 20px;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.carousel-caption h5 {
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 10px;
}

.carousel-caption p {
  color: #ffffff;
  margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
}

.carousel-indicators {
  bottom: 10px;
}

.carousel-indicators button {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.carousel-indicators button.active {
  background-color: #ffffff;
}

body { 
  background: var(--bg); 
  color: var(--text); 
  margin: 0;
  padding: 0; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: #ffffff;
  padding: 0;
  position: sticky; 
  top: 0; 
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

header a.logo { 
  display: flex;
  align-items: center;
  justify-content: center;
}

header a.logo img { 
  height: 56px;
  transition: transform 0.2s ease;
}

header a.logo:hover img {
  transform: scale(1.02);
}

header .menu-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

header .menu-toggle:hover {
  background-color: rgba(0,0,0,0.05);
}

header .cart-icon {
  color: var(--accent);
  font-size: 1.5rem;
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

header .cart-icon:hover {
  background-color: rgba(0,0,0,0.05);
}

/* SEARCH BAR */
.search-bar {
  padding: 0.8rem 1.25rem; 
  text-align: center;
  position: sticky; 
  top: 65px; 
  background: var(--bg); 
  z-index: 999;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.95rem;
}

.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 1rem;
  text-align: center;
  line-height: 1;
}

.search-clear:hover {
  background-color: rgba(0,0,0,0.05);
}

.search-bar input {
  width: 100%; 
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: 1px solid var(--border); 
  border-radius: 50px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  background-color: #f8f8f8;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  background-color: #fff;
}

/* OFFCANVAS */
.offcanvas {
  background: #ffffff;
  color: var(--text);
  width: 320px !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Menu Header */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-color: #000;
}

.menu-title {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.menu-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.menu-close:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Menu Banner - Removido */

/* Menu Section */
.menu-section {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.section-title {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: #000;
  margin-top: 0;
}

.section-title i {
  color: white;
  font-size: 1.1rem;
  margin-right: 0.75rem;
}

.section-title span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
}

/* Menu Items */
.menu-body {
  padding: 0.75rem 0;
}

.menu-nav {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  position: relative;
}

.menu-item:hover {
  background-color: rgba(0,0,0,0.02);
}

.menu-item.active {
  background-color: rgba(0,0,0,0.05);
  font-weight: 600;
  position: relative;
  color: black;
  border-left: 3px solid black;
}

.menu-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1.1rem;
  color: #666;
}

.menu-item.active .menu-icon {
  color: black;
}

.menu-item.all-products {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background-color: #f5f5f5;
}

.menu-item.all-products .menu-icon {
  font-size: 1.2rem;
}

.menu-text {
  flex: 1;
}

.menu-label {
  font-size: 0.95rem;
  display: block;
}

.category-divider {
  padding: 0.75rem 1.5rem 0.5rem;
  margin-bottom: 0.25rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.category-divider span {
  font-size: 0.75rem;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Menu Footer */
.menu-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 1.25rem;
  background-color: #f5f5f5;
}

.contact-section {
  margin-bottom: 1rem;
}

.contact-title {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-title i {
  color: #000;
  font-size: 1rem;
  margin-right: 0.75rem;
}

.contact-title span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #000;
}

.contact-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.contact-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background-color: #000;
  color: white;
  border: 1px solid rgba(0,0,0,0.1);
}

.contact-button i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.contact-button:hover {
  background-color: #222;
}

.copyright-text {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 0.75rem;
}

.copyright-text p {
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 0;
}

main { 
  padding: 1.25rem; 
  max-width: 1200px;
  margin: 0 auto;
  flex: 1; /* Ocupar todo o espaço disponível */
}

/* CARDS & PRODUCTS */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none !important;
  overflow: hidden;
  height: 100%;
}

/* Grid product images - cover container maintaining aspect ratio */
.card .carousel-item img {
  object-fit: cover !important;
  width: 100% !important;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-body {
  background: var(--bg);
  padding: 1rem 0.75rem !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-title {
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  height: 2.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* SOLD OUT OVERLAY */
.sold-out-overlay {
  position: absolute; 
  top: 10px; 
  left: 10px;
  background: var(--accent); 
  color: var(--bg);
  padding: .25rem .65rem; 
  border-radius: 3px;
  font-size: .4rem; 
  font-weight: 600;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* FOOTER */
footer {
  background: #000000;
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  width: 100%;
  clear: both;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background-color: transparent;
  color: white;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  border-color: white;
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.footer-copyright {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.footer-copyright p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* BOTTOM NAV - Removido */

/* MODAL */
.modal-backdrop { 
  z-index: 1040 !important; 
}

.modal { 
  z-index: 1050 !important; 
}

.modal-content {
  z-index: 1051 !important;
  background: var(--bg); 
  border-radius: .5rem; 
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modal-header {
  border-bottom: 1px solid var(--border) !important;
}

.modal-footer {
  border-top: 1px solid var(--border) !important;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  z-index: 10;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

#prodModal .modal-body {
  padding-bottom: 100px; /* Espaço para o footer fixo */
}

#prodModal .modal-dialog {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#prodModal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#prodModal .modal-body {
  overflow-y: auto;
  flex: 1;
}

/* Modal images - show complete image in scale */
#prodModal .carousel-item img {
  object-fit: contain !important;
  background-color: #f8f8f8;
}

/* BUTTONS */
.btn-outline-dark {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-dark {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
}

/* FORMS */
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.nav-tabs .nav-link {
  color: var(--text);
}

.nav-tabs .nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* SIZE SELECTION */
.size-btn {
  width: 50px;
  height: 50px;
  border-radius: 8px !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.size-btn.active {
  background-color: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}

.size-btn:hover {
  background-color: var(--hover);
  border-color: var(--accent);
}

/* CARROSSEL FADE */
.carousel-fade .carousel-item {
  transition: opacity .7s ease;
}

.carousel-item img {
  object-fit: cover !important;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 10px;
}

/* SECTION HEADERS */
main section h5 {
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
}

.category-page-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  margin: 0 auto 1.5rem;
  background-color: #f8f8f8;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* Adicionar padding no footer para compensar a barra inferior em dispositivos móveis */
@media (max-width: 768px) {
  /* Footer */
  footer {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .footer-brand {
    justify-content: center;
  }
  
  .footer-logo {
    max-width: 125px;
  }
  
  .footer-contact {
    align-items: center;
  }
  
  .contact-label {
    margin-bottom: 0.6rem;
  }
  
  /* Header */
  .header-container {
    padding: 0.7rem 1rem;
  }
  
  header a.logo img {
    height: 48px;
  }
  
  header .menu-toggle, header .cart-icon {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  
  /* Search */
  .search-bar {
    top: 60px;
    padding: 0.6rem 1rem;
  }
  
  .search-bar input {
    padding: 0.7rem 0.7rem 0.7rem 2.5rem;
    font-size: 0.9rem;
  }
  
  /* Offcanvas */
  .offcanvas {
    width: 290px !important;
  }
  
  .menu-header {
    padding: 0.75rem 1rem;
  }
  
  .menu-title {
    font-size: 0.8rem;
  }
  
  .section-title {
    padding: 0.85rem 1.25rem;
  }
  
  .menu-item {
    padding: 0.7rem 1.25rem;
  }
  
  .menu-footer {
    padding: 1.25rem;
  }
  
  .contact-button {
    padding: 0.75rem;
  }
  
  .contact-button i {
    font-size: 1.2rem;
  }
  
  /* Content */
  main {
    padding: 1rem 0.75rem;
  }
  
  main section h5 {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    display: block;
    border-bottom: none;
    position: relative;
  }
  
  main section h5:after {
    content: '';
    width: 100px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .row.g-4 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .card-title {
    font-size: 0.85rem;
    height: 2.2rem;
  }
  
  /* Modal */
  .modal-content {
    margin: 0 10px;
  }
  
  #prodModal .modal-dialog {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  #prodModal .modal-content {
    max-height: 95vh;
  }
  
  #prodModal .modal-footer {
    padding: 1rem;
  }
  
  /* Images */
  .carousel-item img {
    height: 200px !important;
  }
  
  .modal-body .carousel-item img {
    height: 375px !important;
    object-fit: contain !important;
    background-color: #f8f8f8;
  }
  
  /* Bottom Nav removido */
}

/* Ajustes para telas muito pequenas */
@media (max-width: 375px) {
  .col-6 {
    width: 100%;
    flex: 0 0 100%;
  }
  
  .carousel-item img {
    height: 275px !important;
  }
  
  .card-title {
    height: auto;
    margin-bottom: 0.3rem;
  }
  
  /* Sold out overlay mobile */
  .sold-out-overlay {
    font-size: .3rem;
  }
}