@import './base.css';

@media (max-width : 1400px) {
  .footer-line {
    gap: 30px;
  }

  .f-logo {
    min-width: 200px;
  }

  .f-content {
    gap: 60px;
  }

  .product-layout {
    width: 100%;
  }

  .product-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .price {
    font-size: 28px;
  }

  .categories {
    gap: 25px;
  }

  .cat-products-list {
    gap: 15px;
  }

  .product-price {
    margin-top: 12px;
  }

  .price {
    font-size: 24px;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .product-price .price-old {
    font-size: 16px;
    display: block;
    line-height: 1;
    order: -1;
  }

  .price small {
    font-size: 16px;
  }

  .brand-list {
    gap: 20px;
  }

  .post-grid {
    grid-template-columns: 470px 1fr;
  }
}

@media (max-width : 1279px) {
  #top {
    display: none;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .menu-icon {
    display: block;
    margin-right: 12px;
    cursor: pointer;
    transition: .2s;
  }

  .menu-icon:hover {
    opacity: .8;
  }

  #search {
    width: 400px;
  }

  .slider-reviews {
    width: 100%;
  }

  .swiper-button-next {
    right: 5px;
  }

  .swiper-button-prev {
    left: 5%;
  }

  .footer-line {
    flex-wrap: wrap;
  }

  .f-logo {
    width: 100%;
  }

  .f-content {
    width: 100%;
    justify-content: start;
    row-gap: 30px;
  }

  .product-list {
    display: flex;
    flex-wrap: wrap;
  }

  .product-layout {
    width: 315px;
  }

  .categories {
    gap: 11px;
    row-gap: 30px;
  }

  .categories a .title {
    font-size: 18px;
  }

  .category-page {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .sort-title::before {
    display: none;
  }

  .sort-quantity {
    display: none;
  }

  .filter-but {
    display: flex;
  }

  #blog {
    background-image: url();
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .big-post {
    display: grid;
    grid-template-columns: 388px 1fr;
    margin-bottom: 20px;
    gap: 20px;
  }

  .small-post:first-child p,
  .small-post:first-child .title {
    color: var(--black);
  }

  .big-post .title {
    font-size: 18px;
    line-height: 33px;
  }

  .big-post p {
    font-size: 16px;
    line-height: 170%;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
  }
  .quantity-block button {
    width: 35px;
    height: 35px;
  }
  .quantity-block input {
    width: 48px;
height: 35px; 
  }
  .cart-product-price {
    font-size: 24px;
  }
  .cart-item-img, .cart-item-img img{
    min-width: 83px;
  }
  .cart-item-img img{
    min-width: 100%;
    height: auto;
  }
  .ocf-container {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    width: 303px;
    padding: 20px;
    display: none;
  }
  .ocf-footer {
    bottom: -8px;
  }
  main .ocf-value-name {
    font-size: 14px;
  }
}


@media (max-width : 1100px) {
  header {
    background-color: var(--black);
  }

  #cart button svg path {
    fill: var(--white);
  }

  #cart .cart-icon {
  background-image: url(../images/icons/mini-cart-white.svg);
}

  header #lang {
    display: none;
  }

  #lang:hover .select-lang::after {
    transform: rotate(0deg);
  }

  #search {
    display: none;
    position: absolute;
    left: 0;
    top: 90px;
    z-index: 10;
    width: 100%;
  }

  .logo-mob {
    display: block;
    width: 155px;
  }

  .logo-pc {
    display: none;
  }

  .header-right {
    gap: 20px;
  }

  .header-right .call,
  .header-right .search-mobile-icon, 
  #cart .cart-icon {
    display: block;
    height: 35px;
    min-width: 35px;
  }
  #cart .cart-icon {
    background-size: 35px;
  }

  .product-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .product-layout {
    width: 100%;
  }

  .product-name {
    font-size: 16px;
    height: 45px;
  }



  .product-dop-info {
    display: none;
  }

  .about-sec {
    grid-template-columns: 1fr;
  }

  .about-img img {
    width: 100%;
    height: 350px;
    border-radius: 10px 10px 0px 0px;
  }

  .about-text {
    padding: 25px 16px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 170%;
  }

  #reviews::before {
    top: -375px;
    background-position: left -100px top;
  }

  .swiper-button-next {
    right: 2%;
  }

  .swiper-button-prev {
    left: 2%;
  }

  .slider-brands .brand-slide {
    height: 123px;
  }

  .categories {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cat-img {
    height: 280px;
  }

 

  .contacts-content {
    grid-template-columns: 1fr;
  }

  .contact-text {
    padding: 24px 41px;
  }

  .contacts-content img {
    display: none;
  }

  #info-content.contact-page {
    background-image: url();
  }

  .small-post,
  .big-post {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }

  .post-single {
    grid-template-columns: 1fr;
  }

  .post-content {
    padding-right: 0;
    border: none
  }

  .post-related {
    display: none;
  }

  #popup-blank-cart {
    width: 98%;
  }

  #popup-blank-cart p {
    font-size: 24px;
  }
  .cart-item-single{
    grid-template-columns: 400px 1fr;
  }
  #checkout-cart #popular-products .product-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width : 992px) {
  .product-grid {
    grid-template-columns: 1fr;
    width: 650px;
    max-width: 100%;
    margin: 20px auto;
  }
