/* =========================
   Global small tweaks
   ========================= */
.swiper { border-radius: 8px !important; }

/* submenu arrow (fix comment style) */
.mm-btn_next:after{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  font-size:10px;
  color:#330006 !important;
}

/* =========================
   Breadcrumb styling + hide on specific pages
   ========================= */
.tbay-breadcrumb.breadcrumbs-image .breadscrumb-inner h1{
  color:#fff;
  margin:148px 0 16px;
}
.tbay-breadcrumb.breadcrumbs-image .breadscrumb-inner .breadcrumb li,
.tbay-breadcrumb.breadcrumbs-image .breadscrumb-inner .breadcrumb li a,
.tbay-breadcrumb.breadcrumbs-image .breadscrumb-inner .breadcrumb > li + li::before{
  color:#fff !important;
}
.tbay-breadcrumb.breadcrumbs-image .breadscrumb-inner .breadcrumb > li + li::before{
  background:#fff !important;
}

/* Hide breadcrumb on selected pages */
.page-id-25996 .breadscrumb-inner,
.page-id-26001 .breadscrumb-inner,
.page-id-25995 .breadscrumb-inner,
.page-id-26000 .breadscrumb-inner,
.page-id-26003 .breadscrumb-inner{
  display:none !important;
}

/* =========================
   Form input border
   ========================= */
.post-password-form input[type="password"],
.woocommerce .input-text{
  border:1px solid !important;
  min-height:40px !important;
}

/* =========================
   Hide unnecessary elements
   ========================= */
.cartflows_step-template .add_gift_card_form{ display:none !important; }
body .site-content .single-post .entry-meta-list .author-info{ display:none !important; }

/* =========================
   Category scroll cards (archive)
   ========================= */
.archive-shop .term-description .cat-scroll{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:10px 6px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.archive-shop .term-description .cat-scroll::-webkit-scrollbar{ display:none; }

.archive-shop .term-description .cat-card{
  flex:0 0 140px;
  text-decoration:none;
  color:#111;
  scroll-snap-align:start;
  text-align:center;
}
.archive-shop .term-description .cat-card img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:100px;
  display:block;
  margin:0 !important;
}
.archive-shop .term-description .cat-card span{
  display:block;
  font-weight:500;
  font-size:16px;
  margin-top:5px;
}
.archive-shop .term-description .eye-cat img{ transition:transform .3s ease; }
.archive-shop .term-description .eye-cat:hover img{ transform:scale(1.05); }

/* =========================
   Elementor image box title tweak (desktop + mobile)
   ========================= */
.elementor-92418 .elementor-element.elementor-element-442a5b9 .elementor-image-box-title{
  margin:0 !important;
  font-size:16px;
}

/* =========================
   Swiper hide-before-init (keep only safe parts)
   ========================= */
.elementor-element-5e92c8c .swiper:not(.swiper-initialized),
.elementor-element-5e92c8c .elementor-loop-container:not(.swiper-initialized),
.elementor-element-5e92c8c .e-widget-swiper:not(.swiper-initialized){
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.elementor-element-5e92c8c .swiper.swiper-initialized,
.elementor-element-5e92c8c .elementor-loop-container.swiper-initialized,
.elementor-element-5e92c8c .e-widget-swiper.swiper-initialized{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .2s ease;
}

/* =========================
   iOS Safari FIX (merged + single block)
   ========================= */
@supports (-webkit-touch-callout:none){
  html{ -webkit-text-size-adjust:100%; }

  .elementor-section,
  .elementor-container,
  .elementor-widget,
  .elementor-widget-wrap,
  .swiper,
  .swiper-wrapper,
  .swiper-slide{
    height:auto !important;
    min-height:0 !important;
  }

  .elementor-section{ overflow-anchor:none; }

  .elementor-widget-loop-carousel .swiper-wrapper,
  .swiper-wrapper{
    align-items:stretch !important;
    transform:translate3d(0,0,0);
  }

  .elementor-widget-loop-carousel img,
  .swiper-slide img{
    width:100% !important;
    height:auto !important;
    display:block;
  }

  .swiper-slide{ position:relative; }
}

@supports (padding: env(safe-area-inset-bottom)){
  body{ padding-bottom:env(safe-area-inset-bottom); }
}

/* =========================
   Product section slider (Slick) - peek fix
   ========================= */
.product-section{ overflow:hidden; }
.product-section .slick-list{ overflow:visible !important; }
.product-section .slick-track{ padding-right:28px; }
.product-section .slick-slide:last-child{ margin-right:-28px; }

#chaty-widget-0 .chaty-i-trigger .chaty-cta-button button {
    background-color: #EA088C !important;
}

/* =========================
   Mobile responsive fixes
   ========================= */
@media (max-width: 782px){
  body.admin-bar.tbay-homepage-demo .wrapper-container{
    padding-top:100px !important;
  }
}

@media (max-width: 767px){
  .woocommerce-products-header{ display:block !important; }
  .archive-shop .term-description .cat-scroll{ margin:15px; }

  .elementor-92418 .elementor-element.elementor-element-442a5b9 .elementor-image-box-title{
    font-size:12px !important;
  }
  .elementor-92418 .elementor-element.elementor-element-442a5b9.elementor-position-top .elementor-image-box-img{
    margin-bottom:-10px !important;
  }

  /* Term banner mobile */
  .hara-term-banner{
    min-height:120px;
    background-repeat:no-repeat;
    margin-bottom:40px;
    display:flex;
    align-items:center;
  }

  /* Mobile: product title max 2 lines */
  .products .product .woocommerce-loop-product__title,
  .products .product h2,
  .products .product h3{
    font-size:13px;
    line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:normal;
  }

  /* Slick peek mobile */
  .product-section .slick-track{ padding-right:16px; }
  .product-section .slick-slide:last-child{ margin-right:-16px; }
}

@media (max-width: 768px){
  #okapi-wasb-button{
    bottom:60px !important;
    right:10px !important;
  }
	
	#chaty-widget-0 .chaty-widget {
			bottom: 60px !important;
	}
}

@media (max-width: 1199px){
  .tbay-search-mobile .form-group .input-group{
    border:1px solid #EA088C !important;
    border-radius:8px !important;
  }
  .tbay-search-mobile .form-group .input-group .button-group{
    border-radius:8px !important;
  }
  body .topbar-device-mobile{
    background:#EA088C;
    border-radius:0 0 8px 8px;
  }
  body .topbar-device-mobile i,
  body .topbar-device-mobile.active-home-icon .topbar-title{
    color:#ddd;
  }
}
