/**
 * High-Specificity Frontend Styles for TRP Extra Special Upsell
 * Prefixed with #trp-esu-section to prevent theme/builder overrides.
 */

#trp-esu-section {
	margin: 30px auto !important;
	max-width: 1200px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
	position: relative !important;
	color: #333 !important;
	display: block !important;
	box-sizing: border-box !important;
}

/* Header & Zoom Button */
#trp-esu-section .trp-esu-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 20px !important;
	padding: 0 5px !important;
	border: none !important;
	background: none !important;
	height: auto !important;
}

#trp-esu-section .trp-esu-title {
	font-size: var(--tes-title-font-size, 20px) !important;
	color: var(--tes-title-font-color, #333) !important;
	font-weight: 700 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	font-family: inherit !important;
	text-transform: none !important;
}

#trp-esu-section .trp-esu-zoom-btn {
	background: #f5f5f5 !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	padding: 6px 12px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #333 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	transition: background-color 0.2s !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	height: auto !important;
	width: auto !important;
	margin: 0 !important;
}

#trp-esu-section .trp-esu-zoom-btn:hover {
	background: #ebeeef !important;
}

#trp-esu-section .trp-esu-zoom-btn .zoom-icon {
	font-weight: 700 !important;
}

/* Category Tabs Scroll Bar */
#trp-esu-section .trp-esu-tabs-container {
	display: flex !important;
	align-items: center !important;
	position: relative !important;
	border-bottom: 1px solid #e0e0e0 !important;
	margin-bottom: 25px !important;
	padding: 0 35px !important;
	background: none !important;
	height: auto !important;
	box-sizing: border-box !important;
}

#trp-esu-section .trp-esu-tabs-wrapper {
	display: flex !important;
	overflow-x: auto !important;
	scroll-behavior: smooth !important;
	-webkit-overflow-scrolling: touch !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	list-style: none !important;
}

#trp-esu-section .trp-esu-tabs-wrapper::-webkit-scrollbar {
	display: none !important;
}

#trp-esu-section .trp-esu-tabs-wrapper {
	-ms-overflow-style: none !important;
	scrollbar-width: none !important;
}

#trp-esu-section .trp-esu-tab-btn {
	background: none !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	padding: 12px 18px !important;
	font-size: var(--tes-cat-font-size, 14px) !important;
	color: var(--tes-cat-font-color, #666) !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: all 0.2s ease-in-out !important;
	text-transform: none !important;
	margin: 0 !important;
	height: auto !important;
	width: auto !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
	box-sizing: border-box !important;
}

#trp-esu-section .trp-esu-tab-btn:hover {
	color: var(--tes-cat-active-color, #111) !important;
	background: none !important;
}

#trp-esu-section .trp-esu-tab-btn.active {
	color: var(--tes-cat-active-color, #111) !important;
	border-bottom: 2px solid var(--tes-cat-active-color, #111) !important;
	background: none !important;
}

/* Scroll Arrows for Tabs */
#trp-esu-section .trp-esu-nav-arrow {
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 50% !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	min-height: 28px !important;
	max-height: 28px !important;
	font-size: 18px !important;
	font-weight: bold !important;
	color: #666 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 99 !important;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s !important;
}

#trp-esu-section .trp-esu-nav-arrow:hover {
	background: #f5f5f5 !important;
	color: #111 !important;
}

#trp-esu-section .trp-esu-nav-arrow.arrow-left {
	left: 0px !important;
}

#trp-esu-section .trp-esu-nav-arrow.arrow-right {
	right: 0px !important;
}

#trp-esu-section .trp-esu-nav-arrow.hidden {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Categories Rows List */
#trp-esu-section .trp-esu-categories-rows {
	display: flex !important;
	flex-direction: column !important;
	gap: 35px !important;
	width: 100% !important;
}

#trp-esu-section .trp-esu-cat-row {
	display: flex !important;
	flex-direction: column !important;
	scroll-margin-top: 80px !important;
	position: relative !important;
	width: 100% !important;
}

