/*
 * Deco Will Tienda - Shortcode WooCommerce
 * Seccion de catalogo basada en la referencia visual entregada para Deco Will.
 */

.dw-shop,
.dw-shop * {
	box-sizing: border-box;
}

.dw-shop {
	--dw-olive: #6f774b;
	--dw-olive-dark: #59613a;
	--dw-olive-soft: #8d946a;
	--dw-gold: #a98947;
	--dw-text: #292a26;
	--dw-muted: #77766f;
	--dw-border: #e4e1da;
	--dw-border-strong: #cfcbbf;
	--dw-surface: #ffffff;
	--dw-surface-soft: #f8f6f1;
	--dw-image-bg: #f3efe8;
	--dw-shadow: 0 1px 3px rgba(44, 39, 30, 0.05);
	width: 100%;
	color: var(--dw-text);
	font-family: inherit;
}

.dw-shop button,
.dw-shop input,
.dw-shop select {
	font: inherit;
}

.dw-shop .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.dw-shop .dw-icon {
	display: block;
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
}

.dw-shop__layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 27px;
	align-items: start;
}

/* Sidebar */
.dw-shop__sidebar {
	min-width: 0;
	padding-right: 18px;
	border-right: 1px solid var(--dw-border);
}

.dw-shop__filter-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 11px 14px;
	border: 1px solid var(--dw-olive);
	border-radius: 3px;
	background: #fff;
	color: var(--dw-olive-dark);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	cursor: pointer;
}

.dw-shop-filters {
	margin: 0;
}

.dw-shop-filter-group {
	padding: 0 0 20px;
	margin: 0 0 19px;
	border-bottom: 1px solid var(--dw-border);
}

.dw-shop-filter-group:last-of-type {
	margin-bottom: 18px;
}

.dw-shop-filter-group__title {
	margin: 0 0 13px !important;
	padding: 0 !important;
	color: var(--dw-text) !important;
	font-family: inherit;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
}

.dw-shop-filter-group__empty {
	margin: 0;
	color: var(--dw-muted);
	font-size: 12px;
	line-height: 1.5;
}

.dw-shop-choice {
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	min-height: 27px;
	margin: 0;
	color: #5d5d57;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
	user-select: none;
}

.dw-shop-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dw-shop-choice__control {
	position: relative;
	display: block;
	width: 12px;
	height: 12px;
	border: 1px solid #9c9b8f;
	background: #fff;
	transition: border-color 150ms ease, background-color 150ms ease;
}

.dw-shop-choice--radio .dw-shop-choice__control {
	border-radius: 50%;
}

.dw-shop-choice--check .dw-shop-choice__control {
	border-radius: 1px;
}

.dw-shop-choice--radio input:checked + .dw-shop-choice__control {
	border-color: var(--dw-olive);
}

.dw-shop-choice--radio input:checked + .dw-shop-choice__control::after {
	content: "";
	position: absolute;
	inset: 2.3px;
	border-radius: 50%;
	background: var(--dw-olive);
}

.dw-shop-choice--check input:checked + .dw-shop-choice__control {
	border-color: var(--dw-olive);
	background: var(--dw-olive);
}

.dw-shop-choice--check input:checked + .dw-shop-choice__control::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 1px;
	width: 3px;
	height: 6px;
	border: solid #fff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.dw-shop-choice input:focus-visible + .dw-shop-choice__control {
	outline: 2px solid rgba(111, 119, 75, .25);
	outline-offset: 2px;
}

.dw-shop-choice__count {
	color: #8b8a82;
	font-size: 11px;
}

/* Rango de precio */
.dw-price-range {
	position: relative;
	height: 26px;
	margin: 4px 3px 10px;
}

.dw-price-range__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 12px;
	height: 2px;
	border-radius: 999px;
	background: #d8d5cd;
}

.dw-price-range__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: inherit;
	background: var(--dw-olive);
}

.dw-price-range__input {
	position: absolute;
	left: 0;
	top: 4px;
	width: 100%;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: none;
}

.dw-price-range__input::-webkit-slider-runnable-track {
	height: 2px;
	background: transparent;
}

.dw-price-range__input::-moz-range-track {
	height: 2px;
	background: transparent;
}

.dw-price-range__input::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: var(--dw-olive);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: auto;
	cursor: grab;
}

