/* Home hero: row forces min-height 90vh but banner has fixed aspect,
   leaving blank space below it. Let row follow the image. */
.home .vc_row-o-full-height {
  min-height: 0 !important;
  height: auto !important;
}

/* Home hero banner: fill full viewport width, no white gutters above 1754px */
.home .vc_row-o-full-height .cws_carousel_wrapper img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

/* Footer logo: source is 999px wide; keep it inside its column,
   and cap it on mobile where the column goes full width */
.cws_footer_template .site_logotype img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 991px) {
  .cws_footer_template .site_logotype img {
    max-width: 150px !important;
  }
}

/* Shop & category GRID view: 3 per row on desktop, 2 on tablet, 1 on phone.
   Scoped to .grid so it can never collide with the .list view rules below. */
body.woocommerce ul.products.grid > li.product.product {
  width: calc(33.333% - 20px) !important;
}

@media (max-width: 991px) {
  body.woocommerce ul.products.grid > li.product.product {
    width: calc(50% - 15px) !important;
  }
}

@media (max-width: 575px) {
  body.woocommerce ul.products.grid > li.product.product {
    width: 100% !important;
  }
}

/* Shop & category LIST view: theme kept the grid column width, so the image and
   details overflowed the card and got cut. Full-width row: image left, details right.
   Only .list is targeted, so the .grid rules above are never affected. */
