/**
 * Layout1 (new theme) – full responsive layout
 * Mobile-first overrides for tablets and phones.
 * Load after layout-bem.css.
 */

/* ===== Global: no horizontal scroll ===== */
html.layout-page {
  overflow-x: hidden;
  max-width: 100%;
}
body.layout-page {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}
.layout-page *,
.layout-page *::before,
.layout-page *::after {
  box-sizing: border-box;
}

/* ===== Main content area ===== */
@media (max-width: 991.98px) {
  .layout-page__main {
    padding-top: 120px;
  }
}
@media (max-width: 767.98px) {
  .layout-page__main {
    padding-top: 100px;
    min-height: 30vh;
  }
}
@media (max-width: 575.98px) {
  .layout-page__main {
    padding-top: 90px;
  }
}

/* ===== Container & rows ===== */
@media (max-width: 991.98px) {
  .layout-page .container,
  .layout-page .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .layout-page .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  .layout-page .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 575.98px) {
  .layout-page .container,
  .layout-page .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
  .layout-page .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  .layout-page .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===== Responsive typography ===== */
@media (max-width: 767.98px) {
  .layout-page h1 { font-size: 26px !important; line-height: 1.2; }
  .layout-page h2 { font-size: 22px !important; }
  .layout-page h3 { font-size: 20px !important; }
  .layout-page h4 { font-size: 18px !important; }
  .layout-page h5 { font-size: 16px !important; }
  .layout-page h6 { font-size: 14px !important; }
  .layout-page p { font-size: 15px; line-height: 1.5; }
  .section-title h2 { font-size: 22px !important; margin-bottom: 20px; }
  .section-title { margin-bottom: 24px; }
  .saf_about_title { font-size: 22px !important; }
  .saf_about_text { font-size: 15px; }
  .layout-page__main .saf_about_wrapper,
  .layout-page__main .latest-blog.spad,
  .layout-page__main section.spad {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .layout-page__main .benefit-main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .latest-text h4 { font-size: 16px !important; }
  .benefit-main .sb-text h6 { font-size: 14px; }
}
@media (max-width: 575.98px) {
  .layout-page h1 { font-size: 22px !important; }
  .layout-page h2 { font-size: 20px !important; }
  .layout-page h3 { font-size: 18px !important; }
  .layout-page h4 { font-size: 16px !important; }
  .section-title h2 { font-size: 20px !important; }
  .section-title { margin-bottom: 20px; }
  .saf_about_title { font-size: 20px !important; }
  .layout-page__main .saf_about_wrapper,
  .layout-page__main .latest-blog.spad,
  .layout-page__main section.spad {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .layout-page__main .layout-page__module-row {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ===== Header (layout1) ===== */
.fixed_header,
.saf_header_wrapper,
.saf_main_menu {
  max-width: 100%;
}
@media (max-width: 767.98px) {
  .saf_logo img {
    max-width: 100px;
    height: auto;
  }
  .managenewlogo img {
    max-height: 50px;
  }
  .menu_btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }
}
@media (max-width: 575.98px) {
  .saf_logo img {
    max-width: 90px;
  }
  .mobilesetlogo,
  .mobilesetlogosp {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== Hero slider ===== */
@media (max-width: 767.98px) {
  .hero__slide-inner .hero__title,
  .saf_hero_title { font-size: 20px !important; }
  .hero__slide-inner .hero__desc,
  .saf_hero_desc { font-size: 14px; }
  .hero__pagination { bottom: 0.5rem; }
  .hero__next,
  .hero__prev {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}
@media (max-width: 575.98px) {
  .hero__slide-inner .hero__title,
  .saf_hero_title { font-size: 18px !important; }
  .hero__next { right: 0.5rem; }
  .hero__prev { left: 0.5rem; }
}

/* ===== Latest blog ===== */
@media (max-width: 767.98px) {
  .single-latest-blog {
    margin-bottom: 1.5rem;
  }
  .latest-blog__img-placeholder {
    height: 160px;
    min-height: 160px;
  }
  .single-latest-blog img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }
}
@media (max-width: 575.98px) {
  .latest-blog .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== Benefit section ===== */
@media (max-width: 767.98px) {
  .benefit-items .single-benefit {
    margin-bottom: 1.25rem;
    text-align: center;
  }
  .benefit-items .single-benefit .sb-icon {
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 575.98px) {
  .benefit-main .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
}

/* ===== Buttons & links ===== */
@media (max-width: 767.98px) {
  .primary-btn,
  .site-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
@media (pointer: coarse) {
  .hero__next,
  .hero__prev,
  .menu_btn,
  .primary-btn,
  .saf_nav_items ul li a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
  }
}

/* ===== Footer ===== */
@media (max-width: 767.98px) {
  .saf_footer_wrapper .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .saf_footer_wrapper .row [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  .saf_copyright_wrapper .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .saf_copyright_wrapper p,
  .saf_copyright_wrapper a {
    font-size: 13px;
  }
}
@media (max-width: 575.98px) {
  .saf_footer_title h4,
  .saf_footer_heading {
    font-size: 16px;
  }
}

/* ===== Page title (inner pages) ===== */
@media (max-width: 767.98px) {
  .saf_pagetitle {
    padding: 24px 0 !important;
  }
  .saf_pagetitle .pagetitleheading,
  .saf_pagetitle h2 {
    font-size: 22px !important;
  }
}
@media (max-width: 575.98px) {
  .saf_pagetitle {
    padding: 20px 0 !important;
  }
  .saf_pagetitle .pagetitleheading,
  .saf_pagetitle h2 {
    font-size: 18px !important;
  }
}

/* ===== Content modules ===== */
@media (max-width: 767.98px) {
  .content-module--body-1 .saf_about_wrapper,
  .content-module .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 575.98px) {
  .layout-page__module-row .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/* ===== Forms (contact, checkout, etc.) ===== */
@media (max-width: 575.98px) {
  .layout-page input[type="text"],
  .layout-page input[type="email"],
  .layout-page input[type="password"],
  .layout-page select,
  .layout-page textarea {
    font-size: 16px;
  }
}

/* ===== Scroll to top ===== */
@media (max-width: 767.98px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    right: 12px;
    bottom: 12px;
  }
}

/* ===== Minicart dropdown (layout1) ===== */
@media (max-width: 767.98px) {
  .minicart .cart-hover,
  .cart-icon .cart-hover {
    max-width: calc(100vw - 24px);
    width: 300px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  .minicart .cart-hover .select-items table { width: 100%; }
  .minicart .cart-hover .si-pic img { max-width: 60px; }
  .minicart .cart-hover .select-button .btn { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 575.98px) {
  .minicart .cart-hover,
  .cart-icon .cart-hover {
    width: 280px;
    max-width: calc(100vw - 20px);
  }
}

/* ===== Product grids & sliders (layout1) ===== */
@media (max-width: 767.98px) {
  .product-slider .owl-stage-outer,
  .product-slider .product-item {
    overflow: hidden;
    max-width: 100%;
  }
  .product-slider .product-item img,
  .img-slider-max {
    max-width: 100%;
    height: auto;
  }
  .saf_products_wrapper .product-item,
  .women-banner .product-item {
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 575.98px) {
  .saf_products_wrapper .col-sm-6,
  .women-banner .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== Cart / checkout tables ===== */
@media (max-width: 767.98px) {
  .layout-page .table-responsive,
  .layout-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .layout-page .table-responsive table,
  .layout-page .cart-table table {
    min-width: 320px;
  }
}
