/*
Theme Name: KARIMIGO Classic
Theme URI: https://karimigo.com/
Author: KARIMIGO
Author URI: https://karimigo.com/
Description: A clean, responsive, free-Elementor-compatible WooCommerce-ready theme built for KARIMIGO projects.
Version: 1.4
License: GPLv2 or later
Text Domain: karimigo-classic
*/

/* ===== Base Reset ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	scroll-behavior: smooth;
	font-family: 'Poppins', sans-serif;
	background-color: #ffffff;
	color: #222;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	display: block;
}

/* ===== Layout Containers ===== */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

header, footer {
	width: 100%;
}

/* ===== Header Gradient (AI Mockup Style) ===== */
.ai-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	padding: 15px 0;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
	position: relative;
	overflow: hidden;
	z-index: 100;
	transition: all 0.3s ease;
}

.ai-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 10% 20%, rgba(255,255,255,.1) 0%, transparent 20%),
				radial-gradient(circle at 90% 80%, rgba(255,255,255,.1) 0%, transparent 20%);
	pointer-events: none;
}

/* ✅ OLD HEADER FIX - No max-width, no centering */
.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 2;
}

/* ✅ OLD HEADER FIX - No negative margin */
.brand-logo {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* ✅ OLD HEADER FIX - margin-left: 0 restored */
.hamburger-btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
	margin-left: 0;
	flex-shrink: 0;
}

.hamburger-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}

.brand-name {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.search-bar {
	display: flex;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 30px;
	padding: 8px 16px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}

.search-bar:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

.search-bar input {
	background: transparent;
	border: none;
	color: #fff;
	padding: 8px 12px;
	font-size: 16px;
	width: 200px;
	outline: none;
}

.search-bar input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: background 0.2s;
}

.search-bar button:hover {
	background: rgba(255, 255, 255, 0.2);
}

.search-icon {
	display: none;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: background 0.2s;
}

.search-icon:hover {
	background: rgba(255, 255, 255, 0.2);
}

.nav-icons {
	display: flex;
	gap: 20px;
}

.nav-icon {
	color: #fff;
	font-size: 22px;
	position: relative;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.nav-icon:hover {
	transform: translateY(-3px);
}

.cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #ff6b6b;
	color: #fff;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===== AI Badge with Glow Animation ===== */
.ai-badge {
	background: rgba(255, 255, 255, 0.2);
	padding: 6px 12px;
	border-radius: 20px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	white-space: nowrap;
}

.ai-badge .robot-icon {
	animation: robotPulse 2s ease-in-out infinite;
}

@keyframes robotPulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.6;
		transform: scale(1.1);
	}
}

/* ===== Hamburger Menu Drawer ===== */
.hamburger-menu {
	position: fixed;
	left: 0;
	top: 0;
	width: 300px;
	height: 100vh;
	background: #fff;
	box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transform: translateX(-100%);
	transition: transform 0.4s cubic-bezier(.7,0,.3,1);
	display: flex;
	flex-direction: column;
	padding: 20px;
	overflow-y: auto;
}

.hamburger-menu.active {
	transform: translateX(0);
}

.menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 20px;
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 20px;
}

.menu-title {
	font-size: 20px;
	font-weight: 600;
	color: #495057;
}

.close-menu {
	background: transparent;
	border: none;
	font-size: 24px;
	color: #6c757d;
	cursor: pointer;
	transition: color 0.2s;
}

.close-menu:hover {
	color: #dc3545;
}

/* ===== WooCommerce Dynamic Categories ===== */
.menu-categories {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-categories li {
	margin-bottom: 10px;
}

.category-item a {
	display: flex;
	align-items: center;
	gap: 15px;
	text-decoration: none;
	background: #fff;
	border-radius: 10px;
	padding: 12px 16px;
	color: #495057;
	transition: all 0.3s ease;
}

.category-item a:hover {
	background: #f8f9fa;
	transform: translateX(5px);
}

.category-item i {
	font-size: 20px;
	color: #667eea;
	min-width: 25px;
}

.category-item a:hover i {
	color: #0d6efd;
}

.category-name {
	font-size: 18px;
	font-weight: 500;
	color: #333;
}

.category-subtext {
	font-size: 13px;
	color: #6c757d;
}

.menu-footer {
	margin-top: auto;
	padding-top: 20px;
	border-top: 2px solid #e9ecef;
	text-align: center;
}

.menu-footer p {
	color: #6c757d;
	font-size: 14px;
}

/* ===== Sticky Header Effect ===== */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: all 0.3s ease;
}

