/*
Theme Name: Bitnura Gutenberg
Theme URI: https://bitnura.com/
Author: Bitnura
Description: Tema de blocos/FSE para WooCommerce. A página inicial é composta por blocos Gutenberg individuais diretamente no modelo Front Page, com WooCommerce e Full Site Editing.
Version: 1.4.4
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: bitnura-gutenberg
Tags: block-patterns, block-styles, full-site-editing, e-commerce, wide-blocks
*/

/* Bitnura typography — Manrope variable font (200–800). */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
  --bitnura-font-sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bitnura-blue: #2563EB;
  --bitnura-blue-dark: #1D4ED8;
  --bitnura-blue-soft: #DBEAFE;
  --bitnura-ink: #101114;
  --bitnura-muted: #626873;
  --bitnura-line: #E5E7EB;
  --bitnura-canvas: #F7F8FA;
  --bitnura-white: #FFFFFF;
  --bitnura-gutter: clamp(16px, 3vw, 32px);
  --bitnura-radius-sm: 10px;
  --bitnura-radius-md: 18px;
  --bitnura-radius-lg: 28px;
  --bitnura-shadow: 0 12px 40px rgba(16,17,20,.07);
  --bitnura-shadow-hover: 0 18px 48px rgba(16,17,20,.12);
}


