/* =============================================================================
   TTPixel Child Theme — Homepage Styles (home.css)
   Loaded ONLY on front page.
   ============================================================================= */

/* Container */
.ttp-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.ttp-homepage {
	background-color: #f8fafc;
	padding-bottom: 50px;
}

/* =============================================================================
   1. HERO BANNER SLIDER
   ============================================================================= */

.ttp-hero-section {
	padding-top: 20px;
	padding-bottom: 20px;
}

.ttp-hero-wrap {
	position: relative;
	width: 100%;
}

/* Full Width Hero Banner Option (Style 1 Edge-to-Edge) */
.ttp-hero-section--full-width {
	padding-top: 0;
	padding-bottom: 20px;
}

.ttp-hero-section--full-width .ttp-hero-full-container {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ttp-hero-section--full-width .ttp-hero-slider,
.ttp-hero-section--full-width .ttp-hero-slider__img {
	border-radius: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO STYLE 2 (1:1 SQUARE) & HERO STYLE 3 (16:9 WIDESCREEN) SPLIT LAYOUTS
   ══════════════════════════════════════════════════════════════════════════════ */
.ttp-hero-section--style-2 .ttp-hero-wrap,
.ttp-hero-section--style_2 .ttp-hero-wrap,
.ttp-hero-section--style-3 .ttp-hero-wrap,
.ttp-hero-section--style_3 .ttp-hero-wrap {
	display: flex;
	gap: 16px;
	align-items: stretch;
	width: 100%;
}

.ttp-hero-section--style-2 .ttp-hero-slider,
.ttp-hero-section--style_2 .ttp-hero-slider,
.ttp-hero-section--style-3 .ttp-hero-slider,
.ttp-hero-section--style_3 .ttp-hero-slider {
	flex: 1;
	min-width: 0;
	height: var(--ttp-hero-pc-h, 500px);
}

.ttp-hero-section--style-2 .ttp-hero-side-banners,
.ttp-hero-section--style_2 .ttp-hero-side-banners,
.ttp-hero-section--style-3 .ttp-hero-side-banners,
.ttp-hero-section--style_3 .ttp-hero-side-banners {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: var(--ttp-hero-pc-h, 500px);
	flex-shrink: 0;
}

/* Style 2: Auto-Square (1:1) Formula: (PC Height - gap) / 2 */
.ttp-hero-section--style-2 .ttp-hero-side-banners,
.ttp-hero-section--style_2 .ttp-hero-side-banners {
	width: calc((var(--ttp-hero-pc-h, 500px) - 16px) / 2);
	min-width: 200px;
}

/* Style 3: Widescreen (16:9) Formula: ((PC Height - gap) / 2) * (16 / 9) */
.ttp-hero-section--style-3 .ttp-hero-side-banners,
.ttp-hero-section--style_3 .ttp-hero-side-banners {
	width: calc(((var(--ttp-hero-pc-h, 500px) - 16px) / 2) * 16 / 9);
	max-width: 480px;
	min-width: 260px;
}

.ttp-hero-side-banner-card {
	flex: 1 1 0;
	min-height: 0;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #111827;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.ttp-hero-side-banner-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.ttp-hero-side-banner-card__link {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.ttp-hero-side-banner-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 12px;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ttp-hero-side-banner-card:hover .ttp-hero-side-banner-card__img {
	transform: scale(1.05);
}

@media (max-width: 991.98px) {
	.ttp-hero-section--style-2 .ttp-hero-side-banners,
	.ttp-hero-section--style_2 .ttp-hero-side-banners,
	.ttp-hero-section--style-3 .ttp-hero-side-banners,
	.ttp-hero-section--style_3 .ttp-hero-side-banners {
		display: none !important;
	}
	.ttp-hero-section--style-2 .ttp-hero-wrap,
	.ttp-hero-section--style_2 .ttp-hero-wrap,
	.ttp-hero-section--style-3 .ttp-hero-wrap,
	.ttp-hero-section--style_3 .ttp-hero-wrap {
		display: block !important;
	}
	.ttp-hero-section--style-2 .ttp-hero-slider,
	.ttp-hero-section--style_2 .ttp-hero-slider,
	.ttp-hero-section--style-3 .ttp-hero-slider,
	.ttp-hero-section--style_3 .ttp-hero-slider {
		width: 100% !important;
		height: auto !important;
		flex: none !important;
	}
}

.ttp-hero-slider {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	cursor: grab;
}

.ttp-hero-slider:active {
	cursor: grabbing;
}

.ttp-hero-slider__track {
	position: relative;
	width: 100%;
}

.ttp-hero-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	pointer-events: none;
}

.ttp-hero-slider__slide.is-active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
}

