/* from vmbasic */
/* Bootstrap */
.dropdown-toggle {
	display: flex;
	align-items: center;
}

.dropdown-toggle::after {
	content: "";
	border: none;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
	background-repeat: no-repeat;
	width: 10px;
	height: 10px;
}

.btn {
	border-radius: 0
}

.input-group .btn {
	font-size: 14px;
	border-radius: var(--bs-border-radius);
}

.btn-primary {
--bs-btn-border-color: #3065a1;
	--bs-btn-hover-bg: #1f436b;
	--bs-btn-hover-border-color: #24558c;
	--bs-btn-focus-shadow-rgb: 49, 132, 253;
	--bs-btn-active-bg: #555;
	--bs-btn-active-border-color: #555;
	--bs-btn-disabled-bg: #A0A0A0;
	--bs-btn-disabled-border-color: #A0A0A0;
}

.btn-secondary {
	--bs-btn-color: #333;
	--bs-btn-bg: #EFEFEF;
	--bs-btn-border-color: #EFEFEF;
	--bs-btn-hover-bg: #333;
	--bs-btn-hover-border-color: #333;
	--bs-btn-active-bg: #333;
	--bs-btn-active-border-color: #333;
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
	color: #A0A0A0;
}

.text-secondary {
	color: #A0A0A0 !important;
}

.form-control, .form-select {
	font-size: 14px;
}

form .form-control, form .form-select {
	border-color: #C7C7C7;
}

/* General styles */
body {
	font-size: 15px;
	color: #333;
}

a, .btn-link {
	color: #A0A0A0;
	text-decoration: none;
}

a:hover, .btn-link:hover {
	color: #333;
}

img {
	max-width: 100%;
	height: auto;
	aspect-ratio: attr(width) / attr(height);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	margin-bottom: 1em;
	color: #333;
}

h1 {
	font-size: 32px
}

h2 {
	font-size: 28px
}

h3 {
	font-size: 25px;
}

/* Contact Page Modern Styles */
.contact-info-card, .contact-form-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover, .contact-form-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

.letter-spacing-1 {
	letter-spacing: 1px;
}

.contact-field-wrapper .control-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #444;
}

.contact-field-wrapper input, 
.contact-field-wrapper textarea, 
.contact-field-wrapper select {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	border: 1px solid #dee2e6;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-field-wrapper input:focus, 
.contact-field-wrapper textarea:focus, 
.contact-field-wrapper select:focus {
	border-color: #333;
	box-shadow: 0 0 0 0.25rem rgba(51, 51, 51, 0.1);
	outline: 0;
}

.com-contact__address dt {
	font-weight: 600;
	color: #666;
	margin-top: 1rem;
}

.com-contact__address dd {
	margin-bottom: 0.5rem;
	color: #333;
}

.contact-map-container .ratio iframe {
	border: 0;
	width: 100%;
	height: 100%;
}
/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-warning);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}

/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/carousel-1.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--bs-primary);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-2.jpg) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--bs-primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(/img/carousel-3.jpg) left center no-repeat;
background-size: cover;
}

/* Address List Modern Styles */
.contact-icon i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-uppercase.small.fw-bold {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

@media (max-width: 991.98px) {
	.contact-info-card, .contact-form-card {
		margin-bottom: 2rem;
	}
}


h4 {
	font-size: 22px;
}

h5 {
	font-size: 20px;
}

h6 {
	font-size: 18px;
}

.toolbar {
	font-size: 14px;
	padding: 9px 0;
	background-color: #e79704e0;
}

.toolbar a, .toolbar .btn-link {
	color: inherit;
}

.toolbar .btn svg {
	margin-right: 5px;
}

.toolbar svg {
	line-height: 16px;
	vertical-align: sub;
}

.top-bar {
	background-color: transparent;
		color: #fff;
	}

	.top-bar a {
		color: #fff;
	}

header p {
	margin: 0
}

.toolbar .dropdown-menu {
	font-size: 14px;
	line-height: 14px;
	min-width: 100%;
	width: max-content;
}

.form-control-feedback {
	display: block;
	font-size: 14px;
	color: red;
}

/* Main menu */
.main-menu {
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    overflow:visible;
    
}

.main-menu .nav-item {
	position: relative;
}

/* Active / current / default states */
.mod-menu .current > a,
.mod-menu .active > a {
  background-color: black;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}

.active .current{
    background-color: #000;
    transition: background-color linear 250ms
}

.main-menu .nav-item.active .nav-item.current > a,
.main-menu .nav-item.active .nav-item.current > span{
   background-color: #000 !important;
    transition: background-color linear 250ms
}

.main-menu a, .main-menu span {
	position: relative;
	display: block;
	padding: 13px 11px;
	color: #fff;
	background-color: #555;
	transition: background-color linear 250ms
}

.main-menu .active > a, .main-menu .active > span, .main-menu a:hover, .main-menu span:hover {
	background-color: #081ee4;
	transition: background-color linear 250ms
}

.main-menu .parent > a::after, .main-menu .parent > span::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: #fff;
	margin-left: 5px;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
}