.product-gallery .main-img img {
  height: auto;
}
#cart-popup {
  padding: 0px 15px;
}
.cart-header {
  display: none;
}
.cart-item-single{
  grid-template-columns: 1fr;
  gap: 25px;
  padding-bottom: 20px;
}
.cart-product-quantity {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item-info {
  display: grid;
  grid-template-columns: 83px 1fr;
  margin-top: 20px;
}
#delete-product {
  right: 0;
  top: 0;
}
.cart-item-text {
  padding-right: 30px;
}
}

@media (max-width : 768px) {
  .home-banner {
    padding: 33px 0;
    background-position: center top;
  }

  .home-banner .text .title {
    font-size: 46px;
    width: 260px;
  }

  .btn-custom {
    height: 45px;
    font-size: 16px;
    padding: 0 18px;
  }

  .product-list,
  .cat-products-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .labels {
    left: 10px;
    top: 10px;
  }

  .label-sale,
  .label-new,
  .label-quantity {
    padding: 0px 8px;
    height: 20px;
    font-size: 10px;
    line-height: 24px;
  }

  .label-right {
    right: 10px;
    top: 15px;
  }

  .label-ua {
    width: 13px;
    height: 10px;
  }

  .reviews-item {
    margin: 0 auto;
    padding: 0 40px;
  }

  .slider-reviews {
    padding: 30px 0px;
  }

  .reviews-item p {
    font-size: 14px;
    font-weight: 400;
    line-height: 170%;
  }

  #reviews .title {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .swiper-pagination-bullets.swiper-pagination-horizontal {
    display: none;
  }

  .swiper-nav {
    position: absolute;
    left: 50%;
    display: flex;
    margin-top: 14px;
    top: auto;
  }

  .swiper-button-next,
  .swiper-button-prev {
    position: relative;
  }

  .swiper-button-prev {
    left: -100%;
  }

  .ad-item-single img {
    width: 150px;
  }

  .f-logo {
    text-align: center;
    width: 268px;
    margin: 0 auto;
  }

  .f-logo .btn-black,
  .f-content {
    display: none;
  }

  .f-mobile {
    display: block;
    width: 100%;
    text-align: center;
  }

  .f-contacts a.phone,
  .f-contacts a.email {
    background-image: url();
    padding-left: 0;
  }

  .socials {
    justify-content: center;
    margin-bottom: 29px;
  }

  .f-mobile .btn-black {
    margin: 0px auto;
    height: 45px;
  }

  .copyrite {
    width: 110%;
    margin-left: -5%;
  }

  .categories {
    grid-template-columns: 1fr 1fr;
  }

  .header-page {
    min-height: 60px;
    padding: 20px 0;
  }

  .breadcrumbs ul li,
  .breadcrumbs ul li a {
    font-size: 14px;
    font-weight: 400;
  }

  .header-thank {
    display: none;
  }

  #thank {
    margin: 30px 15px;
    border-radius: 10px;
    padding: 24px 11px;
    padding-bottom: 100px;
  }

  #thank h1 {
    font-size: 24px;
    line-height: 33px;
    margin-bottom: 8px;
  }

  #thank p {
    font-size: 16px;
    line-height: 170%;
    padding: 0 20px;
  }

  .thank-buttons {
    margin-top: -130px;
  }

  .brand-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  #info-content article .text {
    padding: 24px 20px;
  }

  #info-content article .text h2 {
    font-size: 18px;
  }

  #info-content article .text h3 {
    font-size: 16px;
  }

  #info-content article ul,
  #info-content article p {
    font-size: 16px;
    line-height: 170%;
    word-break: break-word
  }

  #error-page h1 {
    font-size: 30px;
  }

  #error-page p {
    font-size: 16px;
  }

  .contacts-content a.phone,
  .contacts-content a.email,
  .contact-text p.adress,
  .contact-text p.time {
    font-size: 20px;
    background-size: 26px !important;
    padding-left: 38px;
  }

  #blog {
    background-image: url(../images/blog-bg.svg);
  }

  .post-grid {
    gap: 0;
  }

  .small-post,
  .big-post {
    grid-template-columns: 1fr;
  }

  .post-grid img {
    width: 100%;
    height: auto;
  }

  .small-post,
  .big-post {
    margin-bottom: 40px;
  }

  .big-post .date,
  .small-post .date {
    font-size: 16px;
    line-height: 150%;
  }

  .big-post p,
  .small-post p {
    font-size: 14px;
    font-weight: 400;
  }

  .post-content .date {
    font-size: 16px;
    line-height: 150%;
  }

  .post-content h1 {
    font-size: 24px;
  }

  .main-img img {
    height: 253px;
  }

  .post-content h2,
  .post-content h3 {
    font-size: 16px;
    line-height: 150%;
  }

  .post-content p,
  .post-content ul,
  .post-content ol {
    font-size: 14px;
  }

  #popup-blank-cart {
    width: 100%;
  }

  .close-popup-cart {
    top: 0px;
    right: 0;
    width: 60px;
    height: 60px;
    background-size: cover;
  }
  .reviews-tab .btn-custom {
    margin-top: 100px;
  }
  .container-tabs {
    width: 100%;
    padding: 0;
  }
  .product-tabs {
    border: none
  }
  .tabs-wrap {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* хром, сафари */
.tabs-wrap::-webkit-scrollbar { width: 0;background: transparent; }


  .tabs-line {
    min-width: 600px;
    justify-content: start;
    padding: 0 20px;
    background: transparent;
  }
  .tabs-line li {
    font-size: 16px;
  }
  .tabs {
    margin: 18px 20px;
    font-size: 14px;
  }
  .tabs__content {
    padding: 20px 12px;
  }
  .r-products .labels .label-quantity,   .r-products .labels .label-new{
    display: none;
  }
  #checkout-cart #popular-products .product-list {
    grid-template-columns: 1fr 1fr;
  }
}