.site-header.sticky {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 8px 0;
	transform: translateY(0);
}

/* ===== Footer ===== */
.site-footer {
	background-color: #f8f9fa;
	color: #444;
	text-align: center;
	padding: 40px 20px 100px;
	border-top: 1px solid #e9ecef;
}

.footer-bottom p {
	font-size: 0.85rem;
	color: #666;
	margin-top: 20px;
}

/* ===== Mobile Footer Navigation ===== */
.mobile-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid #e9ecef;
	padding: 14px 0;
	z-index: 999;
}

.mobile-nav-container {
	display: flex;
	justify-content: space-around;
	max-width: 420px;
	margin: auto;
	width: 100%;
}

.mobile-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #6c757d;
	text-decoration: none;
	font-size: 12px;
	transition: color 0.2s;
	position: relative;
}

.mobile-nav-item i {
	font-size: 24px;
	margin-bottom: 4px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
	color: #667eea;
}

.mobile-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #ff6b6b;
	color: #fff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.search-bar { display: none; }
	.search-icon { display: block; }
	.nav-icons { display: none; }
	.brand-name { font-size: 24px; }
	body { padding-bottom: 80px; }
	.mobile-bottom-nav { display: flex; }

	.brand-logo {
		flex-direction: row;
		justify-content: flex-start;
	}

	.hamburger-btn {
		order: -1;
		margin-left: 0;
		margin-right: 8px;
	}

	.ai-badge {
		max-width: 120px;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 12px;
		padding: 4px 10px;
		border-radius: 20px;
	}
}

/* Extra small phones ≤344px */
@media (max-width: 344px) {
	.header-container { gap: 6px; }
	.brand-name { font-size: 18px; }
	.ai-badge { transform: scale(0.9); max-width: 100px; }
}

/* === Cart Bubble Pulse Animation === */
@keyframes cartPulse {
	0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,107,107,0.6); }
	50% { transform: scale(1.3); box-shadow: 0 0 10px rgba(255,107,107,0.9); }
	100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,107,107,0.6); }
}

.cart-pulse {
	animation: cartPulse 0.8s ease-in-out;
}

/* ===== AJAX SEARCH OVERLAY ===== */
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	overflow-y: auto;
}

.search-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.search-overlay-content {
	max-width: 700px;
	margin: 80px auto 40px;
	padding: 0 20px;
}

.search-overlay-header {
	display: flex;
	align-items: center;
	gap: 15px;
	background: #fff;
	border-radius: 50px;
	padding: 15px 25px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	margin-bottom: 30px;
}

.search-overlay-header input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 18px;
	font-family: 'Poppins', sans-serif;
	color: #333;
}

.search-overlay-header input::placeholder {
	color: #999;
}

.search-overlay-close {
	background: #f8f9fa;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	color: #666;
	font-size: 18px;
}

.search-overlay-close:hover {
	background: #667eea;
	color: #fff;
	transform: rotate(90deg);
}

.search-results-container {
	background: #fff;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	min-height: 200px;
}

.search-loading {
	text-align: center;
	padding: 40px 20px;
	color: #667eea;
	font-size: 18px;
	font-weight: 500;
}

.search-loading i {
	font-size: 32px;
	margin-bottom: 15px;
	display: block;
}

