/*
 *
 * List page
 *
*/
/* Defenir espaçamentos entre product item na listagem e pesquisa */
.section-products {
	--productItem-desktop-padding-v: 15px;	/* Desktop Vertical */
	--productItem-desktop-padding-h: 8px;	/* Desktop Horizontal */
	--productItem-mobile-padding-v: 20px;	/* Mobile Vertical */
	--productItem-mobile-padding-h: 2px;	/* Mobile Horizontal */
}
#main:not(.products) .section-products .column.first-line {padding-top: 0 !important;}
#rdc-productlist-section-products .section-products {margin-top: calc(var(--productItem-desktop-padding-v) * -1);}
@media screen and (min-width: 768px) {
	.section-products {margin: 0 calc(var(--productItem-desktop-padding-h) * -1);}
	.section-products .column {padding: var(--productItem-desktop-padding-v) var(--productItem-desktop-padding-h) 0;}
}
/* Visual merchandising */
.columnWidth2 {--product-figure-aux: 0.35} /* Ajusto horizontal 2 */
.columnWidth3 {--product-figure-aux: 0.83} /* Ajusto horizontal 3 */
.columnWidth4 {--product-figure-aux: 1.31} /* Ajusto horizontal 4 */
.columnWidth2 .rdc-product-item-image figure {padding-bottom: calc(var(--product-figure2-padding) - var(--productItem-desktop-padding-h) - var(--productItem-desktop-padding-h) * var(--product-figure-aux));}
@media screen and (max-width: 767px) {
	.section-products.row1 .column:not(.columnWidth1) .rdc-product-item-image figure {padding-bottom: calc(var(--product-figure-padding, 0px));}
	.section-products.row2 .column:not(.columnWidth1) .rdc-product-item-image figure {padding-bottom: calc(var(--product-figure2-padding, 0px));}
}
@media screen and (min-width: 768px) {
	.columnWidth3 .rdc-product-item-image figure {padding-bottom: calc(var(--product-figure3-padding) - var(--productItem-desktop-padding-h) - var(--productItem-desktop-padding-h) * var(--product-figure-aux));}
	.columnWidth4 .rdc-product-item-image figure {padding-bottom: calc(var(--product-figure4-padding) - var(--productItem-desktop-padding-h) - var(--productItem-desktop-padding-h) * var(--product-figure-aux));}
}
.section-products .first-line .column.rdc-product-item-with_text_wrap {padding-top: var(--productItem-desktop-padding-v) !important;}
.section-products .featuredProductColumn {position: relative;}
.section-products .featuredProductColumn .featuredProduct {position: static;}
.section-products .featuredProductColumn .featuredProductItem {width: calc(200% + var(--productItem-desktop-padding-v) + 1px);left: calc(-100% - var(--productItem-desktop-padding-v));border: 1px solid transparent;border-bottom: 0;}
.section-products .featuredProductColumn article.product-item .image {overflow: visible;}
.section-products .rdc-product-item-enhance-full-height .rdc-product-item-image-link {position: static !important;}
.section-products .rdc-product-item-enhance-full-height .rdc-product-item-content {visibility: hidden !important;}

@media screen and (max-width: 767px) {
	#rdc-productlist-section-products .section-products {margin-top: calc(var(--productItem-mobile-padding-v) * -1);}
	.section-products {margin: 0 calc(var(--productItem-mobile-padding-h) * -1);}
	.section-products .column {padding: var(--productItem-mobile-padding-v) var(--productItem-mobile-padding-h) 0;}
	
	/* Visual merchandising */
	.section-products .first-line .column.rdc-product-item-with_text_wrap {padding-top: 20px !important;}
	.section-products .featuredProductColumn.col-xs-offset-4,
	.section-products .featuredProductColumn.col-xs-offset-3 {margin-left: 0 !important;}
	.section-products .featuredProductColumn .featuredProductItem {display: none;}
	/*.section-products:not(.bannerhorizontalActive) .column.col-xs-6:nth-child(2n+1) {clear: left;}*/
}

