/* LilVastr Commerce frontend: announcement, slide cart, quick view, auth, forms. */

/* ---------- Announcement bar (soft pink per design) ---------- */
.lv-announcement {
	background: var(--lv-secondary, #ffe9e6);
	color: var(--lv-text, #141414);
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	padding-block: 10px;
	letter-spacing: .01em;
}
.lv-announcement a { color: inherit; text-decoration: underline; }

/* ---------- Slide cart ---------- */
.lv-slide-cart {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 92vw);
	background: var(--lv-bg, #fff);
	z-index: 130;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.4, 0, .2, 1);
	box-shadow: -16px 0 48px rgb(15 18 25 / .12);
}
.lv-slide-cart.is-open { transform: translateX(0); }
.lv-slide-cart[hidden] { display: flex; visibility: hidden; }
.lv-slide-cart.is-open[hidden] { visibility: visible; }

.lv-slide-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--lv-border, #e5e7eb);
}
.lv-slide-cart__head h2 { font-size: 18px; margin: 0; }
.lv-slide-cart__head button { background: none; border: 0; cursor: pointer; padding: 6px; }

.lv-slide-cart__body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.lv-slide-cart__items { list-style: none; display: grid; }
.lv-slide-cart__item {
	display: flex;
	gap: 14px;
	padding-block: 16px;
	border-bottom: 1px solid var(--lv-border, #e5e7eb);
	position: relative;
}
.lv-slide-cart__item.is-busy { opacity: .5; pointer-events: none; }
.lv-slide-cart__thumb img { width: 72px; height: 86px; object-fit: cover; border-radius: 10px; }
.lv-slide-cart__info { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.lv-slide-cart__name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lv-slide-cart__price { font-size: 14px; font-weight: 700; }
.lv-slide-cart__qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1.5px solid var(--lv-border, #e5e7eb);
	border-radius: 999px;
	width: max-content;
}
.lv-slide-cart__qty button {
	width: 30px;
	height: 30px;
	border: 0;
	background: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}
.lv-slide-cart__qty button:hover { background: var(--lv-surface, #f6f7f9); }
.lv-slide-cart__qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.lv-slide-cart__remove {
	position: absolute;
	top: 16px;
	right: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--lv-muted, #6b7280);
	padding: 4px;
}
.lv-slide-cart__remove:hover { color: var(--lv-sale, #e04f4f); }

.lv-slide-cart__empty {
	text-align: center;
	padding: 56px 12px;
	color: var(--lv-muted, #6b7280);
	display: grid;
	gap: 14px;
	justify-items: center;
}

.lv-slide-cart__foot {
	border-top: 1px solid var(--lv-border, #e5e7eb);
	padding: 16px 22px 20px;
	display: grid;
	gap: 12px;
}
.lv-slide-cart__coupon { display: flex; gap: 8px; }
.lv-slide-cart__foot .lv-slide-cart__coupon input { flex: 1 1 auto; width: auto; min-width: 0; padding: 11px 14px; font-size: 14px; }
/* Higher specificity than ".lv-slide-cart__foot .lv-btn { width:100% }" (which
   is later in the file) so Apply keeps its own size and the field stays wide. */
.lv-slide-cart__foot .lv-slide-cart__coupon .lv-btn { width: auto; flex: 0 0 auto; padding-inline: 22px; white-space: nowrap; }
.lv-slide-cart__subtotal {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
}
.lv-slide-cart__subtotal strong { font-size: 17px; }
.lv-slide-cart__foot .lv-btn { width: 100%; }
/* Checkout + View Full Cart share one row. */
.lv-slide-cart__actions { display: flex; gap: 10px; }
.lv-slide-cart__actions .lv-btn { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 14px; white-space: nowrap; }

/* ---------- Compare (floating bar + comparison modal) ---------- */
.lv-compare-bar {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 140;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--lv-text, #141414);
	color: #fff;
	padding: 9px 12px 9px 20px;
	border-radius: 999px;
	box-shadow: var(--lv-shadow-lg, 0 20px 50px rgb(16 24 40 / .2));
	animation: lv-modal-in .25s ease;
	max-width: calc(100vw - 24px);
}
.lv-compare-bar__label { font-size: 14px; white-space: nowrap; }
.lv-compare-bar__label strong { font-weight: 700; }
.lv-compare-bar__clear { background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; font-size: 13px; text-decoration: underline; }
.lv-compare-bar__clear:hover { opacity: 1; }

.lv-compare-modal { position: fixed; inset: 0; z-index: 150; background: rgb(15 18 25 / .5); display: grid; place-items: center; padding: 20px; }
.lv-compare-modal__box { width: min(900px, 100%); max-height: 88vh; overflow: auto; background: var(--lv-bg, #fff); border-radius: var(--lv-radius, 12px); box-shadow: var(--lv-shadow-lg, 0 20px 50px rgb(16 24 40 / .2)); }
.lv-compare-modal__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--lv-border, #dfe0df); background: var(--lv-bg, #fff); z-index: 1; }
.lv-compare-modal__head h2 { margin: 0; font-size: 18px; }
.lv-compare-modal__close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--lv-muted, #6b7280); }
.lv-compare-modal__body { padding: 8px 22px 22px; }
.lv-compare-table { width: 100%; border-collapse: collapse; }
.lv-compare-table th { text-align: left; width: 108px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--lv-muted, #6b7280); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--lv-border, #dfe0df); vertical-align: middle; }
.lv-compare-table td { text-align: center; padding: 12px 10px; border-bottom: 1px solid var(--lv-border, #dfe0df); font-size: 14px; vertical-align: middle; }
.lv-compare-cell__media { position: relative; }
.lv-compare-cell__media img { width: 100%; max-width: 130px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; margin-inline: auto; display: block; }
.lv-compare__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.lv-compare-cell__name { font-weight: 600; color: var(--lv-text, #141414); }
.lv-compare-in { color: #1c7a49; font-weight: 600; }
.lv-compare-out { color: var(--lv-sale, #e04f4f); font-weight: 600; }
.lv-compare-was { color: var(--lv-muted, #767676); font-weight: 400; font-size: 13px; margin-left: 4px; }
@media (max-width: 600px) {
	.lv-compare-table th { width: 82px; font-size: 11px; }
	.lv-compare-cell__media img { max-width: 88px; }
	.lv-compare-modal__body { padding: 8px 14px 18px; }
}

/* ---------- Quick view modal ---------- */
.lv-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; }
.lv-modal[hidden] { display: none; }
.lv-modal__backdrop { position: absolute; inset: 0; background: rgb(15 18 25 / .5); }
.lv-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	background: var(--lv-bg, #fff);
	border-radius: var(--lv-radius, 14px);
	box-shadow: var(--lv-shadow-lg, 0 20px 50px rgb(16 24 40 / .2));
	animation: lv-modal-in .25s ease;
}
@keyframes lv-modal-in { from { opacity: 0; transform: translateY(14px); } }
.lv-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: var(--lv-surface, #f6f7f9);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.lv-modal__spinner {
	width: 34px;
	height: 34px;
	margin: 90px auto;
	border: 3px solid var(--lv-border, #e5e7eb);
	border-top-color: var(--lv-primary, #1f6f5c);
	border-radius: 50%;
	animation: lv-spin .8s linear infinite;
}
@keyframes lv-spin { to { transform: rotate(360deg); } }

.lv-qv { display: grid; grid-template-columns: 1fr 1fr; }
.lv-qv__media { padding: 22px; }
.lv-qv__main img { border-radius: 12px; width: 100%; }
.lv-qv__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lv-qv__thumbs button { border: 2px solid transparent; border-radius: 8px; padding: 0; background: none; cursor: pointer; overflow: hidden; }
.lv-qv__thumbs button:hover { border-color: var(--lv-primary, #1f6f5c); }
.lv-qv__thumbs img { width: 56px; height: 56px; object-fit: cover; display: block; }
.lv-qv__details { padding: 34px 28px; }
.lv-qv__title { font-size: 24px; }
.lv-qv__price { font-size: 21px; font-weight: 700; margin-block: 10px 14px; }
.lv-qv__price del { color: var(--lv-muted, #6b7280); font-weight: 400; }
.lv-qv__price ins { text-decoration: none; color: var(--lv-sale, #e04f4f); }
.lv-qv__excerpt { color: var(--lv-muted, #6b7280); font-size: 14px; }
.lv-qv__actions { display: flex; gap: 10px; margin-block: 18px; }
.lv-qv__full { font-size: 14px; font-weight: 600; color: var(--lv-primary, #1f6f5c); }
.lv-qv__oos { color: var(--lv-sale, #e04f4f); font-weight: 600; }

/* ---------- Auth (login / register) ---------- */
.lv-auth { display: grid; place-items: center; }
.lv-auth__card {
	width: min(460px, 100%);
	background: var(--lv-bg, #fff);
	border: 1px solid var(--lv-border, #e5e7eb);
	border-radius: calc(var(--lv-radius, 8px) * 1.6);
	padding: clamp(24px, 5vw, 36px);
	box-shadow: var(--lv-shadow-md, 0 8px 28px rgb(16 24 40 / .08));
}

/* Segmented tabs with a sliding indicator. */
.lv-auth__tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--lv-surface, #f6f7f9);
	border-radius: 999px;
	padding: 5px;
	margin-bottom: 26px;
	isolation: isolate;
}
.lv-auth__tab {
	position: relative;
	z-index: 1;
	border: 0;
	background: none;
	padding: 11px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	color: var(--lv-muted, #6b7280);
	transition: color .2s ease;
}
.lv-auth__tab.is-active { color: var(--lv-text, #141414); }
.lv-auth__tab-indicator {
	position: absolute;
	z-index: 0;
	top: 5px;
	left: 0;
	height: calc(100% - 10px);
	width: 50%;
	background: var(--lv-bg, #fff);
	border-radius: 999px;
	box-shadow: var(--lv-shadow-sm, 0 1px 4px rgb(16 24 40 / .1));
	transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
}

.lv-auth__form { display: block; }
/* The inactive tab panel carries [hidden]; the display rule above would otherwise
   override it and show both forms at once. */
.lv-auth__form[hidden] { display: none; }
.lv-auth__row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 6px; font-size: 14px; }
.lv-auth__forgot { color: var(--lv-primary, #000); font-weight: 600; }
.lv-auth__forgot:hover { text-decoration: underline; }
.lv-auth__terms { font-size: 12px; color: var(--lv-muted, #6b7280); margin: 12px 0 0; text-align: center; }

/* Social login (Google / Facebook) */
.lv-auth__social { margin-top: 18px; display: grid; gap: 10px; }
.lv-auth__social-divider { position: relative; text-align: center; font-size: 11px; color: var(--lv-muted, #6b7280); text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 8px; }
.lv-auth__social-divider::before, .lv-auth__social-divider::after { content: ""; position: absolute; top: 50%; width: calc(50% - 70px); height: 1px; background: var(--lv-border, #e5e7eb); }
.lv-auth__social-divider::before { left: 0; }
.lv-auth__social-divider::after { right: 0; }
.lv-auth__social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-weight: 600; }
.lv-auth__social-btn svg { flex-shrink: 0; }

/* Social sign-in (Continue with Google) */
.lv-auth__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--lv-muted, #6b7280); font-size: 13px; }
.lv-auth__divider::before, .lv-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--lv-border, #e5e7eb); }
.lv-auth__google { display: flex; justify-content: center; min-height: 40px; }
.lv-field__help-inline { font-weight: 400; color: var(--lv-muted, #767676); }

/* Signup OTP step */
.lv-auth__otp { animation: lv-auth-in .28s ease; }
.lv-auth__otp-hint { font-size: 13px; line-height: 1.5; color: var(--lv-muted, #6b7280); margin: 0 0 10px; }
.lv-auth__otp-input { letter-spacing: 8px; font-size: 20px; font-weight: 600; text-align: center; }
.lv-auth__otp-input::placeholder { letter-spacing: normal; }
.lv-auth__otp-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.lv-auth__otp-link {
	background: none; border: 0; padding: 0;
	font: inherit; font-size: 13px; font-weight: 600;
	color: var(--lv-primary, #000); cursor: pointer;
}
.lv-auth__otp-link:hover { text-decoration: underline; }
.lv-auth__otp-link:disabled { color: var(--lv-muted, #6b7280); cursor: default; text-decoration: none; }

/* Auth on phones: keep tab labels on one line and stop the remember/forgot row
   from wrapping into a cramped stack. */
@media (max-width: 560px) {
	.lv-auth { padding-block: 32px; }
	.lv-auth__card { padding: 22px 18px; }
	.lv-auth__tabs { margin-bottom: 22px; }
	.lv-auth__tab { font-size: 13px; padding: 11px 6px; white-space: nowrap; }
	.lv-auth__row { font-size: 13px; gap: 10px; flex-wrap: wrap; }
	.lv-auth__row .lv-check { white-space: nowrap; }
	.lv-auth__forgot { white-space: nowrap; }
}

/* Panel enter animation on tab switch. */
.lv-auth__form.is-entering { animation: lv-auth-in .28s ease; }
@keyframes lv-auth-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.lv-auth__tab-indicator { transition: none; }
	.lv-auth__form.is-entering { animation: none; }
}

/* ---------- Forms (builder + newsletter) ---------- */
.lv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lv-form__field { grid-column: span 2; }
.lv-form__field--half { grid-column: span 1; }
.lv-form__heading { grid-column: span 2; margin: 8px 0 0; }
.lv-form__divider { grid-column: span 2; border: 0; border-top: 1px solid var(--lv-border, #e5e7eb); }
.lv-form__choices { display: grid; gap: 8px; }
.lv-form .lv-btn { margin-top: 18px; }
.lv-req { color: var(--lv-sale, #e04f4f); }
.lv-hp { position: absolute !important; left: -9999px !important; }
.lv-form-feedback { font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.lv-form-feedback.is-success { color: var(--lv-primary, #1f6f5c); font-weight: 600; }
.lv-form-feedback.is-error { color: var(--lv-sale, #e04f4f); font-weight: 600; }

/* Inline pill newsletter: input + black SIGN UP button, per design. */
.lv-newsletter { display: flex; gap: 0; flex-wrap: wrap; position: relative; max-width: 420px; }
.lv-newsletter input[type="email"] {
	flex: 1;
	min-width: 180px;
	border-radius: 6px 0 0 6px !important;
	border-right: 0 !important;
}
.lv-newsletter .lv-btn {
	border-radius: 0 6px 6px 0;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .05em;
	padding-inline: 20px;
}
.lv-newsletter .lv-form-feedback { width: 100%; margin: 6px 0 0; }

/* ---------- Footer bits ---------- */
.lv-social { display: flex; gap: 10px; margin-top: 16px; }
.lv-social a {
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	border: 1.5px solid var(--lv-border, #e5e7eb);
	border-radius: 999px;
}
.lv-social a:hover { border-color: var(--lv-primary, #1f6f5c); color: var(--lv-primary, #1f6f5c); }
.lv-payments { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.lv-payments li {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--lv-bg, #fff);
	border: 1px solid var(--lv-border, #e5e7eb);
	border-radius: 6px;
	padding: 4px 10px;
	color: var(--lv-muted, #6b7280);
}

/* ---------- Home sections ---------- */
.lv-collection-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.lv-collection-tile {
	position: relative;
	display: block;
	border-radius: var(--lv-radius, 14px);
	overflow: hidden;
	aspect-ratio: 5 / 6;
}
.lv-collection-tile__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform .5s ease;
}
.lv-collection-tile:hover .lv-collection-tile__img { transform: scale(1.06); }
.lv-collection-tile__label {
	position: absolute;
	inset: auto 0 0 0;
	padding: 18px;
	background: linear-gradient(to top, rgb(0 0 0 / .6), transparent);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	display: grid;
	gap: 2px;
}
.lv-collection-tile__label em { font-style: normal; font-weight: 500; font-size: 13px; opacity: .85; }

.lv-instagram-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}
.lv-instagram-tile {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	transition: transform .3s ease, filter .3s ease;
	filter: saturate(.95);
}
.lv-instagram-tile:hover { transform: scale(1.04); filter: saturate(1.1); }

@media (max-width: 900px) {
	.lv-collection-grid { grid-template-columns: repeat(2, 1fr); }
	.lv-instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Collection bubbles / tiles (home) ---------- */
/* Figma: each item is a Fill-width column, circle 125.47px, spread full width. */
.lv-collections { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.lv-collections__item { flex: 1 1 0; min-width: 120px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.lv-collections--bubbles .lv-collections__media {
	width: 125px;
	height: 125px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--lv-surface, #f7f7f7);
	box-shadow: 0 0 0 1px var(--lv-border, #dfe0df);
	transition: transform .2s ease, box-shadow .2s ease;
}
.lv-collections--bubbles .lv-collections__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lv-collections__item:hover .lv-collections__media { transform: scale(1.05); box-shadow: 0 0 0 2px var(--lv-text, #141414); }
.lv-collections__name { font-size: 15px; font-weight: 500; color: var(--lv-text, #141414); }
.lv-collections--tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.lv-collections--tiles .lv-collections__media { border-radius: var(--lv-radius, 8px); overflow: hidden; }

/* ---------- Product grid (base — used on home sections too) ---------- */
/* shop.css adds list-view + responsive rules; this base makes the grid work
   on any page that embeds [lilvastr_products] (home, etc.). */
.lv-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--lv-grid-cols, 4), 1fr);
	gap: 32px 24px; /* Figma: 32px row gap, 24px column gap */
}
/* Column counts via attribute (keeps markup free of inline styles). */
.lv-product-grid[data-cols="2"] { --lv-grid-cols: 2; }
.lv-product-grid[data-cols="3"] { --lv-grid-cols: 3; }
.lv-product-grid[data-cols="4"] { --lv-grid-cols: 4; }
.lv-product-grid[data-cols="5"] { --lv-grid-cols: 5; }
.lv-product-grid[data-cols="6"] { --lv-grid-cols: 6; }
/* Tablet: step wide home grids (4/5/6 cols) down to 3 before phones get 2.
   2- and 3-col sections are left untouched. */
@media (max-width: 1100px) {
	.lv-product-grid[data-cols="4"],
	.lv-product-grid[data-cols="5"],
	.lv-product-grid[data-cols="6"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 782px) {
	.lv-product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}
/* Collection bubbles: even, centered rows on smaller screens (the desktop
   flex-spread wraps unevenly otherwise) with the circle scaling to the column. */
@media (max-width: 900px) {
	.lv-collections { flex-wrap: wrap; justify-content: center; gap: 22px 10px; }
	.lv-collections__item { flex: 0 1 auto; width: calc(25% - 8px); min-width: 0; gap: 10px; }
	.lv-collections--bubbles .lv-collections__media { width: 100%; max-width: 96px; height: auto; aspect-ratio: 1; margin-inline: auto; }
}
@media (max-width: 480px) {
	.lv-collections__item { width: calc(33.333% - 8px); }
	.lv-collections--bubbles .lv-collections__media { max-width: 84px; }
	.lv-collections__name { font-size: 13px; }
}

/* ---------- Home page on phones ---------- */
/* The Elementor home sections place these components in full-bleed columns with
   no horizontal padding, so on phones they run edge-to-edge. Add consistent side
   padding (matches the 20px theme container). Also cap the product grid to 6
   cards (2×3) — the section's "Shop all products" button leads to the paginated
   shop for everything else, so the home page stays short and scannable. */
/* Tablet + phone: the Elementor home columns go full-bleed, so pad the sides
   across the whole range (a 782-only rule left a 783–900px gap where the collage
   ran to the right edge). Match the shop's columns: 3 on tablet, 2 on phone. */
@media (max-width: 1100px) {
	.home .lv-product-grid,
	.home .lv-collections,
	.home .lv-collage,
	.home .lv-collection-grid,
	.home .lv-instagram-grid,
	.home .lv-stories { padding-inline: 20px; }

	/* Override the inline --lv-grid-cols; `.home` (0,2,0) beats the base rule. */
	.home .lv-product-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 782px) {
	.home .lv-product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px 12px; }
	.home .lv-product-grid > *:nth-child(n+7) { display: none; }
}

/* ---------- Popular-categories collage: 1 big + 2×2 ---------- */
.lv-collage {
	display: grid;
	/* minmax(0,1fr) lets the tracks shrink below the images' intrinsic width —
	   plain 1fr won't, so on a narrow screen the grid overflowed to the right
	   and the images got clipped past the padding. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, 1fr);
	gap: 16px;
	height: clamp(380px, 40vw, 520px);
	max-width: 100%;
}
.lv-collage__item {
	position: relative;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	border-radius: var(--lv-radius, 8px);
	background: var(--lv-surface, #f7f7f7);
	display: flex;
}
.lv-collage__item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.lv-collage__item:nth-child(2) { grid-column: 3; grid-row: 1; }
.lv-collage__item:nth-child(3) { grid-column: 4; grid-row: 1; }
.lv-collage__item:nth-child(4) { grid-column: 3; grid-row: 2; }
.lv-collage__item:nth-child(5) { grid-column: 4; grid-row: 2; }
/* Flex-stretch fills the tile reliably — the item is display:flex so the
   image's cross-size comes from the item's real height (grid cell), not from
   a percentage that fails to resolve on <img> inside a grid-stretched box. */
.lv-collage__img, .lv-collage__item img {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	align-self: stretch;
	object-fit: cover;
	object-position: var(--lv-focus, center 30%);
	transition: transform .5s ease;
}
.lv-collage__item:hover img { transform: scale(1.04); }
.lv-collage__label {
	position: absolute;
	left: 16px;
	bottom: 14px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-shadow: 0 1px 6px rgb(0 0 0 / .4);
}

/* ---------- Style stories: intro + 2 features / 4 thumbs ---------- */
.lv-stories { display: grid; gap: 16px; }
.lv-stories__top {
	display: grid;
	grid-template-columns: 1fr 1.5fr 1.5fr;
	gap: 16px;
}
.lv-stories__bottom {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.lv-stories__intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 12px;
}
.lv-stories__title { font-family: var(--lv-font-display, "Playwrite US Trad", cursive); font-weight: 400; font-size: clamp(28px, 3vw, 40px); color: #232323; margin: 0 0 14px; }
.lv-stories__intro p { color: var(--lv-muted, #767676); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.lv-stories__intro .lv-btn { align-self: flex-start; }
.lv-stories__item { overflow: hidden; border-radius: var(--lv-radius, 8px); background: var(--lv-surface, #f7f7f7); display: flex; }
.lv-stories__item img {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	align-self: stretch;
	object-fit: cover;
	object-position: var(--lv-focus, center 20%);
	transition: transform .5s ease;
}
.lv-stories__item:hover img { transform: scale(1.04); }
.lv-stories__feature { height: clamp(280px, 30vw, 380px); }
.lv-stories__thumb { height: clamp(220px, 22vw, 300px); }

@media (max-width: 900px) {
	.lv-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); height: auto; aspect-ratio: 3/4; }
	.lv-collage__item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
	.lv-collage__item:nth-child(2) { grid-column: 1; grid-row: 2; }
	.lv-collage__item:nth-child(3) { grid-column: 2; grid-row: 2; }
	.lv-collage__item:nth-child(4) { grid-column: 1; grid-row: 3; }
	.lv-collage__item:nth-child(5) { grid-column: 2; grid-row: 3; }
	.lv-stories__top { grid-template-columns: 1fr; }
	.lv-stories__bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.lv-qv { grid-template-columns: 1fr; }
	.lv-form__field--half { grid-column: span 2; }
}
