/*================================ Designed by Mirsaid Patarov =================================*/
/*====================================== Version: 26G406 =======================================*/

/*=========================================== fonts ============================================*/

@import url('playfairdisplay.css');

/*========================================= css reset ==========================================*/

* {
  margin: 0;
  padding: 0;

  font-size: 100%;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;

  box-sizing: border-box;
}

a {
  cursor: pointer;
  text-decoration: none;
}

li { list-style-type: none; }

/*=========================================== colors ===========================================*/

:root {
  --primary: #a23b3b;
}

/*======================================= general styles =======================================*/

body {
  width: 100%;
  height: 100%;

  background: #faf5ec;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

/*========================================= header/nav =========================================*/

header {
  position: sticky;
  top: 0;
  z-index: 100;

  border-bottom: 1px solid #e8ddc9;

  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 0;
}

.header-brand {
  margin: -12px 0;
}

.header-logo {
  display: block;
  height: 72px;
  width: auto;
}

.header-cta {
  height: 44px;
  padding: 0 24px;

  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 44px;

  border-radius: 32px;
  background: var(--primary);

  display: inline-block;
  flex-shrink: 0;
}

/*============================================ main ============================================*/

.wrap {
  margin: 0 auto;
  display: block;
}

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(#f3e9d8 0%, #faf5ec 100%);
}

.hero-eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;

  margin-bottom: 24px;
}

.hero-title {
  color: #3a332c;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.15;

  max-width: 700px;
  margin-bottom: 20px;
}

.hero-summary {
  color: #5c5346;
  font-size: 16px;
  line-height: 1.7;

  max-width: 600px;
}

.product-filter {
  margin: 0 auto;
  padding: 16px 0;

  display: table;
}

.product-filter > li {
  height: 40px;
  margin: 0 4px;
  padding: 10px 16px;

  font-size: 14px;
  line-height: 20px;

  border-radius: 40px;
  border: 1px solid #e8ddc9;
  background: #fff;

  float: left;
}

.product-filter > li.active {
  color: #fff;
  background: var(--primary);
}

