/*=== PRODUCTS LIST ===*/

h2 {
  margin-bottom: 20px;
}

.material-options {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  cursor: pointer;
}

.material {
  border-radius: 20px;
  overflow: hidden;
  min-width: 140px;
  position: relative;
  flex: 0 0 auto;
  border: 5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.material-options::-webkit-scrollbar {
  height: 6px;
}

.material-options::-webkit-scrollbar-thumb {
  background-color: var(--light-grey);
  border-radius: 4px;
}

.material.active {
  border: 5px solid #4CD28A !important;
  box-sizing: border-box !important;
  display: block !important;
}

.material img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.1s ease;
}

.material:hover img {
  transform: scale(1.7);
}

.material span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  transition: background 0.6s ease;
  text-align: center;
  padding: 15px;

}

/*Categories material*/
.material-category {
  border-radius: 20px;
  overflow: hidden;
  min-width: 140px;
  height: 200px;
  position: relative;
  flex: 0 0 auto;
  border: 5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.material-category.active {
  border: 5px solid #4CD28A !important;
  box-sizing: border-box !important;
  display: block !important;
}

.material-category img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.material-category span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.6s ease;
  text-align: center;
  padding: 5px;
}

.material-category.active span {
  background: rgba(0, 0, 0, 0.1);
}

.material-category:hover span {
  background: rgba(0, 0, 0, 0.1);
}

/*end categories material*/

.section {
  margin-top: 30px;
  border-radius: 30px;
  overflow: hidden;
  font-size: 14px;
}

.section-header {
  padding: 15px;
  color: white;
  text-align: center;
}

.stock {
  background: #5ECA8E;
}

.custom {
  background: #6D717A;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

tr {
  background-color: var(--white);
}

tr.adicionado {
  background-color: #5eca8f2c;
}

th,
td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #d9d9d9ad;
  font-size: 14px;
  color: var(--dark-grey);
}

th {
  background-color: var(--white-grey);
  font-weight: var(--font-weight-bold);
  border-bottom: none;
  padding: 10px;
}

td:nth-child(2),
td:nth-child(7),
th:nth-child(2),
th:nth-child(7) {
  text-align: left;
  padding: 20px;
}

.pvp-base {
  color: var(--dark-grey);
  margin-right: 8px;
}

.pvp {
  text-decoration: line-through;
  color: var(--light-grey);
  margin-right: 8px;
}

.special-price {
  color: var(--secondary-green);
  font-weight: 500;
  cursor: pointer;
}

.stock-th {
  background-color: var(--white-green) !important;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.actions button {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

/* button-adiconar/encomendar*/
.order-button {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 100px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  padding: 0;
  height: 45px;
  font-family: var(--font-primary);
}

.order-button .text {
  background-color: var(--secondary-green);
  color: white;
  font-weight: bold;
  padding: 0 30px;
  font-size: 14px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
}

.order-button .icon {
  background-color: var(--light-green);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*************/

.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 999px;
  overflow: hidden;
  max-width: 120px;
  margin: 0 auto;
  transition: background 0.3s ease;
}

.qty-selector button {
  width: 32px;
  height: 40px;
  background: none;
  border: none;
  color: var(--secondary-grey);
  font-size: 20px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.3s ease;
}

.qty-selector button:hover {
  color: var(--dark-grey);
}

.qty-selector input {
  width: 50px;
  border: none;
  text-align: center;
  font-size: 14px;
  background: transparent;
  color: var(--secondary-grey);
  --moz-appearance: textfield;
}

.qty-selector input:focus {
  outline: none;
}

.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-selector input[type="number"] {
  text-align: center;
  width: 60px;
  padding: 0;
  font-size: 14px;
}

/**************/

.view-more-stock {
  text-align: center;
  padding: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--secondary-green);
  cursor: pointer;
  background-color: var(--white-green);
  font-size: 14px;
  margin-top: -1px;
  height: 58px;
}

.view-more {
  text-align: center;
  padding: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--secondary-grey);
  cursor: pointer;
  background-color: var(--white-grey);
  font-size: 14px;
  margin-top: -1px;
  height: 58px;
}

.view-more-stock:hover .text-only {
  opacity: 0.7;
}

.view-more:hover .text-only {
  opacity: 0.7;
}

.select-cell {
  padding: 20px;
  width: 175px;
  vertical-align: middle;
}

