/* from vmbasic */
/* Bootstrap */
a:link {
  text-decoration: none;
  
}

a:visited {
  text-decoration: none;
}

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

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



.dropdown-menu {
	border-radius: 0;
	--bs-dropdown-zindex: 1030;
	
}

.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-bg: #333;
	--bs-btn-border-color: #333;
	--bs-btn-hover-bg: #555;
	--bs-btn-hover-border-color: #555;
	--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: 14px;
	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
}

h4 {
	font-size: 22px
}

h5 {
	font-size: 20px
}

h6 {
	font-size: 18px
}

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

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

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

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

.top-bar {
	font-weight: bold;
}

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: #555;
    color: #fff;
    font-size: 14px;
    overflow: vissible;
    
}

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

/* Active / current / default states */
.mod-menu .current > a,
.mod-menu .active > a {
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
  text-decoration: none;
}

.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;
    text-decoration: none;
	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: #000;
	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: 200px;
    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;
    }
}
/* 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;
}

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

/* Footer */
footer {
	padding: 20px 0;
	background-color: #007ac4;
}

footer .module-title {
	font-size: 18px;
	margin-bottom: 20px;
}

footer .nav {
	flex-direction: column;
}

footer ul {
	list-style: none;
	padding: 0;
	margin: 0
}

footer .nav-item, footer li {
	margin-bottom: 10px;
}

footer a {
	color: #333;
}

footer a:hover {
	color: #A0A0A0;
}
/*     footer-section     */
  /* .footer-section {
       background-color: #1a1a1a !important;
    }*/
    .footer-section a {
        transition: opacity 0.3s ease;
    }
    .footer-section a:hover {
        opacity: 0.8;
    }
    .footer-section .list-unstyled li {
        margin-bottom: 0.5rem;
    }
    .footer-section .social-links a:hover {
        transform: translateY(-2px);
    }
    .footer-section .social-links a {
        transition: transform 0.3s ease;
    }
    .hover-opacity:hover {
        opacity: 0.8;
    }
    .hover-link:hover {
        color: #0dcaf0 !important;
    }
/* Forms */
textarea {
	min-height: 100px
}

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

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

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

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

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


/*********
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;
	}

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

	.top-bar a {
		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;
	}
}


    
    /* 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 {
 
}
 #csvpagination a{
   margin: 0 !important;
 }

  /* 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;
    }
}
/* vm-zoom */
/* .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%;
}

/* Articles Module - 3 Column Layout with Image Left, Text Right */
.mod-articles-container.mod-articles-3-column {
  margin: 0;
  padding: 0;
}

.mod-articles-3-column .mod-articles-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mod-articles-3-column .mod-articles-item {
  background: #efe8e8;
  border: 1px solid #e0e0e0;
  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;
  height: 100%;
}

