/**
* Theme Name: BookChoix Child
* Description: This is a child theme of BookChoix.
* Author: AcmeeDesign Softwares and Solutions
* Template: bookchoix
* Version: 2.0.2
*/

/**
* You can add your custom styles here
*/

.social-marketting {
  background-color: rgb(240, 251, 247);
  padding: 5px 0;
}

.social-marketing_container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.social-marketing_field {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

.social-marketting .social {
  display: flex;
  height: 60px;
  align-items: center;
}

.social-marketting .social a {
  position: relative;
  margin-right: 20px;
  width: 36px;
  height: 36px;
  transition: all 0.3s;
}

.social-marketting .social a:before {
  content: "";
  width: 38px;
  height: 38px;
  border: solid 2px #fff;
  opacity: 0.5;
  position: absolute;
  left: -1px;
  top: -1px;
  border-radius: 50%;
}

.social-marketting .social a:hover {
  transform: rotate(360deg);
}

.social-marketing_prompt {
  display: none;
  font-size: 18px;
  line-height: 28px;
  color: #3f4c4d;
}

@media screen and (min-width: 469px) {
  .social-marketing_prompt {
    display: inline-block;
  }
}

div.hasabooks-custom-product-links a {
  display: inline-block;
  width: 100px;
  height: 50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  border-color: white;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
}

div.hasabooks-custom-product-links a:hover {
  border-color: oklch(0.929 0.013 255.508);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  filter: contrast(120%);
}

/**
For homepage-banner
**/
.homepage-banner__wrapper {
  background-color: transparent;
  padding: 40px 0px;
}

@media screen and (min-width: 959px) {
  .homepage-banner__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
  }
}

.homepage-banner__slider-container {
  height: 100%;
}

.homepage-banner__slider-container .swiper {
  height: 100%;
  max-width: 780px;
  border-radius: 8px;
  overflow: hidden;
}

.homepage-banner__slider-container .swiper-slide {
  background-color: white;
  width: fit-content;
  border-radius: 8px;
  overflow: hidden;
}

.homepage-banner__slider-container .swiper-button-next,
.homepage-banner__slider-container .swiper-button-prev {
  color: #0b9444; /* your custom color */
}

.homepage-banner__slider-container .swiper-pagination-bullet-active {
  background: #0b9444;
}

.homepage-banner__slider-container .featured__content {
  background-color: white;
  padding: 15px 25px 25px;
  margin-bottom: 30px;
}

.homepage-banner__slider-container p.featured__title {
  padding: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.homepage-banner__list-container ul {
  list-style-type: none;
  margin-top: 0px;
  margin-left: 10px;
}

.homepage-banner__list-container ul li {
  border-bottom: 1px solid #eeeeee;
  padding: 10px;
  margin-bottom: 15px;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
}

.homepage-banner__list-container ul li article {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 10px;
}

.homepage-banner__list-item-content {
  font-size: 1rem;
  line-height: 1.4rem;
  padding: 12px 0 12px 8px;
}

/** Underheader banner */
nav.underheader-banner {
  width: 100vw;
  height: auto;
}

nav.underheader-banner a:hover img {
  border: 2px solid #c5cbcc;
  transition: border 200ms linear;
}

nav.underheader-banner img {
  border: 2px solid transparent;
  border-radius: 0px;
  width: 100vw;
  max-width: 4000px;
  height: auto;
}

/** Navbar member link **/
a.navbar_member_link {
  display: block;
  margin-right: 8px;
  background-color: rgb(248, 249, 250);
  padding: 6px 12px;
  border-radius: 5px;
  position: absolute;
  right: 72px;
  top: 17px;
}

@media screen and (min-width: 960px) {
  a.navbar_member_link {
    position: static;
    right: inherit;
    top: inherit;
  }
}

a.navbar_member_link:hover {
  transform: scale(1.1);
  transition: transform 0.2s linear;
}

a.navbar_member_link span.navbar_member_text {
  margin-left: 6px;
  display: none;
}

@media screen and (min-width: 1200px) {
  a.navbar_member_link span.navbar_member_text {
    display: inline-block;
  }
}

/** WooCommerce content **/
.woocommerce-MyAccount-content a {
  color: rgb(11, 148, 68);
  text-decoration: underline;
}

/** Fix WooCommerce show password label not showing **/
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
  position: relative;
  cursor: pointer;
  height: 16px;
  width: 15px;
  border-radius: 2px;
  background-color: transparent;
}