.custom-select:focus {
  padding: 10px;
}

option:hover {
  background-color: #5ECA8E;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 35px 10px 0;
  font-size: 14px;
  color: var(--secondary-grey-alpha);
  padding-left: 10px;
  border: none;
  border-bottom: 2px solid #d9d9d9;
  background-color: transparent;
  cursor: pointer;
  font-family: var(--font-primary);
}

.custom-select:focus {
  outline: none;
  border-color: #6D717A;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.5;
}


/*side bar acabamentos*/
/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

#closeSidebar.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.close-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

#closeSidebarParafusos.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 40%;
}

.sidebar-content {
  padding: 24px;
  font-family: var(--font-primary);
}

.sidebar-content .subtitle {
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  margin: 12px 0 0;
}

.sidebar-content .category {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Overlay escurecido */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* opacidade */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/*end-sidebar*/


/*icon star*/
.purchase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.star {
  background: none;
  border: none;
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star img {
  width: 20px;
  height: 20px;
  display: block;
}

.purchase-hover {
  position: absolute;
  top: -32px;
  left: 22px;
  background-color: #36C187;
  color: white;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px 10px 10px 0px;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.hidden {
  display: none;
}

.purchase-hover {
  display: none;
}

.purchase:hover .purchase-hover {
  display: block;
}

.purchase .star {
  cursor: pointer;
}

/*************/
@media (max-width: 1199px) {
  table {
    display: none;
  }

  .material span {
    font-size: 14px;
  }

  .material-category span {
    font-size: 14px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    padding: 20px 10px;
    margin: 10px 0px 15px 0px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04),
      0 0 8px rgba(0, 0, 0, 0.04);
    border-left: 10px solid var(--secondary-green);
    border-right: 1px solid var(--white-grey);
  }

  .product-card.order-card {
    border-left: 10px solid var(--secondary-grey);
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
  }

  .product-card .label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .stock,
  .custom {
    border-radius: 10px;
    padding: 15px 30px;
  }

  .view-more-stock {
    border-radius: 10px;
    height: 58px;
  }

  .view-more {
    border-radius: 10px;
    height: 58px;
  }
}

.product-card .product-title {
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  margin-bottom: 15px;
}

.product-card .details-row {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
}

.product-card .details-row div {
  flex: 1;
}

.product-card .quantity-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.product-card .qty-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.product-card .qty-selector button {
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
}

.product-card .qty-selector input {
  width: 60px;
  text-align: center;
  margin: 0;
  font-size: 16px;
  border: none;
  background: transparent;
}

.product-card .order-button .icon img {
  width: 30px;
  height: 30px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.card-header .icon-star {
  color: #44c767;
  font-size: 20px;
}

.card-header h2 {
  flex-grow: 1;
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.card-header .icon-info {
  color: #888;
  font-size: 18px;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.price-and-button {
  display: flex;
  align-items: end;
  justify-content: center;
}

.action-row>div {
  flex: 1;
}

.label {
  font-size: 16px;
  margin-bottom: 6px;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 32px;
  overflow: hidden;
  max-width: 140px;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.qty-selector input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
}

.add-button {
  background-color: var(--secondary-green);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.add-button:hover {
  opacity: 0.4;
}

.add-button img {
  width: 18px;
  height: 18px;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.action-row>div {
  flex: 1;
  text-align: center;
}

.label {
  font-size: 16px;
  margin-bottom: 8px;
}

.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 32px;
  overflow: hidden;
  width: fit-content;
}

.qty-selector.align-left {
  margin-left: 0 !important;
  margin-right: auto !important;
  margin-top: 20px;
  margin-bottom: 30px;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.qty-selector input {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
}

.product-card .order-button {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 100px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  padding: 0;
  height: 45px;
  font-family: var(--font-primary);
  height: 38px;
}

.product-card .order-button .text {
  background-color: var(--secondary-green);
  color: white;
  font-weight: bold;
  padding: 0 30px;
  font-size: 14px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
}

.product-card .order-button .icon {
  background-color: var(--light-green);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .product-card {
    display: none;
  }
}


/*=== RIGIDOS ===*/
.quote-request {
  margin: 40px auto;
  max-width: 1200px;
}

.quote-request p {
  margin-bottom: 15px;
}

.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.checkboxes label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--secondary-grey);
}

.checkboxes input {
  margin-right: 5px;
}

.message-box textarea {
  width: 100%;
  height: 250px;
  padding: 15px;
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  color: var(--secondary-grey);
  font-family: var(--font-primary);
}

.message-box :focus-visible {
  outline: var(--secondary-grey-alpha) auto 1px;
}

.submit-button {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.submit-button button {
  background: var(--secondary-green);
  color: white;
  padding: 12px 40px;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-button button:hover {
  opacity: calc(0.9);
}


@media (max-width: 1199px) {
  .quote-request {
    margin: 30px;
  }
}

/* == EDGES == */
.edit {
  width: 100px;
  border: none;
  font-family: var(--font-primary);
  font-size: 16px;
  background-color: transparent;
}

.custom-select-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.custom-select-wrapper {
  cursor: default;
}

.custom-select-input {
  cursor: text;
}

input {
  font-family: var(--font-primary);
}

.order-button:disabled,
.order-button.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.view-more .error-text {
  font-size: 14px;
  color: red;
  cursor: auto;
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input[type=number] {
  --moz-appearance: textfield;
}


/* == PRODUCT INFO == */
.container-product-info {
  display: flex;
  justify-content: center;
}

.product-container {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.image-box {
  background: var(--white-alpha);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.image-box-product {
  width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image-area {
  width: 100%;
  max-width: 550px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .main-image-area {
    max-width: 100%;
  }
}

#mainImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
}

.thumbnails-wrapper {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 #f5f5f500;
}

.thumbnails-wrapper::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
  border-radius: 4px;
}

@media (min-width: 700px) {
  .thumbnails-wrapper::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 460px) {
  .thumbnails-wrapper {
    justify-content: flex-start;
  }
}

.thumbnails {
  gap: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.thumbnails img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
  flex: 0 0 auto;
}

.thumbnails img.active {
  border: 2px solid var(--secondary-green, #3a7d5d);
}

@media (max-width: 600px) {
  .thumbnails-wrapper {
    width: 100%;
    min-width: 0;
  }
}

/************/

.content {
  flex: 2 1 400px;
  padding: 20px;
}

.arrow-item {
  height: 10px;
  width: 10px;
}

.download-icon img {
  width: 24px;
  height: 24px;
}

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  background-color: var(--secondary-green);
  color: white;
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}

.btn {
  transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}

.order-button {
  transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.order-button:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  header {
    padding: 10px;
  }

  .icons {
    margin-top: 10px;
  }

  .container {
    margin-top: 30px;
  }

  .btn {
    display: block;
    margin: 20px auto 0 auto;
  }

  .material-options {
    margin-bottom: 10px;
  }

  .material-category {
    height: 120px;
  }

  .material {
    height: 120px;
  }
}

.content-mobile {
  font-size: 14px;
}

@media (max-width: 1014px) {
  .content {
    text-align: center;
  }

  .content-mobile {
    display: none !important;
  }

  .product-section {
    padding: 0;
    padding-top: 1px;
  }

  .qty-selector.align-left {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .order-button.adicionar {
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }
}

@media (max-width: 938px) {
  .material-options {
    justify-content: start;
  }
}

/* Search Bar */
.search-bar-container {
  display: flex;
  align-items: center;
  max-width: 100%;
  width: 100%;
  background: #fff;
  border: 1.5px solid #D9D9D9;
  border-radius: 30px;
  padding: 0 0 0 24px;
  height: 48px;
  position: relative;
  transition: all 0.3s;
}

.search-bar-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #343A46;
  font-size: 16px;
  outline: none;
  height: 100%;
  font-family: var(--font-primary);
}

.search-bar-input::placeholder {
  color: #B0B0B0;
  opacity: 1;
  font-family: var(--font-primary);
}

.search-bar-icons {
  display: flex;
  align-items: center;
  margin-right: 16px;
}

.search-bar-icons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar-icons img {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.search-bar-icons button:hover {
  opacity: 0.8;
}

.search-suggestions {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
  padding: 5px 28px 18px 28px;
  z-index: 1000002;
  font-family: var(--font-primary);
  color: #343A46;
  margin-top: -5px;
  text-align: left;
  transform: translateZ(0);
}

.search-suggestions strong {
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.search-suggestions li {
  font-size: 14px;
  color: #343A46;
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
  font-weight: normal;
}

.search-suggestions li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #343A46;
  font-size: 18px;
  font-weight: normal;
}

.container-centered {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.container-centered h1 {
  margin-bottom: 25px;
}

.container-centered p {
  color: var(--dark-grey);
  font-size: 14px;
}

.filter-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.filter-icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.filters-panel {
  margin-top: 18px;
  margin-bottom: 32px;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters-row {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
  flex-wrap: wrap;
  align-items: center;
}

.filters-title-green {
  color: var(--secondary-green);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  margin-top: 20px;
}

.filters-title-green img {
  width: 24px;
  height: 24px;
}

.filters-title-grey {
  color: var(--secondary-grey);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  margin-top: 20px;
}

.filters-title-grey img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.filter-select {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 100%;
  padding: 14px 24px;
  border: 1.5px solid #E2E2E2;
  border-radius: 30px;
  background: #fff url('../svg/selector.svg') no-repeat right 24px center;
  background-size: 18px 18px;
  padding-right: 48px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  overflow: hidden;
  font-size: 16px;
  color: #6D717A;
  font-family: var(--font-primary);
  margin-bottom: 0;
  outline: none;
  height: 56px;
  border-radius: 999px !important;
}

.filter-select:focus {
  outline: var(--light-grey) auto 1px;
}

@media (max-width: 900px) {
  .filters-row {
    gap: 12px;
    align-items: stretch;
  }

  .filter-select {
    min-width: 100%;
  }
}

.filters-orla-row {
  display: none;
}

/* PAGINA CATEGORIAS DE PRODUTO */
.categories-section {
  text-align: center;
  width: 100%;
}

.subcategories-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 60px;
}

@media (max-width: 1090px) {
  .subcategories-chips {
    display: flex;
    justify-content: left;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    cursor: pointer;
  }

  .subcategories-chips::-webkit-scrollbar {
    height: 6px;
  }

  .subcategories-chips::-webkit-scrollbar-track {
    background: transparent;
  }

  .subcategories-chips::-webkit-scrollbar-thumb {
    background-color: var(--light-grey);
    border-radius: 4px;
  }

  .subcategories-chips::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-grey);
  }
}

.chip {
  border: 1px solid var(--light-grey);
  color: var(--secondary-grey-alpha);
  background: var(--white);
  font-family: var(--font-primary);
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 40px;
  flex-shrink: 0;
}

.chip span {
  text-align: center;
}

.chip.active {
  background: var(--secondary-green);
  border: 1px solid var(--secondary-green);
  color: #fff;
  font-weight: bold;
}

.chip:hover {
  opacity: 0.8;
}

.chip-more {
  border: 1px solid var(--secondary-green);
  color: var(--secondary-green);
  background: var(--white);
  font-family: var(--font-primary);
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 40px;
  flex-shrink: 0;
  font-weight: 400;
}

.chip-more:hover {
  opacity: 0.8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 300px));
  gap: 62px;
  justify-content: center;
  width: 100%;
}

.products-grid>div {
  width: 300px;
  min-width: 0;
}

.product-cards {
  background: #fff;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 300px;
  min-width: 0;
}

.product-cards .badge {
  position: absolute;
  right: 0;
  background: var(--secondary-green);
  color: #fff;
  font-size: 14px;
  padding: 7px 18px 6px 18px;
  font-weight: bold;
  z-index: 4;
}

/*
.product-cards img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}*/

.product-main-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-info {
  text-align: left;
  width: 100%;
  padding-left: 0;
  margin: 18px 0 0 0;
}

.product-info strong {
  font-size: 16px;
  margin-bottom: 2px;
  font-weight: bold;
  color: #343A46;
  display: block;
}

.product-info span {
  color: #343A46;
  font-size: 16px;
  display: block;
  margin-top: 2px;
}

a .product-info strong {
  font-weight: bold;
}

a .product-info span {
  font-weight: normal !important;
}

.products-sections {
  width: 100%;
}

.products-section {
  display: none;
}

.products-section.active {
  display: block;
}

/* HOVER OVERLAY PRODUCTS */
.product-cards {
  position: relative;
}

.product-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.product-image-link img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.product-cards:hover .product-image-link img {
  box-shadow: none;
}

.product-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 10px 0 rgba(137, 155, 136, 0.3);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.hover-icons {
  padding-top: 230px;
  display: flex;
  gap: 15px;
}

.hover-icons-swipper {
  padding-top: 175px;
  display: flex;
  gap: 15px;
}

.product-hover-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.product-cards:hover .product-hover-overlay {
  opacity: 1;
  transform: scale(1.1);
}

.product-hover-icon {
  background: var(--white-grey);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: none;
}

.product-hover-icon:hover {
  transform: scale(1.2);
}

.product-hover-icon img {
  width: 20px;
  height: 20px;
  border: none
}

@media (max-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(3, 300px);
  }
}

@media (max-width: 1050px) {
  .products-grid {
    grid-template-columns: repeat(2, 300px);
  }
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: repeat(1, 300px);
  }
}

@media (max-width: 900px) {
  .banner-title {
    display: none;
  }

  .banner-products {
    height: 200px;
  }

  .image-box-product img#mainImage {
    width: 100%;
    height: 100%;
  }

  .banner-surfaces {
    height: 200px;
  }

  .banner-edges {
    height: 200px;
  }

  .banner-marcas-placa {
    height: 200px;
  }

}

@media (max-width: 768px) {
  .banner-products {
    height: 80px;
  }

  .banner-surfaces {
    height: 80px;
  }

  .banner-edges {
    height: 80px;
  }

  .banner-marcas-placa {
    height: 80px;
  }

  .subcategories-chips {
    margin-bottom: 30px;
  }
}

@media (max-width: 700px) {
  .product-image-link img {
    width: 300px;
    height: 300px;
  }

  .products-grid>div {
    width: 300px;
  }
}

/* === QR CODE MODAL === */
.qrcode-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.qrcode-modal {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  padding: 40px 60px 40px 60px;
  max-width: 80vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: modalIn 0.25s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.qrcode-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  color: #343A46;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.qrcode-modal-close:hover {
  color: #4CD28A;
}

.qrcode-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.qrcode-modal-content h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #343A46;
  ;
}

.qrcode-modal-content ol {
  margin: 0 0 12px 0;
  padding-left: 18px;
  color: #343A46;
  font-size: 14px;
}

.qrcode-modal-instructions ol li::marker {
  font-weight: bold;
}

.qrcode-modal-img {
  width: 90px;
  height: 90px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .qrcode-modal {
    width: 98vw;
    padding: 60px 45px 40px 40px;
    border-radius: 18px;
  }

  .qrcode-modal-content h2 {
    font-size: 16px;
  }

  .qrcode-modal-img {
    width: 60px;
    height: 60px;
  }
}

.qrcode-modal-overlay[aria-hidden="true"] {
  display: none !important;
}

.qrcode-modal-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  height: 100%;
}

.qrcode-modal-instructions {
  flex: 2;
  min-width: 180px;
}

.qrcode-modal-img-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-modal-img {
  width: 120px;
  height: 120px;
  margin: 0;
}

.qrcode-modal-close img {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .qrcode-modal-flex {
    flex-direction: column;
    gap: 12px;
  }

  .qrcode-modal-img {
    width: 60px;
    height: 60px;
  }
}

.bottom-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 70px;
  background: #fff;
  display: flex;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
  border-top: 1px solid #e0e0e0;
}

.bottom-action {
  flex: 1 1 50%;
  height: 100%;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-primary);
}

