/* ── Components CSS ──
   Happy Buddha Design System Components
   Version: 2.0 — Updated to match actual site design
*/

/* ══════════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════════ */

/* Base button (pill style, matches Figma design spec) */
.hb-btn,
a.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  border-radius: 9999px;
  border: none;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--hb-transition-fast),
    opacity var(--hb-transition-fast),
    box-shadow var(--hb-transition-fast);
  box-sizing: border-box;
  line-height: normal;
  white-space: nowrap;
}

a.hb-btn {
  text-decoration: none !important;
  color: inherit;
}

.hb-btn:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.hb-btn:focus:not(:focus-visible) {
  outline: none;
}

.hb-btn:focus-visible {
  outline: 2px solid #d48a28;
  outline-offset: 2px;
}

/* Primary: Gold gradient (brand standard) */
.hb-btn--primary,
a.hb-btn--primary {
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  color: #fff;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

.hb-btn--primary:hover,
a.hb-btn--primary:hover {
  color: #fff;
  opacity: 0.93;
}

/* Secondary: Outline style */
.hb-btn--secondary,
a.hb-btn--secondary {
  background: transparent;
  color: #d48a28;
  border: 2px solid #d48a28;
}

.hb-btn--secondary:hover,
a.hb-btn--secondary:hover {
  background: #d48a28;
  color: #fff;
}

/* Tertiary: Brown outline */
.hb-btn--tertiary,
a.hb-btn--tertiary {
  background: transparent;
  color: rgba(61, 43, 31, 0.7);
  border: 2px solid rgba(61, 43, 31, 0.2);
}

.hb-btn--tertiary:hover,
a.hb-btn--tertiary:hover {
  border-color: rgba(61, 43, 31, 0.35);
  color: #3d2b1f;
}

/* Outline: Gold outline (alternative to secondary) */
.hb-btn--outline,
a.hb-btn--outline {
  background: transparent;
  color: #d48a28;
  border: 2px solid #d48a28;
}

.hb-btn--outline:hover,
a.hb-btn--outline:hover {
  background: rgba(212, 138, 40, 0.1);
}

/* White: White outline/text for dark backgrounds */
.hb-btn--white,
a.hb-btn--white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hb-btn--white:hover,
a.hb-btn--white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Size variants */
.hb-btn--sm,
a.hb-btn--sm {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 0.6px;
}

.hb-btn--lg,
a.hb-btn--lg {
  height: 48px;
  padding: 0 32px;
  font-size: 14px;
}

/* Fullwidth */
.hb-btn--full,
a.hb-btn--full {
  width: 100%;
}

/* ══════════════════════════════════════════════════
   Button Inheritance (page-specific buttons extend .hb-btn)
   ══════════════════════════════════════════════════ */

/* Thank You page buttons */
.hb-thankyou__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform var(--hb-transition-normal),
    opacity var(--hb-transition-normal);
}

.hb-thankyou__btn:hover {
  transform: scale(1.03);
  opacity: 0.92;
  text-decoration: none;
}

.hb-thankyou__btn--primary {
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  color: var(--hb-white);
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

.hb-thankyou__btn--secondary {
  background: transparent;
  color: rgba(61, 43, 31, 0.7);
  border: 2px solid rgba(61, 43, 31, 0.2);
}

/* Product Add to Cart button */
.hb-product-add-btn,
.hb-find-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: 9999px;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--hb-transition-fast),
    opacity var(--hb-transition-fast);
  box-sizing: border-box;
}

.hb-product-add-btn {
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  color: var(--hb-white);
  border: none;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

.hb-product-add-btn:hover {
  color: var(--hb-white);
  transform: scale(1.02);
  opacity: 0.95;
}

.hb-find-plan-btn {
  background: transparent;
  color: #d48a28;
  border: 2px solid #d48a28;
}

.hb-find-plan-btn:hover {
  background: #d48a28;
  color: var(--hb-white);
  text-decoration: none;
}

/* Account buttons */
.hb-acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition:
    opacity var(--hb-transition-fast),
    box-shadow var(--hb-transition-fast);
  text-decoration: none;
}

.hb-acct-btn--save {
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  color: var(--hb-white);
  border: none;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

.hb-acct-btn--save:hover {
  opacity: 0.9;
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.15),
    0 5px 8px rgba(0, 0, 0, 0.1);
  color: var(--hb-white);
}

.hb-acct-btn--cancel {
  background: transparent;
  color: rgba(61, 43, 31, 0.65);
  border: 2px solid rgba(61, 43, 31, 0.2);
}

.hb-acct-btn--cancel:hover {
  border-color: rgba(61, 43, 31, 0.4);
  color: var(--hb-brown);
}

/* 404 buttons */
.hb-404-btn-primary,
.hb-404-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border-radius: 9999px;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transition:
    transform var(--hb-transition-normal),
    box-shadow var(--hb-transition-normal),
    border-color var(--hb-transition-normal),
    color var(--hb-transition-normal);
}

.hb-404-btn-primary {
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  color: var(--hb-white);
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

.hb-404-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.15),
    0 6px 8px rgba(0, 0, 0, 0.1);
  color: var(--hb-white);
}

.hb-404-btn-secondary {
  background: transparent;
  color: rgba(61, 43, 31, 0.7);
  border: 2px solid rgba(61, 43, 31, 0.2);
}

.hb-404-btn-secondary:hover {
  border-color: rgba(61, 43, 31, 0.35);
  color: var(--hb-brown);
}

/* Checkout continue button */
.hb-checkout-continue__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--hb-white);
  cursor: pointer;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform var(--hb-transition-normal),
    box-shadow var(--hb-transition-normal);
}

.hb-checkout-continue__btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.15),
    0 5px 8px rgba(0, 0, 0, 0.15);
}