.woocommerce form .show-password-input::after,
.woocommerce-page form .show-password-input::after {
  display: inline-block;
  left: 100%;
  top: 0px;
  width: 120px;
  cursor: pointer;
  position: absolute;
  font-size: 16px;
  font-weight: 400;
  font-variant: normal;
  text-justify: left;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  margin-left: 0.618em;
  content: "Hiện mật khẩu?";
  text-decoration: none;
}

/** Fix WooCommerce member login button display **/
.form-row {
  width: 100%;
}

.woocommerce-form-login__rememberme {
  margin-left: 0 !important;
}

button.woocommerce-form-login__submit {
  width: 100%;
  margin-top: 20px;
}

p.woocommerce-LostPassword {
  display: block;
  float: none !important;
}

/* .woocommerce a.woocommerce-privacy-policy-link {
  text-decoration: underline;
} */

/** Tweaking shopping page **/
@media screen and (min-width: 960px) {
  .woo-content-wrap .widget-area {
    float: left;
    padding-right: 40px;
    border-right: 1px solid #eee;
  }

  .woo-content-wrap .product_list_widget .woocommerce-Price-amount {
    display: none;
  }
}

/** 
* Widget custom for HSB
*/

ul.filter-hasabooks-categories li a {
  color: #136b38;
  display: block;
  padding: 4px 10px 4px 0px;
  border-bottom: 1px solid transparent;
}

ul.filter-hasabooks-categories li a:hover,
ul.filter-hasabooks-categories li a:active {
  border-bottom: 1px solid #ccc;
}

.sidebar-box.widget_categories a {
  color: #136b38;
}

/**
* Styling mega menu
*/
.woocommerce ul.megamenu {
  padding-top: 10px;
  padding-bottom: 15px;
}

#site-navigation-wrap .main-navigation ul.megamenu {
  padding-bottom: 15px;
}

#site-navigation-wrap .main-navigation ul.megamenu li a {
  font-family: "Mulish", sans-serif;
  font-size: 15px;
}

#site-navigation-wrap .main-navigation ul.megamenu > li > a {
  line-height: 29px;
  font-size: 13px;
}

#site-navigation-wrap
  .main-navigation
  ul.megamenu
  > li.menu-item
  > a.menu-link {
  color: rgb(49, 49, 49);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  text-decoration-color: #0b9444;
}

/** Altering the design of single-product template content tabs **/
.woocommerce.wp-child-theme-bookchoix-child
  div.product
  .woocommerce-tabs
  ul.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0px;
}

.woocommerce.wp-child-theme-bookchoix-child
  div.product
  .woocommerce-tabs
  ul.tabs
  li
  a {
  font-size: 18px;
  font-weight: 600;
  padding-left: 30px;
  padding-right: 30px;
}

.woocommerce.wp-child-theme-bookchoix-child
  div.product
  .woocommerce-tabs
  ul.tabs
  li.active
  a {
  font-weight: 800;
}

.woocommerce.wp-child-theme-bookchoix-child
  div.product
  .woocommerce-tabs
  .panel {
  padding: 35px 30px;
  border-radius: 15px;
  border: 1px solid #e6e6e6;
}

.woocommerce.wp-child-theme-bookchoix-child
  div.product
  div.woocommerce-product-details__short-description {
  max-width: 85ch;
  text-align: justify;
  text-justify: newspaper;
  margin-left: auto;
  margin-right: auto;
}

/** Fix product description in list view, product archive template **/
.products.list .product-desc ol,
.products.list .product-desc ul {
  margin: 0px;
  font-size: 16px;
}

.products.list .product-desc ol li,
.products.list .product-desc ul li {
  font-size: 16px;
}

