/* Default theme (Daikin) */


:root {
	--bs-primary: #00a0e3;
	--daikin-primary: #00a0e3;
	--bs-primary-active: #2faadc;
	--bs-primary-inverse: #ffffff;
	--bs-primary-rgb: 0, 160, 227;
	--bs-link-color-rgb: 0, 160, 227;
	--bs-link-hover-color-rgb: 47, 170, 220;
	--bs-text-primary-hover: #0080c7;
	--store-intro-overlay-color: rgba(65, 132, 186, 0.65);
	--resource-card-bg: #D5DBEA;
	--sidebar-card-bg: #f1f3f8;
	--resource-intro-overlay-color: rgb(28, 28, 28);
	--bs-app-header-height-actual: none;
	--badge-bg-color: #a0cbfa9f;
}

.resources img {
	filter: grayscale(100%);
	/* Rotates the hue by 90 degrees */
}

/* Words wrapped by the `emphasize` filter/tag (mg_common.py). Keeps the real
italic glyphs from the Plus Jakarta Sans italic axis, then adds extra lean on
top via skew -- font-style: oblique would drop those glyphs in favor of a
synthetically-slanted roman face instead of increasing the italic's angle. */
.emphasize {
	font-style: italic;
	display: inline-block;
	transform: skewX(-7deg);
}

/* Daikin theme */
[data-theme="daikin"] .store-intro {
	background: url("../images/Dealer Store Daikin Hero.jpg") no-repeat bottom center;
	background-size: cover;
}

[data-theme="daikin"] .brand-slide {
	background: url("../images/Dealer Store Daikin Hero.jpg") no-repeat bottom center;
	background-size: cover;
}

[data-theme="amana"] .store-intro,
[data-theme="amana"] .brand-slide {
	background: url("../images/Dealer Store Amana Hero.jpg") no-repeat bottom center;
	background-size: cover;
}

[data-theme="goodman"] .store-intro,
[data-theme="goodman"] .brand-slide {
	background: url("../images/Dealer Store Goodman Hero.jpg") no-repeat bottom center;
	background-size: cover;
}


/* Amana theme */
[data-theme="amana"] {
	--bs-primary: #F42434;
	--bs-primary-active: #c81e2a;
	--bs-primary-inverse: #ffffff;
	--bs-primary-rgb: 244, 36, 52;
	--bs-link-color-rgb: 244, 36, 52;
	--bs-link-hover-color-rgb: 200, 30, 42;
	--bs-text-primary: #F42434;
	--bs-text-primary-hover: #a5141f;
	--store-intro-overlay-color: rgba(255, 0, 0, 0.65);
	--resource-card-bg: #D5DBEA;
	--badge-bg-color: #F7C0C2;
}

[data-theme="amana"] .card-product img {
	/* filter: hue-rotate(150deg); Rotates the hue by 90 degrees */
}

[data-theme="amana"] .resources img {
	/* filter: grayscale(100%); Rotates the hue by 90 degrees */
}

/* [data-theme="amana"] .adjusted_hue {
	filter: sepia(100%) saturate(500%) hue-rotate(-50deg) brightness(90%);
} */

/* Goodman theme */
[data-theme="goodman"] {
	--bs-primary: #E03A3E;
	--bs-primary-active: #b62f32;
	--bs-primary-inverse: #ffffff;
	--bs-primary-rgb: 224, 58, 62;
	--bs-link-color-rgb: 224, 58, 62;
	--bs-link-hover-color-rgb: 182, 47, 50;
	--bs-text-primary: #E03A3E;
	--bs-text-primary-hover: #801c1f;
	--store-intro-overlay-color: rgba(224, 58, 62, 0.65);
	--resource-card-bg: #D5DBEA;
	--badge-bg-color: #f4a6a9c7;
	/*--sidebar-card-bg: #FAC1C4;*/
}

[data-theme="goodman"] .card-product img {
	/* filter: hue-rotate(150deg); Rotates the hue by 90 degrees */
}

[data-theme="goodman"] .resources img {
	filter: grayscale(100%);
	/* Rotates the hue by 90 degrees */
}

[data-theme="goodman"] .adjusted_hue {
	filter: sepia(100%) saturate(500%) hue-rotate(-50deg) brightness(90%);
}

[data-bs-theme="light"] {
	--bs-link-color-rgb: 0, 151, 224;

	--bs-text-muted: #5E6278;
	--bs-text-gray-400: #5E6278;
	--bs-text-gray-500: #4B5675;
	--bs-text-gray-600: #3F4254;
	--bs-text-gray-700: #2B2B40;
	--bs-secondary-color: #4B5675;
	--bs-tertiary-color: #6D6D80;
}

[data-bs-theme="light"] .form-control::placeholder,
[data-bs-theme="light"] .form-select::placeholder,
[data-bs-theme="light"] .form-control.form-control-solid::placeholder,
[data-bs-theme="light"] .form-select.form-select-solid::placeholder {
	color: #6D6D80;
}

