/* ==========================================================================
   Lithium Albania – product listings (shop, categories, homepage, related)
   Presentation only; WooCommerce markup and behaviour are unchanged.
   ========================================================================== */

/* Product grid --------------------------------------------------------------- */
.la-theme ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 48px !important;
	padding: 0 !important;
	list-style: none;
}

.la-theme ul.products::before,
.la-theme ul.products::after {
	display: none !important;
}

.la-theme ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.la-theme ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.la-theme ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.la-theme ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.la-theme .shop_mode_list ul.products {
	grid-template-columns: 1fr;
}

.la-theme ul.products li.product,
.la-theme ul.products li.product-category {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	text-align: left;
}

/* Product card */
.la-theme ul.products li.product .post_item,
.la-theme ul.products li.product-category .post_item {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	border-radius: 22px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--la-line), var(--la-shadow-sm);
	overflow: hidden;
	transition: transform 0.45s var(--la-ease), box-shadow 0.45s var(--la-ease);
}

.la-theme ul.products li.product:hover .post_item,
.la-theme ul.products li.product-category:hover .post_item {
	transform: translateY(-6px);
	box-shadow: inset 0 0 0 1px rgba(132, 204, 22, 0.35), var(--la-shadow-lg);
}

.la-theme .shop_mode_list ul.products li.product .post_item {
	flex-direction: row;
}

.la-theme ul.products li.product .post_featured,
.la-theme ul.products li.product-category .post_featured {
	position: relative;
	margin: 0 !important;
	background: var(--la-surface);
	border-radius: 0;
	overflow: hidden;
}

.la-theme .shop_mode_list ul.products li.product .post_featured {
	flex: 0 0 38%;
}

.la-theme ul.products li.product .post_featured img,
.la-theme ul.products li.product-category .post_featured img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 14px;
	mix-blend-mode: multiply;
	box-sizing: border-box;
	transition: transform 0.7s var(--la-ease);
}

.la-theme ul.products li.product:hover .post_featured img,
.la-theme ul.products li.product-category:hover .post_featured img {
	transform: scale(1.06);
}

.la-theme ul.products li.product .post_featured .mask {
	background: linear-gradient(180deg, transparent 40%, rgba(7, 11, 20, 0.35));
}

.la-theme ul.products li.product .post_data,
.la-theme ul.products li.product-category .post_data {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 22px !important;
	background: transparent !important;
	text-align: left;
}

.la-theme ul.products li.product .post_data_inner {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.la-theme ul.products li.product .post_header {
	margin: 0 0 10px;
}

.la-theme ul.products li.product .post_tags,
.la-theme ul.products li.product .product_tags {
	margin: 0 0 6px;
	color: var(--la-muted);
	font-family: var(--la-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.la-theme ul.products li.product .post_tags a {
	color: var(--la-cyan-2);
}

.la-theme ul.products li.product .woocommerce-loop-product__title,
.la-theme ul.products li.product h2,
.la-theme ul.products li.product h3,
.la-theme ul.products li.product-category .woocommerce-loop-category__title {
	display: -webkit-box;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	color: var(--la-ink);
	font-family: var(--la-font-head);
	font-size: 1.02rem !important;
	font-weight: 700;
	line-height: 1.38;
	letter-spacing: -0.01em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.la-theme ul.products li.product .woocommerce-loop-product__title a {
	color: inherit !important;
	transition: color 0.2s ease;
}

.la-theme ul.products li.product .woocommerce-loop-product__title a:hover {
	color: var(--la-cyan-2) !important;
}

.la-theme ul.products li.product .star-rating {
	margin: 4px 0 8px;
	font-size: 0.8rem;
	color: #f59e0b;
}

.la-theme ul.products li.product .price,
.la-theme ul.products li.product .price_wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: auto 0 0 !important;
	padding-top: 8px;
	color: var(--la-ink) !important;
	font-family: var(--la-font-head);
	font-size: 1.18rem !important;
	font-weight: 800;
}

.la-theme ul.products li.product .price del {
	order: 2;
	color: #94a3b8 !important;
	font-size: 0.88rem;
	font-weight: 500;
	opacity: 1;
}

.la-theme ul.products li.product .price ins {
	text-decoration: none;
	background: none;
	color: var(--la-ink);
}

.la-theme ul.products li.product .price .amount,
.la-theme ul.products li.product .price ins .amount {
	color: inherit !important;
}

.la-theme ul.products li.product .add_to_cart_wrap,
.la-theme ul.products li.product .post_data > .button,
.la-theme ul.products li.product .post_data .add_to_cart_button {
	margin-top: 16px;
}

.la-theme ul.products li.product .post_data .button,
.la-theme ul.products li.product .add_to_cart_wrap .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 18px !important;
	font-size: 0.9rem !important;
	box-sizing: border-box;
}

.la-theme ul.products li.product .button.loading {
	opacity: 0.7;
}

.la-theme ul.products li.product .added_to_cart {
	display: inline-block;
	margin-top: 10px;
	color: var(--la-cyan-2) !important;
	font-family: var(--la-font-head);
	font-size: 0.85rem;
	font-weight: 700;
}

/* Hover icons rendered by Greeny inside the image */
.la-theme ul.products li.product .post_featured .icons a,
.la-theme ul.products li.product .post_featured [class*="icon-"]:not(.la-icon) {
	border-radius: 50%;
}

.la-theme ul.products li.product .post_featured .button,
.la-theme ul.products li.product .post_featured .add_to_cart_button {
	border-radius: var(--la-radius-pill) !important;
}

/* WhatsApp order button in product cards */
.la-theme ul.products li.product .la-wa-wrap {
	margin-top: 16px;
}

.la-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 16px;
	border-radius: var(--la-radius-pill);
	background: rgba(37, 211, 102, 0.12);
	color: #128c47 !important;
	font-family: var(--la-font-head);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--la-ease);
}

