/*
 * Kids storefront responsive hardening.
 * Loaded after home-5.css and scoped to the kids tenant theme so the
 * shared storefront CSS can keep serving the other templates unchanged.
 */

body.storefront-theme-kids {
  min-width: 0;
}

body.storefront-theme-kids *,
body.storefront-theme-kids *::before,
body.storefront-theme-kids *::after {
  box-sizing: border-box;
}

body.storefront-theme-kids .wrapper,
body.storefront-theme-kids .main-panel,
body.storefront-theme-kids .main-panel > .content,
body.storefront-theme-kids .page-inner {
  max-width: 100%;
  min-width: 0;
}

body.storefront-theme-kids .page-inner {
  overflow-x: hidden;
}

body.storefront-theme-kids .container {
  max-width: min(1400px, calc(100vw - 24px));
}

body.storefront-theme-kids .row > [class*="col"] {
  min-width: 0;
}

body.storefront-theme-kids :is(.title, .title-sm, .title-md, .product-title, .category-title, .banner-content, .footer-widget, .menu-link, .nav-link) {
  overflow-wrap: anywhere;
}

body.storefront-theme-kids :is(.btn, button, input, select, textarea) {
  max-width: 100%;
}

/* Header */
body.storefront-theme-kids .header.header-mt-fix {
  width: 100%;
  max-width: 100%;
  z-index: 99;
}

body.storefront-theme-kids .header .header-top .row {
  row-gap: 6px;
}

body.storefront-theme-kids .header .header-top [class*="col"],
body.storefront-theme-kids .header .header-middle [class*="header-"],
body.storefront-theme-kids .header .header-bottom .main-nav {
  min-width: 0;
}

body.storefront-theme-kids .header .header-top .header-left ul,
body.storefront-theme-kids .header .header-top .header-right .menu,
body.storefront-theme-kids .header .header-middle .container,
body.storefront-theme-kids .header .header-middle .header-right .menu,
body.storefront-theme-kids .header .header-bottom .main-nav,
body.storefront-theme-kids .header .header-bottom .menu-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.storefront-theme-kids .header .header-top .header-left ul,
body.storefront-theme-kids .header .header-top .header-right .menu {
  flex-wrap: wrap;
  row-gap: 6px;
}

body.storefront-theme-kids .header .header-top .header-left ul > li,
body.storefront-theme-kids .header .header-top .header-right .menu > li {
  min-width: 0;
  line-height: 1.35;
}

body.storefront-theme-kids .header .header-middle {
  margin-bottom: 22px;
}

body.storefront-theme-kids .header .header-middle .container {
  justify-content: space-between;
  gap: 18px;
}

body.storefront-theme-kids .header .header-middle .header-left,
body.storefront-theme-kids .header .header-middle .header-right {
  flex: 1 1 0;
}

body.storefront-theme-kids .header .header-middle .header-center {
  flex: 0 0 auto;
  min-width: 0;
}

body.storefront-theme-kids .header .brand-logo img {
  max-height: 58px;
  width: auto;
}

body.storefront-theme-kids .header-search-form {
  width: min(500px, 36vw);
  min-width: 0;
}

body.storefront-theme-kids .header-search-form .select-custom {
  flex: 0 1 34%;
  min-width: 128px;
}

body.storefront-theme-kids .header-search-form .search-input {
  flex: 1 1 auto;
  min-width: 0;
}

body.storefront-theme-kids .header-search-form .search-input input {
  width: 100%;
  min-width: 0;
}

body.storefront-theme-kids .header-search-form .select-custom .nice-select {
  width: 100%;
  min-width: 0;
  padding-inline: 14px 24px;
}