.dw-price-range__input::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: var(--dw-olive);
	box-shadow: none;
	pointer-events: auto;
	cursor: grab;
}

.dw-price-range__input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid rgba(111, 119, 75, .3);
	outline-offset: 2px;
}

.dw-price-values {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 8px;
	align-items: center;
}

.dw-price-values__box {
	display: flex;
	min-width: 0;
	height: 34px;
	align-items: center;
	justify-content: center;
	padding: 5px 7px;
	border: 1px solid var(--dw-border);
	border-radius: 3px;
	background: #fff;
	color: #76756e;
	font-size: 11px;
	white-space: nowrap;
}

.dw-price-values__box .woocommerce-Price-currencySymbol {
	margin-right: 1px;
}

.dw-price-values__dash {
	color: #aaa89f;
	font-size: 11px;
}

.dw-shop-filter-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.dw-shop-filter-actions__apply {
	width: 100%;
	min-height: 37px;
	padding: 8px 12px;
	border: 1px solid var(--dw-olive) !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--dw-olive-dark) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: .025em;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.dw-shop-filter-actions__apply:hover,
.dw-shop-filter-actions__apply:focus-visible {
	background: var(--dw-olive) !important;
	color: #fff !important;
}

.dw-shop-filter-actions__clear {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--dw-olive-dark) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

/* Toolbar */
.dw-shop__main {
	min-width: 0;
}

.dw-shop-toolbar {
	display: grid;
	grid-template-columns: minmax(155px, .7fr) minmax(220px, 1fr) minmax(280px, auto);
	gap: 18px;
	align-items: center;
	margin: 0 0 14px;
}

.dw-shop-toolbar__heading h2 {
	margin: 0 0 2px !important;
	padding: 0 !important;
	color: var(--dw-text) !important;
	font-family: inherit;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
}

.dw-shop-toolbar__count {
	color: var(--dw-muted);
	font-size: 12px;
	line-height: 1.25;
}

.dw-shop-search {
	position: relative;
	min-width: 0;
}

.dw-shop-search__input {
	display: block;
	width: 100% !important;
	height: 39px !important;
	margin: 0 !important;
	padding: 7px 40px 7px 13px !important;
	border: 1px solid var(--dw-border) !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--dw-text) !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	outline: none;
}

.dw-shop-search__input::placeholder {
	color: #aaa8a0;
	opacity: 1;
}

.dw-shop-search__input:focus {
	border-color: var(--dw-olive-soft) !important;
	box-shadow: 0 0 0 2px rgba(111, 119, 75, .08) !important;
}

.dw-shop-search__button {
	position: absolute;
	top: 50%;
	right: 5px;
	display: inline-flex;
	width: 31px;
	height: 31px;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--dw-olive-dark) !important;
	transform: translateY(-50%);
	cursor: pointer;
}

.dw-shop-toolbar__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	min-width: 0;
}

.dw-shop-orderby {
	width: 215px;
	height: 39px;
	margin: 0 !important;
	padding: 7px 33px 7px 12px !important;
	border: 1px solid var(--dw-border) !important;
	border-radius: 3px !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: #686761 !important;
	font-size: 11px !important;
	line-height: 1.2 !important;
	outline: none;
	cursor: pointer;
}

.dw-shop-orderby:focus {
	border-color: var(--dw-olive-soft) !important;
}

.dw-shop-view-switch {
	display: flex;
	gap: 4px;
}

.dw-shop-view-switch__button {
	display: inline-flex;
	width: 37px;
	height: 37px;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border: 1px solid var(--dw-border) !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #9b998f !important;
	cursor: pointer;
}

.dw-shop-view-switch__button.is-active,
.dw-shop-view-switch__button:hover,
.dw-shop-view-switch__button:focus-visible {
	border-color: var(--dw-olive) !important;
	color: var(--dw-olive-dark) !important;
}

.dw-shop__feedback {
	min-height: 0;
	margin: 0;
	color: #8b4a3f;
	font-size: 12px;
}

.dw-shop__feedback:not(:empty) {
	margin-bottom: 10px;
}

/* Resultados */
.dw-shop__results-wrap {
	position: relative;
	min-height: 220px;
}

.dw-shop__loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 70px;
	background: rgba(255, 255, 255, .72);
	opacity: 0;
	visibility: hidden;
	transition: opacity 120ms ease, visibility 120ms ease;
}