/* Global text typography. Keep icon-font pseudo-elements untouched. */
html,
body,
button,
input,
select,
textarea,
.wp-site-blocks,
.editor-styles-wrapper,
.woocommerce,
.woocommerce-page,
.nxa-screen {
  font-family: var(--bitnura-font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Backward compatibility: old yellow preset becomes Bitnura blue. */
.has-yellow-color { color: var(--bitnura-blue) !important; }
.has-yellow-background-color { background-color: var(--bitnura-blue) !important; }
.has-yellow-border-color { border-color: var(--bitnura-blue) !important; }
.has-yellow-glow-gradient-background { background: linear-gradient(135deg,#2563EB 0%,#60A5FA 100%) !important; }

/* Stable Gutenberg widths. This intentionally does not depend on root body padding. */
.is-layout-constrained > .alignwide,
.wp-block-post-content > .alignwide {
  width: min(1280px, calc(100% - (var(--bitnura-gutter) * 2)));
  max-width: 1280px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)),
.wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
  width: min(780px, calc(100% - (var(--bitnura-gutter) * 2)));
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.is-layout-constrained > .alignfull,
.wp-block-post-content > .alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep full-width sections from placing their inner content against the viewport edge. */
.alignfull > .wp-block-group__inner-container,
.alignfull.is-layout-constrained > :where(:not(.alignfull)) {
  max-width: 1280px;
}

/* Gutenberg structural hardening. */
.wp-block-columns { gap: clamp(18px, 2.5vw, 32px); }
.wp-block-column { min-width: 0; }
.wp-block-group.is-layout-flex { row-gap: .8rem; column-gap: 1.15rem; }
.wp-block-buttons { gap: .7rem; }
.wp-block-button__link { white-space: normal; text-align: center; }
.wp-block-heading, p { overflow-wrap: anywhere; }

/* Header */
.bitnura-announcement {
  background: var(--bitnura-ink);
  color: var(--bitnura-white);
  letter-spacing: .01em;
}
.bitnura-announcement p { margin: 0; }

.bitnura-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--bitnura-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.admin-bar .bitnura-header { top: 32px; }

.bitnura-header-row,
.bitnura-nav-row {
  width: min(1280px, calc(100% - (var(--bitnura-gutter) * 2)));
  margin-inline: auto;
}
.bitnura-header-row {
  min-height: 72px;
  display: flex !important;
  align-items: center;
  gap: clamp(16px, 2vw, 28px) !important;
}
.bitnura-header-row .wp-block-site-logo { flex: 0 0 auto; margin: 0; }
.bitnura-header-row .wp-block-site-logo img { max-width: 150px; max-height: 42px; width: auto; object-fit: contain; }
.bitnura-header-search { flex: 1 1 460px; min-width: 180px; margin: 0 !important; }
.bitnura-header-search .wp-block-search__inside-wrapper {
  min-height: 46px;
  border: 1px solid var(--bitnura-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.bitnura-header-search input { border: 0 !important; padding-left: 18px !important; }
.bitnura-header-search .wp-block-search__button { margin: 0; border-radius: 999px; }
.bitnura-header-actions { flex: 0 0 auto; white-space: nowrap; }
.bitnura-account-link a { font-size: .9rem; font-weight: 700; }

.bitnura-nav-shell { border-top: 1px solid #F0F1F3; background: #fff; }
.bitnura-nav-row { min-height: 46px; }
.bitnura-nav-row .wp-block-navigation { width: 100%; }
.bitnura-nav-row .wp-block-navigation__container { gap: clamp(14px, 2.1vw, 30px); }
.bitnura-nav-row .wp-block-navigation-item__content { padding: .8rem 0; }
.bitnura-nav-row .wp-block-navigation-item__content:hover { color: var(--bitnura-blue); }

/* Main/content */
.bitnura-main { min-height: 50vh; }
.bitnura-main > .wp-block-post-content { margin-block-start: 0; }
.bitnura-kicker {
  display: inline-flex;
  width: fit-content;
  padding: .34rem .64rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bitnura-hero { position: relative; overflow: hidden; }
.bitnura-section-title { max-width: 760px; }
.bitnura-divider { height: 1px; background: var(--bitnura-line); }

/* Generic cards and existing store sections */
.bitnura-product-card,
.bitnura-category-card,
.bitnura-info-card,
.wc-block-product {
  min-width: 0;
  border-radius: var(--bitnura-radius-md);
}
.bitnura-product-card,
.bitnura-category-card,
.bitnura-info-card {
  border: 1px solid var(--bitnura-line);
  background: var(--bitnura-white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bitnura-product-card:hover,
.bitnura-category-card:hover,
.bitnura-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bitnura-shadow-hover);
  border-color: #D7DAE0;
}
.bitnura-product-card { overflow: hidden; padding: 1rem; min-height: 100%; }
.bitnura-category-card { min-height: 180px; }

/* WooCommerce grids */
.wc-block-product-template,
.wp-block-woocommerce-product-template {
  gap: clamp(16px, 2vw, 24px) !important;
}
.wc-block-product,
.wp-block-woocommerce-product-template > li {
  min-width: 0;
}
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img,
.woocommerce-product-gallery img {
  border-radius: 14px;
}
.wc-block-components-product-price,
.woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
.wc-block-components-product-button .wp-block-button__link,
.wp-block-woocommerce-product-button .wp-block-button__link {
  width: 100%;
}

/* Woo forms */
.woocommerce .quantity .qty,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-address-form input {
  border-radius: var(--bitnura-radius-sm) !important;
}

/* Benefits */
.bitnura-feature-strip .wp-block-column { padding: 0 clamp(0px, 1vw, 10px); }
.bitnura-feature-strip .wp-block-column + .wp-block-column { border-left: 1px solid var(--bitnura-line); }

/* Footer */
.bitnura-footer { margin-top: clamp(48px, 7vw, 90px); }
.bitnura-footer a { color: inherit; text-decoration: none; }
.bitnura-footer a:hover { color: #93C5FD; }
.bitnura-footer-grid { width: min(1280px, calc(100% - (var(--bitnura-gutter) * 2))); margin-inline: auto; }

/* Buttons/interactions */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"] {
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover { transform: translateY(-1px); }

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  border: 1px solid var(--bitnura-line);
  border-radius: 999px;
  padding: .45rem .75rem;
  text-decoration: none;
}

/* Tablet */
@media (max-width: 960px) {
  .bitnura-header-row { flex-wrap: wrap; padding-block: 12px; }
  .bitnura-header-search { order: 3; flex-basis: 100%; width: 100%; }
  .bitnura-header-actions { margin-left: auto; }
  .bitnura-feature-strip .wp-block-column + .wp-block-column {
    border-left: 0;
    border-top: 1px solid var(--bitnura-line);
    padding-top: 1rem;
  }
}

/* Gutenberg's columns stack threshold is intentionally reinforced for old page content. */
@media (max-width: 781px) {
  .admin-bar .bitnura-header { top: 46px; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .bitnura-announcement p { font-size: .72rem !important; }
  .bitnura-hero { border-radius: 0 !important; }
  .bitnura-product-card { padding: .8rem; }
  .bitnura-footer-grid > .wp-block-column { flex-basis: 100% !important; }
}

@media (max-width: 600px) {
  :root { --bitnura-gutter: 16px; }
  .bitnura-header-row { min-height: auto; gap: 10px !important; }
  .bitnura-header-row .wp-block-site-logo img { max-width: 118px; max-height: 34px; }
  .bitnura-account-link { display: none; }
  .bitnura-header-search .wp-block-search__inside-wrapper { min-height: 42px; }
  .bitnura-nav-row { min-height: 42px; }
  .bitnura-nav-row .wp-block-navigation { justify-content: flex-end; }
  .bitnura-nav-row .wp-block-navigation__responsive-container-open { margin-left: auto; }
  .wp-block-buttons { width: 100%; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; }
  .wc-block-grid__products { margin-left: 0 !important; margin-right: 0 !important; }
}

.bitnura-footer .wp-block-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.bitnura-footer .wp-block-list li + li { margin-top: .5rem; }

/* ==========================================================
   1.3.0 — Homepage blocks live directly in front-page template
   ========================================================== */
.bitnura-home-shell-v130 {
  padding-top: clamp(22px, 3.2vw, 42px);
  padding-bottom: clamp(12px, 2vw, 24px);
}

.bitnura-home-shell-v130 > *:first-child {
  margin-top: 0;
}

.bitnura-hero {
  overflow: hidden;
  position: relative;
}

.bitnura-hero::after {
  content: "";
  position: absolute;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  right: clamp(-150px, -8vw, -70px);
  top: clamp(-150px, -7vw, -70px);
  background: rgba(255,255,255,.13);
  pointer-events: none;
}

.bitnura-hero > * {
  position: relative;
  z-index: 1;
}

.bitnura-hero .is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: rgba(16,17,20,.45);
  color: var(--bitnura-ink);
}

.bitnura-hero-panel {
  box-shadow: 0 18px 60px rgba(12, 41, 92, .17);
}

.bitnura-category-grid {
  align-items: stretch;
}

.bitnura-category-grid .wp-block-column {
  display: flex;
}

.bitnura-category-card {
  width: 100%;
  min-height: 215px;
  border: 1px solid var(--bitnura-line);
  border-radius: var(--bitnura-radius-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bitnura-category-card-horizontal {
  min-height: 132px;
}

.bitnura-category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bitnura-shadow-hover);
  border-color: rgba(37,99,235,.28);
}

.bitnura-category-card.has-ink-background-color,
.bitnura-category-card.has-blue-background-color {
  border-color: transparent;
}

.bitnura-category-card.has-ink-background-color a,
.bitnura-category-card.has-blue-background-color a {
  color: inherit;
}

.bitnura-promo-block,
.bitnura-insights-block {
  overflow: hidden;
}

.editor-styles-wrapper .bitnura-category-card,
.editor-styles-wrapper .bitnura-hero-panel,
.editor-styles-wrapper .bitnura-promo-block,
.editor-styles-wrapper .bitnura-insights-block {
  cursor: default;
}

@media (max-width: 900px) {
  .bitnura-feature-strip.wp-block-columns,
  .bitnura-category-grid.wp-block-columns {
    flex-wrap: wrap !important;
  }

  .bitnura-feature-strip > .wp-block-column,
  .bitnura-category-grid-primary > .wp-block-column {
    flex-basis: calc(50% - 12px) !important;
    flex-grow: 1;
  }

  .bitnura-category-grid-secondary > .wp-block-column {
    flex-basis: calc(50% - 12px) !important;
  }
}

@media (max-width: 640px) {
  .bitnura-home-shell-v130 {
    padding-top: 16px;
  }

  .bitnura-hero {
    border-radius: 20px !important;
  }

  .bitnura-feature-strip > .wp-block-column,
  .bitnura-category-grid-primary > .wp-block-column,
  .bitnura-category-grid-secondary > .wp-block-column {
    flex-basis: 100% !important;
  }

  .bitnura-category-card,
  .bitnura-category-card-horizontal {
    min-height: 0;
  }

  .bitnura-promo-block,
  .bitnura-insights-block {
    border-radius: 20px !important;
  }

  .bitnura-promo-block .wp-block-buttons,
  .bitnura-insights-block .wp-block-buttons {
    justify-content: flex-start !important;
  }
}

/* Minha Conta — moldura do tema. O conteúdo interno permanece sob controle do WooCommerce/Nuvexos Account. */
.bitnura-account-shell { min-height: 58vh; }
.bitnura-account-shell .wp-block-post-content { width: 100%; max-width: 1240px; }
.woocommerce-account .bitnura-account-shell .woocommerce { margin-top: 0; }
@media (max-width: 782px) {
  .bitnura-account-shell { padding: 28px 15px 54px !important; }
}


/* ==========================================================
   1.3.3 — Refined product search experience
   ========================================================== */
.bitnura-search-page {
  min-height: 52vh;
}

.bitnura-search-page .woocommerce-breadcrumb {
  margin-bottom: 0;
  color: var(--bitnura-muted);
  font-size: .92rem;
}

.bitnura-search-hero,
.bitnura-search-toolbar,
.bitnura-search-empty {
  box-shadow: var(--bitnura-shadow);
}

.bitnura-search-kicker {
  text-transform: uppercase;
}

.bitnura-search-title {
  margin: 0 !important;
  font-size: clamp(2.35rem, 5vw, 4.1rem) !important;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.bitnura-search-subtitle {
  max-width: 760px;
}

.bitnura-search-toolbar {
  gap: 14px 24px !important;
}

.bitnura-search-toolbar .woocommerce-result-count,
.bitnura-search-toolbar .wc-block-product-results-count {
  margin: 0;
  color: var(--bitnura-muted);
  font-size: .92rem;
}

.bitnura-search-toolbar select {
  min-height: 42px;
  border: 1px solid var(--bitnura-line);
  border-radius: var(--bitnura-radius-sm);
  background: var(--bitnura-white);
  padding-inline: .8rem 2.4rem;
}

.bitnura-search-results .wc-block-product-template,
.bitnura-search-results .wp-block-woocommerce-product-template {
  gap: clamp(18px, 2vw, 26px) !important;
}

.bitnura-search-product-card {
  height: 100%;
  padding: 1rem;
}

.bitnura-search-product-media {
  margin-bottom: .15rem;
}

.bitnura-search-product-card .wp-block-woocommerce-product-image,
.bitnura-search-product-card .wc-block-components-product-image {
  width: 100%;
}

.bitnura-search-product-card .wp-block-woocommerce-product-image img,
.bitnura-search-product-card .wc-block-components-product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.bitnura-search-product-card .wp-block-post-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  margin-top: .2rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bitnura-search-product-card .wp-block-post-title a {
  text-decoration: none;
}

.bitnura-search-product-card .wp-block-post-title a:hover {
  color: var(--bitnura-blue);
}

.bitnura-search-product-card .wp-block-woocommerce-product-price,
.bitnura-search-product-card .wc-block-components-product-price {
  margin-top: auto;
  color: var(--bitnura-black);
  font-size: 1rem;
  font-weight: 800;
}

.bitnura-search-product-card .wp-block-woocommerce-product-button,
.bitnura-search-product-card .wc-block-components-product-button {
  margin-top: .2rem;
}

.bitnura-search-product-card .wp-block-woocommerce-product-button .wp-block-button__link,
.bitnura-search-product-card .wc-block-components-product-button__button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

.bitnura-search-page .wp-block-query-pagination {
  margin-top: clamp(24px, 4vw, 34px) !important;
  gap: 10px;
}

.bitnura-search-page .wp-block-query-pagination a,
.bitnura-search-page .wp-block-query-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bitnura-white);
}

.bitnura-search-page .wp-block-query-pagination .current {
  border-color: var(--bitnura-blue);
  color: var(--bitnura-blue);
  font-weight: 700;
}

/* Keep a useful two-column product grid on phones. */
@media (max-width: 781px) {
  .bitnura-search-results .wc-block-product-template,
  .bitnura-search-results .wp-block-woocommerce-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .bitnura-search-toolbar {
    align-items: stretch !important;
  }
}

@media (max-width: 600px) {
  .bitnura-search-page {
    padding-top: 28px !important;
  }

  .bitnura-search-hero {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .bitnura-search-title {
    font-size: clamp(1.9rem, 8vw, 2.55rem) !important;
  }

  .bitnura-search-subtitle {
    font-size: .95rem !important;
  }

  .bitnura-search-toolbar {
    flex-direction: column;
    padding: 14px 14px !important;
  }

  .bitnura-search-toolbar > * {
    width: 100%;
  }

  .bitnura-search-toolbar select {
    width: 100%;
  }

  .bitnura-search-product-card {
    padding: .75rem;
  }

  .bitnura-search-product-media {
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .bitnura-search-product-card .wp-block-post-title {
    min-height: 4.05em;
    -webkit-line-clamp: 3;
    font-size: .92rem !important;
  }

  .bitnura-search-product-card .wp-block-woocommerce-product-price,
  .bitnura-search-product-card .wc-block-components-product-price {
    font-size: .92rem !important;
  }

  .bitnura-search-product-card .wp-block-woocommerce-product-button .wp-block-button__link,
  .bitnura-search-product-card .wc-block-components-product-button__button {
    min-height: 40px;
    padding: .6rem .45rem;
    font-size: .78rem;
    line-height: 1.15;
  }

  .bitnura-search-empty {
    padding: 28px 20px !important;
  }
}

/* ==========================================================
   1.3.4 — Unified catalogue, category and product cards
   ========================================================== */
.bitnura-catalog-page {
  min-height: 52vh;
}

.bitnura-catalog-page .woocommerce-breadcrumb {
  margin-bottom: 0;
  color: var(--bitnura-muted);
  font-size: .92rem;
}

.bitnura-catalog-title {
  margin: 0 !important;
  font-size: clamp(2.35rem, 5vw, 4.1rem) !important;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.bitnura-catalog-description {
  max-width: 780px;
  margin-top: .45rem !important;
  color: var(--bitnura-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.bitnura-catalog-empty {
  box-shadow: var(--bitnura-shadow);
}

/* One visual system for every card that the Bitnura theme owns. */
.bitnura-product-card {
  height: 100%;
  padding: 1rem;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

.bitnura-product-card > .wp-block-woocommerce-product-image,
.bitnura-product-card > .wc-block-components-product-image {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: .15rem;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: #f8fafc;
}

.bitnura-product-card > .wp-block-woocommerce-product-image img,
.bitnura-product-card > .wc-block-components-product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.bitnura-product-card .wp-block-post-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  margin-top: .2rem !important;
  margin-bottom: 0 !important;
  flex-basis: auto !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35 !important;
}

.bitnura-product-card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.bitnura-product-card .wp-block-post-title a:hover {
  color: var(--bitnura-blue);
}

.bitnura-product-card .wp-block-woocommerce-product-price,
.bitnura-product-card .wc-block-components-product-price {
  margin-top: auto !important;
  color: var(--bitnura-ink);
  font-size: 1rem !important;
  font-weight: 800;
}

.bitnura-product-card .wp-block-woocommerce-product-button,
.bitnura-product-card .wc-block-components-product-button {
  width: 100%;
  margin-top: .2rem !important;
}

.bitnura-product-card .wp-block-woocommerce-product-button .wp-block-button__link,
.bitnura-product-card .wc-block-components-product-button__button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

/* Related products used a separate Woo template, so give them the same card treatment
   without changing the carefully customised single-product layout. */
.single-product .wp-block-woocommerce-product-collection .wc-block-product {
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid var(--bitnura-line);
  border-radius: var(--bitnura-radius-md);
  background: var(--bitnura-white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.single-product .wp-block-woocommerce-product-collection .wc-block-product:hover {
  transform: translateY(-2px);
  border-color: #d7dae0;
  box-shadow: var(--bitnura-shadow-hover);
}

.single-product .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-image,
.single-product .wp-block-woocommerce-product-collection .wc-block-product > .wc-block-components-product-image {
  box-sizing: border-box;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: #f8fafc;
}

.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-price,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price {
  font-weight: 800;
}

.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-button__button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

.bitnura-catalog-page .wp-block-query-pagination {
  gap: 10px;
}

.bitnura-catalog-page .wp-block-query-pagination a,
.bitnura-catalog-page .wp-block-query-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bitnura-white);
}

.bitnura-catalog-page .wp-block-query-pagination .current {
  border-color: var(--bitnura-blue);
  color: var(--bitnura-blue);
  font-weight: 700;
}

@media (max-width: 781px) {
  .bitnura-catalog-results .wc-block-product-template,
  .bitnura-catalog-results .wp-block-woocommerce-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .bitnura-catalog-toolbar {
    align-items: stretch !important;
  }
}

@media (max-width: 600px) {
  .bitnura-catalog-page {
    padding-top: 28px !important;
  }

  .bitnura-catalog-hero {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .bitnura-catalog-title {
    font-size: clamp(1.9rem, 8vw, 2.55rem) !important;
  }

  .bitnura-catalog-description {
    font-size: .95rem;
  }

  .bitnura-catalog-toolbar {
    flex-direction: column;
    padding: 14px !important;
  }

  .bitnura-catalog-toolbar > * {
    width: 100%;
  }

  .bitnura-catalog-toolbar select {
    width: 100%;
  }

  .bitnura-product-card,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product {
    padding: .75rem;
  }

  .bitnura-product-card > .wp-block-woocommerce-product-image,
  .bitnura-product-card > .wc-block-components-product-image,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-image,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product > .wc-block-components-product-image {
    padding: 10px;
    border-radius: 12px;
  }

  .bitnura-product-card .wp-block-post-title,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title {
    min-height: 4.05em;
    -webkit-line-clamp: 3;
    font-size: .92rem !important;
  }

  .bitnura-product-card .wp-block-woocommerce-product-price,
  .bitnura-product-card .wc-block-components-product-price {
    font-size: .92rem !important;
  }

  .bitnura-product-card .wp-block-woocommerce-product-button .wp-block-button__link,
  .bitnura-product-card .wc-block-components-product-button__button,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-button__button {
    min-height: 40px;
    padding: .6rem .45rem;
    font-size: .78rem;
    line-height: 1.15;
  }

  .bitnura-catalog-empty {
    padding: 30px 20px !important;
  }
}


/* ==========================================================
   1.3.5 — My Account order details polish
   ========================================================== */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order {
  display: grid;
  gap: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order > p:first-of-type {
  margin: 0;
  color: var(--bitnura-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
  margin: 0;
}

.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details address {
  background: var(--bitnura-white);
  border: 1px solid var(--bitnura-line);
  border-radius: 22px;
  box-shadow: var(--bitnura-shadow);
}

.woocommerce-account .woocommerce-order-details {
  padding: 22px;
}

.woocommerce-account .woocommerce-order-details > h2,
.woocommerce-account .woocommerce-customer-details > h2,
.woocommerce-account .woocommerce-column__title {
  margin: 0 0 18px;
  color: var(--bitnura-ink);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.woocommerce-account .woocommerce-order-details .woocommerce-table--order-details,
.woocommerce-account .woocommerce-order-details .shop_table,
.woocommerce-account .woocommerce-customer-details .addresses {
  margin: 0;
}

.woocommerce-account .woocommerce-order-details table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--bitnura-line);
  border-radius: 16px;
  background: var(--bitnura-white);
}

.woocommerce-account .woocommerce-order-details table.shop_table thead th {
  padding: 16px 18px;
  background: #F8FAFC;
  color: #475569;
  border: 0;
  border-bottom: 1px solid var(--bitnura-line);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.woocommerce-account .woocommerce-order-details table.shop_table tbody td,
.woocommerce-account .woocommerce-order-details table.shop_table tfoot th,
.woocommerce-account .woocommerce-order-details table.shop_table tfoot td {
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--bitnura-line);
  vertical-align: middle;
}

.woocommerce-account .woocommerce-order-details table.shop_table tbody tr:first-child td {
  border-top: 0;
}

.woocommerce-account .woocommerce-order-details table.shop_table td.product-name a {
  color: var(--bitnura-ink);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-order-details table.shop_table td.product-name a:hover {
  color: var(--bitnura-blue);
}

.woocommerce-account .woocommerce-order-details table.shop_table td.product-name img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 14px;
  border: 1px solid var(--bitnura-line);
  background: #F8FAFC;
}

.woocommerce-account .woocommerce-order-details table.shop_table td.product-total,
.woocommerce-account .woocommerce-order-details table.shop_table tfoot td {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.woocommerce-account .woocommerce-order-details table.shop_table tfoot th {
  color: var(--bitnura-ink);
  font-weight: 700;
}

.woocommerce-account .woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-account .woocommerce-order-details table.shop_table tfoot tr:last-child td {
  font-size: 1.1rem;
  font-weight: 800;
}

.woocommerce-account .woocommerce-order-details table.shop_table .button,
.woocommerce-account .woocommerce-button,
.woocommerce-account .woocommerce-MyAccount-content .button {
  min-height: 44px;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  font-weight: 700;
}

.woocommerce-account .woocommerce-order-details .wc-item-meta {
  margin: 8px 0 0;
  padding: 0;
  color: var(--bitnura-muted);
  font-size: .92rem;
}

.woocommerce-account .woocommerce-order-details .wc-item-meta li,
.woocommerce-account .woocommerce-order-details .wc-item-meta p {
  margin: 0;
}

.woocommerce-account .woocommerce-customer-details address {
  padding: 22px 24px;
  font-style: normal;
  line-height: 1.8;
  color: var(--bitnura-muted);
}

.woocommerce-account .woocommerce-customer-details .woocommerce-column {
  margin-bottom: 20px;
}

.woocommerce-account .woocommerce-customer-details .woocommerce-column:last-child {
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-customer-details address strong,
.woocommerce-account .woocommerce-customer-details address b,
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
  color: var(--bitnura-ink);
}

.woocommerce-account .woocommerce-table--order-details .wc-item-downloads,
.woocommerce-account .woocommerce-order-downloads {
  margin-top: 14px;
}

@media (max-width: 782px) {
  .woocommerce-account .woocommerce-order-details {
    padding: 16px;
    border-radius: 18px;
  }

  .woocommerce-account .woocommerce-order-details > h2,
  .woocommerce-account .woocommerce-customer-details > h2,
  .woocommerce-account .woocommerce-column__title {
    margin-bottom: 14px;
    font-size: 1.4rem;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table thead {
    display: none;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table,
  .woocommerce-account .woocommerce-order-details table.shop_table tbody,
  .woocommerce-account .woocommerce-order-details table.shop_table tr,
  .woocommerce-account .woocommerce-order-details table.shop_table td,
  .woocommerce-account .woocommerce-order-details table.shop_table th,
  .woocommerce-account .woocommerce-order-details table.shop_table tfoot {
    display: block;
    width: 100%;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table tbody tr,
  .woocommerce-account .woocommerce-order-details table.shop_table tfoot tr {
    padding: 14px 14px 0;
    border-top: 1px solid var(--bitnura-line);
  }

  .woocommerce-account .woocommerce-order-details table.shop_table tbody tr:first-child {
    border-top: 0;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table tbody td,
  .woocommerce-account .woocommerce-order-details table.shop_table tfoot th,
  .woocommerce-account .woocommerce-order-details table.shop_table tfoot td {
    padding: 0 0 14px;
    border: 0;
    text-align: left;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table td.product-name {
    padding-bottom: 12px;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table td.product-total::before,
  .woocommerce-account .woocommerce-order-details table.shop_table tfoot td::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 6px;
    color: #64748B;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table tfoot th {
    padding-bottom: 6px;
  }

  .woocommerce-account .woocommerce-customer-details address {
    padding: 18px 18px;
    border-radius: 18px;
  }
}

/* ==========================================================
   1.3.8 — Classic checkout rebuilt around WooCommerce markup
   Keeps Brazilian-field/CEP compatibility and uses CSS areas
   that do not depend on legacy WooCommerce float behavior.
   ========================================================== */
.bitnura-classic-checkout-shell {
  min-height: 72vh;
}

.bitnura-checkout-container {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

.bitnura-checkout-heading {
  width: 100%;
  margin: 0 0 26px !important;
}

.bitnura-checkout-heading > * {
  max-width: 760px;
}

.bitnura-classic-checkout,
.bitnura-classic-checkout > .woocommerce,
.bitnura-classic-checkout .woocommerce {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.bitnura-classic-checkout .woocommerce-notices-wrapper,
.bitnura-classic-checkout .woocommerce-form-login-toggle,
.bitnura-classic-checkout .woocommerce-form-coupon-toggle {
  width: 100% !important;
  margin: 0 0 12px !important;
}

.bitnura-classic-checkout .woocommerce-info,
.bitnura-classic-checkout .woocommerce-message,
.bitnura-classic-checkout .woocommerce-error {
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 18px 14px 44px;
  border: 1px solid var(--bitnura-line);
  border-radius: 12px;
  background: var(--bitnura-white);
  box-shadow: none;
  font-size: .9rem;
  line-height: 1.5;
}

.bitnura-classic-checkout .woocommerce-info {
  border-color: #BFDBFE;
  background: #EFF6FF;
}

.bitnura-classic-checkout form.woocommerce-form-login,
.bitnura-classic-checkout form.checkout_coupon {
  width: 100% !important;
  margin: 10px 0 18px !important;
  padding: 20px;
  border: 1px solid var(--bitnura-line);
  border-radius: 16px;
  background: var(--bitnura-white);
  box-shadow: var(--bitnura-shadow);
}

/* The classic checkout has three direct structural children:
   #customer_details, #order_review_heading and #order_review.
   The heading is kept in the DOM for semantics but visually hidden;
   the review card paints its own title. From 1.4.4 onward the checkout
   follows the same vertical flow on desktop and mobile: customer data
   first, followed by the complete order review and payment section. */
.bitnura-classic-checkout form.checkout.woocommerce-checkout {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "customer"
    "review";
  gap: 24px;
  align-items: start;
  margin-top: 18px !important;
}

.bitnura-classic-checkout #customer_details,
.bitnura-classic-checkout #order_review_heading,
.bitnura-classic-checkout #order_review {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.bitnura-classic-checkout #customer_details {
  grid-area: customer;
  margin: 0 !important;
}

.bitnura-classic-checkout #customer_details::before,
.bitnura-classic-checkout #customer_details::after {
  display: none !important;
  content: none !important;
}

.bitnura-classic-checkout #order_review_heading {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bitnura-classic-checkout #customer_details .col-1,
.bitnura-classic-checkout #customer_details .col-2 {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
}

.bitnura-classic-checkout #customer_details .col-2:empty {
  display: none !important;
}

.bitnura-classic-checkout .woocommerce-billing-fields,
.bitnura-classic-checkout .woocommerce-shipping-fields,
.bitnura-classic-checkout .woocommerce-additional-fields {
  width: 100%;
  padding: 26px;
  border: 1px solid var(--bitnura-line);
  border-radius: 20px;
  background: var(--bitnura-white);
  box-shadow: var(--bitnura-shadow);
}

.bitnura-classic-checkout .woocommerce-shipping-fields + .woocommerce-additional-fields,
.bitnura-classic-checkout .woocommerce-additional-fields:not(:first-child) {
  margin-top: 20px;
}

.bitnura-classic-checkout .woocommerce-billing-fields > h3,
.bitnura-classic-checkout .woocommerce-shipping-fields > h3,
.bitnura-classic-checkout .woocommerce-additional-fields > h3 {
  margin: 0 0 20px;
  color: var(--bitnura-ink);
  font-size: 1.38rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.bitnura-classic-checkout .woocommerce-billing-fields__field-wrapper,
.bitnura-classic-checkout .woocommerce-shipping-fields__field-wrapper,
.bitnura-classic-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}

.bitnura-classic-checkout .form-row,
.bitnura-classic-checkout .form-row-first,
.bitnura-classic-checkout .form-row-last {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bitnura-classic-checkout .form-row-wide,
.bitnura-classic-checkout #billing_country_field,
.bitnura-classic-checkout #shipping_country_field,
.bitnura-classic-checkout #billing_address_1_field,
.bitnura-classic-checkout #shipping_address_1_field,
.bitnura-classic-checkout #billing_address_2_field,
.bitnura-classic-checkout #shipping_address_2_field,
.bitnura-classic-checkout #order_comments_field,
.bitnura-classic-checkout [id*="birth"],
.bitnura-classic-checkout [id*="gender"],
.bitnura-classic-checkout [id*="cpf"],
.bitnura-classic-checkout [id*="cnpj"],
.bitnura-classic-checkout [id*="postcode"],
.bitnura-classic-checkout [id*="neighborhood"],
.bitnura-classic-checkout [id*="bairro"],
.bitnura-classic-checkout [id*="number"],
.bitnura-classic-checkout [id*="numero"] {
  grid-column: 1 / -1;
}

.bitnura-classic-checkout .form-row label {
  display: block;
  margin: 0 0 7px;
  color: #374151;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.35;
}

.bitnura-classic-checkout .form-row .required {
  color: var(--bitnura-blue);
  text-decoration: none;
}

.bitnura-classic-checkout input.input-text,
.bitnura-classic-checkout textarea,
.bitnura-classic-checkout select,
.bitnura-classic-checkout .select2-container,
.bitnura-classic-checkout .select2-container .select2-selection--single {
  width: 100% !important;
  max-width: none !important;
}

.bitnura-classic-checkout input.input-text,
.bitnura-classic-checkout textarea,
.bitnura-classic-checkout select,
.bitnura-classic-checkout .select2-container .select2-selection--single {
  min-height: 48px;
  border: 1px solid #D5DAE3 !important;
  border-radius: 11px !important;
  background: #FFFFFF !important;
  color: var(--bitnura-ink) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: .95rem;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.bitnura-classic-checkout input.input-text,
.bitnura-classic-checkout select {
  padding: 0 13px;
}

.bitnura-classic-checkout textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

.bitnura-classic-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding-left: 13px;
  padding-right: 36px;
}

.bitnura-classic-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 8px;
}

.bitnura-classic-checkout input.input-text:focus,
.bitnura-classic-checkout textarea:focus,
.bitnura-classic-checkout select:focus,
.bitnura-classic-checkout .select2-container--focus .select2-selection--single,
.bitnura-classic-checkout .select2-container--open .select2-selection--single {
  border-color: var(--bitnura-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

.bitnura-classic-checkout .woocommerce-invalid input.input-text,
.bitnura-classic-checkout .woocommerce-invalid select,
.bitnura-classic-checkout .woocommerce-invalid .select2-selection {
  border-color: #DC2626 !important;
}

.bitnura-classic-checkout .woocommerce-validated input.input-text,
.bitnura-classic-checkout .woocommerce-validated select,
.bitnura-classic-checkout .woocommerce-validated .select2-selection {
  border-color: #86B99A !important;
}

.bitnura-classic-checkout #ship-to-different-address {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
}

.bitnura-classic-checkout #ship-to-different-address label,
.bitnura-classic-checkout .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.bitnura-classic-checkout #order_review {
  grid-area: review;
  align-self: start;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--bitnura-line);
  border-radius: 20px;
  background: var(--bitnura-white);
  box-shadow: var(--bitnura-shadow);
}

.bitnura-classic-checkout #order_review::before {
  content: "Seu pedido";
  display: block;
  margin: 0 0 18px;
  color: var(--bitnura-ink);
  font-size: 1.38rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.bitnura-classic-checkout #order_review table.shop_table,
.bitnura-classic-checkout #order_review table.woocommerce-checkout-review-order-table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin: 0 0 18px !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}

.bitnura-classic-checkout #order_review table.shop_table thead {
  display: table-header-group !important;
}

.bitnura-classic-checkout #order_review table.shop_table tbody {
  display: table-row-group !important;
}

.bitnura-classic-checkout #order_review table.shop_table tfoot {
  display: table-footer-group !important;
}

.bitnura-classic-checkout #order_review table.shop_table tr {
  display: table-row !important;
}

.bitnura-classic-checkout #order_review table.shop_table th,
.bitnura-classic-checkout #order_review table.shop_table td {
  display: table-cell !important;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid var(--bitnura-line);
  background: transparent !important;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
}

.bitnura-classic-checkout #order_review table.shop_table th:first-child,
.bitnura-classic-checkout #order_review table.shop_table td:first-child {
  width: 62%;
  padding-right: 14px;
}

.bitnura-classic-checkout #order_review table.shop_table th:last-child,
.bitnura-classic-checkout #order_review table.shop_table td:last-child {
  width: 38%;
}

.bitnura-classic-checkout #order_review table.shop_table thead th {
  padding-top: 0;
  color: #64748B;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bitnura-classic-checkout #order_review table.shop_table .product-name,
.bitnura-classic-checkout #order_review table.shop_table .product-name a {
  color: var(--bitnura-ink);
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}

.bitnura-classic-checkout #order_review table.shop_table .product-quantity {
  white-space: nowrap;
  font-weight: 700;
}

.bitnura-classic-checkout #order_review table.shop_table .product-total,
.bitnura-classic-checkout #order_review table.shop_table tfoot td {
  text-align: right;
}

.bitnura-classic-checkout #order_review table.shop_table .product-total,
.bitnura-classic-checkout #order_review table.shop_table tfoot tr:not(.woocommerce-shipping-totals):not(.shipping) td {
  white-space: nowrap;
}

.bitnura-classic-checkout #order_review table.shop_table .woocommerce-shipping-totals td,
.bitnura-classic-checkout #order_review table.shop_table tr.shipping td {
  white-space: normal;
}

.bitnura-classic-checkout #order_review #shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bitnura-classic-checkout #order_review #shipping_method li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.bitnura-classic-checkout #order_review table.shop_table tfoot th {
  color: #475569;
  font-weight: 650;
  text-align: left;
}

.bitnura-classic-checkout #order_review table.shop_table .order-total th,
.bitnura-classic-checkout #order_review table.shop_table .order-total td {
  padding-top: 17px;
  border-bottom: 0;
  color: var(--bitnura-ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.bitnura-classic-checkout #payment {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 14px;
  background: #F8FAFC;
}

.bitnura-classic-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 6px 16px;
  border-bottom: 1px solid var(--bitnura-line);
}

.bitnura-classic-checkout #payment ul.payment_methods li {
  padding: 12px 0;
}

.bitnura-classic-checkout #payment div.payment_box {
  margin: 10px 0 4px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #334155;
  font-size: .9rem;
  line-height: 1.6;
}

