/* @override 
	http://www.psc.dv/frontend/themes/toys/css/itemcards.css
	http://www.toys.dv/frontend/themes/toys/css/itemcards.css
	https://beta.jrtoycanada.ca/frontend/themes/toys/css/itemcards.css?*
	https://beta.jrtoycanada.ca/frontend/themes/toys_new/css/itemcards.css?* */

.item-list {	
	width: 100%;
	float: left;
	text-align: center;
}
.item-list,
.categories-list-wrap {
	clear: both;
	display: grid;
	overflow: hidden;	
	/* Make as many 255px columns as fit; on smaller screens it will drop columns */
	grid-template-columns: repeat(auto-fill, 248px);
	/* gaps */
	column-gap: 20px;
	row-gap: 60px;
	/* Center leftover space so the last row doesn't look lopsided */
	justify-content: center;	
}
.categories-list-wrap .item-card {
	margin: 0;
}

.item-card {
	display: inline-block;
	margin: 0 0 10px 0;
    width: 100%;
	vertical-align: top;
	text-align: center;
	position: relative;
}

.item-card .free-shipping-badge {
	display: none;
}

.item-card a.product-link {
	display: block;
	text-decoration: none;
	color: #333;
}

.item-card .badge {
	position: absolute;
	top: -10px;
	left: 2px;
	z-index: 10;
}

.item-card .badge-label {
	position: absolute;
	z-index: 9;
	width: fit-content;
	left: 1px;
	top: 176px;
	padding:5px 25px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	text-align: left;
}

.item-card a.product-link .badge-label.badge-freeship {
	display: none;
}

span.badge-35.badge-label {
	background-color: #662f90;
	color: #fff;
	text-indent: 36px;
}

span.badge-23.badge-label {
	background-color: var(--color-orange);
	color: var(--color-gray-dark);
}

span.badge-15.badge-label, span.badge-edu.badge-label {
	background-color: #f16622;
	color: #fff;
}

span.badge-12.badge-label {
	background-color: var(--color-pink);
	color: #fff;
}

span.badge-sale.badge-label {
	background-color: var(--color-green-dark);
	color: #fff;
}


.item-card .img-wrap {
	display: inline-block;
	background-color: #fff;
	height: 200px;
	width: 100%;
	text-align: center;
	overflow: hidden;
	position: relative;
	border: 1px solid #f1f1f1;
}

.item-card .img-wrap img {
	width: 60%;
    left: 20%;
    top: 10%;
    transition: .1s;
    max-width: inherit;
	position: absolute;
}

.item-card:hover .img-wrap img {
	width: 70%;
	left: 15%;	
	top: 5%;
	position: absolute;
}


.item-card h3 {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	white-space: normal;
	height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-card .price.sale-price {
	text-decoration: line-through;
	color: #999;
	font-weight: 400;
	margin: 0 5px 0 0;
}


/* LARGE CARD */

.large-item-card {
	max-width: 600px;
	margin: 50px auto;
}

.large-item-card a.product-link {
	display: block;
	text-decoration: none;
}

.large-item-card .price {
	margin: 5px 0 0 0;
	font-size: 22px;
	color: #0f4e99;
	font-weight: 200;
}

#category-empty-subcategories .item-card img.thumbnail {
	top: 20px;
}

.item-card i.icon-block, .item-card-sideways i.icon-block {
	color: #f20;
} 
.item-card i.icon-ok, .item-card-sideways i.icon-ok {
	color: var(--color-green);
}

.item-card .stock {
	display: grid;
	grid-template-columns: 94px 1px 100px;
	grid-column-gap: 10px;
	margin: 10px auto;
	white-space: nowrap;
	align-content: stretch;
	justify-content: center;
	font-size: 12px;
}

.item-card .stock span {
	display: block;
	width: 35%;
	padding: 2px;
	font-size: 12px;
}
.item-card .stock span:nth-child(2) {
	text-align: left;
}
.item-card .stock * {
	font-size: 12px;
	text-align: right;
	display: inline-block;
	width: auto!important;
}

.item-card .jr-no-tax-badge {
	position: absolute;
	width: 47px;
	height: 47px;
	border-radius: 50%;
	background: #DA010F;
	z-index: 2;
	font-size: 11px;
	text-align: center;
	color: #fff;
	font-weight: 600;
	right: 10px;
	top: 165px;
	padding-top: 5px;
	transform: rotate(-8deg);
}

.item-card .badge--cart {
	position: absolute;
    z-index: 99;
	cursor: pointer;
    width: fit-content;
    right: 4px;
    top: 4px;
    padding: 5px 7px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: var(--color-blue);
    text-align: left;
    border-radius: 4px;
	border: none;
	display: none;
}

.item-card:hover .badge--cart {
	display: block;
}

.item-card .badge--cart i {
	font-size: 13px;
}

.item-card .badge--cart:hover {
	background-color: var(--color-blue-dark);
	color: #fff;
	text-decoration: none;
}

