/*
Theme Name: Slim Peptides Child
Template: botiga
Version: 1.0.0
Description: Custom child theme for Slim Peptides — precision research compounds.
Author: Slim Peptides
*/

/* CSS custom properties are in brand-tokens.css — edit that file to rebrand */

/* ===========================
   GLOBAL RESETS
   =========================== */

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
}

/* Zero radius rule — all interactive elements */
button,
input,
select,
textarea,
.button,
.btn,
.wp-element-button,
.wc-block-components-button {
  border-radius: 0 !important;
}

/* ===========================
   GOLD ORNAMENT UTILITY
   =========================== */

.sp-gold-ornament {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}

/* ===========================
   PDP — PRODUCT DETAIL PAGE
   =========================== */

.single-product .sp-pdp {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 40px;
}

.sp-pdp__gallery {
  padding-right: 48px;
}

.sp-pdp__main-image {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 12px;
}

.sp-pdp__main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.sp-pdp__thumbnail-strip {
  display: flex;
  gap: 8px;
}

.sp-pdp__thumb {
  width: 72px;
  height: 72px;
  background: #ffffff;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.sp-pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sp-pdp__thumb.active,
.sp-pdp__thumb:hover {
  border-color: var(--color-gold);
}

.sp-pdp__panel {
  position: sticky;
  top: 72px;
  align-self: flex-start;
  padding-left: 48px;
  border-left: 1px solid rgba(28, 28, 28, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-pdp__eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.45);
}

.sp-pdp__name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-dark);
  font-style: normal;
}

.sp-pdp__cas {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(28, 28, 28, 0.45);
}

.sp-pdp__price {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark);
}

/* Variation Swatches overrides */
.sp-pdp__formulations .variable-items-wrapper .variable-item {
  padding: 8px 20px !important;
  border: 1px solid rgba(28, 28, 28, 0.2) !important;
  border-radius: 0 !important;
  font-family: var(--font-label) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  background: transparent !important;
  color: var(--color-dark) !important;
}

.sp-pdp__formulations .variable-items-wrapper .variable-item.selected,
.sp-pdp__formulations .variable-items-wrapper .variable-item:hover {
  border-color: var(--color-gold) !important;
}

/* COA download row */
.sp-pdp__coa-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(28, 28, 28, 0.1);
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
}

.sp-coa-label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(28, 28, 28, 0.65);
  flex: 1;
}

.sp-coa-link {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--color-dark);
  text-decoration: none;
}

.sp-coa-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
}

/* GOLD RULE #3 — only gold fill button on entire site */
.single-product .single_add_to_cart_button {
  background: var(--color-gold) !important;
  color: var(--color-dark) !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100%;
  font-family: var(--font-label) !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 16px 32px !important;
  cursor: pointer;
  transition: background 0.2s ease !important;
}

.single-product .single_add_to_cart_button:hover {
  background: #b8955a !important;
}

/* Trust mini strip below ATC */
.sp-pdp__trust-mini {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
}

.sp-pdp__trust-item {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.5);
}

/* Tabs */
.sp-pdp__content-tabs {
  grid-column: 1 / -1;
  margin-top: 64px;
  border-top: 1px solid rgba(28, 28, 28, 0.1);
  padding-top: 48px;
}

.sp-tab-nav {
  display: flex;
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
  margin-bottom: 40px;
}

.sp-tab-nav__item {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.45);
  padding: 12px 24px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.sp-tab-nav__item.active,
.sp-tab-nav__item:hover {
  color: var(--color-dark);
  border-bottom-color: var(--color-gold);
}

.sp-tab-panel {
  display: none;
}
.sp-tab-panel.active {
  display: block;
}

.sp-compound-profile {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.8);
  max-width: 680px;
}

/* Hide default WooCommerce tabs — we use custom tabs */
.single-product .woocommerce-tabs {
  display: none;
}

/* Hide default Botiga product summary elements we're replacing */
.single-product .entry-summary,
.single-product .woocommerce-product-gallery {
  display: none;
}

/* Outlined button utility */
.sp-btn-outline {
  display: inline-block;
  border: 1px solid var(--color-gold);
  background: var(--color-dark);
  color: var(--color-dark);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  border-radius: 0;
}

.sp-btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* ===========================
   MOBILE PDP
   =========================== */