/* Search Results */
.ajax-search-results {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.search-result-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.search-result-item:hover {
	background: #fff;
	border-color: #667eea;
	transform: translateX(5px);
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.search-result-thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 10px;
	background: #fff;
}

.search-result-info {
	flex: 1;
}

.search-result-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.search-result-price {
	font-size: 18px;
	font-weight: 700;
	color: #667eea;
}

.search-result-price .amount {
	color: #667eea;
}

/* Empty States */
.search-no-results,
.search-error,
.search-hint {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.search-no-results i,
.search-error i,
.search-hint i {
	font-size: 48px;
	color: #ddd;
	margin-bottom: 20px;
	display: block;
}

.search-no-results p,
.search-error p {
	font-size: 16px;
	margin: 10px 0 0;
}

.search-error {
	color: #dc3545;
}

.search-error i {
	color: #dc3545;
}

.search-hint {
	color: #999;
	padding: 40px 20px;
}

.search-hint i {
	font-size: 32px;
	color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.search-overlay-content {
		margin: 20px auto;
	}

	.search-overlay-header {
		padding: 12px 20px;
		border-radius: 40px;
	}

	.search-overlay-header input {
		font-size: 16px;
	}

	.search-result-item {
		padding: 12px;
		gap: 12px;
	}

	.search-result-thumb {
		width: 60px;
		height: 60px;
	}

	.search-result-title {
		font-size: 14px;
	}

	.search-result-price {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.search-overlay-header {
		padding: 10px 15px;
	}

	.search-overlay-close {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}

	.search-results-container {
		padding: 15px;
		border-radius: 15px;
	}

	.search-result-thumb {
		width: 50px;
		height: 50px;
	}
}

/* ===== ENHANCED SEARCH FEATURES ===== */

/* Search Stats & View All */
.search-stats-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f8f9fa;
	border-radius: 12px;
	margin-bottom: 20px;
	border: 2px solid #e9ecef;
}

.search-stats {
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

.search-stats strong {
	color: #667eea;
	font-weight: 700;
}

.view-all-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 8px 20px;
	border-radius: 25px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.view-all-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.view-all-btn i {
	font-size: 12px;
}

/* Category Badge in Results */
.search-result-category {
	display: inline-block;
	background: #e9ecef;
	color: #666;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 500;
	margin-top: 5px;
}

.search-result-item:hover .search-result-category {
	background: #667eea;
	color: #fff;
}

/* Search Result Meta (Stock, Rating, etc) */
.search-result-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 8px;
	font-size: 13px;
}

.search-stock-status {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #28a745;
	font-weight: 500;
}

.search-stock-status.out-of-stock {
	color: #dc3545;
}

.search-stock-status i {
	font-size: 10px;
}

.search-rating {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #ffa500;
}

.search-rating i {
	font-size: 12px;
}

/* Keyboard Navigation Hint */
.search-keyboard-hint {
	text-align: center;
	padding: 15px;
	color: #999;
	font-size: 13px;
	border-top: 1px solid #e9ecef;
	margin-top: 20px;
}

.search-keyboard-hint kbd {
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 12px;
	font-family: monospace;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.search-stats-bar {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.view-all-btn {
		width: 100%;
		justify-content: center;
	}

	.search-result-meta {
		flex-wrap: wrap;
		gap: 10px;
	}
}

/* ===== AI-POWERED PRODUCT PAGE ===== */

.karimigo-product-page {
	padding: 40px 20px;
	max-width: 1200px;
	margin: 0 auto;
}


.product-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

/* Product Images - Simple & Clean (AI SHOP 7 Style) */
.product-images {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.main-image {
	position: relative;
	width: 100%;
	height: 500px; /* Fixed canvas height */
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Blurred background for empty canvas */
.main-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: blur(25px);
	opacity: 0.3;
	z-index: 1;
}

.main-image img {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	z-index: 2;
	transition: opacity 0.5s ease;
}

.zoomable-image {
	cursor: pointer;
}

.badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, #ff6b6b, #ff8e53);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	z-index: 10;
}

.thumbnail-images {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.thumbnail {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s;
}

.thumbnail:hover, .thumbnail.active {
	border-color: #667eea;
}

/* Simple slide arrows (optional) */
.slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-size: 18px;
	color: #333;
	opacity: 0;
	pointer-events: none;
}

.main-image:hover .slide-arrow {
	opacity: 1;
	pointer-events: auto;
}

.slide-arrow:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-50%) scale(1.1);
}

.slide-arrow-left {
	left: 10px;
}

.slide-arrow-right {
	right: 10px;
}

/* Hide arrows when only 1 image */
.main-image.single-image .slide-arrow {
	display: none;
}

/* Responsive canvas heights */
@media (max-width: 768px) {
	.main-image {
		height: 350px;
	}
}

@media (max-width: 480px) {
	.main-image {
		height: 280px;
	}
}

/* ========================================
   IMAGE ZOOM LIGHTBOX MODAL
   ======================================== */

.image-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
	display: flex;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lightbox-content {
	position: relative;
	max-width: 95%;
	max-height: 95%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	animation: zoomIn 0.3s ease;
	user-select: none;
}

@keyframes zoomIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 45px;
	height: 45px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	transition: all 0.3s ease;
	font-size: 24px;
	color: #333;
}

.lightbox-close:hover {
	background: #fff;
	transform: rotate(90deg);
}

.lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	transition: all 0.3s ease;
	font-size: 20px;
	color: #333;
}

.lightbox-arrow:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-left {
	left: 20px;
}

.lightbox-arrow-right {
	right: 20px;
}

.lightbox-counter {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	padding: 10px 20px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	z-index: 10001;
}