/* Cart empty CTA */
.hb-cart-empty__cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  color: var(--hb-white);
  border-radius: 9999px;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: var(--hb-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform var(--hb-transition-fast),
    opacity var(--hb-transition-fast);
}

.hb-cart-empty__cta:hover {
  color: var(--hb-white);
  transform: scale(1.02);
  opacity: 0.95;
}

/* Size selector buttons */
.hb-sz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(61, 43, 31, 0.2);
  border-radius: 9999px;
  font-family: var(--hb-font-body);
  font-size: var(--hb-font-size-sm);
  font-weight: var(--hb-font-weight-bold);
  color: rgba(61, 43, 31, 0.7);
  cursor: pointer;
  transition:
    background var(--hb-transition-fast),
    border-color var(--hb-transition-fast),
    color var(--hb-transition-fast);
}

.hb-sz-btn:hover {
  border-color: #d48a28;
  color: #d48a28;
}

.hb-sz-btn--active {
  background: linear-gradient(180deg, #f3b255 0%, #d48a28 100%);
  border-color: transparent;
  color: var(--hb-white);
}

/* ══════════════════════════════════════════════════
   Cards
   ══════════════════════════════════════════════════ */

.hb-card {
  background: var(--hb-gradient-card);
  border-radius: var(--hb-card-radius-lg);
  padding: var(--hb-card-padding);
  box-shadow: var(--hb-shadow-lg);
  transition: box-shadow var(--hb-transition-normal);
}

.hb-card:hover {
  box-shadow:
    0 20px 25px rgba(0, 0, 0, 0.1),
    0 8px 10px rgba(0, 0, 0, 0.1);
}

/* Card variants */
.hb-card--sm {
  padding: var(--hb-card-padding);
  border-radius: var(--hb-card-radius);
}

.hb-card--flat {
  box-shadow: none;
}

/* ══════════════════════════════════════════════════
   Forms
   ══════════════════════════════════════════════════ */

.hb-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hb-form-label {
  display: block;
  font-size: var(--hb-font-size-base);
  font-weight: var(--hb-font-weight-semibold);
  color: var(--hb-label-color);
  margin-bottom: 6px;
}

.hb-form-input,
.hb-form-select,
.hb-form-textarea {
  width: 100%;
  height: var(--hb-input-height);
  padding: 0 var(--hb-input-padding-x);
  background: var(--hb-white);
  border: 2px solid var(--hb-input-border-color);
  border-radius: var(--hb-input-border-radius);
  font-family: var(--hb-font-body);
  font-size: var(--hb-font-size-base);
  color: var(--hb-brown);
  outline: none;
  box-shadow: none;
  transition: border-color var(--hb-transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.hb-form-input:focus,
.hb-form-select:focus,
.hb-form-textarea:focus {
  border-color: var(--hb-input-focus-color);
}

.hb-form-input::placeholder {
  color: var(--hb-input-placeholder-color);
}

.hb-form-textarea {
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

/* Form validation states */
.hb-form-input--error {
  border-color: #bd0916 !important;
}

.hb-form-error {
  color: #bd0916;
  font-size: var(--hb-font-size-xs);
  margin-top: 4px;
}

/* Optional label */
.hb-form-label .optional {
  opacity: 0.5;
  font-weight: var(--hb-font-weight-normal);
}

/* ══════════════════════════════════════════════════
   Notices
   ══════════════════════════════════════════════════ */

.hb-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--hb-font-body);
  font-size: var(--hb-font-size-base);
}

.hb-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.hb-notice--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.hb-notice--info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.hb-notice--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* WooCommerce message override */
.hb-notice--wc {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 0 24px !important;
  padding: 10px 0 10px 14px !important;
  background: var(--hb-gradient-card) !important;
  border-radius: var(--hb-card-radius-lg) !important;
  border: none !important;
  box-shadow: var(--hb-shadow-md) !important;
  font-size: 15px !important;
  color: var(--hb-brown) !important;
}

.hb-notice--wc::before {
  content: "" !important;
  display: block !important;
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%234b6b44'/%3E%3Cpath d='M7 12.5l3.5 3.5 6.5-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat !important;
}

/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */

/* @media (max-width: 600px) {
  .hb-btn {
    height: 48px;
    padding: 0 24px;
  }

  .hb-btn--lg {
    height: 52px;
    padding: 0 28px;
  }

  .hb-form-input,
  .hb-form-select {
    height: 44px;
  }
} */

/* ── Brand Block — reusable: header, hero, footer ── */
.hb-brand {
  display: flex;
  flex-direction: column;
  --hb-brand-base: 18px;
  --hb-brand-stroke: 0.3px;
}

.hb-brand__title {
  display: flex;
  align-items: flex-start;
}

.hb-brand__name {
  font-family: "Trajan Pro", "Trajan Pro 3", Georgia, serif;
  font-size: var(--hb-brand-base);
  font-weight: 600;
  color: #aa0000;
  -webkit-text-stroke: var(--hb-brand-stroke) white;
  /* line-height: 1; */
}

.hb-brand__reg {
  font-size: calc(var(--hb-brand-base) * 0.3);
  font-weight: 400;
  color: white;
  line-height: 1;
  margin-left: 2px;
  margin-top: calc(var(--hb-brand-base) * 0.2);
}

.hb-brand__reg.fa-regular,
.hb-brand__reg.far {
  font-family: var(--fa-style-family-classic, "Font Awesome 6 Free") !important;
  font-weight: 400;
}

.hb-brand__tagline {
  font-family: "Trajan Pro", "Trajan Pro 3", Georgia, serif;
  font-size: calc(var(--hb-brand-base) * 0.556);
  font-weight: 400;
  color: white;
  line-height: 1.3;
  text-align: center;
}
