/* ==================================================
   HOMEPAGE STYLES
   Temiz Wear — Premium Interactive Hero + Homepage Sections
   ================================================== */

/* --------------------------------------------------
   1. Homepage Foundation
   -------------------------------------------------- */
.site-main.homepage {
	background-color: var(--tw-color-base, #F5EFE3);
	overflow-x: hidden;
	display: block;
}

.homepage {
	display: block;
}

/* --------------------------------------------------
   2. Interactive Hero — Container
   -------------------------------------------------- */
.tw-home-hero {
	--tw-hero-radius: 0;
	--tw-hero-gutter: 0;
	--tw-hero-max-width: 100%;
	--tw-hero-transition-duration: 420ms;
	--tw-hero-transition-easing: cubic-bezier(0.22, 1, 0.36, 1);

	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	display: block;
}

/* --------------------------------------------------
   3. Hero Media & Layout
   -------------------------------------------------- */
.tw-home-hero__viewport {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 0;
	background-color: var(--tw-color-base, #F5EFE3);
	width: 100%;
}

.tw-home-hero__collection {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	min-height: clamp(520px, 132vw, 700px);
	height: min(78svh, 700px);
	max-height: clamp(600px, 80svh, 700px);
}

.tw-home-hero__slide {
	position: relative;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--tw-hero-transition-duration) var(--tw-hero-transition-easing),
		visibility var(--tw-hero-transition-duration) var(--tw-hero-transition-easing);
}

.tw-home-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.tw-home-hero__slide[hidden] {
	display: none;
}

.tw-home-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.tw-home-hero__picture {
	display: block;
	width: 100%;
	height: 100%;
}

.tw-home-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Mobile slide-specific positioning */
[data-hero-slide-id="thobes-01"] .tw-home-hero__image {
	object-position: center 30%;
}

[data-hero-slide-id="thobes-02"] .tw-home-hero__image {
	object-position: center 32%;
}

[data-hero-slide-id="panjabi-01"] .tw-home-hero__image {
	object-position: center 30%;
}

[data-hero-slide-id="panjabi-02"] .tw-home-hero__image {
	object-position: center 32%;
}

[data-hero-slide-id="trousers-01"] .tw-home-hero__image {
	object-position: center 34%;
}

[data-hero-slide-id="trousers-02"] .tw-home-hero__image {
	object-position: center 35%;
}

/* --------------------------------------------------
   4. Hero Content & Overlay
   -------------------------------------------------- */
.tw-home-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(
		to top,
		rgba(28, 28, 26, 0.66) 0%,
		rgba(46, 26, 36, 0.36) 26%,
		rgba(46, 26, 36, 0.08) 52%,
		transparent 74%
	);
}

.tw-home-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	padding-inline: clamp(16px, 4vw, 20px);
	padding-block-end: clamp(40px, 8vw, 56px);
	padding-block-start: 16px;
	color: var(--tw-color-white, #FFFFFF);
	text-align: left;
}