.bottom-action.left {
  color: #6d717a;
  border-right: 1px solid #e0e0e0;
}

.bottom-action.right {
  color: #4CD28A;
}

.bottom-action img {
  width: 28px;
  height: 28px;
  display: inline-block;
}

@media (max-width: 600px) {
  .bottom-actions {
    height: 60px;
  }

  .bottom-action img {
    width: 22px;
    height: 22px;
  }

  .bottom-action {
    font-size: 12px;
  }
}

/* === MODAL CUSTOM === */
.qrcode-scan-area {
  width: 100vw;
  height: 50vw;
  max-width: 400px;
  max-height: 400px;
  margin: 40px auto 40px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .qrcode-scan-area {
    width: 90vw;
    height: 40vw;
    min-height: 220px;
    margin-top: 28px;
    margin-bottom: 20px;
  }
}

.bottom-action {
  color: var(--secondary-green);
}

#reader__scan_region>div,
#reader__dashboard_section_csr {
  display: none !important;
}

#reader__scan_region canvas+canvas {
  display: none !important;
}

#reader__scan_region,
#reader__scan_region video,
#reader__scan_region canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 20px !important;
  object-fit: cover !important;
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 400px;
  width: 90vw;
  padding: 32px 20px 20px 20px;
  position: relative;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.custom-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

