/*
Theme Name: Market3

WooCommerce styles override
*/



.page-description {
    margin-top: 4.5em;
}



ul.products {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
}

@media screen and (min-width: 893px) {
ul.products li {
	
}
ul.products.columns-2 { column-gap: 5%; }
ul.products.columns-2 li { width: 47.5%; }
ul.products.columns-3 { column-gap: 3.7%; }
ul.products.columns-3 li { width: 30.866%; }
ul.products.columns-4 { column-gap: 2.5%; }
ul.products.columns-4 li { width: 23.125%; }
ul.products.columns-5 { column-gap: 1.8%; }
ul.products.columns-5 li { width: 18.56%; }
ul.products.columns-6 { column-gap: 1.2%; }
ul.products.columns-6 li { width: 15.666%; }
}

figure.loop-product-image {
    width: 100%;
	height: 270px;
    margin: 0;
}

@media screen and (min-width: 893px) {
ul.products.columns-2 figure.loop-product-image { height: 330px; }
ul.products.columns-3 figure.loop-product-image { height: 280px; }
ul.products.columns-4 figure.loop-product-image { height: 230px; }
ul.products.columns-5 figure.loop-product-image { height: 180px; }
ul.products.columns-6 figure.loop-product-image { height: 130px; }
}

figure.loop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

ul.products li a {
    color: inherit;
	display: flex;
    flex-direction: column;
    gap: 1em;
}

.loop-product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
	gap: 0.7em;
	
}

h4.woocommerce-loop-product__title {
    margin: 0 1em;
    color: var(--wp--preset--color--accent-dark);
    font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	text-align: center;
    line-height: 1.2;
}



p.woocommerce-result-count {
    margin: 2em 0;
}



/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/

nav.woocommerce-pagination {
    margin-top: 4em;
}

ul.page-numbers {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

ul.page-numbers .page-numbers {
	color: var(--wp--preset--color--accent-dark);
    border: 2px solid var(--wp--preset--color--accent-dark);
    height: 1.8em;
    width: 1.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    border-radius: 0.3em;
    font-weight: 600;
}

ul.page-numbers .page-numbers.current, ul.page-numbers .page-numbers:hover {
	color: #fff;
    background-color: var(--wp--preset--color--accent-dark);
}




/*--------------------------------------------------------------
# Single
--------------------------------------------------------------*/

@media screen and (min-width: 893px) {
.product-summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
	margin-top: 1.8em;
}
.product-summary-container > .product-images {
    width: 600px;
}
.product-summary-container > .summary {
    width: 580px;
}
}



/*--------------------------------------------------------------
# Single - product-gallery
--------------------------------------------------------------*/

.product-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery figure {
    width: 112px;
	height: 112px;
    margin: 0;
	border: 1px solid var(--wp--preset--color--gray-300);
}

.product-gallery a {
	display: block;
    width: 100%;
    height: 100%;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 893px) {
a.gallery-trigger {
    display: none;
}
}

@media screen and (max-width: 893px) {
a.gallery-trigger {
    color: #fff;
    background-color: var(--wp--preset--color--contrast);
    padding: 0.7em 1.3em;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    border-radius: 3px;
}
.product-gallery {
    display: none;
}
}




/*--------------------------------------------------------------
# Single - images on mobile
--------------------------------------------------------------*/

@media screen and (max-width: 893px) {
.product-images.has-gallery {
    gap: 8px;
	margin-bottom: 20px;
}
.product-gallery {
    gap: 5px;
    width: 69px;
    height: 260px;
}
.product-gallery figure {
    width: 60px;
    height: 60px;
}
.product-main-image figure {
    height: 260px;
}
.product-gallery::-webkit-scrollbar-track {
	border-radius: 5px;
}
.product-gallery::-webkit-scrollbar {
	width: 5px;
}
.product-gallery::-webkit-scrollbar-thumb {
	border-radius: 5px;
}
.product-main-image {
    width: 100%;
    border-radius: 4px;
    height: 320px;
}
.product-images.has-gallery .product-main-image {
    width: calc(100% - 77px);
	height: 260px !important;
}


}




