/* Royal Sales Agency - Professional Responsive Styles */

:root {
	--rsa-primary: #F37021;
	--rsa-dark: #1a1a1a;
	--primary: #F37021;
	--primary-100: #e0651d;
	--primary--100: #f47d35;
	--primary-rgba-10: rgba(243, 112, 33, 0.1);
	--primary-rgba-20: rgba(243, 112, 33, 0.2);
}

/* Base fixes */
html { scroll-behavior: smooth; }
body {
	overflow-x: hidden;
	font-family: 'Poppins', sans-serif;
}
img { max-width: 100%; height: auto; }
.container { padding-left: 15px; padding-right: 15px; }

/* Header */
#header { position: relative; z-index: 1000; }
.custom-header-top-nav-background {
	background-color: var(--rsa-dark) !important;
}
#header .header-body { border-bottom: 1px solid #eee; }
#header .header-logo img {
	max-height: 48px;
	width: auto;
}
#header .header-container { height: auto !important; min-height: 70px; }
#header .header-row { align-items: center; }
#header .header-nav-main nav { padding: 10px 0; }

/* Get Quote in nav - after Contact Us */
#header .nav-link-quote {
	background: var(--rsa-primary) !important;
	color: #fff !important;
	border-radius: 4px;
	padding: 8px 18px !important;
	margin-left: 8px;
	font-weight: 600 !important;
}
#header .nav-link-quote:hover,
#header .nav-link-quote.active {
	background: #e0651d !important;
	color: #fff !important;
}
#header .rsa-hamburger {
	border: 1px solid #ddd;
	background: var(--rsa-primary);
	color: #fff;
	padding: 10px 14px;
	border-radius: 4px;
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
#header .rsa-hamburger:hover,
#header .rsa-hamburger:focus {
	background: #e0651d;
	color: #fff;
}

/* Custom Mobile Navigation */
.rsa-mobile-nav-wrap {
	width: 100%;
	position: relative;
	z-index: 99999;
}
.rsa-mobile-nav {
	background: #fff;
	border-top: 3px solid var(--rsa-primary);
	box-shadow: 0 12px 40px rgba(0,0,0,0.12);
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}
.rsa-mobile-link {
	display: block;
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: #333 !important;
	text-decoration: none;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	text-align: left;
	cursor: pointer;
}
.rsa-mobile-link:hover,
.rsa-mobile-link.active {
	color: var(--rsa-primary) !important;
	background: #fafafa;
}
.rsa-mobile-link.rsa-mobile-products-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.rsa-mobile-link.rsa-mobile-products-toggle i {
	transition: transform 0.2s ease;
	font-size: 0.75rem;
}
.rsa-mobile-nav.rsa-products-open .rsa-mobile-products-toggle i {
	transform: rotate(180deg);
}
.rsa-mobile-categories {
	display: none;
	background: #fafafa;
	padding: 4px 0;
	border-bottom: 1px solid #f0f0f0;
}
.rsa-mobile-nav.rsa-products-open .rsa-mobile-categories {
	display: block;
}
.rsa-mobile-cat-link {
	display: block;
	padding: 10px 20px 10px 32px;
	font-size: 0.9rem;
	color: #555 !important;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}
.rsa-mobile-cat-link:hover {
	color: var(--rsa-primary) !important;
	background: #fff;
}
.rsa-mobile-link.rsa-mobile-cta {
	background: var(--rsa-primary) !important;
	color: #fff !important;
	text-align: center;
	margin: 12px 16px;
	width: calc(100% - 32px);
	border-radius: 4px;
	border-bottom: none;
}
.rsa-mobile-link.rsa-mobile-cta:hover {
	background: #e0651d !important;
	color: #fff !important;
}

/* Mega Menu - Products Hover Dropdown */
#header,
#header .header-body,
#header .header-container,
#header .header-nav-main,
#header .header-nav,
#header .header-column {
	overflow: visible !important;
}
#header .header-nav-main .nav > li {
	position: relative;
}
.rsa-mega-menu {
	position: static !important;
}
.rsa-mega-trigger .rsa-chevron {
	font-size: 0.6rem;
	transition: transform 0.2s;
}
.rsa-mega-menu:hover .rsa-chevron {
	transform: rotate(180deg);
}
.rsa-mega-dropdown {
	display: none;
	position: absolute;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	min-width: 720px;
	max-width: 960px;
	top: 100%;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
	border-top: 3px solid var(--rsa-primary);
	border-radius: 0 0 8px 8px;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.rsa-mega-menu:hover .rsa-mega-dropdown {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
.rsa-cat-item {
	display: block;
	text-align: center;
	text-decoration: none;
	color: #333;
	padding: 12px 8px;
	border-radius: 8px;
	transition: all 0.2s;
}
.rsa-cat-item:hover {
	background: var(--primary-rgba-10);
	color: var(--rsa-primary);
	transform: translateY(-3px);
}
.rsa-cat-img {
	width: 80px;
	height: 80px;
	margin: 0 auto 10px;
	border-radius: 8px;
	overflow: hidden;
	background: #f8f8f8;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rsa-cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rsa-cat-item strong {
	font-size: 0.82rem;
	display: block;
	line-height: 1.3;
}

/* Legacy mega menu - hide */
.mega-menu-content { display: none !important; }

/* Hero Slider */
.hero-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
}
.hero-slider .owl-carousel,
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item {
	width: 100%;
}
.hero-slider .owl-stage-outer {
	overflow: hidden !important;
}
.hero-slider .slide-item {
	min-height: 460px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: center;
}
.hero-slider .slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.58) 50%, rgba(0,0,0,0.4) 100%);
}
.hero-slider .slide-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 72px 0 56px;
}
.hero-slider h2 {
	font-size: clamp(1.45rem, 5.5vw, 2.75rem) !important;
	line-height: 1.25 !important;
	word-break: break-word;
	margin-bottom: 0.75rem;
}
.hero-slider p {
	font-size: clamp(0.875rem, 2.6vw, 1.1rem) !important;
	line-height: 1.55 !important;
	margin-bottom: 1.25rem !important;
	max-width: 36rem;
}
.hero-slide-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.hero-slide-actions .btn {
	margin: 0 !important;
}
.hero-slider .owl-nav button {
	background: rgba(255,255,255,0.2) !important;
	border-radius: 50%;
	width: 44px;
	height: 44px;
}
.hero-slider .owl-dots {
	margin-top: 0;
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	z-index: 5;
}
.hero-slider .owl-dot span {
	background: rgba(255,255,255,0.45) !important;
}
.hero-slider .owl-dot.active span {
	background: var(--rsa-primary) !important;
}

