/* Storefront responsive layer — load last, after modernizer.css */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
audio,
canvas {
  max-width: 100%;
}

.kg-catalog img,
.kg-cat-card img,
.slider-box img,
.kg-prod-thumb {
  height: auto;
  object-fit: contain;
}

audio {
  width: 100%;
}

.container,
.container-fluid {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font-size: 16px; /* prevent iOS zoom */
}

.price-input {
  float: none !important;
}

.box-title span,
.product-name,
.kg-cat-name,
.kg-catalog .tittle,
.content-box ul li,
#modal_text,
.kg-hero-title,
.form-title {
  overflow-wrap: break-word;
}

.kg-filter {
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
}

.kg-page > .row,
.kg-page .row {
  margin-left: 0;
  margin-right: 0;
}

.form-group.row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.form-group.row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

legend.scheduler-border {
  max-width: 100%;
  white-space: normal;
}

.sideNav {
  width: min(320px, 86vw) !important;
  max-width: 86vw;
}

.price-input[list] + div[list] {
  width: 100% !important;
  max-width: 100% !important;
  left: 0;
  right: 0;
}

#loginGetPhone,
#loginCodeCheck {
  width: 100% !important;
  max-width: 100%;
}

.kg-auth {
  padding: 16px 12px 80px;
}

.modal-dialog {
  margin: 12px auto;
  max-width: calc(100% - 24px);
}

.form-box form {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

.content-box ul li {
  position: relative !important;
}

.img-product-box-2,
.kg-prod-card {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: auto !important;
  overflow: hidden;
  background: #fff;
}

.kg-prod-thumb {
  width: 100%;
  max-height: 118px;
  height: 118px;
  object-fit: contain;
  object-position: center;
  background: #f6f4fb;
  display: block;
}

.tittle-price-box {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 0;
  padding: 8px;
}

.tittle-price-box .d-flex {
  flex-wrap: wrap;
  gap: 4px;
}

.badge-offer {
  min-width: 72px !important;
  min-height: 72px !important;
  transform: scale(0.75);
  transform-origin: top right;
}

.outStocked,
.free_cargo {
  position: relative;
}

.outStocked::before,
.free_cargo::before {
  max-width: 72px;
  height: auto;
}

.card-custom .card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px !important;
}

.card-custom .card-footer .upadate-time {
  flex: 1 0 100%;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.description-box audio {
  width: 100%;
  max-width: 100%;
}

#anchor {
  bottom: 20px;
  left: 16px;
}

table {
  padding-left: 0;
  padding-right: 0;
}

table td {
  width: auto;
}

.accept-btn {
  max-width: 100%;
}

.kg-search,
.kg-search .price-input {
  min-width: 0;
}

.kg-cta-wrap {
  min-width: 0;
}

.kg-chrome .submit-request {
  white-space: nowrap;
  max-width: none;
}

.kg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ----- tablet ----- */
@media (max-width: 991px) {
  .kg-hero {
    padding: 28px 0 32px;
  }

  .kg-hero-title {
    font-size: 1.45rem;
    text-align: right;
  }

  .kg-hero-lead {
    max-width: 100%;
    text-align: right;
  }

  .kg-hero-visual {
    margin-top: 24px;
  }

  .kg-search {
    flex-wrap: wrap;
  }

  .kg-search-btn,
  .kg-search .price-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  .kg-howto {
    min-height: 0;
    padding: 28px 20px 20px;
  }

  .slider-box .carousel,
  .slider-box .carousel-item img {
    min-height: 0;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    width: 100%;
    background: #f6f4fb;
  }

  .kg-cat-grid .box-product {
    padding-left: 8px;
    padding-right: 8px;
  }

  .kg-cat-card,
  .kg-catalog .img-product-box {
    height: auto !important;
  }

  .kg-cat-card img,
  .kg-catalog .img-product-box img,
  .kg-prod-thumb {
    height: 100px !important;
    max-height: 100px;
    object-fit: contain !important;
    background: #f6f4fb;
  }

  .kg-cat-name,
  .kg-catalog .tittle {
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1.35;
    padding: 8px 10px !important;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #netSlinger {
    width: 70% !important;
    right: 15% !important;
    left: auto;
  }
}