.la-wa-btn .la-icon {
	width: 18px;
	height: 18px;
}

.la-wa-btn:hover {
	background: #25d366;
	color: #fff !important;
	transform: translateY(-2px);
}

/* Greeny's cart icon on the image is redundant without a cart (the WhatsApp button is below the price). */
.la-theme .post_featured .icons .shop_cart,
.la-theme .post_featured .add_to_cart_wrap {
	display: none !important;
}

/* Greeny "shop" hover icons stay visible on touch screens, where hover does not exist */
@media (hover: none) {
	.la-theme .post_featured.hover_shop .icons {
		align-items: flex-end;
		justify-content: flex-end;
		padding: 8px;
	}

	.la-theme .post_featured.hover_shop .icons > * {
		opacity: 1 !important;
	}
}

/* Labels */
.la-theme ul.products li.product .onsale,
.la-theme span.onsale {
	position: absolute;
	top: 14px !important;
	left: 14px !important;
	right: auto !important;
	z-index: 3;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: 7px 12px;
	border-radius: var(--la-radius-pill) !important;
	background: var(--la-volt) !important;
	color: var(--la-ink) !important;
	font-family: var(--la-font-head);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 8px 18px -8px var(--la-volt-glow);
}

.la-theme ul.products li.product .outofstock_label {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	padding: 7px 12px;
	border-radius: var(--la-radius-pill);
	background: rgba(7, 11, 20, 0.85);
	color: #fff;
	font-family: var(--la-font-head);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

/* Toolbar --------------------------------------------------------------------- */
.la-theme .woocommerce-result-count {
	margin: 0 0 24px;
	color: var(--la-muted);
	font-size: 0.92rem;
	line-height: 50px;
}

.la-theme .woocommerce-ordering {
	margin: 0 0 24px;
}

.la-theme .woocommerce-ordering select {
	min-width: 220px;
	border-radius: var(--la-radius-pill) !important;
	padding-inline: 20px 40px;
	cursor: pointer;
}

.la-theme .greeny_shop_mode_buttons a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--la-surface);
	color: var(--la-muted);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.la-theme .greeny_shop_mode_buttons a:hover,
.la-theme.shop_mode_thumbs .greeny_shop_mode_buttons .woocommerce_thumbs,
.la-theme.shop_mode_list .greeny_shop_mode_buttons .woocommerce_list {
	background: var(--la-ink);
	color: #fff;
}

/* Category chips (child theme) */
.la-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	width: 100%;
}

.la-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: var(--la-radius-pill);
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--la-line);
	color: var(--la-ink) !important;
	font-family: var(--la-font-head);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--la-ease);
}

.la-chip:hover {
	box-shadow: inset 0 0 0 1.5px var(--la-ink);
	transform: translateY(-2px);
}

.la-chip.is-active {
	background: var(--la-ink);
	color: #fff !important;
	box-shadow: none;
}

.la-chip__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--la-radius-pill);
	background: var(--la-surface);
	color: var(--la-muted);
	font-size: 0.72rem;
	box-sizing: border-box;
}

.la-chip.is-active .la-chip__count {
	background: var(--la-volt);
	color: var(--la-ink);
}

/* Pagination ------------------------------------------------------------------- */
.la-theme .woocommerce nav.woocommerce-pagination ul,
.la-theme nav.woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	border: 0 !important;
}

.la-theme nav.woocommerce-pagination ul li {
	border: 0 !important;
	margin: 0;
	float: none;
}

.la-theme nav.woocommerce-pagination ul li a,
.la-theme nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px !important;
	border-radius: var(--la-radius-pill);
	background: var(--la-surface) !important;
	color: var(--la-ink) !important;
	font-family: var(--la-font-head);
	font-weight: 700;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.la-theme nav.woocommerce-pagination ul li a:hover,
.la-theme nav.woocommerce-pagination ul li span.current {
	background: var(--la-ink) !important;
	color: var(--la-volt) !important;
}

/* Shop sidebar widgets ----------------------------------------------------------- */
.la-theme.woocommerce .sidebar .widget,
.la-theme.woocommerce-page .sidebar .widget {
	padding: 26px 24px;
	margin-bottom: 22px;
	border-radius: 22px;
	background: var(--la-surface);
}