/* Stats Bar */
.stats-bar { background: var(--rsa-primary); }
.stats-bar .stat-item {
	padding: 20px 10px;
	text-align: center;
	border-right: 1px solid rgba(255,255,255,0.2);
}
.stats-bar .stat-item:last-child { border-right: none; }
.stats-bar .stat-number {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 700;
	color: #fff;
	line-height: 1;
}
.stats-bar .stat-label {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.9);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
}

/* Category Cards */
.category-card {
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.07);
	height: 100%;
}
.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 35px rgba(243,112,33,0.12);
}
.category-card .cat-img {
	height: 200px;
	background: #f0f0f0;
	overflow: hidden;
	padding: 0;
}
.category-card .cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.category-card .cat-body { padding: 18px; }
.category-card .product-count {
	font-size: 0.8rem;
	color: var(--rsa-primary);
	font-weight: 600;
}

/* Product Cards */
.product-card-ec {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.25s;
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.product-card-ec:hover {
	border-color: var(--rsa-primary);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.product-card-ec .product-img {
	height: 200px;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	position: relative;
}
.product-card-ec .product-img img {
	max-height: 175px;
	max-width: 100%;
	object-fit: contain;
}
.product-card-ec .brand-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--rsa-dark);
	color: #fff;
	font-size: 0.65rem;
	padding: 2px 7px;
	border-radius: 3px;
	font-weight: 600;
}
.product-card-ec .product-body {
	padding: 14px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.product-card-ec .product-name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card-ec .product-model { font-size: 0.75rem; color: #999; }
.product-card-ec .product-specs {
	font-size: 0.75rem;
	color: #666;
	margin: 6px 0;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card-ec .btn-enquire { width: 100%; font-size: 0.82rem; padding: 8px; }

/* Product Detail */
.product-detail-img {
	background: #fafafa;
	border-radius: 8px;
	padding: 20px;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.product-detail-img img {
	max-height: 350px;
	max-width: 100%;
	object-fit: contain;
}
.rsa-product-title {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.product-detail-specs li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: 0.95rem;
}

/* Filters */
.filter-sidebar {
	background: #f8f8f8;
	border-radius: 8px;
	padding: 18px;
}
.filter-sidebar .filter-title {
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--rsa-primary);
}
.filter-sidebar .form-check { margin-bottom: 5px; }
.filter-sidebar label { font-size: 0.85rem; }
.product-filter-btn.active {
	background-color: var(--rsa-primary) !important;
	border-color: var(--rsa-primary) !important;
	color: #fff !important;
}

/* Page Hero */
.page-hero {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	padding: 50px 0;
	background-size: cover;
	background-position: center;
}
.page-hero h1,
.page-hero h1.text-10 {
	color: #fff;
	font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
	line-height: 1.25 !important;
	word-break: break-word;
}
.page-hero p,
.page-hero p.text-4 {
	font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
	line-height: 1.5 !important;
	padding: 0 8px;
}

/* Breadcrumb */
.rsa-breadcrumb {
	background: #f5f5f5;
	padding: 12px 0;
	font-size: 0.85rem;
}
.rsa-breadcrumb a { color: var(--rsa-primary); text-decoration: none; }

/* About placeholder */
.about-image-placeholder {
	background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
	border-radius: 8px;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.5);
	text-align: center;
	padding: 30px;
}

/* Why Royal Sales - scoped section only */
.rsa-why-us {
	background-color: #1a1a1a !important;
	padding: 60px 0;
}
.rsa-why-us h3,
.rsa-why-us h5,
.rsa-why-us .text-color-light {
	color: #ffffff !important;
}
.rsa-why-us p.text-color-light {
	color: rgba(255, 255, 255, 0.75) !important;
}
.rsa-why-us h2.text-color-primary {
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	letter-spacing: 1.5px;
	margin-bottom: 14px !important;
}
.rsa-why-us h3.text-8 {
	font-size: clamp(1.45rem, 2.8vw, 2rem) !important;
	line-height: 1.3 !important;
}
.rsa-why-us .rsa-why-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
}
.rsa-why-us .rsa-why-item-icon {
	flex-shrink: 0;
	width: 28px;
	color: var(--rsa-primary);
	font-size: 1.5rem;
	line-height: 1.4;
	margin-top: 2px;
}
.rsa-why-us .rsa-why-item h5 {
	font-size: 1rem;
	line-height: 1.35;
}
.rsa-why-us .rsa-why-item p {
	line-height: 1.55;
}
@media (min-width: 768px) {
	.rsa-why-us .col-md-6:nth-child(1),
	.rsa-why-us .col-md-6:nth-child(2) {
		margin-bottom: 28px;
	}
}
@media (max-width: 767px) {
	.rsa-why-us {
		padding: 44px 0;
	}
	.rsa-why-us .rsa-why-item {
		padding: 12px 0;
	}
	.rsa-why-us .col-md-6 {
		margin-bottom: 8px !important;
	}
}

/* Pan India */
.india-states-grid .state-badge {
	display: inline-block;
	background: #fff;
	border: 1px solid #e0e0e0;
	padding: 5px 12px;
	border-radius: 20px;
	margin: 3px;
	font-size: 0.8rem;
}
.india-states-grid .state-badge:hover {
	background: var(--rsa-primary);
	color: #fff;
	border-color: var(--rsa-primary);
}

/* Brands */
.brand-logo-carousel img {
	max-height: 50px;
	width: auto;
	object-fit: contain;
	margin: 0 auto;
}

/* Testimonial */
.testimonial-card {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	height: 100%;
	border-left: 4px solid var(--rsa-primary, #F37021);
	min-height: 200px;
}
#testimonialSlider .owl-nav { margin-top: 20px; text-align: center; }
#testimonialSlider .owl-nav button {
	width: 44px; height: 44px; border-radius: 50%;
	background: #F37021 !important; color: #fff !important;
	border: none; margin: 0 8px; font-size: 14px;
}
#testimonialSlider .owl-dots { margin-top: 15px; text-align: center; }
#testimonialSlider .owl-dot.active span { background: #F37021 !important; }

/* Footer */
#footer.rsa-footer { background: #111; }
#footer.rsa-footer .footer-links a {
	color: rgba(255,255,255,0.7);
	font-size: 0.88rem;
	text-decoration: none;
}
#footer.rsa-footer .footer-links a:hover { color: var(--rsa-primary); }