/** Fix product price font-size at homepage **/
.product-wrap .product-content .product_title a {
  font-size: 16px;
  line-height: 23px;
}

.single-product div.product .summary .product_title {
  font-size: 28px !important;
  line-height: 34px !important;
}

ul.product_list_widget li > a,
ul.product_list_widget li > a span {
  font-size: 14px !important;
}

/** Homepage Product section*/
section.homepage_product_section {
  padding-top: 20px;
  padding-bottom: 40px;
}

h2.homepage_product_section_title {
  padding: 10px 20px 5px;
  font-size: 21px;
  display: block;
  border-bottom: 1px solid #ebebeb;
}

@media screen and (min-width: 959px) {
  h2.homepage_product_section_title {
    font-size: 24px;
    line-height: 32px;
  }
}

.homepage_product_section_banner {
  width: 100%;
  overflow: hidden;
}

.homepage_product_section_banner img {
  width: 100%;
}

.homepage_product_section_banner img:hover {
  transform: scale(1.02);
  transition: transform 200ms ease-out;
}

.homepage_product_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 35px;
  row-gap: 20px;
  padding: 20px;
  margin: 0;
}

@media screen and (min-width: 959px) {
  .homepage_product_grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.homepage_product_grid li {
  list-style-type: none;
}

.homepage_product_grid__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage_product_grid li img {
  padding: 20px 0 10px;
  box-shadow: #3f4c4d;
}

.homepage_product_grid__booktitle {
  font-size: 16px;
  line-height: 140%;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.homepage_product_grid a:hover .homepage_product_grid__booktitle {
  text-decoration: underline;
}

.hp_books_categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
}

/** Homepage skill books lines */
.homepage_skill_section {
  margin: 30px 0 40px;
}

.homepage_skill_wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media screen and (min-width: 960px) {
  .homepage_skill_wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 20px;
  }
}

.homepage_skill_wrapper > .banner {
  grid-column: 1/3;
  background-color: #c9e2ff;
  min-height: 300px;
  width: 100%;
  border-radius: 16px;
  padding: 30px 60px 20px 30px;

  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
}

.homepage_skill_wrapper > .banner.for-vocab {
  background-color: #ddffd0;
}

.homepage_skill_wrapper > .banner.for-exam {
  background-color: #fff6c2;
}

.homepage_skill_wrapper > .banner p {
  margin: 0;
}

@media screen and (min-width: 960px) {
  .homepage_skill_wrapper > .products {
    grid-column: 3/7;
  }
}

