/*
Theme Name: horusindustry
Theme URI: https://horusindustry.com
Author: Horus Industry
Author URI: https://horusindustry.com
Description: قالب متجر حورس للصناعات الإلكترونية — مصمم لـ Elementor و WooCommerce بتصميم شبيه بـ ZeroTech.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horusindustry
Tags: e-commerce, woocommerce, elementor, rtl-language-support, custom-menu, featured-images
*/

/* Base reset — Elementor handles most layout */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Cairo', Tahoma, Arial, sans-serif;
	background-color: #f5f5f5;
	color: #111111;
	direction: rtl;
	text-align: right;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.horus-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.horus-site-main {
	flex: 1;
}

/* Elementor full-width */
.elementor-page .horus-site-main,
.elementor-canvas .horus-site-main {
	padding: 0;
}

/* Sticky header from Elementor template */
.horus-header-sticky {
	position: sticky;
	top: 0;
	z-index: 9999;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ZeroTech-style WooCommerce overrides */
.woocommerce ul.products,
.horus-products-grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product,
.horus-products-grid li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	position: relative;
}

.woocommerce ul.products li.product:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px 4px;
	margin: 0;
	color: #111;
	line-height: 1.5;
}

.woocommerce ul.products li.product .price {
	padding: 0 16px 8px;
	color: #bb221e;
	font-weight: 700;
	font-size: 16px;
}

.woocommerce ul.products li.product .price del {
	color: #999;
	font-size: 13px;
	font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: #bb221e;
}

.woocommerce ul.products li.product img {
	border-radius: 0;
	margin: 0;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.woocommerce ul.products li.product .button,
.horus-whatsapp-btn {
	display: block !important;
	width: calc(100% - 32px) !important;
	margin: 8px 16px 16px !important;
	background: #22c55e !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px !important;
	font-family: 'Cairo', sans-serif !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-align: center !important;
	cursor: pointer;
	transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover,
.horus-whatsapp-btn:hover {
	background: #16a34a !important;
	color: #fff !important;
}

.horus-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #bb221e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 4px;
	z-index: 2;
}

/* Hide default cart in catalog mode */
.horus-catalog-mode .woocommerce-cart,
.horus-catalog-mode .checkout-button,
.horus-catalog-mode .add_to_cart_button,
.horus-catalog-mode .single_add_to_cart_button {
	display: none !important;
}

/* Single product */
.single-product .product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.single-product .horus-whatsapp-single {
	display: inline-block;
	background: #22c55e;
	color: #fff;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	margin-top: 20px;
}

.single-product .horus-whatsapp-single:hover {
	background: #16a34a;
	color: #fff;
}

.single-product .price {
	color: #bb221e;
	font-size: 24px;
	font-weight: 700;
}

/* Search form */
.horus-search-form {
	display: flex;
	align-items: center;
	background: #f0f0f0;
	border-radius: 8px;
	overflow: hidden;
	flex: 1;
}

.horus-search-form input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 16px;
	font-family: 'Cairo', sans-serif;
	font-size: 14px;
	outline: none;
}

.horus-search-form button {
	background: transparent;
	border: none;
	padding: 12px 16px;
	cursor: pointer;
	color: #666;
}

/* Category nav */
.horus-cat-nav {
	background: #111111;
}

.horus-cat-nav ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
	gap: 0;
}

.horus-cat-nav ul li a {
	display: block;
	padding: 14px 20px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

.horus-cat-nav ul li a:hover {
	background: #bb221e;
}

/* Service bar */
.horus-service-bar {
	background: #fff;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.horus-service-item {
	text-align: center;
	padding: 20px 10px;
}

.horus-service-item .icon {
	font-size: 28px;
	margin-bottom: 8px;
}

.horus-service-item h4 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.horus-service-item p {
	margin: 0;
	font-size: 12px;
	color: #666;
}

/* Sale banners */
.horus-sale-banner {
	background: #d4d4d4;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	padding: 24px;
}

.horus-sale-banner .sale-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 72px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 4px;
}

/* Section titles */
.horus-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.horus-section-title h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: #111;
}

.horus-limited-badge {
	background: #bb221e;
	color: #fff;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 20px;
	font-weight: 600;
}

/* Footer */
.horus-footer {
	background: #111;
	color: #ccc;
	padding: 48px 0 24px;
}

.horus-footer h3,
.horus-footer h4 {
	color: #fff;
	margin: 0 0 16px;
}

.horus-footer a {
	color: #ccc;
}

.horus-footer a:hover {
	color: #bb221e;
}

.horus-newsletter input[type="email"] {
	background: #222;
	border: 1px solid #444;
	color: #fff;
	padding: 12px 16px;
	border-radius: 6px;
	width: 100%;
	font-family: 'Cairo', sans-serif;
}

.horus-newsletter button {
	background: #bb221e;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-family: 'Cairo', sans-serif;
	font-weight: 600;
	margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
	.single-product .product {
		grid-template-columns: 1fr;
	}

	.woocommerce ul.products,
	.horus-products-grid ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.horus-cat-nav ul {
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
	}

	.horus-cat-nav ul li a {
		white-space: nowrap;
		padding: 12px 16px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products,
	.horus-products-grid ul.products {
		grid-template-columns: 1fr;
	}
}
