/* K74 responsive overrides */

html {
  scroll-padding-top: 76px;
}

:root {
  --k74-sticky-menu-offset: 88px;
}

.menu-bar {
  position: sticky;
  top: 0;
  z-index: 1045;
  box-shadow: 0 12px 28px rgba(24, 28, 35, .12);
}

.menu-mega-panel {
  top: calc(100% + 8px);
}

.mobile-filter-panel {
  display: none;
}

.mobile-filter-drawer {
  display: block;
}

.mobile-filter-drawer__summary {
  display: none;
}

.mobile-filter-drawer__body,
.mobile-filter-drawer:not([open]) > .mobile-filter-drawer__body {
  display: block;
}

@media (min-width: 992px) {
  .collection-catalog__sidebar,
  .collection-page-layout__sidebar,
  #product-category #column-left,
  #product-product #column-left {
    position: sticky !important;
    top: var(--k74-sticky-menu-offset) !important;
    align-self: start;
  }

  .product-sidebar-filter {
    position: sticky !important;
    top: var(--k74-sticky-menu-offset) !important;
    max-height: calc(100vh - var(--k74-sticky-menu-offset) - 16px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .collection-catalog__sidebar > .mobile-filter-drawer,
  .collection-page-layout__sidebar > .mobile-filter-drawer {
    position: sticky !important;
    top: var(--k74-sticky-menu-offset) !important;
    max-height: calc(100vh - var(--k74-sticky-menu-offset) - 16px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 1199px) {
  .header-icon-btn {
    min-width: 74px;
  }

  .menu-bar-inner {
    gap: 10px;
  }
}

@media (max-width: 991px) {
  :root {
    --k74-sticky-menu-offset: 72px;
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
  }

  #top {
    display: none;
  }

  header {
    padding: 12px 0 14px;
    border-bottom: 1px solid #edf1f4;
    box-shadow: none;
  }

  header .container {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  #logo img {
    height: 30px;
  }

  #search {
    max-width: none;
    width: 100%;
  }

  #search .input-group {
    height: 44px;
  }

  #search .form-control,
  #search .input-group-btn .btn {
    height: 44px;
  }

  #search .form-control {
    font-size: 14px;
  }

  .header-icon-btn,
  #cart > .btn {
    min-width: 0;
    gap: 6px;
  }

  .header-icon-btn__icon,
  #cart > .btn .header-icon-btn__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(32, 40, 54, .08);
  }

  .header-icon-btn__label,
  #cart > .btn span#cart-total {
    max-width: 74px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }

  .menu-bar {
    margin-bottom: 18px;
  }

  .menu-bar .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .menu-bar-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .menu-switcher {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-right: 0;
  }

  .menu-switcher__btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .menu-divider.hidden-xs,
  .menu-mega-trigger.hidden-xs,
  .nav-cta-btn.hidden-xs,
  .menu-mega-panel.hidden-xs {
    display: none !important;
  }

  .menu-catalog-btn.visible-xs {
    display: inline-flex !important;
  }

  .menu-catalog-btn {
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #c89214 0%, #8a6208 100%) !important;
    color: #fff8e9;
    box-shadow: 0 12px 24px rgba(131, 90, 8, .24), inset 0 1px 0 rgba(255,255,255,.16);
  }

  .menu-catalog-btn:hover,
  .menu-catalog-btn:focus {
    background: linear-gradient(135deg, #d8a321 0%, #966a09 100%) !important;
    color: #fff8e9;
  }

  .menu-collapse {
    flex: 1 1 100%;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 17, 17, .08);
  }

  .menu-collapse.collapse {
    display: none !important;
  }

  .menu-collapse.collapse.in {
    display: block !important;
  }

  .menu-nav {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .menu-item {
    width: 100%;
  }

  .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(31, 37, 45, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 20px rgba(31, 37, 45, .06);
    white-space: normal;
  }

  .menu-link:hover,
  .menu-item.open > .menu-link {
    background: #ffffff;
  }

  .menu-dropdown {
    position: static;
    float: none;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(31, 37, 45, .08);
    border-top: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
  }

  .menu-dropdown-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-dropdown-inner ul li a {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: normal;
  }

  .menu-see-all {
    margin-top: 8px;
    padding: 10px 12px;
  }

  .breadcrumb {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 0;
    padding: 2px 0 14px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  #content h1 {
    margin-bottom: 16px;
    font-size: 30px;
    line-height: 1.1;
  }

  #product-category.product-page-has-mobile-filter #column-left,
  #product-product.product-page-has-mobile-filter #column-left {
    display: none !important;
  }

  #product-category.product-page-has-mobile-filter #content,
  #product-product.product-page-has-mobile-filter #content,
  #product-search #content {
    width: 100%;
  }

  #product-category.product-page-has-mobile-filter .mobile-filter-panel,
  #product-product.product-page-has-mobile-filter .mobile-filter-panel {
    display: block;
    margin: 0 0 18px;
    position: sticky;
    top: var(--k74-sticky-menu-offset);
    z-index: 1036;
  }

  .mobile-filter-panel .product-sidebar-filter {
    margin: 0;
  }

  .mobile-filter-drawer {
    border: 0;
    position: relative;
    z-index: auto;
  }

  .mobile-filter-drawer__summary {
    display: flex;
    position: relative;
    top: auto;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 1px solid #dfe5ea;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 24px rgba(31, 37, 45, .08);
    list-style: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
  }

  .mobile-filter-drawer__summary::-webkit-details-marker {
    display: none;
  }

  .mobile-filter-drawer__label {
    font-size: 14px;
    font-weight: 700;
    color: #232a31;
    letter-spacing: .01em;
  }

  .mobile-filter-drawer__icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid #5b6570;
    border-bottom: 2px solid #5b6570;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
    flex-shrink: 0;
  }

  .mobile-filter-drawer__body,
  .mobile-filter-drawer:not([open]) > .mobile-filter-drawer__body {
    display: none;
  }

  .mobile-filter-drawer[open] > .mobile-filter-drawer__body {
    display: block;
    max-height: calc(100vh - var(--k74-sticky-menu-offset) - 70px);
    overflow-y: auto;
    padding-bottom: 2px;
  }

  .mobile-filter-drawer[open] .mobile-filter-drawer__icon {
    transform: rotate(-135deg) translateY(-1px);
  }

  .mobile-filter-drawer > .mobile-filter-drawer__body .collection-filter__head {
    display: none;
  }

  .collection-catalog,
  .collection-page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .collection-catalog__sidebar,
  .collection-page-layout__sidebar {
    position: sticky !important;
    top: var(--k74-sticky-menu-offset) !important;
    z-index: 1036;
    align-self: start;
  }

  .collection-filter {
    padding: 16px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    box-shadow: 0 16px 36px rgba(31, 37, 45, .08);
  }

  .collection-filter__head {
    margin-bottom: 14px;
  }

  .collection-filter__title {
    font-size: 18px;
  }

  .collection-filter__summary {
    padding: 13px 0;
  }

  .collection-filter__summary-text {
    font-size: 14px;
  }

  .collection-filter__options--scroll {
    max-height: none;
  }

  .collection-filter__check {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .collection-filter__price-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-filter__actions {
    margin-top: 16px;
  }

  .collection-filter__actions .btn {
    min-height: 46px;
    font-size: 14px;
  }

  .category__category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .category__category-list::-webkit-scrollbar {
    display: none;
  }

  .category__category-list-item {
    flex: 0 0 auto;
  }

  .catalog-toolbar {
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e3e7eb;
    border-radius: 18px;
    background: #f8fafb;
  }

  .catalog-toolbar__left,
  .catalog-toolbar__right {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .catalog-toolbar__right {
    gap: 10px;
  }

  .catalog-toolbar__sort,
  .catalog-toolbar__right > .input-group {
    flex: 1 1 100%;
  }

  .catalog-toolbar__sort .input-group-addon,
  .catalog-toolbar__right .input-group-addon {
    justify-content: center;
    min-width: 78px;
  }

  .catalog-toolbar__sort .form-control,
  .catalog-toolbar__right .form-control {
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  #product-search .search-page-form {
    margin-bottom: 22px;
    padding: 16px 14px;
    border: 1px solid #e3e7eb;
    border-radius: 20px;
    background: #f8fafb;
  }

  #product-search .search-page-form .control-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  #product-search .search-page-form .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  #product-search .search-page-form [class*="col-sm-"] {
    width: 100%;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }

  #product-search .search-page-form .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
  }

  #product-search .search-page-form p {
    margin-bottom: 12px;
  }

  #product-search #button-search {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
  }

  .product-grid {
    margin-left: -6px;
    margin-right: -6px;
  }

  .product-grid > [class*="col-"] {
    width: 50% !important;
    padding-left: 6px;
    padding-right: 6px;
  }

  .product-thumb {
    border-radius: 18px;
  }

  .product-thumb__hover-btns {
    top: 10px;
    right: 10px;
    opacity: 1;
  }

  .product-thumb__body {
    padding: 12px 12px 14px;
  }

  .product-thumb__name {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .product-thumb__price {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .product-thumb__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-thumb__actions .btn {
    width: 100%;
    min-height: 38px;
  }

  .product-page-hero,
  .collection-hero__inner {
    flex-direction: column;
    gap: 18px;
  }

  .product-page-gallery,
  .collection-hero__gallery {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .product-page-gallery__main {
    min-height: 320px;
    border-radius: 22px;
  }

  .product-page-gallery__thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-page-gallery__thumb {
    width: 72px;
    height: 72px;
  }

  .product-page-info {
    width: 100%;
  }

  .product-page-info__title {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.12;
  }

  .product-page-info__price .price-main,
  .product-page-info__price .price-new {
    font-size: 26px;
  }

  .product-page-info__qty-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-page-info__qty-row .qty-group {
    width: 100%;
  }

  .product-page-info__qty-row input[name="quantity"] {
    width: 100%;
  }

  .product-page-info__cart-btn,
  .collection-hero__cta {
    width: 100%;
    min-height: 50px;
  }

  .product-tabs,
  .collection-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 0;
  }

  .product-tabs::-webkit-scrollbar,
  .collection-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-tabs > li,
  .collection-nav-tabs > li {
    float: none;
  }

  .product-tab-content {
    overflow-x: hidden;
  }

  .specs-table {
    table-layout: fixed;
  }

  .specs-table td,
  .specs-table th,
  .specs-table__label,
  .specs-table__value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .collection-hero {
    padding: 20px 0 24px;
  }

  .collection-hero__title {
    font-size: 30px;
  }

  .collection-hero__desc {
    font-size: 15px;
  }

  .collection-hero__features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .k74-home {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .k74-home > * + * {
    margin-top: 36px;
  }

  .k74-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .k74-benefit-card {
    min-height: 0;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 20px;
  }

  .k74-benefit-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .k74-gallery__grid,
  .k74-popular__grid,
  .k74-materials__grid,
  .k74-news__grid {
    gap: 12px;
  }

  .k74-popular__grid,
  .k74-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k74-materials__intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .k74-materials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 168px;
  }

  .k74-material-card--lg,
  .k74-material-card--wide,
  .k74-material-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .k74-promo {
    gap: 16px;
    padding: 22px 18px;
    border-radius: 26px;
  }

  .k74-promo__copy {
    padding: 0;
  }

  .k74-promo__title {
    font-size: 32px;
  }

  .k74-promo__subtitle {
    font-size: 18px;
  }

  .k74-promo__visual {
    min-height: 260px;
  }

  .k74-seo {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .footer-cols {
    padding-bottom: 8px;
  }

  .footer-cols > [class*="col-"] {
    margin-bottom: 18px;
  }

  .footer-bottom {
    padding: 16px 0 22px;
  }

  .footer-bottom-inner {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  :root {
    --k74-sticky-menu-offset: 68px;
  }

  html {
    scroll-padding-top: 68px;
  }

  .mobile-filter-drawer__summary {
    margin-bottom: 10px;
  }

  .mobile-filter-drawer[open] > .mobile-filter-drawer__body {
    max-height: calc(100vh - var(--k74-sticky-menu-offset) - 66px);
  }

  header {
    padding-top: 10px;
  }

  #content h1 {
    font-size: 24px;
  }

  .menu-bar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .menu-bar-inner {
    padding: 8px 0 10px;
  }

  .menu-switcher {
    min-width: 0;
  }

  .menu-switcher__btn {
    gap: 4px;
    padding: 10px 8px;
    font-size: 11px;
  }

  .menu-switcher__btn i {
    font-size: 11px;
  }

  .header-icon-btn__label {
    display: none;
  }

  #cart > .btn span#cart-total {
    font-size: 0;
    line-height: 0;
  }

  .catalog-toolbar {
    padding: 12px;
    border-radius: 16px;
  }

  .collection-filter__price-range {
    grid-template-columns: 1fr;
  }

  .product-page-gallery__main {
    min-height: 260px;
  }

  .product-page-info__title {
    font-size: 22px;
  }

  .collection-hero__title {
    font-size: 24px;
  }

  .k74-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 240px;
  }

  .k74-gallery-card--hero,
  .k74-gallery-card--pair-left,
  .k74-gallery-card--pair-right,
  .k74-news-card--featured {
    grid-column: auto;
    grid-row: auto;
  }

  .k74-popular__grid,
  .k74-news__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  :root {
    --k74-sticky-menu-offset: 64px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-filter-drawer__summary {
    min-height: 48px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-filter-drawer[open] > .mobile-filter-drawer__body {
    max-height: calc(100vh - var(--k74-sticky-menu-offset) - 60px);
  }

  .header-icon-btn__icon,
  #cart > .btn .header-icon-btn__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .menu-switcher__btn {
    padding: 10px 6px;
    font-size: 10px;
  }

  .product-grid > [class*="col-"] {
    width: 100% !important;
  }

  .k74-benefits__grid,
  .k74-materials__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .k74-promo__title {
    font-size: 28px;
  }
}
