/*
Theme Name: BioMinerals LLC
Theme URI: https://biomineralsllc.com
Author: BioMinerals LLC
Description: Tema oscuro, moderno y sofisticado para la tienda BioMinerals LLC, compatible con WooCommerce.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: biominerals-llc
*/

:root {
  --bm-bg: #050a07;
  --bm-surface: #0b1510;
  --bm-surface-2: #101f17;
  --bm-green: #174b36;
  --bm-green-light: #2f7655;
  --bm-gold: #c7a45a;
  --bm-gold-light: #ead697;
  --bm-cream: #f4f0e5;
  --bm-muted: #aeb9b2;
  --bm-border: rgba(199, 164, 90, 0.22);
  --bm-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --bm-radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bm-cream);
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 98, 69, 0.18), transparent 30rem),
    var(--bm-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.admin-bar .bm-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.bm-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.bm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--bm-gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bm-eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: var(--bm-gold);
}

.bm-section-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.bm-section-copy {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--bm-muted);
  font-size: 1.04rem;
}

.bm-button,
.button,
button.button,
input.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--bm-gold) !important;
  border-radius: 999px !important;
  color: #07110b !important;
  background: linear-gradient(135deg, var(--bm-gold-light), var(--bm-gold)) !important;
  box-shadow: 0 12px 34px rgba(199, 164, 90, 0.18);
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em;
  line-height: 1 !important;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.bm-button:hover,
.button:hover,
button.button:hover,
input.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  color: #07110b !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(199, 164, 90, 0.25);
}

.bm-button--ghost {
  color: var(--bm-cream) !important;
  background: rgba(5, 10, 7, 0.48) !important;
  backdrop-filter: blur(12px);
}

.bm-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(199, 164, 90, 0.15);
  background: rgba(5, 10, 7, 0.9);
  backdrop-filter: blur(18px);
}

.bm-header__inner {
  display: grid;
  min-height: 86px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
}

.bm-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.bm-brand img,
.bm-brand .custom-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.bm-brand__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.bm-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
}

.bm-nav a {
  position: relative;
  padding: 30px 0;
  color: #dce5df;
  font-size: 0.83rem;
  font-weight: 700;
}

.bm-nav a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--bm-gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.bm-nav a:hover::after,
.bm-nav .current-menu-item a::after {
  transform: scaleX(1);
}

.bm-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-icon-link {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bm-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  place-items: center;
}

.bm-icon-link svg {
  width: 19px;
  height: 19px;
}

.bm-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  color: #07110b;
  background: var(--bm-gold);
  font-size: 0.68rem;
  font-weight: 900;
  place-items: center;
}

.bm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bm-border);
  border-radius: 50%;
  color: var(--bm-cream);
  background: transparent;
}

.bm-hero {
  position: relative;
  min-height: min(820px, calc(100vh - 86px));
  overflow: hidden;
  background: #08100c;
  isolation: isolate;
}

.bm-hero__image {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.bm-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 4, 0.94) 0%, rgba(2, 7, 4, 0.7) 36%, rgba(2, 7, 4, 0.08) 70%),
    linear-gradient(0deg, var(--bm-bg) 0%, transparent 32%);
}

.bm-hero__inner {
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: 90px 140px;
}

.bm-hero__content {
  max-width: 610px;
}

.bm-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.bm-hero h1 em {
  color: var(--bm-gold-light);
  font-weight: 400;
}

.bm-hero__copy {
  max-width: 570px;
  margin: 28px 0 0;
  color: #d2dbd5;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.bm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 12px;
}

