/* 1440px */
@media (max-width: 90em) {
  .header__icon-text {
    display: none;
  }
}
/* 1296px */
@media (max-width: 81em) {
  .header__cart-item-count {
    top: 55%;
    left: 50%;
  }

  .header__user-dropdown {
    right: -50%;
  }

  .search__form {
    max-width: 100%;
    margin: 0;
  }
	/*
  .collection--books 
	  .product-item-inner {
	  	min-height: 46rem;
  	  }
	*/  
  .collection--books 
	  .product-bottom {
		  padding: 0 2rem 2rem;
	  }
  
  .collection--books .product-item-title {
	  line-height: 1.2;
  }
	
  .section__product-description {
	  margin: 4rem 0;
  }
  
}

/* 1199px */
@media (max-width: 1199px) {
	.collection .product-item-title, .featured-product-title {
		min-height: 32px;
		font-size: 1.6rem;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		line-height: 1.2;
		margin-bottom: 1.6rem;
	}
	
	.product-bottom {
		padding: 0 3rem 3rem;
	}
	
	.related-item .product-bottom {
		padding: 0 2rem 2rem;
	}
	
	.collection--books .product-item-title {
		min-height: 45px;
		-webkit-line-clamp: 3;
	}
}


/* 1104px */
@media (max-width: 75em) {
  .header__container {
    padding: 0 2.4rem;
  }

  .header__inner {
	-ms-grid-columns: 2.5fr auto 5fr 2.5fr;
    grid-template-columns: 2.5fr auto 5fr 2.5fr;
    justify-content: space-between;
  }

  .header__col--main-nav {
    margin: 0;
  }

  .main-nav {
    background-color: rgba(33, 33, 33, 0.1);
    background-color: transparent;

    position: absolute;
    top: 6.7rem;
    left: 0;

    display: flex;

    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    width: 25rem;
    min-height: 100vh;

  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: inline-block;
  }
	
  .header__mega-menu {
	  display: none;
	  visibility: hidden;
  }

  .nav-open .header__mega-menu--mobile {
	  display: block;
	  visibility: visible;
	  overflow-y: auto;
	  -webkit-transform: translateX(0);
	  -ms-transform: translateX(0);
	  -o-transform: translateX(0);
	  transform: translateX(0);
	  
	  box-shadow: none;
	  border-top: 1px solid #f7f5f3;
  }

  .main-nav__wrapper,
  .header__mega-menu__nav,
  .mega-menu__list,
  .mega-menu__item {
    max-height: 100%;
    height: unset;
  }

  .main-nav__wrapper {
    flex-grow: 1;
    flex-shrink: 1;
    /*background-color: rgb(255, 255, 255);*/
  }

  .header__mega-menu__nav {
    flex: 1;
  }

  .mega-menu__list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    flex: 1;
    position: static;
  }

  .mega-menu__item {
    flex: 1;
    justify-content: flex-start;

    padding-left: 2.4rem;
    width: 100%;
    border-bottom: 1px solid rgba(153, 153, 153, 0.25);
  }

  .mega-menu__item:hover .mega-menu__item--title::after {
    background: transparent;
  }

  .mega-menu__item:hover {
    color: navy;
  }

  .mega-menu__item--title {
    padding: 2rem 0;
    justify-content: flex-start;
  }

  .icon-arrow-right {
    display: inline-block;
  }

  .icon-arrow-down {
    display: none;
  }

  .mega-menu__link {
    flex: 1;
    display: flex;
    justify-content: space-between;
  }

  .mega-menu__item--expand {
    left: calc(100%);
    top: 0;
    border-top: none;
  }

  .header__col--search {
    justify-content: center;
  }

  .btn-mobile-nav {
    display: flex !important;
    align-items: center;
  }

  .search__form {
    max-width: 90%;
  }

  .header__col--secondary-menu {
    justify-content: flex-end;
  }
	/*
  .collection--books 
	  .product-item-inner {
	  	min-height: 50rem;
  	  }
	*/
	.collection--books .product-item-title {
	  margin-bottom: 0.6rem;
  	}
}

/* 1275px */
@media (max-width: 80em) {
	.mega-menu__item--title {
		font-size: 1.2rem;
	}
	
}

/* 1024px */
@media (max-width: 64em) {
	.product-details-expand {
		position: unset;
		transform: translateY(0);
	}
	
	
}

/* 1000px */
@media (max-width: 63em) {
	/*
	.collection--books 
	  .product-item-inner {
	  	min-height: 50rem;
  	  }
	*/
	.collection--books .product-item-title {
	  line-height: 1.1;
  	}
}

