/**
* Theme Name: Bridey Child
* Description: This is a child theme of Bridey, generated by Merlin WP.
* Author: <a href="https://www.wpopal.com/">Opal Team</a>
* Template: bridey
* Version: 1.8.7
*/

/* Header main container — remove top/bottom padding */
.header-3 .header-container,
.container.header-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Logo size in header */
.site-header .custom-logo-link img,
.site-header .custom-logo-link .logo-light,
.site-header .custom-logo-link .logo-dark {
  width: 150px;
  height: auto;
  max-width: 150px;
}

/* Desktop sticky header — logo half size */
@media (min-width: 768px) {
  .header-sticky .custom-logo-link img,
  .header-sticky .custom-logo-link .logo-light,
  .header-sticky .custom-logo-link .logo-dark {
    width: 75px;
    max-width: 75px;
  }

  .header-sticky .site-branding {
    min-width: 75px;
  }
}

/* Mobile — logo half size (static + sticky) */
@media (max-width: 767px) {
  .site-header .custom-logo-link img,
  .site-header .custom-logo-link .logo-light,
  .site-header .custom-logo-link .logo-dark,
  .header-sticky .custom-logo-link img,
  .header-sticky .custom-logo-link .logo-light,
  .header-sticky .custom-logo-link .logo-dark {
    width: 75px;
    max-width: 75px;
  }

  .header-sticky .site-branding {
    min-width: 75px;
  }
}

/* Disable mobile bottom footer bar */
.bridey-handheld-footer-bar {
  display: none !important;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */

.bergamo-wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bergamo-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.bergamo-wa-float svg {
  display: block;
}

@media (max-width: 767px) {
  .bergamo-wa-float {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* =============================================
   LIGHT MOBILE MENU REDESIGN
   ============================================= */

.bergamo-mobile-nav-light {
  background: #ffffff !important;
  color: #1a1a1a !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

/* Header: logo + close button */
.bergamo-mnav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.bergamo-mnav-logo .custom-logo-link img,
.bergamo-mnav-logo .logo-light,
.bergamo-mnav-logo .logo-dark {
  width: 90px !important;
  max-width: 90px !important;
  height: auto !important;
}

.bergamo-mnav-logo .logo-dark {
  display: none !important;
}

.bergamo-mnav-logo .logo-light {
  display: block !important;
}

.bergamo-mnav-close {
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #1a1a1a !important;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.bergamo-mnav-close:hover {
  background: #e8e8e8;
}

/* Navigation links */
.bergamo-mnav-links {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.bergamo-mobile-nav-light .handheld-navigation ul,
.bergamo-mobile-nav-light .handheld-navigation ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bergamo-mobile-nav-light .handheld-navigation ul li {
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
}

.bergamo-mobile-nav-light .handheld-navigation ul li a {
  display: block;
  padding: 15px 24px;
  color: #1a1a1a !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.bergamo-mobile-nav-light .handheld-navigation ul li a:hover,
.bergamo-mobile-nav-light .handheld-navigation ul li.current-menu-item > a,
.bergamo-mobile-nav-light .handheld-navigation ul li.current_page_item > a {
  color: #c0392b !important;
  padding-left: 30px;
}

/* Sub-menu indent */
.bergamo-mobile-nav-light .handheld-navigation ul ul li a {
  padding-left: 38px;
  font-size: 14px;
  color: #555 !important;
}

/* Contact + social in one row */
.bergamo-mnav-contacts {
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.bergamo-mnav-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: #1a1a1a;
}

.bergamo-mnav-phone i {
  display: none;
}

.bergamo-mnav-phone-label {
  display: block;
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.bergamo-mnav-phone-number {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  white-space: nowrap;
}


.bergamo-mnav-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #1a1a1a !important;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bergamo-mnav-social-link:hover {
  background: #c0392b;
  color: #fff !important;
}

/* =============================================
   Single product: quantity + «Купить» в одну строку (30% / 70%)
   Bridey ставит clearfix ::before/::after на form.cart — во flex они
   становятся отдельными элементами и переносят кнопку на вторую строку.
   ============================================= */

.single-product div.product form.cart:not(.variations_form):not(.grouped_form)::before,
.single-product div.product form.cart:not(.variations_form):not(.grouped_form)::after,
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form)::before,
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form)::after {
  display: none !important;
  content: none !important;
}

.single-product div.product form.variations_form.cart::before,
.single-product div.product form.variations_form.cart::after,
.woocommerce div.product form.variations_form.cart::before,
.woocommerce div.product form.variations_form.cart::after {
  display: none !important;
  content: none !important;
}

.single-product div.product form.cart:not(.variations_form):not(.grouped_form),
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 10px;
}

.single-product div.product form.cart:not(.variations_form):not(.grouped_form) > .quantity,
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) > .quantity {
  flex: 0 0 30% !important;
  width: 30% !important;
  max-width: 30% !important;
  margin: 0 !important;
  min-width: 0;
  align-self: center;
}

.single-product div.product form.cart:not(.variations_form):not(.grouped_form) > .single_add_to_cart_button,
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) > .single_add_to_cart_button {
  flex: 1 1 70% !important;
  width: 70% !important;
  max-width: none !important;
  margin-top: 0 !important;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.single-product div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  position: relative;
}

.single-product div.product form.cart .woocommerce-variation-add-to-cart > .quantity,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart > .quantity {
  flex: 0 0 30% !important;
  width: 30% !important;
  max-width: 30% !important;
  margin: 0 !important;
  min-width: 0;
  align-self: center;
}

.single-product div.product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
  flex: 1 1 70% !important;
  width: 70% !important;
  max-width: none !important;
  margin-top: 0 !important;
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* =============================================
   Attributes under Add to Cart (desktop only)
   ============================================= */
/* Attributes under Add to Cart (desktop only) */
.bergamo-product-attributes-under-cart {
  margin-top: 14px;
  width: 100%;
}

.bergamo-product-attributes-under-cart table.shop_attributes {
  margin: 0;
  font-size: 13px;
}

.bergamo-product-attributes-under-cart table.shop_attributes th,
.bergamo-product-attributes-under-cart table.shop_attributes td {
  padding: 6px 0;
}

@media (max-width: 991px) {
  .bergamo-product-attributes-under-cart {
    display: none;
  }
}

/* Если JS галереи не докрутился, не оставлять блок невидимым (Woo ставит opacity:0 до flexslider). */
.single-product .woocommerce-product-gallery {
  opacity: 1 !important;
}

/* Навигация PREV / NEXT между товарами (Bridey) */
.bridey-product-pagination-wrap {
  display: none !important;
}