* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ####################### */
/* ####################### */
/*      Flash Message      */
/* ####################### */
/* ####################### */

#flashMessage {
  width: 100%;
  padding: 11px 27px;
  color: white;
  background-color: gray;
  position: fixed;
  /*top: 88px;*/
  top: 40px;
  left: 0px;
  z-index: 9999;
}

#flashMessage.success{
  background-color: #219c21;
}
#flashMessage.error{
  background-color: #cd230c;
}
#flashMessage.warning{
  background-color: #c8a61f;
}


/* ####################### */
/* ####################### */
/*         NAVBAR          */
/* ####################### */
/* ####################### */

.navbar{
  position: sticky;
  top: 0px;
  left: 0px;
  height: 40px;
  background-color: #4FA1D9;
  /*padding: 0px 15px;*/
  padding: 0px;
  z-index: 99999;
}

.navbar-brand{
  padding: 4px 20px;
  margin: 0px;
}

.navbar-brand img{
  vertical-align: sub;
}

.navbar-toggler{
  background-color: white;
  border-radius: 20px;
  height: 28px;
  margin: 0px 10px;
  padding: 0px 10px;
}

.navbar-toggler:hover{
  background-color: #dfdfdf;
}

.navbar-toggler-icon{
  height: 26px;
}

.navbar-dark .navbar-nav .nav-link{
  color: #ffffffdb; 
}

.navbar-dark .navbar-nav .nav-link:hover{
  color: #ffffff9e; 
}

.lang-selector .selected{
  background-color: #389721;
  color: white;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.collapse.show, .collapsing{
  background-color: #4fa1d9;
}

.alertCount{
    background-color: #ea1212;
    border-radius: 23px;
    width: 23px;
    display: inline-block;
    text-align: center;
}


/* ####################### */
/* ####################### */
/*         BODY          */
/* ####################### */
/* ####################### */

.containerModelViewer{
  width: 30%;
  height: 250px;
}

model-viewer{
  height: 100%;
}

.text-warning{
  color: #ddac1c !important;
} 


/* Buttons */
button {
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  margin-top: 6px;
  cursor: pointer;
}

button:hover {
  background: #1565c0;
}

input, select {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
}

.select2-selection__clear{
  color: gray;
  margin-right: 30px !important;
  margin-top: 0px;
  padding-top: 0px;
}

.select2-container {
  width: 100% !important;
}

#filters .select2-container {
  max-width: 400px;
  min-width: 220px; 
}

/*zinput Slider*/
#zInput{
  width: 0px;
  vertical-align: middle;
  writing-mode: vertical-lr;
  direction: rtl;
  margin-left: 50%;
}

input[type="file"] {
  height: 50px;
  background-color: #e7e7e7;
}


input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 32px;
  height: 32px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
}





/*##################  MODAL  ##################*/
.modal{
  z-index: 99999;
}

.modal .close:hover{
  padding: 8px !important;
  margin: -5px !important;
  color: white !important; 
  background: #007bff !important;
  opacity: 1;
}






#mobileHeader {
  display: none;
}

#menuToggle {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 10px;
  margin: 0px;
  color: #1976d2;
}

#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 998;
}

#backdrop.show {
  opacity: 1;
  visibility: visible;
}

.thumb{
  max-width: 100px;
  max-height: 70px;
  vertical-align: middle;
  margin: 5px;
  box-shadow: 3px 3px 3px #808080;
}





/* ===================================================== */
/* ================ PRODUCT GALLERY ==================== */
/* ===================================================== */
/* Transformação da tabela convencional para Grid de Galeria */
.dt-length select{
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 5px 8px;
    width: 65px;
    border: 1px solid #f1f1f1;
}

.dt-search, .dt-paging{
    text-align: right;
}

.dt-search, .dt-paging, .dt-length{
  font-size: 0.9em;
  color: #f1f1f1;
}

.dt-input{
    padding: 4px;
    border: none;
    border-bottom: 1px solid gray;
}

.dt-search .dt-input {
    float: right;
    margin-left: 10px;
    width: 78%;
    border: none;
    border-bottom: 1px solid #f1f1f1;
}


#tableProducts {
    border-bottom: none !important;
}
#tableProducts thead {
    display: none; /* Oculta o cabeçalho padrão de colunas */
}
#tableProducts tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 15px 0;
}
#tableProducts tr {
    display: block;
    border: none;
}
#tableProducts td {
    display: block;
    padding: 0 !important;
    border: none !important;
}

/* Estilização do Cartão do Produto */
.productCard {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.productCard:hover {
    transform: translateY(-5px);
}
.productImageWrapper {
    height: 180px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.productImage {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.productInfo {
    position: relative;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.productLink{
  position: absolute;
  top: 10px;
  right: 10px;
}
.productName {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}
.productStore {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.productPrice {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-top: auto;
}

.productName, .productStore{
    margin-left: 10px;    
    margin-right: 10px;    
{










/* ===================================================== */
/* ==================== MOBILE ========================= */
/* ===================================================== */
@media (max-width: 1400px) {

  #bodycontainer{
    grid-template-columns: 220px 1fr 220px;
  }

  button{
    padding: 0px 10px;
  }

  #prevFrame, #nextFrame{
    width: 48%;
    padding: 0px 10px;
    font-size: 13px;
  }

  .h3, h3 {
    font-size: 1.55rem;
  }
}

/*@media (max-width: 767px) {*/
@media (max-width: 1190px) {
  #bodycontainer {
    grid-template-columns: 1fr 220px;
    grid-template-rows: 46px auto 348px;
  }

  /* Show mobile header */
  #mobileHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 12px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    grid-row: 1;
    grid-column: 1 / span 2;
  }

  /* LEFT PANEL becomes drawer */
  #left {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 4px 0 16px rgba(0,0,0,0.2);
  }

  #left.open {
    transform: translateX(0);
  }

  #main {
    grid-row: 2;
    grid-column: 1;
    padding: 0px;
  }

  /* RIGHT PANEL — move below video */
  #right {
    grid-row: 2;
    grid-column: 2;
    border-left: none;
    border-right: none;
    border-top: 1px solid #eee;
  }

  /* TIMELINE stays last */
  #timeline {
    grid-row: 3;
    grid-column: 1 / span 2;
    overflow-x: scroll;
  }
}


@media (max-width: 900px) {

  #bodycontainer {
    grid-template-columns: auto;
    grid-template-rows: 46px auto 1fr auto;
  }

  /* Show mobile header */
  #mobileHeader {
    grid-column: 1;
  }

  #main {
    grid-column: 1;
    padding: 0px;
  }

  /* RIGHT PANEL — move below video */
  #right {
    grid-row: 3;
    grid-column: 1;
  }

  /* TIMELINE stays last */
  #timeline {
    grid-row: 4;
    grid-column: 1;
  }

  #timelineCanvas {
    height: 100px;
  }

  .section-title{
    font-size: 17px;
    margin: 0px 15px;
  }

  #filters .select2-container {
    min-width: 187px; 
  }
}


@media (max-width: 767px) {
  #filters .select2-container {
    max-width: unset;
  }
}

@media (max-width: 360px) {
  .mobileHeader{
    font-size: 12px;
  }
  .section-title{
    font-size: 12px;
  }
}