.bm-hero__facts {
  display: grid;
  max-width: 610px;
  margin-top: 50px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bm-fact {
  padding-top: 16px;
  border-top: 1px solid var(--bm-border);
}

.bm-fact strong {
  display: block;
  color: var(--bm-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.bm-fact span {
  display: block;
  margin-top: 4px;
  color: var(--bm-muted);
  font-size: 0.78rem;
}

.bm-categories {
  padding: 112px 0;
}

.bm-categories__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 30px;
}

.bm-category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bm-category-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  isolation: isolate;
}

.bm-category-card:nth-child(1),
.bm-category-card:nth-child(2) {
  grid-column: span 6;
}

.bm-category-card:nth-child(n+3) {
  min-height: 330px;
  grid-column: span 4;
}

.bm-category-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.bm-category-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 8, 4, 0.96), rgba(2, 8, 4, 0.08) 70%);
}

.bm-category-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.bm-category-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 400;
}

.bm-category-card span {
  display: inline-block;
  margin-top: 8px;
  color: var(--bm-gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bm-category-card:hover img {
  transform: scale(1.055);
}

.bm-featured {
  padding: 110px 0;
  border-block: 1px solid rgba(199, 164, 90, 0.12);
  background:
    radial-gradient(circle at 90% 20%, rgba(42, 112, 78, 0.2), transparent 28rem),
    var(--bm-surface);
}

.bm-featured__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 30px;
}

.bm-story {
  padding: 120px 0;
}

.bm-story__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(50px, 8vw, 110px);
}

.bm-story__media {
  position: relative;
}

.bm-story__media img {
  width: 100%;
  min-height: 580px;
  border: 1px solid var(--bm-border);
  border-radius: 44% 44% 24px 24px;
  box-shadow: var(--bm-shadow);
  object-fit: cover;
}

.bm-story__badge {
  position: absolute;
  right: -28px;
  bottom: 45px;
  display: grid;
  width: 140px;
  height: 140px;
  padding: 18px;
  border: 1px solid var(--bm-gold);
  border-radius: 50%;
  color: #07110b;
  background: var(--bm-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  text-align: center;
  place-items: center;
}

.bm-values {
  display: grid;
  margin-top: 35px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bm-value {
  padding: 22px;
  border: 1px solid var(--bm-border);
  border-radius: 18px;
  background: var(--bm-surface);
}

.bm-value strong {
  display: block;
  color: var(--bm-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
}

.bm-value span {
  display: block;
  margin-top: 5px;
  color: var(--bm-muted);
  font-size: 0.82rem;
}

.bm-cta {
  padding: 20px 0 120px;
}

.bm-cta__box {
  position: relative;
  display: grid;
  min-height: 380px;
  overflow: hidden;
  align-items: center;
  padding: clamp(38px, 7vw, 82px);
  border: 1px solid var(--bm-border);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(5, 12, 8, 0.98), rgba(5, 12, 8, 0.62)),
    url("assets/images/category-supplements.webp") center/cover;
  box-shadow: var(--bm-shadow);
}

.bm-cta__content {
  max-width: 650px;
}

.bm-main {
  min-height: 55vh;
  padding: 70px 0 110px;
}

.bm-page-header {
  padding: 65px 0 42px;
  border-bottom: 1px solid var(--bm-border);
  background: var(--bm-surface);
}

.bm-page-header h1,
.bm-main h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.bm-content {
  color: #d7dfda;
}

.bm-content a {
  color: var(--bm-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bm-footer {
  padding: 75px 0 24px;
  border-top: 1px solid var(--bm-border);
  background: #030704;
}

.bm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 50px;
}

.bm-footer h3,
.bm-footer h4 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.bm-footer h3 {
  color: var(--bm-gold-light);
  font-size: 1.8rem;
}

.bm-footer p,
.bm-footer li,
.bm-footer a {
  color: var(--bm-muted);
  font-size: 0.9rem;
}

.bm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bm-footer li + li {
  margin-top: 9px;
}

.bm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 20px;
  border-top: 1px solid rgba(199, 164, 90, 0.12);
  color: #819087;
  font-size: 0.76rem;
  gap: 20px;
}

.bm-whatsapp {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: #1f9d59;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  font-weight: 800;
  gap: 10px;
}

.bm-whatsapp svg {
  width: 21px;
  height: 21px;
}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 26px;
  color: var(--bm-muted);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--bm-gold-light);
}