@media (max-width: 768px) {
  .single-product .sp-pdp {
    grid-template-columns: 1fr;
    padding: 0 0 80px;
  }
  .sp-pdp__gallery {
    padding-right: 0;
  }
  .sp-pdp__panel {
    position: static;
    padding: 24px;
    border-left: none;
  }
  .sp-pdp__trust-mini {
    flex-wrap: wrap;
  }

  .sp-tab-nav {
    flex-wrap: wrap;
  }
  .sp-tab-nav__item {
    padding: 10px 16px;
    font-size: 11px;
  }

  .sp-pdp__content-tabs {
    padding: 24px;
    margin-top: 40px;
  }

  /* Sticky ATC bar on mobile */
  .sp-pdp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .sp-pdp-sticky-bar.visible {
    transform: translateY(0);
  }
  .sp-pdp-sticky-bar__name {
    flex: 1;
    font-family: var(--font-label);
    font-size: 12px;
    color: rgba(245, 245, 240, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sp-pdp-sticky-bar__btn {
    background: var(--color-gold);
    color: var(--color-dark);
    border: none;
    border-radius: 0;
    padding: 10px 20px;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
  }
}

/* ===========================
   PRODUCT CARDS (shared)
   =========================== */

.sp-product-card {
  background: var(--color-white);
  border-top: 2px solid var(--color-gold);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  animation: spCardReveal 0.5s ease forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

@keyframes spCardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-product-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.sp-product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  overflow: hidden;
}

.sp-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sp-product-card:hover .sp-product-card__image img {
  transform: scale(1.03);
}

.sp-product-card__category {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 16px 16px 0;
}

.sp-product-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  font-style: normal;
  color: var(--color-dark);
  padding: 8px 16px 0;
  line-height: 1.2;
}

.sp-product-card__price {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 8px 16px 0;
}

.sp-product-card__btn {
  display: block;
  text-align: center;
  margin: auto 16px 16px;
  padding: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.sp-product-card__btn:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* ===========================
   SHOP / ARCHIVE PAGE
   =========================== */

/* Hide WC default archive title — we render our own */
.woocommerce-products-header__title.page-title {
  display: none;
}

.sp-archive {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 40px;
}

.sp-archive__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
  margin-bottom: 40px;
}

.sp-archive__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-dark);
}

.sp-archive__count {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.45);
}

.sp-archive__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.sp-archive__sidebar {
  position: sticky;
  top: 80px;
}

.sp-sidebar__clear {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.45);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.sp-sidebar__clear:hover {
  color: var(--color-dark);
  text-decoration-color: var(--color-gold);
}

.sp-filter-group {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.sp-filter-group__label {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.45);
  margin-bottom: 14px;
  display: block;
}

.sp-filter-group__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-filter-group__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  color: rgba(28, 28, 28, 0.75);
  cursor: pointer;
}

.sp-filter-group__item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(28, 28, 28, 0.3);
  border-radius: 0;
  background: var(--color-dark);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.sp-filter-group__item input[type="checkbox"]:checked {
  border-color: var(--color-gold);
  background: var(--color-gold);
}

.sp-filter-group__item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 7px;
  border: 1.5px solid var(--color-dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Grid header */
.sp-archive__grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sp-sort-select {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  background: var(--color-dark);
  border: 1px solid rgba(28, 28, 28, 0.2);
  border-radius: 0;
  padding: 8px 28px 8px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231C1C1C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sp-archive__compounds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sp-archive__empty {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(28, 28, 28, 0.6);
  text-align: center;
  padding: 80px 0;
}

/* Load More — Gold Rule #1 */
.sp-archive__load-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 48px;
}

.sp-btn-load-more {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  border: 1px solid var(--color-gold);
  border-radius: 0;
  background: var(--color-dark);
  padding: 14px 40px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.sp-btn-load-more:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Filter overlay (mobile) */
.sp-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sp-filter-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Hide default WC elements that create visual artifacts */
.woocommerce-notices-wrapper:empty {
  display: none;
}

/* Remove black bar from Botiga's product grid styling */
.sp-archive .woocommerce-result-count,
.sp-archive .woocommerce-ordering,
.sp-archive .botiga-sorting,
.product-category-item-layout1::before,
.product-category-item-layout1::after {
  display: none !important;
}

/* Ensure Botiga's site-main doesn't add borders or backgrounds on our pages */
.site-main.product-grid {
  border: none !important;
  background: transparent !important;
}

.site-main.product-grid::before,
.site-main.product-grid::after {
  display: none !important;
}

/* Mobile archive */
@media (max-width: 1024px) {
  .sp-archive__body {
    grid-template-columns: 1fr;
  }
  .sp-archive__sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background: var(--color-bg);
    z-index: 200;
    padding: 32px 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }
  .sp-archive__sidebar.open {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
  }
  .sp-filter-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(28, 28, 28, 0.2);
    border-radius: 0;
    background: transparent;
    padding: 10px 16px;
    cursor: pointer;
    margin-bottom: 24px;
  }
}