/*
 *
 * Product Item
 * Nota: CSS mobile deve ser colocado no ficheiro HTML
 *
*/
article.product-item {
	--productitem-padding-v: 12px;
	--productitem-padding-h: 5px;
}
article.product-item {display: flex;flex-direction: column;min-height: 100%;text-align: initial;background: var(--color-white);position: relative;z-index: 30;overflow: hidden;}
article.product-item .rdc-product-item-brand {margin-bottom: 1px;text-decoration: none;}
article.product-item .rdc-product-item-name {overflow: hidden;display: -webkit-box;-webkit-line-clamp: 2;line-clamp: 2;-webkit-box-orient: vertical;text-decoration: none;}
article.product-item .rdc-product-item-actions {margin-top: auto;}
body article.product.ads .desc {text-align: center;padding: 15px;}
body article.product.ads .name {margin-bottom: 4px;}

/* Image and slider */
.rdc-product-item-image {position: relative;z-index: 0;}
.rdc-product-item-image figure {background-color: var(--color-background);}
.rdc-product-item-image img {display: block;width: 100%;height: 100%;object-fit: cover;}
.rdc-product-item-image .img-hover {display: none;}
.rdc-product-item-image .slick-arrow {transition: 0.2s opacity;opacity: 1;}
.rdc-product-item-image .slick-arrow.slick-disabled {visibility: visible;cursor: default !important;opacity: 0 !important;}
.rdc-product-item-image .rdc-icon-circle {width: var(--button-circle-size, 32px);height: var(--button-circle-size, 32px);}
.rdc-product-item-image .rdc-icon-circle .rdc-icon-svg {width: var(--button-circle-icon-size, 32px);height: var(--button-circle-icon-size, 32px);}
.rdc-productitem-slider-layout-1 .rdc-product-item-image .slick-dots {display: none;}
.rdc-productitem-slider-layout-2 .rdc-product-item-image .slick-arrow {display: none;}
@media (hover) { /* Cursor Screens */
	.rdc-product-item-image:hover .slick-arrow {opacity: 1;}
}

/* Content */
.rdc-product-item-content {padding: var(--productitem-padding-v) var(--productitem-padding-h);}
.rdc-product-item-wrapper-brand {display: flex;justify-content:space-between;gap:15px;align-items: flex-start;}
.rdc-product-item-wrapper-brand-right {display: flex;justify-content:space-between;gap:6px;align-items: center;}
.rdc-product-item-wrapper-name {display: flex;justify-content:space-between;gap:15px;align-items: flex-start;}
.rdc-product-item-wrapper-name-right {display: flex;justify-content:space-between;gap:6px;align-items: center;}
.rdc-product-item-wrapper-brand .rdc-product-item-colors, .rdc-product-item-wrapper-name .rdc-product-item-colors {margin-left: auto;}
.rdc-product-item-content .rdc-product-item-brand{display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;overflow: hidden;}
.rdc-product-item-content .rdc-product-item-name {display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;}
article.product-item.rdc-product-item-small .rdc-product-item-name {display: block;white-space: nowrap;text-overflow: ellipsis;height: auto;min-height: 0;}
.rdc-product-item-wrapper-extra {display: flex;align-items: center;justify-content: space-between;margin-top: 15px;}

/* Price */
.rdc-product-item-wrapper-prices {display: inline-block;margin-top: 12px;text-decoration: none;}

/* Tags / flags */
.rdc-product-item-flags {display: flex;gap: 6px;}
.rdc-product-item-flags.absolute {position: absolute;left: var(--productitem-padding-h);top: var(--productitem-padding-h);z-index: 10;flex-direction: column;}
.rdc-product-item-flags.top {margin-bottom: 15px;}
.rdc-product-item-flags.bottom {margin-top: 15px;}
.rdc-product-item-flags:not(.absolute) {flex-direction: row; flex-wrap: wrap;}
.rdc-product-item-flags .flag {align-self: flex-start;}