/* === MODAL IMAGE === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  border-radius: 30px;
  max-width: 1200px;
  width: 95vw;
  position: relative;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 0;
}

.modal-close img {
  width: 24px;
  height: 24px;
  display: block;
}

.cart-modal-product {
  display: flex;
  gap: 24px;
  margin: 40px 40px 0px 40px;
  align-items: center;
}

.cart-modal-img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #eee;
}

.cart-modal-info {
  flex: 1;
  text-align: left;
  min-width: 180px;
  font-family: var(--font-primary);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-modal-nome {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-grey);
  line-height: 1;
  margin-bottom: 5px;
}

.cart-modal-subtitulo {
  color: #888;
  padding-bottom: 10px;
}

.cart-modal-details span {
  font-weight: 600;
}

.cart-modal-preco {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-grey);
  line-height: 1;
  padding-top: 10px;
}

.cart-modal-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cart-modal-qty button {
  border: none;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 18px;
}

.cart-modal-btn {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--secondary-green);
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  border-radius: 25px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  text-align: center;
  transition: opacity 0.3s ease;
}

.cart-modal-btn:hover {
  opacity: 0.8;
}

.cart-modal-btn:not(:last-child) {
  border-right: 1px solid #eee;
}

.cart-modal-header {
  padding: 40px 40px 0 40px;
}

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content #mainImage {
  width: auto !important;
  height: auto !important;
  max-width: 80vw !important;
  max-height: 80vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 16px;
  box-shadow: none;
  background: none;
  display: block;
  margin: 0 auto;
}

.image-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.image-modal-close img {
  width: 36px;
  height: 36px;
  display: block;
}

/* PESQUISAS */
.search-title {
  color: var(--dark-grey);
  text-align: center;
  margin-bottom: 60px;
  margin-top: 60px;
  font-size: 25px;
}

