@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container-flex {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: black;
}

body {
  font-family: "Montserrat", sans-serif;
}

.header {
  padding: 0;
  background-color: #fff;
}

.header__img {
  max-width: 100px;
  width: 100%;
}

.header__logo {
  font-size: 15px;
  font-weight: 600;
}

.header__basket {
  text-decoration: none;
}

.header__basket-img {
  width: 60px;
  padding-top: 20px;
}

.header__cost {
  border-radius: 50px;
  background-color: rgb(207, 57, 57);
  width: 17px;
  height: 17px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  position: absolute;
  right: 10px;
  bottom: 50px;
}

.header__cost-mini {
  border-radius: 50px;
  background-color: rgb(207, 57, 57);
  width: 17px;
  height: 17px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  position: absolute;
  right: 33px;
  bottom: 35px;
}

.header .nav-link {
  padding: 5px;
  color: black;
}

.header .nav-link:hover {
  color: #935e7e;
  text-decoration: underline;
}

.header .navbar-toggler {
  border: none;
}

.header .navbar-toggler:active, .header .navbar-toggler :hover {
  border: none;
  color: transparent;
}

.logo {
  display: flex;
  flex-direction: column;
}

.dropdown-item:active {
  background-color: #935e7e !important;
}

.navbar-nav {
  gap: 25px;
}

@media (max-width: 992px) {
  .navbar-nav {
    gap: 0px;
  }
}

.navbar-nav .dropdown-menu {
  margin-top: 40px;
  margin-left: -100px;
}

.nav-item {
  display: flex;
  gap: 5px;
}

.b-1 {
  display: none;
}

@media (max-width: 992px) {
  .b-1 {
    display: block;
  }
}

@media (max-width: 992px) {
  .b-2 {
    display: none;
  }
}

.main__h1 {
  font-size: 30px;
  font-weight: 700;
  padding: 40px 0 15px 0;
  text-align: center;
}

@media (max-width: 380px) {
  .main__h1 {
    font-size: 27px;
  }
}

.main__txt {
  font-size: 20px;
  font-weight: 400;
  padding-bottom: 15px;
}

@media (max-width: 890px) {
  .main__txt {
    padding-bottom: 0;
  }
}

.main__nav-card {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 40px;
}

.main__nav-card:active {
  border: none;
}

@media (max-width: 860px) {
  .main__nav-card {
    padding-top: 5px;
  }
}

@media (max-width: 648px) {
  .main__nav-card {
    justify-content: center;
  }
}

.main__nav-btn {
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}

.main__h2 {
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 20px;
}

@media (max-width: 380px) {
  .main__h2 {
    font-size: 22px;
  }
}

.main__btn-fb {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: end;
  padding-bottom: 40px;
}

@media (max-width: 890px) {
  .main__btn-fb {
    padding-bottom: 30px;
    padding-top: 10px;
  }
}

.main__btn {
  cursor: pointer;
  color: white;
  background-color: #1877f2;
  border: none;
  padding: 5px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.main .btn {
  font-size: 15px;
  font-weight: 500;
  border: 2px solid black;
  border-radius: 20px;
}

.main .btn:hover {
  color: #935e7e;
  transition: 0.5s;
}

.main .btn-ng {
  border: 2px solid black;
  background-color: black;
  color: white;
}

.main .btn-ng:hover {
  color: black;
  background-color: transparent;
  border: 2px solid black;
  transition: 0.5s;
}

.txt-center {
  display: flex;
  justify-content: center;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 30%;
}

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 18%;
}

@media (max-width: 560px) {
  .card {
    width: 70%;
  }
}

@media (max-width: 380px) {
  .card {
    width: 100%;
  }
}

@media (max-width: 1070px) {
  .card {
    width: 23%;
  }
}

@media (max-width: 860px) {
  .card {
    width: 32%;
  }
}

@media (max-width: 600px) {
  .card {
    width: 48%;
  }
}

@media (max-width: 300px) {
  .card {
    width: 100%;
  }
}

