/*
 * mobile-category.css
 * Mobile-only overrides for category/index.html (max-width: 768px)
 * Target design: Product-All-Categories-mobile-Page.html (390px viewport)
 *
 * Purely additive — rules only apply inside media queries
 * and do NOT affect desktop styles.
 * Existing HTML classes are unchanged.
 */

/* ============================================================
   1. TOP BAR — design: 44px / #231f20 / pad 0 20px / gap 12px
   ============================================================ */
@media (max-width: 768px) {
  .th-header [data-v-header-component-link],
  .th-page-builder-link-button {
    display: none !important;
  }

  .th-topbar,
  .th-topbar.top-bar {
    height: 44px !important;
    min-height: 44px !important;
    background: #231f20 !important;
    background-color: #231f20 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: stretch !important;
    flex-direction: row !important;
  }

  .th-topbar .position-relative.container,
  .th-topbar .top-bar__inner,
  .th-topbar.top-bar .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    height: 44px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 12px !important;
  }

  .th-topbar .d-flex.align-items-center.justify-content-center {
    display: contents !important;
  }

  .th-topbar-text,
  .th-topbar .top-bar__promo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #ffffff !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
  }

  .th-topbar .contact-sales {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .th-topbar-link,
  .th-topbar .top-bar__catalogue {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    white-space: nowrap !important;
    padding-left: 12px !important;
    line-height: 1.2 !important;
  }

  .th-topbar .fa-envelope,
  .th-topbar .fal.fa-envelope,
  .th-topbar .top-bar__envelope {
    display: none !important;
  }
}


/* ============================================================
   2. HEADER / NAVIGATION BAR
   Design: 60px / pad 0 16px / border #e8e8e8
   hamburger 40×40 / bars 18px / logo 22px
   actions gap 12px / icons 20px
   ============================================================ */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    background: #ffffff !important;
  }

  .th-menu-wrapper,
  .sticky-wrapper,
  .sticky-wrapper.desktop-menu,
  .sticky-wrapper.site-header,
  .menu-area {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .sticky-wrapper.desktop-menu,
  .sticky-wrapper.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
  }

  .sticky-wrapper.desktop-menu .menu-area,
  .sticky-wrapper.site-header .menu-area {
    padding: 0 !important;
    background: #ffffff !important;
  }

  .sticky-wrapper.desktop-menu .container,
  .sticky-wrapper.site-header .site-header__inner,
  .sticky-wrapper.site-header .container.th-container {
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 !important;
  }

  .sticky-wrapper.desktop-menu .menu-area .row,
  .sticky-wrapper.site-header .site-header__row,
  .sticky-wrapper.site-header .row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    justify-content: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 60px !important;
    height: 60px !important;
    width: 100% !important;
  }

  .sticky-wrapper .col-4.d-flex,
  .sticky-wrapper .site-header__left,
  .sticky-wrapper .site-header__logo-col,
  .sticky-wrapper .site-header__right {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .sticky-wrapper .col-4:first-child,
  .sticky-wrapper .site-header__left {
    justify-content: flex-start !important;
    grid-column: 1;
  }

  .sticky-wrapper .col-4:nth-child(2),
  .sticky-wrapper .site-header__logo-col {
    justify-content: center !important;
    grid-column: 2;
  }

  .sticky-wrapper .col-4:last-child,
  .sticky-wrapper .site-header__right {
    justify-content: flex-end !important;
    grid-column: 3;
  }

  .sticky-wrapper .th-nav-section-px {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  button.th-menu-toggle.d-block.d-lg-none,
  button.th-menu-toggle.site-header__menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: -8px !important;
    border: none !important;
    background: transparent !important;
    font-size: 18px !important;
    color: #231f20 !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  button.th-menu-toggle.d-block.d-lg-none i,
  button.th-menu-toggle.site-header__menu i {
    font-size: 18px !important;
    color: #231f20 !important;
    line-height: 1 !important;
  }

  .header-logo a,
  .site-header__logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  .header-logo a img,
  .site-header__logo {
    height: 22px !important;
    width: auto !important;
    display: block !important;
    max-height: 22px !important;
  }

  .sticky-wrapper .d-none.d-lg-inline-block,
  .sticky-wrapper .header-button.d-none.d-lg-inline-block,
  .sticky-wrapper.desktop-menu .main-menu {
    display: none !important;
  }

  .sticky-wrapper .d-flex.align-items-end.gap-3,
  .sticky-wrapper .site-header__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
    color: #231f20 !important;
  }

  .th-header-search,
  .site-header__icon-btn,
  .site-header__search-btn {
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    color: #231f20 !important;
  }

  .fa-regular.fa-magnifying-glass,
  .th-header-search .fa-regular.fa-magnifying-glass,
  #th-header-global-search i,
  #th-header-global-search .fa-regular.fa-magnifying-glass,
  .site-header__search-btn i {
    font-size: 20px !important;
    color: #231f20 !important;
    line-height: 1 !important;
  }

  #pinboard-button,
  .site-header__pin-btn {
    width: 20px !important;
    margin-right: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #pinboard-button img,
  .site-header__pin-icon,
  a[aria-controls="offcanvasRight"] img,
  img[src*="pinboard-icon"] {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
  }

  .th-user-dropdown,
  #user-profile-info {
    display: flex !important;
    align-items: center !important;
  }

  .th-user-dropdown .dropdown-toggle,
  #user-profile-info .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    color: #231f20 !important;
    padding: 0 !important;
  }

  .fa-solid.fa-user,
  .th-user-dropdown .fa-solid.fa-user {
    font-size: 20px !important;
    color: #231f20 !important;
    line-height: 1 !important;
  }
}