.ttp-hero-slider__link {
	display: block;
	width: 100%;
	height: 100%;
}

.ttp-hero-slider__picture {
	display: block;
	width: 100%;
	height: 100%;
}

.ttp-hero-slider__img {
	width: 100%;
	height: var(--ttp-hero-pc-h, 500px);
	max-height: var(--ttp-hero-pc-h, 500px);
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

/* Hero Controls */
button.ttp-hero-slider__arrow,
.ttp-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 32px !important;
	height: 32px !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	backdrop-filter: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #0f172a !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

button.ttp-hero-slider__arrow svg,
.ttp-hero-slider__arrow svg {
	width: 22px !important;
	height: 22px !important;
	stroke: #1e293b !important;
	color: #1e293b !important;
	transition: stroke 0.2s ease, transform 0.2s ease !important;
}

button.ttp-hero-slider__arrow:hover,
button.ttp-hero-slider__arrow:focus,
.ttp-hero-slider__arrow:hover,
.ttp-hero-slider__arrow:focus {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	transform: translateY(-50%) scale(1.2) !important;
}

button.ttp-hero-slider__arrow:hover svg,
button.ttp-hero-slider__arrow:focus svg,
.ttp-hero-slider__arrow:hover svg,
.ttp-hero-slider__arrow:focus svg {
	stroke: var(--ttpixel-color-primary, #2563eb) !important;
	color: var(--ttpixel-color-primary, #2563eb) !important;
}

.ttp-hero-slider__arrow--prev { left: 8px !important; }
.ttp-hero-slider__arrow--next { right: 8px !important; }

.ttp-hero-slider__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 8px;
}

.ttp-hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.ttp-hero-slider__dot.is-active {
	background: var(--ttpixel-color-primary, #2563eb);
	width: 28px;
	border-radius: 6px;
}

/* =============================================================================
   2. CATEGORIES SECTION (STYLE 1: CIRCLE SLIDER & STYLE 2: BOXED GRID)
   ============================================================================= */

.ttp-categories-section {
	padding: 16px 0 24px 0;
}

/* Category Section Header (Title + Subtitle + Divider) */
.ttp-cat-section-header {
	text-align: center;
	margin-bottom: 22px;
	position: relative;
}

.ttp-cat-section-header__title {
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.ttp-cat-section-header__subtitle {
	font-size: 13.5px;
	color: #64748b;
	margin: 0 0 10px 0;
	line-height: 1.45;
}

.ttp-cat-section-header__divider {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 140px;
	margin: 0 auto;
}

.ttp-cat-section-header__line {
	height: 1.5px;
	flex: 1;
	background: #e2e8f0;
	border-radius: 2px;
}

.ttp-cat-section-header__accent {
	width: 32px;
	height: 3.5px;
	background: var(--ttpixel-color-primary, #2563eb);
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.ttp-circle-cats-wrap {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	padding: 18px 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	border: 1px solid #f1f5f9;
}

.ttp-circle-cats__track {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 2px;
	cursor: grab;
	user-select: none;
}

.ttp-circle-cats__track.is-dragging {
	cursor: grabbing !important;
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
}

.ttp-circle-cats__track::-webkit-scrollbar {
	display: none;
}

.ttp-circle-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
	flex: 0 0 90px;
	scroll-snap-align: start;
	transition: transform 0.2s ease;
}

.ttp-circle-cat-item:hover {
	transform: translateY(-3px);
}

.ttp-circle-cat-item__img-wrap {
	width: var(--ttp-cat-pc-img-size, 74px);
	height: var(--ttp-cat-pc-img-size, 74px);
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttp-circle-cat-item:hover .ttp-circle-cat-item__img-wrap {
	border-color: var(--ttpixel-color-primary, #2563eb);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ttp-circle-cat-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ttp-circle-cat-item:hover .ttp-circle-cat-item__img {
	transform: scale(1.08);
}

.ttp-circle-cat-item__name {
	font-size: 12.5px;
	font-weight: 600;
	color: #1e293b;
	text-align: center;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

button.ttp-circle-cats__arrow,
.ttp-circle-cats__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: 1.5px solid #cbd5e1 !important;
	color: var(--ttpixel-color-primary, #2563eb) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

button.ttp-circle-cats__arrow svg,
.ttp-circle-cats__arrow svg {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	stroke: var(--ttpixel-color-primary, #2563eb) !important;
	color: var(--ttpixel-color-primary, #2563eb) !important;
	transition: stroke 0.2s ease, transform 0.2s ease !important;
}

button.ttp-circle-cats__arrow:hover,
button.ttp-circle-cats__arrow:focus,
.ttp-circle-cats__arrow:hover,
.ttp-circle-cats__arrow:focus {
	background: var(--ttpixel-color-primary, #2563eb) !important;
	background-color: var(--ttpixel-color-primary, #2563eb) !important;
	border-color: var(--ttpixel-color-primary, #2563eb) !important;
	color: var(--ttpixel-color-btn-text, #ffffff) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
	transform: translateY(-50%) scale(1.1) !important;
}

button.ttp-circle-cats__arrow:hover svg,
button.ttp-circle-cats__arrow:focus svg,
.ttp-circle-cats__arrow:hover svg,
.ttp-circle-cats__arrow:focus svg {
	stroke: var(--ttpixel-color-btn-text, #ffffff) !important;
	color: var(--ttpixel-color-btn-text, #ffffff) !important;
}

.ttp-circle-cats__arrow--prev { left: -10px !important; }
.ttp-circle-cats__arrow--next { right: -10px !important; }

/* =============================================================================
   2.2 STYLE 2: MODERN BOXED GRID CATEGORIES
   PC: 8 columns x 2 rows (16 items)
   Tablet: 5 columns x 3 rows (15 items, 16th hidden)
   Mobile: 3 columns x 5 rows (15 items, 16th hidden)
   ============================================================================= */

.ttp-grid-cats-wrap {
	width: 100%;
}

.ttp-grid-cats {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 12px;
	width: 100%;
}

.ttp-grid-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 8px 12px 8px;
	text-decoration: none !important;
	color: inherit;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.ttp-grid-cat-item:hover {
	transform: translateY(-4px);
	border-color: var(--ttpixel-color-primary, #2563eb);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.ttp-grid-cat-item__img-wrap {
	width: var(--ttp-cat-pc-img-size, 72px);
	aspect-ratio: var(--ttp-cat-aspect-ratio, 1 / 1);
	height: auto;
	max-width: 100%;
	border-radius: 10px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	padding: 6px;
	overflow: hidden;
	transition: background-color 0.2s ease, transform 0.25s ease;
}

.ttp-cat-fit-cover .ttp-grid-cat-item__img-wrap {
	padding: 0;
}

.ttp-grid-cat-item:hover .ttp-grid-cat-item__img-wrap {
	background: #f1f5f9;
}

.ttp-grid-cat-item__img {
	width: 100%;
	height: 100%;
	object-fit: var(--ttp-cat-img-fit, contain);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ttp-grid-cat-item:hover .ttp-grid-cat-item__img {
	transform: scale(1.1);
}

.ttp-grid-cat-item__name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.3;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
	transition: color 0.2s ease;
	width: 100%;
	min-height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ttp-grid-cat-item:hover .ttp-grid-cat-item__name {
	color: var(--ttpixel-color-primary, #2563eb);
}

/* Tablet Layout: 5 columns, 3 rows = 15 items, 16th item hidden */
/* NOTE: User requirement: Mobile and Tablet MUST share the same image size */
@media (max-width: 1024px) and (min-width: 641px) {
	.ttp-grid-cats {
		grid-template-columns: repeat(5, 1fr);
		gap: 10px;
	}

	.ttp-grid-cat-item:nth-child(n+16) {
		display: none !important;
	}

	.ttp-grid-cat-item {
		padding: 12px 6px 10px 6px;
	}

	.ttp-grid-cat-item__img-wrap {
		width: var(--ttp-cat-mob-img-size, 52px);
		aspect-ratio: var(--ttp-cat-aspect-ratio, 1 / 1);
		height: auto;
		max-width: 100%;
		margin-bottom: 8px;
	}

	.ttp-grid-cat-item__name {
		font-size: 12px;
		min-height: 30px;
	}
}

/* Mobile Layout: 3 columns, 5 rows = 15 items, 16th item hidden */
@media (max-width: 640px) {
	.ttp-cat-section-header {
		margin-bottom: 16px;
	}

	.ttp-cat-section-header__subtitle {
		font-size: 12.5px;
	}

	.ttp-grid-cats {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.ttp-grid-cat-item:nth-child(n+16) {
		display: none !important;
	}

	.ttp-grid-cat-item {
		padding: 10px 4px 8px 4px;
		border-radius: 10px;
	}

	.ttp-grid-cat-item__img-wrap {
		width: var(--ttp-cat-mob-img-size, 52px);
		aspect-ratio: var(--ttp-cat-aspect-ratio, 1 / 1);
		height: auto;
		max-width: 100%;
		border-radius: 8px;
		padding: 4px;
		margin-bottom: 6px;
	}

	.ttp-cat-fit-cover .ttp-grid-cat-item__img-wrap {
		padding: 0;
	}

	.ttp-grid-cat-item__name {
		font-size: 11.5px;
		line-height: 1.25;
		min-height: 28px;
	}
}

@media (max-width: 380px) {
	.ttp-grid-cats {
		gap: 6px;
	}

	.ttp-grid-cat-item {
		padding: 8px 3px 6px 3px;
	}

	.ttp-grid-cat-item__img-wrap {
		width: var(--ttp-cat-mob-img-size, 52px);
		aspect-ratio: var(--ttp-cat-aspect-ratio, 1 / 1);
		height: auto;
		max-width: 100%;
		margin-bottom: 4px;
	}

	.ttp-grid-cat-item__name {
		font-size: 10.5px;
	}
}

/* =============================================================================
   3. SINGLE CATEGORY PRODUCT CAROUSEL (5 items per row, 10 items total)
   ============================================================================= */

.ttp-home-cat-section {
	padding: 24px 0;
}

.ttp-home-cat-header {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 22px;
	padding-bottom: 0;
	border-bottom: 2px solid #e2e8f0;
}

.ttp-home-cat-header__left {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding-bottom: 10px;
}

.ttp-home-cat-header__left::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: var(--ttpixel-color-primary, #2563eb);
	border-radius: 3px 3px 0 0;
	z-index: 2;
}

.ttp-home-cat-header__title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.2;
}

.ttp-home-cat-header__count {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}

.ttp-home-cat-header__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ttpixel-color-primary, #2563eb);
	text-decoration: none !important;
	transition: gap 0.2s ease;
	background: #eff6ff;
	padding: 6px 14px;
	border-radius: 6px;
	margin-bottom: 6px;
}

.ttp-home-cat-header__more:hover {
	gap: 9px;
	background: var(--ttpixel-color-primary, #2563eb);
	color: var(--ttpixel-color-btn-text, #ffffff);
}

.ttp-cat-carousel-wrap {
	position: relative;
}

.ttp-cat-carousel__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 2px 10px 2px;
	cursor: grab;
	user-select: none;
}

.ttp-cat-carousel__track.is-dragging {
	cursor: grabbing !important;
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
}

.ttp-cat-carousel__track::-webkit-scrollbar {
	display: none;
}

/* 5 Products visible per row on desktop (calc 20% minus total gaps) */
.ttp-cat-carousel__slide {
	flex: 0 0 calc(20% - 12.8px);
	min-width: 210px;
	scroll-snap-align: start;
}

.ttp-cat-carousel__slide li.ttp-product-card-item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

.ttp-cat-carousel__slide .ttp-product-card {
	height: 100%;
}

.ttp-cat-carousel__arrow {
	display: none !important;
}

.ttp-cat-carousel__arrow:hover {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

.ttp-cat-carousel__arrow--prev { left: -16px; }
.ttp-cat-carousel__arrow--next { right: -16px; }

/* =============================================================================
   4. PROMO BANNERS SECTION (STYLE 1: FULL, STYLE 2: 1:1 SQUARE, STYLE 3: 16:9 WIDESCREEN)
   ============================================================================= */

.ttp-promo-grid-section {
	padding: 24px 0;
}

.ttp-promo-grid {
	display: flex;
	gap: 16px;
	align-items: stretch;
	width: 100%;
	height: var(--ttp-promo-pc-h, 440px);
}

/* Style 1: Full-Width Single Banner */
.ttp-promo-section--style-1 .ttp-promo-grid__full,
.ttp-promo-section--style_1 .ttp-promo-grid__full {
	width: 100%;
	height: var(--ttp-promo-pc-h, 440px);
}

/* Style 2 & 3: Split Layouts */
.ttp-promo-section--style-2 .ttp-promo-grid__main,
.ttp-promo-section--style_2 .ttp-promo-grid__main,
.ttp-promo-section--style-3 .ttp-promo-grid__main,
.ttp-promo-section--style_3 .ttp-promo-grid__main {
	flex: 1;
	min-width: 0;
	height: 100%;
}

.ttp-promo-section--style-2 .ttp-promo-grid__side,
.ttp-promo-section--style_2 .ttp-promo-grid__side,
.ttp-promo-section--style-3 .ttp-promo-grid__side,
.ttp-promo-section--style_3 .ttp-promo-grid__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	flex-shrink: 0;
}

/* Style 2: Auto-Square (1:1) Formula: (PC Height - gap) / 2 */
.ttp-promo-section--style-2 .ttp-promo-grid__side,
.ttp-promo-section--style_2 .ttp-promo-grid__side {
	width: calc((var(--ttp-promo-pc-h, 440px) - 16px) / 2);
	min-width: 180px;
}

/* Style 3: Widescreen (16:9) Formula: ((PC Height - gap) / 2) * (16 / 9) */
.ttp-promo-section--style-3 .ttp-promo-grid__side,
.ttp-promo-section--style_3 .ttp-promo-grid__side {
	width: calc(((var(--ttp-promo-pc-h, 440px) - 16px) / 2) * 16 / 9);
	max-width: 460px;
	min-width: 240px;
}

/* Cards & Card Content */
.ttp-promo-card {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #111827;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06);
	text-decoration: none !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.ttp-promo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.ttp-promo-card--full,
.ttp-promo-card--main {
	height: 100%;
}

.ttp-promo-card--stacked {
	flex: 1 1 0;
	height: calc((100% - 16px) / 2);
	min-height: 0;
}

.ttp-promo-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 12px;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ttp-promo-card:hover .ttp-promo-card__img {
	transform: scale(1.04);
}

.ttp-promo-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 60%);
	display: flex;
	align-items: flex-end;
	padding: 20px;
	pointer-events: none;
}

.ttp-promo-card__title {
	color: #ffffff;
	font-size: 1.15rem;
	font-weight: 700;
	text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* =============================================================================
   5. RESPONSIVE BREAKPOINTS
   ============================================================================= */

@media (max-width: 1200px) {
	.ttp-promo-grid {
		height: 380px;
		gap: 14px;
	}

	.ttp-promo-grid__col-60 {
		flex: 0 0 calc(58% - 7px);
		max-width: calc(58% - 7px);
	}

	.ttp-promo-grid__col-40 {
		flex: 0 0 calc(42% - 7px);
		max-width: calc(42% - 7px);
		gap: 14px;
	}

	.ttp-promo-card--stacked {
		height: calc((100% - 14px) / 2);
	}

	.ttp-cat-carousel__slide {
		flex: 0 0 calc(25% - 12px); /* 4 items on medium screens */
	}

	.ttp-hero-slider__img {
		max-height: none;
		height: auto;
	}
}

@media (max-width: 900px) {
	.ttp-hero-section {
		padding-top: 16px !important;
		padding-bottom: 16px !important;
	}

	.ttp-promo-grid-section {
		padding: 16px 0 !important;
	}

	.ttp-promo-grid {
		flex-direction: column !important;
		height: auto !important;
		gap: 12px !important;
	}

	.ttp-promo-grid__col-60,
	.ttp-promo-grid__col-40,
	.ttp-promo-grid__full,
	.ttp-promo-grid__main,
	.ttp-promo-grid__side {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 12px !important;
	}

	.ttp-promo-card--large,
	.ttp-promo-card--stacked,
	.ttp-promo-card--full,
	.ttp-promo-card--main,
	.ttp-promo-card {
		height: var(--ttp-promo-mob-h, 200px) !important;
		min-height: 0 !important;
		border-radius: 12px !important;
	}

	.ttp-promo-card__img {
		width: 100% !important;
		height: 100% !important;
		display: block !important;
		object-fit: cover !important;
		border-radius: 12px !important;
	}

	.ttp-cat-carousel__slide {
		flex: 0 0 calc(33.333% - 11px); /* 3 items on tablets */
	}
}

@media (max-width: 640px) {
	.ttp-hero-section {
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}

	.ttp-hero-slider__img {
		max-height: var(--ttp-hero-mob-h, 220px) !important;
		height: var(--ttp-hero-mob-h, 220px) !important;
		width: 100% !important;
		aspect-ratio: auto !important;
		object-fit: cover !important;
		display: block !important;
	}

	.ttp-promo-grid {
		gap: 10px !important;
	}

	.ttp-promo-grid__col-60,
	.ttp-promo-grid__col-40 {
		gap: 10px !important;
	}

	.ttp-promo-card,
	.ttp-promo-card--large,
	.ttp-promo-card--stacked {
		height: auto !important;
		min-height: 0 !important;
	}

	.ttp-cat-carousel__slide {
		flex: 0 0 calc(50% - 8px); /* 2 items on mobile */
		min-width: 165px;
	}

	.ttp-home-cat-header__title {
		font-size: 1.15rem;
	}

	.ttp-circle-cat-item {
		flex: 0 0 76px;
	}

	.ttp-circle-cat-item__img-wrap {
		width: var(--ttp-cat-mob-img-size, 62px);
		height: var(--ttp-cat-mob-img-size, 62px);
	}

	.ttp-circle-cat-item__name {
		font-size: 11.5px;
	}
}

/* =============================================================================
   AUTO-MARQUEE PRODUCT CAROUSEL SECTION
   ============================================================================= */

.ttp-marquee-section {
	margin: 12px 0 16px 0;
	position: relative;
}

.ttp-marquee-header {
	margin-bottom: 12px;
}

.ttp-marquee-title {
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ttp-marquee-viewport {
	overflow-x: auto;
	width: 100%;
	position: relative;
	border-radius: 12px;
	padding: 4px 0;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE 10+ */
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
}

.ttp-marquee-viewport::-webkit-scrollbar {
	display: none; /* Chrome/Safari/Edge */
}

.ttp-marquee-viewport:active {
	cursor: grabbing;
}

/* Track container for JS continuous marquee + Mouse drag */
.ttp-marquee-track {
	display: flex;
	align-items: center;
	gap: 16px;
	width: max-content;
}

/* Horizontal Landscape Product Card (Matches User Screenshot) */
.ttp-marquee-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.6s ease !important;
	text-decoration: none !important;
	flex-shrink: 0;

	/* PC / Desktop Default (≥1024px): 4.5 items visible (4 full + 1 half peek) */
	width: calc((1400px - 40px - (3.5 * 16px)) / 4.5);
	min-width: 285px;
	box-sizing: border-box;
}

.ttp-marquee-card:hover,
.ttp-marquee-card.is-focused {
	border-color: #2563eb !important;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
	transform: translateY(-3px) scale(1.03) !important;
	z-index: 2;
}

.ttp-marquee-card__img-wrap {
	width: 65px;
	height: 65px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #f1f5f9;
}

.ttp-marquee-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.ttp-marquee-card:hover .ttp-marquee-card__img-wrap img {
	transform: scale(1.06);
}

.ttp-marquee-card__info {
	flex: 1;
	min-width: 0;
}

.ttp-marquee-card__title {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	margin: 0 0 6px 0 !important;
	line-height: 1.3 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.ttp-marquee-card:hover .ttp-marquee-card__title,
.ttp-marquee-card.is-focused .ttp-marquee-card__title {
	color: #2563eb !important;
}

.ttp-marquee-card__price {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ttp-marquee-card__regular-price {
	font-size: 12px !important;
	color: #94a3b8 !important;
	text-decoration: line-through !important;
	margin: 0 !important;
}

.ttp-marquee-card__sale-price {
	font-size: 14.5px !important;
	font-weight: 800 !important;
	color: #f97316 !important;
	text-decoration: none !important;
	margin: 0 !important;
}

.ttp-marquee-card__sale-price bdi {
	color: #f97316 !important;
}

.ttp-marquee-card__save-tag {
	background: #fef2f2 !important;
	color: #ef4444 !important;
	font-size: 10.5px !important;
	font-weight: 700 !important;
	padding: 1px 5px !important;
	border-radius: 4px !important;
	border: 1px solid #fecaca !important;
	white-space: nowrap !important;
	display: inline-flex !important;
	align-items: center !important;
	margin-left: 2px !important;
}

.ttp-marquee-card__save-tag bdi {
	color: #ef4444 !important;
}

/* Tablet (768px - 1023px): 3 items visible */
@media (max-width: 1023.98px) {
	.ttp-marquee-card {
		width: calc((100vw - 40px - (2 * 14px)) / 3);
		min-width: 220px;
		padding: 8px 12px;
	}
}

/* Mobile (<768px): 1.5 items visible (Peek Carousel) so Save badge fits cleanly on 1 line */
@media (max-width: 767.98px) {
	.ttp-marquee-card {
		width: 75vw !important;
		max-width: 275px !important;
		min-width: 245px !important;
		padding: 9px 12px !important;
		gap: 10px !important;
	}

	.ttp-marquee-card__img-wrap {
		width: 56px !important;
		height: 56px !important;
	}

	.ttp-marquee-card__title {
		font-size: 13px !important;
	}

	.ttp-marquee-card__price {
		flex-wrap: nowrap !important;
		gap: 5px !important;
		align-items: center !important;
	}

	.ttp-marquee-card__regular-price {
		font-size: 11.5px !important;
	}

	.ttp-marquee-card__sale-price {
		font-size: 14px !important;
	}

	.ttp-marquee-card__save-tag {
		font-size: 10px !important;
		padding: 1px 4.5px !important;
		margin-left: 1px !important;
	}
}

/* =============================================================================
   6. BOTTOM CUSTOM PRODUCT GRID SECTION
   ============================================================================= */

.ttp-bottom-grid-section {
	padding: 28px 0;
	margin-top: 10px;
}

.ttp-bottom-grid-header {
	margin-bottom: 20px;
}

.ttp-bottom-grid-wrap .products {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ttp-bottom-grid-wrap .products::before,
.ttp-bottom-grid-wrap .products::after {
	display: none !important;
}

.ttp-bottom-grid-wrap .products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

@media (max-width: 1100px) {
	.ttp-bottom-grid-wrap .products {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 14px !important;
	}
}

@media (max-width: 640px) {
	.ttp-bottom-grid-wrap .products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE HERO BANNER VISIBILITY HELPERS
   Prevents desktop banners from appearing on mobile when no mobile banner is set
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
	.ttp-hero-section--desktop-only,
	.ttp-hero-slide--desktop-only {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.ttp-hero-slide--mobile-only {
		display: none !important;
	}
}