[data-bs-theme="dark"] {
	--bs-link-color-rgb: 0, 151, 224;
	--bs-text-gray-500: #68687E;
	--bs-text-gray-600: #6D6D80;
	--bs-text-muted: #a1a1b2;
}

html {
	font-family: "Plus Jakarta Sans", sans-serif;
}

#kt_app_root {
	font-family: "Plus Jakarta Sans", sans-serif;
}

.name_badge {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
	background-color: var(--badge-bg-color);
	color: var(--bs-primary-active);
}

@media (min-width: 992px) {
	:root {
		--bs-app-header-height: 90px;
		--bs-app-header-height-actual: 90px;
	}
}

/* Compact header styles */
@media (min-width: 992px) {
	.app-header {
		height: 90px !important;
		min-height: 70px !important;
	}

	.app-header .app-container {
		height: 90px !important;
		min-height: 70px !important;
		padding-left: 50px !important;
		padding-right: 50px !important;
	}

	/* Smaller logo for compact header */
	.app-header img.h-lg-40px {
		height: 32px !important;
	}

	/* Smaller user avatar in header */
	#kt_header_user_menu_toggle .symbol.symbol-lg-50px {
		width: 38px !important;
		height: 38px !important;
	}

	#kt_header_user_menu_toggle .symbol.symbol-lg-50px>img {
		width: 38px !important;
		height: 38px !important;
	}

	#kt_app_header {
		border-bottom: 1px solid #e9edf3;
	}

	/* Compact menu items */
	#kt_app_header_menu .menu-link {
		font-size: 0.95rem;
		padding: 0.5rem 0.85rem !important;
	}

	#kt_app_header_menu .menu-item {
		display: flex;
		align-items: center;
	}

	/* Smaller cart icon button */
	.app-header .cart-container .btn-icon.w-lg-50px,
	.app-header .cart-container .btn-icon.h-lg-50px {
		width: 38px !important;
		height: 38px !important;
	}

	.app-header .cart-container .btn-icon .fs-2x {
		font-size: 1.4rem !important;
	}

	.app-header .cart-container .cart-badge {
		top: -5px;
		right: -5px;
		width: 18px;
		height: 18px;
		font-size: 11px;
	}

	.breadcrumb {
		margin: 0 auto;
	}
}

.app-toolbar {
	background-color: var(--bs-text-muted);
}

a.link-primary {
	color: var(--bs-primary);
	text-decoration: none;
}

a.link-primary:hover {
	color: var(--bs-text-primary-hover);
	text-decoration: underline;
}

a,
.text-hover-primary {
	color: var(--bs-text-primary);
}

a:hover,
.text-hover-primary:hover {
	color: var(--bs-text-primary-hover);
	transition: color .2s ease;
}

button,
button.menu-link,
.btn {
	color: var(--bs-btn-color);
}

.btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
}

.btn-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	border: 2px solid;
}

.card-header.collapsed {
	border-bottom: none;
}

/* Impersonating mode */
body.impersonating .app-toolbar {
	background-color: #e53e30;
}

body.impersonating .app-toolbar .title-custom {
	color: #ffffff;
}

body.impersonating .app-toolbar .breadcrumb-item {
	color: #eee;
}

body.impersonating .app-toolbar .breadcrumb-item a {
	color: #ffffff;
}

body.impersonating .app-toolbar .impersonating {
	background-color: var(--sc-bg-dark);
	border-radius: 8px;
	color: var(--bs-primary);
	line-height: 1.25;
	padding: 1rem 1.5rem;
}

body.impersonating .app-toolbar .impersonating button {
	background-color: transparent;
	border: none;
	color: #fff;
	font-size: 1.5em;
	font-weight: bold;
	padding: 0;
}

.category-icon-link {
	display: block;
	text-align: center;
	margin: 0 auto;
}

.category-icon-link img {
	display: inline-block;
	vertical-align: middle;
}

@media (min-width: 1200px) {
	.app-toolbar h1.page-heading.fs-2hx {
		font-size: 2.25rem;
	}
}

input.search-input.form-control.form-control-solid.ps-13 {
	background-color: #ffffff;
	border: 2px solid var(--bs-primary);
	color: #003d66;
	border-radius: 8px;
}

input.search-input.form-control.form-control-solid.ps-13::placeholder {
	color: var(--bs-primary);
}

button.menu-link {
	background-color: transparent;
	border: none;
	font-weight: 500;
}

.pagination .active span {
	color: #ffffff;
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
}


/* Dashboard */
.portal-header {
	background: var(--bs-primary);
	color: var(--bs-primary-inverse);
	padding: 20px;
	border-radius: 12px 12px 0 0;
	margin-bottom: 20px;
}

/* Mini Cart Drop down code */


/* Shopping Cart Dropdown Styles */
.cart-container {
	position: relative;
	display: inline-block;
}