.product-list {
  padding: 0 0 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card.product-card--hidden {
  display: none;
}

.product-card {
  border-radius: 16px;
  border: 1px solid #ece3d2;
  background: #fff;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.pc-media {
  width: 100%;
  aspect-ratio: 3/4;

  position: relative;
}

.pc-content {
  padding: 16px;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-image {
  width: 100%;
}

.pc-label {
  height: 24px;
  padding: 4px 8px;

  font-size: 11px;
  font-weight: 700;
  line-height: 16px;

  border-radius: 24px;
  background: #fff;

  position: absolute;
  top: 16px;
  left: 16px;
}

.pc-label--hair {
  color: #8a5a2b;
}

.pc-label--face {
  color: #7a4b8a;
}

.pc-label--body {
  color: #2b6e8a;
}

.pc-label--health {
  color: #a23b3b;
}

.pc-title {
  color: #3a332c;
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 8px;
}

.pc-summary {
  padding: 0 0 8px;

  color: #6b6255;
  font-size: 14px;
  line-height: 20px;
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: auto;
  padding-top: 16px;

  border-top: 1px solid #e8ddc9;
}

.pc-price {
  color: #3a332c;
  font-size: 15px;
  font-weight: 700;
}

.pc-link {
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

/*============================================ modal ===========================================*/

.product-modal {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(58, 51, 44, 0.55);

  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}

.pm-box {
  width: 960px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);

  display: flex;

  border-radius: 24px;
  background: #fff;

  position: relative;
  overflow: hidden;

  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s ease;
}

.product-modal.active .pm-box {
  transform: scale(1) translateY(0);
}

.pm-media {
  width: 40%;
  flex-shrink: 0;
}

.pm-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.pm-panel {
  display: flex;
  flex-direction: column;

  position: relative;
  overflow: hidden;
}

.pm-scroll {
  padding: 52px 52px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.pm-close {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  background: #faf5ec;
  cursor: pointer;

  position: absolute;
  top: 12px;
  right: 12px;
}

.pm-close span {
  width: 14px;
  height: 2px;

  background: #3a332c;

  position: absolute;
}

.pm-close span:first-child {
  transform: rotate(45deg);
}

.pm-close span:last-child {
  transform: rotate(-45deg);
}

.pm-label {
  height: 32px;
  padding: 6px 16px;

  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;

  border-radius: 32px;
  background: #faf5ec;

  display: inline-block;

  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
}

.pm-title {
  color: #3a332c;
  font-size: 32px;
  margin-bottom: 16px;
}

.pm-summary {
  color: #6b6255;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 24px;
}

.pm-info {
  padding: 20px;
  margin-bottom: 24px;

  border-radius: 16px;
  background: #faf5ec;
}

.pm-info p {
  color: #6b6255;
  font-size: 14px;
  line-height: 22px;
}

.pm-info b {
  font-weight: 700;
}

.pm-info p + p {
  margin-top: 12px;
}

.pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-shrink: 0;
  padding: 24px 52px;
  border-top: 1px solid #ece3d2;
}

.pm-price {
  color: #3a332c;
  font-size: 18px;
  font-weight: 600;
}

.pm-order {
  height: 48px;
  padding: 0 24px;

  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 48px;

  border-radius: 32px;
  background: var(--primary);

  display: inline-block;
}

/*=========================================== footer ===========================================*/

footer {
  color: #fff;
  background: #3a332c;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;

  padding: 24px 0 40px;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 16px;

  filter: brightness(0) invert(1);
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 22px;
}

.footer-contacts {
  text-align: right;
}

.footer-contacts-title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  margin-bottom: 12px;
}

.footer-contacts-value {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  text-decoration: none;

  position: relative;
}

.footer-bottom a::after {
  content: '';
  width: 100%;
  height: 1px;

  background: rgba(255, 255, 255, 0.45);

  position: absolute;
  left: 0;
  bottom: -2px;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-bottom a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/*========================================= animation ==========================================*/

/*====================================== adaptive design =======================================*/
/*=========================================== mobile ===========================================*/
@media only screen and (max-width: 767px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .header-inner {
    padding: 16px 0;
  }

  .header-brand {
    margin: -4px 0;
  }

  .header-logo {
    height: 56px;
  }

  .header-cta {
    height: 38px;
    padding: 0 16px;

    font-size: 13px;
    line-height: 38px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-summary {
    font-size: 16px;
    line-height: 24px;
  }

  /*====================================== product filter ======================================*/

  .product-filter {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);

    padding-left: calc((100vw - 100%) / 2);
    padding-right: calc((100vw - 100%) / 2);

    display: flex;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-filter::-webkit-scrollbar {
    display: none;
  }

  .product-filter > li {
    flex: 0 0 auto;

    float: none;
    white-space: nowrap;
  }

  .product-filter > li:last-child {
    margin-right: 0;
  }

  /*======================================= product list =======================================*/

  .product-list {
    grid-template-columns: 1fr;
  }

  /*=========================================== modal ==========================================*/

  .pm-box {
    flex-direction: column;
    overflow-y: auto;
  }

  .pm-media {
    width: 100%;
    aspect-ratio: 4/3;
  }

  .pm-panel {
    position: static;
    overflow: visible;
  }

  .pm-scroll {
    padding: 24px;
    overflow: visible;
    flex: none;
  }

  .pm-close {
    background: #faf5ec;
  }

  .pm-footer {
    padding: 20px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .pm-order {
    text-align: center;
  }

  /*========================================== footer ==========================================*/

  .footer-top {
    flex-direction: column;
    gap: 32px;

    padding: 40px 0 32px;
  }

  .footer-contacts {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/*====================================== tablet vertical =======================================*/
@media (min-width: 768px) and (max-width: 991px) {
  .wrap {
    width: 744px;
  }

  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*================================ tablet horizontal & desktop =================================*/
@media (min-width: 992px) and (max-width: 1199px) {
  .wrap {
    width: 960px;
  }

  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*========================================== desktop ===========================================*/
@media (min-width: 1200px) {
  .wrap {
    width: 1152px;
  }
}
