/* xs */
@media (max-width: 767px) {
    h1, .h1
    {
	font-size: 2em;
    }
    .col-xs-five {
        width: 20%;
        float: left;
    }

    .scroll-container{
        height: 390px; 
    }
    
    .panel {
	margin-bottom: 8px;
    }
    
    .mainInfo{
	padding: 8px;
    }
    
    .container {
	margin-right: auto;
	margin-left: auto;
	padding-left: 8px;
	padding-right: 8px;
    }
    
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
	position: relative;
	min-height: 1px;
	padding-left: 4px;
	padding-right: 4px;
    }
    
    .row {
	margin-left: -4px;
	margin-right: -4px;
    }    
    
    .pull-right-xs {
      float: right !important;
    }
    
    #toolbar {
        height: 100px;
    }
    
    .toolbar_center
    {
        position: relative;
        top: -10px;
    }
    
    div.logo {
        height: 100px;
        /*width: 210px;*/
        line-height: 100px;
    }
    
    #topheader {
        height: 50px;
	background-color:#fff;
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 1040;
	
	/*box-shadow: 0 0px 4px rgba(0,0,0,.1);*/
    }
    
    #page-body{
	padding-top: 83px;
    }
    
    .town {
	height: 50px;
	line-height: 50px;
	font-size: 15px;
    }
    
   
    body{margin-bottom: 284px;}

    
    .form-control{
        margin-bottom: 3px;
    }
    
    .item > span{
        margin-left: 5px;
    }
    
    .text-center-xs{
        text-align: center;
    }
    
    .filter-panel{
        height: 200px;
        overflow-y: auto;
    }
    
    .catmenu{
        margin-top: 16px;
    }
    
    .catalog_button{
        padding: 5px 16px 5px 16px;
        font-size: 14px;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        /*background: #fff;*/
        cursor: pointer;
        height: 50px;
        line-height: 40px;
        width: 100%;
        text-align: center;
        color: #fff;
        background: radial-gradient(white, #FFA9A1);
        background: linear-gradient(120deg,#ff6820,#ff4a3f);
    }
    
    .minicat-item{
	padding: 4px;
    }
    
    .dopgoods-item{
	min-height: 160px;
    }
    
    .goods_items_xs > .row
    {
	margin-left: -4px;/*-2*/
	margin-right: -4px;/*-2*/
    }
    

    .show_add{
	margin-top: 8px;
    }
    .scatalog_item{
	padding: 15px;
	margin-bottom: 0px; /*8*/
    }
    
    .goods_item_image{
	width: 70px;
    }
    
    .price0 {
	    font-size: 18px;
	    font-weight: 700;
	    font-style: normal;
	    color: black;
    }
    .goods_item_brand{
	font-size: 12px;
	padding: 5px 0 5px 0;
    }
    
    .scatalog_item{
        margin-bottom: 10px;
        border: 1px solid #E3E3E3;
        border-radius: 10px;
    }
    
    .fixed-xs{
	position: fixed;
	left: 0px;
	top: 0px;
    }
    
    .modal > .modal-lg {
	position: relative;
	width: auto;
	margin: 0px;
	height: 100%;
    }
    .modal-lg > .modal-content {
	border: 0px;
	height: 100%;
	border-radius: 0px;
    }
    
    .modal-lg > .modal-content > .modal-footer {

	position: absolute;
	bottom: 0;
	width: 100%;
	height: 75px;
	max-height: 75px;
	background-color: #f5f5f5;
    }
    
    .close {
	font-size: 31px;
    }
    .scatalog-pic{
	min-height: 135px;
	max-height: 135px;
    }
    
    .navi-brand{
	position: relative;
	top: 15px;
	left: 15px;
	font-weight: 700;
	font-size: 20px;
    }
    
    .scatalog_item{
	/*border: 1px solid #ededed;*/
    }
    
    .scrolling-wrapper-flexbox {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
    }
    
    .scrolling-wrapper-flexbox-item {
	flex: 0 0 auto;
    }
    
    .scrolling-wrapper-flexbox {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .scrolling-wrapper-flexbox::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
      overflow-x: hidden;
    }
    
    .popular_cat_xs
    {
	min-height: 150px;
    }

}
/* sm */
@media (min-width: 768px) and (max-width: 991px) {
    .pull-right-sm {
      float: right !important;
    }

    .scroll-container{
        height: 390px; 
    }
    
    .mainInfo{
	padding: 8px;
    }
    
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
	position: relative;
	min-height: 1px;
	padding-left: 4px;
	padding-right: 4px;
    }
    
    .row {
	margin-left: -4px;
	margin-right: -4px;
    }
    
    #toolbar {
        /*height: 140px;*/
    }
    
    .toolbar_center
    {
        position: relative;
        top: -10px;
    }
    
    .col-sm-five {
        width: 18%;
        float: left;
    }
    
    .panel {
	margin-bottom: 8px;
    }
    
    body{margin-bottom: 765px;}
    
    .footer {
        min-height: 600px;
    }
    
    .item > span{
        margin-left: 10px;
    }
    
    .filter-panel{
        height: 200px;
        overflow-y: auto;
    }
    
    .catmenu{
        margin-top: 16px;
    }
    
    .catalog_button{
        padding: 5px 16px 5px 16px;
        font-size: 14px;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        /*background: #fff;*/
        cursor: pointer;
        height: 50px;
        line-height: 40px;
        width: 100%;
        text-align: center;
        color: #fff;
        background: radial-gradient(white, #FFA9A1);
        background: linear-gradient(120deg,#ff6820,#ff4a3f);
    }
    
    .text-center-sm{
        text-align: center;
    }
    
    .minicat-item{
	padding: 4px;
    }
    
    .dopgoods-item{
	min-height: 190px;
    }
    
    .goods_item_image{
	height: 100px;
	width: 100px;
    }
    
    .goods_item_brand{
	font-size: 15px;
	padding: 10px 0 10px 0;
    }
    
    .popular_cat{
	margin-bottom: 8px;
    }
    
    .scatalog_item{
        margin-bottom: 10px;
        border: 1px solid #E3E3E3;
        border-radius: 10px;
    }
    
    .scatalog-pic {
	min-height: 200px;
	max-height: 200px;
    }
    .scrolling-wrapper-flexbox {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
    }
      
    .scrolling-wrapper-flexbox {
	-webkit-overflow-scrolling: touch;
    }
    
    .scrolling-wrapper-flexbox-item {
	flex: 0 0 auto;
    }
    
    .scrolling-wrapper-flexbox {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .scrolling-wrapper-flexbox::-webkit-scrollbar {
      width: 0;
      height: 0;
    }
    
}

/* md */
@media (min-width: 992px) and (max-width: 1199px) {
    .pull-right-md {
      float: right !important;
    }

    .content-text{
        width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .right-city{
        margin-bottom: 15px;
        padding-right: 40px !important;
        margin-top: 10px;
    }

    .left-city{
        padding-left: 40px !important;
        margin-top: 20px;
        border-left: 1px solid #E3E3E3;
        margin-bottom: 20px;
    }

    #cityList{
        column-count: 2;
        column-gap: 20px;
        list-style-position: inside;
        height: 100%;
    }

    .modal-lg{
        width: 900px
    }

    .empty-authorization{
        margin-right: 12px;
    }

    .card-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        column-gap: 15px; /* Отступ только между колонками (справа) */
        row-gap: 15px; /* Отступ между строками */
        align-items: start; /* Выравнивание по верхнему краю */
      }

      .card-container-authorization{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 3 колонки */
        column-gap: 15px; /* Отступ только между колонками (справа) */
        row-gap: 15px; /* Отступ между строками */
        align-items: start; /* Выравнивание по верхнему краю */
    }

    .block-card-md-lg{
        margin-right: 5px;
    }
    
    .mainInfo{
	padding: 16px;
    }
    
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
	position: relative;
	min-height: 1px;
	padding-left: 8px;
	padding-right: 8px;
    }
    
    .row {
	margin-left: -8px;
	margin-right: -8px;
    }
    
    .toolbar_center
    {
        position: relative;
        top: 33px;
    }
    
    .col-md-five {
        width: 18%;
        float: left;
    }
    
    body{margin-bottom: 600px;}
    
    .footer {
        min-height: 500px;
    }
    
    .item > span{
        margin-left: 15px;
    }
    
    .filter-panel{
        height: 300px;
        overflow-y: auto;
    }
    
    .reg_form_dialog{
        max-width: 400px;
    }
        
    .catalog_button{
        /* padding: 5px 16px 5px 16px;
        font-size: 14px;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
        height: 50px;
        line-height: 40px;
        width: 100%;
        text-align: center;
        color: #fff;
        background: radial-gradient(white, #FFA9A1);
        background: linear-gradient(120deg,#ff6820,#ff4a3f); */
        padding: 5px 16px 5px 16px;
        font-size: 16px;
        border-radius: 8px;
        background: #E52D27;
        cursor: pointer;
        height: 48px;
        line-height: 40px;
        width: 100%;
        text-align: center;
        color: #fff;
    }
    
    .text-center-md{
        text-align: center;
    }
    
    .minicat-item{
	padding: 4px;
    }
    
    .dopgoods-item{
	min-height: 201px;
    }
    
    .goods_item_image{
        height: 100px;
        width: 100px;
    }
    
    .goods_item_brand{
	font-size: 15px;
	padding: 10px 0 10px 0;
    }
    
    .popular_cat{
	margin-bottom: 16px;
    }
    
    .navbar {
      right: auto;
      background: none;
      border: none;
    }
    
    .scatalog_item{
        margin-bottom: 10px;
        border: 1px solid #E3E3E3;
        border-radius: 10px;
    }
    
    .scatalog-pic {
	min-height: 200px;
	max-height: 200px;
    }
}