/* Lightbox loading state */
.lightbox-image.loading {
	opacity: 0.5;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
	.lightbox-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.lightbox-arrow {
		width: 45px;
		height: 45px;
		font-size: 18px;
	}

	.lightbox-arrow-left {
		left: 10px;
	}

	.lightbox-arrow-right {
		right: 10px;
	}

	.lightbox-counter {
		bottom: 15px;
		font-size: 12px;
		padding: 8px 16px;
	}
}

/* Add pointer cursor to main image */
.main-image img {
	cursor: zoom-in;
}

.zoomable-image {
	cursor: zoom-in;
}

/* Product Info */
.product-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.product-title {
	font-size: 28px;
	margin-bottom: 15px;
	color: #212529;
	line-height: 1.3;
}

.product-price-wrapper {
	margin-bottom: 10px;
}

.product-price-wrapper .price {
	font-size: 32px;
	font-weight: 700;
	color: #667eea;
}

.product-price-wrapper del {
	color: #6c757d;
	font-size: 20px;
	margin-left: 10px;
}

.savings {
	background: #d4edda;
	color: #155724;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	display: inline-block;
	margin-left: 10px;
}

.product-rating {
	color: #ffc107;
	margin-bottom: 20px;
	font-size: 18px;
}

.product-rating .far {
	color: #dee2e6;
}

.product-description {
	margin-bottom: 25px;
	color: #6c757d;
	line-height: 1.8;
	font-size: 16px;
}

.product-meta {
	margin-bottom: 25px;
}

.meta-item {
	display: flex;
	margin-bottom: 10px;
	font-size: 15px;
}

.meta-label {
	font-weight: 600;
	width: 120px;
	color: #495057;
}

.stock-info {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	color: #dc3545;
	font-weight: 600;
	font-size: 15px;
}

.progress-bar {
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	margin: 10px 0 20px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #28a745, #20c997);
	transition: width 0.3s ease;
}

/* Trust Badges */
.trust-badges {
	display: flex;
	gap: 20px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.badge-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #495057;
}

.badge-item i {
	color: #667eea;
	font-size: 18px;
}

/* Quick Actions */
.quick-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.quick-btn {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Poppins', sans-serif;
}

.quick-btn:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	transform: translateY(-2px);
}

.quick-btn i {
	font-size: 16px;
}

/* WhatsApp Button */
.whatsapp-btn {
	background: #25D366;
	color: white;
	border: none;
	padding: 16px 32px;
	font-size: 18px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s;
	margin: 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
	font-family: 'Poppins', sans-serif;
}

.whatsapp-btn:hover {
	background: #128C7E;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
	font-size: 24px;
}

/* AI Recommendation */
.ai-recommendation {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	border-radius: 12px;
	text-align: center;
}

.ai-recommendation h3 {
	margin-bottom: 10px;
	font-size: 18px;
}

.ai-recommendation p {
	margin: 0;
	font-size: 15px;
	opacity: 0.95;
}

/* AI Assistant */
.ai-assistant {
	background: white;
	border-radius: 16px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	overflow: hidden;
	height: 500px;
	display: flex;
	flex-direction: column;
	margin-bottom: 40px;
}

.ai-assistant .ai-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.ai-avatar {
	width: 40px;
	height: 40px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #667eea;
	font-weight: bold;
	font-size: 18px;
	flex-shrink: 0;
}

.ai-title {
	font-size: 20px;
	font-weight: 600;
}

.voice-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.voice-btn {
	background: rgba(255,255,255,0.2);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: white;
	transition: background 0.2s;
}

.voice-btn:hover {
	background: rgba(255,255,255,0.3);
}

.voice-btn.recording {
	background: #ff4757;
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.ai-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: #f8f9fa;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.message {
	max-width: 80%;
	padding: 12px 16px;
	border-radius: 18px;
	line-height: 1.5;
	word-wrap: break-word;
	position: relative;
	font-size: 15px;
}

.ai-message {
	align-self: flex-start;
	background: white;
	border: 1px solid #e9ecef;
	border-bottom-left-radius: 4px;
	color: #333;
}

.user-message {
	align-self: flex-end;
	background: #667eea;
	color: white;
	border-bottom-right-radius: 4px;
}

.ai-input {
	display: flex;
	padding: 15px;
	background: white;
	border-top: 1px solid #e9ecef;
}

.ai-input input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #ced4da;
	border-radius: 24px;
	font-size: 16px;
	outline: none;
	font-family: 'Poppins', sans-serif;
}