.main-menu .mod-menu__sub .parent > a::after, .main-menu .mod-menu__sub .parent > span::after {
	position: absolute;
	right: 9px;
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);
}

.main-menu .mod-menu__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1022;
    min-width: 400px;
    /*max-width: 250px;
    width:auto;*/
    opacity: 0;
    visibility: hidden;
    transition: all 250ms linear;
}

.main-menu .mod-menu__sub li a {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    white-space: normal;
}

.main-menu .parent.menu-open > .mod-menu__sub {
    opacity: 1;
    visibility: visible;
    box-shadow: 0 5px 15px 0 rgba(0,0,0,0.3);
    transition: all 250ms linear;
}

.mod-menu__sub .mod-menu__sub {
    left: 100%;
    top: 0;
}

/* Sticky main menu */
#main-menu {
    z-index: 1030;
    background: var(--bs-body-bg, #ffffff);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    box-sizing: border-box;
    width: 100%;
    position: relative;
}


#main-menu.sticky-fade {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
}
#main-menu.sticky-fade.sticky {
    opacity: 1;
    pointer-events: auto;
}
#main-menu.sticky-fade {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    background: var(--bs-body-bg, #ffffff);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    box-sizing: border-box;
    /*overflow: visible !important;*/
}

/* Keep the inner container centered while the sticky bar background spans full viewport */
#main-menu.sticky .container-xxl {
    max-width: 100%; /* override if you use a different container width */
    margin-left: auto;
    padding-left: var(--bs-gutter-x, 1rem);
    padding-right: var(--bs-gutter-x, 1rem);
    width: 100%;
    box-sizing: border-box;
    background-color:#555;
}

/* Adjust inner row in sticky mode */
#main-menu.sticky .row {
    margin: 0;
    width: 100%;
}

/* Make menu items spread across full width */
#main-menu.sticky .mod-menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Spacer inserted when menu is fixed to prevent layout jump */
.main-menu-spacer { 
    display: block; 
    width: 100%; 
    height: 0; 
}
.cart-button:hover{
transform: rotateZ(33deg);
}

@media (max-width: 1199.98px) {
    /* hide main menu on mobile / below XL (also matches d-none d-xl-block) */
    #main-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
    }
}

@media (max-width: 1600px) {
    #main-menu.sticky .container-xxl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 1400px) {
    #main-menu.sticky .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.hdev-container {
  display: flex;             /* Enables flexbox layout */
  align-items: center;       /* Centers content vertically */
  justify-content: center;   /* Centers content horizontally */
 max-height: 2px;             /* Example height for the container */
  width: 100%; 					/* Example width for the container */
 }

.hdev-divider {
  height: 2px;               /* Defines the divider's height for a horizontal line */
  width: 7%;                /* Sets the small width of the divider */
  background-color: black;	/* Sets the color of the divider */
	margin-top:-30px;
 }

/* Banners */
.banner-section p {
	margin: 0
}

/* Modules */
.mod-breadcrumbs {
	background-color: #EFEFEF;
	font-size: 14px;
	white-space: nowrap;
	overflow: auto;
	flex-wrap: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
	float: none;
}