/* ----- phone ----- */
@media (max-width: 767px) {
  .kg-chrome {
    position: sticky;
    top: 0;
    z-index: 220;
  }

  .kg-chrome header {
    padding: 4px 0;
  }

  .kg-header-bar {
    flex-wrap: nowrap !important;
    min-height: 56px;
    gap: 6px;
    padding: 4px 0;
  }

  .kg-logo-link,
  .kg-theme-toggle,
  .kg-header-tel,
  .kg-chrome .kg-menu-btn,
  .kg-chrome .submit-request {
    flex-shrink: 0;
  }

  .kg-header-actions {
    width: auto !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
  }

  .kg-theme-toggle,
  .kg-header-tel,
  .kg-chrome .kg-menu-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px !important;
    padding: 0 !important;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  .kg-chrome .submit-request {
    width: auto !important;
    min-width: 0;
    height: 40px;
    min-height: 40px !important;
    padding: 0 10px !important;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    overflow: visible;
    box-sizing: border-box;
  }

  .kg-header-tel-num,
  .kg-chrome .submit-request .kg-cta-full,
  .kg-menu-btn span {
    display: none !important;
  }

  .kg-chrome .submit-request .kg-cta-short {
    display: inline !important;
  }

  header .logo-section img,
  .kg-logo-mark {
    max-height: 38px;
    width: 38px;
  }

  .header-text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .header-text > span {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
    display: block;
  }

  .header-text small {
    display: none;
  }

  .kg-hero {
    padding: 20px 0 24px;
  }

  .kg-hero-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .kg-hero-copy,
  .kg-hero-visual {
    align-items: stretch;
    justify-content: flex-start;
    text-align: right;
  }

  .kg-eyebrow {
    font-size: 12px;
    padding: 5px 12px;
    margin: 0 0 10px;
  }

  .kg-hero-title {
    font-size: 1.22rem;
    text-align: right;
  }

  .kg-hero-lead {
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0 0 16px;
    max-width: 100%;
    text-align: right;
  }

  .kg-search {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .kg-search-btn,
  .kg-search .price-search {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap;
    font-size: 14px !important;
    min-height: 46px;
    height: 46px !important;
  }

  .kg-trust {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    font-size: 12.5px;
    margin-top: 14px;
  }

  .kg-trust li {
    justify-content: flex-start;
  }

  .kg-hero-visual {
    margin-top: 20px;
  }

  .kg-howto h2 {
    font-size: 1.05rem;
  }

  .kg-howto li {
    font-size: 12px;
    line-height: 1.45;
  }

  .main-title,
  .kg-h2 {
    font-size: 1.05rem !important;
    line-height: 1.4;
  }

  .kg-section-sub {
    font-size: 0.8rem;
  }

  .kg-catalog .container,
  .kg-page {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 96px;
  }

  .kg-page > .row > [class*="col-"],
  .kg-cat-grid > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  .kg-cat-card,
  .kg-catalog .img-product-box,
  .kg-prod-card,
  .img-product-box-2.kg-card {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    background: #fff !important;
    background-image: none !important;
  }

  .kg-cat-card img,
  .kg-catalog .img-product-box img,
  .kg-prod-thumb,
  .img-product-box-2 img {
    width: 100% !important;
    height: 96px !important;
    max-height: 96px;
    object-fit: contain !important;
    object-position: center;
    background: #f6f4fb;
    display: block;
  }

  .kg-cat-name,
  .kg-catalog .tittle {
    min-height: 0 !important;
    height: auto !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 6px 8px !important;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tittle-price-box {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 8px !important;
  }

  .product-name,
  .box-title,
  .box-title span {
    font-size: 12px !important;
    line-height: 1.35 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 2px;
  }

  .title-price,
  .number {
    font-size: 11px !important;
    line-height: 1.3;
    white-space: nowrap;
  }

  .kg-prod-meta {
    gap: 2px;
  }

  .coming-soon-flag,
  .coomingsoon_flag {
    font-size: 11px;
    padding: 4px 10px;
    top: 28% !important;
  }

  .img-product-box-2 {
    height: auto !important;
    min-height: 0;
  }

  .kg-toolbar {
    padding: 12px;
  }

  .kg-toolbar .kg-row {
    flex-direction: column;
    align-items: stretch;
  }

  .kg-filter {
    flex: 1 1 auto;
    min-width: 0 !important;
    width: 100%;
  }

  .kg-toolbar .kg-btn {
    width: 100%;
  }

  .kg-steps {
    flex-wrap: wrap;
  }

  .kg-steps li {
    font-size: 12px;
  }

  .kg-profile-head {
    flex-direction: column;
    align-items: stretch !important;
  }

  .kg-profile-head .kg-btn {
    width: 100%;
  }

  .kg-table-wrap {
    padding: 12px;
  }

  .kg-table-wrap .kg-table,
  .kg-table-wrap .table,
  .table-responsive .table {
    min-width: 640px;
    font-size: 13px;
  }

  table {
    padding-left: 0;
    padding-right: 0;
  }

  .card-custom {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card-custom .card-body,
  .card-custom .card-footer {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .btn-order,
  .desc_btn {
    flex: 1 1 46%;
    width: auto;
    min-width: 0 !important;
    padding: 8px 6px !important;
    font-size: 13px;
  }

  .doubleSegment {
    width: 100%;
    display: flex;
  }

  .doubleSegment span {
    display: block;
    flex: 1;
    width: auto;
    font-size: 12px;
  }

  #netSlinger {
    width: 92% !important;
    right: 4% !important;
    left: 4% !important;
    top: 12px !important;
  }

  .modal-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .circle-dot {
    padding: 1rem !important;
    top: 1.25rem !important;
  }

  .circle-dot img {
    width: 36px;
    height: auto;
  }

  .form-title {
    font-size: 13px;
    padding: 0 4px;
  }

  .kg-auth-card {
    padding: 24px 16px !important;
  }

  .kg-footer {
    padding: 32px 16px 100px;
  }

  .kg-footer .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  #anchor {
    bottom: 18px;
    left: 12px;
    width: 44px;
    height: 44px;
  }

  .slider-box .carousel-item .card-custom {
    max-width: 94%;
    margin: 1.4rem auto !important;
  }

  .slider-box .carousel-control-prev,
  .slider-box .carousel-control-next {
    width: 12%;
  }

  .badge-offer {
    transform: scale(0.55);
    left: 0;
    top: 0;
  }

  .kg-share,
  #shareBtn {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
  }

  .kg-share br {
    display: none;
  }

  .accept-btn,
  .modal-save-btn {
    width: 100% !important;
    max-width: 100%;
  }

  .form-box form {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .price-input[list] + div[list] {
    max-width: 100% !important;
    width: 100% !important;
  }

  table td {
    width: auto;
    padding-bottom: 8px;
  }

  .kg-cta-wrap .submit-request {
    width: 100%;
  }

  #order_form .kg-btn {
    max-width: 100% !important;
    width: 100% !important;
  }

  #addToScreen img {
    max-width: 48px;
    height: auto;
  }

  #addToScreen ul {
    padding-right: 0;
    list-style: none;
  }
}