.search-paragraph {
  color: var(--secondary-green);
  font-size: 14px;
  text-align: center;
  margin-bottom: 60px;
  margin-top: 60px;
}

.products-grid-btn {
  margin-top: 60px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-header p {
  text-align: center;
  flex: 1;
  margin: 0;
}

.filter-header .filter-icon-btn {
  margin-left: 20px;
}


/* FILTROS DA PÁGINA EDGES */
.edges-page .filters-panel {
  display: flex;
}

.edges-page .filters-orla-row {
  display: flex;
}

.filters-panel-edges {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  margin-top: 16px;
}

.filters-orla-row-edges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-select-edges {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.filter-icon-btn-edges {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-icon-btn-edges img {
  width: 24px;
  height: 24px;
}

.filter-icon-btn-edges:hover {
  opacity: 0.8;
}

.highlight-row {
  background-color: #5eca8f2c;
  color: #fff !important;
  transition: background 0.5s;
}

.similar-row {
  background: #5eca8f2c !important;
  transition: background 0.5s;
}

.image-edges-sample {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 30px;
  display: block;
  margin-top: 20px;
}

/* ORLAS MARCA DA PLACA*/
.orlas-menu {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 32px 0 24px 0;
}

.orla-card {
  background: var(--white);
  border: 3px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px 32px 18px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  cursor: pointer;
}

.orla-card.selected {
  border-color: var(--secondary-green);
}

.orla-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--dark-grey);
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}

.orla-img {
  width: 160px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.filters-row .filter-select {
  width: 100%;
  max-width: 100%;
}

/* FULLSCREEN IMAGE */
.fullscreen-overlay {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.4s;
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

.fullscreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fullscreen-overlay img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  object-position: center;
}

.fullscreen-info {
  text-align: center;
  margin-top: 32px;
}

.fullscreen-info h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.fullscreen-info p {
  color: var(--white);
  margin: 0;
}


.material-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-button {
  display: none;
}

.material.active+.video-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  margin-top: 10px;
  background-color: var(--secondary-green);
  padding: 5px 16px 5px 20px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  width: fit-content;
  opacity: 1;
}

.video-button img {
  width: 24px;
  height: 24px;
}

.video-button:hover {
  opacity: 0.8;
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1600px;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 15px;
  cursor: pointer;
  z-index: 2;
}

@keyframes pingPong {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(20px);
  }

  100% {
    transform: translateY(0);
  }
}