/* Colors */
.rdc-product-item-colors-list {display: inline-grid;grid-template-columns: auto;grid-auto-flow: column;gap: 4px;align-items: center;}
.rdc-product-item-colors-list .rdc-product-color-item,
.rdc-product-item-colors-list .rdc-product-more-colors {display: flex;align-items: center;justify-content: center;text-decoration: none;}
.rdc-product-item-colors-list .rdc-product-color-item figure,
.rdc-product-item-colors-list .rdc-product-color-item .color-code,
.rdc-product-item-colors-list .rdc-product-color-item .rdc-icon-svg,
.rdc-product-item-colors-list .rdc-product-more-colors .rdc-icon-svg {width: 14px;height: 14px;position: relative;}
.rdc-product-item-colors-list .rdc-product-color-item .rdc-icon-svg,
.rdc-product-item-colors-list .rdc-product-more-colors .rdc-icon-svg {background-size: 16px;}
.product-item-more-colors-label {margin-left: 4px;text-decoration: none;}
/* Single Color */
#main:not(.wishlist) .rdc-product-item-colors-length-1 {/*visibility: hidden;*/}
#main:not(.wishlist) article.product-item:not(.rdc-productitem-combine-active) .rdc-product-item-wrapper-brand .rdc-product-item-colors-length-1,
#main:not(.wishlist) article.product-item:not(.rdc-productitem-combine-active) .rdc-product-item-wrapper-name .rdc-product-item-colors-length-1 {display: none;}

/* Colors and variants - wishlist page */
#main.wishlist .rdc-product-item-colors {display: flex;align-items: center;gap: 6px;}
#main.wishlist .rdc-productitem-addwish-required-1 .rdc-product-item-colors-list .rdc-product-color-item:not(.sel) {display: none;}
.rdc-product-item-variants-wishlist {display: flex;align-items: center;justify-content: center;}
.rdc-product-item-variants-wishlist .value {line-height: 100%;margin: 0;padding: 0;}

