/* tablet.css - loads after style.css and before mobile.css */

@media (min-width: 768px) and (max-width: 921px) {
  :root {
    --gutter: 32px;
    --header-offset: 92px;
  }

  html,
  body,
  .site,
  #page {
    overflow-x: hidden !important;
  }

  html,
  body {
    font-size: 16px;
  }

  .ast-container,
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
  .ast-separate-container #content .ast-container {
    padding-inline: var(--gutter) !important;
  }

  .ast-woocommerce-container {
    padding-top: 0 !important;
    padding-bottom: 24px !important;
  }

  #content.site-content {
    padding-top: var(--header-offset) !important;
  }

  .breadcrumb-sort-wrapper {
    align-items: center;
    gap: 16px;
  }

  .product-submenu-list a {
    font-size: 11px !important;
  }

  .woocommerce .products {
    margin-top: 24px !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px !important;
    row-gap: 24px !important;
  }

  .woocommerce-js ul.products li.product,
  .woocommerce-page ul.products li.product {
    margin-bottom: 0 !important;
  }

  .woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding-top: 12px !important;
  }

  body.post-type-archive-product .breadcrumb-sort-wrapper .la-sort-dropdown .custom-options,
  body.tax-product_cat .breadcrumb-sort-wrapper .la-sort-dropdown .custom-options {
    min-width: 220px;
    max-width: min(280px, calc(100vw - 48px));
  }

  .la-profile__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 28px !important;
    row-gap: 20px !important;
  }

  .la-profile__grid .la-input,
  .la-profile__grid .flatpickr-input[readonly],
  .la-profile__grid .form-control.input[readonly] {
    width: 100% !important;
  }

  body.page-id-4641 .elementor-element-243cf7d.e-con {
    min-height: 0 !important;
    --min-height: 0 !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    align-items: stretch !important;
    padding-top: 0 !important;
    padding-bottom: 56px !important;
  }

  body.page-id-4641 .elementor-element-243cf7d > .e-con-inner {
    gap: 0 !important;
    min-height: 0 !important;
    padding-block-start: 0 !important;
    padding-block-end: 0 !important;
    --padding-block-start: 0 !important;
    --padding-block-end: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-id-4641 .elementor-element-c6b30b7 {
    margin-bottom: 20px !important;
  }

  body.page-id-4641 .elementor-element-c6b30b7 > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.page-id-4641 .elementor-element-c6b30b7 .elementor-heading-title {
    font-family: var(--font-heading) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
  }

}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  body.woocommerce-cart .shop_table.cart thead {
    display: table-header-group !important;
  }

  body.woocommerce-cart .shop_table.shop_table_responsive.cart tr.cart_item,
  body.woocommerce-cart .shop_table.shop_table_responsive.cart tbody tr {
    display: table-row !important;
  }

  body.woocommerce-cart .shop_table.shop_table_responsive.cart tr.cart_item td,
  body.woocommerce-cart .shop_table.shop_table_responsive.cart tbody td {
    display: table-cell !important;
  }

  body.woocommerce-cart .shop_table.shop_table_responsive.cart td::before {
    content: none !important;
    display: none !important;
  }

  body.woocommerce-cart .shop_table.shop_table_responsive.cart tbody tr.cart_item:first-child td {
    border-top: 1px solid var(--border-subtle) !important;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name {
    text-align: left !important;
    vertical-align: middle !important;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name a {
    display: block !important;
    text-align: left !important;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name dl.variation {
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name dl.variation dt,
  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name dl.variation dd,
  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name dl.variation dd p {
    display: inline !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart .woocommerce-cart-form__contents td.product-name dl.variation dt {
    margin-right: 4px !important;
  }

  body.woocommerce-account .woocommerce::after {
    content: "";
    display: block;
    clear: both;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left !important;
    width: 23% !important;
    margin-bottom: 0 !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    float: right !important;
    width: 77% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-account .la-account-separator {
    margin: 18px 0 28px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 34px !important;
  }

  body.woocommerce-account .la-profile__grid,
  body.woocommerce-account .la-profile.la-addresses .la-profile__grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 16px !important;
    justify-content: stretch !important;
  }

  body.woocommerce-account .la-profile__grid > .la-card,
  body.woocommerce-account .la-profile.la-addresses .la-profile__grid > .la-card,
  body.woocommerce-account .la-profile.la-addresses .la-profile__grid .la-select-anchor,
  body.woocommerce-account .la-profile.la-addresses .la-profile__grid .select2-container {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.woocommerce-account .la-profile__grid .la-input,
  body.woocommerce-account .la-profile__grid .flatpickr-input[readonly],
  body.woocommerce-account .la-profile__grid .form-control.input[readonly],
  body.woocommerce-account .la-profile__grid .select2-container {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.woocommerce-account .la-profile__actions {
    margin-top: 24px !important;
  }

  body.woocommerce-account .la-save-btn {
    width: min(260px, 100%) !important;
  }

  body.woocommerce-account .la-ordercard {
    padding: 20px 24px !important;
  }

  body.woocommerce-account .la-ordercard__head {
    padding-bottom: 12px !important;
    gap: 10px !important;
  }

  body.woocommerce-account .la-ordercard__body {
    column-gap: 18px !important;
    padding: 12px 0 !important;
  }

  body.woocommerce-account .la-ordercard__row {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.woocommerce-account .la-ordercard__thumb {
    width: 96px !important;
  }

  body.woocommerce-account .la-btn.la-btn--ghost:not([href*="/logout/"]) {
    width: 144px !important;
  }

  body.woocommerce-account .la-vieworder {
    gap: 18px !important;
  }

  body.woocommerce-account .la-card-order {
    padding: 28px 24px !important;
  }

  body.woocommerce-account .la-vieworder .la-row {
    grid-template-columns: 1fr !important;
    row-gap: 20px !important;
  }

  body.woocommerce-account .la-vieworder .la-item {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.woocommerce-account .la-vieworder .la-item__thumb {
    width: 96px !important;
  }

  body.woocommerce-account .la-vieworder .la-dl__row {
    grid-template-columns: 132px minmax(0, 1fr) !important;
  }

  .single-product .lls-two-col {
    display: block;
  }

  .single-product .lls-left {
    width: 100%;
  }

  .single-product .lls-product-vertical-gallery {
    position: relative;
    width: 100% !important;
    max-width: min(440px, calc(100vw - 112px)) !important;
    margin: 0 auto 20px auto !important;
  }

  .single-product .lls-product-vertical-gallery__inner {
    width: 100% !important;
    max-width: min(440px, calc(100vw - 112px)) !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible !important;
  }

  .single-product .lls-product-vertical-gallery__frame > picture,
  .single-product .lls-product-vertical-gallery__frame > img {
    display: block;
    width: 100%;
  }

  .single-product .lls-mobile-gallery--active {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
  }

  .single-product .lls-mobile-gallery--active .lls-product-vertical-gallery__inner {
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .single-product .lls-mobile-gallery--active .lls-product-vertical-gallery__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 410 / 615;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--surface-primary);
  }

  .single-product .lls-mobile-gallery--active .lls-product-vertical-gallery__frame.swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
    min-width: 100% !important;
  }

  .single-product .lls-mobile-gallery--active .lls-product-vertical-gallery__frame > picture {
    display: flex;
    width: 100%;
    height: 100%;
  }

  .single-product .lls-mobile-gallery--active .lls-product-vertical-gallery__frame > picture img,
  .single-product .lls-mobile-gallery--active .lls-product-vertical-gallery__frame > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .single-product .lls-mobile-gallery__nav,
  .single-product .lls-mobile-gallery__fullscreen {
    position: absolute;
    z-index: 4;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    background: color-mix(in srgb, var(--surface-primary) 62%, transparent);
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
  }

  .single-product .lls-mobile-gallery__nav svg,
  .single-product .lls-mobile-gallery__fullscreen svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .single-product .lls-mobile-gallery__nav:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
  }

  .single-product .lls-mobile-gallery__nav--prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .single-product .lls-mobile-gallery__nav--next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .single-product .lls-mobile-gallery__fullscreen {
    right: 12px;
    bottom: 12px;
  }

  .single-product .summary.entry-summary {
    position: static;
    top: auto;
    width: 100% !important;
    max-width: none !important;
  }

  .single-product .summary.entry-summary .variations,
  .single-product .summary.entry-summary form.cart,
  .single-product .summary.entry-summary .woocommerce-variation-add-to-cart,
  .single-product .summary.entry-summary .woocommerce-product-details__short-description,
  .single-product .lls-accordions {
    max-width: 100% !important;
  }

  .single-product .single_add_to_cart_button,
  .single-product .single_add_to_cart_button.disabled,
  .single-product .single_add_to_cart_button.wc-variation-selection-needed,
  .single-product .single_add_to_cart_button:disabled {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 15px auto !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  h1.product_title.entry-title {
    font-size: 18px !important;
    margin-bottom: 0 !important;
  }

  .single-product .price {
    font-size: 14px !important;
  }

  .single-product table.variations select#pa_size {
    height: 40px !important;
    font-size: 12px !important;
    background-size: 10px !important;
  }
}

@media (min-width: 768px) and (max-width: 921px) {
  :root {
    --gutter: 24px;
  }

  body.home #content.site-content {
    padding-top: 0 !important;
  }

  body.home #content.site-content .ast-container {
    min-height: 100vh !important;
  }

}

/*
 * Store archives in the desktop-header / tablet-width interval.
 * mobile.css owns the same geometry through 921px; without this companion
 * rule Astra falls back to its four-column, square-thumbnail desktop grid at
 * 922px, making the products visibly smaller than both adjacent breakpoints.
 */
@media (min-width: 922px) and (max-width: 1180px) {
  body.ast-woo-shop-archive ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    column-gap: 28px !important;
    row-gap: 24px !important;
  }

  body.ast-woo-shop-archive ul.products li.product,
  body.tax-product_cat ul.products li.product,
  body.tax-product_tag ul.products li.product {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-self: start !important;
    float: none !important;
  }

  body.ast-woo-shop-archive ul.products li.product .astra-shop-thumbnail-wrap,
  body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap,
  body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
    background: var(--surface-primary) !important;
  }

  body.ast-woo-shop-archive ul.products li.product .astra-shop-thumbnail-wrap > a,
  body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap > a,
  body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap > a,
  body.ast-woo-shop-archive ul.products li.product .astra-shop-thumbnail-wrap img,
  body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap img,
  body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.ast-woo-shop-archive ul.products li.product .astra-shop-thumbnail-wrap img,
  body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap img,
  body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap img {
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap,
  body.tax-product_cat ul.products li.product .astra-shop-summary-wrap,
  body.tax-product_tag ul.products li.product .astra-shop-summary-wrap {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    transform: none !important;
  }
}