.scroll-down {
  animation: pingPong 2s ease-in-out infinite;
}


@media (max-width: 1500px) {

  .products-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .chip {
    font-size: 12px;
    padding: 8px 18px;
    height: 35px;
  }

  .product-cards .badge {
    font-size: 10px;
  }

  .product-info strong {
    font-size: 14px;
  }

  .product-info span {
    font-size: 14px;
  }

  .search-title {
    margin-bottom: 40px;
    margin-top: 40px;
  }
}

/* Modal Favoritos */
.favorite-modal {
  max-width: 1000px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  margin: auto;
}

.close-fav-modal {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.close-fav-modal:hover {
  opacity: 0.9;
}

.favorite-modal-message {
  font-weight: 400;
  font-size: 16px;
  text-align: left;
  color: var(--dark-grey);
  padding: 40px;
}

.favorite-modal-product {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 35px 0 25px 0;
}

.favorite-modal-product img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

.favorite-modal-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 2px;
}

.favorite-modal-desc {
  color: var(--dark-grey);
  font-size: 16px;
  margin-bottom: 2px;
}

.view-favorites-btn {
  display: block;
  width: 100%;
  background: var(--secondary-green);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 0;
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.view-favorites-btn:hover {
  opacity: 0.9;
}

.cart-sidebar-product {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 700px;
  background: #fff;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.cart-sidebar-product.open {
  transform: translateX(0);
}

.cart-modal-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-top: auto;
  background: #fff;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  padding: 30px 40px 30px 40px;
  background-color: #f8f9faf0;
  z-index: 2;
  box-shadow: 0 -2px 16px 0 rgb(0 0 0 / 8%);
  border-radius: 0 0 20px 20px;
}

