@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:wght@300;400;500;600;700&family=Playpen+Sans:wght@100..800&family=Roboto:wght@100;300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
}
* { box-sizing: border-box; }


h1, h2, h3 {
    all: unset;
    display: block;
    font-size: inherit;
    font-weight: normal;
    margin: 0;
    padding: 0;
    line-height: inherit;
    color: inherit;
}

body {
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
    background-color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (max-width: 1151px) {
  body {
    background-color: #e4e8ef;
  }
}


.big-container {
    display: flex;
    gap: 0px;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding-top: 50px;
    margin-bottom: 110px;
}

.sections {
  display: flex;
  flex: 1;
  flex-direction: row; 
}
@media (max-width: 1151px) {
  .sections {
    flex-direction: column;
  }
  .lsection {
    order: 2;
  }

  .rsection {
    order: 1;
  }
}
@media (max-width: 500px) {
  .big-container {
    padding-top: 0px;
  }
}



.lsection {
    display: flex;
    flex-basis: 50%;
    align-content: center;    
    flex-wrap: wrap;
    padding: 0px 50px 0px 40px;
    flex-direction: column;
}
@media (max-width: 1151px) {
  .lsection {
    justify-content: center;
    padding: 25px 15px 0px 15px;
    flex-basis: 100%;
  }
}

.rsection {
    display: flex;
    flex-basis: 50%;
    /* padding: 50px 0px 0px 45px; */
    justify-content: flex-start;
}
@media (max-width: 1151px) {
  .rsection {
    display: flex;
    justify-content: center;
    padding: 0px 0px 0px 0px;
  }
}

.book-name-block {
    margin-bottom: 15px;
}
.book-name {
    text-align: left;
    color: #363636 !important;
    font-size: 20px;
    font-weight: 700;
    max-width: 400px;
    word-wrap: break-word;
}
.book-mini-discripton-block {
    margin-bottom: 20px;
}

.uploadinfo-block {
  padding: 0px;
  border-radius: 0px;
  background-color: #fff;
}
@media (max-width: 1151px) {
  .uploadinfo-block {
    padding: 10px;
    border-radius: .75rem;
    background-color: #fff;
  }
}

#drop-zone {
    border: 1px dashed #2ac0cf;
    background: linear-gradient(to left, #faf0ff, #f0f8ff);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    min-width: 250px;
    box-sizing: border-box;
  }
  @media (max-width: 500px) {
  #drop-zone {
    background: #fff;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
  }
}

.book-specifications {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
    padding: 10px 0px;
}
@media (max-width: 500px) {
  .book-specifications {
    padding: 10px 5px;
    margin-bottom: 0px;
  }
}
.sp-b {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid #666666;
    padding-left: 15px;
}
.spec {
    font-weight: 200;
    color: #666666;
    font-size: 15px;
    margin-bottom: 5px;
}
.spec-for {
    font-weight: 400;
    color: black;
    font-size: 14px;
}
.price-bo {
    font-size: 25px;
    color: #d02a2a;
    font-weight: bold;
    display: flex;
}
.old-price {
  display: block;
  text-decoration: line-through;
  color: gray;
  font-weight: normal;
  margin-left: 10px;
}
.genre-b {
    font-weight: 300;
    color: #666666;
    font-size: 15px;
    position: relative;
    top:-10px;
    margin-bottom: 2px;
}

.ex-img-boy {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}
.ex-img-girl {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}


.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.example-img-nook {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #da1615;
  object-fit: cover;
}
.nook-button {
  position: absolute;
  top: -4px;
  right: 6px;
  width: 20px;
  height: 20px;
  background-color: #da1615;
  color: white;
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

.example-img-ok {
    width: 70px;
    height: 70px;
    border-radius: 50px;
    border: 2px solid #49d637;
    object-fit: cover;
}
.ok-button {
  position: absolute;
  top: -4px;
  right: 6px;
  width: 20px;
  height: 20px;
  background-color: #49d637;
  color: white;
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  line-height: 21px;
  border-radius: 50%;
  cursor: pointer;
  transform: rotate(10deg); 
}




#photo-input {
      display: none;
    }

    #upload-button {
      color: #ffffff;
      font-weight: normal;
      font-style: normal;
      font-size: 14px;
      line-height: 1.25;
      background-color: #2ac0cf;
      border-radius: 5px;
      border: 0px;
      box-shadow: none;
      padding: 10px 20px;
      cursor: pointer;
      outline: none;
      text-decoration: none;
      margin-bottom: 10px;
      margin-top: 20px;
    }
    .upload-icon {
      width: 20px;
      height: 20px;
      stroke: currentColor;
    }
    #upload-button:hover {
      background-color: #45c2cd;
    }

    #loader-wrapper {
      position: relative;
      width: 120px;
      height: 120px;
      margin: 10px auto;
      display: none;
    }

    #loader-wrapper svg {
      transform: rotate(-90deg);
      width: 100%;
      height: 100%;
    }

    #loader-wrapper .percent-label {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 18px;
      font-weight: bold;
}
    