@media (min-width: 1025px) {
  .sp-filter-trigger {
    display: none;
  }
}

@media (max-width: 768px) {
  .sp-archive {
    padding: 32px 16px;
  }
  .sp-archive__compounds {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sp-archive__header {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */

/* Hide Botiga's offcanvas — we use our own */
.bhfb-mobile_offcanvas.botiga-offcanvas-menu {
  display: none !important;
}

.sp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sp-mobile-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.sp-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  height: 100dvh;
  background: var(--color-dark);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sp-mobile-nav.open {
  transform: translateX(0);
}

.sp-mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(245, 245, 240, 0.1);
  flex-shrink: 0;
}

.sp-mobile-nav__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245, 245, 240, 0.6);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.sp-mobile-nav__close:hover {
  color: #f5f5f0;
}

.sp-mobile-panel {
  position: absolute;
  top: 73px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sp-mobile-panel.active {
  transform: translateX(0);
}

.sp-mobile-panel--primary {
  transform: translateX(0);
}

.sp-mobile-panel--primary.slide-out {
  transform: translateX(-100%);
}

.sp-mobile-nav__list {
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
}

.sp-mobile-nav__link,
.sp-mobile-panel__back {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 240, 0.85);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid rgba(245, 245, 240, 0.06);
  transition:
    color 0.2s,
    background 0.2s;
}

.sp-mobile-nav__link:hover {
  color: #f5f5f0;
  background: rgba(245, 245, 240, 0.04);
}

.sp-mobile-panel__back {
  color: rgba(245, 245, 240, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(245, 245, 240, 0.1);
}

/* Gold Rule #1 — CTA inside drawer */
.sp-mobile-nav__cta {
  display: block;
  text-align: center;
  margin: 16px 24px 0;
  padding: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f5f0;
  border: 1px solid var(--color-gold);
  border-radius: 0;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.sp-mobile-nav__cta:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Only show mobile nav elements on mobile */
@media (min-width: 769px) {
  .sp-mobile-nav,
  .sp-mobile-overlay {
    display: none !important;
  }
}

/* ===========================
   CHECKOUT
   =========================== */

/* Hide default header on checkout */
body.woocommerce-checkout .bhfb-header,
body.woocommerce-checkout .bhfb-mobile {
  display: none;
}

.sp-checkout-header {
  background: var(--color-dark);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
}

.sp-checkout-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sp-checkout-header__secure {
  margin-left: auto;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  margin-bottom: 40px;
}

.sp-step {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.35);
}

.sp-step.active {
  color: var(--color-dark);
}

.sp-step-div {
  color: rgba(28, 28, 28, 0.2);
}

/* Form fields */
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid rgba(28, 28, 28, 0.2) !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  background: #ffffff !important;
  transition: border-color 0.2s !important;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--color-gold) !important;
  outline: none !important;
}

/* Section headings */
.woocommerce-checkout h3 {
  font-family: var(--font-label) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  color: rgba(28, 28, 28, 0.45) !important;
}

/* Confirm Order button — DARK, NOT GOLD (Gold Rule #3 is PDP only) */
.woocommerce-checkout #place_order {
  background: var(--color-dark) !important;
  color: #f5f5f0 !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100%;
  font-family: var(--font-label) !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 16px !important;
}

.woocommerce-checkout #place_order:hover {
  background: #333 !important;
}

/* Order summary panel */
.woocommerce-checkout #order_review {
  background: #ffffff;
  padding: 32px;
}

/* Checkout table — clean up */
.woocommerce-checkout .shop_table {
  border: none !important;
}

.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td {
  font-family: var(--font-body);
  font-size: 14px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08) !important;
  padding: 12px 0 !important;
}

.woocommerce-checkout .shop_table .product-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
}

/* Mobile checkout */
@media (max-width: 768px) {
  .sp-checkout-header {
    padding: 0 16px;
  }
  .sp-checkout-steps {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 16px;
  }
  .sp-step {
    font-size: 10px;
  }
  .woocommerce-checkout #order_review {
    padding: 16px;
  }
}

/* ===========================
   SEARCH OVERLAY
   =========================== */

.sp-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sp-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sp-search-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(245, 245, 240, 0.5);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.sp-search-overlay__close:hover {
  color: #f5f5f0;
}