.cart-modal-combinar {
  margin-bottom: 40px;
}

.cart-sidebar-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 600px) {
  .cart-sidebar-product {
    width: 100vw;
  }

  .cart-modal-actions {
    flex-direction: column;
    gap: 12px;
    justify-content: stretch;
  }
}

.combinar-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 6px;
}

.combinar-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  justify-items: center;
  padding: 0 40px 0 40px;
}

.combinar-item {
  width: 100%;
}

.combinar-nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-grey);
}

.combinar-ref {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary-grey);
}

.combinar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-grey);
  margin-bottom: 25px;
  padding: 0 40px 0 40px;
}

.cart-modal-extra {
  padding: 16px 40px 20px 40px;
  border-bottom: 1px solid #d9d9d982;
  margin-bottom: 20px;
}

.cart-modal-extra-label {
  display: block;
  font-size: 13px;
  color: var(--secondary-grey);
  margin-bottom: 4px;
}

.cart-modal-extra-textarea {
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 14px;
  resize: none;
  font-family: var(--font-primary);
  background: #fafafa;
  box-sizing: border-box;
}

.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s;
}

.card-close {
  display: none;
}

.card-close.visible {
  display: block;
}

@media (max-width: 600px) {
  .cart-modal-product {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .cart-modal-img {
    width: auto !important;
    margin: 0 !important;
    display: block;
    order: 0;
  }

  .cart-modal-info {
    width: 0;
    min-width: 120px;
    flex: 1 1 0;
    margin: 0 !important;
    order: 1;
  }

  .cart-modal-qty {
    width: 100% !important;
    margin: 12px 0 0 0 !important;
    justify-content: flex-start !important;
    order: 2;
  }
}

.expand-main-image {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 450px) {
  .main-image-area {
    aspect-ratio: unset;
    height: auto;
    max-width: 100vw;
  }

  #mainImage {
    height: auto;
    max-width: 100vw;
    object-fit: contain;
  }
}

@media (max-width: 582px) {
  .image-box-product {
    width: 100%;
  }
}


/*variações de produto*/
.product-variations {
  display: flex;
  gap: 2px;
  margin-top: 10px;
}

.variation-thumb {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s ease;
  border-radius: 5px;
}

.variation-thumb:hover {
  opacity: 0.8;
}

.variation-thumb.selected {
  border-color: var(--light-green);
}

/* === PERFECT MATCH SECTION (MARCAS PLACA) === */

.section-perfect-match {
  background-color: var(--white-grey-alpha);
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.pm-back-wrapper {
  max-width: 1240px;
  margin: 0 auto 10px auto;
}

.pm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-green);
  text-decoration: none;
  font-weight: 600;
  width: 10px;
  height: 10px;
}

