/* Homepage product card text layout */
.np-product-card .np-product-card__body {
	padding: 15px 0 0;
	text-align: left;
}

.np-product-card .np-product-card__title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

.np-product-card .np-product-card__title a {
	color: var(--np-text);
}

.np-product-card .np-product-card__home-prices {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	margin-top: 2px;
}

.np-product-card .np-product-card__home-price {
	display: flex;
	align-items: baseline;
	gap: 7px;
	max-width: 100%;
	color: var(--np-text-mute);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: .01em;
	white-space: nowrap;
}

.np-product-card .np-product-card__home-price strong {
	color: var(--np-accent);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
}

@media (max-width: 700px) {
	.np-product-card .np-product-card__body { padding-top: 13px; }
	.np-product-card .np-product-card__title { margin-bottom: 9px; font-size: 15px; }
	.np-product-card .np-product-card__home-price { gap: 6px; font-size: 11px; }
	.np-product-card .np-product-card__home-price strong { font-size: 12px; }
}

/* Homepage latest post cards linking into shop sections */
.np-shop-journal {
	--np-shop-journal-accent: #ff2b7a;
	--np-shop-journal-shadow: 0 24px 62px rgba(17, 17, 17, .2);
	position: relative;
	overflow: hidden;
	padding: clamp(78px, 8vw, 112px) 0 clamp(86px, 8vw, 118px);
	background: linear-gradient(180deg, #fff 0%, #fff7fa 42%, #f7f2ef 100%);
	border-top: 1px solid rgba(17, 17, 17, .08);
	border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.np-shop-journal::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 148px;
	background: linear-gradient(180deg, rgba(255, 43, 122, .08), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.np-shop-journal .np-container {
	position: relative;
	z-index: 1;
}

.np-shop-journal__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: clamp(40px, 5vw, 58px);
	text-align: center;
}

.np-shop-journal__head .np-section__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
	color: var(--np-shop-journal-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .34em;
	line-height: 1;
}

.np-shop-journal__head .np-section__eyebrow::before,
.np-shop-journal__head .np-section__eyebrow::after {
	content: "";
	display: block;
	width: 52px;
	height: 1px;
	background: currentColor;
}

.np-shop-journal__head .np-section__title {
	position: relative;
	margin: 0;
	color: #151013;
	font-size: clamp(42px, 5.4vw, 68px);
	font-style: italic;
	font-weight: 500;
	line-height: .95;
	letter-spacing: 0;
}

.np-shop-journal__head .np-section__title::after {
	content: "";
	display: block;
	width: 84px;
	height: 2px;
	margin: 18px auto 0;
	background: linear-gradient(90deg, transparent 0%, var(--np-shop-journal-accent) 18%, var(--np-shop-journal-accent) 82%, transparent 100%);
}

.np-shop-journal__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2vw, 30px);
	align-items: stretch;
}

.np-shop-journal-card {
	min-width: 0;
	list-style: none;
}

.np-shop-journal-card__link {
	position: relative;
	display: block;
	width: 100%;
	min-height: 0;
	aspect-ratio: 3 / 4;
	border-radius: 8px;
	border: 1px solid rgba(17, 17, 17, .12);
	overflow: hidden;
	background: #151111;
	color: #fff;
	box-shadow: 0 18px 42px rgba(17, 17, 17, .12), 0 2px 0 rgba(255, 255, 255, .7) inset;
	isolation: isolate;
	transition: transform .38s var(--np-ease), box-shadow .38s var(--np-ease), border-color .38s var(--np-ease);
}

.np-shop-journal-card__link::before {
	content: "";
	position: absolute;
	inset: 10px;
	z-index: 3;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s var(--np-ease), inset .35s var(--np-ease);
}

.np-shop-journal-card__link:hover,
.np-shop-journal-card__link:focus-visible {
	color: #fff;
	transform: translateY(-8px);
	border-color: rgba(255, 43, 122, .32);
	box-shadow: var(--np-shop-journal-shadow);
}

.np-shop-journal-card__link:hover::before,
.np-shop-journal-card__link:focus-visible::before {
	inset: 12px;
	opacity: 1;
}

.np-shop-journal-card__media,
.np-shop-journal-card__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.np-shop-journal-card__media {
	overflow: hidden;
}

.np-shop-journal-card__media img {
	--np-shop-card-img-x: 0px;
	--np-shop-card-img-y: 0px;
	--np-shop-card-img-scale: 1;
	--np-shop-card-img-hover-scale: 1;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover !important;
	object-position: center center;
	transform: translate3d(var(--np-shop-card-img-x), var(--np-shop-card-img-y), 0) scale(var(--np-shop-card-img-scale));
	transform-origin: center center;
	transition: transform .9s var(--np-ease), filter .45s var(--np-ease);
}