/*--------------------------------------------------------------
# Single - summary
--------------------------------------------------------------*/

h1.product_title.entry-title {
    line-height: 1.1;
    margin: 0 0 0.4em;
}

.single-product p.price {
    font-size: var(--wp--preset--font-size--large);
}

.woocommerce-product-details__short-description {
    margin: 1.5em 0;
}

.summary .product_meta {
    display: flex;
    flex-direction: column;
}

form.cart {
    display: flex;
    gap: 10px;
    margin: 1.5em 0;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    gap: 10px;
}

form.cart .quantity {
    width: 160px;
}

.woocommerce-variation-add-to-cart button {
    border-radius: 0;
	line-height: 1;
}





/*--------------------------------------------------------------
# Single - sections
--------------------------------------------------------------*/

.single-product section.product-section {
    margin: 4em 0 1em;
}

.single-product section.product-section ul {
    margin: 0;
}

table.shop_attributes {
    border-collapse: collapse;
}

table.shop_attributes td, table.shop_attributes th {
    border: 1px solid #ddd;
    padding: 0.4em 0.6em;
}

table.shop_attributes th {
    text-align: left;
    background-color: #ccc;
    width: 30%;
}




/*--------------------------------------------------------------
# Single - variable attribute selector
--------------------------------------------------------------*/

.woocommerce-variation-price span.price {
    font-size: var(--wp--preset--font-size--x-large);
	margin-bottom: 0.6em;
}

.hidden-variations-form table.variations {
    display: none;
}

.hidden-variations-form .reset_variations_alert {
    display: none;
}



/*--------------------------------------------------------------
# Single - variable attribute selector - Type: LIST
--------------------------------------------------------------*/

.type-list .selector-custom {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.type-list .selector-custom .att-option {
    cursor: pointer;
	position: relative;
	padding-left: 1.4em;
	font-size: var(--wp--preset--font-size--intermedia);
}

.type-list .selector-custom .att-option:before {
	position: absolute;
	content: '';
	left: 0;
	top: 0.4em;
    width: 0.9em;
    height: 0.9em;
    border: 2px solid var(--wp--preset--color--gray-200);
    border-radius: 1em;
}

.type-list .selector-custom .att-option.current:before {
	background-color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.type-list  p.chosen-attr {
    background-color: var(--wp--preset--color--gray-300);
    margin: 1.3em 0;
    padding: 0.4em 1em;
    line-height: 1.3;
}



/*--------------------------------------------------------------
# Single - variable attribute selector - Type: BUTTON
--------------------------------------------------------------*/

.type-button .selector-custom {
    display: flex;
    gap: 0.3em;
}

.type-button .selector-custom .att-option {
    cursor: pointer;
	font-size: var(--wp--preset--font-size--intermedia);
	padding: 0.6em 1em;
	color: var(--wp--preset--color--gray-200);
    border: 2px solid var(--wp--preset--color--gray-300);
    border-radius: 0.3em;
    line-height: 1.1;
}

.type-button .selector-custom .att-option.current {
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}

.type-button  p.chosen-attr {
    display: none;
}




/*--------------------------------------------------------------
# Single - variable attribute selector - Type: COLOR
--------------------------------------------------------------*/

.custom-attr-selector.type-color {
    margin: 1.2em 0 2.2em;
}

.custom-attr-selector.type-color h4 {
    margin: 0 0 0.7em;
}

.type-color .selector-custom {
	display: flex;
    flex-direction: row;
	gap: 10px;
}

.type-color .selector-custom .att-option {
    width: 36px;
    height: 36px;
    border-radius: 36px;
    cursor: pointer;
    position: relative;
    border: 4px solid #eee;
}

.type-color .selector-custom .att-option.current {
    border-color: #fafafa;
}

.type-color .selector-custom .att-option.current:before {
    position: absolute;
    content: '';
    top: -5px;
    left: -5px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--wp--preset--color--contrast);
    border-radius: 44px;
}




/*--------------------------------------------------------------
# Single - brand specific stuff - Especificaciones Samsung
--------------------------------------------------------------*/

.pdd32-product-spec__list {
    display: flex;
    flex-direction: column;
}

.pdd32-product-spec__item {
    margin-bottom: 2em;
}

h3.pdd32-product-spec__title {
    line-height: 1;
    margin: 0 0 0.7em;
    padding: 0;
    font-size: var(--wp--preset--font-size--normal);
}

h3.pdd32-product-spec__title button {
    color: inherit;
    padding: 0;
    line-height: 0;
    font-weight: 700;
    letter-spacing: 1px;
	width: 100%;
    text-align: left;
}

.pdd32-product-spec__content-wrap {
    max-height: 100% !important;
}

ul.pdd32-product-spec__content-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    padding: 0;
}