.bitnura-classic-checkout #payment div.payment_box::before {
  border-bottom-color: #EFF6FF;
}

.bitnura-classic-checkout #payment .place-order {
  padding: 18px 16px 16px;
}

.bitnura-classic-checkout #place_order,
.bitnura-classic-checkout .button.alt {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--bitnura-blue) !important;
  color: #fff !important;
  font-size: .96rem;
  font-weight: 800;
  box-shadow: none;
}

.bitnura-classic-checkout #place_order:hover,
.bitnura-classic-checkout .button.alt:hover {
  background: var(--bitnura-blue-dark) !important;
}

.bitnura-classic-checkout .woocommerce-privacy-policy-text,
.bitnura-classic-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--bitnura-muted);
  font-size: .84rem;
  line-height: 1.6;
}

.bitnura-classic-checkout [class*="bitnura-cep"],
.bitnura-classic-checkout .bitnura-cep-status {
  margin-top: 6px;
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .bitnura-classic-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "customer"
      "review";
    gap: 22px;
  }
}

@media (max-width: 840px) {
  .bitnura-classic-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "customer"
      "review";
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .bitnura-classic-checkout-shell {
    padding: 28px 14px 48px !important;
  }

  .bitnura-checkout-heading {
    margin-bottom: 20px !important;
  }

  .bitnura-checkout-heading h1 {
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .bitnura-classic-checkout .woocommerce-info,
  .bitnura-classic-checkout .woocommerce-message,
  .bitnura-classic-checkout .woocommerce-error {
    padding-right: 14px;
    font-size: .85rem;
  }

  .bitnura-classic-checkout .woocommerce-billing-fields,
  .bitnura-classic-checkout .woocommerce-shipping-fields,
  .bitnura-classic-checkout .woocommerce-additional-fields,
  .bitnura-classic-checkout #order_review {
    padding: 18px;
    border-radius: 16px;
  }

  .bitnura-classic-checkout .woocommerce-billing-fields__field-wrapper,
  .bitnura-classic-checkout .woocommerce-shipping-fields__field-wrapper,
  .bitnura-classic-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .bitnura-classic-checkout .form-row,
  .bitnura-classic-checkout .form-row-first,
  .bitnura-classic-checkout .form-row-last,
  .bitnura-classic-checkout .form-row-wide {
    grid-column: 1 !important;
  }

  .bitnura-classic-checkout #order_review::before {
    font-size: 1.28rem;
  }

  .bitnura-classic-checkout #order_review table.shop_table th,
  .bitnura-classic-checkout #order_review table.shop_table td {
    padding-block: 12px;
    font-size: .88rem;
  }

  .bitnura-classic-checkout #order_review table.shop_table th:first-child,
  .bitnura-classic-checkout #order_review table.shop_table td:first-child {
    width: 58%;
    padding-right: 10px;
  }

  .bitnura-classic-checkout #order_review table.shop_table th:last-child,
  .bitnura-classic-checkout #order_review table.shop_table td:last-child {
    width: 42%;
  }

  .bitnura-classic-checkout #payment ul.payment_methods,
  .bitnura-classic-checkout #payment .place-order {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Defensive reset for payment gateways that inherit theme list bullets. */
