
/* Mobile Responsive Styles
********************************/

/* Full viewport height */
html {
	min-height: 100%;
}

body {
	min-height: 100vh;
}

.wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.content {
	flex: 1;
}

/* Hamburger Menu Toggle Button - Hidden on desktop */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.menu-toggle-bar {
	display: block;
	width: 28px;
	height: 3px;
	background-color: #a41c1c;
	margin: 3px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.menu-toggle.active .menu-toggle-bar:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Toggle Button - Hidden on desktop */
.sidebar-toggle {
	display: none;
	position: absolute;
	top: 105px;
	right: -44px;
	transform: translateY(-50%);
	background: #a41c1c;
	color: #fff;
	border: none;
	border-radius: 0 8px 8px 0;
	width: 44px;
	height: 50px;
	cursor: pointer;
	z-index: 1;
	box-shadow: 3px 2px 8px rgba(0,0,0,0.3);
	transition: background 0.2s ease;
	font-size: 20px;
	line-height: 1;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.sidebar-toggle:hover {
	background: #8d0222;
}

/* Overlay for sidebar */
.sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
	display: block;
	opacity: 1;
}

/* Hide sidebar close button on desktop */
.sidebar-close {
	display: none;
}

@media only screen and (max-width: 1024px) {
	.main_menu ul {
		float: right;
		margin-right: 20px;
	}
}
/* Tablets and smaller devices */
@media only screen and (max-width: 980px) {
	.wrapper {
		width: 100%;
		max-width: 100%;
		-webkit-box-shadow: none;
		box-shadow: none;
	}

	.head {
		margin-bottom: 50px;
	}

	.content {
		margin-left: 0;
		padding: 15px;
	}

	.content .content-text {
		padding-right: 0;
	}

	.flexslider,
	.sidebar-news,
	.head-banner {
		display: none;
	}

	.homepage .head {
		height: auto;
	}

	.bottom {
	}

	.bottom .copy {
		line-height: 34px;
	}

	.lMenuContainer {
		float: none;
		width: 100%;
		margin: 10px 0;
		padding: 0;
		text-align: center;
	}

	.left_menu, .left_menu_active {
		display: inline-block;
		padding: 8px 15px;
		margin: 5px;
	}

	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 280px;
		max-width: 85vw;
		height: 100%;
		padding: 0;
		overflow: visible;
		background: #fff;
		z-index: 9001;
		box-shadow: 4px 0 12px rgba(0,0,0,0.25);
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}

	.sidebar.active {
		transform: translateX(0);
	}

	.sidebar-inner {
		height: 100%;
		overflow-y: auto;
		padding: 50px 15px 15px;
		position: relative;
	}

	.sidebar-toggle {
		display: flex;
	}

	.sidebar-close {
		display: block;
		position: absolute;
		top: 8px;
		right: 10px;
		background: none;
		border: none;
		font-size: 32px;
		color: #a41c1c;
		cursor: pointer;
		padding: 5px;
		line-height: 1;
		z-index: 1;
		width: 40px;
		height: 40px;
	}

	.sidebar h2 {
		font-size: 20px;
	}

	.sidebar h3 {
		margin-top: 0;
	}

	.sidebar .sidebar-social {
		left: auto;
		right: 20px;
	}

	.sidebar .sidebar-social a{
		display: inline-block;
		width: 25px;
		height: 26px;
	}

	.homepage .sidebar {
		top: 0;
	}

	.products-page .sidebar,
	.news .sidebar,
	.contact .sidebar {
		position: fixed;
		float: none;
	}

	.main_menu {
		height: auto;
		min-height: 70px;
		/* padding: 10px 0; */
	}

	.main_menu ul {
		margin-right: 15px;
		text-align: center;
		float: right;
	}

	.main_menu li {
		margin-left: 10px;
	}

	.main_menu > span {
		display: none;
	}

	.head .head-banner {
		height: auto;
	}

	.head h1 {
		left: 10px;
        top: 0px;
        background-size: contain;
	}

	.head h1 a {
		height: 70px;
        width: 70px;
	}

	.quantity {
		height: 45px;
		line-height: 45px;
		font-size: 20px;
	}

	.button {
		height: 45px;
		width: 45px;
		line-height: 45px;
		font-size: 20px;
		font-weight: bold;
	}

	.cart {
		width: 100%;
	}

	.cart tr {
		height: auto;
	}

	.cart input {
		height: 45px;
		width: 60px;
		line-height: 45px;
		font-size: 20px;
	}

	.cart .quantity-header,
	.cart .numbers-row {
		width: 160px;
		min-width: 160px;
	}

	.product input[type="submit"]{
		padding: 10px;
	}

	.content-filter {
		margin: 30px 20px 0;
	}

	.order-shipping-form {
		width: 100%;
	}

	#shipping-select {
		padding: 0;
	}

	#shipping-select option {
		padding: 7px 3px;
	}
}

