/*==========  Desktop First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {


	/*----------header-----------*/
	.container {
		width: 962px;
		padding: 0 15px;
	}
	header .header_top_line .town {
		width: 30%;
		margin: 0;
		padding: 0;
	}
	header .header_top_line-nav {
		text-align: right;
		width: 69%;
		margin: 0;
		padding: 0;
	}
	header .header_top_line .time {
		width: 50%;
		margin: 0;
	}
	header .header_top_line .personal_area {
		margin-top: 10px;
		width: 49%;
		text-align: right;
	}
	header .header_middle_line-logo {
		float: left;
	}
	header .header_middle_line-email, header .header_middle_line-phone, header .header_middle_line-basket {
		width: 300px;
	}
	header .header_bottom_line .m_main .f_menu-second {
		padding-left: 29px;
		width: 678px;
		min-height: 622px;
		height: auto;
	}


	header .header_bottom_line .m_main-btn_link:hover + .f_menu_wraper {
		display: none;
	}
	header .header_bottom_line .m_main .f_menu-second-l {
		column-count: 3;
	}
	header .header_bottom_line .header_form_search {
		width: 658px;
	}
	header .header_bottom_line .header_form_search-text {
		width: 415px;
	}
	/*-----footer------*/
	.footer_col {
		width: 200px;
	}
	.footer_catalog-item {
		margin-bottom: 20px;
	}
	.footer_catalog-item a {
		line-height: 14px;
	}
	/*-------index-----------*/
	.plus_company .container {
		padding: 38px 0 0;
	}
	.plus_company-item {
		margin-right: 100px;
		margin-bottom: 38px;
	}
	.bg_card_product {
		margin: 0 96px 15px;
	}
	.popular_categories-box {
		width: 230px;
		height: 178px;
		overflow: hidden;
	}
	.footer_col {
		width: 200px;
	}
	.footer_catalog-item {
		margin-bottom: 20px;
	}
	.footer_catalog-item a {
		line-height: 14px;
	}
	/*-------card_page-----------*/

	/*----catalog_page--------*/
	.catalog-wraper {
		width: 714px;
		padding-bottom: 50px;
	}
	.catalog-wraper .catalog_card_product {
		margin-right: 16px;
	}
	.catalog-wraper .catalog_card_product:nth-child(4n) {
		margin-right: 16px;
	}
	.catalog-wraper .catalog_card_product:nth-child(3n) {
		margin-right: 0;
	}
	/*----catagoria_page--------*/
	.categoria .categoria_wraper {
		width: 710px;
	}
	.categoria .categoria_wraper .catalog_card_product_c, .categoria .categoria_wraper .catalog_card_product_c:nth-child(4n) {
		margin-right: 14px;
	}
	.categoria .categoria_wraper .catalog_card_product_c:nth-child(3n) {
		margin-right: 0;
	}
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
	/*----------header-----------*/
	.container {
		width: 738px;
	}
	header .header_middle_line-email, header .header_middle_line-phone, header .header_middle_line-basket {
		width: 192px;
	}
	header .header_bottom_line .m_main .f_menu-second {
		padding-left: 29px;
		width: 454px;
		min-height: 622px;
		height: auto;
	}
	header .header_bottom_line .m_main .f_menu-second-l {
		column-count: 2;
	}
	header .header_bottom_line .header_form_search {
		width: 100%;
		margin-bottom: 15px;
	}
	header .header_bottom_line .header_form_search-text {
		width: 490px;
	}
	/*-----footer------*/
	.footer_form_search-text {
		width: 64%;
	}
	.footer_col {
		width: 315px;
	}
	.hidden_sm {
		display: none;
	}
	.categoria .sidebar_filter-btn {
		display: block;
	}
	/*-----index------*/
	.bg_card_product {
		margin: 0 40px 15px;
	}
	.popular_categories-box {
		width: 174px;
		height: 148px;
	}
	.popular_categories-box-name {
		font-size: 14px;
	}
	/*----catalog_page--------*/
	.catalog-wraper {
		width: 480px;
		padding-bottom: 50px;
	}
	.catalog-wraper .catalog_card_product:nth-child(n) {
		margin-right: 27px;
	}
	.catalog-wraper .catalog_card_product:nth-child(2n) {
		margin-right: 0;
	}
	/*----catagoria_page--------*/
	.categoria .selecter {
		margin-bottom: 30px;
	}
	.categoria .categoria_wraper {
		width: 484px;
	}
	.categoria .categoria_wraper .catalog_card_product_c, .categoria .categoria_wraper .catalog_card_product_c:nth-child(3n) {
		margin-right: 14px;
	}
	.categoria .categoria_wraper .catalog_card_product_c:nth-child(2n) {
		margin-right: 0;
	}
	.categoria .categoria_wraper .page_nav-i-prev, .categoria .categoria_wraper .page_nav-i-next {
		width: 60px;
	}
	
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
	/*----------header-----------*/
	.container {
		width: 450px;

	}
	header .header_top_line .town {
		float: left;
		width: 50%;
	}
	header .header_top_line-nav {
		float: left;
		width: 100%;
		margin-top: 15px;
		text-align: center;
	}
	header .header_top_line .personal_area {
		float: right;
	}
	header .header_middle_line .container {
		text-align: center;
	}
	header .header_middle_line-logo, header .header_middle_line-email, header .header_middle_line-phone {
		width: auto;
		margin: 0;
		padding: 0;
		float: none;
		display: block;
	}
	header .header_middle_line-email_icon{
		left: 150px;
	}
	header .header_middle_line-phone_icon {
		left: 115px;
	}
	header .header_middle_line-basket {
		width: 100%;
		text-align: center;
	}


	header .header_bottom_line .m_main {
		max-width: 100%;
		margin: 0;
	}
	header .header_bottom_line .m_main .f_menu_wraper {
		position: static;
		width: 100%;
		margin: 0;
		height: auto;
		box-shadow: none;
		border-top-right-radius: 0;
		border-top-left-radius: 0;
		padding: 0;
	}
	header .header_bottom_line .m_main .f_menu, header .header_bottom_line .m_main .f_menu:hover {
		width: 100%;
		border-radius: 0 0 5px 5px;
	}
	header .header_bottom_line .m_main .f_menu:hover {
		height: auto;
	}
	header .header_bottom_line .m_main .f_menu-second {
		position: static;
		width: 100%;
		padding: 10px;
		height: auto;
	}
	header .header_bottom_line .m_main .f_menu-second-title {
		display: none;
	}
	header .header_bottom_line .m_main .f_menu-second-l {
		-webkit-column-count: 1;
		-moz-column-count: 1;
		-o-column-count: 1;
		column-count: 1;
	}
	header .header_bottom_line .m_main .f_menu-second-i {
		display: block;
	}
	header .header_bottom_line .header_form_search {
		height: auto;
		background: none;
	}
	header .header_bottom_line .header_form_search .selecter-selected {
		width: 450px;
		max-width: 450px;
		border-radius: 4px;
	}
	header .header_bottom_line .header_form_search-text {
		width: 450px;
		position: static;
		margin-top: 5px;
		border-radius: 4px;
	}
	header .header_bottom_line .header_form_search-btn {
		top: -14px;
	}
	/*-----footer------*/
	.footer_form_search {
		height: auto;
		background: none;
	}
	.footer_form_search .selecter-selected {
		width: 450px;
		max-width: 450px;
		border-radius: 4px;
	}	
	.footer_form_search-text {
		width: 450px;
		position: static;
		margin-top: 5px;
		border-radius: 4px;
	}
	.footer_form_search-btn {
		top: -14px;
	}
	.footer_col {
		width: 100%;
		margin: 0;
		text-align: center;
	}
	.footer-nav {
		margin-bottom: 15px;
	}
	.footer_bottom_line .menu-item {
		margin: 0 10px;
	}
	/*-----index------*/
	.bg_card_product:nth-child(n) {
		display: block;
		margin: 0 auto 15px;
	}
	.popular_categories-box {
		width: 217px;
	}
	.popular_categories-box:nth-child(2n) {
		margin-right: 0;
	}
	.plus_company .container {
		text-align: left;
	}
	.plus_company-item {
		margin-right: 10px;
		width: 150px;
	}
	/*--------card_page-------*/
	.detail-slider {
		width: 100%;
	}
	.detail-slider #bx-pager a {
		width: 86px;
	}
	.detail-tabs-i {
		font-size: 12px;
	}
	.detail-tabs-c .description {
		column-count: 1;
	}
	.detail-tabs table tr td {
		font-size: 12px;
	}
	/*--------catalog_page-------*/
	.catalog-side_bar {
		width: 100%;
		margin-bottom: 10px;
	}
	.catalog-wraper {
		width: 100%;
		padding-bottom: 15px;
	}
	.catalog-wraper .catalog_card_product:nth-child(n) {
		width: 223px;
		margin-right: 1px;
	}
	.catalog-wraper .catalog_card_product:nth-child(2n) {
		margin-right: 0;
	}
	.catalog-wraper .catalog_card_product

	.plus_company .container {
		text-align: center;
	}
	/*----catagoria_page--------*/
	.categoria .categoria_wraper {
		width: 100%;
	}
	.categoria .categoria_wraper .catalog_card_product_c, .categoria .categoria_wraper .catalog_card_product_c:nth-child(3n) {
		margin-right: 0;
		width: 223px;
	}
	.categoria .sidebar_filter {
		margin-bottom: 15px;
	}
	.categoria .categoria_wraper .page_nav-i {
		margin-right: 5px;
	}


}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {

    header .header_bottom_line .m_main .f_menu-second{
        min-height: auto;
    }

    header .header_bottom_line .m_main .f_menu-l-i:hover .f_menu-second {
        display:none; }

	/*----------header-----------*/
	.container {
		width: 300px;
		padding: 0 10px;
	}
	header .header_top_line .town {
		float: left;
		width: 100%;
	}
	header .header_top_line .time {
		width: 100%;
		text-align: center;
	}
	header .header_top_line-nav {
		float: left;
		width: 100%;
		margin-top: 15px;
		margin-bottom: 15px;
		text-align: center;
	}
	header .header_top_line-nav .menu-item {
		display: block;
		margin: 0;
		padding: 0;
	}
	header .header_top_line-nav .menu-item a {
		display: block;
		padding: 15px 0;
		background: #f2f4f5;
		border-bottom: 1px solid #fff;
	}
	header .header_top_line .personal_area {
		float: none;
		width: 100%;
		text-align: center;
	}

	header .header_middle_line-email_icon{
		left: 80px;
	}
	header .header_middle_line-phone_icon {
		left: 40px;
	}
	header .header_bottom_line .header_form_search .selecter-selected {
		width: 300px;
		max-width: 300px;
	}
	header .header_bottom_line .header_form_search-text {
		width: 300px;
	}
	/*-----footer------*/
	.footer_form_search .selecter-selected {
		width: 300px;
		max-width: 300px;
	}
	.footer_form_search-text {
		width: 300px;
	}
	.footer_bottom_col {
		width: 100%;
		text-align: center;
	}
	.footer_bottom_line .menu {
		text-align: center;
		width: 100%;
	}
	.footer_bottom_line .menu-item {
		display: block;
		margin-bottom: 10px;
	}
	/*---index_page--------*/
	.popular_categories-box {
		width: 289px;
		height: 218px;
	}
	/*----card_page--------*/
	.detail-slider #bx-pager a {
		margin-right: 0;
	}
	.detail_char {
		margin-right: 0;
	}
	.detail-min_char-table {
		width: 100%;
	}
	.detail-tabs-i {
		width: 50%;
	}
	.sm_card_product {
		margin-left: 50px;
	}
	/*----catalog_page--------*/
	.catalog-wraper {
		width: 100%;
		padding-bottom: 50px;
	}
	.catalog-wraper .catalog_card_product, .catalog-wraper .catalog_card_product:nth-child(n) {
		margin: 0 auto 10px;
		display: block;
		width: 100%;
	}
	.catalog_card_product-img_box {
		margin: 0 auto; 
	}
	.categoria .sidebar_filter {
		width: 100%;
	}
	.categoria .categoria_wraper .catalog_card_product_c, .categoria .categoria_wraper .catalog_card_product_c:nth-child(n) {
		width: 225px;
		display: block;
		margin: 0 auto 15px;
	}
    .basket-form input {
        width: 100%;
    }
    .basket-form input[id=address] {
        width: 100%;
    }
    .basket-form textarea {
        width: 100%;
        height: 200px;
    }
    .basket-form .pdgl {
        padding-left: 0;
    }
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {

}