/* very small phones */
@media (max-width: 380px) {
  .kg-hero-title {
    font-size: 1.18rem;
    text-align: right;
  }

  .kg-cat-card img,
  .kg-catalog .img-product-box img,
  .kg-prod-thumb,
  .img-product-box-2 img {
    max-height: 88px;
    height: 88px !important;
  }

  .kg-cat-name,
  .kg-catalog .tittle,
  .product-name,
  .box-title,
  .box-title span {
    font-size: 11px !important;
  }

  .kg-menu-btn {
    padding: 5px 10px;
    font-size: 13px;
  }

  .kg-chrome .kg-menu-btn {
    padding: 0 !important;
  }

  .box-product,
  .kg-cat-grid .box-product {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .btn-order,
  .desc_btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .kg-hero {
    padding: 12px 0 16px;
  }

  .kg-hero-title {
    font-size: 1.15rem;
    text-align: right;
  }

  .sideNav {
    width: min(280px, 70vw) !important;
  }

  .kg-prod-thumb,
  .kg-cat-card img {
    max-height: 80px;
    height: 80px !important;
  }
}

/* PWA bottom nav */
@media (display-mode: standalone) {
  .kg-footer,
  .kg-page,
  .kg-auth {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  #anchor {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  #menu_frame {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
  }

  #menu_frame li {
    margin-left: 0 !important;
    padding: 12px 8px;
    flex: 1;
    text-align: center;
  }
}