.la-theme .sidebar .widget_title,
.la-theme .sidebar .widgettitle {
	margin-bottom: 18px;
	font-size: 1.05rem;
	font-weight: 800;
}

.la-theme .widget_price_filter .ui-slider .ui-slider-range {
	background: var(--la-volt-2);
}

.la-theme .widget_price_filter .ui-slider .ui-slider-handle {
	border: 3px solid #fff;
	background: var(--la-ink);
	box-shadow: var(--la-shadow-sm);
}

.la-theme .widget_product_categories ul li a,
.la-theme .widget_layered_nav ul li a {
	color: var(--la-text);
}

.la-theme .widget_product_categories ul li a:hover,
.la-theme .widget_layered_nav ul li a:hover {
	color: var(--la-cyan-2);
}

/* Notices (all WooCommerce pages) ----------------------------------------------- */
.la-theme .woocommerce-message,
.la-theme .woocommerce-info,
.la-theme .woocommerce-error,
.la-theme .woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding: 18px 22px 18px 54px !important;
	border: 0 !important;
	border-radius: 16px;
	background: var(--la-surface) !important;
	box-shadow: inset 0 0 0 1px var(--la-line);
	color: var(--la-ink) !important;
	font-family: var(--la-font-body);
	font-size: 0.95rem;
}

.la-theme .woocommerce-message {
	background: rgba(163, 230, 53, 0.1) !important;
	box-shadow: inset 0 0 0 1px rgba(132, 204, 22, 0.35);
}

.la-theme .woocommerce-error {
	background: rgba(239, 68, 68, 0.06) !important;
	box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3);
}

.la-theme .woocommerce-message::before,
.la-theme .woocommerce-info::before,
.la-theme .woocommerce-error::before {
	top: 50% !important;
	left: 20px !important;
	transform: translateY(-50%);
	color: var(--la-cyan-2) !important;
}

.la-theme .woocommerce-message::before {
	color: var(--la-volt-2) !important;
}

.la-theme .woocommerce-error::before {
	color: var(--la-danger) !important;
}

.la-theme .woocommerce-message .button,
.la-theme .woocommerce-info .button,
.la-theme .woocommerce-error .button {
	order: 2;
	margin-left: auto !important;
	padding: 10px 18px !important;
	border-radius: var(--la-radius-pill) !important;
	background: var(--la-ink) !important;
	color: #fff !important;
	font-size: 0.85rem !important;
	line-height: 1.2 !important;
}

.la-theme .woocommerce-message .button:hover,
.la-theme .woocommerce-info .button:hover {
	background: var(--la-volt) !important;
	color: var(--la-ink) !important;
}

/* WooCommerce Blocks (if used) */
.la-theme .wc-block-components-button:not(.is-link) {
	border-radius: var(--la-radius-pill) !important;
	background: var(--la-volt) !important;
	color: var(--la-ink) !important;
	font-family: var(--la-font-head);
	font-weight: 700;
}

.la-theme .wc-block-components-button:not(.is-link):hover {
	background: var(--la-ink) !important;
	color: var(--la-volt) !important;
}

.la-theme .wc-block-components-quantity-selector {
	border-radius: var(--la-radius-pill);
	overflow: hidden;
}

.la-theme .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	min-height: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.la-theme .wc-block-components-text-input input,
.la-theme .wc-block-components-combobox .wc-block-components-combobox-control input {
	min-height: 56px;
	padding-top: 22px;
}

.la-theme .wc-block-components-sidebar-layout .wc-block-components-main,
.la-theme .wp-block-woocommerce-checkout-order-summary-block {
	border-radius: 22px;
}

.la-theme .wp-block-woocommerce-checkout-order-summary-block {
	padding: 8px 4px;
	background: var(--la-surface);
	box-shadow: inset 0 0 0 1px var(--la-line);
}

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1279px) {
	.la-theme ul.products.columns-5,
	.la-theme ul.products.columns-6 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.la-theme ul.products,
	.la-theme ul.products.columns-4,
	.la-theme ul.products.columns-5,
	.la-theme ul.products.columns-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.la-theme ul.products,
	.la-theme ul.products[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.la-theme ul.products li.product .post_data {
		padding: 14px 14px 16px !important;
	}

	.la-theme ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.92rem !important;
	}

	.la-theme ul.products li.product .price {
		font-size: 1rem !important;
	}

	.la-theme ul.products li.product .post_data .button {
		padding: 10px 12px !important;
		font-size: 0.82rem !important;
		white-space: normal;
	}

	.la-theme .shop_mode_list ul.products li.product .post_item {
		flex-direction: column;
	}

	.la-theme .woocommerce-ordering,
	.la-theme .woocommerce-ordering select {
		width: 100%;
	}

	.la-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
	}

	.la-chips::-webkit-scrollbar {
		display: none;
	}

	.la-chip {
		flex-shrink: 0;
	}
}

@media (max-width: 380px) {
	.la-theme ul.products,
	.la-theme ul.products[class*="columns-"] {
		grid-template-columns: 1fr;
	}
}