.dw-shop.is-loading .dw-shop__loader {
	opacity: 1;
	visibility: visible;
}

.dw-shop__loader span {
	display: block;
	width: 28px;
	height: 28px;
	border: 2px solid #d9d7d0;
	border-top-color: var(--dw-olive);
	border-radius: 50%;
	animation: dw-shop-spin .7s linear infinite;
}

@keyframes dw-shop-spin {
	to { transform: rotate(360deg); }
}

.dw-shop-products {
	display: grid;
	gap: 17px 15px;
}

.dw-shop-products.is-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dw-shop-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--dw-border);
	border-radius: 4px;
	background: var(--dw-surface);
	box-shadow: var(--dw-shadow);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.dw-shop-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 15px rgba(44, 39, 30, .07);
}

.dw-shop-card__media {
	position: relative;
	aspect-ratio: 1 / .86;
	overflow: hidden;
	background: var(--dw-image-bg);
}

.dw-shop-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none !important;
}

.dw-shop-card__image,
.woocommerce .dw-shop-card__image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: transform 220ms ease;
}

.dw-shop-card:hover .dw-shop-card__image {
	transform: scale(1.018);
}

.dw-shop-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	display: inline-flex;
	min-height: 21px;
	align-items: center;
	padding: 3px 7px;
	border-radius: 2px;
	background: var(--dw-olive);
	color: #fff;
	font-size: 9px;
	font-weight: 500;
	line-height: 1;
}

.dw-shop-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 9px 10px 10px;
}

.dw-shop-card__info {
	min-width: 0;
}

.dw-shop-card__category {
	margin: 0 0 2px;
	color: #86847d;
	font-size: 9px;
	font-weight: 400;
	line-height: 1.25;
}

.dw-shop-card__name {
	display: -webkit-box;
	overflow: hidden;
	min-height: 31px;
	margin: 0 0 4px;
	color: var(--dw-text) !important;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.28;
	text-decoration: none !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dw-shop-card__name:hover,
.dw-shop-card__name:focus-visible {
	color: var(--dw-olive-dark) !important;
}

.dw-shop-card__price {
	min-height: 19px;
	margin: 0 0 8px;
	color: var(--dw-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

.dw-shop-card__price del {
	margin-right: 3px;
	color: #aaa89f;
	font-size: 10px;
	font-weight: 400;
	opacity: 1;
}

.dw-shop-card__price ins {
	background: transparent;
	color: inherit;
	text-decoration: none;
}

.dw-shop .dw-shop-card__cart.button,
.woocommerce .dw-shop .dw-shop-card__cart.button {
	display: flex !important;
	width: 100% !important;
	min-height: 29px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	margin: auto 0 0 !important;
	padding: 5px 7px !important;
	border: 1px solid var(--dw-olive) !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--dw-olive-dark) !important;
	font-size: 9px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: .015em;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 150ms ease, color 150ms ease;
}

.dw-shop .dw-shop-card__cart.button:hover,
.dw-shop .dw-shop-card__cart.button:focus-visible,
.woocommerce .dw-shop .dw-shop-card__cart.button:hover,
.woocommerce .dw-shop .dw-shop-card__cart.button:focus-visible {
	background: var(--dw-olive) !important;
	color: #fff !important;
}

.dw-shop-card__cart .dw-icon {
	width: 15px;
	height: 15px;
}

.dw-shop .added_to_cart.wc-forward {
	display: none !important;
}

/* Vista lista */
.dw-shop-products.is-list {
	grid-template-columns: 1fr;
	gap: 12px;
}

.dw-shop-products.is-list .dw-shop-card {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	min-height: 155px;
}

.dw-shop-products.is-list .dw-shop-card__media {
	aspect-ratio: auto;
	height: 100%;
	min-height: 155px;
}

.dw-shop-products.is-list .dw-shop-card__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px;
	gap: 20px;
	align-items: center;
	padding: 17px 18px;
}

.dw-shop-products.is-list .dw-shop-card__category {
	font-size: 10px;
}

.dw-shop-products.is-list .dw-shop-card__name {
	min-height: auto;
	margin-bottom: 8px;
	font-size: 15px;
	-webkit-line-clamp: 3;
}

.dw-shop-products.is-list .dw-shop-card__price {
	margin-bottom: 0;
	font-size: 15px;
}

.dw-shop-products.is-list .dw-shop-card__cart.button,
.woocommerce .dw-shop-products.is-list .dw-shop-card__cart.button {
	margin: 0 !important;
}

/* Paginacion */
.dw-shop-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 22px 0 0;
}

