/**
 * TrueGrad Theme — Main CSS Design System
 * 
 * Contains: CSS custom properties, resets, base typography,
 * layout utilities, button system, card system, form styles,
 * badge system, and global utilities.
 *
 * @package TrueGrad
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */

:root {
  /* Brand Colors */
  --color-primary:    #1a1a2e;
  --color-secondary:  #16213e;
  --color-accent:     #e94560;
  --color-accent-alt: #f5a623;
  --color-accent-dark: #c73450;

  /* Background Palette */
  --color-background: #ffffff;
  --color-surface:    #f8f9fc;
  --color-surface-2:  #f1f3f8;

  /* Text Palette */
  --color-text:       #1a1a2e;
  --color-text-light: #ffffff;
  --color-muted:      #6b7280;
  --color-muted-2:    #9ca3af;

  /* Border */
  --color-border:     #e5e7eb;
  --color-border-dark:#d1d5db;

  /* Status */
  --color-success:    #10b981;
  --color-warning:    #f59e0b;
  --color-error:      #ef4444;
  --color-info:       #3b82f6;

  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light:  300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semi:   600;
  --font-weight-bold:   700;
  --font-weight-extra:  800;
  --font-weight-black:  900;

  /* Font Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Line Heights */
  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;
  --leading-loose:  1.75;

  /* Spacing Scale */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(26, 26, 46, 0.05);
  --shadow-sm:  0 1px 3px rgba(26, 26, 46, 0.08), 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md:  0 4px 6px rgba(26, 26, 46, 0.07), 0 2px 4px rgba(26, 26, 46, 0.05);
  --shadow-lg:  0 10px 15px rgba(26, 26, 46, 0.1), 0 4px 6px rgba(26, 26, 46, 0.06);
  --shadow-xl:  0 20px 25px rgba(26, 26, 46, 0.1), 0 8px 10px rgba(26, 26, 46, 0.06);
  --shadow-2xl: 0 25px 50px rgba(26, 26, 46, 0.15);
  --shadow-accent: 0 8px 24px rgba(233, 69, 96, 0.3);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base:    0;
  --z-raised:  10;
  --z-dropdown:200;
  --z-sticky:  400;
  --z-overlay: 600;
  --z-modal:   800;
  --z-toast:   1000;

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 760px;
  --container-wide:   1400px;
  --container-px:     var(--space-6);
  --header-height:    72px;
}

/* ============================================================
   2. CSS RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================================
   3. BASE TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

strong, b {
  font-weight: var(--font-weight-semi);
  color: var(--color-text);
}

/* Entry content (page/post body) typography */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.entry-content p,
.entry-content li {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.entry-content ol {
  list-style: decimal;
}

.entry-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-fast);
}

.entry-content a:hover {
  text-decoration-color: var(--color-accent);
}

.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
  font-style: italic;
}

/* ============================================================
   4. LAYOUT CONTAINERS
   ============================================================ */

.tg-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.tg-container--narrow {
  max-width: var(--container-narrow);
}

.tg-container--wide {
  max-width: var(--container-wide);
}

.tg-main {
  min-height: calc(100vh - var(--header-height));
}

/* ============================================================
   5. SECTION UTILITIES
   ============================================================ */

.tg-section {
  padding-block: var(--space-20);
}

.tg-section--sm {
  padding-block: var(--space-12);
}

.tg-section--lg {
  padding-block: var(--space-32);
}

.tg-section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.tg-section--surface {
  background-color: var(--color-surface);
}

.tg-section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.tg-section__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.tg-section__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-extra);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.tg-section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* Dark section overrides */
.tg-section--dark .tg-section__title {
  color: var(--color-text-light);
}

.tg-section--dark .tg-section__subtitle {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   6. BUTTON SYSTEM
   ============================================================ */

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semi);
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.tg-btn:hover {
  transform: translateY(-1px);
}

.tg-btn:active {
  transform: translateY(0);
}

/* Primary Button */
.tg-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

.tg-btn--primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

/* Accent Button */
.tg-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

.tg-btn--accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-accent);
}

/* Ghost Button */
.tg-btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-dark);
}

.tg-btn--ghost:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
}

/* Ghost Light (on dark bg) */
.tg-btn--ghost-light {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: rgba(255,255,255,0.4);
}