.mod-breadcrumbs a, .manufacturer-details-view a:not(.btn) {
	color: #71ABD6;
}

.breadcrumb-item.active {
	color: #A0A0A0;
}

.article-title, .article-header h1, .page-header h1 {
    text-align: center;
	color:white;
	background-color:#081ee4;
	padding: 20px;
}

aside .module-title {
	font-size: 24px;
	font-weight: normal;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 15px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}


/* Forms */
textarea {
	min-height: 100px
}

.control-label {
	margin-bottom: 5px;
}

/*********
Virtuemart
*********/

/* VM Search module */
.vmbasic-search input {
	border-color: #A0A0A0;
	border-radius: 0;
	height: 40px;
}

.mod-vm-search .btn-svg {
	padding: 0 10px;
	position: absolute;
	z-index: 5;
	top: 0;
	right: 0;
	bottom: 0;
	height: 40px;
}

.vm-search-custom-search-input input, #vm-orderby-select {
	border-radius: var(--bs-border-radius) !important;
}

/* VM cart module */
.vmCartModule .btn-link {
	color: #333;
}

/* Product page  */
.manufacturer a {
	color: #71ABD6;
}

/* Account */
.vm-add-edit-address > a, .vm-order-list a {
	font-weight: 600;
	color: #71ABD6
}

/* Checkout */
.vm-coupon-container .btn {
	border-radius: var(--bs-border-radius);
}

#checkoutForm .details {
	font-weight: 600;
	color: #71ABD6
}

/* Enhanced Address Form Styling */
.vm-form-row fieldset.py-3 {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem; /* A bit more rounded */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    transition: box-shadow 0.2s ease-in-out;
    padding: 1.5rem !important;
}

.vm-form-row fieldset.py-3:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.vm-form-row fieldset.py-3 legend.border-bottom {
    color: #495057; /* A softer color for the legend */
    font-weight: 500;
    font-size: 1.1rem;
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    border-color: #dee2e6 !important;
}

/* Adjust floating labels for the new design */
.vm-form-row .form-floating > .form-control,
.vm-form-row .form-floating > .form-select {
    background-color: #f8f9fa; /* A very light grey */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    height: calc(3.5rem + 2px); /* Ensure height is correct for floating labels */
    line-height: 1.25;
}

.vm-form-row .form-floating > .form-control:focus,
.vm-form-row .form-floating > .form-select:focus {
    background-color: #fff;
    border-color: #86b7fe; /* Bootstrap's focus color */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.vm-form-row .form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
}
/* Fix for floating labels on selects with a value */
.vm-form-row .form-floating-has-value > label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.65;
}
/*********
Joomla
*********/

/* com_content */
.item-content .page-header h2 {
	font-size: 20px;
}

.article-info {
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	margin-bottom: 5px;
}

.item-image {
	display: block;
	margin: 0 auto 30px;
}

.article-info > * {
	margin-right: 8px
}

.com-content-article__links {
	list-style: none;
	padding: 0;
	margin: 30px 0;
}

.com-content-article__links a, .items-more a {
	color: #71ABD6
}

.active > .page-link, .page-link.active {
	background-color: #555555;
	border-color: #555555;
}

.page-link, .page-link:hover {
	color: #333;
}

.pagenavigation {
	margin: 30px 0;
}

.pagenavigation .next {
	margin-left: auto;
}
/*  masonry  articles */
.masonry-grid {
    width: 100%;
    margin: 0 auto;
    position: relative; /* Added for better positioning */
    visibility: hidden; /* Hide until initialized */
}

.masonry-grid.masonry-initialized {
    visibility: visible;
}

.masonry-grid-sizer,
.masonry-grid-item {
    width: calc(33.333% - 20px);
    margin: 0 10px 20px; /* Better margin handling */
    box-sizing: border-box;
}