.dw-shop-pagination__button {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border: 1px solid var(--dw-border) !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #6b6a63 !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.dw-shop-pagination__button:hover,
.dw-shop-pagination__button:focus-visible,
.dw-shop-pagination__button.is-current {
	border-color: var(--dw-olive) !important;
	background: var(--dw-olive) !important;
	color: #fff !important;
}

.dw-shop-pagination__button--arrow .dw-icon {
	width: 15px;
	height: 15px;
}

/* Vacio */
.dw-shop-empty {
	display: flex;
	min-height: 300px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 38px 20px;
	border: 1px solid var(--dw-border);
	border-radius: 4px;
	background: var(--dw-surface-soft);
	text-align: center;
}

.dw-shop-empty__icon {
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	margin-bottom: 11px;
	border: 1px solid var(--dw-border-strong);
	border-radius: 50%;
	color: var(--dw-olive);
}

.dw-shop-empty h3 {
	margin: 0 0 5px !important;
	font-size: 17px !important;
	font-weight: 500 !important;
}

.dw-shop-empty p {
	margin: 0;
	color: var(--dw-muted);
	font-size: 12px;
}

/* Tablet */
@media (max-width: 1024px) {
	.dw-shop__filter-toggle {
		display: flex;
	}

	.dw-shop__layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.dw-shop__sidebar {
		display: none;
		padding: 18px;
		border: 1px solid var(--dw-border);
		border-radius: 4px;
		background: var(--dw-surface-soft);
	}

	.dw-shop.is-filters-open .dw-shop__sidebar {
		display: block;
	}

	.dw-shop-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 28px;
	}

	.dw-shop-filter-group {
		margin: 0;
	}

	.dw-shop-filter-actions {
		grid-column: 1 / -1;
		max-width: 220px;
	}

	.dw-shop-toolbar {
		grid-template-columns: minmax(150px, .7fr) minmax(220px, 1fr);
	}

	.dw-shop-toolbar__controls {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}

	.dw-shop-products.is-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dw-shop-card__media {
		aspect-ratio: 1 / .82;
	}
}

/* Movil */
@media (max-width: 640px) {
	.dw-shop-filters {
		grid-template-columns: 1fr;
	}

	.dw-shop-filter-actions {
		grid-column: auto;
		max-width: none;
	}

	.dw-shop-toolbar {
		grid-template-columns: 1fr;
		gap: 11px;
	}

	.dw-shop-toolbar__heading,
	.dw-shop-search,
	.dw-shop-toolbar__controls {
		grid-column: auto;
	}

	.dw-shop-toolbar__controls {
		justify-content: stretch;
	}

	.dw-shop-orderby {
		width: 100%;
		flex: 1 1 auto;
	}

	.dw-shop-products.is-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.dw-shop-card__media {
		aspect-ratio: 1 / .78;
	}

	.dw-shop-card__body {
		padding: 12px 13px 13px;
	}

	.dw-shop-card__category {
		font-size: 10px;
	}

	.dw-shop-card__name {
		min-height: auto;
		font-size: 15px;
	}

	.dw-shop-card__price {
		font-size: 15px;
	}

	.dw-shop .dw-shop-card__cart.button,
	.woocommerce .dw-shop .dw-shop-card__cart.button {
		min-height: 36px !important;
		font-size: 10px !important;
	}

	.dw-shop-products.is-list .dw-shop-card {
		grid-template-columns: 115px minmax(0, 1fr);
		min-height: 145px;
	}

	.dw-shop-products.is-list .dw-shop-card__media {
		min-height: 145px;
	}

	.dw-shop-products.is-list .dw-shop-card__body {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 9px;
		padding: 12px;
	}

	.dw-shop-products.is-list .dw-shop-card__name {
		font-size: 13px;
	}

	.dw-shop-products.is-list .dw-shop-card__cart.button,
	.woocommerce .dw-shop-products.is-list .dw-shop-card__cart.button {
		margin-top: auto !important;
	}
}