#trp-esu-section .trp-esu-cat-row-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	margin: 0 0 15px 0 !important;
	color: #333 !important;
	text-transform: capitalize !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
	font-family: inherit !important;
}

/* Products Slider Layout */
#trp-esu-section .trp-esu-slider-container {
	position: relative !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

#trp-esu-section .trp-esu-products-slider {
	display: flex !important;
	gap: 15px !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	scroll-behavior: smooth !important;
	-webkit-overflow-scrolling: touch !important;
	padding: 5px 0 !important;
	width: 100% !important;
	margin: 0 !important;
	border: none !important;
	background: none !important;
	list-style: none !important;
}

#trp-esu-section .trp-esu-products-slider::-webkit-scrollbar {
	display: none !important;
}
#trp-esu-section .trp-esu-products-slider {
	-ms-overflow-style: none !important;
	scrollbar-width: none !important;
}

/* Slider Arrows */
#trp-esu-section .trp-esu-slider-arrow {
	background: rgba(255,255,255,0.95) !important;
	border: 1px solid #dcdcdc !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	font-size: 22px !important;
	font-weight: bold !important;
	color: #333 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 99 !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s !important;
}

#trp-esu-section .trp-esu-slider-arrow:hover {
	background: #ffffff !important;
	transform: translateY(-50%) scale(1.05) !important;
}

#trp-esu-section .trp-esu-slider-arrow.arrow-left {
	left: -18px !important;
}

#trp-esu-section .trp-esu-slider-arrow.arrow-right {
	right: -18px !important;
}

#trp-esu-section .trp-esu-slider-arrow.hidden {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Product Card */
#trp-esu-section .trp-esu-product-card {
	flex: 0 0 calc(20% - 12px) !important;
	min-width: 200px !important;
	scroll-snap-align: start !important;
	background: #ffffff !important;
	border: 1px solid #ebeeef !important;
	border-radius: 4px !important;
	padding: 12px !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}

@media (max-width: 1024px) {
	#trp-esu-section .trp-esu-product-card {
		flex: 0 0 calc(33.333% - 10px) !important;
	}
}

@media (max-width: 768px) {
	#trp-esu-section .trp-esu-product-card {
		flex: 0 0 calc(50% - 8px) !important;
		min-width: 160px;
	}
	#trp-esu-section .trp-esu-slider-arrow {
		display: none !important; /* Hide on mobile touch screens */
	}
}

#trp-esu-section .trp-esu-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	border-color: #d1d5db !important;
}

#trp-esu-section .trp-esu-product-image {
	width: 100% !important;
	position: relative !important;
	padding-top: 100% !important; /* 1:1 Square */
	margin-bottom: 12px !important;
	overflow: hidden !important;
	background: #f9f9f9 !important;
	border-radius: 2px !important;
}

#trp-esu-section .trp-esu-product-image img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.3s !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

#trp-esu-section .trp-esu-product-card:hover .trp-esu-product-image img {
	transform: scale(1.04) !important;
}

#trp-esu-section .trp-esu-product-info {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	margin-bottom: 12px !important;
	flex-grow: 1 !important;
	text-align: left !important;
}

#trp-esu-section .trp-esu-product-title {
	font-size: var(--tes-prod-title-font-size, 14px) !important;
	color: var(--tes-prod-title-color, #333) !important;
	font-weight: 500 !important;
	margin: 0 !important;
	line-height: 1.4 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	min-height: 38px !important;
	font-family: inherit !important;
	padding: 0 !important;
	text-transform: none !important;
}

#trp-esu-section .trp-esu-product-price {
	font-size: var(--tes-prod-price-font-size, 16px) !important;
	color: var(--tes-prod-price-color, #111) !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
}

#trp-esu-section .trp-esu-product-price del {
	font-weight: 400 !important;
	color: #999 !important;
	font-size: 0.85em !important;
	text-decoration: line-through !important;
}