@media screen and (max-width: 992px) {
    .masonry-grid-sizer,
    .masonry-grid-item {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 576px) {
    .masonry-grid-sizer,
    .masonry-grid-item {
        width: 100%;
    }
}

.masonry-grid-item {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.masonry-grid-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.masonry-grid-item .item-content {
    padding: 15px;
}

.masonry-grid-item .item-image {
    margin: -15px -15px 15px -15px;
    overflow: hidden;
}

.masonry-grid-item .item-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.masonry-grid-item:hover .item-image img {
    transform: scale(1.05);
}

.masonry-grid[class*="columns-2"] .masonry-grid-sizer,
.masonry-grid[class*="columns-2"] .masonry-grid-item {
    width: calc(50% - 15px);
}

.masonry-grid[class*="columns-3"] .masonry-grid-sizer,
.masonry-grid[class*="columns-3"] .masonry-grid-item {
    width: calc(33.333% - 20px);
}

.masonry-grid[class*="columns-4"] .masonry-grid-sizer,
.masonry-grid[class*="columns-4"] .masonry-grid-item {
    width: calc(25% - 20px);
}
/* Enhanced masonry styling */
.masonry-grid {
    margin: 0 -10px;
}

.masonry-grid-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    page-break-inside: avoid;
}

.masonry-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.masonry-grid-item .image-wrapper {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.masonry-grid-item .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-grid-item:hover .image-wrapper img {
    transform: scale(1.1);
}

.masonry-grid-item .item-body {
    padding: 1.5rem;
}

.masonry-grid-item .readmore {
    margin-top: 1rem;
    text-align: right;
}

/* Responsive improvements */
@media (max-width: 1200px) {
    .masonry-grid[class*="columns-4"] .masonry-grid-sizer,
    .masonry-grid[class*="columns-4"] .masonry-grid-item {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .masonry-grid[class*="columns-3"] .masonry-grid-sizer,
    .masonry-grid[class*="columns-3"] .masonry-grid-item,
    .masonry-grid[class*="columns-4"] .masonry-grid-sizer,
    .masonry-grid[class*="columns-4"] .masonry-grid-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .masonry-grid[class*="columns-"] .masonry-grid-sizer,
    .masonry-grid[class*="columns-"] .masonry-grid-item {
        width: calc(100% - 20px);
    }
}

/* Loading animation */
.masonry-grid:not(.masonry-initialized) {
    opacity: 0;
}

.masonry-grid.masonry-initialized {
    opacity: 1;
    transition: opacity 0.4s ease-in;
}

.masonry-grid.masonry-error {
    opacity: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Optional: Add loading spinner */
.masonry-grid:not(.masonry-initialized)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* tags */
.com-tags-tag-list__category, .com-tags-tag__category {
	margin-top: 30px;
}

.tag-category .list-group-item h3 {
	margin: 0;
	font-size: 16px;
}

.tags .btn {
	font-size: 12px;
	padding: 0 5px;
	color: #fff;
}


/* User */
.com-users-login.login, .com-users-reset, .com-users-remind, .com-users-registration {
	max-width: 400px;
	margin: auto;
	padding: 15px;
	border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.control-group, .com-users-login__remember {
	margin-bottom: 15px;
}

.com-users-reset legend, .com-users-remind legend {
	font-size: 14px
}

/* Contact */
#contact-form legend {
	font-size: 16px;
	font-weight: 600;
}

.com-contact-featured__table {
	margin-top: 30px;
}

/* Modules */
.sidebar-right ul, .sidebar-left ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-right li, .sidebar-left li {
	margin-bottom: 10px
}


.mod-login__userdata > div {
	margin-bottom: 15px;
}

.awesomplete input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.mod-login__userdata.userdata {
	padding: 15px;
	border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

#Passkey {
	width: 24px;
}

/* offcanvas*/
.offcanvas-body .mod-menu {
	flex-direction: column;
}

.offcanvas-body .mod-menu__sub {
	display: none;
	padding: 10px
}

.offcanvas-body .nav-item {
	padding: 5px 0;
	border-bottom: 1px solid var(--bs-border-color);
	position: relative;
}

.offcanvas-body .nav-item:last-child {
	border-bottom: none;
}

.offcanvas-body a {
	font-size: 15px;
	color: #333
}

.offcanvas-body .active > a {
   font-weight: bold;
}

.offcanvas-body .subtoggle {
	padding: 0;
	background-color: transparent;
	border: none;
	width: 30px;
	height: 30px;
	position: absolute;
	right: 0;
	top: 1px;
	z-index: 1
}

.offcanvas-body .subtoggle.open {
	transform: rotate(-180deg);
	transition: all linear 200ms
}

/* To top */
.back-to-top-link {
	display: none;
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 1020;
}

@media screen and (max-width: 1080px) {

	body {
		font-size: 14px
	}

}

@media screen and (max-width: 991px) {

	h1 {
	  font-size: 24px
	}

	h2 {
	  font-size: 22px
	}

	h3 {
		font-size: 20px
	}

	h4 {
	  font-size: 18px
	}

	h5 {
	  font-size: 16px
	}

	h6 {
	   font-size: 15px
	}

	.main-search {
		display: none;
	}
}

@media screen and (max-width: 490px) {

	.toolbar {
		padding: 6px 0;
	}

	.toolbar .bg-alt {
		background-color: #333;
		color: #fff;
	}

	
	.cart-module .bi-cart3 {
		margin-top: 2px
	}

	.cart-module .total_products {
		display: none;
	}

	.vmCartModule .dropdown-menu {
		margin-right: -10px !important;
	}

	.cart-module .dropdown-toggle::after {
		content: none;
	}

	.com-contact-featured__items, .com-contact-category__items {
		overflow-x: auto;
	}

	footer {
		padding-bottom: 30px;
	}
}


/* Enhanced minimal design for VirtueMart user fields */
.active{
  font-size:100%;
}
/* Form container styling */
.vm-form-row {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Multi-column layout enhancements */
.vm-form-row .row.g-3 > [class*="col-"] {
    transition: all 0.3s ease;
}

/* Ensure proper spacing in multi-column forms */
.vm-form-row .row.g-3 {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.vm-form-row .row.g-3 > * {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* Visual grouping for related fields */
.vm-form-row .col-12.col-md-6:nth-child(odd) .form-control,
.vm-form-row .col-12.col-md-6:nth-child(odd) .form-select {
    border-left: 3px solid #e3f2fd;
}

.vm-form-row .col-12.col-md-6:nth-child(even) .form-control,
.vm-form-row .col-12.col-md-6:nth-child(even) .form-select {
    border-left: 3px solid #f3e5f5;
}

/* Input field animations */
.vm-form-row .form-control,
.vm-form-row .form-select {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-form-row .form-control:focus,
.vm-form-row .form-select:focus {
    background-color: #fff;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

/* Floating label effect (optional) */
.vm-form-row .form-floating > label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Fix for floating labels on selects with a value */
.vm-form-row .form-floating-has-value > label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.65;
}

/* Checkbox and radio styling */
.vm-form-row .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.vm-form-row .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: scale(1.1);
}

/* Error state styling */
.vm-form-row .is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.vm-form-row .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success state styling */
.vm-form-row .is-valid {
    border-color: #198754;
    background-image: none;
}

/* Button enhancements */
.vm-form-row .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vm-form-row .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.vm-form-row .btn-primary:active {
    transform: translateY(0);
}

/* Loading state for button */
.vm-form-row .btn-primary.loading {
    color: transparent;
}

.vm-form-row .btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Section dividers */
.vm-form-row .border-bottom {
    position: relative;
}

.vm-form-row .border-bottom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 2px;
}

/* Tooltip styling for help text */
.vm-form-row .form-text {
    position: relative;
    padding-left: 1rem;
}

.vm-form-row .form-text::before {
    content: 'ℹ';
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    background-color: #6c757d;
    
    border-radius: 50%;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    font-weight: bold;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vm-form-row .bg-white {
        background-color: #212529 !important;
    }
    
    /* Additional multi-column responsive styles */
    @media (min-width: 768px) {
        /* Create visual separation between columns */
        .vm-form-row .col-md-6 + .col-md-6 {
            position: relative;
        }
        
        /* Ensure equal height fields in same row */
        .vm-form-row .row.g-3 {
            display: flex;
            flex-wrap: wrap;
        }
        
        .vm-form-row .row.g-3 > [class*="col-"] {
            display: flex;
            flex-direction: column;
        }
        
        .vm-form-row .row.g-3 > [class*="col-"] > div {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .vm-form-row .row.g-3 .form-control,
        .vm-form-row .row.g-3 .form-select {
            flex: 1;
        }
    }
    
    /* Compact view for smaller screens */
    @media (max-width: 575px) {
        .vm-form-row .row.g-3 {
            margin-right: 0;
            margin-left: 0;
        }
        
        .vm-form-row .row.g-3 > * {
            padding-right: 0;
            padding-left: 0;
        }
    }
    
    /* Field-specific styling for better visual hierarchy */
    .vm-form-row [class*="col-"] .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    /* Address fields get special treatment */
    .vm-form-row .col-12:has(input[name*="address"]) .form-control {
        background-color: #fafafa;
    }
    
    /* Highlight required fields subtly */
    .vm-form-row .form-control:required,
    .vm-form-row .form-select:required {
        border-left-width: 3px;
        border-left-style: solid;
    }
    
    /* Group related fields visually */
    .vm-form-row fieldset {
        background-color: rgba(248, 249, 250, 0.5);
        border-radius: 0.5rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Smooth transitions for field focus across columns */
    .vm-form-row .form-control:focus,
    .vm-form-row .form-select:focus {
        z-index: 1;
        position: relative;
    }
    
    .vm-form-row .text-muted {
        color: #6c757d !important;
    }
    
    .vm-form-row .border-bottom {
        border-color: #495057 !important;
    }
}
  /*module vm_manufacture*/
.vmmanufacturer .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,.125);
    background-color: #fff;
}

.vmmanufacturer .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.manufacturer-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: #f8f9fa;
}

.manufacturer-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 1rem;
}

.vmmanufacturer .card-body {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,.125);
}

.vmmanufacturer .card-title {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

  .pagination > li {
   border: solid 1px;
   border-color: #1abade;
   border-radius: 3px;
   margin-right: 5px;
   padding:6px;
   font-weight:bold;
  }

  .pagination > li:hover{
    background-color:#1abade;
    color:white;
  }

  .pagination > li a:hover{
    color:white;
  }

  /* Pagination container - ensures no horizontal scrolling */
.pagination-container {
  width: 100%;
  overflow-x: auto;
}

/* Smaller page numbers on mobile */
@media (max-width: 576px) {
  .pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .vm-page-counter {
    text-align: center;
  }
}

/* Optional: Hide some page numbers on very small screens while keeping first, last, and current */
@media (max-width: 360px) {
  .pagination li:not(.active):not(:first-child):not(:last-child):not(.disabled) {
    display: none;
  }
  
  /* But always show immediate prev/next of current page */
  .pagination li.active + li,
  .pagination li.active:nth-child(n+2) {
    display: list-item;
  }
}
/* Responsive adjustments */
@media (max-width: 991.98px) {
    .row-cols-md-3 > .col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .row-cols-sm-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .row-cols-1 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Optional: Add animation for smooth transitions */
.vmmanufacturer .card {
    animation: fadeIn 0.5s ease-in-out;
}
/* Load More Button Styles */
.load-more-container {
    margin: 2rem 0;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.load-more-btn .spinner-border {
    margin-left: 0.5rem;
}

/* Animation for newly loaded items */
.load-more-item {
    animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.vm-form-row .form-control:focus-visible,
.vm-form-row .form-select:focus-visible,
.vm-form-row .form-check-input:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}
.boxn {
position:relative;
z-index:9999;
}
/* Print styles */
@media print {
    .vm-form-row .shadow-sm {
        box-shadow: none !important;
    }
    
    .vm-form-row .btn {
        display: none;
    }
}
/* Add this to your CSS file */
.vm-product-media-container img {
  transition: transform 0.2s ease-in-out;
}

.vm-product-media-container img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.price-crossed span:last-child{
  text-decoration: none !important;
}

/* Carousel */
#carousel {
  margin-bottom: 1.5rem;
}

.carousel-item picture,
.carousel-item img {
  height: auto;
  max-height: 70vh; /* Adjust as needed */
  object-fit: cover;
  width: 100%;
}

/* Custom styling for inline multicheckboxes */
.multicheckbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Spacing between items */
    padding-top: 0.25rem;
}

.multicheckbox-container .form-check {
    display: inline-flex; /* Make the container for input+label inline */
    align-items: center;
    padding-left: 0; /* Reset padding, we'll handle it manually */
}

.multicheckbox-container .form-check-input {
    /* Hide the default checkbox */
    display: none;
}

.multicheckbox-container .form-check-label {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    background-color: #f8f9fa;
    color: #212529;
}

/* Style for the selected state */
.multicheckbox-container .form-check-input:checked + .form-check-label {
    background-color: #0d6efd; /* Bootstrap primary color */
    color: #fff;
    border-color: #0d6efd;
}

/* Hover effect */
.multicheckbox-container .form-check-input:not(:checked) + .form-check-label:hover {
    background-color: #e9ecef;
}

/* VirtueMart often adds <br> tags, let's hide them */
.multicheckbox-container br {
    display: none;
}

/*********
Joomla
*********/

/* --- Chosen.js Floating Label Fix --- */

/*
 * When a value is selected in a Chosen dropdown, the original <select>
 * gets the .form-floating-has-value class from our PHP logic.
 * We use this to correctly style the floating label.
 */
.form-floating-has-value > label {
	opacity: 0.65;
	transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/*
 * Style the Chosen container to look like a Bootstrap form control.
 */
.form-floating > .chosen-container-single .chosen-single {
	height: calc(3.5rem + 2px);
	padding: 1rem 0.75rem;
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
}

/*
 * When the label is floated, the text inside Chosen needs to be pushed down
 * to avoid overlapping with the floated label.
 */
.form-floating-has-value > .chosen-container-single .chosen-single span {
	margin-top: 0.8rem;
	display: inline-block;
}

/*
 * Adjust the position of the dropdown arrow.
 */
.form-floating > .chosen-container-single .chosen-single div {
	top: 50%;
	transform: translateY(-50%);
}

/*
 * Remove the default Chosen box-shadow on focus and use Bootstrap's.
 */
.form-floating > .chosen-container.chosen-container-active .chosen-single {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- Fix for Checkbox incorrectly wrapped in form-floating --- */

/*
 * Target the specific container for the "invoice" checkbox.
 * Reset all properties from .form-floating that cause issues.
 */
.form-floating:has(#invoice_field) {
    /* Reset positioning and sizing from .form-floating */
    display: block;
    position: static;
    height: auto;
    padding: 0;
    border: none;

    /* Now, apply styles to mimic Bootstrap's .form-check */
    min-height: 1.5rem;
    padding-left: 1.75em; /* A bit more space */
    margin-bottom: 1rem !important; /* Ensure spacing is consistent */
}

/*
 * Reset the label's absolute positioning and transform.
 */
.form-floating:has(#invoice_field) > label {
    position: static;
    transform: none;
    opacity: 1;
    height: auto;
    padding: 0;
    margin-bottom: 0;
    display: inline-block;
}

/*
 * The .multicheckbox-container is an extra div, so we need to target the input inside it.
 */
.form-floating:has(#invoice_field) .multicheckbox-container {
    display: inline;
}

.form-floating:has(#invoice_field) .form-check-input {
    /* Apply styles from .form-check-input */
    float: left;
    margin-left: -1.75em;
    /* Ensure it's visible */
    position: static;
    opacity: 1;
}

/*
 * Specific adjustment for the State dropdown's selected text.
 * This pushes it down slightly to align better with the floated label.
 */
/*.form-floating-has-value > #virtuemart_state_id_field_chosen .chosen-single span {
	margin-top: 1.5rem;*/ /* Increased from 0.8rem to push text down */
/*}*/
.chosen-container-single .chosen-single span{
margin-top:13px;  
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
   /* content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-warning);*/
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}
/*
.copyright {
    background: #222222;
}*/

.copyright a {
    color: var(--bs-primary);
}

.copyright a:hover {
    color: var(--bs-danger);
}