ul.pdd32-product-spec__content-list li {
    display: flex;
    align-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

ul.pdd32-product-spec__content-list li p {
    margin: 0;
    display: flex;
	max-width: 70%;
}

p.pdd32-product-spec__content-item-title {
    width: 30%;
}

.pdd32-product-spec__list svg.icon {
    display: none;
}



/*--------------------------------------------------------------
# Single - brand specific stuff - Especificaciones Motorola
--------------------------------------------------------------*/

h3.datasheet-group__name--text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: var(--wp--preset--font-size--normal);
    text-transform: uppercase;
	margin: 2em 0 1em;
}

.datasheet-group__values {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.datasheet-group__values--value {
    display: flex;
    gap: 1em;
}

.datasheet-group__values--value > * {
    margin: 0;
    padding: 0;
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
    line-height: 1.2;
}

.datasheet-group__values--value h4 {
    width: 30%;
}



/*--------------------------------------------------------------
# Single - brand specific stuff - Especificaciones Xiaomi
--------------------------------------------------------------*/

.brand-xiaomi #especificaciones > div.lazy {
    display: flex !important;
    flex-direction: column;
	font-size: var(--wp--preset--font-size--normal) !important;
}

.brand-xiaomi #especificaciones > div.lazy > div.lazy {
    width: 100% !important;
    position: relative !important;
    padding: 0 !important;
    border: none ! important;
    display: flex;
    justify-content: space-between;
	font-size: var(--wp--preset--font-size--normal) !important;
}

.brand-xiaomi #especificaciones > div.lazy > div.lazy span {
    font-size: var(--wp--preset--font-size--normal) !important;
	margin: 0 0 0.9em !important;
    line-height: 1.2 !important;
}

.brand-xiaomi #especificaciones > div.lazy > div.lazy > div:last-child {
    width: 75% !important;
}

.brand-xiaomi #especificaciones > div.lazy > div.lazy > div:first-child {
    font-weight: 600;
    width: 25% !important;
    margin: 0 !important;
}







/*--------------------------------------------------------------
# Woocommerce Layered Nav
--------------------------------------------------------------*/

aside#secondary h2.widget-title {
    font-size: 1em;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.6em;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp--preset--color--accent-dark);
}

.woocommerce ul.wc-brand-list-layered-nav-product_brand, ul.product-categories {
    margin: 0 0 1.8em;
    padding: 0;
}

.wc-brand-list-layered-nav-product_brand span.count, ul.product-categories span.count {
    font-size: 0.85em;
    color: #bbb;
    font-weight: 400;
}

.wc-brand-list-layered-nav-product_brand > li, ul.product-categories > li {
    padding: 0.6em 0;
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1.2em;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent-dark);
    font-weight: 600;
}

.wc-brand-list-layered-nav-product_brand > li a, ul.product-categories > li a {
    color: inherit;
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-align: left;
    background: rgba(0,0,0,0);
    border: none;
    padding: 0;
	margin-left: 0;
    outline: none;
}

.wc-brand-list-layered-nav-product_brand > li a:before, ul.product-categories > li a:before {
    position: relative;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, .75);
    /* box-shadow: inset 0 0 0 1px; */
    transition: box-shadow .2s cubic-bezier(.15,0,.15,0);
    margin-right: .8rem !important;
    /* top: .07rem; */
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    content: '' !important;
    display: block;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #ddd;
	background-origin: padding-box;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
	content: '' !important;
}