.item-card .badge--heart {
	position: absolute;
    z-index: 9;
    width: fit-content;
    left: 0;
    top: 4px;
    padding: 5px 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-pink-dark);
}
@media (max-width: 991px) {
	.item-list,
	.categories-list-wrap {
		display: block;
	}
	
	.categories-list-wrap .item-card {
		margin: 5px 0;
		width: 100%!important;
		padding: 0;
		border: none!important;
		border-radius: 0!important;
		border-bottom: 1px solid #ccc!important;
	}

	.categories-list-wrap .item-card a.product-link {
		display: grid!important;
		grid-template-columns: 140px auto; /* image | content */
		gap: 10px;	  
		align-items: start;
		position: relative; /* anchor for absolute badges */
		padding: 12px;
		width: 100%;
		padding: 0;
		text-decoration: none;
		align-content: start;
		grid-template-areas: "image badge"
							 "image title"
							 "image price"
							 "image stock"
							 "image add"
							 "image extra";
  	}
	
	.categories-list-wrap .item-card a.product-link div.img-wrap {
		grid-area:image;
		border: none;
		width: 100%!important;
	}

	.categories-list-wrap .item-card a.product-link img {
		left: 0;
		width: 100%;
	}

	.categories-list-wrap .item-card a.product-link h3 {
		grid-area:title;
		width: 100%!important;
		padding: 0!important;
		margin: 0;
		text-align: left;
		height: auto;
	}

	.categories-list-wrap .item-card a.product-link div.price-block * {
		padding: 0;
	}
	
	.categories-list-wrap .item-card a.product-link div.price-block  {
		grid-area:price;
		text-align: left;
	}

	.categories-list-wrap .item-card a.product-link .stock {
		grid-area:stock;
	}
	
	.categories-list-wrap .item-card a.product-link div.stock {
		display: block;
		width: 100%;
		margin: 0;
		text-align: left;
	}
	
	.categories-list-wrap .item-card a.product-link div.stock span {
		display: inline-block;
	}
	
	.categories-list-wrap .item-card a.product-link  span.badge-label {
		grid-area:badge;
		top: 0;
		position: relative;
		text-align: left;
		padding:5px 25px;
		width: fit-content;
		left: 0;
	}
	
	.categories-list-wrap .item-card a.product-link  form {
		grid-area:add;
		display: block;
	}
	.categories-list-wrap .item-card form {
		padding-left: 150px;	
		display: inline-block;
		width: 100%;
	}

	.categories-list-wrap .item-card .badge--cart {
		position: relative!important;
		margin: 0 0 10px 0;
		display: block;
		top: 0;
		left: 0;				
	}

	.categories-list-wrap .item-card .badge--heart {
		position: relative !important;
        display: block;
        top: 0;
        left: 0;
	}
}

.item-card .badge--heart:hover ::before {
	content: '\3d';
	color: var(--color-pink);
}

@media (max-width: 991px) {
	.item-card .jr-no-tax-badge {
		right: initial;
		left: 5px;
		top: 105px;
	}
	#product-block div.item-list.mobile-scroll .item-card .jr-no-tax-badge {
		display: none;
	}
}


/* ADMIN STUFF */

.sales-details {
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: #f1f1f1;
	color: #333;
	opacity: 0.9;
	padding: 4px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: 0.5s;
	width: 80px;
	z-index: 990;
	border-radius: 4px;
}

.sales-details span {
	float: left;
	width: 50%;
	line-height: 20px;
	font-size: 12px!important;
}

.sales-details span.curr {
	border-bottom: 1px solid #333;
	font-weight: 900;
}
.sales-details span.prev {
	font-weight: 100;
}
.sales-details span.total {
	border-bottom: 1px solid #333;
}

.sales-details.green {
	background: #78e9bc;
}

.sales-details.red {
	background: #f8d8eb;
}

.sales-details:hover {
	background-color: #ccc!important;
}


/* ========== SIDEWAYS CARD ========== */

.item-card-sideways {
    position: relative;
    margin: 0 0 10px 0;
}

.item-card-sideways a {
    display: grid;
    grid-template-columns: 100px auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding: 10px;
    text-decoration: none;
    /*border-bottom: 1px solid #f1f1f1;*/
    background-color: #fff;
	color: #333;
    text-align: left;
	margin: 0 0 50px 0;
}

.item-card-sideways .item-card-image-hover {
    display: none;
}

.item-card-sideways .price.sale {
    font-size: 16px;    
}

.item-card-sideways span.price.discount {
    position: absolute;
    left: 5px;
    top: 5px;
    opacity: 0.8;
}

.item-card-sideways .badge {
    margin: 0;
    font-size: 11px;
}

.item-card-sideways .badge.cl.timedoffer, .item-card-sideways .badge.cl.timedoffer span.countdown {
    text-transform: uppercase;
    font-size: 11px;
    color: #fff;
}

.categories-list-wrap .item-card-sideways div div.badge.cl.timedoffer {
    /*display: none;*/
    color: #fff;
    font-size: 11px;
}

