.complete-routine-section {
	padding: 60px 40px;
	background-color: #f7f7f7;
}

.complete-routine-container {
	max-width: 1200px;
	margin: 0 auto;
}

.complete-routine-title {
	font-size: 32px;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 30px;
	text-align: center;
}

/* ===================== DESKTOP BOX (default) ===================== */
.complete-routine-box {
	border: 1px solid #d8d8d8;
	border-radius: 16px;
	display: flex;
	overflow: hidden;
	background-color: #ffffff;
}

.routine-item {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 40px 30px;
	border-right: 1px solid #d8d8d8;
}

.routine-item:last-child {
	border-right: none;
}

.routine-item-image {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
	background-color: #ece7d9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.routine-item-image img {
	width: 70%;
	height: 70%;
	object-fit: contain;
}

.routine-item-info {
	flex: 1;
	min-width: 0;
}

.routine-brand {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #333;
	margin-bottom: 8px;
}

.routine-product-title {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.3;
}

.routine-product-title a {
	color: #2b4c7e;
	text-decoration: none;
}

.routine-product-title a:hover {
	text-decoration: underline;
}

.routine-short-desc {
	font-size: 13px;
	color: #888;
	margin: 0 0 10px;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.routine-price {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.routine-rating {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	color: #1a1a1a;
	margin-bottom: 16px;
}

.routine-rating span {
	color: #999;
	margin-left: 5px;
}

.routine-add-to-cart {
	background-color: #1a1a1a;
	color: #fff;
	border: none;
	padding: 12px 26px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
	width: auto;
	white-space: nowrap;
}

.routine-add-to-cart:hover {
	opacity: 0.85;
}

.routine-add-to-cart.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ===================== CONTROLS ROW (hidden on desktop) ===================== */
.routine-controls-row {
	display: none;
}

/* ===================== RESPONSIVE: MOBILE ===================== */
@media (max-width: 768px) {

	.complete-routine-section {
		padding: 40px 20px;
	}

	.complete-routine-title {
		font-size: 32px;
		margin-bottom: 30px;
		text-align: left;
		line-height: 1.15;
	}

	/* Box becomes horizontal scroll container */
	.complete-routine-box {
		display: flex;
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
		border: none;
		border-radius: 0;
		background: transparent;
		gap: 15px;
		padding-bottom: 5px;
	}

	.complete-routine-box::-webkit-scrollbar {
		display: none;
	}

	.routine-item {
		flex: 0 0 auto;
		width: calc(100vw - 60px);
		max-width: 400px;
		box-sizing: border-box;
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		border: 1px solid #e0e0e0;
		border-radius: 20px;
		background-color: #ffffff;
		padding: 24px;
		gap: 18px;
	}

	.routine-item-image {
		width: 120px;
		height: 120px;
		background-color: #999999;
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.routine-item-info {
		flex: 1;
		min-width: 0;
		padding-top: 4px;
	}

	.routine-brand {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.routine-product-title {
		font-size: 20px;
		line-height: 1.25;
		margin-bottom: 8px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.routine-short-desc {
		white-space: nowrap;
		font-size: 14px;
		margin-bottom: 10px;
		color: #999;
	}

	.routine-price {
		font-size: 17px;
		margin-bottom: 10px;
	}

	.routine-rating {
		font-size: 14px;
		margin-bottom: 18px;
	}

	.routine-add-to-cart {
		padding: 14px 28px;
		font-size: 15px;
	}

	/* Controls row: progress bar + arrows */
	.routine-controls-row {
		display: flex;
		align-items: center;
		gap: 15px;
		margin-top: 24px;
	}

	.routine-progress-track {
		flex: 1;
		height: 2px;
		background-color: #e0e0e0;
		border-radius: 2px;
		overflow: hidden;
	}

	.routine-progress-bar {
		height: 100%;
		width: 30%;
		background-color: #1a1a1a;
		border-radius: 2px;
		transition: transform 0.2s ease;
	}

	.routine-nav-group {
		display: flex;
		gap: 12px;
		flex-shrink: 0;
	}

	.routine-nav-btn {
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background-color: transparent;
		border: 1px solid #ccc;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		color: #1a1a1a;
	}

	.routine-nav-btn:disabled {
		opacity: 0.3;
		cursor: not-allowed;
	}
}