body.woocommerce ul.products.list > li.product.product {
  width: 100% !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 24px;
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

body.woocommerce ul.products.list > li.product.product > a.woocommerce-LoopProduct-link {
  float: none !important;
  flex: 0 0 34%;
  max-width: 320px;
  align-self: stretch;
  display: block !important;
}

body.woocommerce ul.products.list > li.product.product > a.woocommerce-LoopProduct-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

body.woocommerce ul.products.list > li.product.product > .product_content_wrapper {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

/* phones: stack image above the details */
@media (max-width: 575px) {
  body.woocommerce ul.products.list > li.product.product {
    display: block !important;
  }

  body.woocommerce ul.products.list > li.product.product > a.woocommerce-LoopProduct-link,
  body.woocommerce ul.products.list > li.product.product > .product_content_wrapper {
    width: 100% !important;
    max-width: none;
  }
}

/* Product listing: TI Wishlist renders 2 buttons per card, hide the after-add-to-cart copy */
ul.products li.product .tinvwl-woocommerce_after_add_to_cart_button {
  display: none !important;
}

/* Touch targets: 44x44 minimum on mobile */
@media (max-width: 767px) {
  .header_icons a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-search .search-submit,
  button.search-submit {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* keep the 10px dot, grow only the hit area */
  .slick-dots li button {
    width: 10px !important;
    height: 10px !important;
    padding: 17px !important;
    box-sizing: content-box !important;
    background-clip: content-box !important;
  }

  .main-menu > li > a {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  ul.products li.product .tinvwl_add_to_wishlist_button {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
  }

  .cws_footer_template .vc_tta-panel-title > a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
  }

  ul.products li.product .single_add_to_cart_button {
    min-height: 44px !important;
  }

  /* text links: product titles, logo links, section heading links */
  ul.products li.product a.product_title_link {
    display: flex !important;
    align-items: center;
    min-height: 44px;
  }

  .site_logotype > a,
  a.site_logotype {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
  }

  .cws_content h4 a,
  .mb-30 a {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
  }
}

/* Mobile menu open/close triggers: 44x44 hit area */
@media (max-width: 991px) {
  i.menu-trigger,
  .menu-trigger,
  .close-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Shop / category listings: 44px targets for sidebar, breadcrumb and pagination */
@media (max-width: 767px) {
  .woocommerce-breadcrumb a,
  .product-categories li > a,
  .widget ul li > a,
  ul.product_list_widget li a,
  .gridlist-toggle a {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
  }

  .price_slider_amount .button {
    min-height: 44px !important;
  }

  .woocommerce-pagination a.page-numbers,
  .woocommerce-pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* Single product page: 44px targets */
@media (max-width: 767px) {
  .summary .single_add_to_cart_button,
  .cart .single_add_to_cart_button,
  .morni-size-guide-btn {
    min-height: 44px !important;
  }

  .tinv-wraper .tinvwl_add_to_wishlist_button {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px !important;
    height: auto !important;
  }

  .flex-nav-prev a,
  .flex-nav-next a,
  .flex-direction-nav a,
  .woocommerce-product-gallery__trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .woocommerce-tabs .tabs li a,
  .wc-tabs li a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
  }
}

/* Footer newsletter: label was wrapping, and the input (36px, top-aligned) and the
   button (41px, pushed down by wrapper padding) did not line up. Same height, centered. */
.cws_footer_template .wpforms-submit {
  white-space: nowrap !important;
}

.cws_footer_template .wpforms-form {
  align-items: center;
  gap: 10px;
}

.cws_footer_template .wpforms-form .wpforms-field {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cws_footer_template .wpforms-form .wpforms-submit-container {
  margin: 0 !important;
  padding: 0 !important;
}

.cws_footer_template .wpforms-form input[type="email"],
.cws_footer_template .wpforms-form .wpforms-submit {
  height: 44px !important;
  line-height: normal;
}

/* Footer accordion (mobile): links inside the panels were 14px tall */
@media (max-width: 767px) {
  .cws_footer_template .vc_tta-panel-body a {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
  }
}

/* Shop & category top bar (result count + sorting + grid/list toggle) */
body.woocommerce .shop_top_info_wrapper {
  background: #f6f5f9;
  padding: 14px 20px;
  border-radius: 4px;
}

@media (max-width: 575px) {
  body.woocommerce .shop_top_info_wrapper {
    padding: 12px 14px;
  }
}

/* Sorting dropdown in the shop / category top bar */
body.woocommerce .shop_top_info_wrapper .woocommerce-ordering {
  display: inline-block;
  border: 1px solid #d9d6e3;
  border-radius: 4px;
  background: #fff;
  padding: 2px 10px;
}

body.woocommerce .shop_top_info_wrapper .woocommerce-ordering select.orderby {
  background-color: transparent;
}

/* Product cards: variable products rendered a second wishlist inside the variation
   form, and the remaining one sat left-aligned. Keep one, centered. */
body.woocommerce ul.products li.product .tinvwl-woocommerce_single_variation {
  display: none !important;
}

body.woocommerce ul.products li.product .tinvwl-loop-button-wrapper {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center;
}

body.woocommerce ul.products li.product .tinvwl-loop-button-wrapper .tinvwl_add_to_wishlist_button {
  justify-content: center;
}

/* Product cards: theme clamped titles to 2 lines and cut them with an ellipsis.
   Show the full title, keep the cards in a row the same height and the
   buttons on one baseline. */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
}

body.woocommerce ul.products.grid,
body.woocommerce .related ul.products,
body.woocommerce .up-sells ul.products {
  align-items: stretch;
}

body.woocommerce ul.products li.product .product_content_wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.woocommerce ul.products li.product .product_content_wrapper > form.cart,
body.woocommerce ul.products li.product .product_content_wrapper > .variations_form {
  margin-top: auto !important;
}

/* Tablet (768-1199): theme makes the shop sidebar position:fixed, but its off-canvas
   hide/show rules only match .sidebar.position_left (this site has no position set),
   so it stayed parked on top of the product grid. Put it back in the flow, below the
   products. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  body .main-content-inner.has_sb {
    flex-wrap: wrap !important;
  }

  body .main-content-inner.has_sb .main-content-inner-wrap {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 1;
  }

  body .main-content-inner.has_sb .sidebar {
    position: static !important;
    left: auto !important;
    top: auto !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding-left: 0 !important;
    z-index: auto !important;
    overflow: visible !important;
    order: 2;
    margin-top: 40px;
  }

  body .main-content-inner.has_sb .sidebar .close_sidebar {
    display: none !important;
  }
}

/* Header "Client service" icon opened an off-canvas panel that does not exist on this
   site (href="#", nothing renders). Hidden until there is content for it. */
.header_icons a.custom_sidebar_trigger {
  display: none !important;
}

/* Instagram Feed: until the account is connected the plugin prints a setup error in
   the page markup. Keep it for logged-in admins only, never for visitors. */
body:not(.logged-in) #sbi_mod_error {
  display: none !important;
}