.np-shop-journal-card--design-day .np-shop-journal-card__media img,
.np-shop-journal-card--sale-section .np-shop-journal-card__media img {
	--np-shop-card-img-x: 0px;
	--np-shop-card-img-scale: 1;
	--np-shop-card-img-hover-scale: 1;
}

.np-shop-journal-card--festive-section .np-shop-journal-card__media img {
	--np-shop-card-img-x: 0px;
	--np-shop-card-img-scale: 1;
	--np-shop-card-img-hover-scale: 1;
}

.np-shop-journal-card--fashion-tips .np-shop-journal-card__media img {
	--np-shop-card-img-x: 34px;
	--np-shop-card-img-scale: 1.36;
	--np-shop-card-img-hover-scale: 1.4;
}

.np-shop-journal-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(12, 10, 10, .06) 0%, rgba(12, 10, 10, .28) 44%, rgba(12, 10, 10, .88) 100%);
	pointer-events: none;
}

.np-shop-journal-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 28px 28px 28px 40px;
}

.np-shop-journal-card__meta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	max-width: 100%;
	color: var(--np-shop-journal-accent);
	font-family: var(--np-font-body);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .22em;
	text-transform: uppercase;
	word-break: break-word;
}

.np-shop-journal-card__meta::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 1px;
	background: currentColor;
	flex: 0 0 auto;
}

.np-shop-journal-card__title {
	display: block;
	max-width: 100%;
	color: #fff;
	font-family: var(--np-font-display);
	font-size: 28px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0;
	word-break: break-word;
}

.np-shop-journal-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 100%;
	margin-top: 8px;
	padding: 12px 18px;
	background: var(--np-shop-journal-accent);
	color: #fff;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, .24);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	box-shadow: 0 12px 30px rgba(255, 43, 122, .28);
	transition: background .28s var(--np-ease), transform .28s var(--np-ease), box-shadow .28s var(--np-ease);
}

.np-shop-journal-card__cta .np-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	transition: transform .28s var(--np-ease);
}

.np-shop-journal-card__link:hover .np-shop-journal-card__media img,
.np-shop-journal-card__link:focus-visible .np-shop-journal-card__media img {
	transform: translate3d(var(--np-shop-card-img-x), var(--np-shop-card-img-y), 0) scale(var(--np-shop-card-img-hover-scale));
	filter: saturate(1.05) contrast(1.03);
}

.np-shop-journal-card__link:hover .np-shop-journal-card__cta,
.np-shop-journal-card__link:focus-visible .np-shop-journal-card__cta {
	background: #111;
	box-shadow: 0 12px 26px rgba(17, 17, 17, .22);
	transform: translateY(-2px);
}

.np-shop-journal-card__link:hover .np-shop-journal-card__cta .np-icon,
.np-shop-journal-card__link:focus-visible .np-shop-journal-card__cta .np-icon {
	transform: translateX(4px);
}

@media (max-width: 1120px) {
	.np-shop-journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.np-shop-journal-card__link { min-height: 0; }
}

@media (max-width: 700px) {
	.np-shop-journal { padding-top: 64px; padding-bottom: 72px; }
	.np-shop-journal__head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 26px; }
	.np-shop-journal__head .np-section__eyebrow { gap: 10px; font-size: 9px; letter-spacing: .24em; }
	.np-shop-journal__head .np-section__eyebrow::before,
	.np-shop-journal__head .np-section__eyebrow::after { width: 30px; }
	.np-shop-journal__head .np-section__title { font-size: clamp(36px, 12vw, 48px); text-align: left; }
	.np-shop-journal__head .np-section__title::after { margin-left: 0; }
	.np-shop-journal__grid { grid-template-columns: 1fr; gap: 18px; }
	.np-shop-journal-card__link { min-height: 0; }
	.np-shop-journal-card__content { padding: 24px 24px 24px 36px; }
	.np-shop-journal-card__title { font-size: 25px; }
	.np-shop-journal-card__cta { width: 100%; padding: 13px 16px; }
}

@media (max-width: 420px) {
	.np-shop-journal-card__link { min-height: 0; }
	.np-shop-journal-card__content { padding: 20px 20px 20px 34px; }
	.np-shop-journal-card__meta { font-size: 9px; letter-spacing: .16em; }
	.np-shop-journal-card__meta::before { width: 20px; }
	.np-shop-journal-card__title { font-size: 23px; }
	.np-shop-journal-card__cta { font-size: 10px; letter-spacing: .18em; }
}
