:root 
{
	--primary-orange: #ff9900;
	--primary-blue: #232f3e;
	--light-gray: #f3f3f3;
	--border-gray: #ddd;
	--topmost-header: #f8f9fa;
}

.navbar-custom 
{
	background-color: var(--topmost-header);
	border-bottom: 3px solid var(--primary-orange);
	
	min-height: 60px;
}

.navbar-custom .navbar-nav .nav-link 
{
	color: #374151 !important;
}

.navbar-custom .navbar-brand 
{
	color: #374151 !important;
}		

.navbar-brand img 
{
	height: 35px;
}

.search-bar 
{
	position: relative;
}

.search-bar input 
{
	border-radius: 4px 0 0 4px;
	border-right: none;
}

.search-bar .btn 
{
	border-radius: 0 4px 4px 0;
	background-color: #febd69;
	border-color: #febd69;
	color: #000;
}

.category-dropdown 
{
	border-radius: 4px 0 0 4px;
	border-right: 1px solid #ccc;
	background: #f3f3f3;
}

.hero-section 
{
	color: white;
	padding: 100px 0;
	position: relative;
	overflow: hidden;
	transition: all 1s ease-in-out;
}

/* Background Style 1 - Animated Gradient with Floating Elements */
.hero-bg-1 
{
	background: linear-gradient(-45deg, #232f3e, #37475a, #ff9900, #ffb84d);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

.hero-bg-1::before 
{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="70" r="1.2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="0.8" fill="rgba(255,255,255,0.1)"/></svg>');
	animation: float 20s linear infinite;
}

@keyframes gradientShift 
{
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes float 
{
	from { transform: translateY(100vh) rotate(0deg); }
	to { transform: translateY(-100vh) rotate(360deg); }
}

/* Background Style 2 - Trooworths Showcase */
.hero-bg-2 
{
	background: linear-gradient(135deg, rgba(35,47,62,0.9), rgba(35,47,62,0.7)), 
				url('../images/splash.jpg?w=1200&h=600&fit=crop') center/cover;
}

/* Background Style 3 - Geometric Pattern */
.hero-bg-3 
{
	background: var(--primary-blue);
	background-image: 
		radial-gradient(circle at 25% 25%, rgba(255,153,0,0.3) 0%, transparent 50%),
		radial-gradient(circle at 75% 75%, rgba(255,153,0,0.2) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(255,153,0,0.1) 0%, transparent 30%);
}

.hero-bg-3::after 
{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M0 30h60M30 0v60" stroke="rgba(255,255,255,0.08)" stroke-width="1"/><circle cx="30" cy="30" r="8" stroke="rgba(255,153,0,0.1)" stroke-width="1" fill="none"/></svg>');
	animation: patternMove 25s linear infinite;
}

.hero-bg-4 
{
	background: linear-gradient(135deg, rgba(35,47,62,0.9), rgba(35,47,62,0.7)), 
				url('../images/trooworths-special.jpg?w=1200&h=600&fit=crop') center/cover;
}

@keyframes patternMove 
{
	from { transform: translate(0, 0); }
	to { transform: translate(60px, 60px); }
}

/* Smooth transitions between backgrounds */
.hero-section.transitioning 
{
	transition: all 1.5s ease-in-out;
}

.category-card 
{
	transition: transform 0.3s ease;
	border: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card:hover 
{
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.product-card 
{
	transition: transform 0.3s ease;
	border: 1px solid var(--border-gray);
	height: 100%;
}

.product-card:hover 
{
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image 
{
	height: 200px;
	object-fit: cover;
	width: 100%;
}

.price 
{
	font-size: 1.2em;
	font-weight: bold;
	color: #B12704;
}

.original-price 
{
	text-decoration: line-through;
	color: #666;
	font-size: 0.9em;
}

.rating 
{
	color: var(--primary-orange);
}

.cart-badge 
{
	position: absolute;
	top: -8px;
	right: -8px;
	background: #dc3545;
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 0.8em;
}

.footer-custom 
{
	background-color: var(--primary-blue);
	color: white;
}

.btn-add-to-cart 
{
	background-color: var(--primary-orange);
	border-color: var(--primary-orange);
	color: #000;
	font-weight: bold;
}

.btn-add-to-cart:hover 
{
	background-color: #e68900;
	border-color: #e68900;
	color: #000;
}

.deals-section 
{
	background-color: var(--light-gray);
}

.deal-badge 
{
	position: absolute;
	top: 10px;
	left: 10px;
	background: #dc3545;
	color: white;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 0.8em;
	font-weight: bold;
}

.sidebar 
{
	background-color: #f8f9fa;
	min-height: 500px;
}

.filter-section 
{
	border-bottom: 1px solid var(--border-gray);
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.footer-custom 
{
	background-color: #232f3e;
	color: white;
}

.footer-custom a:hover 
{
	color: #ff9900 !important;
	transition: color 0.3s ease;
}

.footer-custom a:hover i 
{
	transform: scale(1.1);
	transition: transform 0.3s ease;
}

.payment-option 
{
	transition: transform 0.3s ease, color 0.3s ease;
	cursor: pointer;
	padding: 10px;
	text-align: center;
	min-width: 80px;
}

.payment-option:hover 
{
	transform: translateY(-3px);
}

.payment-option:hover i 
{
	color: #ff9900 !important;
}



/* Category Section Scroll */
.categories-wrapper 
{
	position: relative;
	padding: 0 50px; /* Space for arrow buttons */
}

.categories-scroll-container 
{
	display: flex;
	overflow-x: hidden;
	overflow-y: hidden;
	scroll-behavior: smooth;
	gap: 1rem;
	padding: 10px 0;
	-ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
	scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

.categories-scroll-container::-webkit-scrollbar 
{
	display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
}

.category-item 
{
	flex: 0 0 auto;
	width: 200px; /* Fixed width for each category */
}

.category-card 
{
	cursor: pointer;
	user-select: none;
}

.category-card:hover 
{
	background-color: #f8f9fa;
}

.category-card:active 
{
	transform: translateY(-3px);
}

.scroll-arrow 
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid #ddd;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-arrow:hover 
{
	background: #ff9900;
	border-color: #ff9900;
	color: white;
	box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.scroll-arrow:active 
{
	transform: translateY(-50%) scale(0.95);
}

.scroll-arrow-left 
{
	left: 5px;
}

.scroll-arrow-right 
{
	right: 5px;
}

.scroll-arrow.disabled 
{
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) 
{
	.categories-wrapper 
	{
		padding: 0 40px;
	}
	
	.category-item 
	{
		width: 160px;
	}
	
	.scroll-arrow 
	{
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
	}
}



/* Account Dropdown Menu */
.account-dropdown 
{
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 250px;
	z-index: 1000;
	margin-top: 8px;
	animation: dropdownFadeIn 0.2s ease-in-out;
}

@keyframes dropdownFadeIn 
{
	from 
	{
		opacity: 0;
		transform: translateY(-10px);
	}
	to 
	{
		opacity: 1;
		transform: translateY(0);
	}
}

.account-dropdown::before 
{
	content: '';
	position: absolute;
	top: -8px;
	right: 20px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid white;
}

.account-dropdown-header 
{
	padding: 12px 16px;
	border-bottom: 1px solid #e7e7e7;
	color: #0f1111;
	font-size: 14px;
	font-weight: 700;
	background-color: #f7f7f7;
	border-radius: 4px 4px 0 0;
}

.account-dropdown-item 
{
	display: block;
	padding: 10px 16px;
	color: #0f1111;
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.2s ease;
	border-left: 3px solid transparent;
}

.account-dropdown-item:hover 
{
	background-color: #f3f3f3;
	color: #c7511f;
	border-left-color: #ff9900;
}

.account-dropdown-item i 
{
	width: 20px;
	color: #565959;
}

.account-dropdown-item:hover i 
{
	color: #ff9900;
}

.account-dropdown-divider 
{
	height: 1px;
	background-color: #e7e7e7;
	margin: 8px 0;
}

/* Rotate caret when dropdown is open */
.account-caret-up 
{
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}



/*  Need Help Call Section */
.help-contact-box 
{
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #ff9900 0%, #ffb84d 100%);
	padding: 8px 16px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
	transition: all 0.3s ease;
	white-space: nowrap;
	margin-right: 5px;
}

.help-contact-box:hover 
{
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
	background: linear-gradient(135deg, #ffb84d 0%, #ff9900 100%);
}

.help-contact-box i 
{
	color: #232f3e;
	font-size: 1.1em;
	animation: ring 2s ease-in-out infinite;
}

@keyframes ring 
{
	0%, 100% { transform: rotate(0deg); }
	10%, 30% { transform: rotate(-10deg); }
	20%, 40% { transform: rotate(10deg); }
}

.help-label 
{
	font-size: 0.75em;
	color: #232f3e;
	font-weight: 600;
	margin-right: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.help-number 
{
	font-size: 1em;
	font-weight: 700;
	color: #232f3e;
	text-decoration: none;
	letter-spacing: 0.5px;
}

.help-number:hover 
{
	color: #000;
	text-decoration: underline;
}

/* Responsive design */
@media (max-width: 992px) 
{
	.help-contact-box 
	{
		padding: 6px 12px;
	}
	
	.help-label 
	{
		display: none;
	}
	
	.help-number 
	{
		font-size: 0.9em;
	}
}

@media (max-width: 768px) 
{
	.help-contact-box 
	{
		padding: 4px 10px;
	}
	
	.help-number 
	{
		font-size: 0.85em;
	}
}