.header>.bg {
  background-color: var(--header-bg);
  border-bottom: 1px solid #a4a4a430;
}

.header .line {
  height: 110px;
  transition: 0.3s ease-out;
}

@media (max-width: 767px) {
  .header .line {
    flex-wrap: wrap;
    justify-content: flex-start;
    height: 126px;
  }

  .header-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 0;
    flex-shrink: 0;
    width: 22px;
    height: 20px;
    margin-right: 28px;
    cursor: pointer;
  }

  .header-menu div {
    width: 100%;
    height: 2px;
    background-color: var(--color-header-highlight);
  }
}

@media (min-width: 768px) {
  .header-menu {
    display: none;
  }
}

.header .logo {
  display: block;
  flex-shrink: 0;
  font-size: 0;
}

.header .logo img {
  width: auto;
  height: auto;
}

@media (max-width: 768px) {
  .header .logo {
    margin: 0 auto;
    max-width: calc(100% - 128px);
  }

  .header .logo img,
  .header .logo svg {
    max-width: 100%;
    max-height: 62px;
    transition: 0.3s ease-out;
  }
}

@media (min-width: 1520px) {

  .header .logo img,
  .header .logo svg {
    max-width: 100%;
    max-height: 82px;
    transition: 0.3s ease-out;
  }
}

@media (min-width: 768px) {
  .header[data-logo='left'] .logo {
    margin-right: 2.575rem;
    max-width: 260px;
  }
}

@media (min-width: 768px) and (max-width: 1520px) {

  .header .logo img,
  .header .logo svg {
    max-width: 90%;
    max-height: 74px;
    transition: 0.3s ease-out;
  }
}

.header-search-wrapper {
  position: relative;
  width: 100%;
  z-index: 2;
}

@media (max-width: 767px) {
  .header .header-search-wrapper {
    order: 3;
    margin-bottom: 10px;
  }
}

header .header-search-wrapper .input-search {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 28px 0 34px;
  font-size: 0.825rem;
  font-weight: 400;
  border-radius: 8px;
  color: var(--global-color);
  background: #fff;
  border: 1px solid #d5d5d5cc;
  box-shadow: 0 2px 2px #0000000a;
}

@media (max-width: 500px) {
  .header .header-search-wrapper .input-search {
    font-size: 16px;
    height: 42px;
  }
}

.header-search-wrapper .button-search {
  position: absolute;
  width: 58px;
  height: 100%;
  top: 0;
  right: 6px;
  font-size: 20px;
  color: var(--primary-color);
  background-color: transparent;
}

@media (max-width: 768px) {
  .header-search-wrapper .button-search {
    position: absolute;
    width: 58px;
    height: 100%;
    top: 0;
    right: 0;
    font-size: 20px;
    color: var(--primary-color);
    background-color: transparent;
  }
}

@media (min-width: 1520px) {
  .header .header-search-wrapper {
    max-width: 660px;
    margin: 0 40px 0 auto;
  }
}

@media (min-width: 768px) {
  .options-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
  }
}

.options-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-content: center;
  align-items: center;
  max-width: 400px;
}

@media (max-width: 767px) {

  .header .account,
  .options-wrapper {
    display: none;
  }
}

.drop-help {
  position: relative;
  display: flex;
  z-index: 99;
  margin: 0 10px;
  align-items: center;
  cursor: pointer;
}

.drop-help::before {
  content: '';
  display: block;
  bottom: -24px;
  left: 0;
  width: 100%;
  height: 30px;
  position: absolute;
}

.drop-help .material-icons {
  margin-right: 12px;
  width: 32px;
  display: flex;
  align-items: center;
  height: 30px;
  color: var(--color-header-highlight);
}

.drop-help .material-icons,
.drop-help svg {
  margin-right: 12px;
  width: 20px;
  height: 42px;
  fill: var(--color-header-highlight);
}

.drop-help>p {
  color: var(--header-color-font);
  text-align: left;
  align-items: center;
  font-weight: 400;
  line-height: 0.925rem;
  font-size: 0.775rem;
  margin: 0;
}

.drop-help ul {
  position: absolute;
  height: auto;
  width: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #00000017;
  left: -54px;
  top: 46px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  animation: Ab 0.15s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  -ms-transform-origin: top center;
  transform-origin: top center;
  padding: 16px 20px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: 0.2s;
  min-width: 270px;
  z-index: 999;
}

.drop-help:hover ul {
  opacity: 1;
  visibility: visible;
}

.box-contact {
  padding: 6px 0;
  border-bottom: 1px solid #0000000f;
}

.contact-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--global-color);
}

.box-contact p,
.contact-item p {
  font-size: 0.755rem;
}

.contact-whats {
  margin: 10px 0;
  padding: 10px 0;
  border-bottom: 1px solid #0000000f;
}

