/**
 * FACTORY page — tablet & mobile overrides
 * Shared header/footer/nav/breadcrumb: responsive-tablet/mobile.css
 */

/* ==========================================================================
   Tablet (768px – 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) and (min-width: 768px) {
  #c78MQvl {
    margin: 0 !important;
  }

  #c78MQvl > .advanced-fixed,
  #c78MQvl > .advanced-content,
  #c78MQvl .advanced-item > .componentsBox,
  #c78MQvl .advanced-item > .componentsBox > .rowList,
  #co5FoQe {
    height: 260px !important;
    min-height: 260px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box;
  }

  #c78MQvl .advanced-content .advanced-item > .componentsBox {
    padding: 0 4% !important;
  }

  #co5FoQe {
    padding: 0 4% !important;
  }

  #co5FoQe .rowList,
  #co5FoQe .co5FoQerL {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cqHYvvEA,
  .cqHYvvEA .pagepointA,
  .cqHYvvEA .textLineP,
  .cqHYvvEA .textLineP p {
    font-size: 3.6rem !important;
    margin: 0 0 1rem 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  #cS4SQUW,
  .cS4SQUWCrumbsData {
    width: 100% !important;
    text-align: center !important;
  }

  #cS4SQUW .CrumbsBox {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .CrumbsBox .cS4SQUWFont,
  .CrumbsBox .currentPosFont {
    max-width: none !important;
    white-space: nowrap !important;
  }

  #cNkHR2u,
  #c32a6Vk {
    padding-left: 3% !important;
    padding-right: 3% !important;
  }

  #cjh8kGu > .tabListParent .equalWidthTab .tabBtn,
  #cjh8kGu > .tabListParent .average-tab .tabBtn {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  #cjh8kGu > .tabListParent .tabList .tabBtn .btnTxt {
    font-size: 1.4rem !important;
    padding-top: 1.4rem !important;
    padding-bottom: 1.4rem !important;
  }

  .row_line .cCsv69Jrow_col,
  .row_line .c9ugpOkrow_col,
  .row_line .ctW7YrYrow_col,
  .row_line .cUME20jrow_col {
    width: 50% !important;
  }

  .row_line .c1nsvo8row_col,
  .row_line .cvZJgE8row_col {
    width: 50% !important;
  }
}

/* ==========================================================================
   Mobile (≤767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
  /* Banner */
  #c78MQvl {
    margin: 0 !important;
    overflow: hidden !important;
    min-height: 240px !important;
  }

  #c78MQvl > .advanced-fixed,
  #c78MQvl > .advanced-content,
  #c78MQvl > .advanced-custom,
  #c78MQvl .advanced-item,
  #c78MQvl .advanced-item > .componentsBox,
  #c78MQvl .advanced-item > .componentsBox > .rowList,
  #co5FoQe {
    height: 240px !important;
    min-height: 240px !important;
    width: 100% !important;
    transform: none !important;
    box-sizing: border-box;
  }

  #c78MQvl > .advanced-fixed,
  #c78MQvl > .advanced-content,
  #c78MQvl .advanced-item,
  #c78MQvl .advanced-item > .componentsBox,
  #c78MQvl .advanced-item > .componentsBox > .rowList,
  #co5FoQe {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #c78MQvl .advanced-content .advanced-item > .componentsBox {
    padding: 0 4% !important;
  }

  #c78MQvl .advanced-arrow,
  #c78MQvl .advanced-btn {
    display: none !important;
  }

  #co5FoQe {
    padding: 0 4% !important;
  }

  #co5FoQe > .rowListBg {
    opacity: 0.55 !important;
  }

  #co5FoQe .rowList,
  #co5FoQe .co5FoQerL {
    padding: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cqHYvvEA,
  .cqHYvvEA .pagepointA,
  .cqHYvvEA .textLineP,
  .cqHYvvEA .textLineP p {
    font-size: 2.6rem !important;
    text-align: center !important;
    margin: 0 0 0.8rem 0 !important;
    line-height: 1.25 !important;
    width: 100% !important;
  }

  #cS4SQUW,
  .cS4SQUWCrumbsData {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #cS4SQUW .CrumbsBox {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .cS4SQUWFont,
  .cS4SQUWFont a,
  #cS4SQUW .currentPosFont,
  #cS4SQUW .currentPosFont a {
    font-size: 1.3rem !important;
    white-space: nowrap !important;
    max-width: none !important;
  }

  #cS4SQUW .CrumbsBox .currentPosFont,
  #cS4SQUW .CrumbsBox .cS4SQUWFont {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 0.6rem !important;
  }

  /* Category tabs → horizontal chips */
  #cNkHR2u {
    padding: 1.6rem 0 0.4rem !important;
    overflow: hidden;
  }

  #cjh8kGu {
    margin: 0 !important;
  }

  #cjh8kGu.leftTabbox,
  #cjh8kGu.customTabBox,
  #cjh8kGu .tabListParent {
    display: block !important;
    width: 100% !important;
  }

  #cjh8kGu > .tabListParent .tabList,
  #cjh8kGu > .tabListParent .tabLeftList,
  #cjh8kGu > .tabListParent .equalWidthTab {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 0.8rem;
    padding: 0 3% 1.2rem !important;
    box-sizing: border-box;
  }

  #cjh8kGu > .tabListParent .equalWidthTab .tabBtn,
  #cjh8kGu > .tabListParent .average-tab .tabBtn,
  #cjh8kGu > .tabListParent .tabLeftList .tabBtn,
  #cjh8kGu > .tabListParent .tabList .tabBtn {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #003879 !important;
    border-radius: 999px !important;
    box-sizing: border-box;
  }

  #cjh8kGu > .tabListParent .tabList .tabBtn .btn,
  #cjh8kGu > .tabListParent .tabList .tabBtn .tabLinkBtn {
    display: block !important;
    padding: 0 !important;
  }

  #cjh8kGu > .tabListParent .tabList .tabBtn .btnTxt {
    display: block !important;
    font-size: 1.3rem !important;
    color: #003879 !important;
    padding: 0.7rem 1.2rem !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
  }

  #cjh8kGu > .tabListParent .tabList .selected {
    background: #003879 !important;
    border-color: #003879 !important;
  }

  #cjh8kGu > .tabListParent .tabList .selected .btnTxt {
    color: #fff !important;
  }

  /* Tab body / big gallery image */
  #cjh8kGu .tabLeftBody,
  #cjh8kGu .tabCon,
  #cjh8kGu.customTabBox .tabLeftBody .tabCon .boxCont {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 3% !important;
    box-sizing: border-box;
  }

  #cUFgAOQ {
    margin: 0 0 1.2rem 0 !important;
  }

  #cUFgAOQ .cUFgAOQLi {
    width: 100% !important;
    margin-bottom: 1.2rem !important;
  }

  #cUFgAOQ .cUFgAOQLi .listBoxHref {
    margin: 0 !important;
    box-shadow: none !important;
  }

  .ckdZoCh .Imgbox {
    padding-top: 75% !important;
  }

  /* Factory photo mosaic */
  #c32a6Vk {
    padding: 6% 3% !important;
    background-attachment: scroll !important;
  }

  #c32a6Vk > .rowListBg {
    background-attachment: scroll !important;
  }

  #cfQuCoG,
  #cB0vFAF {
    margin: 0 !important;
    padding: 0 !important;
  }

  #cfQuCoG > .rowcol,
  #cB0vFAF > .rowcol {
    padding: 0.4rem !important;
    box-sizing: border-box;
  }

  .row_line .cCsv69Jrow_col,
  .row_line .c9ugpOkrow_col,
  .row_line .ctW7YrYrow_col,
  .row_line .cUME20jrow_col {
    width: 50% !important;
  }

  .row_line .c1nsvo8row_col,
  .row_line .cvZJgE8row_col {
    width: 50% !important;
  }

  #c32a6Vk .ImghidCont,
  #c32a6Vk .Imgbox,
  #c32a6Vk .Imgbox img {
    max-width: 100% !important;
    width: 100% !important;
  }

  #c32a6Vk .Imgbox img {
    height: auto !important;
    display: block !important;
  }
}