.homepage_skill_wrapper > .products > .homepage_product_grid {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 960px) {
  .homepage_skill_wrapper > .products > .homepage_product_grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/** Homepage product lines */
.homepage_product-lines {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.homepage_product-lines_card {
  border-radius: 4px;
}

.homepage_product-lines_card a {
  display: block;
  padding: 20px 30px;
}

.homepage_product-lines_title-area > .homepage_product-lines_title {
  font-size: 21px;
  font-weight: 600;
  color: #242424;
  margin: 0;
  padding: 0;
}

.homepage_product-lines_title-area > .homepage_product-lines_subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #494949;
  margin: 0;
  padding: 0;
}

.homepage_product-lines_title-area {
  padding-top: 5px;
  padding-bottom: 15px;
}

.homepage_product-lines_body {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 4px;
}

.homepage_product-lines_body img {
  width: calc(15%);
  border-radius: 3px;
}

.homepage_product-lines > div:nth-child(1) {
  background-color: #ffefef;
}

.homepage_product-lines > div:nth-child(1):hover {
  background-color: #faeaea;
}

.homepage_product-lines > div:nth-child(2) {
  background-color: #fceeff;
}

.homepage_product-lines > div:nth-child(2):hover {
  background-color: rgb(249, 231, 250);
}

.homepage_product-lines > div:nth-child(3) {
  background-color: #fffff0;
}

.homepage_product-lines > div:nth-child(3):hover {
  background-color: #f8f8e2;
}

.homepage_product-lines > div:nth-child(4) {
  background-color: #f0fff3;
}

.homepage_product-lines > div:nth-child(4):hover {
  background-color: #e8fceb;
}

.homepage_product-lines > div:nth-child(5) {
  background-color: #f0f1fe;
}

.homepage_product-lines > div:nth-child(5):hover {
  background-color: #e7e9ff;
}

@media screen and (min-width: 959px) {
  .homepage_product-lines {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 15px;
    grid-template-rows: repeat(2, 1fr);
    row-gap: 12px;
    padding: 5px 20px 15px;
  }

  .homepage_product-lines_body img {
    width: 80px;
    border-radius: 3px;
  }

  .homepage_product-lines_body {
    display: flex;
    flex-direction: row-reverse;
    justify-content: end;
    gap: 4px;
  }

  .homepage_product-lines > div:nth-child(1) {
    grid-column: 1/7;
  }

  .homepage_product-lines > div:nth-child(2) {
    grid-column: 7/13;
  }

  .homepage_product-lines > div:nth-child(3) {
    grid-column: 1/5;
  }

  .homepage_product-lines > div:nth-child(4) {
    grid-column: 5/9;
  }

  .homepage_product-lines > div:nth-child(5) {
    grid-column: 9/13;
  }
}

/** Animating the product line card images */
.homepage_product-lines_card a:hover {
  cursor: pointer;
}

.homepage_product-lines_card a:hover .homepage_product-lines_title {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgb(0 0 0 / 0.1);
}

.homepage_product-lines_card a .homepage_product-lines_body img {
  transition: transform 200ms ease-out;
}

.homepage_product-lines_card a .homepage_product-lines_body img:nth-child(2) {
  transform: translate(8px) scale(0.99);
}

.homepage_product-lines_card
  a:hover
  .homepage_product-lines_body
  img:nth-child(2) {
  transform: translate(0px);
}

.homepage_product-lines_card a .homepage_product-lines_body img:nth-child(3) {
  transform: translate(16px) scale(0.98);
}

.homepage_product-lines_card
  a:hover
  .homepage_product-lines_body
  img:nth-child(3) {
  transform: translate(0px);
}

.homepage_product-lines_card a .homepage_product-lines_body img:nth-child(4) {
  transform: translate(24px) scale(0.97);
}

.homepage_product-lines_card
  a:hover
  .homepage_product-lines_body
  img:nth-child(4) {
  transform: translate(0px);
}

.homepage_product-lines_card a .homepage_product-lines_body img:nth-child(5) {
  transform: translate(32px) scale(0.96);
}

.homepage_product-lines_card
  a:hover
  .homepage_product-lines_body
  img:nth-child(5) {
  transform: translate(0px);
}

/** Authors page */
ul.author_author-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 959px) {
  ul.author_author-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

ul.author_author-list li {
  list-style-type: none;
}

ul.author_author-list li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

ul.author_author-list li a p {
  text-align: center;
  text-decoration: underline;
  text-decoration-color: white;
}

ul.author_author-list li a:hover p {
  text-decoration-color: black;
  transition: all 100ms linear;
}

ul.author_author-list li a img {
  border-radius: 9999px;
}

ul.author_author-list li a:hover img {
  filter: grayscale(1) contrast(120%) brightness(90%);
  transition: filter 200ms linear;
}

/* Author in homepage */
ul.homepage_author-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 10px;
}

@media screen and (min-width: 959px) {
  ul.homepage_author-list {
    grid-template-columns: repeat(7, 1fr);
  }
}

ul.homepage_author-list li {
  list-style-type: none;
}

ul.homepage_author-list li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

ul.homepage_author-list li a img {
  width: 70%;
  border-radius: 9999px;
}

ul.homepage_author-list li a:hover img {
  filter: grayscale(1) contrast(120%) brightness(90%);
  transition: filter 200ms linear;
}

ul.homepage_author-list li a p {
  text-align: center;
  line-height: 128%;
  text-decoration: underline;
  text-decoration-color: white;
}

