/* ===== Jobtown Storefront ===== */
/* Change these to match your brand */
:root {
	--jt-accent: #c8102e;        /* main brand color (buttons, highlight text) */
	--jt-accent-dark: #9e0c24;
	--jt-accent-soft: #fdecef;   /* light tint used in pills and hero bg */
	--jt-ink: #16161d;
	--jt-muted: #5b5b66;
	--jt-line: #e6e6ec;
	--jt-card: #ffffff;
	--jt-radius: 14px;
	--jt-font: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.jt-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.jt-hero, .jt-products, .jt-topbar { font-family: var(--jt-font); color: var(--jt-ink); }
.jt-hero *, .jt-products * { box-sizing: border-box; }

/* Promo bar */
.jt-topbar {
	background: linear-gradient(90deg, var(--jt-accent), #ff7a1a);
	color: #fff; text-align: center; font-size: 13px; font-weight: 600;
	padding: 8px 16px;
}

/* Hero */
.jt-hero {
	background: linear-gradient(120deg, #f6f6f8 0%, var(--jt-accent-soft) 100%);
	padding: 56px 0;
}
.jt-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.jt-pill {
	display: inline-block; font-size: 12px; font-weight: 600; color: var(--jt-accent);
	background: var(--jt-accent-soft); border: 1px solid color-mix(in srgb, var(--jt-accent) 30%, transparent);
	padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.jt-hero__title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.jt-hero__title span { color: var(--jt-accent); }
.jt-hero__text { font-size: 17px; line-height: 1.6; color: var(--jt-muted); margin: 0 0 8px; max-width: 520px; }
.jt-hero__text a { color: var(--jt-accent); text-decoration: none; }
.jt-hero__note { font-size: 13px; color: var(--jt-muted); margin: 0 0 24px; }
.jt-hero__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.jt-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 8px;
	font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, transform .15s;
}
.jt-btn--primary { background: var(--jt-accent); color: #fff; }
.jt-btn--primary:hover { background: var(--jt-accent-dark); color: #fff; transform: translateY(-1px); }
.jt-btn--ghost { background: #fff; color: var(--jt-ink); border: 1px solid var(--jt-line); }
.jt-btn--ghost:hover { border-color: var(--jt-ink); color: var(--jt-ink); }
.jt-rating { font-size: 13px; color: var(--jt-muted); }
.jt-stars { color: #f5a623; letter-spacing: 2px; margin-right: 6px; }

/* Hero slider */
.jt-slider__frame {
	position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--jt-radius);
	padding: 12px; box-shadow: 0 20px 50px rgba(20, 20, 40, .12); overflow: hidden;
}
.jt-slide {
	position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px);
	object-fit: cover; border-radius: 8px; opacity: 0; transition: opacity .6s ease;
}
.jt-slide.is-active { opacity: 1; }
.jt-slider__nav { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.jt-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: #cfcfd8; cursor: pointer; transition: width .2s, background .2s; }
.jt-dot.is-active { width: 22px; background: var(--jt-accent); }
.jt-pause { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--jt-line); background: #fff; font-size: 9px; color: var(--jt-muted); cursor: pointer; margin-left: 6px; padding: 0; }

/* Product cards */
.jt-products { padding: 40px 0 56px; background: #fff; }
.jt-cards {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4);
	gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.jt-cards::-webkit-scrollbar { display: none; }
.jt-card {
	scroll-snap-align: start; display: flex; flex-direction: column; background: var(--jt-card);
	border: 1px solid var(--jt-line); border-radius: var(--jt-radius); overflow: hidden;
	text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s;
}
.jt-card:hover { box-shadow: 0 12px 30px rgba(20, 20, 40, .10); transform: translateY(-2px); }
.jt-card__img { position: relative; aspect-ratio: 1 / 1; background: #f3f3f6; padding: 14px; }
.jt-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.jt-card__badge {
	position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--jt-ink); color: #fff;
	font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	padding: 4px 9px; border-radius: 999px;
}
.jt-card:first-child .jt-card__badge { background: #ff7a1a; }
.jt-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.jt-card__title { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--jt-ink); }
.jt-card__desc { font-size: 14px; line-height: 1.5; color: var(--jt-muted); margin: 0 0 16px; flex: 1; }
.jt-card__foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--jt-line); padding-top: 12px; }
.jt-card__price { font-weight: 700; color: var(--jt-accent); font-size: 15px; display: flex; flex-direction: column; }
.jt-card__price del { font-weight: 400; color: var(--jt-muted); font-size: 11px; }
.jt-card__price .woocommerce-Price-amount { color: inherit; }
.jt-card__cta { font-size: 12px; color: var(--jt-muted); }
.jt-card:hover .jt-card__cta { color: var(--jt-accent); }

.jt-cards__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.jt-cards__arrows { display: flex; gap: 8px; }
.jt-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--jt-line); background: #fff; cursor: pointer; font-size: 15px; color: var(--jt-ink); padding: 0; }
.jt-arrow:hover { border-color: var(--jt-ink); }
.jt-viewall { color: var(--jt-accent); font-weight: 600; font-size: 14px; text-decoration: none; }

/* Tablet */
@media (max-width: 960px) {
	.jt-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.jt-hero__media { max-width: 440px; }
	.jt-cards { grid-auto-columns: calc((100% - 16px) / 2); }
}
/* Phone */
@media (max-width: 600px) {
	.jt-hero { padding: 36px 0; }
	.jt-cards { grid-auto-columns: 82%; }
	.jt-btn { flex: 1; justify-content: center; }
}

/* Section heading + fit mode when 4 or fewer cards */
.jt-products__heading { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 20px; color: var(--jt-ink); }
@media (min-width: 961px) {
	.jt-products--fit .jt-cards__arrows { visibility: hidden; }
}
/* Salient theme resets */
.jt-hero h1.jt-hero__title, .jt-products h2, .jt-products h3 { font-family: var(--jt-font) !important; }
.jt-hero a.jt-btn { line-height: 1.2; }
.jt-hero p, .jt-products p { padding-bottom: 0 !important; }
.jt-hero__text { margin-bottom: 10px !important; }
.jt-card__desc { margin-bottom: 16px !important; }
.jt-card__img:not(:has(img))::after { content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--jt-muted); }