.mod-articles-3-column .mod-articles-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mod-articles-3-column .mod-articles-item-wrapper {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.mod-articles-3-column .mod-articles-image {
  flex: 0 0 40%;
  overflow: hidden;
  /* Optimized for 241x307px images (aspect ratio ~0.785) */
  aspect-ratio: 241/307;
  min-height: 180px;
  max-height: 250px;
}

.mod-articles-3-column .mod-articles-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
  /* Ensure crisp rendering for 241x307 images */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.mod-articles-3-column .mod-articles-item:hover .mod-articles-image img {
  transform: scale(1.05);
}

.mod-articles-3-column .mod-articles-item-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.mod-articles-3-column .mod-articles-title {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.3;
}

.mod-articles-3-column .mod-articles-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mod-articles-3-column .mod-articles-link:hover {
  color: #007bff;
}

.mod-articles-3-column dl {
  margin: 0 0 10px 0;
  font-size: 0.85em;
  color: #666;
}

.mod-articles-3-column dd {
  margin: 0 5px 5px 0;
  display: inline-block;
}

.mod-articles-3-column .mod-articles-tags {
  margin: 10px 0;
}

.mod-articles-3-column p {
  margin: 10px 0;
  line-height: 1.5;
  color: #555;
  flex-grow: 1;
}

.mod-articles-3-column .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Responsive Design */
@media (max-width: 992px) {
  .mod-articles-3-column .mod-articles-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .mod-articles-3-column .mod-articles-items {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mod-articles-3-column .mod-articles-item-wrapper {
    flex-direction: column;
  }
  
  .mod-articles-3-column .mod-articles-image {
    flex: 0 0 auto;
    width: 100%;
    /* Maintain aspect ratio for 241x307 images on mobile */
    aspect-ratio: 241/307;
    height: auto;
    max-height: 300px;
    min-height: 200px;
  }
  
  .mod-articles-3-column .mod-articles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Better scaling for 241x307 original dimensions */
    max-width: 241px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .mod-articles-3-column .mod-articles-image {
    /* Optimized for 241x307 on small screens */
    max-height: 240px;
    min-height: 160px;
    aspect-ratio: 241/307;
  }
  
  .mod-articles-3-column .mod-articles-image img {
    max-width: 200px;
  }
  
  .mod-articles-3-column .mod-articles-item-content {
    padding: 12px;
  }
  
  .mod-articles-3-column .mod-articles-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 360px) {
  .mod-articles-3-column .mod-articles-image {
    max-height: 200px;
    min-height: 140px;
    aspect-ratio: 241/307;
  }
  
  .mod-articles-3-column .mod-articles-image img {
    max-width: 160px;
  }
  
  .mod-articles-3-column .mod-articles-item-content {
    padding: 10px;
  }
  
  .mod-articles-3-column .mod-articles-title {
    font-size: 0.95rem;
  }
}

/* Additional optimization for exact 241x307 images */
@media (min-width: 1200px) {
  .mod-articles-3-column .mod-articles-image {
    /* On large screens, allow native size if container permits */
    max-height: 307px;
    min-height: 200px;
  }
  
  .mod-articles-3-column .mod-articles-image img {
    /* Prevent upscaling beyond original dimensions */
    max-width: 241px;
    max-height: 307px;
  }
}
/* newsletter*/
.subscribe-area {
background-image: linear-gradient(to top, #00c6fb 0%, #005bea 100%);
}

.pb-40 {
    padding-bottom: 40px;
}
.pt-50 {
    padding-top: 50px;
}

.mb-15 {
    margin-bottom: 15px;
}

.subscribe-text span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 5px;
}
.subscribe-text h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 0;
    margin-top: 6px;
}
.subscribe-wrapper {
    overflow: hidden;
}
.mb-25 {
    margin-bottom: 25px;
}
.subscribe-form {
}
.subscribe2-wrapper .subscribe-form input {
    background: none;
    border: 1px solid #fff;
    border-radius: 30px;
    color: #fff;
    display: inline-block;
    font-size: 15px;
    font-weight: 300;
   height: 45px;
    margin-right: 17px;
    padding-left: 35px;
    width: 70%;
    cursor: pointer;
}
 
.subscribe2-wrapper .subscribe-form button {
    background: #ffff;
    border: none;
    border-radius: 30px;
    color: #4b5d73;
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    padding: 18px 40px;
    transition: all 0.3s ease 0s;
}
.subscribe2-wrapper .subscribe-form button i {
    font-size: 18px;
    padding-left: 5px;
 }
/* ============================================
   cookie-consent-banner
   ============================================ */

.cookie-consent-banner {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(33, 37, 41, 0.95);
		color: #fff;
		padding: 1rem 0;
		z-index: 9999;
		box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	}
	.cookie-content {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 1rem;
	}
	.cookie-content p {
		margin: 0;
		flex: 1;
		min-width: 200px;
	}
	.cookie-buttons {
		display: flex;
		gap: 0.5rem;
		flex-wrap: wrap;
	}
	.cookie-buttons .btn-link {
		color: #fff;
	}