:root {
	--pos-shop-border: #e5e7eb;
	--pos-shop-muted: #64748b;
	--pos-shop-ink: #111827;
	--pos-shop-soft: #f8fafc;
	--pos-shop-brand: #0f766e;
	--pos-shop-brand-dark: #115e59;
	--pos-shop-danger: #dc2626;
	--pos-shop-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html[dir="rtl"] .pos-shop-layout,
body[dir="rtl"] .pos-shop-layout,
.rtl .pos-shop-layout {
	direction: rtl;
}

.web-header,
.navbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--pos-shop-border);
	box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.navbar .navbar-brand {
	font-weight: 700;
	letter-spacing: 0;
}

.navbar .form-control,
.web-header .form-control,
.navbar input[type="search"],
.web-header input[type="search"] {
	min-height: 36px;
	border-radius: 8px;
	border-color: var(--pos-shop-border);
	background: var(--pos-shop-soft);
	font-size: 0.875rem;
}

.navbar .nav-link,
.web-header .nav-link {
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.navbar .nav-link:hover,
.web-header .nav-link:hover {
	background: var(--pos-shop-soft);
}

.pos-shop-page-title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--pos-shop-ink);
}

.pos-shop-toolbar {
	position: sticky;
	top: 58px;
	z-index: 5;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	padding: 0.6rem 0;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.pos-filter-toggle,
.pos-shop-toolbar .btn,
.pos-sort-wrapper select {
	min-height: 34px;
	border-radius: 8px;
	font-size: 0.85rem;
}

.pos-sort-wrapper {
	margin-inline-start: auto;
}

.pos-sort-wrapper select {
	width: auto;
	min-width: 150px;
	border: 1px solid var(--pos-shop-border);
	background-color: #fff;
}

.pos-shop-layout {
	row-gap: 0.75rem;
}

.pos-filter-column {
	padding-inline-end: 0.5rem;
}

.pos-filter-panel {
	position: sticky;
	top: 112px;
	max-height: calc(100vh - 124px);
	overflow: auto;
	padding: 0.85rem;
	border: 1px solid var(--pos-shop-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.pos-filter-header {
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--pos-shop-border);
}

.pos-filter-header .filters-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--pos-shop-ink);
}

.pos-filter-header .clear-filters {
	margin: 0;
	font-size: 0.8rem;
	color: var(--pos-shop-brand);
}

.pos-filter-panel .filter-options,
.pos-filter-panel .filter-lookup-wrapper,
.pos-filter-panel .filter-block,
.pos-filter-panel .website-filter {
	margin-bottom: 0.75rem;
}

.pos-filter-panel label,
.pos-filter-panel .filter-label,
.pos-filter-panel .filter-name {
	font-size: 0.82rem;
	color: var(--pos-shop-muted);
}

.pos-product-listing {
	padding-inline-start: 0.5rem;
}

.pos-product-listing .products-list,
.pos-product-listing .item-card-group,
.pos-product-listing .result,
.pos-product-listing .website-list {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.65rem;
	align-items: stretch;
	margin: 0;
}

.pos-product-listing .products-list > [class*="col-"],
.pos-product-listing .item-card-group > [class*="col-"],
.pos-product-listing .result > [class*="col-"] {
	width: auto !important;
	max-width: none !important;
	flex: initial !important;
	padding: 0 !important;
}

