/* ═══════════════════════════════════════════════════════════
   marketplace.css — Marketplace page styles
   Inherits: template.css (variables, buttons, nav, footer)
   ═══════════════════════════════════════════════════════════ */

body {
	background: var(--cream);
}

/* ── Hero Section ── */
.mp-hero {
	text-align: center;
	padding: 120px 80px 60px;
}

.mp-hero .ap-eyebrow {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--orange);
	font-weight: 500;
	margin: 0;
}

.mp-hero-title {
	font-size: 72px;
	line-height: 1.05;
	margin-top: 24px;
	font-weight: 400;
	letter-spacing: -0.03em;
}

.mp-hero-desc {
	font-size: 20px;
	line-height: 1.6;
	margin-top: 24px;
	color: var(--dark);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Content Section ── */
.mp-content {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 80px 120px;
}

/* ── Filters ── */
.mp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.tag input {
	position: fixed;
	top: -999px;
}

.tag input + label {
	background: var(--white);
	color: #555;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 100px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: normal;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tag input + label:hover {
	border-color: rgba(38, 136, 191, 0.5);
	color: #222;
	background: rgba(38, 136, 191, 0.06);
}

.tag input:checked + label {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
	font-weight: 500;
}

/* ── Featured Cards (first 2 items) ── */
.mp-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 48px;
}

.mp-featured-card {
	display: flex;
	align-items: center;
	gap: 24px;
	background: var(--navy-deep);
	border-radius: 20px;
	padding: 36px 32px;
	text-decoration: none;
	color: var(--white);
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mp-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(7, 76, 103, 0.3);
	color: var(--white);
	text-decoration: none;
}

.mp-featured-card:nth-child(2) {
	background: linear-gradient(135deg, var(--blue) 0%, var(--navy-deep) 100%);
}

.mp-featured-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: var(--orange);
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 100px;
	letter-spacing: 0.02em;
}

.mp-featured-icon {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.mp-featured-icon img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
}

.mp-featured-body h3 {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--white);
}

.mp-featured-body p {
	font-size: 14px;
	margin: 0;
	opacity: 0.75;
	line-height: 1.5;
}

.mp-featured-arrow {
	position: absolute;
	bottom: 20px;
	left: 24px;
	opacity: 0;
	transform: translateX(8px) scaleX(-1);
	transition: all 0.3s ease;
}

.mp-featured-card:hover .mp-featured-arrow {
	opacity: 1;
	transform: translateX(0) scaleX(-1);
}

/* ── Regular Grid Cards ── */
.mp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.mp-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px 24px;
	text-decoration: none;
	color: var(--dark);
	transition: all 0.3s ease;
	position: relative;
}

.mp-card:hover {
	border-color: rgba(38, 136, 191, 0.4);
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(38, 136, 191, 0.12);
	text-decoration: none;
}

.mp-card-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--cream);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	margin-bottom: 20px;
}

.mp-card-icon img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
}

.mp-card-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--navy);
	margin: 0 0 8px;
}

.mp-card-desc {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
	margin: 0;
	flex: 1;
}

.mp-card-link {
	display: inline-block;
	margin-top: 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--blue);
	opacity: 0;
	transform: translateX(4px);
	transition: all 0.3s ease;
}

.mp-card:hover .mp-card-link {
	opacity: 1;
	transform: translateX(0);
}

/* ── Counter ── */
.mp-counter {
	text-align: center;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	font-size: 15px;
	color: var(--muted);
}

.mp-counter-num {
	font-size: 28px;
	font-weight: 500;
	color: var(--navy);
	margin-left: 4px;
}

/* ── Buttons ── */
.btn-live-more {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
	border-radius: 3rem;
	padding: 12px 28px;
}

.btn-live-more:hover,
.btn-live-more:focus {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}

.btn-live-test {
	border-radius: 3rem;
}

/* ── Item Page — Screenshot Frame ── */
.imac-frame {
	position: relative;
	width: 600px;
	height: 600px;
	float: left;
	margin-top: -110px;
}

.imac-frame .bg {
	position: absolute;
	top: 71px;
	left: -50px;
	width: 754px;
	height: 324px;
	object-fit: cover;
	transform: perspective(1760px) rotateX(8deg) rotateY(50deg) rotateZ(-5deg);
	background-size: cover;
}

.imac-frame .screen {
	position: absolute;
	width: 100%;
	height: 100%;
	background: url(images/marketplace/img-otiyot.png?v=2) no-repeat center center;
	background-size: contain;
}

@media (max-width: 991px) {
	.imac-frame {
		width: 300px;
		height: 300px;
		float: none;
		margin: 0 auto 24px;
	}

	.imac-frame .bg {
		top: 34px;
		left: -52px;
		width: 427px;
		height: 164px;
		transform: perspective(1150px) rotateX(8deg) rotateY(55deg) rotateZ(-5deg);
	}
}

/* ── Gallery ── */
.gallery-slick {
	padding: 0 30px;
}

.gallery-slick a {
	display: block;
	margin: 30px 15px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--line);
	overflow: hidden;
	transition: all 0.3s ease;
}

.gallery-slick a:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

@media (min-width: 992px) {
	.gallery-slick {
		margin: 0 -40px;
	}
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.mp-hero {
		padding: 100px 40px 48px;
	}
	.mp-hero-title {
		font-size: 52px;
	}
	.mp-content {
		padding: 0 40px 80px;
	}
	.mp-featured {
		grid-template-columns: 1fr;
	}
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
	.mp-hero {
		padding: 80px 20px 40px;
	}
	.mp-hero-title {
		font-size: 34px;
		margin-top: 16px;
	}
	.mp-hero-desc {
		font-size: 16px;
	}
	.mp-content {
		padding: 0 20px 60px;
	}
	.mp-filters {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 16px;
		margin-bottom: 32px;
		-webkit-overflow-scrolling: touch;
	}
	.mp-filters .tag,
	.mp-filters .tag label {
		white-space: nowrap;
	}
	.mp-featured-card {
		padding: 24px 20px;
	}
	.mp-featured-body h3 {
		font-size: 18px;
	}
	.mp-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.mp-card {
		padding: 20px 16px;
	}
	.mp-card-icon {
		width: 44px;
		height: 44px;
		margin-bottom: 14px;
	}
	.mp-card-title {
		font-size: 15px;
	}
	.mp-card-link {
		opacity: 1;
		transform: none;
	}
}