/*
 * Librería Divi 5 starter styles — v1.5.6
 *
 * Scoped to the LBR layouts so default Divi, WooCommerce checkout, account,
 * cart, and unrelated pages keep their existing behavior.
 */

:root {
  --lbr-ink: #23313a;
  --lbr-muted: #5c6770;
  --lbr-teal: #007e73;
  --lbr-teal-dark: #005f58;
  --lbr-teal-soft: #e8f4f1;
  --lbr-gold: #ffca32;
  --lbr-paper: #ffffff;
  --lbr-soft: #f3f3f2;
  --lbr-line: #d2d8d7;
  --lbr-shadow: 0 2px 8px rgba(17, 39, 48, 0.2);
  --lbr-hero-preview-image: url('../images/bookstore-preview-v1.png');
  --lbr-video-preview-image: url('../images/bookstore-preview-v1.png');
}

.lbr-page,
.lbr-product-template,
.lbr-site-header,
.lbr-site-footer,
.lbr-related-section {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.lbr-page h1,
.lbr-page h2,
.lbr-page h3,
.lbr-product-template h1,
.lbr-product-template h2,
.lbr-product-template h3,
.lbr-site-footer h2,
.lbr-site-footer h3 {
  color: var(--lbr-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

/* Header: compact bookstore-style navigation. */
.lbr-site-header.et_pb_section {
  background: var(--lbr-paper);
  padding: 0;
}

.lbr-site-header .et_pb_row {
  max-width: 1180px;
  width: 92%;
}

.lbr-header-main {
  align-items: center;
  padding-bottom: 11px;
  padding-top: 17px;
}

.lbr-brand {
  line-height: 1;
}

.lbr-brand a {
  align-items: center;
  color: var(--lbr-ink);
  display: inline-flex;
  font-size: clamp(1.2rem, 2.1vw, 1.86rem);
  font-weight: 800;
  gap: 13px;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}

.lbr-brand-mark {
  background: var(--lbr-teal);
  box-shadow: 8px 0 0 #21a395, 16px 0 0 #8bd2c8;
  display: block;
  height: 28px;
  transform: skew(-10deg);
  width: 5px;
}

.lbr-brand-name {
  display: grid;
  gap: 0;
  line-height: 0.9;
}

.lbr-brand-name span {
  color: #333a40;
  display: block;
  margin: 0;
}

.lbr-brand-title {
  color: var(--lbr-ink);
  display: block;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.lbr-brand-books {
  color: var(--lbr-teal);
  letter-spacing: -0.04em;
  margin: 0;
  white-space: nowrap;
}

.lbr-search-form {
  display: flex;
  margin: 0 auto;
  max-width: 660px;
}

.lbr-search-form input {
  border: 1px solid var(--lbr-teal);
  border-radius: 4px 0 0 4px;
  color: var(--lbr-ink);
  font-size: 14px;
  height: 42px;
  min-width: 0;
  padding: 0 13px;
  width: 100%;
}

.lbr-search-form button {
  background: var(--lbr-teal);
  border: 1px solid var(--lbr-teal);
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  font-size: 21px;
  height: 42px;
  line-height: 1;
  padding: 0 15px;
}

.lbr-header-actions {
  text-align: right;
  white-space: normal;
}

.lbr-header-actions .et_pb_text_inner,
.lbr-header-actions .et_pb_text_inner > p {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.lbr-header-actions .et_pb_text_inner > p {
  margin: 0;
}

.lbr-header-actions a {
  color: var(--lbr-ink);
  font-size: 14px;
  font-weight: 700;
  margin-left: 0;
  text-decoration: none;
}

.lbr-header-actions .lbr-whatsapp-number {
  color: var(--lbr-teal-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  order: -1;
  white-space: nowrap;
}

.lbr-header-actions .lbr-whatsapp-number__label {
  color: var(--lbr-ink);
}

.lbr-header-actions a:hover,
.lbr-header-nav a:hover {
  color: var(--lbr-teal);
}

.lbr-header-navigation-row {
  padding-bottom: 0;
  padding-top: 0;
}

.lbr-header-nav {
  border-bottom: 1px solid var(--lbr-line);
  border-top: 1px solid var(--lbr-line);
  padding: 10px 0;
  text-align: left;
}

.lbr-header-nav a {
  color: var(--lbr-ink);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 21px 0 0;
  text-decoration: none;
}

/* The unified Inicio catalog. */
.lbr-catalog-page.et_pb_section {
  background: var(--lbr-paper);
  padding-top: 0;
}

.lbr-catalog-page .et_pb_row {
  max-width: 1180px;
  width: 92%;
}

.lbr-promo-row {
  padding-bottom: 0;
  padding-top: 3px;
}

.lbr-promo {
  background: var(--lbr-gold);
  color: #212c33;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 700;
  margin-top: 0;
  padding: 14px 24px;
  text-align: center;
}

.lbr-catalog-title-row {
  padding-bottom: 2px;
  padding-top: 25px;
}

.lbr-catalog-intro {
  margin-bottom: 0;
}

.lbr-eyebrow {
  color: var(--lbr-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

/* Hide the old “Catálogo” eyebrow in an already-imported v1.5.2 homepage.
 * The refreshed layout removes the element entirely, but this keeps the
 * requested result visible as soon as the updated child theme is activated. */
.lbr-catalog-intro .lbr-eyebrow {
  display: none;
}

.lbr-catalog-intro h1 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 8px;
}

.lbr-catalog-intro p:not(.lbr-eyebrow) {
  color: var(--lbr-muted);
  margin-bottom: 0;
}

.lbr-catalog-shortcode-row {
  padding-top: 18px;
}

.lbr-unified-catalog {
  scroll-margin-top: 30px;
}

.lbr-catalog-toolbar {
  align-items: center;
  background: #efefef;
  border: 1px solid #cbcecd;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 58px;
  padding: 10px 16px;
}

.lbr-catalog-result-text {
  font-size: 15px;
  margin: 0;
}

.lbr-catalog-result-text span {
  font-weight: 800;
}

.lbr-sort-control {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  gap: 9px;
  white-space: nowrap;
}

.lbr-sort-control select {
  background: #fff;
  border: 1px solid #8c9697;
  border-radius: 2px;
  color: var(--lbr-ink);
  min-height: 34px;
  padding: 3px 30px 3px 9px;
}

.lbr-catalog-body {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 224px minmax(0, 1fr);
}

.lbr-filter-card {
  border-right: 1px solid var(--lbr-line);
  padding: 4px 18px 24px 0;
}

.lbr-filter-heading {
  border-bottom: 1px solid var(--lbr-line);
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.lbr-filter-heading h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
}

.lbr-filter-heading p {
  color: var(--lbr-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.lbr-filter-options {
  border: 0;
  margin: 0;
  padding: 0;
}

.lbr-filter-options legend {
  color: var(--lbr-ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 0;
}

.lbr-filter-options label {
  align-items: center;
  color: var(--lbr-ink);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  gap: 9px;
  margin: 10px 0;
}

.lbr-filter-options input {
  accent-color: var(--lbr-teal);
  height: 17px;
  margin: 0;
  width: 17px;
}

.lbr-catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lbr-catalog-card {
  background: var(--lbr-paper);
  border: 1px solid #d6d8d7;
  box-shadow: var(--lbr-shadow);
  min-width: 0;
}

.lbr-catalog-card[hidden] {
  display: none !important;
}

.lbr-catalog-card--book {
  display: grid;
  grid-template-columns: minmax(90px, 41%) minmax(0, 1fr);
  min-height: 255px;
}

.lbr-catalog-cover {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100%;
  padding: 14px 8px;
}

.lbr-catalog-cover img {
  box-shadow: 0 3px 7px rgba(22, 34, 39, 0.22);
  display: block;
  height: auto;
  max-height: 205px;
  object-fit: contain;
  width: auto;
}

.lbr-catalog-cover-placeholder {
  align-items: center;
  background: linear-gradient(145deg, var(--lbr-teal), #24333d);
  color: #fff;
  display: flex;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  height: 170px;
  justify-content: center;
  text-align: center;
  width: 110px;
}

.lbr-catalog-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 13px 13px 0;
}

.lbr-card-type {
  color: var(--lbr-teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.lbr-catalog-card h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 4px;
}

.lbr-catalog-card h2 a {
  color: var(--lbr-teal);
  text-decoration: none;
}

.lbr-card-author,
.lbr-card-excerpt {
  color: #313b41;
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 9px;
}

.lbr-card-excerpt {
  color: var(--lbr-muted);
}

.lbr-card-price {
  color: #b20e21;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  margin: auto 0 11px;
}

.lbr-card-price del {
  color: var(--lbr-muted);
  font-size: 12px;
  font-weight: 400;
}

.lbr-card-action {
  background: var(--lbr-gold);
  border: 1px solid #efb700;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(33, 33, 33, 0.2);
  color: #18262e !important;
  display: block;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
}

.lbr-card-action:hover {
  background: #efb91f;
}

.lbr-card-action--disabled {
  background: #ededed;
  border-color: #d6d6d6;
  box-shadow: none;
  color: #667176 !important;
  cursor: default;
}

.lbr-catalog-card--video {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lbr-video-cover {
  align-items: center;
  background-color: #24343e;
  background-image: linear-gradient(145deg, rgba(0, 126, 115, 0.68), rgba(17, 36, 47, 0.61)), var(--lbr-video-preview-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.lbr-video-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lbr-video-embed {
  height: 100%;
  width: 100%;
}

.lbr-video-embed iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.lbr-catalog-card--video .lbr-catalog-card-body {
  flex: 1;
  padding: 15px;
}

.lbr-video-play {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--lbr-teal);
  display: flex;
  font-size: 20px;
  height: 52px;
  justify-content: center;
  padding-left: 3px;
  width: 52px;
}

.lbr-catalog-empty,
.lbr-catalog-warning {
  background: var(--lbr-soft);
  border: 1px solid var(--lbr-line);
  color: var(--lbr-muted);
  padding: 20px;
}

/* Product detail: a compact three-column book record. */
.lbr-product-template.et_pb_section {
  background: var(--lbr-paper);
  padding-bottom: 25px;
  padding-top: 20px;
}

.lbr-product-template .et_pb_row,
.lbr-related-section .et_pb_row {
  max-width: 1180px;
  width: 92%;
}

.lbr-product-top-row {
  padding-bottom: 8px;
  padding-top: 0;
}

.lbr-product-top-row .woocommerce-breadcrumb {
  color: var(--lbr-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.lbr-product-top-row .woocommerce-breadcrumb a,
.lbr-back-link {
  color: var(--lbr-teal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.lbr-back-link {
  display: inline-block;
  margin-top: 2px;
}

.lbr-product-main-row {
  align-items: stretch;
  border-top: 1px solid var(--lbr-line);
  padding-bottom: 0;
  padding-top: 20px;
}

.lbr-product-cover-column {
  padding-right: 25px;
}

.lbr-product-info-column {
  border-left: 1px solid var(--lbr-line);
  padding-left: 25px;
  padding-right: 25px;
}

.lbr-product-buy-column {
  background: #fbfbfa;
  border-left: 1px solid var(--lbr-line);
  padding: 17px 19px !important;
}

.lbr-product-template .et_pb_wc_gallery img {
  box-shadow: 0 4px 11px rgba(22, 34, 39, 0.22);
}

.lbr-product-cover-note {
  color: var(--lbr-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 13px;
}

.lbr-product-template .et_pb_wc_title h1,
.lbr-product-template .product_title {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 5px;
}

.lbr-product-author {
  color: var(--lbr-teal);
  font-size: 15px;
  margin-bottom: 10px;
}

.lbr-product-author p {
  margin: 0;
}

.lbr-product-template .star-rating,
.lbr-product-template .woocommerce-product-rating {
  font-size: 13px;
  margin-bottom: 13px;
}

.lbr-product-template .et_pb_wc_description,
.lbr-product-template .woocommerce-variation-description {
  color: var(--lbr-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* The long WooCommerce product description has its own clear synopsis block
   instead of being squeezed into the small purchase column or a default tab. */
.lbr-product-synopsis {
  border-top: 1px solid var(--lbr-line);
  margin-top: 17px;
  padding-top: 14px;
}

.lbr-product-synopsis h2 {
  color: var(--lbr-teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}

.lbr-product-synopsis__content {
  color: var(--lbr-muted);
  font-size: 15px;
  line-height: 1.65;
}

.lbr-product-synopsis__content > :first-child {
  margin-top: 0;
}

.lbr-product-synopsis__content > :last-child {
  margin-bottom: 0;
}

.lbr-product-facts {
  border-top: 1px solid var(--lbr-line);
  margin-top: 19px;
  padding-top: 15px;
}

.lbr-product-facts h2 {
  color: var(--lbr-teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
}

.lbr-product-facts dl {
  margin: 0;
}

.lbr-product-facts dl div {
  display: grid;
  font-size: 14px;
  gap: 10px;
  grid-template-columns: 90px minmax(0, 1fr);
  line-height: 1.5;
  margin: 2px 0;
}

.lbr-product-facts dt {
  color: var(--lbr-muted);
  font-weight: 400;
  text-align: right;
}

.lbr-product-facts dd {
  margin: 0;
}

.lbr-buy-heading {
  border-bottom: 1px solid var(--lbr-line);
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.lbr-buy-heading h2 {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 5px;
}

.lbr-buy-heading p {
  color: var(--lbr-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.lbr-product-buy-column .et_pb_wc_price,
.lbr-product-buy-column .price {
  color: #b20e21 !important;
  font-size: 26px;
  font-weight: 800;
}

.lbr-product-buy-column .stock {
  color: var(--lbr-teal);
  font-size: 13px;
  font-weight: 700;
}

.lbr-product-buy-column form.cart {
  margin-top: 14px;
}

.lbr-product-buy-column form.cart .variations {
  font-size: 14px;
  margin-bottom: 14px;
}

.lbr-product-buy-column form.cart .variations label {
  color: var(--lbr-ink);
  font-weight: 800;
}

.lbr-product-buy-column form.cart select,
.lbr-product-buy-column form.cart input.qty {
  border: 1px solid #919b9d;
  border-radius: 2px;
  color: var(--lbr-ink);
  min-height: 38px;
  padding: 4px 8px;
}

.lbr-product-buy-column form.cart .single_add_to_cart_button,
.lbr-product-buy-column .woocommerce a.button {
  background: var(--lbr-gold) !important;
  border: 1px solid #efb700 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 4px rgba(33, 33, 33, 0.18);
  color: #18262e !important;
  font-size: 14px;
  font-weight: 800;
  padding: 0.78em 1em !important;
}

.lbr-product-buy-column form.cart .single_add_to_cart_button:hover,
.lbr-product-buy-column .woocommerce a.button:hover {
  background: #efb91f !important;
  border-color: #dca600 !important;
}

.lbr-buy-delivery {
  border-top: 1px solid var(--lbr-line);
  color: var(--lbr-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 16px;
  padding-top: 12px;
}

.lbr-buy-delivery ul {
  margin: 0;
  padding-left: 17px;
}

.lbr-buy-delivery li {
  margin-bottom: 8px;
}

.lbr-product-description-row {
  border-top: 1px solid var(--lbr-line);
  margin-top: 22px;
  padding-top: 16px;
}

.lbr-product-template .woocommerce-tabs ul.tabs {
  margin-bottom: 16px;
}

.lbr-product-template .woocommerce-tabs ul.tabs::before {
  border-bottom-color: var(--lbr-line);
}

.lbr-product-template .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  margin: 0 8px 0 0;
  padding: 0;
}

.lbr-product-template .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--lbr-teal);
}

.lbr-product-template .woocommerce-tabs ul.tabs li a {
  color: var(--lbr-ink);
  padding: 8px 10px;
}

.lbr-product-template .woocommerce-Tabs-panel {
  color: var(--lbr-muted);
  line-height: 1.65;
}

.lbr-related-section.et_pb_section {
  background: #f0f0f0;
  padding-bottom: 45px;
  padding-top: 36px;
}

.lbr-related-section .related > h2 {
  color: var(--lbr-ink);
  font-size: 25px;
  margin-bottom: 22px;
}

.lbr-related-section .woocommerce ul.products {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lbr-related-section .woocommerce ul.products li.product {
  background: #fff;
  box-shadow: 0 2px 7px rgba(22, 34, 39, 0.16);
  display: flex;
  flex-direction: column;
  float: none;
  margin: 0;
  padding: 12px;
  width: auto;
}

.lbr-related-section .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
}

.lbr-related-section .woocommerce ul.products li.product img,
.lbr-related-section .woocommerce ul.products li.product img.lbr-related-book-cover {
  background: #f7f7f5;
  box-shadow: 0 2px 5px rgba(22, 34, 39, 0.18);
  display: block;
  height: 225px !important;
  margin-bottom: 12px;
  object-fit: contain;
  width: 100% !important;
}

.lbr-related-section .woocommerce-loop-product__title {
  color: var(--lbr-teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 9px;
  min-height: 3.75em;
}

.lbr-related-section .price {
  color: #b20e21 !important;
  font-weight: 800;
  margin-top: auto;
}

.lbr-related-section .button {
  background: var(--lbr-gold) !important;
  border: 1px solid #efb700 !important;
  color: #18262e !important;
  font-size: 12px;
  font-weight: 800;
  margin-top: 12px;
}

/* Footer. */
.lbr-site-footer.et_pb_section {
  background: var(--lbr-ink);
  color: #dbe8e6;
  margin-top: 42px;
}

.lbr-site-footer h2,
.lbr-site-footer h3,
.lbr-site-footer a {
  color: #fff;
}

.lbr-site-footer p,
.lbr-site-footer a {
  font-size: 14px;
  line-height: 1.7;
}

.lbr-site-footer a {
  display: block;
  text-decoration: none;
}

.lbr-site-footer a:hover {
  color: #9ee7dc;
}

.lbr-footer-rule {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 18px;
  padding-top: 18px;
}

/* Mobile and tablet. */
@media (max-width: 980px) {
  .lbr-header-main {
    text-align: center;
  }

  .lbr-brand,
  .lbr-header-actions {
    margin-bottom: 14px;
    text-align: center;
  }

  .lbr-header-actions a:first-child {
    margin-left: 0;
  }

  .lbr-header-nav {
    text-align: center;
  }

  .lbr-header-nav a {
    margin: 5px 10px;
  }

  .lbr-catalog-body {
    grid-template-columns: 1fr;
  }

  .lbr-filter-card {
    border-bottom: 1px solid var(--lbr-line);
    border-right: 0;
    padding: 0 0 15px;
  }

  .lbr-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
  }

  .lbr-filter-options legend {
    width: 100%;
  }

  .lbr-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lbr-product-cover-column,
  .lbr-product-info-column,
  .lbr-product-buy-column {
    border-left: 0;
    border-top: 1px solid var(--lbr-line);
    padding: 22px 0 !important;
  }

  .lbr-product-cover-column {
    border-top: 0;
  }

  .lbr-related-section .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v1.5.6: a real 404 response should still feel like part of the bookstore,
 * instead of exposing Divi's English generic empty-result message. */
.lbr-not-found {
  background: var(--lbr-paper);
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
  padding: 58px 0 78px;
}

.lbr-not-found .container {
  max-width: 1180px;
  width: 92%;
}

.lbr-not-found__panel {
  border: 1px solid var(--lbr-line);
  box-shadow: 0 2px 8px rgba(17, 39, 48, 0.1);
  max-width: 700px;
  padding: 34px;
}

.lbr-not-found__eyebrow {
  color: var(--lbr-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.lbr-not-found h1 {
  color: var(--lbr-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.lbr-not-found__panel > p:not(.lbr-not-found__eyebrow) {
  color: var(--lbr-muted);
  margin: 0 0 8px;
}

.lbr-not-found__button {
  background: var(--lbr-gold);
  border: 1px solid #efb700;
  color: #1d2930;
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
  padding: 11px 17px;
  text-decoration: none;
}

.lbr-not-found__button:hover {
  background: #efb700;
  color: #1d2930;
}

@media (max-width: 600px) {
  .lbr-brand a {
    font-size: 1.18rem;
    gap: 10px;
  }

  .lbr-brand-mark {
    box-shadow: 6px 0 0 #21a395, 12px 0 0 #8bd2c8;
    width: 4px;
  }

  .lbr-header-actions,
  .lbr-header-actions .et_pb_text_inner,
  .lbr-header-actions .et_pb_text_inner > p {
    justify-content: flex-start;
    text-align: left;
  }

  .lbr-not-found {
    padding: 36px 0 54px;
  }

  .lbr-not-found__panel {
    padding: 25px 20px;
  }
}

@media (max-width: 600px) {
  .lbr-brand a::before {
    margin-right: 20px;
  }

  .lbr-search-form input {
    font-size: 13px;
  }

  .lbr-header-nav a {
    font-size: 13px;
  }

  .lbr-promo {
    font-size: 15px;
    padding: 12px 15px;
  }

  .lbr-catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .lbr-catalog-grid,
  .lbr-related-section .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .lbr-catalog-card--book {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .lbr-catalog-cover img {
    max-height: 205px;
  }

  .lbr-product-facts dl div {
    grid-template-columns: 75px minmax(0, 1fr);
  }
}

/*
 * The library is a full-width storefront, not a blog. Remove Divi's default
 * main sidebar on every public page while leaving footer widgets untouched.
 */
body.lbr-storefront-no-sidebar:not(.single-product) #main-content > .container {
  max-width: 1180px !important;
  width: 92% !important;
}

body.lbr-storefront-no-sidebar #main-content .container::before {
  display: none !important;
}

body.lbr-storefront-no-sidebar #left-area {
  float: none !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body.lbr-storefront-no-sidebar #sidebar {
  display: none !important;
}

body.single-product #main-content > .container {
  max-width: none !important;
  padding-top: 0 !important;
  width: 100% !important;
}

body.single-product #left-area > article,
body.single-product #left-area > .et_pb_post {
  margin-bottom: 0;
}

/* A shared compact visual language for all starter controls. */
.lbr-unified-catalog,
.lbr-unified-catalog button,
.lbr-unified-catalog input,
.lbr-unified-catalog select,
.lbr-product-template,
.lbr-product-template button,
.lbr-product-template input,
.lbr-product-template select,
.lbr-product-template .button,
.lbr-related-section .button {
  font-family: Arial, Helvetica, sans-serif !important;
}

.lbr-header-nav a.is-active {
  border-bottom: 2px solid var(--lbr-teal);
  color: var(--lbr-teal);
  font-weight: 800;
  padding-bottom: 3px;
}

/* Expanded catalog filters are deliberately compact, not a giant sidebar. */
.lbr-filter-card {
  padding-bottom: 18px;
}

.lbr-filter-options {
  border-bottom: 1px solid #e0e4e3;
  margin-bottom: 14px;
  padding-bottom: 11px;
}

.lbr-filter-options:last-of-type {
  margin-bottom: 12px;
}

.lbr-filter-options legend {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.lbr-filter-options label {
  font-size: 14px;
  margin: 7px 0;
}

.lbr-price-fields {
  display: grid;
  gap: 7px;
}

.lbr-price-fields label {
  align-items: center;
  display: grid;
  font-size: 12px;
  gap: 5px;
  grid-template-columns: 43px minmax(0, 1fr);
}

.lbr-price-fields input {
  border: 1px solid #aab3b3;
  border-radius: 2px;
  color: var(--lbr-ink);
  font-size: 13px;
  height: 32px;
  min-width: 0;
  padding: 5px 7px;
  width: 100%;
}

.lbr-price-filter p {
  color: var(--lbr-muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 8px 0 0;
}

.lbr-filter-note {
  color: var(--lbr-ink);
  display: grid;
  font-size: 13px;
  gap: 3px;
  margin: 3px 0 13px;
}

.lbr-filter-note strong {
  font-size: 14px;
}

.lbr-filter-note span {
  color: var(--lbr-muted);
}

.lbr-filter-reset {
  background: transparent;
  border: 1px solid #9aa5a6;
  border-radius: 3px;
  color: var(--lbr-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 10px;
  width: 100%;
}

.lbr-filter-reset:hover {
  border-color: var(--lbr-teal);
  color: var(--lbr-teal);
}

.lbr-card-action {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  min-height: 38px;
  padding: 10px 9px;
}

/* Product page: clean three-column book record with a readable buy panel. */
.lbr-product-template .et_pb_row,
.lbr-related-section .et_pb_row {
  max-width: 1240px;
}

.lbr-product-template .et_pb_wc_gallery .woocommerce-product-gallery__image img,
.lbr-product-template .et_pb_wc_gallery .et_pb_module_inner img {
  height: auto;
  margin-left: auto;
  margin-right: auto;
  max-height: 460px;
  object-fit: contain;
  width: auto;
}

.lbr-product-template .et_pb_wc_gallery .et_pb_module_inner {
  text-align: center;
}

.lbr-product-info-column {
  min-width: 0;
}

.lbr-product-template .et_pb_wc_title h1,
.lbr-product-template .product_title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(1.75rem, 2.7vw, 2.45rem) !important;
  letter-spacing: -0.02em;
}

.lbr-product-buy-column {
  background: #fbfbfa;
  border: 1px solid var(--lbr-line);
  border-radius: 3px;
  box-shadow: 0 2px 7px rgba(22, 34, 39, 0.11);
  min-width: 0;
}

.lbr-product-buy-column .et_pb_wc_price,
.lbr-product-buy-column .price,
.lbr-product-buy-column .woocommerce-variation-price .price {
  display: block;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.12 !important;
  overflow-wrap: normal;
  white-space: nowrap;
}

.lbr-product-buy-column form.cart .variations {
  margin-bottom: 12px;
  width: 100%;
}

.lbr-product-buy-column form.cart .variations select {
  background-color: #fff;
  font-size: 14px;
  max-width: 100%;
  width: 100%;
}

.lbr-product-buy-column form.cart .single_variation_wrap {
  display: grid;
  gap: 10px;
}

.lbr-product-buy-column form.cart .quantity {
  margin: 0 0 9px !important;
}

.lbr-product-buy-column form.cart .single_add_to_cart_button,
.lbr-product-buy-column .woocommerce a.button,
.lbr-related-section .woocommerce a.button {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  min-height: 42px;
  padding: 11px 14px !important;
  text-transform: none !important;
}

.lbr-product-buy-column form.cart .single_add_to_cart_button {
  width: 100%;
}

.lbr-product-facts dl div {
  font-size: 13px;
}

@media (min-width: 981px) {
  .lbr-product-main-row {
    display: grid !important;
    gap: 0;
    grid-template-columns: minmax(190px, 0.82fr) minmax(340px, 1.62fr) minmax(275px, 1.06fr);
  }

  .lbr-product-main-row > .et_pb_column {
    float: none !important;
    margin-right: 0 !important;
    width: auto !important;
  }

  .lbr-product-cover-column {
    padding-right: 28px !important;
  }

  .lbr-product-info-column {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .lbr-product-buy-column {
    margin-left: 12px;
  }
}

@media (max-width: 980px) {
  .lbr-filter-options {
    margin-bottom: 12px;
  }

  .lbr-price-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lbr-product-main-row {
    display: block !important;
  }

  .lbr-product-buy-column {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .lbr-price-fields {
    grid-template-columns: 1fr;
  }

  .lbr-product-template .et_pb_wc_title h1,
  .lbr-product-template .product_title {
    font-size: 1.8rem !important;
  }
}

/* v1.3 catalog rules: “Todo” never hides books because format is blank. */
.lbr-unified-catalog [data-lbr-book-filter][hidden] {
  display: none !important;
}

.lbr-filter-hint {
  color: var(--lbr-muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 7px 0 0;
}

.lbr-empty-reset {
  background: transparent;
  border: 0;
  color: var(--lbr-teal);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

/* Product purchase path: physical book, same-file free ebook, optional support. */
.lbr-product-buy-column .lbr-purchase-options {
  display: grid;
  gap: 12px;
}

.lbr-product-buy-column .lbr-purchase-panel {
  border-bottom: 1px solid var(--lbr-line);
  margin: 0;
  padding: 0 0 13px;
}

.lbr-product-buy-column .lbr-purchase-panel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lbr-product-buy-column .lbr-purchase-panel h2 {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

.lbr-product-buy-column .lbr-purchase-panel p {
  color: var(--lbr-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 9px;
}

.lbr-product-buy-column .lbr-purchase-panel__price {
  color: #b20e21 !important;
  font-size: 23px !important;
  font-weight: 800;
  line-height: 1.15 !important;
}

.lbr-product-buy-column .lbr-purchase-panel__detail,
.lbr-product-buy-column .lbr-purchase-panel__hint {
  font-size: 12px !important;
}

.lbr-product-buy-column .lbr-purchase-panel__stock {
  color: #b20e21 !important;
  font-weight: 700;
}

.lbr-physical-add-to-cart,
.lbr-support-form {
  margin: 0;
}

.lbr-action-button {
  background: var(--lbr-gold) !important;
  border: 1px solid #efb700 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 4px rgba(33, 33, 33, 0.18);
  color: #18262e !important;
  display: block;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.2 !important;
  min-height: 39px;
  padding: 10px 12px !important;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.lbr-action-button:hover {
  background: #efb91f !important;
  border-color: #dca600 !important;
}

.lbr-action-button--outline {
  background: #fff !important;
  color: var(--lbr-ink) !important;
}

.lbr-action-button--outline:hover {
  background: var(--lbr-teal-soft) !important;
  border-color: var(--lbr-teal) !important;
  color: var(--lbr-teal-dark) !important;
}

.lbr-product-buy-column .lbr-purchase-panel--free {
  background: var(--lbr-teal-soft);
  border: 1px solid #b8ded8;
  border-radius: 3px;
  padding: 12px;
}

.lbr-product-buy-column .lbr-purchase-panel--support {
  background: #fffdf6;
  border: 1px solid #f0d889;
  border-radius: 3px;
  padding: 12px;
}

.lbr-support-form__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 9px;
}

.lbr-support-form__amounts label {
  align-items: center;
  border: 1px solid #b4bdbc;
  border-radius: 3px;
  color: var(--lbr-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  gap: 4px;
  margin: 0;
  padding: 7px 8px;
}

.lbr-support-form__amounts input {
  accent-color: var(--lbr-teal);
  margin: 0;
}

.lbr-support-form__custom {
  color: var(--lbr-ink);
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  margin: 0 0 10px;
}

.lbr-support-form__custom input {
  border: 1px solid #aab3b3;
  border-radius: 2px;
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  min-height: 35px;
  padding: 6px 8px;
}

/* My Account → Mi biblioteca digital. */
.lbr-digital-library {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.lbr-digital-library__heading {
  border-bottom: 1px solid var(--lbr-line);
  margin-bottom: 18px;
  padding-bottom: 13px;
}

.lbr-digital-library__heading h2 {
  color: var(--lbr-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  margin: 0 0 7px;
}

.lbr-digital-library__heading p,
.lbr-digital-library__empty,
.lbr-digital-library__body p {
  color: var(--lbr-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.lbr-digital-library__empty {
  background: var(--lbr-soft);
  border: 1px solid var(--lbr-line);
  padding: 16px;
}

.lbr-digital-library__empty a,
.lbr-digital-library__body h3 a {
  color: var(--lbr-teal);
  font-weight: 800;
  text-decoration: none;
}

.lbr-digital-library__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lbr-digital-library__card {
  background: #fff;
  border: 1px solid var(--lbr-line);
  box-shadow: 0 2px 6px rgba(22, 34, 39, 0.12);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
}

.lbr-digital-library__cover {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 12px;
}

.lbr-digital-library__cover img {
  box-shadow: 0 2px 6px rgba(22, 34, 39, 0.2);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  width: auto;
}

.lbr-digital-library__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 14px 13px 0;
}

.lbr-digital-library__eyebrow {
  color: var(--lbr-teal) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 6px !important;
  text-transform: uppercase;
}

.lbr-digital-library__body h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 7px;
}

.lbr-digital-library__body .lbr-card-action {
  margin-top: auto;
}

@media (max-width: 600px) {
  .lbr-digital-library__grid {
    grid-template-columns: 1fr;
  }
}

/* Persistent cart feedback, compact contact link, and catalog titles. */
.lbr-header-cart {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.lbr-header-actions .lbr-cart-count {
  align-items: center;
  background: var(--lbr-teal);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  line-height: 1;
  margin-left: 1px;
  min-height: 18px;
  min-width: 18px;
  padding: 2px 5px;
}

.lbr-catalog-card--book {
  grid-template-columns: minmax(90px, 41%) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 285px;
}

.lbr-catalog-card--book .lbr-catalog-card-heading {
  grid-column: 1 / -1;
  padding: 14px 13px 0;
}

.lbr-catalog-card--book .lbr-catalog-card-heading h2 {
  margin: 0 0 3px;
}

.lbr-catalog-card--book .lbr-catalog-card-heading .lbr-card-author {
  color: var(--lbr-teal-dark);
  margin: 0;
}

.lbr-catalog-card--book .lbr-catalog-cover {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  padding: 12px 8px 14px;
}

.lbr-catalog-card--book .lbr-catalog-card-body {
  grid-column: 2;
  grid-row: 2;
  padding: 12px 13px 14px 0;
}

.lbr-physical-add-to-cart {
  display: grid;
  gap: 8px;
}

.lbr-physical-quantity {
  align-items: center;
  color: var(--lbr-ink);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.lbr-physical-quantity input {
  border: 1px solid #aab3b3;
  border-radius: 2px;
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  min-height: 34px;
  padding: 4px 6px;
  width: 62px;
}

.lbr-action-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.lbr-cart-feedback {
  color: var(--lbr-teal-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.lbr-cart-feedback.is-error {
  color: #b20e21;
}

@media (max-width: 600px) {
  .lbr-catalog-card--book {
    grid-template-columns: 108px minmax(0, 1fr);
  }
}

/* v1.5: catalog separation, un-cropped covers, and a native Cart that feels
 * like part of the same storefront rather than a default WordPress page. */
.lbr-book-results[hidden],
.lbr-video-section[hidden] {
  display: none !important;
}

.lbr-video-section {
  border-top: 2px solid var(--lbr-line);
  margin-top: 34px;
  padding-top: 24px;
}

.lbr-video-section__heading {
  margin: 0 0 16px;
}

.lbr-video-section__heading .lbr-eyebrow {
  margin-bottom: 4px;
}

.lbr-video-section__heading h2 {
  color: var(--lbr-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 5px;
}

.lbr-video-section__heading p:not(.lbr-eyebrow) {
  color: var(--lbr-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  margin: 0;
}

/* Use each original book-cover file, inside one fixed contain frame. This
 * avoids WooCommerce's square thumbnail crop while keeping every card tidy. */
.lbr-catalog-card--book .lbr-catalog-cover {
  min-height: 190px;
}

.lbr-catalog-card--book .lbr-catalog-cover img.lbr-catalog-cover-image {
  background: #f7f7f5;
  height: 170px !important;
  max-height: none !important;
  max-width: 106px;
  object-fit: contain;
  width: 100% !important;
}

.lbr-product-buy-column .lbr-purchase-panel--digital-choice {
  background: var(--lbr-teal-soft);
  border: 1px solid #b8ded8;
  border-radius: 3px;
  padding: 12px;
}

.lbr-digital-choice-form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lbr-digital-choice-form__options {
  border: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.lbr-digital-choice-form__options legend {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  padding: 0;
}

.lbr-digital-choice-form__option {
  align-items: center;
  background: #fff;
  border: 1px solid #b8c5c3;
  border-radius: 3px;
  color: var(--lbr-ink);
  cursor: pointer;
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  line-height: 1.25;
  margin: 0;
  padding: 8px;
}

.lbr-digital-choice-form__option:has(input:checked) {
  border-color: var(--lbr-teal);
  box-shadow: inset 0 0 0 1px var(--lbr-teal);
}

.lbr-digital-choice-form__option input {
  accent-color: var(--lbr-teal);
  margin: 0;
}

.lbr-digital-choice-form__option span {
  display: grid;
  gap: 2px;
}

.lbr-digital-choice-form__option strong {
  font-size: 12px;
}

.lbr-digital-choice-form__option small {
  color: var(--lbr-muted);
  font-size: 11px;
}

.lbr-digital-choice-form__option b {
  color: #b20e21;
  font-size: 14px;
  white-space: nowrap;
}

/* The Cart keeps WooCommerce's reliable markup but removes Divi's stock
 * sidebar and uses the same compact typography, lines, and buttons. */
body.lbr-storefront-cart #main-content > .container {
  max-width: 1180px !important;
  padding-bottom: 42px !important;
  padding-top: 30px !important;
  width: 92% !important;
}

body.lbr-storefront-cart #main-content .container::before,
body.lbr-storefront-cart #sidebar {
  display: none !important;
}

body.lbr-storefront-cart #left-area {
  float: none !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body.lbr-storefront-cart #left-area > article,
body.lbr-storefront-cart #left-area > .et_pb_post {
  margin-bottom: 0;
}

body.lbr-storefront-cart .woocommerce,
body.lbr-storefront-cart .woocommerce button,
body.lbr-storefront-cart .woocommerce input,
body.lbr-storefront-cart .woocommerce select {
  color: var(--lbr-ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.lbr-storefront-cart .woocommerce > .woocommerce-notices-wrapper,
body.lbr-storefront-cart .woocommerce > .woocommerce-cart-form,
body.lbr-storefront-cart .woocommerce > .cart-collaterals,
body.lbr-storefront-cart .woocommerce > .return-to-shop {
  max-width: 100%;
}

body.lbr-storefront-cart .woocommerce-cart-form,
body.lbr-storefront-cart .cart-collaterals .cart_totals,
body.lbr-storefront-cart .woocommerce-cart-form + .cart-collaterals {
  background: #fff;
  border: 1px solid var(--lbr-line);
  box-shadow: 0 2px 7px rgba(22, 34, 39, 0.1);
}

body.lbr-storefront-cart table.shop_table {
  border: 0;
  border-radius: 0;
  margin: 0;
}

body.lbr-storefront-cart table.shop_table th,
body.lbr-storefront-cart table.shop_table td {
  border-color: var(--lbr-line);
  font-size: 13px;
  padding: 13px 11px;
}

body.lbr-storefront-cart table.shop_table th {
  color: var(--lbr-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

body.lbr-storefront-cart .woocommerce-cart-form__cart-item .product-name a,
body.lbr-storefront-cart .cart_totals a {
  color: var(--lbr-teal-dark);
  font-weight: 800;
  text-decoration: none;
}

body.lbr-storefront-cart .woocommerce-cart-form__cart-item .product-thumbnail img {
  height: 92px;
  object-fit: contain;
  width: 64px;
}

body.lbr-storefront-cart .woocommerce a.remove {
  color: #b20e21 !important;
}

body.lbr-storefront-cart .woocommerce .quantity .qty,
body.lbr-storefront-cart .woocommerce input.input-text {
  border: 1px solid #aab3b3;
  border-radius: 2px;
  font-size: 13px;
  min-height: 34px;
  padding: 4px 7px;
}

body.lbr-storefront-cart .woocommerce button.button,
body.lbr-storefront-cart .woocommerce a.button,
body.lbr-storefront-cart .woocommerce .checkout-button {
  background: var(--lbr-gold) !important;
  border: 1px solid #efb700 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 4px rgba(33, 33, 33, 0.16);
  color: #18262e !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  min-height: 39px;
  padding: 10px 12px !important;
  text-transform: none !important;
}

body.lbr-storefront-cart .woocommerce button.button:disabled,
body.lbr-storefront-cart .woocommerce button.button:disabled[disabled] {
  background: #e7e9e8 !important;
  border-color: #d2d8d7 !important;
  color: #667176 !important;
}

body.lbr-storefront-cart .cart-collaterals {
  margin-top: 22px;
}

body.lbr-storefront-cart .cart-collaterals .cart_totals {
  float: none;
  margin-left: auto;
  padding: 18px;
  width: min(100%, 390px);
}

body.lbr-storefront-cart .cart-collaterals .cart_totals h2 {
  color: var(--lbr-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  margin: 0 0 12px;
}

body.lbr-storefront-cart .cart-collaterals .checkout-button {
  margin-bottom: 0;
  text-align: center;
}

@media (max-width: 600px) {
  .lbr-catalog-card--book .lbr-catalog-cover img.lbr-catalog-cover-image {
    height: 156px !important;
  }

  body.lbr-storefront-cart #main-content > .container {
    width: 90% !important;
  }

  body.lbr-storefront-cart table.shop_table th,
  body.lbr-storefront-cart table.shop_table td {
    font-size: 12px;
  }
}

/* v1.5.4: the small catalog is browsed directly from Inicio, so the global
 * header no longer needs a duplicate search field. These selectors also hide
 * the search column in an already-imported v1.5.3 header until the updated
 * Header global layout is imported. */
.lbr-header-main > .et_pb_column_1_2:has(.lbr-search-form) {
  display: none !important;
}

.lbr-header-main > .et_pb_column_1_4:has(.lbr-brand),
.lbr-header-main > .et_pb_column_1_4:has(.lbr-header-actions) {
  margin-right: 3% !important;
  width: 48.5% !important;
}

.lbr-header-main > .et_pb_column_1_4:has(.lbr-header-actions) {
  margin-right: 0 !important;
}

/* Related books may be generated either by the classic WooCommerce module or
 * by its block markup. Both versions use the same portrait-safe frame so an
 * original cover is contained instead of being cropped or stretching a card. */
.lbr-related-section .woocommerce ul.products,
.lbr-related-section .wc-block-grid__products {
  align-items: stretch;
  display: grid !important;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 !important;
}

.lbr-related-section .woocommerce ul.products li.product,
.lbr-related-section .wc-block-grid__product {
  background: #fff;
  box-shadow: 0 2px 7px rgba(22, 34, 39, 0.16);
  display: flex !important;
  flex-direction: column;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 14px;
  width: auto !important;
}

.lbr-related-section .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.lbr-related-section .wc-block-grid__product-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.lbr-related-section .woocommerce ul.products li.product img,
.lbr-related-section .woocommerce ul.products li.product img.lbr-related-book-cover,
.lbr-related-section .wc-block-grid__product-image img {
  background: #f7f7f5;
  box-shadow: none;
  display: block;
  height: 260px !important;
  margin: 0 0 14px !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  width: 100% !important;
}

.lbr-related-section .woocommerce-loop-product__title,
.lbr-related-section .wc-block-grid__product-title {
  color: var(--lbr-teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px !important;
  min-height: 4.1em;
}

.lbr-related-section .wc-block-grid__product-price,
.lbr-related-section .price {
  margin-top: auto;
}

@media (max-width: 980px) {
  .lbr-related-section .woocommerce ul.products,
  .lbr-related-section .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .lbr-brand a {
    column-gap: 11px;
    font-size: 1.45rem;
    grid-template-columns: 24px max-content max-content;
  }

  .lbr-brand-mark {
    height: 24px;
  }

  .lbr-header-main > .et_pb_column_1_4:has(.lbr-brand),
  .lbr-header-main > .et_pb_column_1_4:has(.lbr-header-actions) {
    margin-right: 0 !important;
    width: 100% !important;
  }

  .lbr-related-section .woocommerce ul.products,
  .lbr-related-section .wc-block-grid__products {
    grid-template-columns: 1fr;
  }

  .lbr-related-section .woocommerce ul.products li.product img,
  .lbr-related-section .woocommerce ul.products li.product img.lbr-related-book-cover,
  .lbr-related-section .wc-block-grid__product-image img {
    height: 235px !important;
  }
}

/*
 * v1.5.5 repair: Divi applies generous default section, row, column, and
 * module spacing. The small bookstore layout already supplies its own rhythm,
 * so reset only its named LBR blocks. This keeps Cart, Checkout, Mi cuenta,
 * and any unrelated Divi pages untouched.
 */
.lbr-site-header.et_pb_section {
  padding: 0 !important;
}

.lbr-site-header .et_pb_row {
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

.lbr-site-header .et_pb_row.lbr-header-main {
  padding: 13px 0 11px !important;
}

.lbr-site-header .et_pb_row.lbr-header-navigation-row {
  padding: 0 !important;
}

.lbr-site-header .et_pb_column,
.lbr-site-header .et_pb_module,
.lbr-catalog-page .et_pb_column,
.lbr-catalog-page .et_pb_module,
.lbr-product-template .et_pb_column,
.lbr-product-template .et_pb_module,
.lbr-related-section .et_pb_column,
.lbr-related-section .et_pb_module {
  margin-bottom: 0 !important;
}

.lbr-catalog-page.et_pb_section {
  padding: 0 0 36px !important;
}

.lbr-catalog-page .et_pb_row {
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

.lbr-catalog-page .et_pb_row.lbr-promo-row {
  padding-top: 14px !important;
}

.lbr-catalog-page .et_pb_row.lbr-catalog-title-row {
  padding-top: 26px !important;
}

.lbr-catalog-page .et_pb_row.lbr-catalog-shortcode-row {
  padding-top: 20px !important;
}

/* Keep the native product fallback compact as well. This is important when a
 * Theme Builder product body has not been assigned yet: it must not stretch
 * the WooCommerce gallery edge-to-edge across the browser window. */
body.single-product #main-content > .container {
  max-width: 1240px !important;
  padding-top: 0 !important;
  width: 92% !important;
}

.lbr-product-template.et_pb_section {
  padding: 0 0 32px !important;
}

.lbr-product-template .et_pb_row,
.lbr-related-section .et_pb_row {
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

.lbr-product-template .et_pb_row.lbr-product-top-row {
  padding-top: 18px !important;
  padding-bottom: 10px !important;
}

.lbr-product-template .et_pb_row.lbr-product-main-row {
  padding-top: 18px !important;
  padding-bottom: 8px !important;
}

.lbr-related-section.et_pb_section {
  padding: 30px 0 42px !important;
}

@media (max-width: 980px) {
  .lbr-site-header .et_pb_row.lbr-header-main {
    padding: 14px 0 8px !important;
  }

  .lbr-product-template .et_pb_row.lbr-product-main-row {
    padding-bottom: 0 !important;
  }
}

/* Keep the one-line wordmark compact after the older responsive starter
 * rules above have run. */
@media (max-width: 600px) {
  .lbr-brand a {
    column-gap: 10px;
    font-size: 1.18rem;
    gap: 10px;
    grid-template-columns: none;
  }
}