.contact-whats .contact-item {
  margin-top: 10px;
}

.drop-help ul .box-contact.contact-whats {
  border-top: 1px solid #ececec;
  padding: 10px 0;
  margin: 10px 0;
  border-bottom: 1px solid #ececec;
}

.wpp-title {
  font-weight: 600;
  opacity: 1;
}

.contact-right {
  line-height: 12px;
}

.contact-right>b {
  font-weight: 500;
  font-size: 12.8px;
  color: var(--global-color);
  opacity: 0.825;
}

.contact-mail {
  padding: 2px 0 10px;
  border-bottom: 1px solid #eee;
}

.account {
  position: relative;
  height: 40px;
  cursor: pointer;
  margin: 0 10px;
  z-index: 99;
}

.account svg {
  fill: var(--color-header-highlight);
  margin-right: 14px;
  width: 30px;
  height: 28px;
}

.account .login-links span,
.account a,
.account div {
  color: var(--global-color);
  font-size: 0.81rem;
  transition: 0.2s ease-out;
  line-height: 0.925rem;
}

.account span {
  color: var(--global-color);
  font-size: 0.775rem;
  font-weight: 400;
}

.account div>span {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  min-height: 17px;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  color: var(--header-color-font);
}

.account .account-name {
  font-weight: 400;
  font-size: 0.775rem;
}

.account .dropdown-account {
  background: #fff;
  border: 1px solid #ededed;
  top: 48px;
  left: -12px;
  z-index: 1020;
}

.account .dropdown-account {
  position: absolute;
  width: 240px;
  border-radius: 3.2px;
  text-align: center;
  z-index: 999;
  transition: all 0.15s;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.18);
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s;
}

.account .logged {
  padding: 0px 16px;
}

.account .not-logged {
  padding: 16px 16px;
}

.account:hover .dropdown-account {
  opacity: 1;
  visibility: visible;
  transition: all 0.15s;
}

.account .dropdown-account::before,
.drop-help ul::before {
  width: 0;
  height: 0;
  content: '';
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
  top: -12px;
  margin-right: -12px;
  position: absolute;
  right: 50%;
}

.account .dropdown-account .dropdown-account-header .cta-register {
  color: var(--global-color);
  margin-top: 8%;
  line-height: 1.5;
}

.account .dropdown-account .dropdown-account-header .cta-register a {
  color: var(--color-font-theme);
}

.account .dropdown-account .dropdown-account-header h4 {
  font-size: 20px;
  font-weight: 300;
  margin: 0;
}

.account .dropdown-account .account-links {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
}

.account .dropdown-account .account-links a {
  font-weight: 500;
}

.link-text {
  font-size: 14px !important;
}

.account .dropdown-account .account-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-underline-offset: 1px;
}

.account-env-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  background: var(--primary-color);
  border: none;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.account-env-btn:hover {
  opacity: 0.92;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.account-env-btn--outline {
  background: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}
.account-env-btn--outline:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-color) !important;
}

.header .cart-toggle {
  margin-left: 1.4rem;
  flex-shrink: 0;
  transition: 0.2s ease-out;
  width: 84px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.cart-toggle svg {
  fill: var(--color-header-highlight);
  width: 40px;
  height: 32px;
}

.header .cart-toggle .cart-quantity {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  line-height: 28px;
  text-align: center;
  font-size: 0.775rem;
  font-weight: 600;
  vertical-align: middle;
  color: var(--header-cart-color);
  background-color: var(--color-header-highlight);
}

.color-font-theme {
  color: var(--color-font-theme) !important;
}

@media (max-width: 767px) {
  .header .cart-toggle {
    order: 2;
    margin-left: 0;
    width: 60px;
  }
}

@media (max-width: 500px) {
  .cart-toggle svg {
    width: 26px !important;
    height: 26px;
  }
}

@media (max-width: 767px) {
  .header .cart-toggle .cart-quantity {
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
  }
}

/* Modal de boas-vindas ao ambiente */
.env-welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.env-welcome-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.env-welcome-modal__content {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.env-welcome-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.env-welcome-modal__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.env-welcome-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #666;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.env-welcome-modal__close:hover {
  color: #333;
}

.env-welcome-modal__body {
  padding: 1.5rem;
}

.env-welcome-modal__body p {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.5;
}

.env-welcome-modal__tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 0.875rem;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
}

.env-welcome-modal__tip svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.env-welcome-modal__footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.env-welcome-modal__btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color, #000);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.env-welcome-modal__btn:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .env-welcome-modal {
    padding: 0.75rem;
  }
  
  .env-welcome-modal__content {
    max-width: 100%;
  }
  
  .env-welcome-modal__header,
  .env-welcome-modal__body,
  .env-welcome-modal__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .env-welcome-modal__footer {
    padding-bottom: 1rem;
  }
}
