.baostyle-footer-widgets .widget:last-child {
  margin-bottom: 0;
}

.baostyle-footer-widgets.baostyle-footer-count-1 {
  justify-content: center;
}

.baostyle-footer-widgets.baostyle-footer-count-1 .widget {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.baostyle-home-hero-slider, .baostyle-site-main, .baostyle-site-footer {
  position: relative;
  z-index: 1;
}

.baostyle-container-custom, .baostyle-container-custom-content, .baostyle-container-custom-header, .baostyle-container-custom-footer {
  width: 100%;
  padding-left: max(var(--coolgar-container-gutter-x), .9rem);
  padding-right: max(var(--coolgar-container-gutter-x), .9rem);
}

.baostyle-slider-wrap, .baostyle-home-widgets, .baostyle-home-hero-widgets, .baostyle-footer-widgets {
  gap: 1.25rem;
}

.baostyle-footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.baostyle-footer-widgets .widget {
  margin-bottom: 0;
  padding: 0;
}

.baostyle-footer-widgets .menu, .baostyle-footer-widgets .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

/*.baostyle-footer-widgets .menu li + li, .baostyle-footer-widgets .sub-menu li + li {
  margin-top: .5rem;
}*/

.baostyle-footer-widgets a {
  color: inherit;
  text-decoration: none;
}

.baostyle-footer-widgets a:hover, .baostyle-footer-widgets a:focus {
  text-decoration: underline;
}

.baostyle-checkout-lite-header, .baostyle-checkout-lite-footer {
  background-color: var(--coolgar-color-surface);
}

@media (max-width: 991.98px) {
  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu .widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0;
    cursor: pointer;
  }

  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu .baostyle-footer-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    flex: 0 0 32px;
  }

  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu .baostyle-footer-menu-toggle i {
    font-size: 1rem;
    line-height: 1;
  }

  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu .menu {
    padding-top: 0.75rem;
    margin-bottom: 0;
  }

  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu .menu li + li {
    margin-top: 0.45rem;
  }
}

@media (min-width: 992px) {
  .baostyle-footer-widgets.baostyle-footer-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baostyle-footer-widgets.baostyle-footer-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .baostyle-footer-widgets.baostyle-footer-count-4, .baostyle-footer-widgets.baostyle-footer-count-5, .baostyle-footer-widgets.baostyle-footer-count-6, .baostyle-footer-widgets.baostyle-footer-count-7, .baostyle-footer-widgets.baostyle-footer-count-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .baostyle-footer-widgets-footer-main .widget.widget_nav_menu .baostyle-footer-menu-toggle {
    display: none !important;
  }
}

.baostyle-footer-top, .baostyle-footer-main, .baostyle-footer-bottom, .baostyle-footer-copyright {
  background-color: var(--coolgar-color-surface);
}




.baostyle-social-icons {
    display: flex;
    gap: 12px; /* 图标间距 */
}

.baostyle-social-icons a {
    display: inline-flex; /* 让icon居中 */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%; /* 圆形按钮 */
    background: var(--coolgar-color-bg);
    transition: all 0.3s ease;
}

.baostyle-social-icons a:hover {
    transform: translateY(-2px); /* 轻微浮起 */
}

.baostyle-social-icons i {
    font-size: 16px;
}






/* Footer bottom / copyright widgets */
.baostyle-footer-bottom .baostyle-footer-widgets,
.baostyle-footer-copyright .baostyle-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.baostyle-footer-bottom .baostyle-footer-widgets > .widget,
.baostyle-footer-copyright .baostyle-footer-widgets > .widget {
    flex: 1 1 0;
    min-width: 0;
}

/* First widget */
.baostyle-footer-bottom .baostyle-footer-widgets > .widget:first-child,
.baostyle-footer-copyright .baostyle-footer-widgets > .widget:first-child {
    text-align: left;
}

/* Middle widgets */
.baostyle-footer-bottom .baostyle-footer-widgets > .widget:not(:first-child):not(:last-child),
.baostyle-footer-copyright .baostyle-footer-widgets > .widget:not(:first-child):not(:last-child) {
    text-align: center;
}

/* Last widget */
.baostyle-footer-bottom .baostyle-footer-widgets > .widget:last-child,
.baostyle-footer-copyright .baostyle-footer-widgets > .widget:last-child {
    text-align: right;
}

/* Widget title spacing */
.baostyle-footer-bottom .widget-title,
.baostyle-footer-copyright .widget-title {
    margin-bottom: 10px;
}

/* Footer payment/security images */
.baostyle-footer-bottom .textwidget img,
.baostyle-footer-copyright .textwidget img {
    display: inline-block;
    vertical-align: middle;
    margin: 4px 3px;
    max-width: 100%;
    height: auto;
}

/* Mobile */
@media (max-width: 767.98px) {

    .baostyle-footer-bottom .baostyle-footer-widgets,
    .baostyle-footer-copyright .baostyle-footer-widgets {
        flex-direction: column;
        gap: 16px;
    }

    .baostyle-footer-bottom .baostyle-footer-widgets > .widget,
    .baostyle-footer-copyright .baostyle-footer-widgets > .widget {
        width: 100%;
        flex: 0 0 100%;
        text-align: center !important;
    }

    .baostyle-footer-bottom .widget-title,
    .baostyle-footer-copyright .widget-title,
    .baostyle-footer-bottom .textwidget,
    .baostyle-footer-copyright .textwidget {
        text-align: center;
    }

    .baostyle-footer-bottom .textwidget img,
    .baostyle-footer-copyright .textwidget img {
        margin: 5px 6px;
    }
}


/* Footer social icons alignment */
.baostyle-footer-bottom .baostyle-social-icons,
.baostyle-footer-copyright .baostyle-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.baostyle-footer-bottom .baostyle-footer-widgets > .widget:first-child .baostyle-social-icons,
.baostyle-footer-copyright .baostyle-footer-widgets > .widget:first-child .baostyle-social-icons {
    justify-content: flex-start;
}

.baostyle-footer-bottom .baostyle-footer-widgets > .widget:not(:first-child):not(:last-child) .baostyle-social-icons,
.baostyle-footer-copyright .baostyle-footer-widgets > .widget:not(:first-child):not(:last-child) .baostyle-social-icons {
    justify-content: center;
}

.baostyle-footer-bottom .baostyle-footer-widgets > .widget:last-child .baostyle-social-icons,
.baostyle-footer-copyright .baostyle-footer-widgets > .widget:last-child .baostyle-social-icons {
    justify-content: flex-end;
}

.baostyle-footer-bottom .baostyle-social-icons a,
.baostyle-footer-copyright .baostyle-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    text-decoration: none;
    line-height: 1;
}

.baostyle-footer-bottom .baostyle-social-icons i,
.baostyle-footer-copyright .baostyle-social-icons i {
    font-size: 18px;
    line-height: 1;
}

/* Mobile */
@media (max-width: 767.98px) {
    .baostyle-footer-bottom .baostyle-social-icons,
    .baostyle-footer-copyright .baostyle-social-icons {
        justify-content: center !important;
    }
}