/* Loading */
.products-loading { text-align: center; padding: 50px 20px; }
.products-loading .spinner {
	width: 36px; height: 36px;
	border: 3px solid #eee;
	border-top-color: var(--rsa-primary);
	border-radius: 50%;
	animation: rsa-spin 0.7s linear infinite;
	margin: 0 auto 12px;
}
@keyframes rsa-spin { to { transform: rotate(360deg); } }

/* Pagination */
.pagination .page-link { color: var(--rsa-primary); font-size: 0.9rem; }
.pagination .page-item.active .page-link {
	background: var(--rsa-primary);
	border-color: var(--rsa-primary);
}

/* Mobile filter toggle */
.filter-toggle-btn { display: none; }

/* Industries horizontal scroll */
.industries-scroll-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	padding: 8px 4px 20px;
	margin: 0 -15px;
	padding-left: 15px;
	padding-right: 15px;
}
.industries-scroll-wrap::-webkit-scrollbar { height: 6px; }
.industries-scroll-wrap::-webkit-scrollbar-thumb { background: #F37021; border-radius: 3px; }
.industries-scroll-wrap::-webkit-scrollbar-track { background: #eee; border-radius: 3px; }
.industries-scroll-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	min-width: min-content;
}
.industry-chip {
	flex: 0 0 auto;
	min-width: 140px;
	width: 140px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 10px;
	padding: 22px 14px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.06);
	border: 1px solid #eee;
	transition: transform 0.2s, box-shadow 0.2s;
}
.industry-chip:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(243,112,33,0.12);
	border-color: var(--rsa-primary);
}
.industry-chip i { display: block; margin-bottom: 10px; }
.industry-chip h5 { font-size: 0.95rem; line-height: 1.3; margin: 0; }