.tw-home-hero__eyebrow {
	margin: 0 0 6px;
	font-size: clamp(11px, 2.4vw, 13px);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.tw-home-hero__title {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 8vw, 2.5rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--tw-color-white, #FFFFFF);
	max-width: 14ch;
}

.tw-home-hero__description {
	margin: 0 0 14px;
	font-size: clamp(13px, 3vw, 15px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
	max-width: 42ch;
}

/* --------------------------------------------------
   5. Hero CTA
   -------------------------------------------------- */
/* --------------------------------------------------
   5. Hero CTA
   -------------------------------------------------- */
.tw-home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding-inline: 24px;
	border-radius: 4px;

	background-color: var(--tw-color-accent, #A8823D);
	color: var(--tw-color-white, #FFFFFF);

	font-size: clamp(13px, 2.5vw, 14px);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;

	transition:
		background-color 200ms ease-out,
		color 200ms ease-out,
		box-shadow 200ms ease-out;
}

.tw-home-hero__cta:hover {
	background-color: var(--tw-color-primary, #2E1A24);
	color: var(--tw-color-white, #FFFFFF);
	box-shadow: 0 3px 10px rgba(46, 26, 36, 0.18);
}

.tw-home-hero__cta:active {
	box-shadow: none;
}

.tw-home-hero__cta:focus-visible {
	outline: 2px solid var(--tw-color-white, #FFFFFF);
	outline-offset: 2px;
}

/* --------------------------------------------------
   6. Hero Pagination
   -------------------------------------------------- */
.tw-home-hero__pagination {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: max(10px, env(safe-area-inset-bottom, 10px));
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	pointer-events: auto;
}

.tw-home-hero__dot {
	position: relative;
	appearance: none;
	border: none;
	margin: 0;
	padding: 0;
	width: 36px;
	height: 36px;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	transition: all 200ms ease-out;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

.tw-home-hero__dot::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.48);
	transition: all 200ms ease-out;
}

.tw-home-hero__dot.is-active::before,
.tw-home-hero__dot[aria-current="true"]::before {
	width: 20px;
	height: 6px;
	border-radius: 3px;
	background-color: var(--tw-color-accent, #A8823D);
}

.tw-home-hero__dot:hover::before {
	background-color: rgba(255, 255, 255, 0.68);
}

.tw-home-hero__dot.is-active:hover::before,
.tw-home-hero__dot[aria-current="true"]:hover::before {
	background-color: var(--tw-color-accent, #A8823D);
}

.tw-home-hero__dot:focus-visible {
	outline: 2px solid var(--tw-color-white, #FFFFFF);
	outline-offset: 2px;
}

/* --------------------------------------------------
   7. Hero States
   -------------------------------------------------- */
.tw-home-hero__collection[hidden] {
	display: none;
}

.tw-home-hero--image-missing {
	border-radius: 0;
	background-color: var(--tw-color-primary, #2E1A24);
	min-height: 340px;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

.tw-home-hero--image-missing .tw-home-hero__overlay {
	position: static;
	background: none;
	align-items: center;
	padding-block: 32px;
}

.tw-home-hero--image-missing .tw-home-hero__content {
	max-width: 520px;
	margin-inline: auto;
	padding-inline: 24px;
	padding-block: 0;
	text-align: center;
}

.tw-home-hero--image-missing .tw-home-hero__title {
	max-width: none;
}

/* --------------------------------------------------
   8. Responsive — Tablet (768px+)
   -------------------------------------------------- */
@media (min-width: 768px) {
	.tw-home-hero {
		--tw-hero-radius: 0;
		--tw-hero-gutter: 0;
		--tw-hero-transition-duration: 440ms;
	}

	.tw-home-hero__collection {
		aspect-ratio: auto;
		min-height: 430px;
		height: clamp(430px, 54vw, 560px);
		max-height: min(72svh, 560px);
	}

	.tw-home-hero__overlay {
		background: linear-gradient(
			to top,
			rgba(28, 28, 26, 0.68) 0%,
			rgba(46, 26, 36, 0.36) 32%,
			rgba(46, 26, 36, 0.06) 58%,
			transparent 74%
		);
	}

	.tw-home-hero__content {
		max-width: 480px;
		padding-inline: clamp(20px, 5vw, 32px);
		padding-block-end: clamp(40px, 7vw, 52px);
		padding-block-start: 20px;
	}

	.tw-home-hero__eyebrow {
		font-size: clamp(12px, 1.8vw, 14px);
		margin-bottom: 6px;
	}

	.tw-home-hero__title {
		font-size: clamp(2.4rem, 5vw, 3.4rem);
		line-height: 1.06;
		margin-bottom: 8px;
		max-width: 13ch;
	}

	.tw-home-hero__description {
		font-size: clamp(13px, 2.4vw, 15px);
		line-height: 1.52;
		margin-bottom: 16px;
		max-width: 48ch;
	}

	.tw-home-hero__cta {
		min-height: 44px;
		padding-inline: 26px;
		font-size: clamp(12px, 1.6vw, 13px);
	}

	.tw-home-hero__pagination {
		bottom: max(12px, env(safe-area-inset-bottom, 12px));
		gap: 8px;
	}

	/* Tablet slide-specific positioning */
	[data-hero-slide-id="thobes-01"] .tw-home-hero__image {
		object-position: 52% 36%;
	}

	[data-hero-slide-id="thobes-02"] .tw-home-hero__image {
		object-position: 48% 38%;
	}

	[data-hero-slide-id="panjabi-01"] .tw-home-hero__image {
		object-position: 54% 36%;
	}

	[data-hero-slide-id="panjabi-02"] .tw-home-hero__image {
		object-position: 50% 38%;
	}

	[data-hero-slide-id="trousers-01"] .tw-home-hero__image {
		object-position: 52% 40%;
	}

	[data-hero-slide-id="trousers-02"] .tw-home-hero__image {
		object-position: 48% 41%;
	}
}

/* --------------------------------------------------
   9. Responsive — Desktop (1024px+)
   -------------------------------------------------- */
@media (min-width: 1024px) {
	.tw-home-hero {
		--tw-hero-gutter: 0;
		--tw-hero-radius: 0;
		--tw-hero-transition-duration: 460ms;
	}

	.tw-home-hero__collection {
		height: clamp(520px, 46vw, 700px);
		max-height: calc(100svh - 170px);
	}

	.tw-home-hero__overlay {
		background: linear-gradient(
			90deg,
			rgba(24, 16, 20, 0.62) 0%,
			rgba(32, 20, 27, 0.40) 28%,
			rgba(32, 20, 27, 0.12) 50%,
			rgba(32, 20, 27, 0) 72%
		);
		align-items: center;
	}

	.tw-home-hero__content {
		width: min(100%, 620px);
		max-width: 620px;
		padding-inline: clamp(40px, 6vw, 72px);
		padding-block: 0;
	}

	.tw-home-hero__eyebrow {
		font-size: clamp(13px, 1.4vw, 15px);
		margin-bottom: 8px;
	}

	.tw-home-hero__title {
		font-size: clamp(3rem, 4.2vw, 4.8rem);
		line-height: 1.04;
		max-width: 11ch;
		margin-bottom: 10px;
	}

	.tw-home-hero__description {
		font-size: clamp(14px, 1.6vw, 16px);
		line-height: 1.54;
		margin-bottom: 18px;
		max-width: 50ch;
	}

	.tw-home-hero__cta {
		min-height: 46px;
		padding-inline: 28px;
		font-size: clamp(12px, 1.2vw, 14px);
	}

	.tw-home-hero__pagination {
		bottom: max(16px, env(safe-area-inset-bottom, 16px));
		gap: 10px;
	}

	/* Desktop slide-specific positioning */
	[data-hero-slide-id="thobes-01"] .tw-home-hero__image {
		object-position: 58% 38%;
	}

	[data-hero-slide-id="thobes-02"] .tw-home-hero__image {
		object-position: 54% 40%;
	}

	[data-hero-slide-id="panjabi-01"] .tw-home-hero__image {
		object-position: 60% 37%;
	}

	[data-hero-slide-id="panjabi-02"] .tw-home-hero__image {
		object-position: 56% 39%;
	}

	[data-hero-slide-id="trousers-01"] .tw-home-hero__image {
		object-position: 58% 42%;
	}

	[data-hero-slide-id="trousers-02"] .tw-home-hero__image {
		object-position: 54% 43%;
	}
}

/* --------------------------------------------------
   10. Responsive — Large Desktop (1280px+)
   -------------------------------------------------- */
@media (min-width: 1280px) {
	.tw-home-hero {
		--tw-hero-gutter: 0;
		--tw-hero-radius: 0;
	}

	.tw-home-hero__collection {
		height: clamp(560px, 44vw, 720px);
		max-height: calc(100svh - 160px);
	}

	.tw-home-hero__content {
		max-width: 640px;
		padding-inline: clamp(48px, 5.5vw, 80px);
	}

	.tw-home-hero__title {
		font-size: clamp(3.4rem, 4vw, 5rem);
		max-width: 10ch;
	}

	.tw-home-hero__description {
		font-size: clamp(15px, 1.4vw, 17px);
	}
}

/* --------------------------------------------------
   11. Responsive — Extra Large (1600px+)
   -------------------------------------------------- */
@media (min-width: 1600px) {
	.tw-home-hero {
		--tw-hero-gutter: 0;
	}

	.tw-home-hero__collection {
		max-height: 700px;
	}

	.tw-home-hero__content {
		padding-inline: clamp(56px, 5vw, 88px);
	}

	.tw-home-hero__title {
		font-size: clamp(3.6rem, 3.8vw, 5.2rem);
	}
}

/* --------------------------------------------------
   12. Ultra-Wide (1920px+)
   -------------------------------------------------- */
@media (min-width: 1920px) {
	.tw-home-hero__collection {
		height: clamp(640px, 42vw, 700px);
	}

	.tw-home-hero__title {
		font-size: 5.2rem;
		max-width: 10ch;
	}
}

/* --------------------------------------------------
   13. Reduced Motion
   -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.tw-home-hero__slide,
	.tw-home-hero__cta,
	.tw-home-hero__dot {
		transition: none;
	}
}

/* ==================================================
   CATEGORY-SPECIFIC PRODUCT PANELS
   ================================================== */

/* --------------------------------------------------
   14. Category Content Container
   -------------------------------------------------- */
.tw-home-category-content {
	width: 100%;
	display: block;
}

/* --------------------------------------------------
   15. Category Panel
   -------------------------------------------------- */
.tw-home-category-panel {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	margin-block-start: clamp(40px, 10vw, 56px);
	margin-block-end: 0;
	padding-inline: 16px;
	padding-block: 0;
	display: block;
}

.tw-home-category-panel[hidden] {
	display: none;
}

.tw-home-category-panel.is-active {
	display: block;
}

/* --------------------------------------------------
   16. Category Panel Header
   -------------------------------------------------- */
.tw-home-category-panel__header {
	margin-block-end: 24px;
	padding-block: 0;
	padding-inline: 0;
}

.tw-home-category-panel__title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: left;
	color: var(--tw-color-primary, #2E1A24);
}

.tw-home-category-panel__intro {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--tw-color-text, #1C1C1A);
}

/* --------------------------------------------------
   17. Category Products Section
   -------------------------------------------------- */
.tw-home-category-products {
	margin-block-end: 32px;
	display: block;
}

.tw-home-category-products__title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tw-color-primary, #2E1A24);
}

/* --------------------------------------------------
   18. Category Bestsellers Section
   -------------------------------------------------- */
.tw-home-category-bestsellers {
	margin-block-end: 24px;
	display: block;
}

.tw-home-category-bestsellers__title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tw-color-primary, #2E1A24);
}

/* --------------------------------------------------
   19. Category Panel CTA Wrapper
   -------------------------------------------------- */
.tw-home-category-panel__cta-wrapper {
	margin-block: 28px 32px;
	text-align: left;
}

.tw-home-category-panel__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding-inline: 20px;
	border-radius: 4px;
	background-color: var(--tw-color-primary, #2E1A24);
	color: var(--tw-color-white, #FFFFFF);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition:
		background-color 200ms ease-out,
		color 200ms ease-out,
		box-shadow 200ms ease-out;
}

.tw-home-category-panel__cta:hover {
	background-color: var(--tw-color-accent, #A8823D);
	color: var(--tw-color-white, #FFFFFF);
	box-shadow: 0 4px 12px rgba(168, 130, 61, 0.20);
}

.tw-home-category-panel__cta:active {
	box-shadow: none;
}

.tw-home-category-panel__cta:focus-visible {
	outline: 2px solid var(--tw-color-primary, #2E1A24);
	outline-offset: 2px;
}

/* --------------------------------------------------
   20. Category Panel Empty State
   -------------------------------------------------- */
.tw-home-category-panel__empty {
	margin-block: 32px;
	padding-block: 32px;
	text-align: center;
	color: var(--tw-color-text, #1C1C1A);
}

.tw-home-category-panel__empty p {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
}

.tw-home-category-panel__empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding-inline: 20px;
	border-radius: 4px;
	background-color: var(--tw-color-primary, #2E1A24);
	color: var(--tw-color-white, #FFFFFF);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition:
		background-color 200ms ease-out,
		color 200ms ease-out,
		box-shadow 200ms ease-out;
}

.tw-home-category-panel__empty a:hover {
	background-color: var(--tw-color-accent, #A8823D);
	color: var(--tw-color-white, #FFFFFF);
	box-shadow: 0 4px 12px rgba(168, 130, 61, 0.20);
}

/* ==================================================
   EXISTING HOMEPAGE SECTIONS
   ================================================== */

/* --------------------------------------------------
   21. Brand Pillars
   -------------------------------------------------- */
.brand-pillars {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	margin-block-start: clamp(48px, 10vw, 64px);
	margin-block-end: 0;
	padding-inline: 16px;
	padding-block: 0;
}

.brand-pillars__title {
	margin: 0 0 24px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	color: var(--tw-color-primary, #2E1A24);
}

.pillars-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.brand-pillars .pillar {
	margin: 0;
	padding: 0;
	text-align: center;
}

.brand-pillars .pillar__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tw-color-primary, #2E1A24);
}

.brand-pillars .pillar__description {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--tw-color-text, #1C1C1A);
}

@media (min-width: 768px) {
	.brand-pillars {
		padding-inline: 24px;
		margin-block-start: clamp(56px, 12vw, 72px);
	}

	.pillars-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px;
	}

	.brand-pillars .pillar__title {
		font-size: 15px;
		margin-bottom: 8px;
	}

	.brand-pillars .pillar__description {
		font-size: 13px;
	}
}

/* --------------------------------------------------
   22. Product Sections
   -------------------------------------------------- */
.product-section {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	margin-block-start: clamp(40px, 10vw, 56px);
	margin-block-end: 0;
	padding-inline: 16px;
	padding-block: 0;
}

.product-section__title {
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: left;
	color: var(--tw-color-primary, #2E1A24);
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.product-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-image-link {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	background-color: var(--tw-color-base, #F5EFE3);
}

.product-image-link img {
	display: block;
	width: 100%;
	height: auto;
}

.product-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-name {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.product-name a {
	color: var(--tw-color-text, #1C1C1A);
	text-decoration: none;
	transition: color 200ms ease-out;
}

.product-name a:hover {
	color: var(--tw-color-accent, #A8823D);
}

.product-price {
	font-size: 12px;
	font-weight: 600;
	color: var(--tw-color-micro, #8B5E52);
}

@media (min-width: 768px) {
	.product-section {
		padding-inline: 24px;
		margin-block-start: clamp(48px, 12vw, 64px);
	}

	.product-section__title {
		margin-bottom: 24px;
	}

	.product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}

	.product-card {
		gap: 12px;
	}

	.product-name {
		font-size: 13px;
	}

	.product-price {
		font-size: 13px;
	}
}

/* --------------------------------------------------
   23. Homepage Gutenberg Content
   -------------------------------------------------- */
.homepage-content {
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	margin-block-start: clamp(40px, 10vw, 56px);
	margin-block-end: 0;
	padding-inline: 16px;
	padding-block: 0;
	color: var(--tw-color-text, #1C1C1A);
	line-height: 1.6;
}

@media (min-width: 768px) {
	.homepage-content {
		padding-inline: 24px;
		margin-block-start: clamp(48px, 12vw, 64px);
	}
}

/* ==========================================================================
   HOMEPAGE SMART SECTION SPACING
   Consistent vertical rhythm without changing section content or layout.
   ========================================================================== */

/* Remove accidental margins between direct homepage sections. */
.site-main.homepage > section {
	margin-block: 0 !important;
}

.site-main.homepage > section + section {
	margin-top: 0 !important;
}

/* Product-led sections: compact but still premium. */
.site-main.homepage > .new-arrivals,
.site-main.homepage > .best-sellers {
	padding-block: clamp(2.75rem, 4.8vw, 4.25rem) !important;
}

/* Category feature banner should sit closer to surrounding sections. */
.site-main.homepage > .shop-by-category {
	padding-block: clamp(2.25rem, 4vw, 3.75rem) !important;
}

/* Inside Story already has a strong visual card; avoid extra outer whitespace. */
.site-main.homepage > .inside-story {
	padding-block: clamp(2rem, 3.8vw, 3.5rem) !important;
}

/* Brand values is the closing content block before the footer. */
.site-main.homepage > .brand-values {
	padding-block: clamp(2rem, 3.5vw, 3.25rem) !important;
}

/* Keep internal headings and products visually connected. */
.new-arrivals__header,
.best-sellers__header {
	margin-bottom: clamp(1.25rem, 2.4vw, 2rem) !important;
}

.new-arrivals__tabs,
.best-sellers__tabs {
	margin-bottom: clamp(1.35rem, 2.6vw, 2.1rem) !important;
}

.new-arrivals__footer,
.best-sellers__footer {
	margin-top: clamp(1.4rem, 2.8vw, 2.25rem) !important;
}

/* Prevent empty wrappers or inherited blocks from creating blank bands. */
.site-main.homepage > section > :first-child {
	margin-top: 0;
}

.site-main.homepage > section > :last-child {
	margin-bottom: 0;
}

/* Mobile: tighter spacing while preserving comfortable tap targets. */
@media (max-width: 767px) {
	.site-main.homepage > .new-arrivals,
	.site-main.homepage > .best-sellers {
		padding-block: 2.25rem !important;
	}

	.site-main.homepage > .shop-by-category {
		padding-block: 1.75rem 2.25rem !important;
	}

	.site-main.homepage > .inside-story {
		padding-block: 1.5rem 2rem !important;
	}

	.site-main.homepage > .brand-values {
		padding-block: 1.75rem 2.25rem !important;
	}

	.new-arrivals__header,
	.best-sellers__header {
		margin-bottom: 1.15rem !important;
	}

	.new-arrivals__tabs,
	.best-sellers__tabs {
		margin-bottom: 1.25rem !important;
	}

	.new-arrivals__footer,
	.best-sellers__footer {
		margin-top: 1.35rem !important;
	}
}

/* Very small phones: remove unnecessary breathing room only. */
@media (max-width: 359px) {
	.site-main.homepage > .new-arrivals,
	.site-main.homepage > .best-sellers {
		padding-block: 2rem !important;
	}

	.site-main.homepage > .shop-by-category,
	.site-main.homepage > .inside-story,
	.site-main.homepage > .brand-values {
		padding-block: 1.5rem 2rem !important;
	}
}

/* ==========================================================================
   DESKTOP SECTION SPACING REFINEMENT
   Mobile spacing remains unchanged.
   ========================================================================== */

@media (min-width: 768px) {
	.site-main.homepage > .new-arrivals,
	.site-main.homepage > .best-sellers {
		padding-block: 2.75rem !important;
	}

	.site-main.homepage > .shop-by-category {
		padding-block: 2.25rem !important;
	}

	.site-main.homepage > .inside-story {
		padding-block: 2.25rem !important;
	}

	.site-main.homepage > .brand-values {
		padding-block: 2.25rem !important;
	}

	.new-arrivals__header,
	.best-sellers__header {
		margin-bottom: 1.5rem !important;
	}

	.new-arrivals__tabs,
	.best-sellers__tabs {
		margin-bottom: 1.5rem !important;
	}

	.new-arrivals__footer,
	.best-sellers__footer {
		margin-top: 1.5rem !important;
	}
}

@media (min-width: 1200px) {
	.site-main.homepage > .new-arrivals,
	.site-main.homepage > .best-sellers {
		padding-block: 2.5rem !important;
	}

	.site-main.homepage > .shop-by-category,
	.site-main.homepage > .inside-story,
	.site-main.homepage > .brand-values {
		padding-block: 2rem !important;
	}

	.new-arrivals__header,
	.best-sellers__header {
		margin-bottom: 1.35rem !important;
	}

	.new-arrivals__tabs,
	.best-sellers__tabs {
		margin-bottom: 1.35rem !important;
	}

	.new-arrivals__footer,
	.best-sellers__footer {
		margin-top: 1.35rem !important;
	}
}
