:root {
	--smgr-primary: #2271b1;
	--smgr-secondary: #1d2327;
}

.smgr-wrap { direction: rtl; text-align: right; font-family: inherit; }
.smgr-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.smgr-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--smgr-primary);
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border: none;
	cursor: pointer;
	transition: opacity .15s ease, transform .15s ease;
}
.smgr-btn:hover { opacity: .9; transform: translateY(-1px); }
.smgr-btn-sm { padding: 7px 14px; font-size: 13px; }
.smgr-btn-block { display: block; text-align: center; width: 100%; box-sizing: border-box; }
.smgr-btn-disabled { background: #999; cursor: not-allowed; }

/* ---------- Badges ---------- */
.smgr-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--smgr-secondary);
}
.smgr-badge-new { background: #2271b1; }
.smgr-badge-popular { background: #d63638; }
.smgr-badge-featured { background: #b26200; }
.smgr-badge-coming_soon { background: #6b6b6b; }

/* ---------- Archive header ---------- */
.smgr-archive-header { text-align: center; padding: 40px 0 20px; }
.smgr-archive-title { font-size: 32px; font-weight: 800; margin: 0; }

.smgr-old-price { text-decoration: line-through; color: #aaa; font-size: 12px; font-weight: 400; margin-inline-end: 4px; }
.smgr-price-label { font-size: 12px; font-weight: 400; color: #888; display: block; margin-bottom: 2px; }
.smgr-current-price { display: block; }

.smgr-card-badges {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* ---------- Category nav ---------- */
.smgr-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding-bottom: 30px;
}
.smgr-cat-pill {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 12px;
	background: #f5f6f7;
	color: var(--smgr-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #ececec;
	transition: all .15s ease;
}
.smgr-cat-pill:hover { background: #eaeaea; }
.smgr-cat-pill.active { background: var(--smgr-primary); color: #fff; border-color: var(--smgr-primary); }

/* ---------- Row cards (list style) ---------- */
.smgr-cards-grid {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 0 0 50px;
}

.smgr-row-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
	display: flex;
	align-items: stretch;
	gap: 26px;
	padding: 24px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.smgr-row-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.08); transform: translateY(-2px); }

.smgr-row-main { flex: 1; min-width: 0; }
.smgr-row-title {
	margin: 0 0 10px;
	font-size: 19px;
	padding-inline-start: 12px;
	border-inline-start: 3px solid var(--smgr-primary);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.smgr-row-title a { color: var(--smgr-secondary); text-decoration: none; }
.smgr-row-badges { display: inline-flex; gap: 6px; }
.smgr-row-desc { color: #666; font-size: 14px; line-height: 1.8; margin: 0 0 14px; }

.smgr-row-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.smgr-tag {
	background: #f3f5f4;
	color: #3a3a3a;
	font-size: 12.5px;
	padding: 6px 12px;
	border-radius: 8px;
	white-space: nowrap;
}

.smgr-row-side {
	flex: 0 0 240px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
	border-inline-start: 1px solid #f0f0f0;
	padding-inline-start: 22px;
}
.smgr-row-price { font-size: 20px; font-weight: 800; color: var(--smgr-secondary); text-align: center; }

.smgr-row-meta-boxes { display: flex; gap: 8px; }
.smgr-meta-box {
	flex: 1;
	background: #f8f9f8;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 8px 6px;
	text-align: center;
}
.smgr-meta-box-label { display: block; font-size: 11px; color: #888; margin-bottom: 4px; }
.smgr-meta-box-value { display: block; font-size: 13px; font-weight: 700; color: var(--smgr-secondary); }

@media (max-width: 782px) {
	.smgr-row-card { flex-direction: column; }
	.smgr-row-side { border-inline-start: none; border-top: 1px solid #f0f0f0; padding-inline-start: 0; padding-top: 18px; flex: none; }
}

/* ---------- Pagination ---------- */
.smgr-pagination { text-align: center; padding-bottom: 40px; }
.smgr-pagination a, .smgr-pagination span {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border-radius: 6px;
	background: #f3f3f3;
	color: var(--smgr-secondary);
	text-decoration: none;
}
.smgr-pagination .current { background: var(--smgr-primary); color: #fff; }

.smgr-no-results { text-align: center; padding: 60px 0; color: #888; }

/* ---------- Single service ---------- */
.smgr-hero { background: #fafafa; padding: 40px 0; }
.smgr-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 782px) { .smgr-hero-inner { grid-template-columns: 1fr; } }
.smgr-hero-image { position: relative; }
.smgr-hero-image img { width: 100%; border-radius: 16px; display: block; }
.smgr-hero-title { font-size: 30px; font-weight: 800; margin: 0 0 14px; }
.smgr-hero-desc { font-size: 16px; color: #555; line-height: 1.8; }

.smgr-single-body { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 40px 0; align-items: start; }
@media (max-width: 900px) { .smgr-single-body { grid-template-columns: 1fr; } }

.smgr-single-content { line-height: 1.9; font-size: 16px; }
.smgr-single-content h2, .smgr-single-features h2, .smgr-single-gallery h2, .smgr-related h2 { font-size: 20px; margin: 30px 0 14px; }

.smgr-features-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .smgr-features-list { grid-template-columns: 1fr; } }
.smgr-features-list li { background: #f6f8f7; padding: 10px 14px; border-radius: 8px; font-size: 14px; }

.smgr-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .smgr-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.smgr-gallery-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }

.smgr-single-sidebar { position: relative; }
.smgr-sticky-box {
	position: sticky;
	top: 20px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.smgr-price-box { font-size: 24px; font-weight: 800; color: var(--smgr-secondary); margin-bottom: 16px; }
.smgr-info-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: #444; }
.smgr-info-list li { margin-bottom: 8px; }

.smgr-contact-box { margin-top: 18px; border-top: 1px solid #f0f0f0; padding-top: 16px; }
.smgr-contact-title { font-weight: 700; font-size: 13px; margin: 0 0 10px; color: #888; }
.smgr-contact-link { display: block; margin-bottom: 8px; color: var(--smgr-secondary); text-decoration: none; font-size: 14px; }
.smgr-contact-link:hover { color: var(--smgr-primary); }

.smgr-related { padding-bottom: 50px; }

/* ================================================
   Shortcode / Elementor widget blocks
   ================================================ */

.smgr-shortcode-wrap { padding: 10px 0; }
.smgr-block-title { font-size: 26px; font-weight: 800; margin: 0 0 22px; text-align: center; }

/* ---------- Category icon strip ---------- */
.smgr-cat-strip-wrap { padding: 6px 0 26px; }
.smgr-cat-strip { position: relative; display: flex; align-items: center; gap: 6px; }

.smgr-cat-icon-row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 6px 2px;
	flex: 1;
	scrollbar-width: none;
}
.smgr-cat-icon-row::-webkit-scrollbar { display: none; }

.smgr-cat-icon-card {
	flex: 0 0 auto;
	width: calc((100% / var(--smgr-cat-cols, 5)) - 14px);
	min-width: 128px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 22px 14px;
	text-decoration: none;
	color: var(--smgr-secondary);
	cursor: pointer;
	font: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease, color .15s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.smgr-cat-icon-card:hover { border-color: var(--smgr-primary); box-shadow: 0 8px 18px rgba(0,0,0,.07); transform: translateY(-2px); }
.smgr-cat-icon-card.active { background: var(--smgr-primary); border-color: var(--smgr-primary); color: #fff; }
.smgr-cat-icon-card.active .smgr-cat-icon,
.smgr-cat-icon-card.active .smgr-cat-icon.dashicons,
.smgr-cat-icon-card.active .smgr-cat-icon-emoji { color: #fff; }

.smgr-cat-icon {
	font-size: 26px;
	width: 30px;
	height: 30px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--smgr-primary);
}
.smgr-cat-icon-emoji { font-size: 28px; }
.smgr-cat-label { font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; }

.smgr-cat-strip-nav {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #ececec;
	background: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--smgr-secondary);
	transition: background .15s ease;
}
.smgr-cat-strip-nav:hover { background: #f5f6f7; }

@media (max-width: 600px) {
	.smgr-cat-icon-card { min-width: 108px; padding: 16px 10px; }
	.smgr-cat-strip-nav { display: none; }
}

/* ---------- Grid layout card (layout="grid") ---------- */
.smgr-grid { display: grid; gap: 20px; padding-bottom: 10px; }
.smgr-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.smgr-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.smgr-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .smgr-grid-cols-3, .smgr-grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .smgr-grid-cols-2, .smgr-grid-cols-3, .smgr-grid-cols-4 { grid-template-columns: 1fr; } }

.smgr-grid-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	transition: box-shadow .2s ease, transform .2s ease;
}
.smgr-grid-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.08); transform: translateY(-2px); }
.smgr-grid-card-title { margin: 0; font-size: 17px; padding-inline-start: 12px; border-inline-start: 3px solid var(--smgr-primary); }
.smgr-grid-card-title a { color: var(--smgr-secondary); text-decoration: none; }
.smgr-grid-card-desc { color: #666; font-size: 13.5px; line-height: 1.8; margin: 0; flex: 1; }
.smgr-grid-card-footer { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
