/* ============================================
   THE HOLE STORY — Global Styles
   Design tokens extracted from Figma export
   ============================================ */

:root {
  --cream: #f5edd8;
  --brown: #6b3f1f;
  --terracotta: #8b3f1f;
  --sage: #7a8c6e;
  --white: #ffffff;
  --error: #d4183d;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(107, 63, 31, 0.08);
  --shadow-md: 0 4px 16px rgba(107, 63, 31, 0.12);
}

/* Accessibility helper - screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body {
  background-color: var(--cream);
  font-family: var(--font-sans);
  color: var(--brown);
}

/* ---- NAVBAR ---- */
.ths-navbar {
  background-color: var(--cream) !important;
  border-bottom: 1px solid rgba(196, 114, 74, 0.2);
}

.ths-logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--brown);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ths-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown);
  text-decoration: none;
}

.ths-nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--brown) !important;
  font-weight: 400;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.ths-nav-link:hover,
.ths-nav-link.active {
  color: #5a2e1b !important;
  font-weight: 600;
  border-bottom-color: var(--terracotta);
}

.ths-cart-btn {
  color: var(--brown);
  text-decoration: none;
  padding: 6px;
  display: flex;
  align-items: center;
}

.ths-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--terracotta);
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.ths-btn-primary {
  background-color: var(--brown);
  color: var(--cream) !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.ths-btn-primary:hover {
  opacity: 1;
}

.ths-btn-outline {
  background: transparent;
  color: var(--brown) !important;
  border: 1px solid var(--brown);
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.2s;
}
.ths-btn-outline:hover {
  background: var(--brown);
  color: var(--cream) !important;
}

.ths-toggler {
  border: none;
  color: var(--brown);
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* ---- FOOTER ---- */
.ths-footer {
  background-color: #5a351a;
  color: #f5edd8;
}

.ths-footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  font-weight: 700;
}

.ths-footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--cream);
}

.ths-footer-text,
.ths-footer-text p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.ths-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ths-footer-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--cream);
  opacity: 1;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ths-footer-links a:hover {
  opacity: 1;
}

.ths-footer-email {
  color: var(--cream);
  opacity: 1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}
.ths-footer-email:hover {
  opacity: 1;
}

.ths-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--terracotta);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ths-social-btn:hover {
  opacity: 1;
  color: var(--cream);
}

/* ---- CARDS ---- */
.ths-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ---- FORM INPUTS ---- */
.ths-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 114, 74, 0.35);
  background: var(--white);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.ths-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 114, 74, 0.15);
}
.ths-input.is-invalid {
  border-color: var(--error);
}

.ths-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.ths-error-msg {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- ALERTS ---- */
.ths-alert-success {
  background-color: rgba(122, 140, 110, 0.15);
  border: 1px solid var(--sage);
  color: #3d5233;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.ths-alert-danger {
  background-color: rgba(212, 24, 61, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

/* ---- BUTTONS ---- */
.ths-btn-terracotta {
  background-color: #a85e3a;
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  padding: 10px 28px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ths-btn-terracotta:hover {
  opacity: 1;
  color: var(--cream);
}

.ths-btn-brown {
  background-color: var(--brown);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-xl);
  padding: 10px 28px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ths-btn-brown:hover {
  opacity: 1;
  color: var(--cream);
}

.ths-btn-sage {
  background-color: var(--sage);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-xl);
  padding: 10px 28px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ths-btn-sage:hover {
  opacity: 1;
}

/* ---- STATUS BADGES ---- */
.ths-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
}
.ths-badge-completed {
  background: rgba(122, 140, 110, 0.15);
  color: #3d5233;
}
.ths-badge-processing {
  background: rgba(196, 114, 74, 0.15);
  color: var(--terracotta);
}
.ths-badge-pending {
  background: rgba(107, 63, 31, 0.12);
  color: var(--brown);
}
.ths-badge-cancelled {
  background: rgba(212, 24, 61, 0.1);
  color: var(--error);
}

/* ---- PAGE HEADING ---- */
.ths-page-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brown);
  font-size: 1.875rem;
}

/* ---- PASSWORD TOGGLE ---- */
.ths-input-wrapper {
  position: relative;
}
.ths-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--brown);
  opacity: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.ths-pw-toggle:hover {
  opacity: 1;
}

.grecaptcha-badge {
  visibility: hidden !important;
}