#trp-esu-section .trp-esu-product-price ins {
	text-decoration: none !important;
	background: none !important;
	padding: 0 !important;
	color: var(--tes-prod-price-color, #111) !important;
	font-weight: 700 !important;
}

/* ADD Button and Quantity selector wrapper */
#trp-esu-section .trp-esu-product-action {
	position: relative !important;
	width: 100% !important;
	margin-top: auto !important;
}

#trp-esu-section .trp-esu-add-btn {
	width: 100% !important;
	background-color: var(--tes-btn-bg-color, #ffffff) !important;
	color: var(--tes-btn-text-color, #111111) !important;
	border: 1px solid var(--tes-btn-border-color, #111111) !important;
	border-radius: 4px !important;
	padding: 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s !important;
	text-align: center !important;
	box-shadow: none !important;
	text-transform: uppercase !important;
	height: auto !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	display: block !important;
}

#trp-esu-section .trp-esu-add-btn:hover {
	background-color: var(--tes-btn-text-color, #111111) !important;
	color: var(--tes-btn-bg-color, #ffffff) !important;
}

#trp-esu-section .trp-esu-add-btn.hidden {
	display: none !important;
}

/* Black Quantity Box selector */
#trp-esu-section .trp-esu-qty-selector {
	display: none; /* Controlled via JS adding .active */
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	background-color: #111111 !important;
	color: #ffffff !important;
	border: 1px solid #111111 !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	height: 38px !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
}

#trp-esu-section .trp-esu-qty-selector.active {
	display: flex !important;
}

#trp-esu-section .trp-esu-qty-btn {
	background: none !important;
	border: none !important;
	color: #ffffff !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	width: 35px !important;
	height: 100% !important;
	min-width: 35px !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.15s !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

#trp-esu-section .trp-esu-qty-btn:hover {
	background-color: #222222 !important;
}

#trp-esu-section .trp-esu-qty-value {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	user-select: none !important;
}

/* Bottom Sticky Add to Cart Bar */
.trp-esu-sticky-bar {
	position: fixed !important;
	bottom: -100px !important;
	left: 0 !important;
	width: 100% !important;
	z-index: 9999 !important;
	background-color: rgba(17, 17, 17, 0.95) !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
	padding: 12px 24px !important;
	box-sizing: border-box !important;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
	display: flex !important;
	justify-content: center !important;
}

.trp-esu-sticky-bar.visible {
	bottom: 0 !important;
}

.trp-esu-sticky-inner {
	max-width: 1200px !important;
	width: 100% !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	gap: 20px !important;
}

.trp-esu-sticky-title {
	font-size: 14px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
}

.trp-esu-sticky-submit-btn {
	background-color: var(--tes-sticky-btn-bg, #111111) !important;
	color: var(--tes-sticky-btn-color, #ffffff) !important;
	border: 1px solid #ffffff !important;
	border-radius: 4px !important;
	padding: 12px 28px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	transition: background-color 0.2s, color 0.2s, transform 0.1s !important;
	height: auto !important;
	width: auto !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.trp-esu-sticky-submit-btn:hover {
	background-color: #ffffff !important;
	color: #111111 !important;
}

.trp-esu-sticky-submit-btn:active {
	transform: scale(0.98) !important;
}

.trp-esu-sticky-submit-btn .cart-icon {
	width: 16px !important;
	height: 16px !important;
	display: inline-block !important;
}

/* Animations */
@keyframes trpFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.trp-esu-product-card {
	animation: trpFadeIn 0.3s ease-out forwards !important;
}

/* Handle CSS variables zoom effect */
.trp-esu-section.zoomed {
	--tes-prod-title-font-size: 16px;
	--tes-prod-price-font-size: 18px;
}

.trp-esu-section.zoomed .trp-esu-product-card {
	flex: 0 0 calc(25% - 12px) !important;
}

@media (max-width: 1024px) {
	.trp-esu-section.zoomed .trp-esu-product-card {
		flex: 0 0 calc(50% - 10px) !important;
	}
}