.bitnura-classic-checkout #payment ul.payment_methods,
.bitnura-classic-checkout #payment ul.payment_methods > li {
  list-style: none !important;
}

.bitnura-classic-checkout #payment ul.payment_methods > li::marker {
  content: none;
}

.bitnura-classic-checkout #payment img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}


/* ==========================================================
   1.4.1 — WooCommerce notices + viewport footer
   ========================================================== */

/* Keep the footer at the bottom of short pages without adding fake
   height to long pages. Gutenberg may render template parts either as
   direct children or inside a .wp-block-template-part wrapper, so both
   shapes are covered. */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
}

.wp-site-blocks {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > .wp-block-template-part:last-child,
.wp-site-blocks > footer:last-child,
.wp-site-blocks > .bitnura-footer:last-child {
  margin-top: auto !important;
}

.wp-site-blocks > .wp-block-template-part:last-child > .bitnura-footer {
  margin-top: 0 !important;
}

/* WooCommerce notices. The classic WooCommerce stylesheet floats CTA
   buttons to the right; in narrow notices that makes the action overlap
   or look detached. Use a real responsive flex layout instead. */
.woocommerce .woocommerce-notices-wrapper {
  width: 100%;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 0 0 16px !important;
  padding: 15px 18px 15px 48px !important;
  border: 1px solid #BFDBFE;
  border-top-width: 1px;
  border-radius: 14px;
  background: #EFF6FF;
  color: var(--bitnura-ink);
  box-shadow: none;
  font-size: .95rem;
  line-height: 1.55;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.woocommerce .woocommerce-error {
  display: block;
  border-color: #FECACA;
  background: #FEF2F2;
}

.woocommerce .woocommerce-message {
  border-color: #BBF7D0;
  background: #F0FDF4;
}

.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-error::before {
  top: 16px !important;
  left: 18px !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.woocommerce .woocommerce-info::after,
.woocommerce .woocommerce-message::after {
  display: none !important;
  content: none !important;
}

.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-message a.button {
  float: none !important;
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  margin: 0 0 0 auto !important;
  padding: .62rem 1rem !important;
  border: 1px solid var(--bitnura-blue) !important;
  border-radius: 999px !important;
  background: var(--bitnura-blue) !important;
  color: #fff !important;
  font-size: .84rem !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.woocommerce .woocommerce-info .button:hover,
.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-info a.button:hover,
.woocommerce .woocommerce-message a.button:hover {
  background: var(--bitnura-blue-dark) !important;
  border-color: var(--bitnura-blue-dark) !important;
  color: #fff !important;
}

.woocommerce .woocommerce-error li {
  margin: 0;
}

.woocommerce .woocommerce-error li + li {
  margin-top: 6px;
}

/* My Account empty-state notice gets a little extra separation from the
   page heading while preserving the plugin-owned content. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info:first-child,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message:first-child {
  margin-top: 4px !important;
}

@media (max-width: 600px) {
  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-message,
  .woocommerce .woocommerce-error {
    min-height: 0;
    padding: 14px 14px 14px 44px !important;
    border-radius: 12px;
    font-size: .9rem;
  }

  .woocommerce .woocommerce-info::before,
  .woocommerce .woocommerce-message::before,
  .woocommerce .woocommerce-error::before {
    top: 14px !important;
    left: 15px !important;
  }

  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-message {
    align-items: flex-start;
  }

  .woocommerce .woocommerce-info .button,
  .woocommerce .woocommerce-message .button,
  .woocommerce .woocommerce-info a.button,
  .woocommerce .woocommerce-message a.button {
    flex: 1 0 100%;
    width: 100%;
    margin: 4px 0 0 !important;
    text-align: center;
    white-space: normal;
  }
}


/* ==========================================================
   1.4.3 — Equal-height WooCommerce product cards
   ========================================================== */
/* Let every product item stretch to the tallest card in its row/carousel.
   This avoids arbitrary large min-heights and keeps the layout adaptive. */
.wc-block-product-template,
.wp-block-woocommerce-product-template {
  align-items: stretch !important;
}

.wc-block-product-template > .wc-block-product,
.wc-block-product-template > li,
.wp-block-woocommerce-product-template > .wc-block-product,
.wp-block-woocommerce-product-template > li {
  align-self: stretch !important;
  height: auto !important;
  min-height: 100% !important;
}

.wc-block-product-template > .wc-block-product,
.wc-block-product-template > li,
.wp-block-woocommerce-product-template > .wc-block-product,
.wp-block-woocommerce-product-template > li,
.single-product .wp-block-woocommerce-product-collection .wc-block-product {
  display: flex !important;
  flex-direction: column;
}

/* Product Collection can output slightly different item wrappers in grid and
   carousel modes. Cover both forms and make the Bitnura card fill the slide. */
.bitnura-product-card {
  display: flex !important;
  flex-direction: column !important;
}

.wc-block-product-template > .wc-block-product > .bitnura-product-card,
.wc-block-product-template > li > .bitnura-product-card,
.wp-block-woocommerce-product-template > .wc-block-product > .bitnura-product-card,
.wp-block-woocommerce-product-template > li > .bitnura-product-card {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}

/* Reserve the same title area everywhere. Three Manrope lines are enough for
   descriptive product names without making short cards look artificially tall. */
.bitnura-product-card .wp-block-post-title,
.bitnura-search-product-card .wp-block-post-title,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title {
  display: -webkit-box !important;
  flex: 0 0 auto !important;
  min-height: 4.05em !important;
  max-height: 4.05em;
  overflow: hidden !important;
  margin-top: .2rem !important;
  margin-bottom: 0 !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

/* Price stays directly above the action area; the action is pushed to the
   bottom, so both normal and "in cart" states keep identical card geometry. */
.bitnura-product-card .wp-block-woocommerce-product-price,
.bitnura-product-card .wc-block-components-product-price,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-price,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

.bitnura-product-card .wp-block-woocommerce-product-button,
.bitnura-product-card .wc-block-components-product-button,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-button,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-button {
  display: flex !important;
  align-items: flex-end;
  width: 100%;
  min-height: 46px;
  margin-top: .55rem !important;
}

.bitnura-product-card .wp-block-woocommerce-product-button .wp-block-button__link,
.bitnura-product-card .wc-block-components-product-button__button,
.bitnura-product-card .wp-block-woocommerce-product-button button,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-button__button,
.single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-button button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  line-height: 1.15;
  white-space: normal;
}

@media (max-width: 600px) {
  .bitnura-product-card .wp-block-post-title,
  .bitnura-search-product-card .wp-block-post-title,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title {
    min-height: 4.05em !important;
    max-height: 4.05em;
    -webkit-line-clamp: 3 !important;
  }

  .bitnura-product-card .wp-block-woocommerce-product-button,
  .bitnura-product-card .wc-block-components-product-button,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product .wp-block-woocommerce-product-button,
  .single-product .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-button {
    min-height: 42px;
  }
}
