/* Desktop: Hide mobile filter toggle, always show filters */
.mobile-filters-toggle {
  display: none;
}

.mobile-filters-content {
  max-height: none !important;
  overflow: visible !important;
}

@media screen and (max-width: 1650px) {
  .detail-page .product .carousel-container {
    max-width: 900px;
  }
}
@media screen and (max-width: 1500px) {
  .info-bar.grey .info .text,
  .info-bar.red .info .text {
    font-size: 12px;
  }
  .info-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .other-products-carousel {
    padding: 0 100px;
    box-sizing: border-box;
  }
}
@media screen and (max-width: 1400px) {
  .whats-here .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .whats-here .content h2 {
    text-align: center;
  }
  .detail-page .product {
    display: flex;
  }
  .detail-page .product .carousel-container .owl-carousel .product-image img {
    max-width: 100%;
  }
  .detail-page .product .carousel-container {
    float: unset !important;
    max-width: unset !important;
    width: 100% !important;
  }
  #block-bornemann-content .detail-page .product .details {
    box-sizing: border-box;
    margin-left: 0px;
    float: unset !important;
    max-width: unset !important;
    width: 100% !important;
  }
  .messaging .messaging-wrapper {
    flex-direction: column;
    align-items: center;
    font-family: "Montserrat" !important;
  }
  .other-products-carousel {
    padding: 0px;
    box-sizing: border-box;
  }
  .detail-page .other-products-carousel .owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
  }
  .detail-page .other-products-carousel .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -30px;
  }
  .detail-page .informations .videos {
    flex-direction: column;
    align-items: center;
  }
  .detail-page {
    padding: 0 20px;
  }
  .detail-page .product {
    flex-direction: column;
    align-items: center;
  }
}
@media screen and (max-width: 1250px) {
  .listing .categories {
    max-width: 800px;
  }
  .listing {
    padding-left: 20px;
    padding-right: 20px;
  }
  .listing .row {
    flex-direction: column;
    align-items: center;
  }
  header .secondary-header,
  header .main-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  header .secondary-header .menu {
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 1000px) {
  header.header-logged .action {
    justify-content: center;
  }
  .register-myads .myads-list .item .info .price {
    flex-wrap: wrap;
  }
  .register-myads .myads-list .item .image img {
    max-width: 500px;
    height: auto;
  }
  .register-myads .myads-list .item .action {
    max-width: 500px;
  }
  .register-myads .myads-list .item .info {
    align-items: center;
  }
  .register-myads .myads-list .item {
    flex-direction: column;
    align-items: center;
  }
  .hero-content {
    gap: 50px;
  }
  header .main-header {
    flex-direction: column;
  }
}

/* Compact Hero - Tablet */
@media screen and (max-width: 900px) {
  .hero.hero-compact {
    margin-bottom: 40px;
  }

  .hero.hero-compact .hero-content {
    padding: 60px 20px;
    gap: 30px;
  }

  .hero.hero-compact .hero-content .title {
    font-size: 32px;
  }

  .hero.hero-compact .hero-buttons .button {
    min-width: 180px;
    height: 46px;
    font-size: 15px;
  }

  .hero.hero-compact .hero-buttons .button.primary {
    font-size: 16px;
  }
}

@media screen and (max-width: 800px) {
  /* Move location search to top on mobile - before categories */
  .listing {
    margin-top: 30px;
  }
  #seach-page-custom .listing {
    position: relative;
    padding-top: 120px;
  }

  /* Mobile collapsible filters container */
  .mobile-filters-wrapper {
    margin-bottom: 20px;
  }

  .mobile-filters-toggle {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    gap: 8px;
  }

  .mobile-filters-toggle:hover {
    background: #f0f0f0;
  }

  .mobile-filters-toggle:active {
    background: #e8e8e8;
  }

  .mobile-filters-toggle-text {
    flex: 1;
    text-align: left;
  }

  .mobile-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #f00020;
    color: #fff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
  }

  .mobile-filters-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
  }

  .mobile-filters-wrapper.active .mobile-filters-toggle-icon {
    transform: rotate(180deg);
  }

  .mobile-filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    opacity: 0;
  }

  /* Start collapsed on mobile by default */
  .mobile-filters-wrapper:not(.active) .mobile-filters-content {
    max-height: 0 !important;
    opacity: 0;
  }

  .mobile-filters-wrapper.active .mobile-filters-content {
    max-height: 5000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
  }

  .mobile-filters-content .sidebar-filters {
    margin-top: 12px;
  }

  .listing .results .search-filter {
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 20px;
  }

  /* Hide duplicate search on mobile - we have it at the top */
  .listing .results .search-filter .input-container:first-child {
    display: none;
  }

  .listing .results .search-filter .submit-search {
    display: none;
  }

  #seach-page-custom .listing .results .search-filter .location-input-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 100%;
    margin: 0;
    z-index: 10;
  }

  #seach-page-custom .listing .results .search-filter .location-input-wrapper .input-container.glued {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  #seach-page-custom .listing .results .search-filter .location-input-wrapper .input-container.glued input {
    border-radius: 10px;
  }

  #seach-page-custom .listing .results .search-filter .location-input-wrapper .search_text_logged {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 0;
    text-align: center;
  }

  /* Mobile filter improvements - quick wins */
  .listing .categories .category-title {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .listing .categories .category-title:first-of-type {
    border-radius: 8px;
  }

  .listing .categories .checkbox-container {
    padding: 10px 12px;
    gap: 6px;
  }

  .listing .categories .checkbox-container label {
    font-size: 13px;
  }

  .listing .categories .filter-holder {
    margin-bottom: 12px;
  }

  .listing .categories .filter-holder.price {
    margin-top: 12px;
  }

  .listing .categories .price-inputs {
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .listing .categories .submit-button {
    margin-top: 12px;
    gap: 8px;
    flex-direction: row;
  }

  .listing .categories .submit-button .button {
    padding: 10px 12px;
    font-size: 13px;
  }

  .listing .categories .submit-button .button.primary.submit {
    flex: 1.2;
    font-weight: 600;
  }

  .listing .categories .submit-button .button.primary.reset {
    flex: 0.8;
  }

  .listing .categories .sidebar-filters {
    gap: 0;
  }

  .listing .categories .parent {
    border-radius: 8px;
    overflow: hidden;
  }

  .listing .categories .checkbox-container input {
    width: 14px;
    height: 14px;
  }

  .listing .categories .checkbox-container label::before {
    width: 14px;
    height: 14px;
  }

  .listing .categories .category-title {
    background: #fafafa;
    border: 1px solid #e5e5e5;
  }

  .listing .categories .price-inputs {
    border: 1px solid #e5e5e5;
    background: #fafafa;
  }

  .listing .categories .price-inputs .input-container input {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* UX Improvements - Better spacing and hierarchy */
  .listing .results .sort-container {
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
  }

  .listing .results .sort {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .listing .results .sort .text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
  }

  .listing .results .sort .select-container {
    width: 100%;
  }

  .listing .results .from-marketplace {
    margin-top: 0;
  }

  /* Improve visual separation between sections */
  .listing .row {
    gap: 20px;
  }

  /* Better spacing after filters */
  .listing .categories .submit-button {
    margin-bottom: 8px;
  }

  /* Better touch targets for filter categories */
  .listing .categories .category-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .listing .categories .category-title:active {
    background-color: #f0f0f0;
  }

  /* Improve checkbox touch targets */
  .listing .categories .checkbox-container {
    min-height: 44px;
    cursor: pointer;
  }

  .listing .categories .checkbox-container label {
    cursor: pointer;
    user-select: none;
  }

  /* Mobile: Ensure expand button is touch-friendly */
  .listing .categories .checkbox-container.has-children .category-expand-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .invoice .table-invoice tbody tr:last-child td:last-child,
  .sales-product .select2-container {
    max-width: 100% !important;
  }
  .invoice .table-invoice tbody td {
    max-width: 100% !important;
  }
  .my-profile .grid-2 label {
    text-align: start;
    margin: 0;
    max-width: max-content;
  }
  .sales-product table tbody tr td:has(.select-container) {
    flex-direction: column;
    align-items: center;
  }
  .invoice table thead {
    display: none;
  }
  .invoice table td {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 5px;
    border: none;
  }
  .invoice table td::before {
    content: attr(data-cell) " ";
    font-family: "MontserratSemibold";
    min-width: max-content;
  }
  .invoice .table-invoice table tbody tr:not(:last-child) td {
    border-bottom: none;
  }
  .invoice table tr:not(:last-child) td:last-child {
    border-bottom: 1px solid #b8b8b8 !important;
  }
  .provider-ad .grid-2 .delete-btn {
    position: absolute;
    right: -30px;
    bottom: 60px;
  }
  .my-profile .grid-2 .select-container,
  .my-profile .grid-2 .input-container {
    width: 100%;
    max-width: 100%;
  }
  .my-profile .box .profile-upload {
    position: relative;
    top: unset;
    left: unset;
    margin-bottom: 16px;
  }
  .my-profile .box {
    padding-left: 20px;
    padding-right: 20px;
  }
  .my-profile .grid-2 {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
  }
  .my-profile .grid-2 .select-container label,
  .my-profile .grid-2 .input-container label {
    text-align: start;
  }
  .my-profile .grid-2 .select-container,
  .my-profile .grid-2 .input-container {
    margin-bottom: 10px;
    width: 100%;
  }
  .detail-page .product .details {
    max-width: 100%;
  }

  .detail-page .product .carousel-container .owl-carousel .product-image img {
    height: 450px;
  }
  .detail-page .product .carousel-container .owl-thumbs {
    /* max-width: 700px; */
    overflow-x: scroll;
  }
  .detail-page .product .carousel-container .owl-thumbs img {
    width: 220px;
  }
  .listing .results .search-filter {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .listing .results .search-filter .input-container,
  .listing .results .search-filter .select-container,
  .listing .results .search-filter .submit-search {
    max-width: 100%;
    margin: 0;
  }
  .listing
    .results
    .search-filter
    .select-container
    .select2-container--default
    .select2-selection--single {
    border-top-left-radius: 10px;

    border-bottom-left-radius: 10px;
  }
  .hero-content .title {
    font-size: 30px;
  }
  .benefits .title {
    margin-bottom: 20px;
  }
  .benefits {
    margin: 50px 0;
  }
  footer .column p {
    text-align: center;
  }
  footer .column.links .link,
  footer .column .title {
    text-align: center;
  }
  footer .row .column {
    max-width: 300px;
    width: 100%;
  }
  .list-3,
  .list-4 {
    gap: 20px;
    flex-direction: column;
    align-items: center;
    display: flex;
  }
  .from-marketplace .container .title,
  .popular-categories .container .title {
    text-align: center;
  }
  footer .row {
    flex-direction: column;
    align-items: center;
  }
  footer .column .logo {
    margin-bottom: 30px;
  }
  footer .column {
    margin-bottom: 20px;
  }
  footer .column .title {
    margin-bottom: 30px;
  }
  footer .container {
    padding: 50px 20px;
  }
  footer .column .media .item {
    max-width: 150px;
    width: 100%;
  }
  footer .column.links .link {
    margin-bottom: 30px;
  }
  footer .column .media {
    align-items: center;
  }
  .hero {
    height: 450px;
    margin-bottom: 50px;
  }

  /* Compact Hero - Mobile */
  .hero.hero-compact {
    margin-bottom: 30px;
  }

  .hero.hero-compact .hero-content {
    padding: 50px 20px;
    gap: 24px;
  }

  .hero.hero-compact .hero-content .title {
    font-size: 24px;
  }

  .hero.hero-compact .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero.hero-compact .hero-buttons .button {
    width: 100%;
    max-width: 280px;
    min-width: unset;
    height: 48px;
    font-size: 15px;
  }

  .hero.hero-compact .hero-buttons .button.primary {
    font-size: 16px;
  }
  .from-marketplace .container .list-4 .item {
    height: auto;
  }
  .popular-categories {
    padding: 50px 20px;
  }
  .from-marketplace .container .title,
  .popular-categories .container .title {
    font-size: 24px;
  }
  .benefits .item {
    padding: 0;
  }
  .benefits .item .text {
    font-size: 18px;
  }
}

@media screen and (max-width: 600px) {
  /* Compact Hero - Small Mobile */
  .hero.hero-compact {
    margin-bottom: 24px;
  }

  .hero.hero-compact .hero-content {
    padding: 40px 16px;
    gap: 20px;
  }

  .hero.hero-compact .hero-content .title {
    font-size: 20px;
  }

  .hero.hero-compact .hero-buttons .button {
    height: 44px;
    font-size: 14px;
    max-width: 260px;
  }

  .hero.hero-compact .hero-buttons .button.primary {
    font-size: 15px;
  }

  .retail-price.old span,
  .price.new .actual,
  .price.new .actual span {
    font-size: 16px !important;
  }
  .from-marketplace .container .list-4 .item .content .price {
    align-items: center;
  }
  .details .retail-price.old {
    width: auto !important;
    min-width: max-content !important;
  }
  .whats-here .image img {
    height: 300px;
    object-fit: cover;
  }
  .content-page {
    font-size: 24px;
    padding-bottom: 200px;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
    padding-top: 70px;
  }
  .content-page h1 {
    text-align: center;
  }
  td::before {
    min-width: max-content;
  }
  .textarea-container {
    width: 100%;
  }
  header
    .main-header
    .search-input-container
    .search-input
    .input-container
    input,
  header .main-header .search-input-container .search-input .submit-button {
    height: 34px !important;
  }
  header
    .main-header
    .search-input-container
    .search-input
    .input-container
    input,
  header
    .main-header
    .search-input-container
    .search-input
    .input-container
    input::placeholder {
    font-size: 12px !important;
  }
  .my-profile .grid-2 .input-container {
    justify-content: center;
    display: flex;
  }
  header .main-header .search-input-container .search-input .submit-button {
    box-sizing: border-box;
  }
  header.header-logged .action {
    gap: 10px;
  }
  .burger-menu-profile.active .profile-dropdown {
    width: 180px !important;
  }
  .action-mobile {
    width: 100%;
    gap: 5px;
    z-index: 100;
    display: flex !important;
    flex-direction: column;
  }
  .burger-menu-other.active .profile-dropdown {
    z-index: 1000;
  }

  .my-profile .box {
    padding-top: 20px;
  }
  .favorites .container .list-4 {
    flex-direction: column;
    display: flex;
  }
  .step-counter .step {
    font-size: 12px;
  }
  header .main-header .logo img {
    max-width: 100px;
  }
  header .main-header .action {
    display: none;
  }

  /* Ensure mobile-action cart is visible on mobile */
  header .main-header .burger-menu-profile .action.mobile-action,
  header .main-header .burger-menu-other .action.mobile-action {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-direction: row;
  }

  /* Ensure cart icon is visible and properly styled on mobile */
  header .main-header .burger-menu-profile .action.mobile-action .cart,
  header .main-header .burger-menu-other .action.mobile-action .cart {
    display: flex !important;
    position: relative;
    margin: 0;
  }

  header .main-header .burger-menu-profile .action.mobile-action .cart i,
  header .main-header .burger-menu-other .action.mobile-action .cart i {
    font-size: 24px;
    color: var(--red);
    cursor: pointer;
  }
  header .main-header .logo {
    max-width: 100%;
  }
  header .main-header .burger-menu-profile i {
    font-size: 30px;
    cursor: pointer;
  }
  header .main-header .burger-menu-profile {
    position: absolute;
    top: 20px;
    right: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  header .main-header .burger-menu-profile .action {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  header .secondary-header {
    display: none;
  }
  header .main-header .burger-menu-profile.active .action-button {
    width: 100%;
    max-width: 100%;
  }
  .burger-menu-profile .profile-dropdown {
    display: none;
  }
  .burger-menu-profile.active .profile-dropdown {
    padding: 20px;
    border-radius: 10px;
    position: absolute;
    right: 0;
    top: 40px;
    width: 250px;
    display: flex;

    backdrop-filter: blur(100px);
  }
  .burger-menu-profile {
    display: revert;
    position: relative;
  }
  .burger-menu-other.active .profile-dropdown {
    padding: 20px;
    border-radius: 10px;
    position: absolute;
    right: 0;
    top: 40px;
    width: 250px;
    display: flex;

    backdrop-filter: blur(100px);
  }
  header.burger-menu-other.active .secondary-header {
    width: 100%;
    padding: 0;
  }
  header .burger-menu-other.active .secondary-header .menu .category .name {
    justify-content: space-between;
  }
  header .burger-menu-other.active .secondary-header .menu .category {
    width: 100%;
    max-width: 100%;
  }
  header .burger-menu-other.active .secondary-header {
    border: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  .burger-menu-other i {
    font-size: 30px;
    cursor: pointer;
  }
  header
    .main-header
    .search-input-container
    .search-input
    .input-container
    input::placeholder {
    font-size: 8px;
  }
  header .main-header .search-input-container .search-input {
    gap: 0;
  }
  header .main-header .search-input-container .search-input .input-container {
    margin-right: -20px;
  }
  header
    .main-header
    .search-input-container
    .search-input
    .input-container
    input,
  header .main-header .search-input-container .search-input .submit-button {
    height: 24px;
    border-radius: 18px;
  }
  header .main-header .search-input-container .search-input .submit-button {
    max-width: 64px;
  }
  header .main-header .search-input-container .search-input .submit-button i {
    font-size: 16px;
  }
  .burger-menu-other {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .detail-page .informations .videos video {
    height: 250px;
  }
  .detail-page .other-products-carousel .owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0px;
  }
  .detail-page .other-products-carousel .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0px;
  }
  .detail-page .other-products-carousel .owl-carousel .owl-item.active {
    display: flex;
    justify-content: center;
  }
  .detail-page .container {
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .detail-page .details .price {
    flex-wrap: wrap;
  }
  .detail-page .details .action {
    flex-direction: column;
  }
  .detail-page .details .general-information .list-2 {
    font-size: 14px;
  }
  .detail-page .details .profile .image {
    flex-direction: column;
    text-align: center;
  }
  .detail-page .details .profile .reviews {
    align-items: center;
  }
  .detail-page .details .profile {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .detail-page .details .action .select-container,
  .detail-page .details .action .buy-now {
    max-width: 100%;
  }
  .pagination {
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
  }
  .pagination .next,
  .pagination .prev {
    width: 10px;
  }

  .pagination .page-number {
    width: 30px;
    height: 30px;
  }
  .listing .results .sort {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    flex-direction: column;
  }
  .listing .results .sort .select-container {
    max-width: 100%;
  }
  .from-marketplace .container .list-4 .item .content {
    padding: 10px;
  }
  .from-marketplace .container .list-4 .item .content .price .new,
  .from-marketplace .container .list-4 .item .content .price .old {
    font-size: 18px;
  }
  .info-bar {
    padding: 20px;
  }
  .info-bar.red .info .text {
    white-space: nowrap;
  }
  header .secondary-header .menu {
    flex-direction: column;
    gap: 30px;
  }
  .action-mobile {
    display: flex !important;
  }
  footer .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .cart.cart-form .order-total-line,
  .customcheckout-checkout .checkout-order-summary .order-total-line,
  .customcheckoutreview-checkout .checkout-order-summary .order-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
