/* Parca Hammadde — Faz 1 mobil menu ve hiz duzeltmesi, v1.0.0 */

html,
body.ph-phase1-fix {
  max-width: 100%;
  overflow-x: hidden;
}

#ph-hammaddeler {
  scroll-margin-top: 28px;
}

.ph-mobile-nav,
.ph-mobile-menu-toggle {
  display: none !important;
}

/* Slider ve bannerlar sayfa genisligini asmasin. */
body.ph-phase1-fix.common-home #slider,
body.ph-phase1-fix.common-home #slider > div,
body.ph-phase1-fix.common-home .camera_wrap,
body.ph-phase1-fix.common-home .rev_slider_wrapper,
body.ph-phase1-fix.common-home .swiper-container,
body.ph-phase1-fix.common-home .owl-carousel {
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 991px) {
  body.ph-phase1-fix header.header-type-12 #top > .background > .pattern > .container {
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }

  body.ph-phase1-fix.ph-compact-header header.header-type-12 #top > .background > .pattern > .container > .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-height: 80px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
  }

  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 92px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-left .logo,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-left .logo img {
    width: clamp(112px, 31vw, 172px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 58px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body.ph-phase1-fix .ph-inline-nav {
    display: none !important;
  }

  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ph-phase1-fix .ph-header-icon,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right .my-account,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right .cart-heading {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #183d4a !important;
    background: #f0f7f6 !important;
    border: 1px solid #d9e9e6 !important;
    border-radius: 9px !important;
  }

  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right .my-account-with-logout,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #cart_block {
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
  }

  body.ph-phase1-fix .ph-mobile-menu-toggle {
    display: grid !important;
    cursor: pointer;
    font-size: 18px !important;
    appearance: none;
    -webkit-appearance: none;
  }

  body.ph-phase1-fix.ph-mobile-menu-open .ph-mobile-menu-toggle {
    color: #fff !important;
    background: #008f83 !important;
    border-color: #008f83 !important;
  }

  body.ph-phase1-fix header.header-type-12 .megaMenuToggle,
  body.ph-phase1-fix header.header-type-12 .megamenu-background {
    display: none !important;
  }

  body.ph-phase1-fix .ph-mobile-nav {
    position: relative;
    z-index: 1000;
    display: none !important;
    width: 100%;
    padding: 10px 12px 15px;
    background: #fff;
    border-top: 1px solid #e2ecea;
    border-bottom: 1px solid #d9e6e4;
    box-shadow: 0 14px 34px rgba(11, 47, 62, .13);
  }

  body.ph-phase1-fix.ph-mobile-menu-open .ph-mobile-nav {
    display: block !important;
    animation: phPhase1MenuOpen .18s ease-out both;
  }

  body.ph-phase1-fix .ph-mobile-nav__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.ph-phase1-fix .ph-mobile-nav__main > a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 13px;
    color: #173a48 !important;
    background: #f4f8f8;
    border: 1px solid #e1ecea;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
  }

  body.ph-phase1-fix .ph-mobile-nav__main > a:first-child,
  body.ph-phase1-fix .ph-mobile-nav__main > a:hover,
  body.ph-phase1-fix .ph-mobile-nav__main > a:focus {
    color: #fff !important;
    background: #008f83;
    border-color: #008f83;
  }

  body.ph-phase1-fix .ph-mobile-nav__categories {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    padding: 1px 0 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body.ph-phase1-fix .ph-mobile-nav__categories a {
    flex: 0 0 auto;
    padding: 8px 11px;
    color: #45606a !important;
    background: #fff;
    border: 1px solid #dce8e6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none !important;
  }

  body.ph-phase1-fix .ph-search-popover {
    position: fixed !important;
    top: 88px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  body.ph-phase1-fix.common-home #slider {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.ph-phase1-fix.common-home #slider img,
  body.ph-phase1-fix.common-home #slider .owl-item img,
  body.ph-phase1-fix.common-home #slider .swiper-slide img,
  body.ph-phase1-fix.common-home #slider .cameraSlide img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(190px, 53vw, 270px) !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.ph-phase1-fix.common-home #slider .tp-bgimg,
  body.ph-phase1-fix.common-home #slider .cameraSlide {
    max-height: 270px !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  body.ph-phase1-fix #ph-whatsapp-contact {
    right: 14px !important;
    bottom: 14px !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border: 2px solid #fff;
    border-radius: 50% !important;
    box-shadow: 0 9px 24px rgba(12, 61, 43, .25) !important;
  }

  body.ph-phase1-fix #ph-whatsapp-contact span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }

  body.ph-phase1-fix #ph-whatsapp-contact i {
    margin: 0 !important;
    font-size: 27px !important;
  }
}

@media (max-width: 390px) {
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #top > .background > .pattern > .container {
    width: calc(100% - 16px) !important;
  }

  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-left .logo,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-left .logo img {
    width: clamp(98px, 29vw, 122px) !important;
  }

  body.ph-phase1-fix .ph-header-icon,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right .my-account,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right .cart-heading,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #header-right .my-account-with-logout,
  body.ph-phase1-fix.ph-compact-header header.header-type-12 #cart_block {
    flex-basis: 35px !important;
    width: 35px !important;
    min-width: 35px !important;
    height: 35px !important;
  }
}

@keyframes phPhase1MenuOpen {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.ph-phase1-fix .ph-mobile-nav,
  body.ph-phase1-fix #ph-whatsapp-contact {
    animation: none !important;
    transition: none !important;
  }
}