/* ============================================================
   3. PRODUCT CATEGORIES MASONRY
   Design:
     title section: pad 36px 20px 24px | h1 22/700/1.25
     cards section: pad 0 20px 44px
     card: pad 0 0 28px | mb 28px | border-bottom #e8e8e8
     image: radius 10 | border #e8e8e8 | aspect 16/10 | pad 14
     title: 15/600/1.3 | mt 16
     desc: 12/1.65 #33322f | mt 6
     subs: mt 14 | each 12/1.5 pad 7 0 | border-top #f0efed
     chevron: 9px #b5b2ad
     cta: mt 16 | 12/600 | underline offset 3
   ============================================================ */
@media (max-width: 768px) {
  #categories-masonry-section[data-v-categoriesmasonry-component-link],
  #categories-masonry-section [data-v-categoriesmasonry-component-link] {
    display: none !important;
  }

  #categories-masonry-section,
  #categories-masonry-section.container,
  #categories-masonry-section.th-container,
  #categories-masonry-section.container.th-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 36px 20px 44px !important;
    margin: 0 !important;
    background: #ffffff !important;
    overflow-x: hidden !important;
  }

  #categories-masonry-section .row.categories,
  #categories-masonry-section .row {
    margin: 0 !important;
    display: block !important;
  }

  #categories-masonry-section .col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
  }

  /* Page title — Product Categories */
  #categories-masonry-section .th-section-header {
    display: block !important;
    padding: 0 0 24px !important;
    margin: 0 !important;
  }

  #categories-masonry-section .th-section-header-wrapper,
  #categories-masonry-section .th-section-header-wrapper.text-start {
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #categories-masonry-section .th-section-title,
  #categories-masonry-section h2.th-section-title {
    font-family: "Open Sans", sans-serif !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #231f20 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #categories-masonry-section .th-section-subtitle {
    display: none !important;
  }

  /* Stacked single column — kill desktop masonry offsets */
  #categories-masonry-section .section-body,
  #categories-masonry-section .th-masonry-col-2 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #categories-masonry-section .th-masonry-col-2 .th-masonry-grid,
  #categories-masonry-section .th-masonry-grid,
  #categories-masonry-section .categories-masonry-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }

  #categories-masonry-section .th-masonry-col-2 .th-masonry-grid .th-masonry-grid-item,
  #categories-masonry-section .th-masonry-grid-item,
  #categories-masonry-section .th-masonry-grid-item.grid-col-span-8,
  #categories-masonry-section .th-masonry-grid-item.grid-col-span-5,
  #categories-masonry-section .th-masonry-grid-item.transform-10,
  #categories-masonry-section .th-masonry-col-2 .th-masonry-grid .th-masonry-grid-item:nth-child(even) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    padding: 0 0 28px !important;
    padding-top: 0 !important;
    margin: 0 0 28px !important;
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    gap: 0 !important;
    grid-gap: 0 !important;
  }

  #categories-masonry-section .th-masonry-grid-item:last-child {
    margin-bottom: 0 !important;
  }

  /* Image card — 16/10, 14px pad, 10px radius, #e8e8e8 border */
  #categories-masonry-section .th-item-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    padding: 14px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    box-sizing: border-box !important;
  }

  #categories-masonry-section .th-item-img a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  #categories-masonry-section .th-item-img img,
  #categories-masonry-section .th-item-img a img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border: none !important;
  }

  /* Info block sits 16px under the image */
  #categories-masonry-section .th-product-info-wrapper {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
    gap: 0 !important;
  }

  #categories-masonry-section .th-item-info,
  #categories-masonry-section .th-item-info.th-mt-15 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Category name — 15 / 600 / 1.3 */
  #categories-masonry-section .th-item-info .withOutArrow,
  #categories-masonry-section .th-item-info h3,
  #categories-masonry-section .th-item-info h6,
  #categories-masonry-section .th-item-info .th-title-24 {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #231f20 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #categories-masonry-section .th-item-info .withOutArrow a,
  #categories-masonry-section .th-item-info h3 a,
  #categories-masonry-section .th-item-info h6 a {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #231f20 !important;
    text-decoration: none !important;
  }

  /* Description — 12 / 1.65 / #33322f / mt 6 */
  #categories-masonry-section .th-item-info .th-item-description,
  #categories-masonry-section .th-item-info .th-item-description.font-size-16 {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #33322f !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    text-wrap: pretty;
  }

  /* Subcategory list — column, mt 14 */
  #categories-masonry-section .th-category-items {
    display: flex !important;
    flex-direction: column !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
  }

  #categories-masonry-section .th-category-items h4,
  #categories-masonry-section .th-category-items h4.font-size-16,
  #categories-masonry-section .th-category-items p,
  #categories-masonry-section .th-category-items [data-v-categoriesmasonry-subitems] h4 {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #33322f !important;
  }

  #categories-masonry-section .th-category-items a,
  #categories-masonry-section .th-category-items [data-v-categoriesmasonry-subitems] a,
  #categories-masonry-section .th-category-items p {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #33322f !important;
    padding: 7px 0 !important;
    margin: 0 !important;
    border-top: 1px solid #f0efed !important;
    text-decoration: none !important;
  }

  #categories-masonry-section .th-category-items h4 a,
  #categories-masonry-section .th-category-items [data-v-categoriesmasonry-subitems] a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #33322f !important;
    padding: 7px 0 !important;
    border-top: 1px solid #f0efed !important;
    text-decoration: none !important;
  }

  #categories-masonry-section .th-category-items a:hover,
  #categories-masonry-section .th-category-items p:hover {
    color: #231f20 !important;
  }

  /* Chevron from design — 9px #b5b2ad */
  #categories-masonry-section .th-category-items .th-cat-chevron,
  #categories-masonry-section .th-category-items .fa-chevron-right {
    font-size: 9px !important;
    color: #b5b2ad !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }

  #categories-masonry-section .th-category-items a:not(:has(.th-cat-chevron))::after,
  #categories-masonry-section .th-category-items p:not(:has(a)):not(:has(.th-cat-chevron))::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 9px;
    color: #b5b2ad;
    line-height: 1;
    flex-shrink: 0;
  }

  /* Read More / CTA — 12/600 underline offset 3, no arrow */
  #categories-masonry-section .th-link,
  #categories-masonry-section .th-link.Padding {
    display: inline-block !important;
    width: auto !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
  }

  #categories-masonry-section .th-link-text,
  #categories-masonry-section .th-link .th-link-text,
  #categories-masonry-section .th-link.th-link-text {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #231f20 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  #categories-masonry-section .th-link a,
  #categories-masonry-section .th-link a.th-link,
  #categories-masonry-section .th-link a.font-size-16 {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #231f20 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    line-height: 1.5 !important;
  }

  #categories-masonry-section .th-link-icon-btn,
  #categories-masonry-section .th-link .fa-arrow-up,
  #categories-masonry-section .th-link .degree-60 {
    display: none !important;
  }
}



/* ============================================================
   5. PINBOARD — keep offcanvas usable; hide edit chrome
   ============================================================ */
@media (max-width: 768px) {
  .pinboard.offcanvas {
    z-index: 1055;
  }
}