.sp-search-overlay__form {
  width: min(600px, 90%);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-search-overlay__input {
  font-family: var(--font-heading);
  font-size: 28px;
  font-style: italic;
  color: #f5f5f0;
  background: var(--color-dark);
  border: none;
  border-bottom: 1px solid rgba(245, 245, 240, 0.3);
  border-radius: 0;
  padding: 12px 0;
  width: 100%;
  outline: none;
  caret-color: var(--color-gold);
  transition: border-bottom-color 0.2s ease;
}

.sp-search-overlay__input::placeholder {
  color: rgba(245, 245, 240, 0.35);
  font-style: italic;
}

.sp-search-overlay__input:focus {
  border-bottom-color: var(--color-gold);
}

.sp-search-results {
  width: 100%;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.sp-search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 245, 240, 0.08);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.sp-search-result-item:hover {
  background: rgba(245, 245, 240, 0.04);
  padding-left: 8px;
}

.sp-search-result-item__image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(245, 245, 240, 0.05);
  flex-shrink: 0;
}

.sp-search-result-item__name {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #f5f5f0;
  flex: 1;
}

.sp-search-result-item__cat {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.45);
}

.sp-search-empty {
  width: 100%;
  margin-top: 32px;
  text-align: center;
}

.sp-search-empty__copy {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  color: rgba(245, 245, 240, 0.6);
  margin-bottom: 20px;
}

/* Gold Rule #1 — empty state CTA */
.sp-search-empty__cta {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f5f0;
  border: 1px solid var(--color-gold);
  border-radius: 0;
  padding: 12px 24px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.sp-search-empty__cta:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Hide Botiga's default search dropdown */
.bhfb-component-search .search-toggle-form,
.botiga-search-results {
  display: none !important;
}

@media (max-width: 768px) {
  .sp-search-overlay__input {
    font-size: 22px;
  }
}

/* ===========================
   SLIM PRECISION PROTOCOL™ PAGE
   =========================== */

.sp-protocol-page {
  background: var(--color-bg);
}

.sp-protocol-hero {
  background: var(--color-dark);
  padding: 96px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sp-protocol-hero__eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.5);
}

.sp-protocol-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-style: italic;
  font-weight: 500;
  color: #f5f5f0;
  line-height: 1.1;
}

.sp-protocol-hero__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(245, 245, 240, 0.65);
  max-width: 480px;
}

.sp-protocol-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
}

.sp-protocol-steps::before {
  content: "";
  position: absolute;
  top: 124px;
  left: calc(40px + 16px);
  right: calc(40px + 16px);
  height: 1px;
  background: rgba(28, 28, 28, 0.12);
  pointer-events: none;
}

.sp-protocol-step {
  padding: 0 32px;
  position: relative;
}

.sp-protocol-step:first-child {
  padding-left: 0;
}

.sp-protocol-step:last-child {
  padding-right: 0;
}

.sp-protocol-step + .sp-protocol-step {
  border-left: 1px solid rgba(28, 28, 28, 0.08);
}

.sp-protocol-step__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 400;
  line-height: 1;
  color: rgba(28, 28, 28, 0.06);
  margin-bottom: -32px;
  user-select: none;
}

.sp-protocol-step__heading {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  font-style: normal;
}

.sp-protocol-step__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.65);
}

.sp-protocol-cta {
  background: var(--color-dark);
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.sp-protocol-cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: #f5f5f0;
}

/* Protocol CTA button inherits .sp-btn-outline (Gold Rule #1) */

@media (max-width: 768px) {
  .sp-protocol-steps {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
  .sp-protocol-steps::before {
    display: none;
  }
  .sp-protocol-step {
    border-left: none !important;
    border-top: 1px solid rgba(28, 28, 28, 0.08);
    padding: 32px 0;
  }
  .sp-protocol-step:first-child {
    border-top: none;
  }
  .sp-protocol-hero {
    padding: 64px 24px;
  }
}

/* ===========================
   ANNOUNCEMENT BAR
   =========================== */

.sp-announcement-bar {
  background: var(--color-dark);
  height: 36px;
  overflow: hidden;
  position: relative;
  z-index: 101;
}

.sp-announcement-bar__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-announcement-bar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sp-announcement-bar__item.active {
  opacity: 1;
}

/* ===========================
   HEADER
   =========================== */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 40px;
  transition: background 0.3s ease;
  background: var(--color-dark);
}