@media (max-width : 576px) {
  .product-grid {
    width: 100%;
    gap: 18px;
  }
  #product-product .label-sale,
  #product-product .label-new,
  #product-product .label-quantity {
   font-size: 16px;
   font-weight: normal;
   padding: 8px 16px; 
   height: 34px;
  }
  #product-product .label-ua {
    width: 20px;
    height: 20px;
    background-size: 20px;
    background-repeat: no-repeat;
  }
  .label-free-delivery, .label-gift {
    font-size: 14px;
    background-size: 20px;
    padding-left: 30px;
  }

  #product .product-reviews, #product .info p {
    font-size: 14px;
  }
 
  .product-gallery .dop-images .img {
    height: 109px;
  }
  #product .star {
    width: 15px;
    height: 14px;
    background-size: 15px;
  }
 
  .product-gallery .main-img {
    height: 350px;
  }

  #product .grid-order-block {
    display: grid;
    grid-template-columns: 1fr;
  }
  #product .grid-order-block h1{
    order: 0;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
  }
  #product .grid-order-block .product-reviews{
    order: 1;
    margin-top: 0;
    margin-bottom: 19px;
  }
  #product .grid-order-block .available {
    margin-bottom: 0;
  }
  #product .grid-order-block .available-flex{
    order: 2;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    background-size: 18px;
  }
  #product .grid-order-block .available-flex .model {
    background-color: #fff;
    padding: 6px 8px;
    border-radius: 5px; 
    display: block;
  }
  .available-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  #product .grid-order-block .info{
    order: 3;
    margin-top: 0;
    margin-bottom: 0;
    gap: 5px;
  }
  #product .grid-order-block .info p:last-child {
    display: none;
  }
  #product .grid-order-block .product-price{
    order: 4;
    margin-bottom: 0;
    gap: 20px;
  }
  #product .grid-order-block .product-price .price .price-old {
    top: -30px;
    font-size: 20px;
  }

  #product .grid-order-block .product-price .price .price-new{
    font-size: 30px;
  }
  .tabs-line li {
    font-size: 14px;
  }
  .checkout-col-fix-right {
    padding: 40px 0;
  }
  .checkout-page .header-page h1{
    font-size: 22px;
  }
  .checkout-heading {
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 14px;
  }
  #onepcheckout input.form-control, #onepcheckout select.form-control {
    height: 48px;
  }
  #onepcheckout input.form-control::placeholder, .chm-radio label, #onepcheckout select.form-control, #onepcheckout textarea.form-control::placeholder, .cart-item-prod-name a {
    font-size: 14px;
  }
}