.item-card-sideways > div {
    padding:0 10px;
    width: 100%;
    overflow: hidden;
}

.item-card-sideways .review-line {
    display: block;
}

.item-card-sideways h3 {
    font-size: 16px;
    line-height: 18px;
    margin: 0;
}

.item-card .price{
    margin: 5px 0 0 0;
    font-size: 18px;
    color: #444E5C;
    font-weight: 600;
}

.item-card-sideways span.free-shipping  {
    display: block;
    color: #333;
    font-size: 12px;
}

.item-card-sideways .price{
    margin: 10px 0 0 0;
    font-size: 18px;
    color: #444E5C;
    font-weight: 600;
}

.item-card-sideways .stock {
	display: flex;
	margin: 10px auto;
	align-items: center;
    font-size: 12px;
}
.item-card-sideways .stock span {
    display: block;
    padding: 2px;
    font-size: 12px;
}
.item-card-sideways .stock * {
    font-size: 12px;
    text-align: right;
    display: inline-block;
    width: auto !important;
}
.item-card-sideways .stock span:nth-child(2) {
    text-align: left;
}

.item-card-sideways .review-line {
    margin: 0;
}

.item-card-sideways:last-child {
    border: none!important;
}

.item-card-sideways .buttons--desktop {
	display: none;
}
.item-card-sideways .buttons--mobile {
	display: flex;
	align-items: center;
}

/* HORIZONTAL SCROL */

.categories-list-wrap.horizontal-scroll {
    min-height: 400px;
}

.horizontal-scroll .item-card-sideways {
    width: 230px;
    display: inline-block;
    border-bottom: none;
    text-align: left;
    border-right: 1px solid #f1f1f1;    
    position: relative;
    min-height: 380px;
    white-space: ;
}

.horizontal-scroll .item-card-sideways a {
    display: block;
    border-bottom: none;
}

.horizontal-scroll .item-card-sideways h3 {
    white-space: normal;
}

.item-card-sideways .badge--cart{
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background-color: var(--color-blue);
	text-align: left;
	border-radius: 4px;
}

.item-card-sideways .badge--heart{
	padding: 5px 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-pink-dark);
}

.categories-list-wrap .item-card a.product-link form{
	display: flex !important;
	padding: 0;
}

.item-card--mobile{
	display: block;
}

.item-card--desktop{
	display: none;
}

.mini-add-cart{
	padding: 5px 0 0 0;
}
.mini-add-cart .badge--cart{
	margin: 0 10px 0 0 !important;
}

.categories-list-wrap .item-card:last-child{
	border: none !important;
}

@media (min-width: 960px) {
    .tall-banner-wrap .tall-banner-products {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-column-gap: 0;
        grid-row-gap: 0;
    }
	.item-card-sideways {
		margin: 5px 15px;
		width: 200px;
	}
    .item-card-sideways a{
        display: block;
		padding: 0;
		text-align: center;
		border: none;
    }
	.item-card-sideways .badge--heart {
		position: absolute;
		z-index: 9;
		width: fit-content;
		left: 0;
		top: 4px;
	}
	.item-card-sideways .badge--heart:hover ::before {
		content: '\3d';
		color: var(--color-pink);
	}

	.item-card-sideways .badge--cart {
		position: absolute;
		z-index: 9;
		width: fit-content;
		right: 4px;
		top: 4px;
	}

	.item-card-sideways .badge--cart i {
		font-size: 13px;
	}

	.item-card-sideways .badge--cart:hover {
		background-color: var(--color-blue-dark);
		color: #fff;
		text-decoration: none;
	}
	.item-card-sideways .img-wrap {
		display: inline-block;
		background-color: #fff;
		height: 200px;
		width: 200px;
		text-align: center;
		overflow: hidden;
		position: relative;
		border: 1px solid #f1f1f1;
	}
	.item-card-sideways h3 {
		height: 42px;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 14px;
		font-weight: 500;
		line-height: 20px;
		white-space: normal;
		margin: revert;
	}
	.item-card-sideways .price {
		margin: 5px 0 0 0;
		font-size: 18px;
		color: #444E5C;
		font-weight: 600;
	}
	.item-card-sideways .stock {
		display: grid;
		grid-template-columns: 94px 1px 100px;
		grid-column-gap: 10px;
		margin: 10px auto;
		white-space: nowrap;
		align-content: stretch;
		justify-content: center;
		font-size: 12px;
	}

	.item-card-sideways .stock * {
		font-size: 12px;
		text-align: right;
		display: inline-block;
		width: auto !important;
	}
	.item-card-sideways .stock span:nth-child(2) {
    	text-align: left;
	}
	.item-card-sideways .buttons--desktop {
		display: block;
	}
	.item-card-sideways .buttons--mobile {
		display: none;
	}
	.item-card-sideways img {
		width: 70%;
		left: 15%;
		top: 10%;
		transition: .1s;
		max-width: inherit;
		position: absolute;
	}
	.item-card--mobile{
		display: none;
	}
	.item-card--desktop{
		display: block;
	}

}