.tg-btn--ghost-light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* Sizes */
.tg-btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.tg-btn--large {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

.tg-btn--full {
  width: 100%;
}

/* ============================================================
   7. CARD SYSTEM
   ============================================================ */

.tg-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.tg-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tg-card__body {
  padding: var(--space-6);
}

/* ============================================================
   8. BADGE SYSTEM
   ============================================================ */

.tg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tg-badge--sale {
  background-color: var(--color-accent);
  color: #fff;
}

.tg-badge--featured {
  background-color: var(--color-accent-alt);
  color: #fff;
}

.tg-badge--new {
  background-color: var(--color-success);
  color: #fff;
}

.tg-badge--info {
  background-color: var(--color-surface-2);
  color: var(--color-muted);
}

/* ============================================================
   9. FORM SYSTEM
   ============================================================ */

.tg-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.tg-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.tg-input,
.tg-select,
.tg-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
}

.tg-input:focus,
.tg-select:focus,
.tg-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.tg-input::placeholder,
.tg-textarea::placeholder {
  color: var(--color-muted-2);
}

/* ============================================================
   10. PRODUCT CARD
   ============================================================ */

.tg-product-card {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.tg-product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.tg-product-card .tg-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-raised);
}

.tg-product-card__image-link {
  display: block;
}

.tg-product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface);
}

.tg-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tg-product-card:hover .tg-product-card__image img {
  transform: scale(1.05);
}

.tg-product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tg-product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tg-product-card__rating-count {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.tg-product-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semi);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.tg-product-card__title a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.tg-product-card__title a:hover {
  color: var(--color-accent);
}

.tg-product-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

.tg-product-card__price {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
}

/* WooCommerce price HTML overrides */
.tg-product-card__price .price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tg-product-card__price .price ins {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
}

.tg-product-card__price .price del {
  color: var(--color-muted);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
}

.tg-product-card__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: auto;
}

.tg-product-card__atc {
  flex: 1;
}

.tg-product-card__view {
  flex-shrink: 0;
}

/* ============================================================
   11. STAR RATINGS
   ============================================================ */

.tg-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-accent-alt);
  font-size: var(--text-sm);
}

.tg-star--empty {
  color: var(--color-border-dark);
}

/* ============================================================
   12. POST CARD (Blog)
   ============================================================ */

.tg-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.tg-post-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.tg-post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tg-post-card__image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tg-post-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tg-post-card:hover .tg-post-card__image-link img {
  transform: scale(1.04);
}

.tg-post-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tg-post-card__cats {
  display: flex;
  gap: var(--space-2);
}

.tg-post-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semi);
  line-height: var(--leading-snug);
}

.tg-post-card__title a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.tg-post-card__title a:hover {
  color: var(--color-accent);
}

.tg-post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

.tg-post-card__meta {
  font-size: var(--text-xs);
  color: var(--color-muted-2);
  margin-top: auto;
}

/* ============================================================
   13. TAG
   ============================================================ */

.tg-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  background: var(--color-surface-2);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.tg-tag:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   14. TRUST BADGES
   ============================================================ */

.tg-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.tg-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.tg-trust-badge__icon {
  font-size: var(--text-base);
}

/* ============================================================
   15. BREADCRUMB
   ============================================================ */

.tg-breadcrumb {
  margin-bottom: var(--space-6);
}

