/* =========================================================
   ShoesX Blog — Archive + Single Post styles
   Uses existing Porto CSS custom properties for brand consistency:
   --porto-dark-color / --porto-light-color / --porto-primary-color
   ========================================================= */

/* ---------- Shared ---------- */
.shoesx-blog-archive,
.shoesx-post-content,
.shoesx-related-posts {
	font-family: Lexend, sans-serif;
}
.shoesx-post-content{
	max-width: 770px;
	margin: auto;
}


body.single-post .page-top {
	display: none;
}


body.single-post .porto-block[data-id="2858"] {
	display: none;
}
body.single-post #main{
	position: relative;
}
body.single-post #main::before{
	content: "";
	display: table;
	clear: both;
}
body.single-post .post-image.single {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

body.single-post .post-image.single .post-slideshow,
body.single-post .post-image.single .owl-stage-outer,
body.single-post .post-image.single .owl-stage,
body.single-post .post-image.single .owl-item,
body.single-post .post-image.single .img-thumbnail,
body.single-post .post-image.single img {
	width: 100% !important;
}

body.single-post .post-image.single img {
	height: 480px;
	object-fit: cover;
}

@media (max-width: 767px) {
	body.single-post .post-image.single img {
		height: 260px;
	}
}

/* Prevents the full-bleed trick above from causing horizontal scroll */
body.single-post {
	overflow-x: hidden;
}

/* =========================================================
   1. BLOG ARCHIVE
   ========================================================= */
.shoesx-blog-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.shoesx-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.shoesx-filter-btn {
	background: #f7f7f7;
	border: none;
	border-radius: 30px;
	padding: 8px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--porto-dark-color, #000);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.shoesx-filter-btn:hover {
	background: #ececec;
}

.shoesx-filter-btn.active {
	background: var(--porto-dark-color, #000);
	color: var(--porto-light-color, #fff);
}

.shoesx-blog-search {
	position: relative;
	min-width: 240px;
}

.shoesx-blog-search input {
	width: 100%;
	border: 1px solid #e0e0e0;
	border-radius: 30px;
	padding: 8px 40px 8px 16px;
	font-size: 0.875rem;
}

.shoesx-blog-search i {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
}

.shoesx-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	transition: opacity 0.2s ease;
}

.shoesx-blog-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

@media (max-width: 991px) {
	.shoesx-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.shoesx-blog-grid {
		grid-template-columns: 1fr;
	}
}

.shoesx-blog-nothing {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 0;
	color: #777;
}

/* ---------- Card ---------- */
.shoesx-blog-card {
	display: flex;
	flex-direction: column;
}

.shoesx-blog-card-img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 15px;
	background: #f2f2f2;
}

.shoesx-blog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.shoesx-blog-card-img:hover img {
	transform: scale(1.04);
}

.shoesx-blog-card-badge {
	position: absolute;
	top: 13px;
	right: 11px;
	background: #f7f7f7;
	color: var(--porto-dark-color, #000);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 4px;
}

.shoesx-blog-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--porto-dark-color, #000);
}

.shoesx-blog-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #666;
	margin: 0 0 14px;
}

.shoesx-blog-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	font-size: 0.8rem;
}

.shoesx-blog-card-link {
	font-weight: 600;
	color: var(--porto-dark-color, #000);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shoesx-blog-card-date {
	color: #999;
}

/* ---------- Pagination ---------- */
.shoesx-blog-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.shoesx-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	color: var(--porto-dark-color, #000);
	font-size: 0.875rem;
}

.shoesx-blog-pagination .page-numbers.current {
	background: var(--porto-dark-color, #000);
	color: var(--porto-light-color, #fff);
	border-color: var(--porto-dark-color, #000);
}

/* =========================================================
   2. SINGLE POST
   ========================================================= */

.shoesx-post-meta-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 24px 0 16px;
	font-size: 0.85rem;
	color: #777;
}

.shoesx-post-badge {
	background: #f7f7f7;
	color: var(--porto-dark-color, #000);
	font-weight: 600;
	font-size: 0.75rem;
	padding: 6px 14px;
	border-radius: 4px;
}

.shoesx-post-date,
.shoesx-post-readtime {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shoesx-post-title {
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 24px;
	color: var(--porto-dark-color, #000);
}

.shoesx-post-body {
	font-size: 1rem;
	line-height: 1.8;
	color: #333;
}

.shoesx-post-body h2,
.shoesx-post-body h3 {
	font-family: Lexend, sans-serif;
	font-weight: 600;
	margin: 32px 0 14px;
}

.shoesx-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	font-weight: 600;
	color: var(--porto-dark-color, #000);
}

/* ---------- Related posts ---------- */
.shoesx-related-posts {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

.shoesx-related-title {
	font-size: 1.375rem;
	font-weight: 600;
	margin-bottom: 24px;
}

.shoesx-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 991px) {
	.shoesx-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.shoesx-related-grid {
		grid-template-columns: 1fr;
	}
}

.shoesx-related-card {
	display: flex;
	flex-direction: column;
}

.shoesx-related-card-img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #f2f2f2;
}

.shoesx-related-card-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	max-height: 100%;
}
.shoesx-related-card-badge {
	position: absolute;
	top: 12px;
	right: 10px;
	background: #f7f7f7;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 4px;
	color: var(--porto-dark-color, #000);
}

.shoesx-related-card-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--porto-dark-color, #000);
	display: block;
	margin-bottom: 10px;
}

.shoesx-related-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.78rem;
	margin-top: auto;
}

.shoesx-related-card-link {
	font-weight: 600;
	color: var(--porto-dark-color, #000);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shoesx-related-card-date {
	color: #999;
}

/* ---------- RTL is default (site is he_IL); LTR fallback ---------- */
html[dir="ltr"] .shoesx-blog-card-badge,
html[dir="ltr"] .shoesx-related-card-badge {
	right: auto;
	left: 11px;
}

html[dir="ltr"] .shoesx-blog-search i {
	right: auto;
	left: 16px;
}

html[dir="ltr"] .shoesx-blog-search input {
	padding: 8px 16px 8px 40px;
}