/* Special base colors */
.rdc-check-base-color{position: relative;}
.rdc-base-color{position: absolute;top: 0;left: 0;display: block;width: 100%;height: 100%;border-radius: inherit;overflow: hidden;border-radius: 0;}
.rdc-base-color-silver{background: linear-gradient(90deg, #A7A7A7 0%, #CECECE 35%, #F7F7F7 100%);}
.rdc-base-color-gold{background: linear-gradient(90deg, #BB8E39 0%, #DBB866 35%, #FEF4B9 100%);}
.rdc-base-color-multicolor > span::before, .rdc-base-color-multicolor > span::after{content: '';position: absolute;width: 50%;height: 50%;}
.rdc-base-color-multicolor > span:first-child::before{top: 0;left: 0;background-color: #128FBB;}
.rdc-base-color-multicolor > span:first-child::after{top: 0;right: 0;background-color: #4CAF50;}
.rdc-base-color-multicolor > span:last-child::before{bottom: 0;left: 0;background-color: #FFFF00;}
.rdc-base-color-multicolor > span:last-child::after{bottom: 0;right: 0;background-color: #FF0000;}
.rdc-base-color-transparent::before, .rdc-base-color-transparent::after{content: '';position: absolute;top: 0;display: block;width: 0;height: 0;border-width: 30px;border-style: solid;}
.rdc-base-color-transparent::before{right: 1px;border-color: white red red white;}
.rdc-base-color-transparent::after{right: 0;border-color: transparent white white transparent;}

/* Quick Buy */
article.product-item .btn-quick-buy {display: flex;position: absolute;z-index: 50;bottom: 0;left: 50%;transform: translateX(-50%);align-items: center;justify-content: center;width: 64px;height: 64px;border-radius: 150px;z-index: 100 !important;}
article.product-item.rdc-popup-prepend {overflow: hidden;}
article.product-item.rdc-productitem-slider-layout-2 .btn-quick-buy {bottom: 5px;}
.rdc-popup-prepend {z-index: 15;}

/* Wishlist (Circular button) */
.rdc-product-item-actions-top {position: absolute;top: var(--productitem-padding-h);right: var(--productitem-padding-h);z-index: 10;display: grid;grid-gap: 10px;}
.rdc-product-item-actions-top-item .rdc-icon-svg {display: none;}
.rdc-product-item-actions-top-item:not(.sel) .rdc-icon-svg:first-child,
.rdc-product-item-actions-top-item.sel .rdc-icon-svg:nth-child(2),
.rdc-product-item-actions-top-item .rdc-icon-delete {display: block;}
.rdc-product-item-actions-top-item.disabled:not(.sel) {cursor: no-drop;opacity: 0.5 !important;}
article.product-item .rdc-product-item-addWish.rdc-wishlist-hidden:not(.sel) {display: none;}

/* Wishlist (Regular button) */
.rdc-product-item-wrapper-info .rdc-icon-svg{width: 18px; height: 18px;}

/* Button Add Cart */
article.product-item button.addCart:not([disabled]):not(.rdc-not-available):after {content: attr(data-expression-regular);}
@media screen and (max-width: 1199px) {
	article.product-item button.addCart:not([disabled]):not(.rdc-not-available):after {content: attr(data-expression-small);}
}
@media screen and (max-width: 1599px) {
	article.product-item.rdc-product-item-width-ex-small button.addCart:not([disabled]):not(.rdc-not-available):after,
	article.product-item.rdc-product-item-width-small button.addCart:not([disabled]):not(.rdc-not-available):after {content: attr(data-expression-small);}
}
@media screen and (min-width: 1600px) {
	article.product-item.rdc-product-item-width-ex-small button.addCart:not([disabled]):not(.rdc-not-available):after,
	article.product-item.rdc-product-item-width-small button.addCart:not([disabled]):not(.rdc-not-available):after {content: attr(data-expression-regular);}
}
article.product-item button.addCart.rdc-not-available:not([disabled]):after {content: attr(data-expression-notify);}
article.product-item button.addCart[disabled]:after {content: attr(data-expression-esgotado);}

/* Techologies */
.rdc-product-item-technologies {position: absolute;bottom: var(--productitem-padding-h);right: var(--productitem-padding-h);z-index: 10;display: flex;flex-direction: column;width: 38px;gap: 5px;}
.rdc-product-item-technology-image img {width: 100% !important;height: auto !important;}
@media screen and (max-width: 767px) {
	.rdc-productitem-slider-layout-2 .rdc-product-item-technology:nth-child(n+4),
	.rdc-productitem-slider-layout-2 .rdc-product-item-technology:nth-child(n+5),
	.col-xs-6 .rdc-productitem-slider-layout-1 .rdc-product-item-technology:nth-child(n+3),
	.col-xs-6 .rdc-productitem-slider-layout-1 .rdc-product-item-technology:nth-child(n+4) {display: none;}
}
@media screen and (min-width: 768px) {
	.rdc-productitem-slider-layout-2 .rdc-product-item-technology:nth-child(n+5),
	.rdc-productitem-slider-layout-1 .rdc-product-item-technology:nth-child(n+4) {display: none;}
}

/* Reviews */
.rdc-product-item-reviews {display: flex;align-items: center;gap: 0 8px;}
.rdc-product-item-review-rating {display: flex;}
.rdc-product-item-review-rating, .rdc-product-item-review-rating span {min-width: 14px;min-height: 14px;}
.rdc-product-item-review-rating span {background-position: center;background-size: 100%;background-repeat: no-repeat;}
.rdc-product-item-review-rating span:not(:first-child) {margin-left: 2px;}
.rdc-product-item-review-desc {display: flex;align-items: center;margin-bottom: -1px;}
.rdc-product-item-width-small .rdc-product-item-review-rating span:nth-child(n+2) {display: none;}
article.product-item .value .dot {padding: 0 6px;}

/* Actions */
@media (min-width: 768px) and (pointer: fine) { /* Cursor Screen */
	article.product-item .btn-quick-buy {opacity: 0;visibility: hidden;}
	article.product-item:hover .btn-quick-buy {opacity: 1;visibility: visible;}
	article.product-item:hover .rdc-product-item-actions-top-item {opacity: 1;visibility: visible;}
	article.product-item:hover .rdc-product-item-image .img-hover {display: block;}
}
@media (pointer: coarse) {
	/* Estilos para dispositivos sem cursor ou ecrã touch */
}

/* Header search */
@media screen and (min-width: 1200px) {
	.header-search-container .section-products .column {padding-top: 0;padding-bottom: 0;}
	.header-search-container .rdc-product-item-content {padding-top: 11px;padding-bottom: 11px;}
	.header-search-container .hidden-xs {display: none !important;}
	.header-search-container .hidden-lg {display: block !important;}
}

/* Slider - CSS */
body .rdc-product-item-image .slider {position: relative;width: 100%;overflow: initial;touch-action: manipulation;}
body .rdc-product-item-image .slider .slides {position: relative;width: 100%;overflow: scroll hidden;display: flex;flex-flow: row;scrollbar-width: none;}
body .rdc-product-item-image .slider .slides::-webkit-scrollbar {display: none;}
body .rdc-product-item-image .slider .slides .slide-item {display: inline-block;flex: 0 0 auto;scroll-snap-align: center;scroll-snap-stop: always;width: 100%;}
body .rdc-product-item-image .slider .slick-arrow {z-index: 20;/*width: 64px;height: 64px;top: calc(50% - 32px);*/}
body .rdc-product-item-image .slider .slick-prev {left: 10px;}
body .rdc-product-item-image .slider .slick-next {right: 10px;}
body .rdc-product-item-image .slider:not(.slick-initialized) .slides .slide-item:nth-child(n+2) {display: none;}
body .rdc-product-item-image .slider:not(.slick-initialized) .slick-dots {display: none;}
.rdc-product-item-image .slick-dots {position: absolute;z-index: 20;top: auto;bottom: 0;background: transparent;width: 100%;display: flex;justify-content: center;gap: 1px;background-color: rgba(255, 255, 255, .75);}
.rdc-product-item-image .slick-dots li {width: 100%;flex-grow: 1;display: inline-block;padding: 1px 0;margin: 0;}
.rdc-product-item-image .slick-dots li button {display: block;width: 100%;height: 1px;background: var(--color-gray);border-radius: 0;-webkit-mask: none;mask: none;border: 0;cursor: pointer;}
.rdc-product-item-image .slick-dots li:hover button,
.rdc-product-item-image .slick-dots li.slick-active button {background: var(--color-darkgray);}
@media (min-width: 768px) and (pointer: fine) {
	.rdc-product-item-image .slick-dots li button {height: 2px}
	article.product-item .rdc-product-item-image .slick-arrow {opacity: 0;visibility: hidden;}
	article.product-item:hover .rdc-product-item-image .slick-arrow {opacity: 1;visibility: visible;}
	article.product-item .rdc-product-item-image .slick-arrow:hover {opacity: var(--button-hover-opacity);}
}
@media (pointer: coarse) {
	body .rdc-product-item-image .slider.slick-initialized:not(.disableTouchSlider) .slides {scroll-snap-type: x mandatory;}
}

/* Countdown - Sorteios */
article.product-item:not(.rdc-productitem-countdown-active) .rdc-productitem-countdown {display: none;}
.rdc-productitem-countdown {position: absolute;bottom: 0;z-index: 1;width: 100%;}

/* Add cart / wishlist (footer) */
.rdc-promo-dates-wrapper {display: flex;flex-direction: column;justify-content: center;align-items: center;gap: 3px;margin-top: 13px;}
article.product-item .rdc-product-item-wrapper-actions {padding: 8px var(--productitem-padding-h) var(--productitem-padding-v);position: relative;z-index: 1050;background-color: var(--color-white);margin: 15px calc(var(--productitem-padding-h) * -1) calc(var(--productitem-padding-v) * -1);}
article.product-item .rdc-product-item-wrapper-actions.hidden-mouse-leave {z-index: 0;}
article.product-item .rdc-product-item-buttons {display: grid;grid-gap: 10px;}
article.product-item .rdc-product-item-buttons button.btn-icon .rdc-icon-svg {display: none;}
article.product-item .rdc-product-item-buttons button.btn-icon:not(.sel) .rdc-icon-svg:first-child,
article.product-item .rdc-product-item-buttons button.btn-icon.sel .rdc-icon-svg:nth-child(2) {display: block;}
article.product-item .rdc-product-item-buttons button.btn-icon.disabled:not(.sel) {cursor: no-drop;opacity: 0.5 !important;}
@media (hover: hover) {
	article.product-item .rdc-promo-dates-wrapper {visibility: hidden;}
	article.product-item:hover .rdc-promo-dates-wrapper {visibility: visible;}
	article.product-item .rdc-product-item-buttons .btn-icon:not(.disabled):not([disabled]):hover .rdc-icon-svg{opacity: 0.5; filter: unset;}
}

/* Combine With */
.rdc-productitem-combine-active .rdc-product-item-wrapper-extra {visibility: visible;}
.rdc-productitem-combine-active .rdc-product-item-colors-length-1 {visibility: visible !important;}
.rdc-product-item-combine .wrapper-form {display: flex;flex-direction: column;gap: 5px;margin-top: -7px;margin-bottom: var(--productitem-padding-v);}
article.product-item .wrapper-form .form-field {margin-top: 0;margin-bottom: 0;padding-top: 0;padding-bottom: 0;}

/* Cores em mobile: 
   Se as cores estiverem ao lado da marca ou nome (em product item col-xs-6), 
   elas devem ser exibidas na seção de informações extras (parte inferior). */
@media screen and (max-width: 767px) {
	#main .column:not(.col-xs-12) article.product-item:not(.rdc-productitem-color-position-1) .rdc-product-item-wrapper-info .rdc-product-item-colors,
	#main .column.col-xs-12 .rdc-productitem-color-position-2 .rdc-product-item-wrapper-extra.colors_displayed:not(.reviews_displayed),
	#main .column.col-xs-12 .rdc-productitem-color-position-2 .rdc-product-item-wrapper-extra.colors_displayed.reviews_displayed.rdc-product-item-review-empty,
	#main .column.col-xs-12 .rdc-productitem-color-position-2 .rdc-product-item-wrapper-extra.colors_displayed.reviews_displayed:not(.rdc-product-item-review-empty) .rdc-product-item-colors
	#main .column.col-xs-12 .rdc-productitem-color-position-3 .rdc-product-item-wrapper-extra.colors_displayed:not(.reviews_displayed),
	#main .column.col-xs-12 .rdc-productitem-color-position-3 .rdc-product-item-wrapper-extra.colors_displayed.reviews_displayed.rdc-product-item-review-empty,
	#main .column.col-xs-12 .rdc-productitem-color-position-3 .rdc-product-item-wrapper-extra.colors_displayed.reviews_displayed:not(.rdc-product-item-review-empty) .rdc-product-item-colors {display: none;}
}
@media screen and (min-width: 768px) {
	.rdc-productitem-color-position-2 .rdc-product-item-wrapper-extra.colors_displayed,
	.rdc-productitem-color-position-3 .rdc-product-item-wrapper-extra.colors_displayed {display: none;}
}

/* Estilos */
article.product-item button.btn-icon {background-color: var(--color-white);border-color: var(--color-lines);}
article.product-item button.btn-icon[disabled] {opacity: 0.5;}
.rdc-v-hidden{visibility: hidden;}