.pm-header {
  text-align: center;
  margin: 10px auto 24px auto;
  max-width: 900px;
}

.pm-title {
  font-size: 26px;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
  color: var(--dark-grey);
}

.pm-title-icon {
  height: 18px;
  vertical-align: middle;
  margin-left: 6px;
}

.pm-subtitle {
  font-size: 22px;
  margin: 0 0 8px 0;
  color: var(--dark-grey);
  font-weight: 400;
  margin-bottom: 30px;
}

.pm-desc {
  color: var(--dark-grey);
  font-size: 14px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 40px auto 6px auto;
}

.pm-card-link {
  display: block;
  text-decoration: none;
}

.pm-card-link:hover {
  cursor: pointer;
  text-decoration: none;
}

.pm-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pm-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-ref {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  background: #fff;
  color: var(--secondary-grey);
  text-align: center;
  border-top: none;
  padding: 0;
  font-weight: 400;
  font-size: 14px;
}

.pm-card-match {
  border: 5px solid var(--secondary-green);
}

.pm-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
}

.pm-badge-white {
  background: #fff;
  color: #343A46;
}

.pm-badge-green {
  background: var(--secondary-green);
  color: #fff;
  font-family: var(--font-primary);
}

.pm-card:not(.pm-card-match) .pm-badge-white {
  left: 50%;
  transform: translateX(-50%);
}

.pm-match-ref {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 70px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343A46;
  right: auto;
  text-align: center;
  z-index: 3;
  font-weight: 400;
  font-family: var(--font-primary);
}

.pm-match-ref-image {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 70px;
  background: rgba(255, 255, 255, 0.95);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343A46;
  right: auto;
  text-align: center;
  z-index: 3;
  font-weight: 400;
  font-family: var(--font-primary);
  opacity: 0.8;
}

.pm-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-green);
  display: inline-block;
  position: relative;
}

.pm-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pm-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  background: var(--secondary-green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding-top: 5px;
  font-size: 14px;
  font-family: var(--font-primary);
}

.pm-note {
  text-align: center;
  font-size: 12px;
  color: var(--secondary-grey);
  margin: 40px 0 0 0;
}

.pm-note-2 {
  text-align: center;
  font-size: 12px;
  color: var(--secondary-grey);
  margin: 0;
}

@media (max-width: 900px) {
  .pm-grid {
    grid-template-columns: 1fr;
    padding: 0 100px;
  }
}

@media (max-width: 700px) {
  .pm-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

@media (max-width: 400px) {
  .pm-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
}

/* Center badge only on the MATCH card */
.pm-card-match .pm-badge-green {
  left: 50%;
  transform: translateX(-50%);
}

/* === PM CARD FLIP === */
.pm-flip {
  perspective: 1200px;
}

.pm-flip-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
  min-height: 360px;
}

.pm-flip.is-flipped .pm-flip-inner {
  transform: rotateY(180deg);
}

.pm-flip-front,
.pm-flip-back {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.pm-flip-front {
  display: block;
}

.pm-flip-front .pm-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: unset;
}

.pm-flip-back {
  transform: rotateY(180deg);
  background: #fff;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.pm-card-back-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pm-card-back-content h3 {
  margin: 0;
  color: var(--dark-grey);
  font-size: 18px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.pm-flip-back .contact-form {
  max-width: 500px;
}

.pm-form-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pm-form-actions .btn {
  margin-top: 0;
}

.btn-cancel {
  background: #6D717A;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.floating-label-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  padding: 12px 10px 10px 10px;
  border: none;
  border-bottom: 2px solid #d9d9d9;
  background: transparent;
  font-size: 14px;
  color: var(--secondary-grey);
  font-family: var(--font-primary);
}

.form-input:focus {
  outline: none;
  border-color: #6D717A;
}

.floating-label-group label {
  position: absolute;
  top: 12px;
  left: 10px;
  font-size: 13px;
  color: #6D717A;
  transition: all 0.2s ease;
  pointer-events: none;
  background: transparent;
}

.form-input:focus+label,
.form-input:not(:placeholder-shown)+label {
  top: -8px;
  left: 8px;
  font-size: 11px;
  background: #fff0;
}

.pm-flip-trigger .pm-cta {
  pointer-events: none;
}