.sp-header--scrolled {
  background: var(--color-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sp-header__nav--left {
  display: flex;
  gap: 24px;
}

.sp-header__link {
  font-family: var(--font-label) !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(245, 245, 240, 0.7) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.sp-header__link:hover {
  color: #f5f5f0 !important;
}

.sp-header__link.active {
  color: #f5f5f0 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-gold);
}

/* Override Botiga's default link colors inside header */
.sp-header a {
  color: rgba(245, 245, 240, 0.7) !important;
}

.sp-header a:hover {
  color: #f5f5f0 !important;
}

.sp-header .sp-header__logo {
  color: var(--color-gold) !important;
}

.sp-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sp-header--scrolled .sp-header__logo {
  color: #f5f5f0;
}

.sp-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-header__icon {
  color: rgba(245, 245, 240, 0.7);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.sp-header__icon:hover {
  color: #f5f5f0;
}

.sp-header__cart {
  position: relative;
}

.sp-header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gold Rule #1 — header CTA */
.sp-header__cta {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  background: var(--color-gold);
  border: none;
  border-radius: 0;
  padding: 8px 20px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.sp-header__cta:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Hide Botiga's default header — we use our own */
.bhfb.bhfb-header,
.bhfb.bhfb-mobile,
.bhfb-mobile_offcanvas {
  display: none !important;
}

/* Fix Botiga wrapper creating white gap below header */
.container.content-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.container.content-wrapper > .row.main-row {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure full-width sections break out of Botiga's container */
.sp-homepage,
.sp-homepage .sp-hero,
.sp-homepage .sp-trust-strip,
.sp-homepage .sp-product-section {
  max-width: none !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ===========================
   HERO SECTION
   =========================== */

.sp-hero {
  width: 100%;
  min-height: 50vh;
  background: var(--color-bg);
  display: flex;
  align-items: flex-end;
  padding: 0 40px 80px;
}

.sp-hero__content {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.05;
  color: var(--color-dark);
}

.sp-hero__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(28, 28, 28, 0.55);
  max-width: 420px;
}

/* Gold Rule #1 — hero CTA */
.sp-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 0;
  padding: 14px 28px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  width: fit-content;
}

.sp-hero__cta:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* ===========================
   TRUST STRIP
   =========================== */

.sp-trust-strip {
  background: var(--color-dark);
  padding: 20px 40px;
}

.sp-trust-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.sp-trust-strip__item {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5f5f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  white-space: nowrap;
}

.sp-trust-strip__item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.sp-trust-strip__divider {
  color: rgba(245, 245, 240, 0.2);
  font-size: 14px;
}

/* ===========================
   HOMEPAGE PRODUCT GRID
   =========================== */

.sp-product-section {
  background: var(--color-bg);
  padding: 80px 0;
}

.sp-product-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.sp-product-section__heading {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 40px;
}

.sp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===========================
   FOOTER
   =========================== */

/* Hide Botiga's default footer */
.bhfb.bhfb-footer {
  display: none !important;
}

.sp-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-gold);
  padding: 48px 40px 0;
}

.sp-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.sp-footer__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  color: #f5f5f0;
}

.sp-footer__nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.sp-footer__nav a {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 240, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-footer__nav a:hover {
  color: #f5f5f0;
}

.sp-footer__legal {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}

.sp-footer__legal span,
.sp-footer__legal a {
  font-family: var(--font-label);
  font-size: 12px;
  color: rgba(245, 245, 240, 0.4);
  text-decoration: none;
}

.sp-footer__legal a:hover {
  color: rgba(245, 245, 240, 0.7);
}

.sp-footer__disclaimer {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(245, 245, 240, 0.35);
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 245, 240, 0.08);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ===========================
   MOBILE RESPONSIVE — HOMEPAGE
   =========================== */

@media (max-width: 1024px) {
  .sp-header__nav--left {
    display: none;
  }
  .sp-header__cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .sp-hero {
    min-height: 40vh;
    padding: 0 24px 48px;
    align-items: flex-start;
    padding-top: 48px;
  }
  .sp-trust-strip {
    padding: 16px 24px;
  }
  .sp-trust-strip__inner {
    gap: 4px 0;
  }
  .sp-trust-strip__item {
    font-size: 9px;
    padding: 4px 8px;
  }
  .sp-trust-strip__divider {
    display: none;
  }
  .sp-product-section__inner {
    padding: 0 24px;
  }
  .sp-product-section__heading {
    font-size: 36px;
  }
  .sp-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sp-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .sp-footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .sp-footer__legal {
    justify-content: center;
    flex-wrap: wrap;
  }
  .sp-footer {
    padding: 32px 24px 0;
  }
}

@media (max-width: 480px) {
  .sp-product-grid {
    grid-template-columns: 1fr;
  }
}
