/*
Theme Name: PeptaLux Research Hub Fixed
Theme URI: https://example.com/
Author: OpenAI
Version: 1.0.0
Description: Rebuilt WordPress + WooCommerce theme converted from Lovable/React.
Text Domain: peptalux-fixed
*/

/* =========================
   Global helpers
========================= */
.top-trust-bar {
  background: #0f172a;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.top-trust-bar .trust-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  text-transform: uppercase;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.site-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.desktop-nav a,
.mobile-nav a,
.header-icons a {
  text-decoration: none;
  color: #0f172a;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.header-icons a:hover {
  color: #2563eb;
}

.desktop-nav a.current {
  color: #2563eb;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.header-icons a {
  font-size: 14px;
  font-weight: 600;
}

.header-cart .peptalux-cart-count {
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  min-width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner,
.mobile-nav.section-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.page-section,
.page-section-sm {
  position: relative;
}

.feature-card,
.table-card,
.notice-box,
.stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.notice-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
}

.icon-circle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
}

.search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.text-muted {
  color: #64748b;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}

.step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* =========================
   Footer
========================= */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.82);
  margin-top: 64px;
}

.site-footer a {
  color: rgba(255,255,255,0.76);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 42px;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 15px;
}

.footer-grid p {
  margin: 0 0 10px;
  line-height: 1.65;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-desc {
  max-width: 340px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-trust span {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.03);
}

.footer-research {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.research-inner {
  max-width: 760px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.research-inner h4 {
  margin: 0 0 12px;
  color: #fff;
}

.research-inner p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.ruo-bold {
  font-weight: 700;
  color: rgba(255,255,255,0.96);
}

.ruo-small {
  font-size: 13px;
  color: rgba(255,255,255,0.56);
}

.footer-bottom {
  padding-top: 18px;
  padding-bottom: 18px;
}

.bottom-inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.48);
}

/* =========================
   Shop page
========================= */
.peptalux-shop-page .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1280px;
}

.peptalux-shop-page .products::before,
.peptalux-shop-page .products::after {
  display: none !important;
}

.peptalux-shop-page .products .product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.peptalux-shop-page .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
}

.peptalux-shop-page .woocommerce-ordering select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0 14px;
  color: #0f172a;
}

.peptalux-shop-page .button,
.peptalux-product-card .button,
.woocommerce-cart .button,
.woocommerce-cart a.checkout-button,
.wc-proceed-to-checkout a.button {
  min-height: 48px;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 700;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.peptalux-product-card .button,
.peptalux-shop-page .button {
  background: #0f172a !important;
  color: #fff !important;
  border: none !important;
  width: 100%;
}

.peptalux-product-card .button:hover,
.peptalux-shop-page .button:hover {
  background: #111827 !important;
}

.peptalux-product-card img {
  max-width: 100%;
  height: auto;
}

.peptalux-product-card .price {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.peptalux-product-card .price del {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  margin-right: 6px;
}

.peptalux-product-card .price ins {
  text-decoration: none;
}

/* =========================
   Cart page professional cleanup
========================= */
.woocommerce-cart .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
}

.woocommerce-cart .woocommerce-cart-form {
  margin-bottom: 0;
}

.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.woocommerce-cart table.shop_table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  background: #f8fafc;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cart table.shop_table td {
  padding: 20px 16px;
  vertical-align: middle;
  border-top: 1px solid #eef2f7;
}

.woocommerce-cart table.shop_table tr:first-child td {
  border-top: none;
}

.woocommerce-cart td.product-thumbnail img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.woocommerce-cart td.product-name a {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.35;
}

.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.woocommerce-cart .quantity .qty {
  width: 88px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  text-align: center;
  background: #fff;
}

.woocommerce-cart .product-remove a {
  width: 34px;
  height: 34px;
  line-height: 32px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827 !important;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
}

.woocommerce-cart .product-remove a:hover {
  background: #e5e7eb;
  color: #111827 !important;
}

.woocommerce-cart .actions {
  padding-top: 20px !important;
}

.woocommerce-cart button[name="apply_coupon"] {
  background: #0f172a !important;
  color: #fff !important;
}

.woocommerce-cart button[name="update_cart"] {
  background: #1d4ed8 !important;
  color: #fff !important;
}

.woocommerce-cart .cart-collaterals {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.woocommerce-cart .cart_totals {
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.woocommerce-cart .cart_totals h2 {
  font-size: 24px;
  margin-bottom: 18px;
  color: #111827;
}

.woocommerce-cart .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 14px 0;
  border-top: 1px solid #eef2f7;
  text-align: right;
}

.woocommerce-cart .cart_totals th {
  text-align: left;
  color: #374151;
  font-weight: 700;
}

.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 20px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  font-size: 16px;
}

.woocommerce-cart .cross-sells {
  margin-top: 36px;
}

.woocommerce-cart .cross-sells > h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #111827;
}

.woocommerce-cart .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after {
  display: none !important;
}

/* =========================
   Cart summary coupon
========================= */
.cart-summary-coupon {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-summary-coupon .input-text,
.cart-summary-coupon input {
  width: 100% !important;
  min-height: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  background: #fff;
  display: block !important;
}

.cart-summary-coupon .button,
.cart-summary-coupon button {
  width: 100%;
  min-height: 46px;
  height: 46px;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.woocommerce-cart .actions .coupon,
.woocommerce-cart .shop_table .coupon {
  display: none !important;
}

/* =========================
   Free shipping bar
========================= */
.peptalux-free-shipping-box {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.peptalux-free-shipping-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.45;
}

.peptalux-free-shipping-text.success {
  color: #166534;
}

.peptalux-free-shipping-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.peptalux-free-shipping-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* =========================
   Toast
========================= */
.peptalux-cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.peptalux-cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.peptalux-cart-toast__inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.peptalux-cart-toast__close {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  justify-self: end;
}

.peptalux-cart-toast__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.peptalux-cart-toast__text {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.peptalux-cart-toast__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.peptalux-cart-toast__button {
  flex: 1 1 140px;
  min-height: 44px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.peptalux-cart-toast__button:hover {
  color: #fff;
  background: #111827;
}

.peptalux-cart-toast__button--secondary {
  background: #eff6ff;
  color: #1d4ed8;
}

.peptalux-cart-toast__button--secondary:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* =========================
   COA page
========================= */
.coa-row a {
  text-decoration: none;
}

/* =========================
   Mobile
========================= */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .peptalux-shop-page .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-row {
    grid-template-columns: auto 1fr auto;
  }

  .top-trust-bar .trust-inner {
    gap: 10px 14px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .woocommerce-cart table.shop_table thead {
    display: none;
  }

  .woocommerce-cart table.shop_table tr {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 14px;
  }

  .woocommerce-cart table.shop_table td {
    display: block;
    width: 100%;
    border: none;
    padding: 10px 0;
    text-align: left !important;
  }

  .woocommerce-cart .cart-collaterals {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cart_totals {
    max-width: 100%;
    margin-left: 0;
    position: static !important;
  }

  .woocommerce-cart .cross-sells ul.products,
  .peptalux-shop-page .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bottom-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-icons {
    gap: 12px;
  }

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

  .peptalux-shop-page .products,
  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .top-trust-bar {
    font-size: 11px;
  }

  .top-trust-bar .trust-inner {
    justify-content: flex-start;
  }

  .peptalux-cart-toast {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .peptalux-cart-toast__actions {
    flex-direction: column;
  }
}
/* Sticky cart order summary */
.peptalux-cart-side {
  position: sticky;
  top: 90px;
}