/**
 * ZeroTech-inspired additional styles for horusindustry theme.
 */

/* Header layout */
.horus-elementor-template.horus-template-horusindustry-header .elementor-section:first-child .elementor-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 12px 24px;
}

.horus-elementor-template.horus-template-horusindustry-header .elementor-widget-shortcode {
	flex: 1;
	min-width: 200px;
}

.horus-header-top {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 24px;
	background: #fff;
	max-width: 1400px;
	margin: 0 auto;
}

.horus-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.horus-header-actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	color: #333;
	transition: background 0.2s;
}

.horus-header-actions a:hover {
	background: #f0f0f0;
}

.horus-login-btn {
	background: #111 !important;
	color: #fff !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	width: auto !important;
	height: auto !important;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.horus-login-btn:hover {
	background: #333 !important;
}

/* Hero slider */
.horus-hero-slider {
	background: #1a1a2e;
	min-height: 360px;
	border-radius: 0;
	position: relative;
	overflow: hidden;
}

.horus-hero-slide {
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	position: relative;
}

.horus-hero-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(17, 17, 17, 0.6));
}

.horus-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	padding: 40px 20px;
}

.horus-hero-content h2 {
	font-size: 36px;
	font-weight: 900;
	margin: 0 0 12px;
}

.horus-hero-content p {
	font-size: 18px;
	opacity: 0.9;
	margin: 0;
}

/* Category carousel cards */
.horus-category-card {
	background: #e8e8e8;
	border-radius: 12px;
	padding: 24px 16px;
	text-align: center;
	min-width: 160px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.horus-category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.horus-category-card img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin-bottom: 12px;
}

.horus-category-card span {
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.horus-categories-row {
	display: flex;
	gap: 16px;
	padding: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.horus-categories-row .horus-category-card {
	scroll-snap-align: start;
	flex-shrink: 0;
}

/* Promo banners grid */
.horus-promo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 0 24px 32px;
	max-width: 1400px;
	margin: 0 auto;
}

.horus-promo-card {
	background: #c8c8c8;
	border-radius: 12px;
	min-height: 300px;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 24px;
}

.horus-promo-card .bg-sale {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 80px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.45);
	letter-spacing: 6px;
}

.horus-promo-card img {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	max-height: 70%;
	object-fit: contain;
}

.horus-promo-card h3 {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Products section */
.horus-products-section {
	padding: 32px 24px;
	max-width: 1400px;
	margin: 0 auto;
}

/* About & Contact */
.horus-about-section,
.horus-contact-section {
	padding: 48px 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.horus-about-section {
	background: #fff;
}

.horus-contact-section {
	background: #f9f9f9;
}

.horus-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}

.horus-contact-item h5 {
	margin: 0 0 8px;
	color: #bb221e;
	font-size: 14px;
}

.horus-contact-item p {
	margin: 0;
	color: #333;
}

/* Elementor section helpers */
.elementor-section.horus-full-width > .elementor-container {
	max-width: 1400px !important;
}

.horus-dark-section {
	background-color: #111111 !important;
}

.horus-light-section {
	background-color: #ffffff !important;
}

.horus-gray-section {
	background-color: #f5f5f5 !important;
}

/* Hide WooCommerce cart UI in catalog mode */
.horus-catalog-mode .widget_shopping_cart,
.horus-catalog-mode .woocommerce-mini-cart,
.horus-catalog-mode .wc-block-mini-cart,
.horus-catalog-mode .added_to_cart,
.horus-catalog-mode .woocommerce-notices-wrapper {
	display: none !important;
}

body.horus-catalog-mode .elementor-widget-woocommerce-menu-cart {
	display: none !important;
}

/* Hide any residual cart popup */
.horus-catalog-mode .widget_shopping_cart_content,
.horus-catalog-mode #woo-cart-panel,
.horus-catalog-mode #woo-popup-wrap,
.horus-catalog-mode .woocommerce-cart-popup,
.horus-catalog-mode .responsive-addons-woo-cart,
.horus-catalog-mode .cart-popup,
.horus-catalog-mode [class*="cart-panel"],
.horus-catalog-mode [class*="mini-cart"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
.horus-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 16px 0;
}

.horus-carousel-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
}

.horus-carousel-dots span.active {
	background: #bb221e;
}

@media (max-width: 992px) {
	.horus-promo-grid {
		grid-template-columns: 1fr;
	}

	.horus-contact-grid {
		grid-template-columns: 1fr;
	}

	.horus-header-top {
		flex-wrap: wrap;
	}
}

@media (max-width: 768px) {
	.horus-hero-content h2 {
		font-size: 24px;
	}

	.horus-hero-slider,
	.horus-hero-slide {
		min-height: 240px;
	}
}