.card-img-top {
  max-width: 100%;
}

.card-text {
  max-width: 240px;
  text-align: center;
}

@media (max-width: 595px) {
  .card-text {
    display: none;
  }
}

@media (max-width: 560px) {
  .card-text {
    display: block;
  }
}

@media (max-width: 300px) {
  .card-text {
    font-size: 15px;
  }
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  text-align: center;
}

@media (max-width: 595px) {
  .card-title {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .card-title {
    font-size: 20px;
  }
}

@media (max-width: 300px) {
  .card-title {
    font-size: 17px;
  }
}

.footer {
  background-color: rgba(0, 0, 0, 0.877);
  padding: 20px 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__link {
  font-size: 20px;
  font-weight: 600;
  color: white !important;
  padding: 5px;
}

.footer__link:hover {
  text-decoration: underline;
}

.main__nav-card {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.main__cost {
  padding: 5px;
  margin: 5px;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 440px) {
  .main__cost {
    font-size: 16px;
  }
}

@media (max-width: 330px) {
  .main__cost {
    font-size: 14px;
  }
}

.main__btn-group {
  display: flex;
  align-items: center;
}

.main__sign {
  width: 20px;
  padding: 0px 15px;
  background-color: transparent;
  border-radius: 50px;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  font-size: 20px;
}

@media (max-width: 580px) {
  .main__sign {
    width: 15px;
    padding: 0px 12px;
    font-size: 16px;
  }
}

.main__txt-num {
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0rem;
}

@media (max-width: 580px) {
  .main .btn {
    padding: 4px 10px;
    font-size: 14px;
  }
}

.card-wrap {
  max-height: 140px;
}

.card-img-top {
  width: 100% !important;
}

.card-text {
  max-width: 240px;
  text-align: center;
  margin-bottom: 0;
}

@media (max-width: 580px) {
  .card-text {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .card-text {
    font-size: 13px;
  }
}

@media (max-width: 530px) {
  .card-body {
    padding: 5px 5px !important;
  }
}

.card-title {
  text-align: center;
  font-size: 18px;
}

@media (max-width: 370px) {
  .card-title {
    font-size: 15px;
  }
}

.not-avaliable {
  font-size: 12px;
  background-color: rgb(207, 57, 57);
  color: white;
  padding: 5px;
  text-align: center;
  font-weight: 500;
  position: absolute;
  left: 5px;
  top: 5px;
  border-radius: 5px 0 0 0;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.category-btn {
  font-size: 18px;
  padding: 3px 12px;
  border-radius: 10px;
  color: rgb(70, 43, 43);
  background-color: transparent;
  text-decoration: none;
  color: black;
  border: 2px solid black;
  box-shadow: 2px 2px 7px black;
}

.category-btn:hover {
  color: rgb(70, 43, 43);
  border: 2px solid #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

.category-btn:active {
  color: rgb(70, 43, 43);
  border: 2px solid #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

.brisa__h1 {
  font-size: 25px;
  text-align: center;
}

.brisa__txt {
  text-indent: 2rem;
  font-size: 18px;
}

@media (max-width: 650px) {
  .brisa__txt {
    font-size: 15px;
  }
}

.plexigel {
  padding-bottom: 30px;
}

.plexigel__h2 {
  font-size: 26px;
  text-align: center;
}

@media (max-width: 600px) {
  .plexigel__h2 {
    font-size: 23px;
  }
}

@media (max-width: 430px) {
  .plexigel__h2 {
    font-size: 19px;
  }
}

.plexigel__h3 {
  font-size: 22px;
}

@media (max-width: 600px) {
  .plexigel__h3 {
    font-size: 19px;
  }
}

@media (max-width: 370px) {
  .plexigel__h3 {
    font-size: 17px;
  }
}

.plexigel__list {
  padding-bottom: 5px;
}

.creative-polish {
  padding-bottom: 30px;
}

.creative-polish__h2 {
  font-size: 26px;
  text-align: center;
}

.creative-polish__txt, .lotions__txt, .creative-gel__txt {
  text-indent: 2rem;
  font-size: 17px;
}

.acril {
  padding-bottom: 30px;
}

.acril__h2 {
  font-size: 26px;
  text-align: center;
}

.acril__txt, .shellac__txt {
  text-indent: 1rem;
  font-size: 17px;
}

.shellac__h2, .lotions__h2, .creative-gel__h2 {
  font-size: 22px;
  text-align: center;
}

/*cart*/
.cart__btn {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
}

@media (min-width: 1601px) {
  .container-flex {
    max-width: 1300px;
  }
}

@media (max-width: 1600px) {
  .container-flex {
    max-width: 1300px;
  }
}

@media (max-width: 1080px) {
  .container-flex {
    max-width: 1054px;
  }
}

@media (max-width: 1024px) {
  .container-flex {
    max-width: 1024px;
  }
}

@media (max-width: 904px) {
  .container-flex {
    max-width: 890px;
  }
}

@media (max-width: 768px) {
  .container-flex {
    max-width: 750px;
  }
}

@media (max-width: 648px) {
  .container-flex {
    max-width: 630px;
  }
}

#lang {
  text-decoration: none;
}

.lang {
  border: none;
  background-color: transparent;
  color: grey;
}

.lang:hover {
  color: #935e7e;
}

.main__h1 {
  text-align: center;
  font-size: 28px;
  padding: 15px 0;
}

@media (max-width: 500px) {
  .main__h1 {
    font-size: 23px;
  }
}

@media (max-width: 380px) {
  .main__h1 {
    font-size: 20px;
  }
}

.main__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.form-control:active {
  box-shadow: #935e7e !important;
  border: #935e7e !important;
}

/*old cart styles*/
#user-data {
  display: flex;
  flex-direction: column;
}

#user-data input {
  margin: 5px 0;
}

textarea {
  margin-top: 10px;
  padding: 0 5px;
  font-size: 1.2rem;
  border: 0;
  border-bottom: 1px solid #000;
  background: none;
  height: 100px;
}

#order_btn {
  align-self: center;
}

/*cart*/
/*cart*/
/*cart*/
/*cart*/
/*cart*/
/*cart*/

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 5px;
}

.header__cost {
  border-radius: 50px;
  background-color: rgb(207, 57, 57);
  width: 19px;
  height: 19px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  position: absolute;
  right: 10px;
  bottom: 50px;
}

.header__cost-mini {
  border-radius: 50px;
  background-color: rgb(207, 57, 57);
  width: 19px;
  height: 19px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  position: relative;
  right: -33px;
  bottom: 30px;
}

.main__cost {
  text-align: center;
  padding: 5px;
  margin: 5px;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 654px) {
  .main__cost {
    font-size: 17px;
  }
}

@media (max-width: 580px) {
  .main__cost {
    font-size: 16px;
  }
}

@media (max-width: 580px) {
  .card-title {
    font-size: 17px;
  }
}

@media (max-width: 580px) {
  .basket-card__text {
    font-size: 14px;
  }
}

@media (max-width: 440px) {
  .main__cost {
    font-size: 15px;
  }
}

.main__btn-group {
  display: flex;
  align-items: center;
  padding-bottom: 5px;
}

@media (max-width: 654px) {
  .main__sign {
    width: 15px;
    padding: 0px 12px;
    font-size: 16px;
  }
}

.main__btn {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
}

.main__btn:hover {
  background-color: transparent;
  border: 1px solid black;
}

@media (max-width: 654px) {
  .main .btn {
    padding: 4px 10px;
    font-size: 14px;
  }
}

.basket-card {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around;
  padding: 25px 0px !important;
  border: 1px solid rgba(128, 128, 128, 0.718);
  border-radius: 10px;
  gap: 10px;
  padding: 10px;
  width: 100%;
}

.basket-card__wrap {
  width: 140px !important;
}

.basket-card__img-top {
  width: 100% !important;
}

.basket-card__text {
  margin-bottom: 0;
}

@media (max-width: 654px) {
  .basket-card__text {
    max-width: 180px;
  }
}

@media (max-width: 370px) {
  .basket-card__text {
    font-size: 13px;
  }
}

.basket-card__body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 500px;
  align-items: center;
  gap: 10px;
}

@media (max-width: 530px) {
  .basket-card__body {
    padding: 5px 5px !important;
  }
}

.basket-card__title {
  font-size: 18px;
}

@media (max-width: 595px) {
  .basket-card__title {
    font-size: 18px;
  }
}

@media (max-width: 580px) {
  .basket-card__title {
    font-size: 17px;
  }
}

@media (max-width: 370px) {
  .basket-card__title {
    font-size: 15px;
  }
}

.sum {
  display: flex;
  gap: 5px;
  justify-content: end;
  font-size: 18px;
  font-weight: 600;
}

#total-sum {
  text-align: end;
}