ul.homepage_author-list li a:hover p {
  text-decoration-color: black;
  transition: all 100ms linear;
}

/** Homepage testimonial section */
.homepage_testimonial_section {
  background-color: rgb(18, 24, 35);
  color: white;
  min-height: 500px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 60px 0 100px;
}

.homepage_testimonial_section_title {
  color: white;
  padding: 10px 20px 5px;
  font-size: 24px;
  line-height: 32px;
  display: block;
  border-bottom: 1px solid #3d3d3d;
  margin-bottom: 30px;
}

.homppage_testimonial_grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 80vw;
  width: 100%;
  margin: 0 auto;
  padding: 30px 0;
}

@media screen and (min-width: 960px) {
  .homepage_testimonial_section {
    background-image: linear-gradient(
        rgba(18, 24, 35, 0.95),
        rgba(18, 24, 35, 0.95)
      ),
      url("https://img.freepik.com/premium-photo/illustration-beautiful-city-london-united-kingdom_150729-1766.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .homppage_testimonial_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 40px;
    max-width: 80vw;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0;
  }

  .homepage_testimonial_card {
    padding: 36px 56px;
  }
}

.homepage_testimonial_card {
  background-color: #1d2530;
  padding: 24px 44px;
  border-radius: 8px;
}

.homepage_testimonial_card_stars {
  color: #b99e00;
  font-size: 30px;
}

.homepage_testimonial_card_review {
  border-bottom: 2px solid rgb(53, 53, 53);
  padding-bottom: 15px;
}

.homppage_testimonial_grid .homepage_testimonial_card:nth-child(2) {
  grid-column: 2/4;
}

.homepage_testimonial_card_customer {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 20px;
}

.homepage_testimonial_card_customername {
  margin: 0;
  color: #0b9444;
  font-weight: 700;
}

.homepage_testimonial_card_customerrole {
  margin: 0;
  color: #54595f;
}

.homepage_testimonial_card_avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
}

/** Homepage partners */
.homepage_partners_wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
}

.homepage_partners_wrapper a:hover p {
  text-decoration: underline;
}

.homepage_partners_card {
  border: 1px solid rgb(235, 235, 235);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-radius: 20px;
  padding: 30px 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homepage_partners_card img {
  height: 120px;
  width: auto;
}

.homepage_partners_card p {
  text-align: center;
}

/** Homepage page-break */
/* .homepage_pagebreak {
  min-height: 700px;
  margin-top: 20px;
  margin-bottom: 30px;
  background-image: url("https://images.pexels.com/photos/30624832/pexels-photo-30624832/free-photo-of-big-ben-and-westminster-at-golden-hour-in-london.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
} */

/* Coupon */
.coupon_wrapper {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
}

.coupon_item {
  background-color: #fff4f4;
  border: 1px solid #f8d0d3;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.coupon_item .left {
  padding: 20px 25px;
  border-right: 1px solid #eee;
}

.coupon_item .right {
  padding: 20px 25px;
}

.coupon_item p {
  margin: 0;
}

.coupon_item .fixed_cart_amount {
  font-size: 20px;
  line-height: 26px;
  color: #d0011b;
  font-weight: 700;
}

.coupon_item .fixed_cart_minspent {
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  color: #d0011b;
}

.coupon_item .left-bottom-line {
  margin-top: 10px;
  font-size: 15px;
}

.coupon_item .expiry_date {
  margin-right: 5px;
}

.coupon_item .usage-term-label {
  color: rgb(63, 63, 63);
  text-decoration: underline;
  cursor: pointer;
}

.coupon_item .usage-term-label::before {
  content: "ⓘ ";
}

.coupon_code {
  font-size: 18px;
  font-weight: 600;
  color: #d0011b;
}

.coupon_button {
  background-color: #d0011b;
  color: white;
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin: 5px 0;
  padding: 7px 10px;
  border: none;
}

.coupon_button:hover,
.coupon_button:active {
  background-color: #b40119;
}

/* */
.homepage_products_carousel {
  padding: 30px 20px;
}

.exerciseSwiper {
  width: 100%;
}