@media (max-width : 480px) {
  #mobile-menu {
    width: 100%;
  }

  .product-layout {
    padding: 16px 8px;
  }

 

  .product-thumb img {
    max-height: 100%;
  }

  .star {
    width: 11px;
    height: 11px;
    background-size: 11px;
  }

  .product-reviews {
    font-size: 9px;
    line-height: 1;
  }

  .product-info {
    margin-top: 8px;
  }

  .product-name {
    font-size: 14px;
    line-height: 130%;
    margin-top: 0;
    height: 34px;
  }

  .product-brand {
    font-size: 10px;
    margin-top: 6px;
    line-height: 11px;
  }
  .block-popup-cart {
    padding: 0;
    margin-top: 0;
  }
  .add-to-cart {
    width: 40px;
    height: 38px;
    background-size: 20px;
  }

  .add-to-cart.gift-btn {
    width: 100%;
    font-size: 14px;
  }

  #checkout-cart .related-products .title {
    font-size: 16px;
  }

  .price {
    font-size: 20px;
  }

  .product-price .price-old {
    font-size: 14px;
  }

  .price small {
    font-size: 12px;
  }

  .mt-100 {
    margin-top: 40px;
  }

  .title-b {
    font-size: 18px;
  }

  #special-products .product-list .product-layout,
  #popular-products .product-list .product-layout {
    display: none;
  }

  #special-products .product-list.show-first-6 .product-layout:nth-child(-n+6),
  #popular-products .product-list.show-first-6 .product-layout:nth-child(-n+6) {
    display: block;
  }

  #special-products .product-list.show-next-6 .product-layout:nth-child(n+7),
  #popular-products .product-list.show-next-6 .product-layout:nth-child(n+7) {
    display: block;
  }

  .paginate-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
  }

  .paginate-custom ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
  }

  .paginate-custom ul li {
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--black);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
  }

  .paginate-custom ul li.active {
    background-color: var(--black);
    color: var(--white);
  }

  .paginate-custom .next {
    width: 20px;
    height: 20px;
    background-image: url(../images/icons/next.svg);
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 10px;
  }

  .paginate-custom .prev {
    width: 20px;
    height: 20px;
    background-image: url(../images/icons/next.svg);
    transform: rotate(180deg);
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    opacity: .4;
  }

  #advantages .ad-item-single::before,
  #advantages .ad-item-single::after {
    display: none;
  }

  .ad-item-single {
    width: 340px;
    max-width: 100%;
  }

  .ad-item-single .title {
    font-size: 18px;
    margin-top: 20px;
  }

  .ad-item-single p {
    font-size: 14px;
    margin-top: 8px;
    line-height: 170%;
  }

  .about-img img {
    height: 274px;
  }

  #article article .text {
    font-size: 14px;
    padding: 15px;
  }

  #article article .text h2,
  #article article .text h3,
  #article article .text h4 {
    font-size: 17px;
  }

  .popup-block {
    padding: 24px 20px;
    width: 98%;
    margin: 0 auto;
  }

  form input {
    padding: 12px 22px;
  }

  form textarea {
    height: 387px;
    padding: 12px 22px;
  }

  .flex-buttons {
    gap: 15px;
  }

  .flex-buttons .btn-custom {
    width: 100%;
  }

  .categories {
    gap: 11px;
    margin-top: 20px;
  }

  .cat-img {
    height: 179px;
  }

  .cat-img img {
    height: 128px;
  }

  .categories a .title {
    font-size: 16px;
  }

  #category {
    background: #fff;
    margin-bottom: -100px;
    padding-bottom: 100px;
  }

  #category #article article {
    box-shadow: none;
  }

  #category #article article .text {
    background: #F5F5F5;
  }

  .filter-but,
  .product-sort {
    width: 167px;
    font-size: 14px;
  }

  .product-filter {
    gap: 10px;
  }

  .sort-title {
    justify-content: space-between;
  }

  #blog {
    background-size: 170%;
  }

  .brand-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .big-post .btn-light,
  .small-post .btn-light {
    width: 100%;
    margin-top: 14px;
  }

  .small-post:last-child {
    margin-bottom: 0;
  }
  #product .add-to-cart-product,  #product .button-product {
    width: 100%;
  }
  form textarea {
    height: 150px;
  }
}

@media (max-width : 400px) { 
  
  .product-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
   
  }
  .filter-but,
  .product-sort {
    width: 100%;
    min-width: auto;
    font-size: 14px;
  }

}

@media (min-width: 768px) {
  #onepcheckout .col-sm-6 {
    width: 100%;
  }
}