/* XBuilder Frontend Styles */

@font-face {
	font-family: 'Cairo';
	src: url('./fonts/cairo-regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Cairo';
	src: url('./fonts/cairo-bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.xb-landing-page-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.xb-store-header {
	background: #f8f9fa;
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.xb-store-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.xb-store-header h2 {
	margin: 0;
	font-size: 1.5rem;
	color: #333;
}

.xb-search-bar {
	flex-grow: 1;
	max-width: 400px;
}

.xb-search-bar input[type="search"] {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 20px;
	outline: none;
}

.xb-product-content {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.xb-product-gallery {
	flex: 1 1 500px;
}

.xb-product-summary {
	flex: 1 1 400px;
}

.xb-product-title {
	font-size: 2.5rem;
	margin-top: 0;
	margin-bottom: 15px;
	color: #222;
}

.xb-product-price {
	font-size: 1.5rem;
	font-weight: bold;
	color: #e63946;
	margin-bottom: 20px;
}

.xb-product-description {
	font-size: 1.1rem;
	line-height: 1.6;
	color: #555;
	margin-bottom: 30px;
}

.xb-add-to-cart-wrap {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 20px;
}

/* Mobile Carousel */
.xb-mobile-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
}

.xb-carousel-item {
	display: none;
	width: 100%;
}

.xb-carousel-item.active {
	display: block;
}

.xb-carousel-item img {
	width: 100%;
	height: auto;
	display: block;
}

.xb-carousel-dots {
	position: absolute;
	bottom: 15px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.xb-dot {
	width: 10px;
	height: 10px;
	background: rgba(255,255,255,0.5);
	border-radius: 50%;
	cursor: pointer;
}

.xb-dot.active {
	background: #fff;
	box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
	.xb-product-content {
		flex-direction: column;
		gap: 20px;
	}
	
	.xb-product-title {
		font-size: 2rem;
	}
}


/* Extracted from landing-page.php */
/* Reset basic styles for blocks */
* {
	box-sizing: border-box;
}
.xb-page-blocks-wrapper {
	max-width: 480px;
	margin: 0 auto;
	background: #f0f0f1;
	font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	min-height: 100vh;
}
.xb-block-image img {
	width: 100%;
	height: auto;
	display: block;
}