/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {

}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}



/* VESYSTEM_MOBILE_MENU_STABLE */
@media (max-width: 992px) {
  header .header_bottom_line .m_main .f_menu_wraper {
    position: static;
    width: 100%;
    margin: 0;
    height: auto;
    box-shadow: none;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    padding: 0;
  }

  body.menu-open-lock header .header_bottom_line .m_main .f_menu_wraper,
  body.menu-open-lock .f_menu_wraper.f_menu-index {
    position: fixed !important;
    margin: 0 !important;
    z-index: 2147483000 !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }

  body.menu-open-lock .f_menu_wraper .f_menu {
    max-height: 56vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  }

/* VESYSTEM_MOBILE_NO_HOVER_SUBMENU */
@media (max-width: 992px) {
  header .header_bottom_line .m_main .f_menu-l-i:hover .f_menu-second,
  header .header_bottom_line .m_main .f_menu-second,
  header .header_bottom_line .m_main .f_menu-second-l,
  header .header_bottom_line .m_main .f_menu-second-title {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  header .header_bottom_line .m_main .f_menu-l-i:hover {
    background: transparent !important;
  }
}

/* VESYSTEM_MOBILE_NO_SUBMENU_SHIFT */
@media (max-width: 992px) {
  header .header_bottom_line .m_main .f_menu-second,
  header .header_bottom_line .m_main .f_menu-l-i:hover .f_menu-second,
  header .header_bottom_line .m_main .f_menu-second-l,
  header .header_bottom_line .m_main .f_menu-second-title {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  header .header_bottom_line .m_main .f_menu-l-i:hover {
    background: transparent !important;
  }
}

/* VESYSTEM_SIMPLE_MODE_FORCED */
@media (max-width: 992px) {
  .m_main { position: relative !important; }

  .m_main .f_menu_wraper,
  .f_menu_wraper.f_menu-index {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: 56vh !important;
    margin: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }
}

/* VESYSTEM_MOBILE_SEARCH_BUTTON_TRANSFORM_FORCE */
@media only screen and (max-width: 991px) {
    header .header_bottom_line input.header_form_search-btn[type="submit"],
    .footer_form_search input.header_form_search-btn[type="submit"] {
        position: absolute !important;
        right: 11px !important;
        top: 9px !important;
        transform: translateY(8px) !important;
        -webkit-transform: translateY(8px) !important;
        width: 18px !important;
        height: 18px !important;
        background: url("../img/icon/btn_search_icon.png") no-repeat left top !important;
        background-size: 18px 18px !important;
        background-color: transparent !important;
        border: none !important;
        z-index: 999 !important;
    }
}

/* VESYSTEM_MOBILE_SEARCH_SUBTLE_OUTLINE */
@media only screen and (max-width: 991px) {
    header .header_bottom_line .header_form_search-text,
    .footer_form_search .footer_form_search-text {
        border: 1px solid rgba(255, 255, 255, 0.42) !important;
        border-radius: 4px !important;
        transform: translateY(1px) !important;
        -webkit-transform: translateY(1px) !important;
        box-sizing: border-box !important;
    }
}

/* VESYSTEM_MOBILE_MENU_MINUS_1PX_RIGHT */
@media only screen and (max-width: 991px) {
    header .header_bottom_line .m_main .f_menu {
        width: calc(100% - 1px) !important;
    }
}
