/**
 * WooCommerce Related Products Slider Styles
 * Mobile-first approach
 *
 * @package WooRelatedProductsSlider
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.wrps-related-products {
	background-color: #000000;
	padding: 48px 0 60px;
	margin-top: 40px;
	margin-bottom: -60px; /* Compensate for theme vertical spacing */
	overflow: hidden;
}

.wrps-container {
	max-width: 1700px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.wrps-header {
	margin-bottom: 32px;
}

.wrps-header__content {
	margin-bottom: 24px;
}

.wrps-header__title {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	color: #ffffff;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.wrps-mobile-break {
	display: block;
}

.wrps-header__description {
	font-size: 14px;
	line-height: 1.5;
	color: #888888;
	margin: 0;
	max-width: 400px;
}

.wrps-header__action {
	display: none;
}

.wrps-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	background-color: #1a1a1a;
	border: none;
	border-radius: 24px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.wrps-button:hover,
.wrps-button:focus {
	background-color: #ffffff;
	color: #1a1a1a;
	border-color: #ffffff;
}

/* ==========================================================================
   Swiper Slider
   ========================================================================== */

.wrps-swiper {
	overflow: visible;
	position: relative;
}

.wrps-slide {
	height: auto;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.wrps-product-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wrps-product-link:hover,
.wrps-product-link:focus {
	text-decoration: none;
	color: inherit;
}

.wrps-product-image {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 16px;
	background-color: #2a2a2a;
}

.wrps-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.wrps-image--hover {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

/* Hover effect - image swap */
.wrps-product-link:hover .wrps-image--featured,
.wrps-product-link:focus .wrps-image--featured {
	opacity: 0;
}

.wrps-product-link:hover .wrps-image--hover,
.wrps-product-link:focus .wrps-image--hover {
	opacity: 1;
}

/* Product Info */
.wrps-product-info {
	padding-right: 16px;
}

.wrps-product-title {
	font-size: 16px;
	font-weight: 400;
	color: #ffffff;
	margin: 0;
	line-height: 1.3;
}

/* ==========================================================================
   Controls (Pagination + Navigation)
   ========================================================================== */

.wrps-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.wrps-pagination {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
}

.wrps-pagination.swiper-pagination-bullets {
	position: relative;
	bottom: auto;
	left: auto;
	width: auto;
}

.wrps-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background-color: #444444;
	opacity: 1;
	border-radius: 50%;
	margin: 0 !important;
	transition: background-color 0.2s ease;
}

.wrps-pagination .swiper-pagination-bullet-active {
	background-color: #ffffff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.wrps-navigation {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wrps-nav-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.wrps-nav-button:hover {
	opacity: 0.7;
}

.wrps-nav-button:disabled,
.wrps-nav-button.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.wrps-nav-button svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Responsive - Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
	.wrps-related-products {
		padding: 64px 0 80px;
	}

	.wrps-container {
		padding: 0 40px;
	}

	.wrps-header {
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
		margin-bottom: 40px;
	}

	.wrps-header__content {
		margin-bottom: 0;
	}

	.wrps-header__title {
		font-size: 36px;
	}

	.wrps-mobile-break {
		display: none;
	}

	.wrps-header__action {
		display: block;
		flex-shrink: 0;
		margin-left: 40px;
	}

	/* Desktop navigation with background */
	.wrps-nav-button {
		width: 40px;
		height: 40px;
		background-color: #A8A297;
		color: #ffffff;
	}

	.wrps-nav-button:hover {
		opacity: 0.85;
	}

	.wrps-nav-button svg {
		width: 20px;
		height: 20px;
	}
}

/* ==========================================================================
   Responsive - Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
	.wrps-container {
		padding: 0 60px;
	}

	.wrps-header__title {
		font-size: 42px;
	}

	.wrps-header__description {
		font-size: 15px;
	}
}

/* ==========================================================================
   Responsive - Large Desktop (1440px+)
   ========================================================================== */

@media (min-width: 1440px) {
	.wrps-container {
		padding: 0 80px;
	}
}

/* ==========================================================================
   Responsive - Extra Large Desktop (1700px+)
   ========================================================================== */

@media (min-width: 1700px) {
	.wrps-container {
		padding: 0 100px;
	}
}
