/* =========================================================
   STYLELAB STUDIO DEMO — PREMIUM REWRITE
   Keeps existing classes / ids / JS hooks
========================================================= */

/* ------------------------------
   Base page feel
------------------------------ */
body {
  background: linear-gradient(180deg, #f6f4f1 0%, #f3f1ed 45%, #f8f7f5 100%);
  color: #1f1f1c;
}

.flag-se,
.flag-en {
  width: 48px;
  height: auto;
}



.mobile-head-scroll,
.mobile-head-scroll.is-hidden,
.mobile-head-scroll.is-visible {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
}

.empty-wishlist-message {
  display: none;
}




/* ------------------------------
   Page container / main studio
------------------------------ */
.page-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  margin: 44px auto 36px auto;
  max-width: 1320px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 34px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ------------------------------
   Products area
------------------------------ */
.products_and_slider {
  width: 600px;
  position: relative;
  padding: 8px 0 0 0;
}

.products_and_slider .slick-list {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  margin-left: 0;
}

#products.products {
  min-height: 560px;
}

/* Cards inside product area */
.card {
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 24px;
  padding: 18px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

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

.image-container {
  display: inline-block;
  position: relative;
  text-align: center;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f5f1;
}

.image-container img,
img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 18px;
}

/* Product text blocks */
.container,
.container_2 {
  padding-top: 1em;
  color: #232320;
}

.container h5 {
  font-weight: 400;
  font-size: 15px;
  color: #5b5750;
}

.container h7,
.container h43,
.container h10 {
  display: none;
}

