/* Carousel System */
@import url('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css');

:root{
  --primary-color: #c51a1b ;
  --secondary-color: #facc15 ;
  --background-color: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{overflow-x: hidden;}
div#mCSB_3 {overflow-y: scroll !important;}

body {
  color: #333;
  background-color: #fff;
}

h2 {font-weight: bold;}

/* Books Carrusel */
.carousel-container{
  position: relative;
  padding: 6em 2em 7em;
  background-color: #ececec;
}

/* Contenedor principal */
.main-container {
  max-width: 1900px;
  margin: 0 auto;
  background-color: #ececec;
  overflow: hidden;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  position: relative;
  padding: 4em 2em 0;
  flex-direction: row;
  height: 650px;
}

.owl-nav, .owl-dots{display: none;}
#books-carousel button{opacity: .5;}

#books-carousel button:hover {
  opacity: 1;
  background: none;
}

#books-carousel button.owl-prev img {width: 50px;}
#books-carousel button.owl-next img {width: 50px;}
  
.info-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 35%;
  padding-right: 2.5rem;
  margin-bottom: 0;
  text-align: left;
}

.info-section .item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: black;
  margin-bottom: 0.5rem;
}

.info-section .item h2 {
  font-size: 3em;
  font-weight: 800;
  color: black;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.info-section .item p {
  color: black; 
  margin-bottom: 1.5rem; 
  font-size: 20px;
}

body .info-section .woocommerce-Price-currencySymbol, body .info-section .woocommerce-Price-amount.amount {
  font-size: 2.25rem !important;
  display: inline-block !important;
}

.book-cta .product__add-to-cart, .book-cta .added_to_cart {
  margin-top: 32px;
  background-color: var(--secondary-color);
  color: black;
  font-weight: 700;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
  outline: none;
  border: none;
  max-width: 350px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.book-cta .product__add-to-cart:hover{
  color: white;
  background-color: var(--primary-color);
}

.added_to_cart:hover {background-color: #eab308;}

.books-carousel-wrapper {
  position: relative;
  padding: 0 5rem 0 0;
}

.books-carousel-wrapper {width: 65%; }
.owl-item-first .item {top: 0 !important;}

.books-carousel-wrapper  .item {
  top: 3em;
  position: relative;
}

.owl-item-small .item .book-cover {position: relative;}
.owl-item.active.owl-item-first {height: 580px;}

.book-cover {
  width: 100%;
  height: 420px;
  transition: ease-in-out 0.3s;
  object-fit: contain;
}

.owl-item.active.owl-item-first .item .book-cover {height: 530px !important;}

.books-carousel .owl-item {
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.owl-item.active.owl-item-small {height: 580px;}

.custom-nav button {
  bottom: 0;
  width: 50px;
  height: 50px;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none;
  opacity: .5;
  cursor: pointer;
  position: absolute;
  top: 0;
  margin: auto 0;
}

.custom-nav button:hover {opacity: 1;}
button.custom-prev {left: 9em;}
button.custom-next {right: 10em;}

.books-carousel .owl-dots {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.books-carousel .owl-dot span {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #d1d5db;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.books-carousel .owl-dot.active span {background-color: var(--primary-color);}

/* Sección de Categorías */
.categories-section {padding: 40px 0;}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  color: var(--primary-color);
  font-size: 24px;
  letter-spacing: -1px;
  margin: 0;
  position: relative;
}

.section-header a {
  color: black;
  font-size: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.view-all {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.view-all:hover {color: var(--primary-color);}
.view-all span {font-size: 16px;}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  padding: 40px 20px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('https://suscripciones.larepublica.co/wp-content/uploads/2025/09/Libreria-BGG.webp');
}

.category-card:before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  content: "";
  height: 100%;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
}

.category-card h3 {z-index: 5;}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card h3 {
  font-size: 18px;
  color: white;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.product-count {
  font-size: 14px;
  opacity: 0.8;
  color: white;
}

/* Sección Más Vendidos */
.bestsellers-section {
  padding: 60px 0;
  background: white;
}

.bestsellers-section h2, .featured-section h2{margin-bottom: 50px;}
.bestsellers-section h2{text-align: center;}
.woocommerce-loop-product__category {text-align: left !important;}
.woocommerce-loop-product__category a {color: black !important;}

h2.bwgb-products__product-title.woocommerce-loop-product__title.product__title.h6.text-lh-md.mb-1.text-height-2.crop-text-2.h-dark {
  text-align: left !important;
  font-weight: 700 !important;
}

.product__hover {padding-top: 10px !important;}

.added_to_cart{
  font-size: 11px;
  background-color: var(--secondary-color);
  color: black;
  padding: 8px 15px;
  max-width: 150px;
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
  outline: none;
  border: none;
  cursor: pointer;
  width: 100%;
  display: flex;;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
}

.yith-add-to-wishlist-button-block {margin: 0 auto !important;}

.justify-content-md-center {
  justify-content: left !important;
  font-size: 18px !important;
}

.products-grid .p-md-4 {
  padding: 2rem 2.5rem !important;
  border: 1px solid #d3d3d3;
}

.products-grid {
  display: grid;
  border: 1px solid #d3d3d3;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.product__inner {
  background-color: white;
  border: 1px solid #d3d3d3;
}

.product__inner:hover {
  border: 1px solid black;
  border-left: 2px solid black;
  border-top: 1px solid black;
  box-shadow: 0px 0px 40px 0px rgba(22, 22, 25, 0.1);
  transition: all 0.1s ease;
}

.woocommerce-loop-product__thumbnail.bwgb-products__product-image {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.woocommerce-loop-product__thumbnail.bwgb-products__product-image img{box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;}
span.product__add-to-cart-icon.font-size-4{display: none;}

.product-card {
  background: rgb(4, 4, 4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {transform: scale(1.05);}

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.wishlist-btn:hover {
  background: white;
  transform: scale(1.1);
}

.bookmark-icon {font-size: 18px;}
.product-info {padding: 25px;}

.product-category {
  color: #6c757d;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.product-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.product-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {color: var(--primary-color);}

.product-excerpt {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.product-price {
  font-weight: 700;
  color: #333;
  font-size: 16px;
}

.product-price .woocommerce-Price-amount {color: var(--primary-color);}

.add-to-cart-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.add-to-cart-link:hover {
  background: var(--primary-color);
  color: white;
}

/* Sección Productos Destacados */
.featured-section {padding: 60px 0;}

.featured-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 540px 1fr;
  grid-template-rows: 2fr;
  gap: 0;
  grid-template-areas: "grid-side-1 grid-side2";
  border: 1px solid #d3d3d3;
  align-items: start;
}

.main-featured {
  height: 100%;
  background-color: #fff2f2;
  border-right: 1px solid #d3d3d3;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-featured::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.featured-product-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  flex-direction: column;
}

.featured-product-card .product-image {
  flex: 0 0 520px;
  aspect-ratio: auto;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {text-align: center;}

.product-details h3 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
  line-height: 1;
}

.discount-text {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 15px;
  letter-spacing: -0.7px;
}

.product-description {
  color: #555;
  line-height: 1.3;
  margin-bottom: 25px;
  font-size: 16px;
}

.cta-button {
  margin: 0 auto;
  background: var(--secondary-color);
  color: #333;
  width: 300px;
  padding: 10px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  overlay: none;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  color: white;
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.secondary-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
}

.small-product-card imgw{
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.small-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.small-product-card .product-image {
  aspect-ratio: 3/4;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.small-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-product-card .product-category {
  font-size: 10px;
  margin-bottom: 5px;
}

.small-product-card h4 {
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: 600;
  line-height: 1.3;
}

.small-product-card h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.small-product-card h4 a:hover {
  color: var(--primary-color);
}

.small-product-card .product-excerpt {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.small-product-card .product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {animation: fadeInUp 0.6s ease forwards;}
.product-card:nth-child(even) {animation-delay: 0.1s;}
.product-card:nth-child(3n) {animation-delay: 0.2s;}

.category-card:hover h3 {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.product-card:hover .product-title a {color: var(--primary-color);}

.nav-item.dropdown .dropdown-menu {
  display: none; 
  visibility: hidden; 
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block; 
  visibility: visible; 
  opacity: 1; 
  top: 5em;
}

.nav-item.dropdown .dropdown-menu {display: none;}
.nav-item.dropdown .dropdown-menu.show {display: block;}
.header-icons-links li:first-child {display: none !important;}

/* Responsive Mode */
@media (max-width: 1920px) {
  .main-container {
    padding: 0 2em;
    max-width: 1500px;
  }

  .carousel-container {padding: 3em 2em 0;}
  .info-section .item h2 {font-size: clamp(1.3em, 2.1vw, 3em);}
  .info-section .item p {font-size: clamp(0.8em, 1vw, 1.2em);}
  .books-carousel-wrapper {padding: 0;}
  .books-carousel-wrapper .item {top: 4em;}
  .book-cover {height: 340px;}
  .owl-item.active.owl-item-first .item .book-cover {height: 470px !important;}
  /* .owl-item-small .item .book-cover {left: 2em;} */
  /* .owl-item.active.owl-item-small {height: 470px;} */
  button.custom-prev {left: 6em;}
  button.custom-next {right: 6em;}
  .book-base {margin-top: -4.5em;}
  .section-title {font-size: clamp(1.1em, 1.6vw, 1.6em);}
}

@media (max-width: 1680px) {
  .main-container {max-width: 85vw;}
  .info-section .item p {margin-bottom: 1rem;}
  .books-carousel-wrapper {padding: 2em 0 0;}
  .books-carousel-wrapper .item {top: 5em;}
  .book-cover {height: 290px;}
  /* .owl-item-small .item .book-cover {left: 2em;} */
  .book-base {margin-top: -4em;}
}

@media (max-width: 1600px) {
  body .info-section .woocommerce-Price-currencySymbol, body .info-section .woocommerce-Price-amount.amount {font-size: 2rem !important;}
  
  .main-container {
    height: 600px;
    padding: 0 1em;
  }

  #info-carousel {padding-bottom: 2em;}
  .book-cta .product__add-to-cart, .book-cta .added_to_cart {margin-top: 20px;}
  .books-carousel-wrapper {padding: 0;}
  button.custom-prev {left: 3em;}
  button.custom-next {right: 3em;}
}

@media (max-width: 1500px) {
  /* .product__add-to-cart {font-size: 12px;} */
}

@media (max-width: 1440px) {
  body .info-section .woocommerce-Price-currencySymbol, body .info-section .woocommerce-Price-amount.amount {font-size: 1.7rem !important;}

  .main-container {
    padding: 0;
    height: 550px;
  }

  .book-cta .product__add-to-cart, .book-cta .added_to_cart {
    padding: 10px;
    max-width: 280px;
    font-size: 15px;
  }

  .books-carousel-wrapper {padding: 2em 0 0;}
  .books-carousel-wrapper .item {top: 6em;}
  .book-cover {height: 260px;}
  .owl-item.active.owl-item-first {height: 530px;}
  .owl-item-small .item .book-cover {left: 0;}
  button.custom-prev {left: 1em;}
  button.custom-next {right: 1em;}
  .container {max-width: 1300px;}
  .product-description {font-size: 14px;}
}

@media (max-width: 1400px) {
  .container {max-width: 1200px;}
  .products-grid {grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
  .featured-grid {grid-template-columns: 430px 1fr;}

  .featured-product-card .product-image {flex: 0 0 380px;}
  .products-grid .p-md-4 {padding: 2rem 1.5rem !important;}
  .product-details h3 {font-size: 22px;}
}

@media (max-width: 1300px) {
  .products-grid {grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
  .featured-grid {grid-template-columns: 380px 1fr;}
  .featured-product-card .product-image {flex: 0 0 300px;}
  .main-featured {padding: 40px 30px;}
  .product-details h3 {font-size: 18px;}
  .discount-text {font-size: 25px;}
  .product-description {font-size: 13px;}
}

@media (max-width: 1200px) {
  .carousel-container {padding: 0em 2em 0;}
  .main-container {height: 450px;}
  .owl-item.active.owl-item-first, .owl-item.active.owl-item-small {height: 360px;}

  .books-carousel-wrapper {padding: 1em 0 0;}
  .books-carousel-wrapper .item {top: 2em;}
  .book-cta .added_to_cart:before {font-size: 15px !important;}
  .added_to_cart:before {font-size: 11px !important;}
  body .info-section .woocommerce-Price-currencySymbol, body .info-section .woocommerce-Price-amount.amount {font-size: 1.3rem !important;}
  .book-cover {height: 210px;}
  .owl-item.active.owl-item-first .item .book-cover {height: 290px !important;}
  button.custom-prev {left: .5em;}
  button.custom-next {right: .5em;}

  .section-header a {font-size: 16px;}
  .container {padding: 0 2em;}
  .categories-section {padding: 40px 2em;}
}

@media (max-width: 1100px) {
  .info-section {width: 40%;}
  .books-carousel-wrapper {width: 60%;}
  .info-section .item h2 {margin-bottom: 0.5rem;}

  .book-cta .product__add-to-cart, .book-cta .added_to_cart {
    font-size: 14px;
    padding: 8px 10px;
  }

  .book-cover {height: 180px;}
  .books-carousel-wrapper .item {top: 3em;}

  .categories-grid {grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));}
  .products-grid .p-md-4 {padding: 2rem 1.5rem !important;}
  .secondary-featured {grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 1024px) {
  .bestsellers-section h2, .featured-section h2 {margin-bottom: 30px;}
  .books-carousel-wrapper {padding: 2.5em 0 0;}

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-product-card {
    flex-direction: column;
    text-align: center;
  }

  .featured-product-card .product-image {
    flex: none;
    width: 250px;
    margin: 0 auto;
  }

  .featured-grid {grid-template-columns: 350px 1fr;}
  .p-md-4 {padding: 1rem !important;}
  /* h2.bwgb-products__product-title.woocommerce-loop-product__title.product__title.h6.text-lh-md.mb-1.text-height-2.crop-text-2.h-dark {font-size: 13px;} */
  /* .product__add-to-cart {font-size: 11px;} */
  .cta-button {width: 100%;}
}

@media (max-width: 1023px) {
  .dropdown-menu {
    position: absolute;
    left: -9999px;
    z-index: -1;
    transition: left 0.3s ease, z-index 0.3s ease;
  }

  .dropdown-menu.show {
    left: 0;
    z-index: 1000;
  }

  .carousel-container {padding: 2em 2em 0;}

  .main-container {
    max-width: 90%;
    padding: 0em 2em 0;
    flex-direction: column-reverse;
    height: 100%;
    gap: 2em;
  }

  .books-carousel-wrapper {
    padding: 0;
    width: 100%;
  }

  .book-cover, .owl-item.active.owl-item-first .item .book-cover {height: 250px !important;}
  .owl-item.cloned.active.owl-item-first .item, .books-carousel-wrapper .item{top: 6em !important;}
  .owl-item.active.center.owl-item-small .item{top: 0 !important;}
  .owl-item.active.center.owl-item-small .item .book-cover {height: 360px !important;}

  .info-section {
    width: 100%;
    padding: 0;
  }

  #info-carousel .item {text-align: center;}
  .book-cta .product__add-to-cart, .book-cta .added_to_cart {margin: 20px auto 0;}
  .book-base {margin-top: -31.7em;}
}

@media (max-width: 800px) {
  .owl-item.active.center.owl-item-small .item .book-cover {height: 300px !important;}
  .owl-item.active.owl-item-first, .owl-item.active.owl-item-small {height: 210px;}
  .book-cover, .owl-item.active.owl-item-first .item .book-cover {height: 170px !important;}
  .book-base {margin-top: -34.2em;}
  button.custom-prev {left: 1em;}
  button.custom-next {right: 1em;}

  .slide-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .container {padding: 0 1.5em;}

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .featured-grid {
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .category-card {padding: 30px 15px;}

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-info {padding: 20px;}

  .secondary-featured {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }

  .form-group {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 15px;
  }

  .form-group input,
  .submit-btn {
    border-radius: 10px;
  }

  .newsletter-section h2 {font-size: 28px;}
}

@media (max-width: 600px) {
  .main-container {
    max-width: 100%;
    padding: 0;
    gap: 1em;
  }
    
  .book-base {margin-top: -31.3em;}
  .book-cover, .owl-item.active.owl-item-first .item .book-cover {height: 150px !important;}
  .custom-nav{display: none;}
  .products-grid .p-md-4 {padding: 1rem !important;}
  .price {margin-bottom: 10px;}
  .secondary-featured {grid-template-columns: repeat(2, 1fr);}
  .main-featured {border-bottom: 1px solid grey;}
  .featured-product-card .product-image {width: 200px;}
  .product-details h3 {font-size: 20px;}

  .section-header {gap: 10px;}
  .section-header a {font-size: 14px;}
  .categories-grid .owl-item:first-child {margin-left: -50px !important;}
  .bestsellers-section {padding: 10px 0;}

  .bestsellers-section h2, .featured-section h2{
    margin-bottom: 20px;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0 1em;
  }

  .woocommerce-loop-product__category {
    font-size: 12px !important;
    margin: 0 !important;
  }

  h2.bwgb-products__product-title {font-size: 14px !important;}
  h2.bwgb-products__product-title.woocommerce-loop-product__title.product__title.h6.text-lh-md.mb-1.text-height-2.crop-text-2.h-dark {height: 2.8rem !important;}
  .justify-content-md-center {font-size: 15px !important;}
  .featured-grid {margin: 0 1em;}
}

@media (max-width: 500px) {
  .main-container {padding: 0 1em;}
  .carousel-container {padding: 2.5em 0 0;}
  .owl-item.cloned.active.owl-item-first .item, .books-carousel-wrapper .item {top: 4em !important;}
  .owl-item.active.center.owl-item-small .item .book-cover {height: 200px !important;}
  .book-cover, .owl-item.active.owl-item-first .item .book-cover {height: 110px !important;}
  .book-cta .product__add-to-cart, .book-cta .added_to_cart {margin: 10px auto 0;}
  .book-base {margin-top: -32.7em;}
  #info-carousel {padding: 0 1em 2em;}
  .container {padding: 0;}

  .bwgb-products__product-price .woocommerce-Price-currencySymbol, .bwgb-products__product-price .woocommerce-Price-amount.amount {font-size: 17px !important;}

  .product__add-to-cart {
    font-size: 11px;
    padding: 8px 11px;
    text-transform: none;
    margin-top: 0;
  }
}