/**
 * Stanley/Stella Frontend & Admin Custom Styles
 */

/* Swatches */
.wpps-swatch-circle {
	display: inline-block !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	aspect-ratio: 1 / 1 !important;
	flex-shrink: 0 !important;
	border-radius: 50% !important;
	border: 1px solid rgba(0, 0, 0, 0.18) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	vertical-align: middle;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box !important;
}

.wpps-swatch-circle:hover {
	transform: scale(1.3);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

.wpps-color-badge {
	font-size: 0.72rem;
	font-weight: 500;
	padding: 0.25em 0.5em;
	letter-spacing: 0.02em;
}

.wpps-color-picker {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
}

.wpps-swatch-btn {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
	box-sizing: border-box !important;
	flex: 0 0 34px !important;
	display: inline-block !important;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
	cursor: pointer !important;
	outline: none !important;
	position: relative !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease !important;
	vertical-align: middle !important;
	overflow: hidden !important;
}

.wpps-swatch-btn:hover {
	transform: scale(1.15) !important;
	z-index: 2 !important;
}

.wpps-swatch-btn.ring-active {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111111 !important;
	border-color: #ffffff !important;
}

/* Card hover animation */
.wpps-product-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpps-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Horizontal Image Slider & Carousel */
.wpps-slider-container {
	user-select: none;
}

.wpps-slider-viewport {
	background-color: #f8f9fa;
}

.wpps-slider-track {
	will-change: transform;
}

.wpps-slider-slide {
	min-width: 100%;
}

.wpps-slider-nav {
	transition: all 0.2s ease;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}

.wpps-slider-nav:hover {
	opacity: 1 !important;
	background-color: #ffffff !important;
	transform: translateY(-50%) scale(1.1) !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.wpps-slider-counter {
	font-size: 0.75rem;
	letter-spacing: 0.5px;
	border-radius: 20px !important;
	backdrop-filter: blur(4px);
}

/* Horizontal Single-row Thumbnail Strip */
.wpps-thumbnail-strip {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	flex-wrap: nowrap !important;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.wpps-thumbnail-strip::-webkit-scrollbar {
	height: 6px;
}

.wpps-thumbnail-strip::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

.wpps-thumbnail-strip::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}

.wpps-thumbnail-strip::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.4);
}

.wpps-thumb-btn {
	cursor: pointer;
	background: #fff;
	transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wpps-thumb-btn:hover {
	transform: scale(1.06);
	border-color: #0d6efd !important;
}

.wpps-thumb-btn.active {
	border-color: #0d6efd !important;
	box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.4) !important;
}

/* Badge highlights */
.bg-success-subtle {
	background-color: #d1e7dd !important;
}

.bg-warning-subtle {
	background-color: #fff3cd !important;
}

.border-success-subtle {
	border-color: #a3cfbb !important;
}

.border-warning-subtle {
	border-color: #ffe69c !important;
}

/* ==========================================================================
   Mobile-first Layout & Overflow Prevention
   ========================================================================== */

.wpps-ss-catalog,
.wpps-ss-single-product {
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-x: clip !important;
}

/* Ensure images within cards scale and never overflow */
.wpps-card-img-wrap img {
	max-width: 100% !important;
	height: auto;
}

/* Toolbar adjustments & Horizontal Inline Filter Bar */
.wpps-ss-toolbar {
	box-sizing: border-box;
	background-color: #f8fafc !important;
	border-color: #e2e8f0 !important;
}

.wpps-ss-toolbar .input-group-text {
	min-height: 38px;
	background-color: #ffffff !important;
	border-color: #cbd5e1 !important;
	color: #64748b !important;
}

.wpps-ss-toolbar .form-control,
.wpps-ss-toolbar .form-select {
	min-height: 38px;
	color: #1e293b !important;
	background-color: #ffffff !important;
	border-color: #cbd5e1 !important;
	max-width: 100% !important;
	font-size: 0.9rem;
}

.wpps-ss-toolbar .form-control::placeholder {
	color: #64748b !important;
	opacity: 1;
}

