/* =========================================================
   Biogold Industries - responsive bug fixes + WhatsApp chatbot
   Loaded after style.css. Does not change the design, only
   removes fixed sizes / overflow so every device renders well.
   ========================================================= */

/* ---------- Global safety ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; }
.main-wrapper img, .carousel-item img { height: auto; }
iframe { max-width: 100%; }
.table td, .table th { word-break: break-word; }

/* ---------- Header ---------- */
.header-logo-link { display: flex; align-items: center; text-decoration: none; }
.header-logo .logo-icon { width: 64px; height: 64px; flex: 0 0 auto; margin: 0; max-width: none; }
.header-logo .logo-text { width: auto; height: 44px; max-width: calc(100vw - 150px); margin: 0 0 0 10px; object-fit: contain; }
.header-middle_area .contact-info { display: flex; align-items: center; }
.header-middle_area .contact-info_icon { padding-right: 10px; font-size: 26px; line-height: 1; }
.header-middle_area .contact-info_icon i { padding-top: 0 !important; }
.header-middle_area .contact-info_content span { display: block; }
.header-middle_area .contact-info_content a { word-break: break-all; }

.lang-col { text-align: right; }
.lang-col .gflag { display: inline-block; width: 24px; height: 24px; }
.lang-select { display: block; width: 100%; max-width: 100%; margin-top: 4px; padding: 2px 4px; font-size: 13px; }