.tg-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.tg-breadcrumb__item a {
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.tg-breadcrumb__item a:hover {
  color: var(--color-accent);
}

.tg-breadcrumb__item--current {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

/* ============================================================
   16. PAGINATION
   ============================================================ */

.tg-pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

.tg-pagination__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tg-pagination__item a,
.tg-pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.tg-pagination__item a:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tg-pagination__item .current {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   17. ARCHIVE HEADER
   ============================================================ */

.tg-archive-header {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.tg-archive-header__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.tg-archive-header__desc {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

/* ============================================================
   18. PAGE CONTENT
   ============================================================ */

.tg-page-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.tg-page-header__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
}

.tg-page-content {
  padding-block: var(--space-12);
}

/* ============================================================
   19. NO RESULTS / 404
   ============================================================ */

.tg-no-results {
  text-align: center;
  padding: var(--space-24) var(--space-6);
}

.tg-no-results__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.tg-no-results__message {
  color: var(--color-muted);
}

.tg-404 {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-24) 0;
  min-height: 70vh;
}

.tg-404__content {
  flex: 1;
}

.tg-404__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: var(--font-weight-black);
  color: var(--color-surface-2);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.tg-404__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.tg-404__text {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: var(--space-8);
}

.tg-404__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.tg-404__search-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.tg-404__visual {
  flex-shrink: 0;
}

/* ============================================================
   20. POST NAV
   ============================================================ */

.tg-post-nav {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}

.tg-post-nav__prev,
.tg-post-nav__next {
  flex: 1;
}

.tg-post-nav__next {
  text-align: right;
}

.tg-post-nav__prev a,
.tg-post-nav__next a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.tg-post-nav__prev a:hover,
.tg-post-nav__next a:hover {
  color: var(--color-accent);
}

.tg-post-nav__label {
  font-size: var(--text-sm);
}

/* ============================================================
   21. SKIP LINK (Accessibility)
   ============================================================ */

.tg-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: var(--z-toast);
}

.tg-skip-link:focus {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: #fff;
  font-weight: var(--font-weight-semi);
  border-radius: var(--radius-md);
  text-decoration: none;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   22. WOOCOMMERCE GLOBAL RESETS
   ============================================================ */

/* Ensure WooCommerce form fields use our design system */
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--text-base) !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.woocommerce input.input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12) !important;
  outline: none !important;
}

.woocommerce button.button,
.woocommerce input[type="submit"] {
  background-color: var(--color-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-family-base) !important;
  font-weight: var(--font-weight-semi) !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-bounce) !important;
}

.woocommerce button.button:hover,
.woocommerce input[type="submit"]:hover {
  background-color: var(--color-accent-dark) !important;
  box-shadow: var(--shadow-accent) !important;
  transform: translateY(-1px) !important;
}

/* WooCommerce notice styling */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius-md) !important;
  font-family: var(--font-family-base) !important;
}

/* ============================================================
   23. ANIMATION UTILITIES
   ============================================================ */

.tg-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.tg-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tg-fade-in--delay-1 { transition-delay: 0.1s; }
.tg-fade-in--delay-2 { transition-delay: 0.2s; }
.tg-fade-in--delay-3 { transition-delay: 0.3s; }
.tg-fade-in--delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .tg-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   24. FOOTER SYSTEM (Global)
   ============================================================ */

.tg-footer {
  width: 100%;
}

/* Footer Banner */
.tg-footer-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c73450 100%);
  padding-block: var(--space-12);
}

.tg-footer-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.tg-footer-banner__headline {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--font-weight-extra);
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.tg-footer-banner__sub {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.tg-footer-banner__input-group {
  display: flex;
  gap: var(--space-2);
}

.tg-footer-banner__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-family-base);
  transition: border-color var(--transition-fast);
}

.tg-footer-banner__input::placeholder {
  color: rgba(255,255,255,0.6);
}

.tg-footer-banner__input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
}

.tg-footer-banner__input-group .tg-btn--accent {
  background: #fff !important;
  color: var(--color-accent) !important;
  border-color: #fff !important;
  flex-shrink: 0;
}

.tg-footer-banner__input-group .tg-btn--accent:hover {
  background: rgba(255,255,255,0.9) !important;
  box-shadow: none !important;
}

.tg-footer-banner__privacy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-3);
}

/* Footer Main */
.tg-footer__main {
  background: var(--color-primary);
  padding-block: var(--space-16);
  color: var(--color-text-light);
}

.tg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.tg-footer__logo-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.tg-footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-black);
  border-radius: var(--radius-md);
}

.tg-footer__logo-name {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
}

.tg-footer__tagline {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 260px;
}

.tg-footer__social {
  display: flex;
  gap: var(--space-3);
}

.tg-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
  text-decoration: none;
}

.tg-footer__social-link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.tg-footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.tg-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tg-footer__nav-list li a,
.tg-footer__nav-list a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tg-footer__nav-list li a:hover,
.tg-footer__nav-list a:hover {
  color: #fff;
}

.tg-footer__bottom {
  background: rgba(0,0,0,0.3);
  padding-block: var(--space-5);
}

.tg-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.tg-footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.tg-footer__trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tg-footer__trust-item {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