.wpps-ss-toolbar .form-control:focus,
.wpps-ss-toolbar .form-select:focus {
	border-color: #86b7fe !important;
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2) !important;
}

.wpps-btn-filter-inline,
.wpps-btn-reset-inline {
	min-height: 38px;
	white-space: nowrap;
}

.wpps-btn-reset-inline {
	min-width: 38px;
	padding-left: 0.65rem;
	padding-right: 0.65rem;
	background-color: #ffffff;
	border-color: #cbd5e1;
	color: #475569;
}

.wpps-btn-reset-inline:hover {
	background-color: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
}

/* ==========================================================================
   Catalog Navigation & Pagination Styling
   (Fixes dark/light theme contrast collisions & mobile horizontal overflow)
   ========================================================================== */

.wpps-pagination-nav {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wpps-ss-catalog .pagination,
.wpps-pagination {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 2rem 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.wpps-ss-catalog .pagination .page-item,
.wpps-pagination .page-item {
	margin: 0 !important;
	list-style: none !important;
}

/* Base page link - explicitly high contrast */
.wpps-ss-catalog .pagination .page-link,
.wpps-pagination .page-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 38px !important;
	height: 38px !important;
	padding: 0.375rem 0.75rem !important;
	font-size: 0.9rem !important;
	font-weight: 500 !important;
	color: #1e293b !important; /* Force high-contrast slate dark text */
	background-color: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	line-height: 1 !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
	transition: all 0.15s ease-in-out !important;
	user-select: none;
}

/* Hover state */
.wpps-ss-catalog .pagination .page-link:hover,
.wpps-pagination .page-link:hover {
	color: #0d6efd !important;
	background-color: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
	z-index: 2;
}

/* Active current page */
.wpps-ss-catalog .pagination .page-item.active .page-link,
.wpps-pagination .page-item.active .page-link {
	color: #ffffff !important; /* White text on blue background */
	background-color: #0d6efd !important;
	border-color: #0d6efd !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35) !important;
	pointer-events: none;
}

/* Disabled state */
.wpps-ss-catalog .pagination .page-item.disabled .page-link,
.wpps-pagination .page-item.disabled .page-link {
	color: #94a3b8 !important;
	background-color: #f8fafc !important;
	border-color: #e2e8f0 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
	box-shadow: none !important;
}

/* Ellipsis (...) separator */
.wpps-ss-catalog .pagination .page-item.page-ellipsis .page-link,
.wpps-pagination .page-item.page-ellipsis .page-link {
	border: none !important;
	background: transparent !important;
	color: #64748b !important;
	box-shadow: none !important;
	min-width: 26px !important;
	padding: 0 4px !important;
	cursor: default !important;
	pointer-events: none !important;
	font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
	.wpps-ss-catalog .pagination,
	.wpps-pagination {
		gap: 4px !important;
	}

	.wpps-ss-catalog .pagination .page-link,
	.wpps-pagination .page-link {
		min-width: 34px !important;
		height: 34px !important;
		padding: 0.25rem 0.5rem !important;
		font-size: 0.85rem !important;
	}

	.wpps-swatch-list {
		margin-bottom: 0.5rem !important;
	}
}

/* ==========================================================================
   Accordion & Details Typography Styling
   (Prevents theme text-color conflicts and ensures high contrast readability)
   ========================================================================== */

.wpps-ss-single-product .accordion {
	--bs-accordion-color: #1e293b;
	--bs-accordion-bg: #ffffff;
	--bs-accordion-border-color: #e2e8f0;
	--bs-accordion-btn-color: #1e293b;
	--bs-accordion-btn-bg: #f8fafc;
	--bs-accordion-active-color: #0d6efd;
	--bs-accordion-active-bg: #eff6ff;
	--bs-accordion-body-padding-x: 1.25rem;
	--bs-accordion-body-padding-y: 1rem;
	border-radius: 8px;
}

.wpps-ss-single-product .accordion-item {
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	margin-bottom: 0.5rem;
	border-radius: 8px !important;
	overflow: hidden;
}

.wpps-ss-single-product .accordion-header {
	margin: 0 !important;
	padding: 0 !important;
}

/* Accordion header toggle button - explicitly high contrast */
.wpps-ss-single-product .accordion-button {
	color: #1e293b !important;
	background-color: #f8fafc !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	padding: 0.85rem 1.15rem !important;
	box-shadow: none !important;
	text-shadow: none !important;
	border: none !important;
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	text-align: left !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wpps-ss-single-product .accordion-button:hover {
	color: #0d6efd !important;
	background-color: #f1f5f9 !important;
}

.wpps-ss-single-product .accordion-button:not(.collapsed) {
	color: #0d6efd !important;
	background-color: #eff6ff !important;
	font-weight: 600 !important;
	border-bottom: 1px solid #dbeafe !important;
}

.wpps-ss-single-product .accordion-button i.dashicons {
	color: inherit !important;
	vertical-align: middle;
	font-size: 1.15rem;
}

/* Accordion body & specification text styling */
.wpps-ss-single-product .accordion-body,
.wpps-ss-single-product .wpps-accordion-body {
	color: #334155 !important;
	background-color: #ffffff !important;
	font-size: 0.875rem !important;
	line-height: 1.6 !important;
	padding: 1rem 1.25rem !important;
}

.wpps-ss-single-product .accordion-body p,
.wpps-ss-single-product .wpps-accordion-body p {
	color: #334155 !important;
	margin-bottom: 0.5rem;
}

.wpps-ss-single-product .accordion-body p:last-child,
.wpps-ss-single-product .wpps-accordion-body p:last-child {
	margin-bottom: 0;
}

.wpps-ss-single-product .accordion-body strong,
.wpps-ss-single-product .wpps-accordion-body strong {
	color: #0f172a !important;
	font-weight: 600 !important;
}

.wpps-ss-single-product .accordion-body span,
.wpps-ss-single-product .wpps-accordion-body span {
	color: #334155 !important;
}

/* Single product headings and form labels */
.wpps-ss-single-product h1,
.wpps-ss-single-product .h3 {
	color: #0f172a !important;
}

.wpps-ss-single-product .form-label {
	color: #1e293b !important;
}

/* ==========================================================================
   Design Specs 001 Custom Styles
   ========================================================================== */

/* Header & Toggle */
.wpps-page-title {
	font-size: 1.85rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: #ffffff !important;
}

.wpps-product-count-badge {
	font-size: 0.85rem !important;
	color: #334155 !important;
	background-color: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 9999px !important;
}

.wpps-view-mode-toggle {
	background-color: #f1f5f9 !important;
	padding: 4px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: fit-content !important;
	height: 40px !important;
	box-sizing: border-box !important;
	border-radius: 9999px !important;
	border: 1px solid #e2e8f0 !important;
	margin: 0 !important;
	vertical-align: middle !important;
	gap: 2px !important;
}

.wpps-view-mode-toggle .wpps-toggle-btn {
	border: none !important;
	color: #64748b !important;
	background: transparent !important;
	transition: all 0.2s ease !important;
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 16px !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	box-sizing: border-box !important;
	border-radius: 9999px !important;
	cursor: pointer !important;
	box-shadow: none !important;
	vertical-align: middle !important;
	white-space: nowrap !important;
	text-decoration: none !important;
}

.wpps-view-mode-toggle .wpps-toggle-btn svg {
	margin-right: 5px !important;
	display: inline-block !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
}

.wpps-view-mode-toggle .wpps-toggle-btn.active {
	background-color: #ffffff !important;
	color: #0f172a !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.wpps-btn-filter-trigger {
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
	font-size: 0.85rem !important;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	border-radius: 9999px !important;
}

.wpps-btn-filter-trigger:hover {
	background-color: #ffffff !important;
	color: #0f172a !important;
	border-color: #ffffff !important;
}

/* Slide-in Filter Drawer */
.wpps-filter-drawer {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	width: 420px !important;
	max-width: 90vw !important;
	height: 100vh !important;
	background-color: #ffffff !important;
	z-index: 99999 !important;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
	transform: translateX(100%) !important;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
}

.wpps-filter-drawer.open {
	transform: translateX(0%) !important;
}

.wpps-filter-backdrop {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background-color: rgba(0, 0, 0, 0.25) !important;
	backdrop-filter: blur(5px) !important;
	-webkit-backdrop-filter: blur(5px) !important;
	z-index: 99998 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease !important;
}

.wpps-filter-backdrop.open {
	opacity: 1 !important;
	pointer-events: auto !important;
}

.wpps-filter-accordion .accordion-button {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a !important;
	background-color: transparent !important;
	box-shadow: none !important;
	padding: 1rem 1.25rem !important;
}

.wpps-filter-accordion .accordion-button:not(.collapsed) {
	background-color: #f8fafc !important;
	color: #0f172a !important;
}

.wpps-filter-size-btn {
	border-radius: 20px !important;
	font-size: 0.8rem !important;
	padding: 0.25rem 0.75rem !important;
	cursor: pointer;
	border-color: #cbd5e1 !important;
	color: #334155 !important;
}

.wpps-filter-size-btn.active {
	background-color: #0f172a !important;
	color: #ffffff !important;
	border-color: #0f172a !important;
}

/* Product Card (Page 4) */
.wpps-product-card {
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	padding: 12px !important;
	overflow: hidden !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.wpps-product-card:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.wpps-product-card .card-body {
	padding: 10px 4px 4px 4px !important;
	background-color: #ffffff !important;
}

.wpps-badge-nieuw {
	background-color: #e0f2fe !important;
	color: #0284c7 !important;
	border: 1px solid #bae6fd !important;
	font-size: 0.72rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em;
}

.wpps-product-gender {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: #64748b;
}

.wpps-product-title {
	font-size: 0.95rem;
	line-height: 1.3;
}

.wpps-style-code {
	font-weight: 400;
	color: #64748b;
	margin-left: 0.25rem;
}

.wpps-specs-line {
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.4;
}

/* Load More & Footer */
.wpps-btn-load-more {
	background-color: #212529 !important;
	border-color: #212529 !important;
	color: #ffffff !important;
	font-size: 0.95rem !important;
	padding: 0.85rem 2.5rem !important;
	transition: all 0.2s ease;
}

.wpps-btn-load-more:hover {
	background-color: #000000 !important;
	border-color: #000000 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Detail 1 Toolbar & Tabs */
.wpps-detail1-toolbar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	flex-wrap: nowrap !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 4px 0 !important;
}

.wpps-detail-icons {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	flex-shrink: 0 !important;
}

.wpps-detail-icons .btn {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #475569 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
}

.wpps-detail-icons .btn:hover {
	background-color: #f8fafc !important;
	color: #0f172a !important;
	border-color: #cbd5e1 !important;
	transform: scale(1.05);
}

.wpps-perspective-tabs {
	display: inline-flex !important;
	align-items: center !important;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 9999px !important;
	padding: 3px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
	flex-shrink: 0 !important;
	height: 38px !important;
	box-sizing: border-box !important;
	gap: 2px !important;
}

.wpps-perspective-btn {
	border: none !important;
	font-size: 0.78rem !important;
	font-weight: 500 !important;
	color: #64748b !important;
	background: transparent !important;
	transition: all 0.2s ease !important;
	padding: 0 12px !important;
	height: 30px !important;
	line-height: 30px !important;
	border-radius: 9999px !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	white-space: nowrap !important;
	cursor: pointer !important;
}

.wpps-perspective-btn:hover {
	color: #0f172a !important;
}

.wpps-perspective-btn.active {
	background-color: #212529 !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

/* Detail 2 Box (Page 6) */
.wpps-spec-badge {
	font-size: 0.75rem !important;
	background-color: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	color: #334155 !important;
}

.wpps-single-title {
	letter-spacing: -0.02em;
}

.wpps-single-desc {
	line-height: 1.5;
}
