/**
 * Central CSS Styles for Givi Interior
 * This file contains all centralized styles
 */

/* ================================
   OLSTORE AREA STYLES
   ================================ */
.olstore-area .marketplace-btn {
	margin-bottom: 20px !important;
	margin-left: 10px !important;
	margin-right: 10px !important;
}

@media (max-width: 991px) {
	.olstore-area .marketplace-btn {
		padding: 20px !important;
	}
}

@media (max-width: 767px) {
	.olstore-area .marketplace-btn {
		padding: 10px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.olstore-area .col-lg-3, 
	.olstore-area .col-md-4, 
	.olstore-area .col-sm-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ================================
   SERVICE SECTION STYLES (Dynamic from DB)
   ================================ */

/* Service Card Default Styles */
#menuservice .single-service {
	background-color: #ffffff;
	border: 1px solid #eeeeee;
	transition: all 0.3s ease;
}

#menuservice .single-service h4 {
	color: #222222 !important;
	font-weight: 600;
}

#menuservice .single-service p {
	color: #777777;
}

#menuservice .single-service:hover {
	background-color: #04091e !important;
	border-color: #04091e !important;
}

#menuservice .single-service:hover h4 {
	color: #ffffff !important;
}

#menuservice .single-service:hover p {
	color: #cccccc !important;
}

/* ================================
   ADDITIONAL CENTRALIZED STYLES
   ================================ */

/* Title Header Style */
.titleheader {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	line-height: 1.2;
}

@media (max-width: 768px) {
	.titleheader {
		font-size: 1.8rem;
	}
}

/* Subtitle Style */
.subtitle {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 25px;
}

/* Button Group */
.button-group {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
	padding: 12px 30px;
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Before/After Slider Styles */
.wrapper {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 10px;
}

.before, .after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.before img, .after img {
	width: 100%;
	height: auto;
	display: block;
}

.after {
	clip-path: inset(0 0 0 50%);
}

.scroller {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	cursor: ew-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	z-index: 10;
}

.scroller__thumb {
	width: 20px;
	height: 20px;
}

/* ================================
   RESPONSIVE UTILITIES
   ================================ */
@media (max-width: 991px) {
	.content {
		text-align: center;
	}
	
	.button-group {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.btn-primary, .btn-secondary {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
}

/* ================================
   FIX: Before/After Slider
   - Use CSS variable `--clip` (percentage) to control the reveal
   - Override inline width/left values with !important so existing markup doesn't break layout
   - Ensure both images fill the same container and preserve aspect ratio
   ================================ */
.wrapper {
	--clip: 50%; /* default reveal: 50% */
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 10px;
}

.wrapper .before,
.wrapper .after {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important; /* override inline widths */
	height: 100% !important;
}

.wrapper img.content-image {
	display: block;
	width: 100% !important;
	height: 100% !important; /* ensure images fill the wrapper height */
	object-fit: cover; /* preserve cover behavior while matching sizes */
}

.wrapper .after {
	/* reveal using clip-path controlled by --clip */
	-webkit-clip-path: inset(0 0 0 var(--clip));
	clip-path: inset(0 0 0 var(--clip));
}

.wrapper .scroller {
	position: absolute !important;
	top: 50% !important;
	left: calc(var(--clip) - 20px) !important; /* center the 40px knob */
	transform: translateY(-50%) !important;
	width: 40px !important;
	height: 40px !important;
	z-index: 20 !important;
}

/* Responsive: reduce scroller size on small screens */
@media (max-width: 480px) {
	.wrapper {
		max-width: 100%;
	}
	.wrapper .scroller {
		width: 30px !important;
		height: 30px !important;
		left: calc(var(--clip) - 15px) !important;
	}
}

/* Helper: allow changing reveal via inline style on wrapper if needed, e.g.
   <div class="wrapper" style="--clip:40%"> */