body.storefront-theme-kids .header-search-form .select-custom .nice-select .current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.storefront-theme-kids .header .header-middle .header-right .menu {
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.storefront-theme-kids .header .header-middle .header-right .menu .menu-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

body.storefront-theme-kids .header .header-bottom .main-nav {
  gap: 18px;
}

body.storefront-theme-kids .header .header-bottom .menu-left {
  flex: 0 0 auto;
  padding-inline-end: clamp(20px, 4vw, 80px);
}

body.storefront-theme-kids .header .header-bottom .menu-left .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

body.storefront-theme-kids .header .header-bottom .mobile-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

body.storefront-theme-kids .header .header-bottom .menu-right {
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.storefront-theme-kids .header .header-bottom .nav-link {
  padding-inline: 12px;
}

body.storefront-theme-kids .menu .cart-dropdown {
  min-width: 0;
  width: min(450px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
}

body.storefront-theme-kids .menu .category-dropdown {
  width: min(320px, calc(100vw - 24px));
}

body.storefront-theme-kids .menu .category-dropdown .submenu {
  max-width: min(260px, calc(100vw - 48px));
}

body.storefront-theme-kids .menu :is(.setting-dropdown, .cart-dropdown, .submenu, .mega-dropdown, .category-dropdown) {
  overflow-wrap: anywhere;
}

/* Hero and banners */
body.storefront-theme-kids .home-slider.home-slider-5 {
  overflow: hidden;
  padding-block: 176px 156px;
  background-position: center;
  background-size: cover;
}

body.storefront-theme-kids .home-slider.home-slider-5 .animated-slider,
body.storefront-theme-kids .home-slider.home-slider-5 .slider-item,
body.storefront-theme-kids .banner-sm {
  max-width: 100%;
}

body.storefront-theme-kids .home-slider.home-slider-5 .slider-content {
  max-width: min(620px, 100%);
}

body.storefront-theme-kids .home-slider.home-slider-5 .title {
  line-height: 1.08;
  max-width: min(720px, 100%);
}

body.storefront-theme-kids .home-slider.home-slider-5 .text-lg {
  max-width: min(520px, 100%);
}

body.storefront-theme-kids .home-slider.home-slider-5 .slider-content .btn {
  white-space: normal;
}

body.storefront-theme-kids .home-slider-5 .animated-slider .slick-dots {
  bottom: -46px;
}

body.storefront-theme-kids .banner-collection .row {
  min-width: 0;
}

body.storefront-theme-kids .banner-sm .banner-content {
  max-width: min(82%, 460px);
  padding-inline: 24px;
}

body.storefront-theme-kids .banner-sm .banner-content .content-inner {
  min-width: 0;
  max-width: 100%;
}

body.storefront-theme-kids .banner-sm .banner-content :is(h2, h3, .title, .title-md) {
  line-height: 1.18;
}

body.storefront-theme-kids .banner-sm .btn,
body.storefront-theme-kids .banner-sm .btn-text {
  white-space: normal;
}

body.storefront-theme-kids .banner-sm.ratio.ratio-16-9::before {
  padding-bottom: max(56.25%, 220px);
}

body.storefront-theme-kids .banner-sm.banner-vertical.ratio::before {
  padding-bottom: min(142%, 620px);
}

/* Latest Products' side banner: match the product-list column height instead of its
   own aspect ratio (the row is a flex row, so col-lg-3 already stretches to col-lg-9's
   height — the banner itself just needs to fill that stretched column). Desktop-only:
   below the lg breakpoint the columns stack, so the ratio-1-2 fallback above still applies. */
@media (min-width: 992px) {
  body.storefront-theme-kids .products > .container > .row > .col-lg-3 .banner-sm.banner-vertical.ratio {
    height: 100%;
  }

  body.storefront-theme-kids .products > .container > .row > .col-lg-3 .banner-sm.banner-vertical.ratio::before {
    padding-bottom: 0;
  }
}

/* Categories and products */
body.storefront-theme-kids .category .row,
body.storefront-theme-kids .products .row,
body.storefront-theme-kids .featured-2 .row,
body.storefront-theme-kids .product-slider .slick-slide > div,
body.storefront-theme-kids .product-list-slider .slick-slide > div {
  min-width: 0;
}

body.storefront-theme-kids .category-5 {
  overflow: hidden;
}

body.storefront-theme-kids .category-5 .category-slider {
  padding-inline: 48px;
}

body.storefront-theme-kids .category-5 .category-item {
  min-width: 0;
  padding: 22px 18px;
}

body.storefront-theme-kids .category-5 .category-item .category-icon {
  width: 86px;
  height: 86px;
}

body.storefront-theme-kids .category-5 .category-item .category-icon img {
  max-width: 74%;
  max-height: 74%;
  object-fit: contain;
}

body.storefront-theme-kids .category-5 .category-title {
  font-size: 18px;
  line-height: 1.25;
}

body.storefront-theme-kids .section-title.title-inline {
  min-width: 0;
}

body.storefront-theme-kids .section-title.title-inline .title {
  min-width: 0;
}

body.storefront-theme-kids .product-default {
  min-width: 0;
}

body.storefront-theme-kids .product-default .product-img .lazy-container,
body.storefront-theme-kids .product-default .product-img .ratio {
  display: block;
}

body.storefront-theme-kids .product-default .product-img img {
  object-fit: cover;
}

body.storefront-theme-kids .product-default .product-details {
  min-width: 0;
}

body.storefront-theme-kids .product-default .product-price {
  flex-wrap: wrap;
  gap: 6px 8px;
}

body.storefront-theme-kids .product-default .product-price .new-price,
body.storefront-theme-kids .product-default .product-price .old-price {
  margin-inline: 0 !important;
  min-width: 0;
  line-height: 1.2;
}

body.storefront-theme-kids .product-default .product-countdown {
  flex-wrap: wrap;
  gap: 8px;
}

body.storefront-theme-kids .product-single-details .product-countdown .count:not(:last-child),
body.storefront-theme-kids .product-default .product-countdown .count:not(:last-child) {
  margin-inline-end: 0;
}

body.storefront-theme-kids .product-default .btn-icon-group.btn-inline,
body.storefront-theme-kids .product-default .btn-icon-group.btn-center-position,
body.storefront-theme-kids .product-grid-card.product-center .btn-icon-group.btn-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.storefront-theme-kids .product-default .btn-icon-group .hover-show,
body.storefront-theme-kids .product-list .btn-icon-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.storefront-theme-kids .product-default .btn-icon-group.btn-inline .btn-icon,
body.storefront-theme-kids .product-default .btn-icon-group.btn-center-position .btn-icon,
body.storefront-theme-kids .product-list .btn-icon-group .btn-icon {
  flex: 0 0 auto;
  margin: 0;
}

body.storefront-theme-kids .product-default-4 .row {
  row-gap: 16px;
}

body.storefront-theme-kids .product-default-4 .product-img {
  max-width: 100%;
}

body.storefront-theme-kids .product-default-4 .product-details {
  padding: 0;
}

body.storefront-theme-kids .product-inline,
body.storefront-theme-kids .product-inline-2 {
  min-width: 0;
  gap: 14px;
}

body.storefront-theme-kids .product-inline .product-img,
body.storefront-theme-kids .product-inline-2 .product-img {
  flex: 0 0 126px;
  width: 126px;
  margin-right: 0;
}

body.storefront-theme-kids .product-inline .product-details,
body.storefront-theme-kids .product-inline-2 .product-details {
  flex: 1 1 auto;
  width: auto;
  padding-inline-start: 0;
}

body.storefront-theme-kids .product-list-slider .mb-30 {
  min-width: 0;
}

body.storefront-theme-kids .tabs-navigation-scroll {
  min-width: 0;
}

body.storefront-theme-kids .tabs-navigation-scroll .nav {
  flex-wrap: nowrap;
}

/* Video, CTA, footer, modal */
body.storefront-theme-kids .video-banner {
  min-height: 360px;
  overflow: hidden;
}

body.storefront-theme-kids .video-banner > img.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

body.storefront-theme-kids .video-banner .content {
  position: relative;
  z-index: 1;
  max-width: min(560px, 100%);
  background: transparent;
}

body.storefront-theme-kids .video-banner .content .d-flex {
  flex-wrap: wrap;
  gap: 14px;
}

body.storefront-theme-kids .video-banner .content .video-btn {
  margin-inline-start: 0 !important;
}

body.storefront-theme-kids .newsletter .image-inner {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

body.storefront-theme-kids .newsletter .image-inner > img.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

body.storefront-theme-kids .newsletter .image-inner .content {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.storefront-theme-kids .footer-area .footer-widget,
body.storefront-theme-kids .footer-area .footer-widget a,
body.storefront-theme-kids .footer-area .copy-right-content {
  overflow-wrap: anywhere;
}

body.storefront-theme-kids .footer-area .footer-widget .navbar-brand img {
  max-height: 70px;
  width: auto;
}

body.storefront-theme-kids .footer-area .newsletter-form .input-group {
  flex-wrap: wrap;
  min-width: 0;
}

body.storefront-theme-kids .footer-area .newsletter-form .input-group .form-control {
  flex: 1 1 180px;
  min-width: 0;
}

body.storefront-theme-kids .footer-area .newsletter-form .input-group .btn {
  flex: 1 1 auto;
  min-width: min(100%, 160px);
}

body.storefront-theme-kids .mobile-menu {
  width: min(320px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}

body.storefront-theme-kids .quick-view-modal .modal-dialog {
  max-width: min(1140px, calc(100vw - 24px));
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
  body.storefront-theme-kids .header .brand-logo img {
    max-width: 138px;
  }

  body.storefront-theme-kids .header-search-form {
    width: min(430px, 34vw);
  }

  body.storefront-theme-kids .header .header-middle .header-right .menu .menu-item:not(:last-child) {
    margin-inline-end: 10px;
  }

  body.storefront-theme-kids .header .header-middle .header-right .menu .menu-link {
    font-size: 13px;
  }

  body.storefront-theme-kids .header .header-middle .header-right .menu .menu-link i {
    padding-right: 6px;
    margin-inline-end: 0;
  }

  body.storefront-theme-kids .header .header-bottom .menu-left {
    padding-inline-end: 28px;
  }

  body.storefront-theme-kids .header .header-bottom .nav-link {
    padding-inline: 9px;
  }
}

@media (max-width: 1279.98px) and (min-width: 1200px) {
  body.storefront-theme-kids .header .brand-logo img {
    max-width: 116px;
  }

  body.storefront-theme-kids .header-search-form {
    width: min(370px, 32vw);
  }

  body.storefront-theme-kids .header .header-middle .header-right .menu .menu-link {
    font-size: 0;
  }

  body.storefront-theme-kids .header .header-middle .header-right .menu .menu-link i {
    font-size: 22px;
    padding-right: 0;
  }

  body.storefront-theme-kids .header .header-bottom .menu-left .btn {
    padding-inline: 18px;
  }
}

@media (max-width: 1199.98px) {
  body.storefront-theme-kids .mobile-navbar {
    background: var(--storefront-surface, #ffffff);
  }

  body.storefront-theme-kids .header-next {
    margin-top: 72px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 {
    padding-block: 128px 108px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 .title {
    font-size: 42px;
  }

  body.storefront-theme-kids .product-default-2 .btn-icon-group .hover-hide,
  body.storefront-theme-kids .product-default-4 .btn-icon-group .hover-hide {
    display: none !important;
  }

  body.storefront-theme-kids .product-default-2 .btn-icon-group .hover-show,
  body.storefront-theme-kids .product-default-4 .btn-icon-group .hover-show,
  body.storefront-theme-kids .product-default-2:hover .btn-icon-group .hover-show,
  body.storefront-theme-kids .product-default-4:hover .btn-icon-group .hover-show {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  body.storefront-theme-kids .section-title.title-center .title,
  body.storefront-theme-kids h2 {
    font-size: 34px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 {
    padding-block: 112px 92px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 .title {
    font-size: 36px;
  }

  body.storefront-theme-kids .banner-sm .banner-content {
    max-width: min(90%, 420px);
    padding-inline: 18px;
  }

  body.storefront-theme-kids .banner-sm.ratio.ratio-16-9::before {
    padding-bottom: max(66%, 230px);
  }

  body.storefront-theme-kids .banner-sm.banner-vertical.ratio::before,
  body.storefront-theme-kids .banner-sm.content-top.ratio.ratio-1-2::before {
    padding-bottom: max(70%, 260px);
  }

  body.storefront-theme-kids .products .row {
    row-gap: 20px;
  }

  body.storefront-theme-kids .video-banner {
    min-height: 320px;
  }

  body.storefront-theme-kids .footer-area .footer-top {
    padding-top: 70px;
  }
}

@media (max-width: 767.98px) {
  body.storefront-theme-kids .container {
    max-width: calc(100vw - 24px);
  }

  body.storefront-theme-kids .section-title.title-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  body.storefront-theme-kids .section-title.title-center .title,
  body.storefront-theme-kids h2 {
    font-size: 30px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 {
    padding-block: 104px 84px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 .title {
    font-size: 32px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 .text-lg {
    font-size: 16px;
  }

  body.storefront-theme-kids .category-5 .category-slider {
    padding-inline: 42px;
  }

  body.storefront-theme-kids .banner-sm .banner-content {
    max-width: 100%;
    padding-inline: 16px;
  }

  body.storefront-theme-kids .banner-sm.ratio.ratio-16-9::before {
    padding-bottom: max(75%, 240px);
  }

  body.storefront-theme-kids .banner-sm .banner-content h3,
  body.storefront-theme-kids .banner-sm .banner-content h2 {
    margin-bottom: 14px;
  }

  body.storefront-theme-kids .tabs-navigation-scroll .nav {
    margin-inline: 0;
  }

  body.storefront-theme-kids .tabs-navigation .nav .nav-link {
    padding: 9px 14px;
    margin-inline: 0 8px;
  }

  body.storefront-theme-kids .product-default-4 {
    padding: 20px;
  }

  body.storefront-theme-kids .product-inline,
  body.storefront-theme-kids .product-inline-2 {
    align-items: flex-start;
  }

  body.storefront-theme-kids .product-inline .product-img,
  body.storefront-theme-kids .product-inline-2 .product-img {
    flex-basis: 108px;
    width: 108px;
  }

  body.storefront-theme-kids .footer-area .newsletter-form .input-group {
    border-radius: 12px !important;
    gap: 8px;
    padding: 8px !important;
  }

  body.storefront-theme-kids .footer-area .newsletter-form .input-group .form-control,
  body.storefront-theme-kids .footer-area .newsletter-form .input-group .btn {
    border-radius: 8px !important;
  }
}

@media (max-width: 575.98px) {
  body.storefront-theme-kids .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }

  body.storefront-theme-kids .row {
    --bs-gutter-x: 20px;
  }

  body.storefront-theme-kids .section-title.title-center .title,
  body.storefront-theme-kids h2 {
    font-size: 26px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 {
    padding-block: 96px 78px;
  }

  body.storefront-theme-kids .home-slider.home-slider-5 .title {
    font-size: 28px;
  }

  body.storefront-theme-kids .home-slider-5 .animated-slider .slick-dots {
    bottom: -34px;
  }

  body.storefront-theme-kids .category-5 .category-slider {
    padding-inline: 34px;
  }

  body.storefront-theme-kids .category-5 .category-item {
    padding: 18px 14px;
  }

  body.storefront-theme-kids .category-5 .category-item .category-icon {
    width: 76px;
    height: 76px;
  }

  body.storefront-theme-kids .product-default .product-price span {
    font-size: 15px;
  }

  body.storefront-theme-kids .product-default .product-price .new-price {
    font-size: 17px;
  }

  body.storefront-theme-kids .product-single-details .product-countdown .count,
  body.storefront-theme-kids .product-default .product-countdown .count {
    width: 38px;
    height: 38px;
  }

  body.storefront-theme-kids .product-inline .product-title,
  body.storefront-theme-kids .product-inline-2 .product-title {
    font-size: 15px;
  }

  body.storefront-theme-kids .newsletter .image-inner {
    min-height: 220px;
    padding: 50px 18px;
  }

  body.storefront-theme-kids .footer-area .footer-top {
    padding-top: 52px;
  }
}

@media (max-width: 399.98px) {
  body.storefront-theme-kids .mobile-menu {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  body.storefront-theme-kids .home-slider.home-slider-5 .title {
    font-size: 24px;
  }

  body.storefront-theme-kids .product-inline,
  body.storefront-theme-kids .product-inline-2 {
    flex-direction: column;
  }

  body.storefront-theme-kids .product-inline .product-img,
  body.storefront-theme-kids .product-inline-2 .product-img {
    flex-basis: auto;
    width: 100%;
  }
}
