/* inr.by layout + responsive overrides */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body.fixed-header .main-container {
  padding-top: 0;
}

img, video, iframe, embed, object {
  max-width: 100%;
}

/* ---- Slider: one full-bleed 1920x500 banner ---- */
.container.slider-index {
  overflow: hidden !important;
  background: #fab100;
}
.container.slider-index .bd-slider,
.container.slider-index .carousel {
  width: 100%;
}
.container.slider-index .carousel-cell {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
}
.container.slider-index .flickity-viewport {
  aspect-ratio: 1920 / 500;
  width: 100%;
  height: auto !important;
  max-height: 500px !important;
  min-height: 120px !important;
}
.container.slider-index .carousel-cell a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.container.slider-index .carousel-cell img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #fab100;
}
.flickity-prev-next-button.previous {
  left: 12px !important;
}
.flickity-prev-next-button.next {
  right: 12px !important;
}
.flickity-page-dots {
  bottom: 12px;
}

/* ---- Category mosaic: equal columns, cover photos ---- */
.container.menu-index {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  background: #151515;
}
.menu-index .col-menu,
.container.menu-index .col-menu {
  width: 25%;
  float: none;
  display: flex;
  flex-direction: column;
  padding: 2px !important;
  background: #fab100;
  box-sizing: border-box;
}
.menu-index-item {
  position: relative;
  float: none !important;
  width: 100%;
  flex: 1 1 auto;
  min-height: 160px;
  max-height: none !important;
  margin-bottom: 4px !important;
  overflow: hidden;
}
.menu-index-item.rolls,
.menu-index-item.soups,
.menu-index-item.salads,
.menu-index-item.sushi,
.menu-index-item.sauces,
.menu-index-item.garniry,
.menu-index-item.zakuski,
.menu-index-item.sets,
.menu-index-item.desserts,
.menu-index-item.drinks {
  height: auto !important;
  min-height: 170px;
}
.menu-index-item.rolls,
.menu-index-item.soups,
.menu-index-item.salads {
  min-height: 280px;
  flex: 1.4 1 auto;
}
.menu-index-item a {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}
.menu-index-item a:hover {
  transform: none !important;
  filter: brightness(1.08);
}
.menu-index-item span {
  font-size: clamp(18px, 2vw, 32px);
  left: 16px;
  top: 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
  max-width: calc(100% - 24px);
  line-height: 1.2;
}

/* ---- Product cards ---- */
.product.product-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  min-height: 0;
}
.preview.md-trigger.base-view {
  position: relative !important;
  bottom: auto !important;
  top: auto !important;
  order: -1;
  width: 100%;
  height: 220px;
  overflow: hidden !important;
}
.product .preview {
  overflow: hidden !important;
}
.product .preview img.product-image {
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  object-fit: cover;
  border-radius: 12px 12px 0 0 !important;
}
.product .product-info {
  margin-top: 12px !important;
  padding: 0 16px;
  height: auto;
}
.product .product-footer {
  position: relative;
  bottom: auto;
  width: 100%;
  padding: 0 16px 16px;
}
.product .product-actions {
  float: none !important;
  width: 100%;
}
.product .product-actions table {
  width: 100%;
}
.product_counts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.products-sub-menu-main nav ul li a,
.products-sub-menu nav ul li a {
  display: inline-block;
  margin: 4px;
  padding: 10px 18px !important;
}

/* ---- Cart / forms ---- */
.content.container {
  max-width: 100%;
  box-sizing: border-box;
}
#purchases {
  width: 100%;
}
#back-top {
  left: auto;
  right: 16px;
  margin-left: 0;
}
#product-detail .md-content {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* ---- Header / footer ---- */
header.fixed {
  z-index: 50;
}
header .logo,
header .logo a {
  display: block;
  min-width: 90px;
}
header .logo img {
  width: auto !important;
  max-width: 170px;
  max-height: 60px;
  height: auto !important;
}
.mh-burger,
.mh-phone,
.m-drawer,
.m-drawer-bg,
.mh-cart-ico {
  display: none;
}
footer .container {
  max-width: 100%;
  box-sizing: border-box;
}
.google-map-inner iframe {
  max-width: 100%;
}

