/* =====================================================
   Haine PSL Shop Cards - Styles
   ===================================================== */

/* Product Card Basics */
.psl-thumb img,
.psl-thumb {
	margin: 0 auto !important;
}

.psl-slide {
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	border: 1px solid #eee;
	border-radius: 0px 32px 32px 32px;
	padding: 12px;
	background: #fff;
}

.haine-psl-item,
.psl-slide {
	max-width: 100% !important;
	width: 100%;
}

/* Product Image - Fixed Height */
.psl-thumb {
	position: relative;
	width: 100%;
	height: 300px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f9f9f9;
	background: #fff;
}

.psl-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.psl-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
	transition: margin-bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Container Max Width */
.woocommerce-page .container,
.woocommerce .container {
	max-width: 1500px;
	margin: 0 auto;
}

/* =====================================================
   Product Grid Layout - 4/2/1 columns
   ===================================================== */
/* Product Grid Layout - 4/2/1 columns */
.woocommerce ul.products,
ul.products.columns-4,
ul.products.columns-3,
ul.products.columns-2 {
	display: grid !important;
	gap: 20px;
	list-style: none;
	padding: 0 20px;
	margin: 0 auto !important;
	max-width: 100%;
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {

	.woocommerce ul.products,
	ul.products.columns-4,
	ul.products.columns-3,
	ul.products.columns-2 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {

	.woocommerce ul.products,
	ul.products.columns-4,
	ul.products.columns-3,
	ul.products.columns-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile: 1 column */
@media (max-width: 767px) {

	.woocommerce ul.products,
	ul.products.columns-4,
	ul.products.columns-3,
	ul.products.columns-2 {
		grid-template-columns: 1fr;
	}
}

/* Reset WooCommerce default float/width */
.woocommerce ul.products li.product {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Remove unwanted pseudo-elements from products grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
	display: none !important;
	content: none !important;
}

/* =====================================================
   Subcategories Buttons
   ===================================================== */
.haine-psl-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 1.5rem;
	padding: 0;
}

.haine-psl-subcategories__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 15px 18px;
	background: #be1622;
	color: #fff;
	border: 1px solid #be1622;
	border-radius: 0;
	font-size: 14px;
	border-radius: 8px;
	/* aspect-ratio: 2 / 1; */
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.haine-psl-subcategories__btn:hover {
	background: #1e1e1e;
	color: #fff;
	border-color: #1e1e1e;
}

.haine-psl-subcategories__btn--active {
	background: #1e1e1e;
	color: #fff;
	border-color: #1e1e1e;
}

.haine-psl-subcategories__count {
	font-size: 12px;
	opacity: 0.7;
}

/* =====================================================
   Inline Filters & Dropdowns - Figma Spec
   ===================================================== */
.haine-psl-filters-inline-container {
	background: #EDEDED;
	padding: 24px 0;
	border-radius: 0px 32px 32px 32px;
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.haine-psl-filters-inline {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	flex-wrap: wrap;
	gap: 20px;
}

.haine-psl-filters-inline__dropdowns {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

/* Dropdown */
.haine-psl-dropdown {
	position: relative;
}

.haine-psl-dropdown-btn {
	background: transparent !important;
	border: none !important;
	border-bottom: 1.5px solid #680C96 !important;
	padding: 11px 16px !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	width: 207px !important;
	height: 52px !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	outline: none !important;
	color: #680C96 !important;
	border-radius: 0 !important;
	transition: background-color 0.2s ease, border-bottom-color 0.2s ease !important;
}

.haine-psl-dropdown-btn:hover {
	background: rgba(104, 12, 150, 0.05) !important;
}

.haine-psl-dropdown-btn:focus,
.haine-psl-dropdown-btn:focus-visible,
.haine-psl-dropdown-btn:active,
.haine-psl-dropdown--open .haine-psl-dropdown-btn {
	background: rgba(104, 12, 150, 0.08) !important;
	color: #680C96 !important;
	border-bottom: 2px solid #680C96 !important;
	outline: none !important;
	box-shadow: none !important;
}

.haine-psl-dropdown-title {
	font-family: 'Archivo', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 160%;
	color: #680C96;
}

.haine-psl-chevron {
	color: #680C96;
	transition: transform 0.2s ease-in-out;
}

.haine-psl-dropdown.haine-psl-dropdown--open .haine-psl-chevron {
	transform: rotate(180deg);
}

.haine-psl-dropdown-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	background: #FFFFFF;
	box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
	border-radius: 16px;
	padding: 20px;
	z-index: 999;
	min-width: 280px;
	max-height: 380px;
	overflow-y: auto;
	display: none;
	box-sizing: border-box;
}

.haine-psl-dropdown-menu .rpf-section-content {
	display: block !important;
	padding: 0 !important;
}

/* Actions at the bottom of each dropdown */
.haine-psl-dropdown-actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #EDEDED;
	justify-content: flex-end;
}

.haine-psl-dropdown-apply-btn {
	background: #680C96 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 16px !important;
	font-family: 'Archivo', sans-serif !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease !important;
}

.haine-psl-dropdown-apply-btn:hover {
	background: #54097a !important;
}

.haine-psl-dropdown-clear-btn {
	background: transparent !important;
	color: #333333 !important;
	border: 1px solid #CCCCCC !important;
	border-radius: 8px !important;
	padding: 10px 16px !important;
	font-family: 'Archivo', sans-serif !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.haine-psl-dropdown-clear-btn:hover {
	background: #EDEDED !important;
	border-color: #999999 !important;
}

.haine-psl-dropdown.haine-psl-dropdown--open .haine-psl-dropdown-menu {
	display: block;
}

/* Style inside dropdown menu list elements */
.haine-psl-dropdown-menu ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.haine-psl-dropdown-menu li {
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
}

.haine-psl-dropdown-menu li:last-child {
	margin-bottom: 0 !important;
}

.haine-psl-dropdown-menu a {
	font-size: 14px;
	color: #333 !important;
	transition: color 0.2s;
	display: inline-block;
}

.haine-psl-dropdown-menu a:hover {
	color: #680C96 !important;
}

/* Checkbox styling inside dropdowns */
.haine-psl-dropdown-menu input[type="checkbox"],
.haine-psl-dropdown-menu input[type="radio"] {
	margin-right: 8px !important;
	accent-color: #680C96;
}

/* Price Filter widget specific customization */
.haine-psl-dropdown-menu .price_slider_wrapper {
	padding: 10px 5px;
}

.haine-psl-dropdown-menu .price_slider_amount {
	margin-top: 15px;
	font-size: 13px;
}

.haine-psl-dropdown-menu .price_slider_amount button {
	background: #680C96 !important;
	color: #fff !important;
	border: none !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	cursor: pointer;
	font-size: 12px;
}

/* Sorting select box alignment */
.haine-psl-filters-inline__sort {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.haine-psl-filters-inline__sort::before {
	content: "Sortowanie";
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 400;
	color: #893DAE;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.haine-psl-filters-inline__sort .woocommerce-ordering {
	margin: 0 !important;
	float: none !important;
}

.haine-psl-filters-inline__sort select.orderby {
	background: transparent;
	border: none;
	border-bottom: 1.5px solid #893DAE;
	color: #893DAE;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 20px 4px 4px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23893DAE" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 12px;
}

/* Chips Container and Individual Chip */
.haine-psl-chips-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
}

.haine-psl-chip {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 8px 12px;
	gap: 8px;
	background: #680C96;
	border-radius: 0px 16px 16px 16px;
	height: 40px;
}

.haine-psl-chip__label {
	font-family: 'Segoe UI', sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	color: #FFFFFF;
}

.haine-psl-chip__close {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	color: #FFFFFF;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.haine-psl-chip__close:hover {
	opacity: 1;
}

.haine-psl-chip__close svg {
	display: block;
}

/* Card Elements Sync from Slider Wtyczki */
.psl-thumb {
	position: relative !important;
}

.psl-add-to-cart-btn {
	display: inline-block;
	padding: 12px 20px;
	background-color: #893DAE;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 0px 20px 20px 20px;
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	transform: translateY(150%);
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.psl-add-to-cart-btn:hover {
	background-color: #722d95;
	box-shadow: 0 4px 12px rgba(137, 61, 174, 0.3);
	color: #fff;
	text-decoration: none;
}

.psl-add-to-cart-btn:active {
	transform: translateY(0) scale(0.98);
}

/* BADGES */
.psl-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
}

.psl-badge-bestseller {
	background-color: #be1622;
	color: #fff;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.psl-badge-brand {
	background-color: #fff;
	color: #717171;
	border: 1px solid #dcdcdc;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	line-height: 1;
	text-align: center;
}

.psl-discount-badge {
	background-color: #893DAE;
	color: #fff;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: fit-content;
	align-self: center;
	margin-left: 5px;
}

/* HOVER EFFECT ON SLIDES */
.psl-slide:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.psl-slide:hover .psl-add-to-cart-btn {
	transform: translateY(0);
	opacity: 1;
}

.psl-slide:hover .psl-info {
	margin-bottom: 58px;
}

/* Force Horizontal Layout for Inline Filter Form Dropdowns */
.haine-psl-filters-inline-form-wrapper {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 24px !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}