/* lg */
@media (min-width: 1200px) {
    .pull-right-lg {
      float: right !important;
    }

    .content-text{
        width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #cityList{
        column-count: 2;
        column-gap: 20px;
        list-style-position: inside;
        height: 100%;
    }

    #modal-catalog{
        padding: 13px 20px 0px 20px;
        margin-bottom: -8px;
    }

    .modal-lg{
        width: 1150px
    }

    .block-card-md-lg{
        margin-right: 5px;
    }

    .empty-authorization{
        margin-right: 12px;
    }

    .right-city{
        margin-bottom: 15px;
        padding-right: 40px !important;
        margin-top: 10px;
    }

    .left-city{
        padding-left: 40px !important;
        margin-top: 20px;
        border-left: 1px solid #E3E3E3;
        margin-bottom: 20px;
    }

    .card-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 колонки */
        column-gap: 15px; /* Отступ только между колонками (справа) */
        row-gap: 15px; /* Отступ между строками */
        align-items: start; /* Выравнивание по верхнему краю */
      }

    .card-container-authorization{
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        column-gap: 15px; /* Отступ только между колонками (справа) */
        row-gap: 15px; /* Отступ между строками */
        align-items: start; /* Выравнивание по верхнему краю */
    }
    
    .mainInfo{
	padding: 16px;
    }
    
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
	position: relative;
	min-height: 1px;
	padding-left: 8px;
	padding-right: 8px;
    }
    
    .row {
	margin-left: -8px;
	margin-right: -8px;
    }
    
    .toolbar_center
    {
        position: relative;
        top: 33px;
    }
    
    .col-lg-five {
        width: 20%;
        float: left;
    }
    
    body{margin-bottom: 600px;}
    
    .footer {
	min-height: 500px;
    }
    
    .item > span{
        margin-left: 15px;
    }
    
    .filter-panel{
        height: 300px;
        overflow-y: auto;
    }
    
    .reg_form_dialog{
        max-width: 400px;
    }
    
    .catalog_button{
        padding: 5px 16px 5px 16px;
        font-size: 16px;
        /*border: 1px solid #e5e5e5;*/
        border-radius: 8px;
        background: #E52D27;
        cursor: pointer;
        height: 48px;
        line-height: 40px;
        width: 100%;
        text-align: center;
        color: #fff;
	/*
        background: radial-gradient(white, #FFA9A1);
        background: linear-gradient(120deg,#ff6820,#ff4a3f);
        */
    }
    
    .fix{
	position: sticky;
	top: 0px;
	z-index:1040;
	box-shadow: 0 2px 6px 0 rgba(0,0,0,.2);
	border: 1px solid #efefef;
    }

    .goods_item_image{
	height: 100px;
	width: 100px;
    }
    
    .goods_item_brand{
	font-size: 15px;
	padding: 10px 0 10px 0;
    }
    
    .mainImg
    {
	min-height: 456px;
    }
    /*
    .mainImg > img
    {
	margin-top: 130px;
    }
    */
    
    .scatalog-pic{
	min-height: 175px;
	max-height: 175px;
    }
    
    .grid-3-lg{
	display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 10px;
    }
    
    .grid-2-lg{
	display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2px;
    }
    
    .popular_cat{
	margin-bottom: 16px;
    }
    
    .scatalog_item{
        margin-bottom: 10px;
        border: 1px solid #E3E3E3;
        border-radius: 10px;
    }
}

