/* Default theme (Daikin) */
:root {
	--bs-primary: #54C3F1;
	--bs-primary-active: #2faadc;
	--bs-primary-inverse: #ffffff;
	--bs-primary-rgb: 84, 195, 241;
	--bs-link-color-rgb: 84, 195, 241;
	--bs-link-hover-color-rgb: 47, 170, 220;
	--bs-text-primary-hover: #0080c7;
	--store-intro-overlay-color: rgba(65, 132, 186, 0.6);
	--resource-card-bg: #D5DBEA;
	--sidebar-card-bg: #f1f3f8;
	--resource-intro-overlay-color: rgb(28, 28, 28);
	--bs-app-header-height-actual: none;
}
.resources img {
	filter: grayscale(100%); /* Rotates the hue by 90 degrees */
}

/* Daikin theme */
[data-theme="daikin"] .store-intro {
	background: url("../images/Dealer Store Daikin 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(244, 36, 52, 0.6);
	--resource-card-bg: #D5DBEA;
	/*--sidebar-card-bg: #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%);
} */
[data-theme="amana"] .store-intro {
	background: url("../images/Dealer Store Amana Hero.jpg") no-repeat bottom center;
	background-size: cover;
}

/* 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.6);
	--resource-card-bg: #D5DBEA;
	/*--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"] .store-intro {
	background: url("../images/Dealer Store Goodman Hero.jpg") no-repeat bottom center;
	background-size: cover;
}


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

[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;
}

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

.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;
}

.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);
}

.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;
}

.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: 400px;
	background: url("../images/Dealer Store Hero.jpg") no-repeat bottom center;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	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: center;
	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;
}