.pos-product-listing .card,
.pos-product-listing .item-card,
.pos-product-listing .product-card,
.pos-product-listing .website-list-item {
	position: relative;
	display: flex !important;
	flex-direction: column;
	min-height: 238px;
	height: 100%;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(229, 231, 235, 0.9) !important;
	border-radius: 8px !important;
	background: #fff;
	box-shadow: var(--pos-shop-shadow);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pos-product-listing .card:hover,
.pos-product-listing .item-card:hover,
.pos-product-listing .product-card:hover,
.pos-product-listing .website-list-item:hover {
	transform: translateY(-2px);
	border-color: rgba(15, 118, 110, 0.28) !important;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.pos-product-listing img,
.pos-product-listing .card-img-top,
.pos-product-listing .product-image img,
.pos-product-listing .item-card-image img,
.pos-product-listing .website-image img {
	width: 100% !important;
	height: 108px !important;
	max-height: 108px !important;
	object-fit: contain;
	padding: 0.55rem;
	background: var(--pos-shop-soft);
}

.pos-product-listing .card-body,
.pos-product-listing .item-card-body,
.pos-product-listing .product-details,
.pos-product-listing .website-list-item-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.55rem !important;
}

.pos-product-listing .item-card-title,
.pos-product-listing .product-title,
.pos-product-listing .card-title,
.pos-product-listing h5,
.pos-product-listing h6,
.pos-product-listing .item-name {
	display: -webkit-box;
	min-height: 2.4em;
	max-height: 2.4em;
	overflow: hidden;
	color: var(--pos-shop-ink);
	font-size: 0.86rem !important;
	font-weight: 700;
	line-height: 1.2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pos-product-listing .product-price,
.pos-product-listing .item-price,
.pos-product-listing .price,
.pos-product-listing .formatted-price {
	margin-top: auto;
	color: var(--pos-shop-brand-dark);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.1;
}

.pos-product-listing .discount,
.pos-product-listing .discount-badge,
.pos-product-listing .badge-danger,
.pos-product-listing .badge-success {
	position: absolute;
	top: 0.45rem;
	inset-inline-start: 0.45rem;
	z-index: 2;
	border-radius: 999px;
	padding: 0.18rem 0.45rem;
	background: var(--pos-shop-danger) !important;
	color: #fff !important;
	font-size: 0.68rem;
	font-weight: 700;
}

.pos-qty-control {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) 28px;
	gap: 0.25rem;
	align-items: center;
	margin-top: 0.15rem;
}

.pos-qty-btn,
.pos-qty-input {
	height: 30px;
	border: 1px solid var(--pos-shop-border);
	border-radius: 7px;
	background: #fff;
	color: var(--pos-shop-ink);
	font-size: 0.86rem;
	text-align: center;
}

.pos-qty-btn {
	padding: 0;
	font-weight: 800;
	line-height: 1;
}

.pos-qty-btn:hover {
	border-color: var(--pos-shop-brand);
	color: var(--pos-shop-brand);
}

.pos-qty-input {
	min-width: 0;
	padding: 0 0.25rem;
}

.pos-product-listing .btn-add-to-cart-list,
.pos-product-listing .add-to-cart-btn,
.pos-product-listing .btn-add-to-cart,
.pos-product-listing button[data-action="add-to-cart"] {
	width: 100%;
	min-height: 32px;
	margin-top: 0.35rem;
	border: 0;
	border-radius: 7px;
	background: var(--pos-shop-brand);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
}

.pos-product-listing .btn-add-to-cart-list:hover,
.pos-product-listing .add-to-cart-btn:hover,
.pos-product-listing .btn-add-to-cart:hover,
.pos-product-listing button[data-action="add-to-cart"]:hover {
	background: var(--pos-shop-brand-dark);
	color: #fff;
}

.pos-whatsapp-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.42);
}

.pos-whatsapp-modal.show {
	display: flex;
}

.pos-whatsapp-dialog {
	width: min(100%, 480px);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.pos-whatsapp-header,
.pos-whatsapp-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--pos-shop-border);
}

.pos-whatsapp-footer {
	border-top: 1px solid var(--pos-shop-border);
	border-bottom: 0;
}

.pos-whatsapp-body {
	display: grid;
	gap: 0.65rem;
	padding: 1rem;
}

.pos-whatsapp-body label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--pos-shop-muted);
}

.pos-whatsapp-body input,
.pos-whatsapp-body textarea {
	width: 100%;
	min-height: 38px;
	border: 1px solid var(--pos-shop-border);
	border-radius: 8px;
	padding: 0.45rem 0.6rem;
	font-size: 0.9rem;
}

.pos-whatsapp-body textarea {
	min-height: 78px;
	resize: vertical;
}

@media (max-width: 1199.98px) {
	.pos-product-listing .products-list,
	.pos-product-listing .item-card-group,
	.pos-product-listing .result,
	.pos-product-listing .website-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.pos-product-listing .products-list,
	.pos-product-listing .item-card-group,
	.pos-product-listing .result,
	.pos-product-listing .website-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.pos-shop-toolbar {
		top: 52px;
		flex-wrap: wrap;
	}

	.pos-filter-panel {
		position: static;
		max-height: none;
		margin-bottom: 0.75rem;
	}

	.pos-product-listing {
		padding-inline-start: 0;
	}

	.pos-product-listing .products-list,
	.pos-product-listing .item-card-group,
	.pos-product-listing .result,
	.pos-product-listing .website-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.pos-product-listing .card,
	.pos-product-listing .item-card,
	.pos-product-listing .product-card,
	.pos-product-listing .website-list-item {
		min-height: 220px;
	}

	.pos-product-listing img,
	.pos-product-listing .card-img-top,
	.pos-product-listing .product-image img,
	.pos-product-listing .item-card-image img,
	.pos-product-listing .website-image img {
		height: 92px !important;
		max-height: 92px !important;
	}
}

@media (max-width: 479.98px) {
	.pos-product-listing .products-list,
	.pos-product-listing .item-card-group,
	.pos-product-listing .result,
	.pos-product-listing .website-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pos-shop-page-title {
		font-size: 1.1rem;
	}
}