.cart-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 350px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	margin-top: 8px;
	border: 1px solid #e9ecef;
}

.cart-container:hover .cart-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Disable dropdown on touch devices */
.cart-container.touch-device .cart-dropdown {
	display: none !important;
}

@media (hover: none) {

	/* Touch devices (mobile/tablet) — disable the hover dropdown */
	.cart-container .cart-dropdown {
		display: none !important;
	}
}

.dropdown-header {
	padding: 20px 20px 15px;
	border-bottom: 1px solid #e9ecef;
}

.dropdown-title {
	font-size: 16px;
	font-weight: 600;
	color: #495057;
	margin-bottom: 5px;
}

.item-count {
	font-size: 14px;
	color: #6c757d;
}

.cart-items {
	max-height: 300px;
	overflow-y: auto;
	padding: 10px 0;
}

.cart-item {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	transition: background-color 0.2s ease;
}

.cart-item:hover {
	background: #f8f9fa;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(100px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.item-image {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	margin-right: 15px;
	object-fit: cover;
}

.item-details {
	flex: 1;
}

.item-name {
	font-size: 14px;
	font-weight: 500;
	color: #495057;
	margin-bottom: 5px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.item-price {
	font-size: 13px;
	color: #6c757d;
}

.item-quantity {
	background: #f8f9fa;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	color: #495057;
	margin-left: 10px;
	min-width: 20px;
	text-align: center;
}

.empty-cart {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
}

.empty-cart-icon {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.dropdown-footer {
	padding: 15px 20px;
	border-top: 1px solid #e9ecef;
	background: #f8f9fa;
	border-radius: 0 0 12px 12px;
}

.total-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.total-label {
	font-size: 14px;
	font-weight: 600;
	color: #495057;
}

.total-amount {
	font-size: 16px;
	font-weight: 700;
	color: #007bff;
}

.action-buttons {
	display: flex;
	gap: 10px;
}

.cart-btn-action {
	flex: 1;
	padding: 10px 15px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	text-align: center;
	display: inline-block;
}

.cart-btn-outline {
	background: white;
	color: #6c757d;
	border: 1px solid #dee2e6;
}

.cart-btn-outline:hover {
	background: #e9ecef;
	text-decoration: none;
}

.cart-btn-primary {
	background: #007bff;
	color: white;
}

.cart-btn-primary:hover {
	background: #0056b3;
	text-decoration: none;
}

/* Cart Badge */
.cart-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #dc3545;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
}


/* Sidebar */
.sidebar {

	width: 300px;
}

/* Hero section */

.store-intro {
	position: relative;
	height: 70vh;
	background: url("../images/Dealer Store Hero.jpg") no-repeat bottom center;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;

}

.store-intro .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--store-intro-overlay-color);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	color: white;
}

.store-intro .content {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	z-index: 2;
}

/* .store-intro h1 {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 20px;
} */

.store-intro p {
	font-size: 18px;
	opacity: 0.9;
}



.resource-intro {
	position: relative;
	height: 550px;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.resource-intro .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(16, 58, 141, 0.7) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: white;
}

.resource-intro .content {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	z-index: 2;
}

.resource-intro h1 {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 20px;
}

.resource-intro p {
	font-size: 18px;
	opacity: 0.9;
}


/* Brand Cards */



.brand-card {
	transition: transform 0.3s, box-shadow 0.3s;
	height: 200px;
	flex-direction: column;
}

.brand-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.brand-card img {
	max-height: 100%;
	max-width: 100%;
	object-fit: cover;
	padding: 16px;
	border-radius: 6px;
	background: #fff;
}

.brand-image-wrapper {
	height: 120px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-btn-wrapper {
	margin-top: auto;
}

.brand-card .card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
}

.brand-card .btn {
	background: #00a0e3;
	border: none;
	transition: background 0.3s;
	margin-top: auto;
}

.brand-card .btn:hover {
	background: #0080c7;
}

.card-brand img {
	max-height: 100%;
	max-width: 100%;
	object-fit: cover;
	padding: 16px;
	border-radius: 6px;
	background: #fff;
}

/* DAM */


.section-coming-soon {
	position: relative;
	height: 80vh;
	background: url("{% static 'store/images/Dealer Store Hero.jpg' %}") center center / cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-align: center;
}

.section-coming-soon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.section-coming-soon .content {
	position: relative;
	z-index: 1;
	max-width: 700px;
	padding: 20px;
}

.section-coming-soon h1 {
	font-size: 60px;
	font-weight: 800;
	margin-bottom: 20px;
}

.section-coming-soon p {
	font-size: 20px;
	opacity: 0.9;
	margin-bottom: 40px;
}

.btn-notify {
	background: #54C3F1;
	color: white;
	font-weight: 600;
	border: none;
	padding: 10px 30px;
	border-radius: 50px;
	transition: background 0.3s ease;
}

.btn-notify:hover {
	background: #2faadc;
}