/* ------------------------------
   Product action icons
------------------------------ */
.fa-shirt {
  position: absolute;
  top: auto;
  bottom: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d6b43;
  border: 1px solid rgba(29, 107, 67, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transition: all 0.2s ease;
}

.fa-shirt:hover {
  transform: translateY(-1px) scale(1.03);
  background: #ffffff;
}

.heart {
  position: absolute;
  top: auto;
  bottom: 14px;
  left: 62px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transition: all 0.2s ease;
}

.heart:hover {
  transform: translateY(-1px) scale(1.03);
  background: #ffffff;
}

.pulse {
  animation: pulse 0.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* ------------------------------
   Model area
------------------------------ */
.model-wrapper {
  max-width: 520px;
  width: 100%;
  flex: 1;
  background: linear-gradient(180deg, #fbfaf8 0%, #f2efe9 100%);
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 30px;
  padding: 22px 22px 20px 22px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.07);
  position: relative;
}

.model-and-talk {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
}

.model-image {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, #efebe4 0%, #f7f5f2 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(18, 18, 18, 0.06);
}

/* ------------------------------
   Info bubbles / model messages
------------------------------ */
.info-bubble-container {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.info-bubble {
  background: rgba(25, 25, 24, 0.92);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  max-width: 220px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.button-wrapper-model {
  display: inline-flex;
  align-items: center;
}

.resetOutFitBtn {
  background-color: #f0ece6;
  color: #2a2926;
  border: 1px solid rgba(24, 24, 24, 0.10);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.resetOutFitBtn:hover {
  background-color: #e7e1d8;
}

.talk-bubble {
  flex-grow: 1;
  max-width: none;
  min-width: 250px;
  width: 350px;
  background: #f4f1eb;
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 14px;
  color: #403d37;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  font-family: inherit;
  border: 1px solid rgba(24, 24, 24, 0.06);
}

.talk-bubble::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 22px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: #f4f1eb;
}



/* ------------------------------
   Slick arrows
------------------------------ */
.slick-prev,
.slick-next {
  background-color: rgba(23, 23, 22, 0.86);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: all 0.25s ease;
}

.slick-prev:hover,
.slick-next:hover {
  background-color: rgba(23, 23, 22, 1);
  transform: translateY(-50%) scale(1.03);
}

.slick-prev {
  left: -18px;
}

.slick-next {
  right: -18px;
}

.slick-prev:before,
.slick-next:before {
  font-family: 'slick';
  font-size: 18px;
  color: white;
  opacity: 1;
}

/* ------------------------------
   Model note
------------------------------ */
.model-note {
  max-width: 980px;
  margin: 22px auto 46px auto;
  padding: 18px 22px;
  font-size: 0.95rem;
  color: #59554e;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 24, 24, 0.06);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.model-note p {
  margin: 0 0 10px 0;
  line-height: 1.7;
}

.model-note a {
  color: #1f1f1c !important;
  text-decoration: underline !important;
  font-weight: 600;
}

/* ------------------------------
   Overlay / loading bubble
------------------------------ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(20, 20, 20, 0.38);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.hidden {
  display: none;
}

.bubble {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 22px 28px;
  font-size: 16px;
  color: #2a2926;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
  max-width: 360px;
  text-align: center;
  border: 1px solid rgba(24, 24, 24, 0.06);
}

.close-btn {
  margin-top: 15px;
  background: #f0ece6;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
}

.close-btn:hover {
  background: #e5dfd5;
}

.overlay-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.action-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.buy-btn {
  background: #171716;
  color: #fff;
}

.buy-btn:hover {
  background: #2a2a27;
}

.cancel-btn {
  background: #dcd6cd;
  color: #2f2b25;
}

.cancel-btn:hover {
  background: #cfc7bc;
}

/* ------------------------------
   Popup overlay and modal
------------------------------ */
.popup,
.popup_old_items {
  background: rgba(17, 17, 17, 0.48);
  display: none;
  position: fixed;
  z-index: 1200;
  padding-top: 90px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wrap,
.popup .wrap {
  position: relative;
  background: linear-gradient(180deg, #fbfaf7 0%, #f2eee7 100%);
  margin: auto;
  padding: 28px 26px;
  width: min(92%, 460px);
  border-radius: 28px;
  border: 1px solid rgba(23, 23, 22, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  color: #262522;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.35s;
  animation-name: animatetop;
  animation-duration: 0.35s;
}

.popup .wrap {
  max-width: 460px;
  text-align: center;
  font-size: 16px;
}

.popup h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #171716;
  letter-spacing: -0.5px;
}

.popup p {
  font-size: 15px;
  color: #58544d;
  margin-bottom: 20px;
  line-height: 1.7;
}

.closePopup,
.popup .closePopup {
  background: #ebe5dc;
  border: 1px solid rgba(24, 24, 24, 0.08);
  color: #2f2a23;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
  margin: 14px auto 0 auto;
  font-size: 15px;
  width: 200px;
  box-shadow: none;
}

.closePopup:hover,
.popup .closePopup:hover {
  background: #dfd7ca;
  color: #1f1c17;
  transform: translateY(-1px);
}

/* ------------------------------
   Saved outfits popup content
------------------------------ */
.saved-outfits-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  width: 100%;
  padding: 10px 0;
  box-sizing: border-box;
}

.saved-outfits-dropdown .outfit-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: row;
  gap: 8px;
}

.saved-outfits-dropdown .btn-orange {
  width: 90%;
  max-width: 400px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  padding: 14px 20px;
  display: block;
}

.saved-outfits-dropdown .delete-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #181817;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.saved-outfits-dropdown .delete-btn:hover {
  background: #2d2d29;
}

/* ------------------------------
   Misc
------------------------------ */
#myHeader-phone .w3-button {
  font-size: 30px;
}

.noContent {
  color: #000 !important;
  background-color: transparent !important;
  pointer-events: none;
}

.head-big-screen {
  display: block;
}

/* ------------------------------
   Desktop only
------------------------------ */
@media (min-width: 821px) {
  .menu-small-screen {
    display: none;
  }
}

/* ------------------------------
   Mobile
------------------------------ */
@media (max-width: 768px) {
  #welcome-panel {
    margin: 20px 14px 18px 14px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  #welcome-panel h1 {
    font-size: 32px;
  }
  

  .page-container {
    flex-direction: column;
    gap: 18px;
    padding: 14px;
    margin: 24px 12px 24px 12px;
    border-radius: 24px;
  }

  .products_and_slider {
    width: 100%;
    position: relative;
  }

  .slick-list {
    margin-left: 0;
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    vertical-align: top;
  }

  .card {
    max-width: 40em;
    margin-top: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .fa-shirt {
    left: 14px;
    bottom: 14px;
  }

  .heart {
    left: 62px;
    bottom: 14px;
  }

  .outfit-menu {
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .slick-prev {
    left: -6px;
  }

  .slick-next {
    right: -6px;
  }

  .model-wrapper {
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 24px;
    padding: 16px;
  }

  .model-and-talk {
    flex-direction: column;
    align-items: center;
  }

  .info-bubble-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .info-bubble {
    max-width: 100%;
    font-size: 12px;
    white-space: normal;
  }

  .talk-bubble {
    max-width: 400px;
    width: 100%;
    padding: 18px 18px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
  }

  .talk-bubble::before {
    left: 20px;
    top: -15px;
    border: 10px solid transparent;
    border-bottom-color: #f4f1eb;
    border-right-color: transparent;
  }

  .popup,
  .popup_old_items {
    padding-top: 60px;
  }

  .wrap,
  .popup .wrap {
    width: min(92%, 380px);
    padding: 22px 18px;
    border-radius: 24px;
  }

  .closePopup {
    width: 100%;
    max-width: 220px;
  }

  .head-big-screen,
  #myHeader {
    display: none;
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn-orange,
  .action-buttons button {
    display: block;
    width: 100%;
    margin: 10px auto;
  }

  .model-note {
    margin: 18px 12px 34px 12px;
    padding: 16px 14px;
    border-radius: 18px;
  }
}