.wc-brand-list-layered-nav-product_brand > li.chosen a:before, ul.product-categories > li.current-cat a:before, ul.product-categories > li.current-cat-parent a:before      {
    background-color: var(--wp--preset--color--accent);
	background-image: url(../img/check-white.png);
    box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent);
}

.wc-brand-list-layered-nav-product_brand > li:hover a:before, ul.product-categories > li:hover a:before {
    /* box-shadow: 0 0 0 3px; */
	background-image: url(../img/check-white.png);
	background-color: var(--wp--preset--color--contrast);
}

.wc-brand-list-layered-nav-product_brand > li.chosen:hover a:before, ul.product-categories > li.current-cat:hover a:before, ul.product-categories > li.current-cat-parent:hover a:before {
	background-image: url(../img/cancel-white.png);
	background-color: var(--wp--preset--color--accent);
	/*
    background-image: url(../img/check-green.png);
    box-shadow: 0 0 0 3px var(--wp--preset--color--accent);
	*/
}



.widget_layered_nav_filters h2.widget-title {
    border-color: var(--wp--preset--color--contrast) !important;
}

.woocommerce .widget_layered_nav_filters ul {
    display: flex;
    margin: 0 0 2.7em;
    gap: 7px;
    list-style-type: none;
    padding: 0;
	flex-wrap: wrap;
}

.woocommerce .widget_layered_nav_filters ul li a {
    color: #fff;
    background-color: var(--wp--preset--color--contrast);
    font-size: 0.75em;
    padding: 0.3em 0.6em 0.37em 1.6em;
    border-radius: 0.4em;
    background-image: url(../img/cancel-white.png);
    text-transform: uppercase;
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: 0.45em 47%;
}




/*--------------------------------------------------------------
# Shop all categories
--------------------------------------------------------------*/

@media only screen and (min-width: 981px) {
.all-categories {
    column-count: 3;
	column-gap: 3.5%;
}
.prod-category {
    -webkit-column-break-inside: avoid;
}
}

.prod-category {
    margin-bottom: 2.2em;
}

.all-categories a {
    color: inherit;
}

.prod-category h3 {
    font-size: 1em;
    font-weight: 600;
	color: #fff;
    background-color: var(--wp--preset--color--accent);
    padding: 0.4em 0.6em 0.45em;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

.prod-category ul {
    list-style-type: none;
    margin: 0 0 0 0.6em;
	padding: 0;
    line-height: 1.7;
}

.prod-category ul li:last-child a {
    text-decoration: underline;
}





/*--------------------------------------------------------------
# Woocommerce quantity-buttons
--------------------------------------------------------------*/

.q-special {
    display: grid;
    grid-template-columns: 4fr 5fr 4fr;
    width: 8em;
    height: 2.46em;
    border: 1px solid var(--wp--preset--color--gray-200);
    font-size: 1em;
}

.q-special input {
    border: none;
	font-size: 0.95em;
    font-weight: 500;
    text-align: right;
	/* border-left: 1px solid var(--wp--preset--color--gray-200); */
    /* border-right: 1px solid var(--wp--preset--color--gray-200); */
	outline: none;
	text-align: center;
    padding: 0.3em;
}

.q-special input::-webkit-outer-spin-button, .q-special input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
	-moz-appearance: textfield;
}

.q-special span {
    position: relative;
    cursor: pointer;
	/* background-color: var(--wp--preset--color--gray-300); */
}

.q-special span::before, .q-special span::after {
    position: absolute;
    content: '';
    transform: translate(-50%, -50%) rotate(-90deg);
    background-color: var(--wp--preset--color--contrast);
	top: 50%;
    left: 50%;
}

.q-special span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.q-special span.btn-plus::before {
    width: 0.7em;
    height: 2px;
}
.q-special span::after {
    width: 2px;
    height: 0.7em;
}