/* 800px */
@media (max-width: 50em) {
  .header__inner {
	-ms-grid-columns: 5fr 5fr 5fr 5fr;  
    grid-template-columns: 5fr 5fr 5fr 5fr;
    justify-content: space-between;
    column-gap: 0;
  }

  .header__col--logo {
    grid-column: 1 / 3;
    justify-content: space-between;
    position: relative;
  }

  .header__col--secondary-menu {
    grid-column: 4;
    grid-row: 1;
  }

  .logo__img--header {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
  }

  /* MAIN SEARCH BAR HIDDEN */
  .header__col--search {
    display: none;
  }

  .header__hidden-search-bar--trigger {
    display: contents;
  }

  .header.search-open .header__col--search {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    padding: 0 2.4rem 0 1.4rem;

    background-color: rgb(255, 255, 255);
    transition: all 0.3s ease-in-out;

    width: 100vw;
    height: 6.6rem;

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

    pointer-events: auto;
  }

  .header.search-open .search__form {
    border: none;
    border-radius: 0;
    max-width: 100%;
    flex-direction: row-reverse;
  }

  .header.search-open .hidden-search-bar__btn-close {
    display: inline-block;
  }
	/*
  .collection--books 
	  .product-item-inner {
	  	min-height: 44rem;
  	  }
	*/
	
	.header__user, 
	.hidden-search-bar__trigger-btn {
		margin-right: 5px;
	}
	
  .related-product .product_related .owl-nav .owl-prev:before {
	  left: -10px;
  }

  .related-product .product_related .owl-nav .owl-next:before {
	  left: 10px;
  }
}

/* 768px */ 
@media (max-width: 48em) {
	.featured-products__wrapper {
		-ms-grid-columns: 1fr, 1fr;
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 752px */
@media (max-width: 47em) {
	.section__product-details__wrapper {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 2rem;
	}
	
	.product-details--metadata {
		border: none;
	}
	
	.product-details--images {
		width: 100vw;
		max-width: 100%;
	}
	
	.product-details--metadata {
		max-width: 100%;
		width: 100vw;
		padding: 0;
	}
	
	.section__product-details .product-brand {
		margin-bottom: 0;
	}
	.section__product-details .product-title {
		margin-bottom: 1.6rem;
	}

	.section__product-description {
		margin: 0 0 4rem;
		padding: 0 15px;
	}
	
	.section__product-description__wrapper {
		padding: 0 2rem;
	}

}

/* 720px */
@media (max-width: 45em) {
	.related-item .product-item-color-swatches {
		min-height: 3.8rem;
	}
}

/* 576 px */
@media (max-width: 36em) {
	/*
  .collection--books 
	  .product-item-inner {
	  	min-height: 46rem;
  	  }
	*/
	.collection .product-bottom {
		padding: 0 2rem 3rem;
	}
}

/* 400px */
@media (max-width: 25em) {
  .logo__img--header {
    max-height: 3rem;
  }

  .search__form {
    flex-wrap: nowrap;
    justify-content: space-evenly;
    padding: 0 2.4rem;
  }


  .main-nav {
    width: 15rem;
  }

  .expand-content__inner {
    flex-wrap: wrap;
    justify-content: space-around;
    flex: 0;
  }
	
	/*
  .collection--books .product-item-inner {
	  min-height: 40rem;
  }
	*/
	
  /* RELATED ITEMS */
/*
  .section_prd_feature .product-item-inner {
	  min-height: 28rem;
  }
*/	
  .related-item .product-item-title {
	  overflow: hidden;
	  text-overflow: ellipsis;
	  display: -webkit-box;
	  -webkit-line-clamp: 2;
	  -webkit-box-orient: vertical;
	  min-height: 28px;
	  font-size: 1.2rem;
	  line-height: 1.3;
  }
	
  .related-item .product-bottom {
	  padding: 1rem;
  }
  
  .item_product_main.related-item .product-thumbnail {
	  padding: 5px;
  }
	
  .collection-name {
	  font-size: 1.6rem;
  }
	
	
/* ITEMS ON COLLECTION PAGE */	
  .collection .swatch-item {
	  height: auto;
  }
	
  .collection .product-item-title, .featured-product-title {
	  min-height: 45px;
	  overflow: hidden;
	  text-overflow: ellipsis;
	  display: -webkit-box;
	  -webkit-line-clamp: 3;
	  -webkit-box-orient: vertical;
	  font-size: 1.4rem;
  }
	
	.collection .product-bottom {
		padding: 0 1rem 1rem;
	}
	
	.collection .item_product_main .product-item-main .product-thumbnail {
		padding: 1rem;
	}
	
	.collection .product-item-vendor {
		min-height: 18px;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		text-align: left;
		margin-bottom: 0;
	}
	
	.collection .product-item-color-swatches, .swatch-btn-group.collection-page {
		min-height: 34px;
	}
	
	.section-featured-categories {
    	margin: 2rem 0;
	}
	
	.section-featured-categories .heading-secondary {
		padding: 0 2rem;
		text-align: center;
		margin: 0;
	}
	
	
	.section__product-details__wrapper {
		padding: 0;
	}
	
    .section__product-description__wrapper {
        padding: 0;
    }
}
}

/* ADJUST FONT-SIZE */

@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }
}


@media (max-width: 75em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }
	
  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }
}


@media (max-width: 25em) {
  .breadcrumbs-title .heading-secondary {
    font-size: 2.4rem;
  }
	
	.collection--books .product-item-title {
		min-height: 44px;
		-webkit-line-clamp: 4;
		font-size: 1.2rem;
	}

	.featured-product-title {
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		min-height: 20px;
		font-size: 1.4rem;
	}
	
	.color-swatch-more-items {
		font-size: 1.5rem;
	}
}