.cart-container {
  max-width: 800px;
}

.h1, h1 {
  text-align: center;
}

.product-search-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px;
}

#product-search {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  width: 100%;
  max-width: 420px;
  padding: 8px 18px;
  border: 2px solid black;
  border-radius: 20px;
  box-shadow: 2px 2px 7px black;
  outline: none;
  background: transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#product-search::placeholder {
  color: #aaa;
  font-weight: 300;
}

#product-search:focus {
  border-color: #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

#product-search::-webkit-search-cancel-button {
  cursor: pointer;
}

@media (max-width: 500px) {
  #product-search {
    font-size: 14px;
    padding: 7px 14px;
  }
}

/* AI search button */
.ai-search-btn {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  margin-left: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: transparent;
  color: black;
  border: 2px solid black;
  box-shadow: 2px 2px 7px black;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
  white-space: nowrap;
}

.ai-search-btn:hover {
  color: #935e7e;
  border-color: #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

/* AI modal overlay */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI modal container */
.ai-modal {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 520px;
  width: 90%;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.ai-modal__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}

.ai-modal__textarea {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  width: 100%;
  min-height: 100px;
  padding: 10px 14px;
  border: 2px solid black;
  border-radius: 10px;
  box-shadow: 2px 2px 7px black;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-modal__textarea:focus {
  border-color: #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

.ai-modal__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.ai-modal__example {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 2px solid black;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.ai-modal__example:hover {
  color: #935e7e;
  border-color: #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

.ai-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ai-modal__cancel {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid black;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-modal__cancel:hover {
  border-color: #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

.ai-modal__find {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid black;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.ai-modal__find:hover:not(:disabled) {
  color: #935e7e;
  border-color: #935e7e;
  box-shadow: 2px 2px 7px #935e7e;
}

.ai-modal__find:disabled {
  opacity: 0.4;
  cursor: default;
}

.ai-modal__message {
  font-size: 14px;
  text-align: center;
  margin: 10px 0 0;
  color: #555;
}

.ai-modal__message--error {
  color: #c0392b;
}

.ai-keywords-hint {
  width: 100%;
  padding: 7px 12px;
  margin-bottom: 14px;
  background: #eef2ff;
  border-left: 4px solid #5272b8;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e6b;
  word-break: break-word;
  letter-spacing: 0.01em;
}

/* Product description icon & popup */
.card {
  position: relative;
}

.card-wrap {
  position: relative;
}

.desc-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6fa3, #ff9248);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(255, 111, 163, 0.55);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.desc-icon:hover {
  box-shadow: 0 3px 12px rgba(255, 111, 163, 0.8);
  transform: scale(1.12);
}

.desc-popup {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 10;
  overflow-y: auto;
  padding: 6px 8px 8px;
  flex-direction: column;
}

.desc-popup.active {
  display: flex;
}

.desc-popup__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  color: #555;
}

.desc-popup__close:hover {
  color: #935e7e;
}

.desc-popup__text {
  font-weight: bold;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
  overflow-wrap: break-word;
}