/* Typography scale fix - Porto overrides */
.text-10 { font-size: clamp(1.75rem, 4vw, 2.5rem) !important; }
.text-9 { font-size: clamp(1.5rem, 3.5vw, 2rem) !important; }
.text-8 { font-size: clamp(1.25rem, 3vw, 1.75rem) !important; }

/* Section spacing */
.section { padding-top: 50px; padding-bottom: 50px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
	.mega-menu-content { min-width: auto; width: 100%; max-width: 500px; }
}

@media (max-width: 991px) {
	.hero-slider .slide-item { min-height: 380px; }
	.hero-slider .slide-content { padding: 56px 0 44px; }
	.stats-bar .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
	.stats-bar .col-6:nth-child(odd) .stat-item { border-right: 1px solid rgba(255,255,255,0.15); }
	.filter-sidebar { margin-bottom: 20px; }
	.filter-toggle-btn {
		display: block;
		width: 100%;
		margin-bottom: 15px;
	}

	/* ===== MOBILE & TABLET NAV ===== */
	#header .rsa-header-container {
		display: block !important;
		min-height: auto !important;
	}
	#header .rsa-header-container > .header-row {
		display: flex;
		width: 100%;
		flex-wrap: nowrap;
	}
	#header .header-body { position: relative; z-index: 1000; overflow: visible !important; }
	#header .header-logo img { max-height: 42px; }
	#header .rsa-mobile-nav-wrap {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		top: var(--rsa-nav-top, 70px);
		z-index: 99998;
		pointer-events: none;
	}
	#header .rsa-mobile-nav-wrap .rsa-mobile-nav.show,
	#header .rsa-mobile-nav-wrap .rsa-mobile-nav.collapsing {
		pointer-events: auto;
	}
	#header .rsa-mobile-nav {
		max-height: calc(100vh - var(--rsa-nav-top, 70px));
	}

	/* Tablet product grid */
	.product-card-ec .product-img { height: 180px; }
	.category-card .cat-img { height: 160px; }
	.text-lg-end .btn-lg { width: 100%; }
}

@media (min-width: 992px) {
	.rsa-mobile-nav-wrap { display: none !important; }
	#header .rsa-hamburger { display: none !important; }
}

@media (max-width: 767px) {
	.hero-slider .slide-item { min-height: 320px; }
	.hero-slider .slide-content { padding: 28px 0 36px; }
	.hero-slider .slide-content .container { padding-left: 16px; padding-right: 16px; }
	.hero-slide-actions { flex-direction: column; }
	.hero-slide-actions .btn {
		width: 100%;
		font-size: 0.9rem !important;
		padding: 11px 16px !important;
	}
	.hero-slider .owl-nav { display: none; }
	.product-card-ec .product-img { height: 160px; }
	.category-card .cat-img { height: 140px; }
	.page-hero { padding: 28px 0; }
	.testimonial-card { padding: 18px; min-height: auto; }
	#header .header-top { display: none; }
	.industry-chip { min-width: 120px; width: 120px; padding: 18px 10px; }
	#footer.rsa-footer .row > div { text-align: center; }
	#footer.rsa-footer .footer-links { margin-bottom: 0; }
	.filter-sidebar.sticky-top { position: static !important; }
	.rsa-breadcrumb { font-size: 0.78rem; }
	.rsa-breadcrumb .container { overflow-x: auto; white-space: nowrap; }
	.rsa-loom-banner { font-size: 0.9rem; }
	.rsa-loom-banner .btn { width: 100%; }
	.product-detail-img { min-height: 220px; padding: 14px; }
	.product-detail-img img { max-height: 220px; }
	.rsa-product-title { font-size: 1.3rem !important; }
	.product-detail-specs li { font-size: 0.88rem; }
	#productDetail .btn-lg { width: 100%; margin-bottom: 8px; }
	.map-embed-wrap { height: 280px !important; }
	.map-embed-wrap iframe { height: 280px !important; }
	.pan-india-icons .col-6 { margin-bottom: 12px; }
	.about-stats .text-10 { font-size: 1.75rem !important; }
	.section-cta-btns .btn { width: 100%; margin: 0 0 10px !important; }
}

@media (max-width: 575px) {
	.stats-bar .stat-number { font-size: 1.35rem; }
	.stats-bar .stat-label { font-size: 0.65rem; }
	.product-card-ec .product-name { font-size: 0.85rem; }
}