.ai-input input:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.ai-input button {
	background: #667eea;
	color: white;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	margin-left: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.ai-input button:hover {
	background: #5a67d8;
}

.persuasion-tips {
	background: #e7f1ff;
	border-left: 4px solid #667eea;
	padding: 15px;
	margin-top: 20px;
	border-radius: 0 8px 8px 0;
	font-size: 14px;
	color: #495057;
}

.persuasion-tips strong {
	color: #667eea;
}

/* WhatsApp Modal */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 10000;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(5px);
}

.modal.active {
	display: flex;
}

.modal-content {
	background: white;
	border-radius: 16px;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	position: relative;
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.modal-header h3 {
	margin: 0;
	font-size: 20px;
}

.modal-header p {
	margin: 0;
}

.modal-body {
	padding: 25px;
	min-height: 200px;
}

.question-container {
	display: none;
	animation: slideIn 0.4s ease-out;
}

.question-container.active {
	display: block;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
	color: #495057;
	font-size: 18px;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 14px;
	border: 1px solid #ced4da;
	border-radius: 10px;
	font-size: 16px;
	transition: border-color 0.3s;
	font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
	border-color: #667eea;
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.progress-indicator {
	display: flex;
	justify-content: space-between;
	margin-bottom: 25px;
	position: relative;
}

.progress-indicator::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 0;
	right: 0;
	height: 4px;
	background: #e9ecef;
	border-radius: 2px;
}

.progress-bar-fill {
	position: absolute;
	top: 10px;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, #667eea, #764ba2);
	border-radius: 2px;
	transition: width 0.4s ease;
	z-index: 1;
}

.step {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e9ecef;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
	font-weight: bold;
	position: relative;
	z-index: 2;
	font-size: 14px;
}

.step.active {
	background: #667eea;
	color: white;
}

.step.completed {
	background: #28a745;
	color: white;
}

.modal-footer {
	padding: 0 25px 25px;
	display: flex;
	gap: 10px;
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	flex: 1;
	transition: all 0.2s;
	font-family: 'Poppins', sans-serif;
}

.btn-primary {
	background: #667eea;
	color: white;
}

.btn-primary:hover {
	background: #5a67d8;
	transform: translateY(-2px);
}

.btn-secondary {
	background: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background: #5a6268;
}

.btn-back {
	background: #f8f9fa;
	color: #495057;
	border: 1px solid #dee2e6;
}

.btn-back:hover {
	background: #e9ecef;
}

.answer-display {
	background: #f8f9fa;
	padding: 12px;
	border-radius: 8px;
	margin-top: 8px;
	font-weight: 500;
	color: #495057;
}

.option-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 10px;
}

.option-btn {
	padding: 14px;
	border: 2px solid #dee2e6;
	border-radius: 10px;
	background: white;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
	font-size: 15px;
}

.option-btn:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
}

.option-btn.selected {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
	.product-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.product-title {
		font-size: 24px;
	}

	.product-price-wrapper .price {
		font-size: 28px;
	}

	.ai-assistant {
		height: 400px;
	}

	.trust-badges {
		flex-direction: column;
		gap: 10px;
	}

	.quick-actions {
		flex-direction: column;
	}

	.quick-btn {
		width: 100%;
		justify-content: center;
	}

	.modal-content {
		width: 95%;
		max-height: 85vh;
	}

	.option-grid {
		grid-template-columns: 1fr;
	}

	.thumbnail-images {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.karimigo-product-page {
		padding: 20px 15px;
	}

	.product-title {
		font-size: 20px;
	}

	.product-price-wrapper .price {
		font-size: 24px;
	}

	.whatsapp-btn {
		padding: 14px 24px;
		font-size: 16px;
	}

	.ai-title {
		font-size: 16px;
	}

	.voice-controls {
		gap: 5px;
	}

	.voice-btn {
		width: 32px;
		height: 32px;
	}
}
/*
 * SPI Widget Positioning Fix
 * Forces the widget to stop floating and occupy its allocated space.
 */
#karimigo-spi-widget-placeholder {
    /* Ensure the placeholder block is visible and occupies space */
    display: block; 
    clear: both; /* Crucial to clear any floating elements above it */
    margin-top: 20px;
    padding: 10px 0;
}

.karimigo-spi-widget {
    /* Ensure the widget itself is not floating or fixed */
    position: static !important; /* Overrides any floating/fixed styles */
    width: 100%; /* Ensure it takes the full width of the placeholder */
    max-width: 100%;
    /* Remove any unnecessary floating styles */
    float: none !important;
}