.opisanie {
    background-color: #f6f7fa;
    width: 100%;
    padding-bottom: 50px;
}
@media (max-width: 1151px) {
  .opisanie {
    background: linear-gradient(to bottom, #e4e8f0 0%, #d6dce6 20%);
  }
}

.opisanie-inside {
    background-color: #fff;
    max-width: 1140px;
    border-radius: 10px;
    position: relative;
    top: -30px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.06);
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1151px) {
    .opisanie-inside {
        max-width: calc(100% - 30px);
        border-radius: 8px;
    }
}

.content {
    padding: 31px 30px 31px 30px;
    font-size: 15px;
    font-weight: 400;
}
@media (max-width: 470px) {
    .content {
        padding: 25px 10px 35px 10px;
    }
}



.child-info {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}



.btn-success {
    color: #ffffff;
    font-weight: bold;
    font-style: normal;
    font-size: 16px;
    line-height: 1.25;
    background-color: #2ac0cf;
    border-radius: 5px;
    border: 0px;
    box-shadow: none;
    width: 100%;
    height: 60px;
    padding: 8px 14px 8px 14px;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    margin-top: 5px;
}
.btn-success:hover {
    background-color: #4eced9;
    border: 0px;
}
.btn-success:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
@media (max-width: 1151px) {
  .btn-success {
    margin-top: 5px;
    border-radius: 8px;
  }
}








#preview-wrapper {
  display: none;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  margin-left: auto;
  margin-right: auto;
}


#preview-wrapper.loading {
  background: linear-gradient(100deg, #dfefff 30%, #ffe6f0 50%, #dfefff 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
#preview-wrapper.loading::after {
  content: "Moment...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #777777;
  font-size: 16px;
  font-weight: 300;
  font-family: sans-serif;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


#preview {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(0, 0);
  width: auto;
  height: 100%;
}





.tab-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0px;
}

.tab-list li {
  padding: 10px;
  cursor: pointer;
  color: #000000;
  font-weight: 300;
  font-size: 16px;
  border-radius: 8px;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.tab-list li:hover {
  background-color: #d6edf1;
}

.tab-list li.active {
  background-color: #89c6d0;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  font-weight: 300;
}




.prefers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    }
    .pref-square {
    flex: 1;
    min-width: calc(25% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 250;
    border-radius: 10px;
    padding: 10px;
    }
    .pref-square:hover {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.06);
    cursor: default;

    }
    .pref-square:first-child {
    margin-left: 0; 
    }
    .pref-square:last-child {
    margin-right: 0;  
    }
   
    @media (max-width: 1180px) {
        .pref-square {
            min-width: calc(25% - 20px);
            margin-bottom: 20px;
        }
        .prefers {
            max-width: calc(100% - 30px);
        }
    }    
    @media (max-width: 880px) {
    .pref-square {
        min-width: calc(50% - 20px);
        margin-bottom: 20px;
    }

    .pref-square:nth-child(odd) {
        margin-right: 10px;
        margin-left: 0;
    }

    .pref-square:nth-child(even) {
        margin-left: 10px;
        margin-right: 0;
    }
    .prefers {
        max-width: calc(100% - 30px);
    }
    @media (max-width: 470px) {
    .pref-square {
            min-width: calc(50% - 10px);
            margin-bottom: 10px;
    }
    
    .pref-square:nth-child(odd) {
            margin-right: 5px;
            margin-left: 0;
    }
    
    .pref-square:nth-child(even) {
            margin-left: 5px;
            margin-right: 0;
    }
    .prefers {
            max-width: calc(100% - 30px);
        }
    }
}



/* Цвет количества отзывов по умолчанию (не активная) */
#tab-list li .reviews-count {
  color: red;
  font-weight: bold;
}
/* Если вкладка активная */
#tab-list li.active .reviews-count {
  color: white;
  font-weight: normal;
}


.semibold { font-weight: 600; }