﻿/*
	Product overview layouts all references to the product entity in the frontend store.
	This exclude Product details page.
	
	- Product Box
	>	Views/Shared/_ProductBox.cshtml
	
	- Order Summary
	>	Views/Shared/Components/OrderSummary/Default.cshtml

	- Mini Shopping Cart
	>	Views/Shared/Components/FlyoutShoppingCart/Default.cshtml

	- Recently Viewed
	>	Views/Shared/Components/RecentlyViewedProductsBlock/Default.cshtml

	- Wishlist
	>	Views/ShoppingCart/Wishlist.cshtml
	
	- Order Details
	>	Views/Order/Details.cshtml

	- AjaxCart Added to cart popup
	>	Views/Shared/Components/NopAjaxCartShoppingCart/ProductAddedToCartPopupDialog.cshtml

	- AjaxCart Added to wishlist popup
	>	Views/Shared/Components/NopAjaxCartShoppingCart/ProductAddedToWishlistPopupDialog.cshtml

	- AjaxCart Add to cart/wishlist popup
	>	Views/Shared/Components/NopAjaxCartCatalog/_ProductVariantOverview.cshtml
		
	- Sale of the day
	>	Views/Shared/Components/SaleOfTheDay/SaleOfTheDay.cshtml
	
	- Instant Search
	>	Views/Components/InstantSearch/InstantSearch.cshtml

	- Compare
	>	Views/Product/CompareProducts.cshtml

	BLOCK:		prod-ov
	ELEMENT:	prod-ov__image
						prod-ov__content
						...
	MODIFIER:	prod-ov--mini-shopping-cart
						prod-ov--instant-search
						prod-ov--recently-viewed
						prod-ov--order-summary
						...
*/

.prod-ov {
	display: grid;
	height: 100%;
	/* grid-template-rows: auto 1fr; */
	padding: .75rem;
	background-color: white;
	border-radius: .5rem;
}

/* .prod-ov.media-obj {
	grid-template-columns: 0px 1fr;
} */

@media (min-width: 32rem) {
	.prod-ov.media-obj {
		grid-template-columns: 138px 1fr;
	}
}

.order-summary-installments-selector {
	max-width: 380px;
}



.homepage-bestsellers-carousel {
	max-width: 1224px;
	margin: auto;
}

.homepage-bestsellers-carousel .prod-ov {
	grid-template-areas: 
		'image image'
		'content content';
	grid-template-columns: 1fr;
}

.prod-ov__content {
	display: flex;
	flex-direction: column;
	gap: var(--space-200);
	position: relative;
}

.prod-ov__short-description {
	flex-grow: 1
}

.prod-ov__quantity-input {
	max-width: 3rem
}

.prod-ov__name {
	text-decoration: none
}

.homepage-bestsellers-carousel .prod-ov__name {
	min-height: 48px;
}

.prod-ov__remove-from-cart input {
	display: none
}

.prod-ov__remove-from-wishlist input {
	display: none
}

.prod-ov p {
	margin: initial
}


/* Add to cart button */
.prod-ov__add-to-cart-button input {
	display: none
}

.attribute-squares-wrapper:empty {
	display: contents
}





/* Featured products modifier */
.featured-products .prod-ov {
	padding: 0;
	gap: 0;
	color: var(--color-gray-1);
	background: var(--color-gray-7);
	border: solid thick var(--color-gray-8);
}

.featured-products .prod-ov__name {
	color: var(--color-gray-0);
}

.featured-products .ribbon-wrapper,
.featured-products .prod-ov__image {
	background-color: var(--color-gray-0);
	border-radius: .25rem;
	overflow: hidden;
}

.featured-products .prod-ov__content {
	padding: 1rem;
}

.featured-products .prod-ov__add-to-cart-button {
	color: var(--color-gray-7);
	background: var(--color-gray-0);
}

.featured-products .prod-ov__add-to-cart-button:hover {
	box-shadow: rgba(255, 255, 255, 0.35) 0 .25rem 1rem;
}

.featured-products .btn--ghost {
	color: var(--color-gray-2);
	background-color: transparent;
	border-color: transparent;
}





@media (min-width: 20rem) {

	.stack--whishlist .prod-ov,
	.stack--order-summary .prod-ov {
		grid-template-columns: 90px 2fr;
	}

	.recently-viewed-products-block .prod-ov {
		grid-template-columns: 64px 2fr;
	}
}







.item-box .product-rating-box {
	display: none;
}

.item-box .rating {
	margin-bottom: 5px;
	width: 70px;
	height: 11px;
	background-image: url('../img/rating.svg');
	background-repeat: repeat-x;
	background-color: #ccc;
}

.item-box .rating div {
	height: 11px;
	background-image: url('../img/rating.svg');
	background-repeat: repeat-x;
	background-color: #57b568;
}

.item-box .attribute-squares {
	text-align: left;
}

.item-box .attribute-squares li {
	margin: 0 2px 0 0;
}

.item-box .attribute-squares label {
	padding: 2px;
	width: 26px;
	height: 26px;
}

.item-box .attribute-square {
	width: 20px;
	height: 20px;
}

.category-ov a {
	text-decoration: none;
}

.category-ov {
	width: 100%;
}

.category-ov__category-name,
.category-ov h1 {}

.category-ov__subcategory {
	padding: 0 .5rem .5rem;
}

.product-rating-box {
	display: none;
}

.product-price {
	font-size: var(--tx-s-8);
	color: var(--color-green-700);
}

.old-product-price {
	text-decoration: line-through;
}

.add-to-cart-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
}


.product-detail-product-name {
	color: var(--color-green-400);
}

.installments-disclaimer {
    background-color: #f1f1f1;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 15px;
}
.is-in-stock .value-stock {
    color: rgb(44, 44, 44);
}

.is-out-of-stock .value-stock {
    color: rgb(44, 44, 44);
}

.agile-precio-contado {
	font-size: var(--tx-s-4);
}

@media (min-width: 32rem) {
	.category-ov {
		width: auto;
	}
}

@media (max-width:600px) {
	.order-summary-installments-selector {
		max-width: 225px;
	}
}
