/* Bowbar Botiga base polish */
body {
  color: #171717;
}

a {
  color: #111;
}

.bowbar-delivery-bar {
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.bowbar-delivery-inner {
  max-width: 1240px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Keep coupon entry points hidden on cart and checkout */
.woocommerce-form-coupon-toggle,
.checkout_coupon,
.coupon,
.actions .coupon {
  display: none !important;
}

/* Product cards and WooCommerce basics */
ul.products li.product {
  background: #fff;
}

ul.products li.product img {
  background: #f7f5f2;
}

.price,
.woocommerce-Price-amount {
  font-weight: 800;
}

.single_add_to_cart_button,
.button,
.wp-element-button {
  border-radius: 0;
}

.single_add_to_cart_button {
  background: #111 !important;
  color: #fff !important;
}

.single-product .product_title {
  line-height: 1.28;
}

.single-product .woocommerce-product-gallery img {
  background: #f7f5f2;
}

/* Variation button UI keeps native selects available for WooCommerce */
.bowbar-enhanced-select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.bowbar-variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.bowbar-variation-button {
  min-width: 56px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bowbar-variation-button:hover,
.bowbar-variation-button.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.bowbar-variation-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* Cart and checkout restraint */
.woocommerce-cart table.shop_table,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields {
  border-color: #e7e1dc;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
#place_order {
  background: #111 !important;
  color: #fff !important;
}

.site-footer {
  color: #666;
}

/* Header and menu cleanup */
.site-header,
.botiga-site-header {
  border-bottom: 1px solid #eee8e2;
  background: #fff;
}

.site-header .site-branding,
.site-header .site-title {
  font-weight: 800;
  letter-spacing: 0;
}

.main-navigation a,
.site-header a {
  color: #111;
}

.main-navigation ul li a {
  font-size: 14px;
  font-weight: 600;
}

.header-elements,
.header-item {
  align-items: center;
}

.main-navigation .page-item-2,
.main-navigation .page-item-8,
.main-navigation .page-item-9,
.site-header .page_item.page-item-2,
.site-header .page_item.page-item-8,
.site-header .page_item.page-item-9 {
  display: none !important;
}

/* Footer brand note replaces the default theme credit */
.site-info,
.footer-credits,
.botiga-footer-credits,
.site-footer .site-info,
.site-footer a[href*="athemes.com"],
.site-footer a[href*="botiga"] {
  display: none !important;
}

.bowbar-custom-footer-note {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 22px 16px;
  font-size: 13px;
  line-height: 1.6;
}

/* Shop page polish for a small catalog */
.post-type-archive-product .site-main {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.post-type-archive-product .woocommerce-products-header {
  padding-top: 46px;
  padding-bottom: 26px;
  text-align: center;
}

.post-type-archive-product .woocommerce-products-header__title,
.post-type-archive-product .page-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
}

.post-type-archive-product .woocommerce-result-count {
  color: #555;
}

.post-type-archive-product .woocommerce-ordering select {
  min-height: 42px;
  border: 1px solid #ddd6cf;
  background-color: #fff;
}

.post-type-archive-product ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 28px;
  justify-content: start;
}

.post-type-archive-product ul.products li.product {
  border: 1px solid #eee7df;
  padding: 0 0 18px;
  background: #fff;
}

.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
  padding: 0 18px;
  font-size: 17px;
  line-height: 1.45;
}

.post-type-archive-product ul.products li.product .price {
  display: block;
  padding: 0 18px;
  color: #111;
}

/* Product detail polish */
.single-product div.product {
  max-width: 1110px;
  margin-left: auto;
  margin-right: auto;
}

.single-product .product_title,
.single-product h1.product_title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.single-product .price {
  font-size: 28px;
  font-weight: 900;
  color: #111;
}

.single-product .entry-summary,
.single-product div.product .summary {
  background: #fff;
  border: 1px solid #eee4dc;
  padding: 28px;
}

.woocommerce-product-details__short-description {
  background: #faf7f4;
  border: 1px solid #eee2da;
  padding: 16px 18px;
  line-height: 1.8;
  margin: 18px 0;
}

.single-product table.variations th,
.single-product table.variations td {
  display: block;
  padding: 0;
}

.single-product table.variations label {
  font-size: 13px;
  font-weight: 800;
}

.single-product .woocommerce-Tabs-panel img {
  display: block;
  max-width: 760px;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

.single_add_to_cart_button,
button.single_add_to_cart_button {
  min-height: 48px;
  font-weight: 800;
}

/* Cart and checkout polish */
.woocommerce-cart .cart-empty {
  max-width: 680px;
  margin: 44px auto 18px;
  padding: 34px 24px;
  border: 1px solid #eee7df;
  background: #fff;
  text-align: center;
  font-size: 18px;
}

.woocommerce-cart .return-to-shop {
  text-align: center;
}

.woocommerce-cart .return-to-shop .button {
  background: #111 !important;
  color: #fff !important;
  border-radius: 0;
}

.woocommerce-cart table.shop_table,
.woocommerce-cart .cart_totals {
  border: 1px solid #eee7df;
  background: #fff;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  min-height: 44px;
  border: 1px solid #ddd6cf;
  background: #fff;
}

.woocommerce-checkout-review-order {
  border: 1px solid #eee7df;
  background: #fff;
  padding: 22px;
}

@media (max-width: 768px) {
  .bowbar-delivery-inner {
    min-height: auto;
    padding: 8px 16px;
    display: block;
    text-align: center;
  }

  .bowbar-delivery-inner span {
    display: block;
    margin: 2px 0;
  }

  .bowbar-variation-button {
    min-width: 54px;
  }

  .site-header,
  .botiga-site-header {
    position: relative;
  }

  .post-type-archive-product .woocommerce-products-header {
    padding-top: 30px;
    padding-bottom: 18px;
  }

  .post-type-archive-product .woocommerce-products-header__title,
  .post-type-archive-product .page-title {
    font-size: 34px;
  }

  .post-type-archive-product ul.products {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .single-product .entry-summary,
  .single-product div.product .summary {
    padding: 20px 16px;
    border-left: 0;
    border-right: 0;
  }

  .single-product .product_title,
  .single-product h1.product_title {
    font-size: 22px;
  }

  .single-product .price {
    font-size: 24px;
  }

  .single_add_to_cart_button,
  button.single_add_to_cart_button {
    width: 100%;
  }

  .woocommerce-Tabs-panel img {
    max-width: 100%;
    height: auto;
  }
}

/* Phase 11D small polish: header, breadcrumb, cart */
.bowbar-delivery-bar {
  min-height: 34px;
}

@media (min-width: 769px) {
  .bowbar-delivery-inner {
    min-height: 34px;
    font-size: 13px;
    font-weight: 600;
  }

  .site-header.header_layout_1:not(.mobile-header) {
    min-height: 74px;
    position: relative;
  }

  .site-header.header_layout_1:not(.mobile-header) .container,
  .site-header.header_layout_1:not(.mobile-header) .row {
    max-width: 1240px;
    min-height: 74px;
  }

  .site-header.header_layout_1:not(.mobile-header) .row {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header.header_layout_1:not(.mobile-header) .main-navigation {
    display: none !important;
  }

  .site-header.header_layout_1:not(.mobile-header) .site-branding {
    position: absolute;
    left: 0;
    top: calc(50% + 28px);
    transform: translateY(-50%);
    width: auto;
    max-width: 260px;
    text-align: left;
  }

  .site-header.header_layout_1:not(.mobile-header) .site-title {
    width: auto;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
  }

  .bowbar-logo-subtitle {
    display: block;
    margin-top: 5px;
    color: #555;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
  }

  .bowbar-header-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: stretch;
    width: min(520px, 100%);
    height: 44px;
  }

  .bowbar-header-search input[type="search"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #111;
    border-right: 0;
    padding: 0 14px;
    background: #fff;
    color: #111;
    font-size: 14px;
  }

  .bowbar-header-search button {
    min-width: 78px;
    min-height: 44px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }

  .site-header.header_layout_1:not(.mobile-header) .header-elements {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: 22px;
  }
}

.woocommerce-breadcrumb,
.breadcrumbs,
.breadcrumb,
nav[aria-label*="breadcrumb"],
.trail-items {
  display: none !important;
}

.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
  max-width: 1180px;
  margin: 52px auto 26px;
  padding: 0 24px;
  text-align: left;
}

.woocommerce-cart .entry-title,
.woocommerce-cart .page-title,
.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}

.woocommerce-cart .entry-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  vertical-align: -2px;
  box-sizing: border-box;
}