.woocommerce ul.products {
  display: grid;
  margin: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 18px 18px 22px;
  border: 1px solid var(--bm-border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(22, 43, 31, 0.92), rgba(7, 16, 11, 0.96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #07100b;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-top: 18px;
  color: var(--bm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 400;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--bm-gold-light);
  font-weight: 800;
}

.woocommerce span.onsale {
  top: 10px;
  left: 10px;
  min-width: auto;
  min-height: auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #07110b;
  background: var(--bm-gold);
  line-height: 1;
}

.woocommerce div.product {
  padding: 30px;
  border: 1px solid var(--bm-border);
  border-radius: 24px;
  background: var(--bm-surface);
}

.woocommerce div.product div.images img {
  border-radius: 18px;
}

.woocommerce div.product .product_title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--bm-gold);
  color: var(--bm-cream);
  background: var(--bm-surface-2);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce select,
.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--bm-border);
  border-radius: 10px;
  color: var(--bm-cream);
  background: #07100b;
}

.woocommerce table.shop_table {
  overflow: hidden;
  border-color: var(--bm-border);
  border-radius: 16px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--bm-border);
}

.woocommerce-checkout #payment {
  color: var(--bm-cream);
  background: var(--bm-surface-2);
}

@media (max-width: 980px) {
  body.admin-bar .bm-header {
    top: 46px;
  }

  .bm-header__inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .bm-brand img,
  .bm-brand .custom-logo {
    width: 50px;
    height: 50px;
  }

  .bm-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 26px;
    border-bottom: 1px solid var(--bm-border);
    background: rgba(5, 10, 7, 0.98);
  }

  .bm-nav.is-open {
    display: block;
  }

  .bm-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .bm-nav a {
    display: block;
    padding: 12px 0;
  }

  .bm-nav a::after {
    bottom: 6px;
    transform-origin: left;
  }

  .bm-menu-toggle {
    display: block;
  }

  .bm-header__actions .bm-account-link {
    display: none;
  }

  .bm-hero {
    min-height: 740px;
  }

  .bm-hero::before {
    background:
      linear-gradient(90deg, rgba(2, 7, 4, 0.9), rgba(2, 7, 4, 0.28)),
      linear-gradient(0deg, var(--bm-bg), transparent 50%);
  }

  .bm-category-card:nth-child(n) {
    min-height: 340px;
    grid-column: span 6;
  }

  .bm-category-card:last-child {
    grid-column: 4 / span 6;
  }

  .bm-story__grid {
    grid-template-columns: 1fr;
  }

  .bm-story__media {
    max-width: 650px;
  }

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

@media (max-width: 680px) {
  .bm-container {
    width: min(100% - 28px, 1180px);
  }

  .bm-brand__text {
    font-size: 0.98rem;
  }

  .bm-header__actions {
    gap: 6px;
  }

  .bm-header__actions .bm-whatsapp-header {
    display: none;
  }

  .bm-hero {
    min-height: 700px;
  }

  .bm-hero__image {
    object-position: 60% center;
  }

  .bm-hero__inner {
    align-items: end;
    padding-block: 100px 95px;
  }

  .bm-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .bm-hero__facts {
    grid-template-columns: 1fr;
  }

  .bm-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .bm-categories,
  .bm-featured,
  .bm-story {
    padding-block: 80px;
  }

  .bm-categories__heading,
  .bm-featured__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bm-category-card:nth-child(n),
  .bm-category-card:last-child {
    min-height: 320px;
    grid-column: 1 / -1;
  }

  .bm-story__media img {
    min-height: 440px;
  }

  .bm-story__badge {
    right: 12px;
    bottom: 18px;
    width: 112px;
    height: 112px;
    font-size: 0.9rem;
  }

  .bm-values {
    grid-template-columns: 1fr;
  }

  .bm-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bm-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .bm-whatsapp span {
    display: none;
  }

  .bm-whatsapp {
    width: 56px;
    padding: 0;
    justify-content: center;
  }
}