@media (min-width: 0)
{
  .navbar-toggle {
    display: block;
  }
  
  .navbar-toggle {
  float: left;
  margin-left: 15px;
    }
}

.table-middle > tbody > tr > td{
    vertical-align: middle;
    padding: 5px;
}


small{
    color: #969393;
}

.goodSelect{
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.col-xs-five,
.col-sm-five,
.col-md-five,
.col-lg-five {
    position: relative;
    min-height: 1px;
    padding-right: 8px;
    padding-left: 8px;
}

.close_position{
  padding: 15px;
  font-size: 30px;
  opacity: 0.7;
}

.ffc0{
    background-color: #f7f7f7; width:auto; border: 1px solid #f0f0f0; color: #333; margin: 4px;
}
	
.ffc1{
    background-color: #ccc; width:auto; border: 1px solid #f0f0f0; color: #fff; margin: 4px;
}

.navi {
    /*  ����� ������������, �� ����������� ������������������ */
    width: 320px;
    
    min-width: 320px;
    /* ��������� � ���������� ������ ������ �� �������� */
    position: fixed;
    top: 0;
    bottom: 0;
    margin: 0;
    /* �������� (������) ������ ������������ ������ ���� �������� */
    left: -320px;
    /* ���������� ������� */
    padding: 0px;
    /* ������� ������� �������� ������ */
    -webkit-transition: left 0.3s;
    -moz-transition: left 0.3s;
    transition: left 0.3s;
    /* ���������� ���� ���� ������ */
    background: #fff;
    /* ������ ������ ��������� */
    z-index: 1042;
    display: flex;          /* Устанавливаем Flexbox */
    flex-direction: column; /* Располагаем внутри по вертикали */
    height: 100vh;  
}

/**
 * ������ ������������ ������
 * ��� <label>
 */
 
.navi-toggle {
    /* ��������� ������������� */
    position: absolute;
    /* ������������ ������ ���� ������ */
    left: 311px;
    /* ������ �� �������� ���� ������ */
    top: -1px;;
    /* ���������� ������� */
    padding: 0;
    /* ���������� ���� ���� �������������
     * ���� ����� � ������������ � ������ ���� ������
    */
    background: none;
    /* ���� ������ */
    color: #525253;
    /* ��� ������� */
    cursor: pointer;
    /* ������ ������ */
    font-size: 2.2em;
    /*line-height: 1;*/
    /* ������ ������ ������ ��������� �������� */
    z-index: 1039;
    /* ��������� ���� ������ ��� ��������� */
    -webkit-transition: color .25s ease-in-out;
    -moz-transition: color .25s ease-in-out;
    transition: color .25s ease-in-out;
}
 
/* ���������� ����� ������ 
 * ������ Unicode (TRIGRAM FOR HEAVEN)
*/
 
.navi-toggle:after {
    content: url(//static.grafitmarket.ru/img/menu_icon.svg);
    display: inline-block;
}

.icon-bar {
    background-color: #000;
}
.icon-bar {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 1px;
}
.icon-bar {
    margin-top: 4px;
}
 
/* ���� ������ ��� ��������� */
 
.navi-toggle:hover {
    color: #525253;
}
 
/**
 * ������� ������� (������)
 * ������� � ���������� :)
 * ��� ��������� ������� ������
 */
 
[id='navi-toggle'] {
    position: absolute;
}
 
/**
 * ��������� ��������� ������������� 
 * ��� ��������� �� ��������� �����������
 * ����� ��������� ��������, ����������� ������ ������
*/
 
[id='navi-toggle']:checked ~ .navi > .navi-toggle {
    left: auto;
    right: 12px;
    top: 12px;
    font-size: 1.2em;
}
 
/**
 * ����� ������ ����������, ����������� ������
 * ���������� �����������:checked
 */
 
[id='navi-toggle']:checked ~ .navi {
    left: 0;
    box-shadow:4px 0px 20px 0px rgba(0,0,0, 0.5);
    -moz-box-shadow:4px 0px 20px 0px rgba(0,0,0, 0.5);
    -webkit-box-shadow:4px 0px 20px 0px rgba(0,0,0, 0.5);
    overflow-y: auto;
}
 
/* 
 * �������� �������� ��������
 * �� ������ ������ ������,
 * ����� ��������������, �� ��������
*/
/* 
[id='nav-toggle']:checked ~ main > article {
    -webkit-transform: translateX(-250px);
    -moz-transform: translateX(-250px);
    transform: translateX(-250px);
}
 */
/*
 * ��������� ������� �������������,
 * ��������� ������� (MULTIPLICATION X), 
 * �� ������ ����������� ����� ������ ������
*/
 
/**
 * ��������� ��� � Android <= 4.1.2
 * ��: http://timpietrusky.com/advanced-checkbox-hack
 */
 
body {
    -webkit-animation: bugfix infinite 1s;
}
 
@-webkit-keyframes bugfix {
    to {
      padding: 0;
    }
}

body { padding-right: 0 !important }

.modal-open {
    padding-right: 0px !important;
    overflow: hidden;
}

.modal {
    padding-right: 0px !important;
}

.btn-red {
    color: #333;
    background-color: #fff;
    border: 2px solid #fd2c1a;
}

[id='navi-toggle']:checked ~ .navi > .navi-toggle:after {
    content: '';
}