/* Mobile phones */
@media only screen and (max-width: 768px) {
	body {
		font-size: 13px;
	}

	.wrapper {
		margin: 0;
	}

	.head h1 {
		left: 10px;
		top: 0px;
		background-size: contain;
	}

	.head h1 a {
		height: 70px;
		width: 70px;
	}

	.head .head-banner {
		height: auto;
		min-height: 120px;
	}

	.main_menu {
		background-size: cover;
		padding: 10px 5px;
		position: relative;
		overflow: visible;
	}

	.menu-toggle {
		display: flex;
	}

	.main_menu > span {
		left: 5px;
		font-size: 14px;
		line-height: normal;
		position: relative;
		display: block;
		padding: 18px 0 10px 100px;
		max-width: calc(100% - 60px);
	}

	.main_menu ul {
		float: none;
		margin: 0;
		text-align: left;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s ease-out;
		background-color: #eee; /* rgba(130, 15, 15, 0.95); */
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 9005;
	}

	.main_menu ul.show {
		max-height: 600px;
		transition: max-height 0.5s ease-in;
	}

	.main_menu li {
		display: block;
		margin: 0;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.main_menu a {
		display: block;
		padding: 12px 20px;
		font-size: 16px;
		line-height: 1.4;
		/* color: #fff !important; */
	}

	.main_menu a:hover {
		color: #8f8303 !important;
		/* background-color: rgba(255,255,255,0.1) !important; */
	}

	.main_menu #sel a {
		/* background-color: rgba(255,255,255,0.15) !important; */
	}

	.lMenuContainer {
		text-align: center;
	}

	.left_menu, .left_menu_active {
		display: block;
		width: 100%;
		text-align: center;
		padding: 12px 15px;
		margin: 2px 0;
	}

	.left_menu a, .left_menu_active a {
		font-size: 18px;
	}

	.content {
		padding: 10px;
		min-height: 300px;
	}

	/* Tables responsive */
	table {
		width: 100% !important;
		display: table;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table tbody, table tr, table th {
		/* display: block;
		width: 100% !important; */
	}

	table thead {
		display: none;
	}

	table tbody {
		width: 100% !important;
		min-width: 100%;
	}

	table tr {
		/* margin-bottom: 15px; */
		/* border: 1px solid #ddd; */
		/* padding: 10px; */
		/* display: block; */
		display: table-row;
		width: 100% !important;
	}

	table td {
		padding: 0 5px;
		/* text-align: left !important;
		padding: 8px !important;
		position: relative;
		padding-left: 50% !important;
		border-bottom: 1px solid #eee; */
		/* display: table-cell; */
	}

	table td:before {
		/* content: attr(data-label);
		position: absolute;
		left: 10px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		font-weight: bold;
		text-align: left; */
	}

	/* Forms */
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"],
	textarea,
	select {
		width: 100%;
		max-width: 100%;
		/* font-size: 16px; */
		padding: 10px;
		box-sizing: border-box;
		-webkit-appearance: none;
		border-radius: 4px;
	}

	.numbers-row .quantity {
		width: 60px;
		text-align: center;
		vertical-align: top;
	}

	.searchinput {
		width: 100%;
		max-width: 100%;
		padding: 10px;
	}

	/* Buttons */
	.btn, button, input[type="submit"] {
		min-width: 44px;
		min-height: 44px;
		padding: 8px 20px !important;
		font-size: 16px !important;
		cursor: pointer;
		-webkit-tap-highlight-color: rgba(0,0,0,0.1);
	}

	/* Images */
	.cart td {
		padding: 0 5px;
	}

	img {
		/* max-width: 100%; */
		height: auto;
	}

	/* Cart and order elements */
	.order-action-container {
		width: 100%;
		padding: 15px;
		margin: 15px 0;
	}

	.shipping-select {
		width: 100%;
	}

	#sipping-search-results {
		width: 100%;
	}

	.buttons {
		padding: 15px 0 0 0;
		text-align: center;
	}

	.quantity {
		float: none;
		display: inline-block;
	}

	/* Cabinet elements */
	.cabinet_ov_bl {
		padding: 10px;
	}

	.cabinet-client-cnt {
		padding-left: 50px;
	}

	.promo-products li {
		width: 49%;
		margin-bottom: 20px;
	}

	.products-list .product {
		width: 100%;
		margin-bottom: 20px;
	}

	.content-filter .search-filter,
	.content-filter .order-filter {
		float: none;
	}

	.content-filter .order-filter .order-filter-select{
		margin-bottom: 10px;
		margin-left: 0;
	}
	.order_steps {
		padding: 0;
	}
	.order_steps li {
		margin: 0 5px 0 0;
	}
	.order_steps li:last-child {
		margin: 0;
	}
}

/* Small phones */
@media only screen and (max-width: 480px) {
	body {
		font-size: 14px;
	}

	.main_menu > span {
		font-size: 12px;
	}

	.main_menu a {
		font-size: 15px;
		padding: 10px 15px;
	}

	.menu-toggle {
		width: 36px;
		height: 36px;
	}

	.menu-toggle-bar {
		width: 24px;
	}

	.left_menu a, .left_menu_active a {
		font-size: 16px;
	}

	.sidebar h2 {
		font-size: 18px;
	}

	#title, .content #title {
		font-size: 16px;
	}

	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"],
	textarea,
	select {
		font-size: 16px;
		padding: 12px;
	}

	.order-action-container {
		padding: 10px;
	}

	.promo-products li {
		width: 100%;
		margin-right: 0;
		margin-bottom: 20px;
	}
}

/* Landscape orientation improvements */
@media only screen and (max-width: 768px) and (orientation: landscape) {
	.head .head-banner {
		min-height: 80px;
	}

	/* Keep hamburger menu in landscape */
	.main_menu ul {
		max-height: 400px;
	}

	.main_menu ul.show {
		max-height: 400px;
	}

	.main_menu a {
		padding: 10px 20px;
		font-size: 14px;
	}
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
	a, button, .btn, input[type="submit"] {
		-webkit-tap-highlight-color: rgba(130, 15, 15, 0.2);
	}

	/* Increase touch target sizes */
	a {
		/* padding: 8px 4px; */
		display: inline-block;
	}
}