/* hamburger */
.mobile-menu-toggle { display: inline-block; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 4px; background: #60b102; cursor: pointer; position: relative; }
.mobile-menu-toggle span { display: block; height: 3px; margin: 4px 0; background: #fff; border-radius: 2px; }
.mobile-menu-toggle:focus { outline: 2px solid #333; outline-offset: 2px; }

/* the sticky desktop header must never appear on phones/tablets */
@media (max-width: 991px) {
  .header-bottom_area.header-sticky,
  .header-main_area .header-sticky.sticky { display: none !important; }
  .header-middle_area { border-bottom: 1px solid #eee; }
  .header-bottom_area { padding: 8px 0; }
  .category-menu .category-heading { width: 100%; }
}
@media (max-width: 575px) {
  .header-logo .logo-icon { width: 48px; height: 48px; }
  .header-logo .logo-text { height: 34px; max-width: calc(100vw - 130px); }
  .category-menu .category-heading h2 span { font-size: 13px; }
}

/* mobile off-canvas menu */
.mobile-menu_wrapper .offcanvas-menu-inner { max-width: 86vw; background: #fff; }
.mobile-menu_wrapper .offcanvas-navigation { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.offcanvas-navigation .mobile-menu > li > a > i { display: none; }
.mobile-menu_wrapper.open .offcanvas-menu-inner { padding-top: 70px; }
.mobile-menu_wrapper.open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9990; }
.offcanvas-navigation .mobile-menu { margin-right: 0; padding-right: 0; }
.offcanvas-navigation .mobile-menu li > a { display: block; padding: 12px 45px 12px 15px; font-weight: 600; color: #333; }
.offcanvas-navigation .mobile-menu li > .menu-expand { position: absolute; right: 0; top: 0; width: 45px; height: 46px; line-height: 46px; text-align: center; cursor: pointer; z-index: 2; }
.offcanvas-navigation .mobile-menu li.menu-open > .menu-expand i { transform: rotate(90deg); }
.offcanvas-navigation .mobile-menu .umino-megamenu { display: none; padding: 0 0 0 15px; margin: 0; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: auto; }
.offcanvas-navigation .mobile-menu .umino-megamenu ul { padding: 0; }
.offcanvas-navigation .mobile-menu .umino-megamenu li { width: 100%; border-bottom: 1px solid #f1f1f1; }
.offcanvas-navigation .mobile-menu .umino-megamenu li > a { font-weight: 400; font-size: 14px; padding: 10px 15px; }
.offcanvas-navigation .mobile-menu .umino-megamenu > li > ul > li:last-child { border-bottom: 0; }
body.menu-locked { overflow: hidden; }

/* ---------- Home slider ---------- */
.hero-slider { width: 100%; }
.umino-slider_area .container-fluid { padding-left: 15px; padding-right: 15px; }
#demo .carousel-item img { width: 100%; aspect-ratio: 1263 / 500; object-fit: contain; background: #fff; }
#demo .carousel-indicators { margin-bottom: 8px; }
@media (max-width: 575px) {
  #demo .carousel-control-prev-icon, #demo .carousel-control-next-icon { width: 20px; height: 20px; }
}

/* ---------- Shipping strip ---------- */
.shipping-item { height: 100%; }
@media (max-width: 575px) {
  .umino-shipping_area .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
}

/* ---------- Promo banners ---------- */
.promo-col { margin-bottom: 20px; }
.promo-item { display: flex; align-items: center; height: 100%; background: #fff; box-shadow: 0 0 5px #6d7077; overflow: hidden; }
.promo-item .banner-img { flex: 0 0 45%; max-width: 45%; }
.promo-item .banner-img a { display: block; }
.promo-item .banner-img img { width: 100%; height: auto; display: block; }
.promo-item .banner-content.promo-content { position: static !important; transform: none !important; width: auto !important; flex: 1 1 auto; padding: 15px; left: auto !important; }
.promo-item .banner-content h4 { font-size: 18px; line-height: 1.3; }
@media (max-width: 575px) {
  .promo-item .banner-img { flex-basis: 40%; max-width: 40%; }
  .promo-item .banner-content h4 { font-size: 14px; }
}
.umino-banner_area { padding-top: 40px; }

/* ---------- Product sliders / cards ---------- */
/* slick makes the .col-* wrappers the slides themselves: let slick control their width */
.umino-product_slider > .slick-list > .slick-track > [class*="col-"],
.umino-product_slider-2 > .slick-list > .slick-track > [class*="col-"] { flex: none; max-width: none; float: left; padding-left: 10px; padding-right: 10px; }
.umino-product_slider .slick-slide, .umino-product_slider-2 .slick-slide { height: auto; }
.slide-item { height: 100%; }
.single-product { min-height: 370px; height: 100%; }
.single-product .product-img { text-align: center; }
.single-product .product-img img.primary-img { height: 200px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; display: block; }
.single-product .product-name { overflow-wrap: anywhere; }
.single-product .rating-box.card-more { border-top: 1px solid #c7c3c3; padding-top: 10px; margin-top: 25px; }
.single-product .rating-box.card-more h5 { margin: 0; }
.single-product .rating-box.card-more a { color: inherit; display: block; }
.single-product .rating-box.card-more a:hover { color: #60b102; }
.shop-product-wrap > [class*="col-"] { margin-bottom: 20px; }
.shop-product-wrap .slide-item, .shop-product-wrap .single-product { height: 100%; }
.umino-list-product_area .col-lg-3 { margin-bottom: 20px; }
.umino-list-product_area .single-product .product-img img { height: 130px; width: auto; max-width: 100%; object-fit: contain; }
.umino-list-product_area .single-product { min-height: 0; }

/* ---------- Get in touch ---------- */
.touch-img { border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,.6); max-width: 60%; width: 270px; display: block; margin: 0 auto; }
.contact-form .form-control { width: 100%; }
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------- Inner pages ---------- */
.sp-large_img img, .zoompro { max-width: 100%; height: auto; }
.sp-content .table { width: 100%; }
.sp-area .sp-nav .row > [class*="col-"] { margin-bottom: 20px; }
.contact-main-page img, .about-us_img img, .certificate-img img, .login-register-area img { max-width: 100%; height: auto; }
.google-map_area iframe { width: 100%; height: 450px; display: block; }
@media (max-width: 575px) {
  .google-map_area iframe { height: 300px; }
}
.contact-form-content .btnSubmit, .contact-form input.btnSubmit { width: 28% !important; min-width: 130px; }
@media (max-width: 575px) {
  .contact-form-content .btnSubmit, .contact-form input.btnSubmit { width: 100% !important; }
}
.contact-page-side-content p, .contact-page-side-content a { overflow-wrap: anywhere; }
.breadcrumb-content ul { flex-wrap: wrap; }
.breadcrumb-content li { overflow-wrap: anywhere; }
.umino-sidebar_categories { margin-bottom: 25px; }

/* ---------- Footer ---------- */
.footer-top_area .newsletter-info, .footer-top_area a { text-align: center; }
.umino-footer_area .footer-middle_area [class*="col-"] { margin-bottom: 20px; }
@media (max-width: 991px) {
  .footer-bottom_area .col-md-4 { margin-top: 10px !important; margin-left: 0 !important; text-align: left; }
  .footer-bottom_area .copyright { text-align: left; }
}
@media (max-width: 767px) {
  .footer-top_area .col-lg-6 { text-align: center !important; margin: 5px 0; }
  .footer-bottom_area .col-md-8, .footer-bottom_area .col-md-4 { text-align: center; }
}

/* keep the scroll-to-top button clear of the chat launcher */
#scrollUp, .scroll-top { bottom: 90px !important; right: 22px !important; }

/* =========================================================
   WhatsApp chatbot
   ========================================================= */
.bgc-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 10000; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.bgc-launcher svg { width: 32px; height: 32px; fill: #fff; }
.bgc-launcher:hover { background: #1ebe5b; }
.bgc-launcher .bgc-badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #e53935; border: 2px solid #fff; }
.bgc-tip { position: fixed; right: 88px; bottom: 30px; z-index: 10000; background: #fff; color: #333; padding: 8px 12px; border-radius: 18px; font: 600 13px/1.3 Arial, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.25); max-width: 200px; }
.bgc-tip::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left-color: #fff; border-right: 0; }

.bgc-window { position: fixed; right: 18px; bottom: 90px; z-index: 10001; width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35); display: none; flex-direction: column; overflow: hidden; font-family: Arial, Helvetica, sans-serif; }
.bgc-window.bgc-open { display: flex; }
.bgc-head { background: #075e54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.bgc-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff url(../images/logo111.png) center/cover no-repeat; flex: 0 0 auto; }
.bgc-title { flex: 1; min-width: 0; }
.bgc-title b { display: block; font-size: 15px; }
.bgc-title small { font-size: 12px; opacity: .85; }
.bgc-close { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bgc-body { flex: 1; overflow-y: auto; padding: 14px; background: #ece5dd; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.bgc-msg { max-width: 85%; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.12); overflow-wrap: anywhere; white-space: pre-line; }
.bgc-msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 2px; color: #222; }
.bgc-msg.user { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 2px; color: #222; }
.bgc-typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 10px; align-self: flex-start; }
.bgc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: bgcBlink 1s infinite; }
.bgc-typing i:nth-child(2) { animation-delay: .15s; }
.bgc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bgcBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bgc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.bgc-chip { border: 1px solid #075e54; color: #075e54; background: #fff; border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.bgc-chip:hover { background: #075e54; color: #fff; }
.bgc-form { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; border-top: 1px solid #ddd; }
.bgc-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid #ccc; border-radius: 21px; padding: 0 14px; font-size: 16px; /* 16px stops iOS zoom */ background: #fff; color: #222; }
.bgc-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #25d366; color: #fff; cursor: pointer; font-size: 18px; flex: 0 0 auto; }
.bgc-form button:disabled, .bgc-form input:disabled { opacity: .5; cursor: not-allowed; }
.bgc-send-wa { display: inline-block; background: #25d366; color: #fff !important; padding: 10px 16px; border-radius: 20px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.bgc-restart { background: none; border: 0; color: #075e54; text-decoration: underline; cursor: pointer; font-size: 13px; align-self: flex-start; padding: 0; }
@media (max-width: 480px) {
  .bgc-window { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  .bgc-launcher { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .bgc-tip { display: none; }
  #scrollUp, .scroll-top { bottom: 80px !important; right: 18px !important; }
}

/* ---------- "All Products" category dropdown on phones/tablets ---------- */
@media (max-width: 991px) {
  .category-menu { position: relative; }
  .category-menu .category-menu-list { position: absolute; left: 0; right: 0; width: auto; max-width: 100%; z-index: 1000; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
  .category-menu .category-menu-list > ul > li > a { display: block; padding-right: 40px; }
  .category-menu .cat-dropdown_menu,
  .category-menu .cat-dropdown_menu-2 { position: static !important; width: 100% !important; left: auto !important; right: auto !important; top: auto !important; visibility: visible !important; opacity: 1 !important; transform: none !important; box-shadow: none !important; padding: 0 0 0 15px !important; margin: 0; background: #f8f8f8; }
  .category-menu .cat-dropdown_menu li a { white-space: normal; display: block; padding: 8px 10px; }
  .category-menu .category-menu-list .menu-expand { position: absolute; right: 0; top: 0; width: 40px; height: 40px; cursor: pointer; }
}
body.menu-locked .bgc-launcher, body.menu-locked .bgc-tip { display: none; }
@media (max-width: 767px) { .footer-bottom_area { padding-bottom: 75px; } }
@media (max-width: 991px) { .zoomContainer, .zoomWindowContainer, .zoomLens { display: none !important; } }

/* ---------- Equal-height product cards ---------- */
.umino-product_slider .slick-track, .umino-product_slider-2 .slick-track { display: flex; align-items: stretch; }
.umino-product_slider .slick-slide, .umino-product_slider-2 .slick-slide { display: flex; float: none; height: auto; }
.slide-item { display: flex; width: 100%; }
.single-product { display: flex; flex-direction: column; width: 100%; }
.single-product .product-content, .single-product .product-desc_info { flex: 1 1 auto; display: flex; flex-direction: column; }
.single-product .rating-box.card-more { margin-top: auto; }
.single-product .product-name { margin-bottom: 15px; }
.umino-list-product_area .slide-item, .umino-list-product_area .single-product { display: block; }

/* ---------- SEO additions ---------- */
h1.seo-h1 { margin: 0; line-height: 1.3; font-family: inherit; }
.seo-faq { padding: 40px 0 10px; }
.seo-faq .faq-item { border: 1px solid #e3e3e3; border-radius: 4px; margin-bottom: 10px; background: #fff; }
.seo-faq .faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #333; list-style: none; position: relative; padding-right: 44px; }
.seo-faq .faq-item summary::-webkit-details-marker { display: none; }
.seo-faq .faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #60b102; }
.seo-faq .faq-item[open] summary::after { content: "\2212"; }
.seo-faq .faq-item[open] summary { border-bottom: 1px solid #eee; color: #60b102; }
.seo-faq .faq-item p { margin: 0; padding: 14px 18px; line-height: 1.7; }

/* desktop nav must stay on one line between 992px and 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .header-bottom_area .main-menu_area .main_nav > ul > li { padding-right: 14px !important; }
  .header-bottom_area .main-menu_area .main_nav > ul > li > a { font-size: 13px; }
  .header-bottom_area .main-menu_area .main_nav > ul { white-space: nowrap; }
}