@media (max-width: 1199px) {
  .menu-index .col-menu,
  .container.menu-index .col-menu {
    width: 50%;
  }
  .menu-index-item.rolls,
  .menu-index-item.soups,
  .menu-index-item.salads {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  header,
  header.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 200 !important;
    display: block !important;
    width: 100%;
    background: #111 !important;
    min-height: 56px;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
  }
  .header-top-row {
    display: none !important;
  }
  header .header-bottom-row {
    height: 56px;
    min-height: 56px !important;
    padding: 0 !important;
  }
  header .header-bottom-row > .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 8px !important;
    margin: 0 !important;
  }
  header .header-bottom-row .row {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0 !important;
    height: 56px;
    min-height: 56px;
    gap: 4px;
  }
  .header-menu {
    display: none !important;
  }
  .mh-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .mh-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fab100;
    transition: transform .2s ease, opacity .2s ease;
  }
  body.m-nav-open .mh-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.m-nav-open .mh-burger span:nth-child(2) {
    opacity: 0;
  }
  body.m-nav-open .mh-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mh-logo-col {
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    height: 56px;
    padding: 0 !important;
    float: none !important;
  }
  header .logo,
  .header-bottom-row .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: 56px !important;
    min-width: 0;
    float: none !important;
    text-align: left !important;
  }
  header .logo a {
    display: flex !important;
    align-items: center;
    height: 56px;
    min-width: 0;
  }
  header .logo img {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: block !important;
    margin: 0 !important;
    max-height: 32px !important;
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
  }
  .mh-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 36px;
    padding: 0 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    border-radius: 18px;
  }
  .mh-phone svg {
    color: #fab100;
    flex-shrink: 0;
  }
  header .basket-btn-container,
  header #cart {
    flex: 0 0 44px;
    width: 44px !important;
    max-width: 44px;
    padding: 0 !important;
    float: none !important;
    text-align: right;
  }
  header .basket-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 !important;
  }
  header .basket-btn .empty-basket,
  header .basket-btn .not-empty-basket {
    display: none !important;
  }
  header .mh-cart-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    color: #fab100;
  }
  header .mh-cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #fab100;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }
  .main-container {
    padding-top: 56px !important;
  }
  body.m-nav-open {
    overflow: hidden;
  }
  .m-drawer-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  body.m-nav-open .m-drawer-bg {
    opacity: 1;
    pointer-events: auto;
  }
  .m-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 230;
    width: min(86vw, 340px);
    height: 100%;
    background: #151515;
    color: #fff;
    transform: translateX(-105%);
    transition: transform .28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 32px;
    box-shadow: 8px 0 32px rgba(0,0,0,.35);
  }
  body.m-nav-open .m-drawer {
    transform: translateX(0);
  }
  .m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 12px 16px;
    border-bottom: 1px solid rgba(250,177,0,.2);
  }
  .m-drawer-logo img {
    max-height: 36px;
    width: auto;
  }
  .m-drawer-close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fab100;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }
  .m-drawer-call {
    display: flex;
    align-items: center;
    margin: 16px 16px 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fab100;
    color: #111 !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
  }
  .m-drawer-label {
    margin: 18px 16px 6px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fab100;
  }
  .m-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0 8px;
  }
  .m-drawer-list li a {
    display: block;
    padding: 12px 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    border-radius: 10px;
  }
  .m-drawer-list li a:hover,
  .m-drawer-list li.is-active a {
    background: rgba(250,177,0,.12);
    color: #fab100 !important;
  }
  header.fixed .logo,
  .fixed .logo {
    top: auto !important;
    margin-left: 0 !important;
  }
  .flickity-prev-next-button {
    width: 32px;
    height: 32px;
  }
  .menu-index .col-menu,
  .container.menu-index .col-menu {
    width: 100%;
  }
  .menu-index-item,
  .menu-index-item.rolls,
  .menu-index-item.soups,
  .menu-index-item.salads,
  .menu-index-item.sushi,
  .menu-index-item.zakuski {
    min-height: 150px !important;
    max-height: none !important;
    flex: none;
  }
  .menu-index-item span {
    font-size: 22px;
    left: 14px;
  }
  .preview.md-trigger.base-view,
  .product .preview img.product-image {
    height: 200px !important;
  }
  .content.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  #purchases, #purchases tbody, #purchases tr, #purchases td, #purchases th {
    display: block;
    width: 100%;
    height: auto;
    text-align: left;
  }
  #purchases tr {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .form, .comment_form, .feedback_form {
    width: 100%;
    box-sizing: border-box;
  }
  .products-sub-menu-main nav ul li a,
  .products-sub-menu nav ul li a {
    padding: 8px 12px !important;
    font-size: 14px !important;
    width: auto !important;
  }
  .google-map-inner iframe {
    height: 280px;
  }
}

@media (max-width: 480px) {
  header .basket-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
  }
  header .logo {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
  }
  .mh-phone {
    padding: 0 4px;
    font-size: 12px;
  }
  .menu-index-item span {
    font-size: 20px;
  }
  .product .product-info .product-title {
    font-size: 16px;
  }
}