.woocommerce-cart .entry-title::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 5px;
  margin-left: -113px;
  margin-right: 83px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  vertical-align: 12px;
  box-sizing: border-box;
}

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form {
  margin: 0;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart_totals {
  padding: 26px;
  border: 1px solid #eee4dc;
  background: #fff;
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
}

.woocommerce-cart .cart_totals table {
  margin-bottom: 20px;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.woocommerce-cart .cart_totals tr.shipping th {
  font-size: 0;
}

.woocommerce-cart .cart_totals tr.shipping th::before {
  content: "配送费";
  font-size: 14px;
}

.woocommerce-cart .cart_totals tr.shipping td {
  color: #333;
  text-align: right;
}

.woocommerce-cart .woocommerce-shipping-methods,
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .shipping-calculator-form {
  display: none !important;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__label,
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__value {
  display: none !important;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item::before {
  content: "配送费";
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item::after {
  content: "以结账页为准";
  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.bowbar-cart-shipping-note {
  display: block;
  color: #111;
  font-weight: 800;
}

.bowbar-cart-shipping-subnote {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.woocommerce-cart .order-total th,
.woocommerce-cart .order-total td {
  border-bottom: 0;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 900;
}

.woocommerce-cart table.shop_table {
  border: 0;
  border-top: 1px solid #eee4dc;
  background: #fff;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 18px 16px;
  border-bottom: 1px solid #eee4dc;
}

.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 88px;
  height: 116px;
  object-fit: cover;
}

.woocommerce-cart table.shop_table .product-name a {
  color: #111;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.woocommerce-cart table.shop_table .variation {
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}

.woocommerce-cart .quantity {
  display: inline-flex;
  min-height: 38px;
  border: 1px solid #ddd;
}

.woocommerce-cart .quantity input.qty {
  min-height: 38px;
}

.woocommerce-cart .cart-empty {
  max-width: 420px;
  margin-top: 34px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .bowbar-delivery-inner span:not(:first-child) {
    display: none;
  }

  .site-header.header_layout_1:not(.mobile-header) {
    display: none;
  }

  .woocommerce-cart .entry-header,
  .woocommerce-checkout .entry-header {
    margin: 30px auto 18px;
    padding: 0 16px;
  }

  .woocommerce-cart .entry-title,
  .woocommerce-cart .page-title,
  .woocommerce-checkout .entry-title,
  .woocommerce-checkout .page-title {
    font-size: 26px;
  }

  .woocommerce-cart .woocommerce {
    display: block;
  }

  .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .woocommerce-cart table.shop_table,
  .woocommerce-cart table.shop_table tbody,
  .woocommerce-cart table.shop_table tr,
  .woocommerce-cart table.shop_table td {
    display: block;
    width: 100%;
  }

  .woocommerce-cart table.shop_table tr.cart_item {
    padding: 16px 0;
    border-bottom: 1px solid #eee4dc;
  }

  .woocommerce-cart table.shop_table td {
    padding: 8px 0;
    border-bottom: 0;
  }

  .woocommerce-cart table.shop_table .product-thumbnail img {
    width: 92px;
    height: 120px;
  }

  .woocommerce-cart .cart_totals {
    margin-top: 24px;
    padding: 22px 18px;
  }
}

/* Phase 11E: card-style storefront layout */
:root {
  --bb-black: #111111;
  --bb-text: #151515;
  --bb-muted: #666666;
  --bb-bg: #f6f3ef;
  --bb-card: #ffffff;
  --bb-line: #e7dfd8;
  --bb-soft: #faf7f4;
  --bb-shadow: 0 14px 40px rgba(20, 20, 20, .06);
}

.single-product .site-content,
.single-product main,
.post-type-archive-product .site-content,
.post-type-archive-product main,
.woocommerce-cart .site-content,
.woocommerce-cart main,
.woocommerce-checkout .site-content,
.woocommerce-checkout main {
  background: var(--bb-bg);
}

.single-product .content-wrapper,
.single-product .main-row,
.single-product .site-main,
.single-product article.product {
  max-width: 1180px !important;
  width: min(1180px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-header.header_layout_1:not(.mobile-header) {
  background: #fff;
  border-bottom: 1px solid var(--bb-line);
}

.bowbar-header-search input[type="search"] {
  background: #fff;
}

/* Shop cards */
.post-type-archive-product .content-wrapper,
.post-type-archive-product .site-main {
  max-width: 1180px;
}

.post-type-archive-product ul.products {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 28px;
  align-items: stretch;
}

.post-type-archive-product ul.products li.product {
  overflow: hidden;
  background: var(--bb-card);
  border: 1px solid var(--bb-line);
  box-shadow: var(--bb-shadow);
  padding-bottom: 20px;
}

.post-type-archive-product ul.products li.product img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Product card layout */
@media (min-width: 900px) {
  .single-product div.product {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    margin: 48px auto 0;
    display: block !important;
    align-items: start;
  }

  .single-product div.product .product-gallery-summary {
    width: 100% !important;
    max-width: 1180px !important;
    display: grid !important;
    grid-template-columns: minmax(440px, 560px) minmax(390px, 500px) !important;
    gap: 34px !important;
    align-items: start !important;
  }

  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
  }

  .single-product div.product .woocommerce-tabs,
  .single-product div.product .related,
  .single-product div.product .upsells {
    grid-column: 1 / -1;
  }
}

.single-product div.product .woocommerce-product-gallery {
  background: var(--bb-card);
  border: 1px solid var(--bb-line);
  padding: 18px;
  box-shadow: var(--bb-shadow);
}

.single-product div.product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  background: #f7f7f7;
}

.single-product .flex-control-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.single-product .flex-control-thumbs li {
  width: 64px !important;
  margin: 0 !important;
}

.single-product .flex-control-thumbs img {
  border: 1px solid #e6e6e6;
}

.single-product div.product .summary {
  background: var(--bb-card);
  border: 1px solid var(--bb-line);
  padding: 32px;
  box-shadow: var(--bb-shadow);
}

.single-product .product_title,
.single-product h1.product_title {
  font-size: 30px;
  line-height: 1.32;
  font-weight: 900;
  margin-bottom: 16px;
}

.single-product .price {
  font-size: 32px;
  font-weight: 900;
  color: var(--bb-black);
  margin-bottom: 18px;
}

.woocommerce-product-details__short-description {
  background: var(--bb-soft);
  border: 1px solid #eee2da;
  padding: 18px;
  line-height: 1.8;
  margin: 18px 0;
}

.bowbar-variation-button {
  min-width: 58px;
  min-height: 40px;
}

.single-product .quantity .qty {
  min-height: 50px;
  border: 1px solid #bbb;
}

.single_add_to_cart_button,
button.single_add_to_cart_button {
  min-height: 50px;
  background: var(--bb-black) !important;
  color: #fff !important;
  font-weight: 900;
  border-radius: 0 !important;
  padding: 0 30px;
}

.single-product .woocommerce-tabs {
  max-width: 1180px;
  margin: 48px auto 0;
  background: var(--bb-card);
  border: 1px solid var(--bb-line);
  padding: 34px;
  box-shadow: var(--bb-shadow);
}

.woocommerce-Tabs-panel {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.75;
}

.woocommerce-Tabs-panel img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 24px auto;
}

/* Cart cards */
.woocommerce-cart .content-wrapper,
.woocommerce-cart .site-main,
.woocommerce-checkout .content-wrapper,
.woocommerce-checkout .site-main {
  max-width: 1180px;
}

.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
  margin-top: 42px;
}

.woocommerce-cart .entry-title,
.woocommerce-cart h1,
.woocommerce-checkout .entry-title,
.woocommerce-checkout h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 28px;
}

.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-cart table.shop_table,
.woocommerce-cart .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .wc-block-checkout__contact-fields,
.woocommerce-checkout .wc-block-checkout__shipping-fields,
.woocommerce-checkout .wc-block-checkout__payment-method,
.woocommerce-checkout .wc-block-components-sidebar {
  background: var(--bb-card);
  border: 1px solid var(--bb-line);
  box-shadow: var(--bb-shadow);
}

.woocommerce-cart .wp-block-woocommerce-cart {
  padding: 28px;
}

.woocommerce-cart .wc-block-components-sidebar,
.woocommerce-cart .cart_totals {
  padding: 28px;
}

.woocommerce-cart .wc-block-cart-items__row,
.woocommerce-cart table.shop_table tr.cart_item {
  border-bottom: 1px solid var(--bb-line);
}

.woocommerce-cart .wc-block-cart-item__image img,
.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 92px;
  height: 122px;
  object-fit: cover;
}

.woocommerce-cart .wc-block-cart-item__product,
.woocommerce-cart table.shop_table .product-name {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.woocommerce-cart .wc-block-components-product-details,
.woocommerce-cart table.shop_table .variation {
  color: var(--bb-muted);
  font-size: 13px;
}

.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
#place_order,
.wc-block-components-checkout-place-order-button {
  min-height: 52px;
  background: var(--bb-black) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-weight: 900;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__label,
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item__value {
  display: none !important;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item::before {
  content: "配送费";
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-item::after {
  content: "以结账页为准";
}

/* Checkout cards */
.woocommerce-checkout .wc-block-checkout,
.woocommerce-checkout form.checkout {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  min-height: 44px;
  border: 1px solid #ddd;
  background: #fff;
}

.woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .wc-block-components-sidebar {
  padding: 24px;
}

.woocommerce-form-coupon-toggle,
.checkout_coupon,
.coupon,
.actions .coupon,
.wc-block-components-totals-coupon,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
  display: none !important;
}

@media (max-width: 768px) {
  .single-product div.product {
    display: block !important;
    margin: 20px auto 0;
  }

  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary,
  .single-product .woocommerce-tabs {
    box-shadow: none;
  }

  .single-product div.product .summary {
    padding: 20px;
    margin-top: 18px !important;
  }

  .single-product .product_title {
    font-size: 22px;
  }

  .bowbar-variation-button {
    min-width: 54px;
  }

  .single_add_to_cart_button {
    width: 100%;
  }

  .single-product .woocommerce-tabs {
    padding: 20px;
    margin-top: 28px;
  }

  .woocommerce-cart .wp-block-woocommerce-cart,
  .woocommerce-cart .cart_totals,
  .woocommerce-checkout-review-order,
  .woocommerce-checkout .wc-block-components-sidebar {
    box-shadow: none;
    padding: 18px;
  }
}

/* Phase 12: live mode */
.bowbar-live-mode .search-form,
.bowbar-live-mode .product-search,
.bowbar-live-mode .aws-container,
.bowbar-live-mode .bowbar-header-search,
.bowbar-live-mode .cross-sells,
.bowbar-live-mode .related.products,
.bowbar-live-mode .upsells.products,
.bowbar-live-mode .return-to-shop,
.bowbar-live-mode .wc-empty-cart-message + .return-to-shop {
  display: none !important;
}

.bowbar-live-mode.woocommerce-cart .wp-block-woocommerce-empty-cart-block ul.products,
.bowbar-live-mode.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid,
.bowbar-live-mode.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading,
.bowbar-live-mode.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator,
.bowbar-live-mode.woocommerce-cart .wc-block-cart__empty-cart__title {
  display: none !important;
}

.bowbar-live-empty-cart {
  max-width: 520px;
  margin: 60px auto;
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #e7dfd8;
  box-shadow: 0 14px 40px rgba(20, 20, 20, 0.06);
}

.bowbar-live-empty-cart h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.bowbar-live-empty-cart p {
  color: #666;
  margin: 0;
}

/* Phase 13: front-end customers use Facebook login only */
.bowbar-auth-screen:not(.logged-in) {
  background: linear-gradient(180deg, #f7f4f1 0%, #ffffff 54%, #f8f8f8 100%);
}

.bowbar-auth-screen:not(.logged-in) .site-main,
.bowbar-auth-screen:not(.logged-in) .content-wrapper {
  max-width: 1040px;
}

.bowbar-auth-screen:not(.logged-in) .entry-header,
.bowbar-auth-screen:not(.logged-in) .page-header,
.bowbar-auth-screen:not(.logged-in) .woocommerce h2,
.bowbar-auth-screen:not(.logged-in) .woocommerce > h2 {
  display: none !important;
}

.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
.woocommerce-account:not(.logged-in) form.login,
.woocommerce-checkout:not(.logged-in) form.woocommerce-form-login,
.woocommerce-checkout:not(.logged-in) form.login,
.woocommerce-checkout:not(.logged-in) .woocommerce-form-login-toggle {
  display: none !important;
}

.bowbar-facebook-login-only {
  max-width: 640px;
  margin: 28px auto;
}

.bowbar-auth-page {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 46px 18px 72px;
}

.bowbar-auth-card {
  width: min(100%, 560px);
  padding: 38px 34px 34px;
  text-align: center;
  background: #fff;
  border: 1px solid #ebe2dc;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(18, 18, 18, 0.08);
}

.bowbar-auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  margin-bottom: 16px;
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
}

.bowbar-auth-card h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  color: #111;
}

.bowbar-auth-subtitle {
  max-width: 420px;
  margin: 0 auto 24px;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.bowbar-auth-nextend {
  margin: 0 auto 18px;
  padding: 18px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 14px;
}

.bowbar-auth-nextend .nsl-container,
.bowbar-auth-nextend .nsl-container-buttons {
  width: 100%;
}

.bowbar-auth-note {
  margin: 0 auto 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
}

.bowbar-auth-points {
  display: grid;
  gap: 9px;
  max-width: 390px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.bowbar-auth-points li {
  position: relative;
  padding-left: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.bowbar-auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: #111;
  border-radius: 999px;
}

.bowbar-facebook-login-pending {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  color: #555;
  font-size: 14px;
}

@media (max-width: 640px) {
  .bowbar-auth-page {
    min-height: 440px;
    padding: 28px 12px 54px;
  }

  .bowbar-auth-card {
    padding: 30px 20px 26px;
    border-radius: 14px;
  }

  .bowbar-auth-card h1 {
    font-size: 26px;
  }

  .bowbar-auth-nextend {
    padding: 14px;
  }
}

/* Phase S5B: final cleanup for unauthenticated Facebook login gate */
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .content-wrapper {
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .entry-content {
  margin-top: 0;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .entry-header,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .entry-title,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .woocommerce > h2,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) form.login,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-LostPassword,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
  display: none !important;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-page {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-card {
  width: min(460px, 100%);
  padding: 34px 32px;
  border-radius: 20px;
  border-color: #ededed;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-card h1 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.18;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-subtitle {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-nextend {
  margin: 22px auto 14px;
  max-width: 320px;
  padding: 0;
  background: transparent;
  border: 0;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-nextend .nsl-container,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-nextend .nsl-container-buttons,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-nextend a[data-plugin="nsl"] {
  width: 100%;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-nextend .nsl-button {
  min-height: 48px;
  border-radius: 12px !important;
  justify-content: center;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  color: #444;
  font-size: 14px;
}

@media (max-width: 600px) {
  body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-page {
    min-height: 420px;
    padding: 28px 14px 48px;
  }

  body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-card {
    border-radius: 16px;
    padding: 26px 20px;
  }

  body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-card h1 {
    font-size: 26px;
  }
}

/* Phase S7: shared page/card system and sticky footer */
:root {
  --bowbar-page-bg: #f5f4f1;
  --bowbar-card-bg: #ffffff;
  --bowbar-card-radius: 22px;
  --bowbar-card-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
  --bowbar-muted-text: #666;
  --bowbar-border: rgba(0, 0, 0, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
}

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper,
.site-main,
main#primary {
  width: 100%;
}

.container.content-wrapper,
.content-wrapper {
  flex: 1 0 auto;
}

.site-footer,
.bowbar-custom-footer-note {
  margin-top: auto;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .content-wrapper,
body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-page,
body.woocommerce-cart .content-wrapper,
body.woocommerce-checkout .content-wrapper {
  background: var(--bowbar-page-bg);
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-card,
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout #order_review {
  background: var(--bowbar-card-bg);
  border: 1px solid var(--bowbar-border);
  border-radius: var(--bowbar-card-radius);
  box-shadow: var(--bowbar-card-shadow);
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  background: transparent;
}

body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-checkout form.checkout {
  padding: 24px;
}

body.woocommerce-cart .cart_totals,
body.woocommerce-checkout #order_review {
  padding: 24px;
}

body.bowbar-auth-screen.woocommerce-account:not(.logged-in) .bowbar-auth-nextend {
  background: transparent;
}

/* Phase S7B: mobile auth footer true-bottom fix */
html {
  min-height: 100%;
  background: #111;
}

body {
  margin: 0;
}

body.bowbar-auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #111;
}

body.bowbar-auth-screen #page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bowbar-page-bg, #f5f4f1);
}

body.bowbar-auth-screen .content-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  background: var(--bowbar-page-bg, #f5f4f1);
}

body.bowbar-auth-screen .main-row,
body.bowbar-auth-screen #primary,
body.bowbar-auth-screen article,
body.bowbar-auth-screen .entry-content,
body.bowbar-auth-screen .woocommerce {
  flex: 1 1 auto;
}

body.bowbar-auth-screen .bowbar-auth-page {
  min-height: auto;
  flex: 1 1 auto;
}

body.bowbar-auth-screen .bowbar-custom-footer-note {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 768px) {
  html,
  body.bowbar-auth-screen {
    min-height: 100vh;
    min-height: 100dvh;
    background: #111;
  }

  body.bowbar-auth-screen #page {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.bowbar-auth-screen .content-wrapper {
    flex: 1 1 auto;
  }

  body.bowbar-auth-screen .bowbar-auth-page {
    padding-bottom: 40px;
  }

body.bowbar-auth-screen .bowbar-custom-footer-note {
  flex: 0 0 auto;
}

/* Phase S9: quantity shipping explanation */
.bowbar-cart-shipping-note {
  display: block;
  max-width: 360px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.bowbar-cart-shipping-subnote {
  display: block;
  margin-top: 6px;
  color: var(--bowbar-muted-text, #666);
  font-size: 12px;
  line-height: 1.5;
}
}
