/**
 * FoodHub247 - Luxury E-commerce Theme
 * Inspired by modern luxury storefront UX
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --primary: #2D4422;
  --primary-dark: #1e3016;
  --primary-light: #3d5a2e;
  --accent: #A54A2E;
  --accent-hover: #8c3f27;
  --text: #000000;
  --text-muted: #4a4a4a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --black: #000000;
  --bg: #ffffff;
  --bg-soft: #f8f9f6;
  --bg-muted: #f0f2ed;
  --border: #e8ebe4;
  --border-dark: #d4d9cc;
  --success: #2D4422;
  --error: #c0392b;
  --warning: #A54A2E;
  --product-card-image-pad: 10px;
  --product-card-image-h: clamp(112px, 26vw, 152px);

  --radius: 4px;
  --radius-lg: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.25s;
  --shadow-sm: 0 1px 3px rgba(45, 68, 34, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(45, 68, 34, 0.12);

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;
  --page-padding: 16px;
  --container-max: 1280px;
  --header-height: 72px;
}

@media (min-width: 768px) {
  :root {
    --page-padding: 24px;
    --header-height: 80px;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--header-height);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Footer component */
.site-footer {
  background: var(--primary);
  color: var(--white);
  margin-top: var(--gap-xl);
}
.site-footer__inner {
  padding-top: 48px;
  padding-bottom: 48px;
}
.site-footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  object-fit: contain;
}
.site-footer__brand p {
  opacity: 0.85;
  max-width: 400px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.fh-pwa-install {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.fh-pwa-install:hover { background: rgba(255,255,255,0.22); }
.fh-footer-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.fh-footer-nav { display: block; }
.fh-footer-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.fh-footer-panel__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.fh-footer-panel__icon {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.fh-footer-panel.is-open .fh-footer-panel__icon { font-size: 1.5rem; }
.fh-footer-panel__body {
  padding: 0 0 16px;
}
.fh-footer-panel__body[hidden] { display: none !important; }
.fh-footer-panel__lead {
  margin: 0 0 10px;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.5;
}
.fh-footer-panel__body a {
  display: block;
  padding: 8px 0;
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.fh-footer-panel__body a:hover { color: #f0e6d8; opacity: 1; }

@media (min-width: 992px) {
  .fh-footer-grid {
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 32px;
    align-items: start;
  }
  .site-footer__brand { grid-column: 1; }
  .fh-footer-nav { display: contents; }
  .fh-footer-panel { border-bottom: none; }
  .fh-footer-panel:nth-child(1) { grid-column: 2; }
  .fh-footer-panel:nth-child(2) { grid-column: 3; }
  .fh-footer-panel:nth-child(3) { grid-column: 4; }
  .fh-footer-panel:nth-child(4) { grid-column: 5; }
  .fh-footer-panel:nth-child(5) { grid-column: 6; }
  .fh-footer-panel__toggle {
    padding: 0;
    margin-bottom: 16px;
    cursor: default;
    pointer-events: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
  }
  .fh-footer-panel__icon { display: none; }
  .fh-footer-panel__body {
    display: block !important;
    padding: 0;
  }
  .fh-footer-panel__body[hidden] { display: block !important; }
}
.site-footer__newsletter { margin-top: 4px; }
.site-footer__newsletter input {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); background: rgba(255,255,255,0.08); color: #fff; margin-bottom: 8px;
}
.site-footer__newsletter input::placeholder { color: rgba(255,255,255,0.55); }
.site-footer__newsletter .btn-sm { padding: 10px 14px; font-size: 0.8rem; width: 100%; }
.site-footer__newsletter-msg { font-size: 0.8rem; margin-top: 8px; }
.fh-footer-heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; opacity: 0.7; }
.site-footer a { display: block; padding: 6px 0; opacity: 0.9; color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f0e6d8; opacity: 1; }

a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  width: 100%;
  box-sizing: border-box;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--duration) var(--ease-out), color var(--duration), transform var(--duration), box-shadow var(--duration);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-hover); }

/* Product cards - Kokolet style */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  cursor: pointer;
}

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

.product-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__media {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.product-card__image {
  display: grid;
  place-items: center;
  height: var(--product-card-image-h);
  min-height: var(--product-card-image-h);
  max-height: var(--product-card-image-h);
  padding: var(--product-card-image-pad);
  box-sizing: border-box;
  background: var(--white);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  padding: 0;
  transition: none;
}

.product-card:hover .product-card__image img {
  transform: none;
}

.product-card__actions {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 10px;
  pointer-events: auto;
}

.product-card__action {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background var(--duration), color var(--duration), border-color var(--duration), transform var(--duration);
}

.product-card__action:hover {
  background: var(--bg-soft);
  border-color: var(--border-dark);
  color: var(--primary);
  transform: translateY(-1px);
}

.product-card__action--wish.is-active,
.product-card__action--cart.is-active {
  background: rgba(45, 68, 34, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.product-card__action--wish.is-active:hover,
.product-card__action--cart.is-active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.product-card__action i {
  pointer-events: none;
}

.product-card__cta,
.product-card__wish,
.product-card__hover {
  display: none !important;
}

.product-card__body {
  position: relative;
  z-index: 2;
  padding: 6px 8px 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  margin-top: 0;
}

.product-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.product-card__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 0;
  line-height: 1.3;
}

.product-card__price small {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.72rem;
}

.product-card__price del {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
}

.product-card__sku {
  display: none;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
  padding-bottom: var(--gap-sm);
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.section-header a:hover { color: var(--accent); }

/* Trust badges */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: var(--gap-xl) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(3, 1fr); }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  padding: var(--gap);
}

.trust-item__icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-item h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.trust-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category pills */
.category-scroll {
  display: flex;
  gap: var(--gap-sm);
  overflow-x: auto;
  padding: var(--gap) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--bg-muted);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--duration), color var(--duration);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: var(--white);
}

/* Forms */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  width: 100%;
  transition: border-color var(--duration), box-shadow var(--duration);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 68, 34, 0.15);
}

/* Alerts — legacy classes styled via fh-decision.css; keep minimal fallback */
.alert {
  margin-bottom: var(--gap);
  font-size: 0.9rem;
}

.page-section { padding: var(--gap-xl) 0 calc(var(--gap-xl) + 64px); overflow-x: hidden; }
.page-section .container { width: 100%; box-sizing: border-box; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 767px) {
  .page-hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero-actions .btn { width: 100%; margin-left: 0 !important; text-align: center; }
}
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 12px; font-weight: 700; }
.page-hero p { opacity: 0.9; max-width: 560px; margin: 0 auto; }

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 999;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  body {
    padding-bottom: 64px;
    overflow-x: clip;
  }
  html { overflow-x: clip; }

  .fh-page,
  .dashboard-layout,
  .catalog-page,
  .contact-page,
  .account-page,
  .wishlist-page,
  .page-section,
  .policy-page,
  .site-footer,
  .site-footer__inner {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .btn {
    max-width: 100%;
    box-sizing: border-box;
  }

  .empty-state-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .empty-state-actions .btn {
    width: 100%;
  }

  .announce-bar,
  .site-header,
  .site-header__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 4px 12px;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--primary); }
.mobile-bottom-nav i { font-size: 1.2rem; }

/* Floating label fields — label acts as the only placeholder */
.fh-field {
  position: relative;
  margin-bottom: 18px;
}
.fh-field input,
.fh-field textarea,
.fh-field select {
  width: 100%;
  padding: 22px 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}
.fh-field input::placeholder,
.fh-field textarea::placeholder {
  color: transparent;
  opacity: 0;
}
.fh-field textarea {
  min-height: 120px;
  padding-top: 26px;
  resize: vertical;
}
.fh-field select {
  padding-top: 24px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.fh-field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, background 0.18s ease;
  background: transparent;
  padding: 0 4px;
  line-height: 1.2;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}
.fh-field input:focus,
.fh-field textarea:focus,
.fh-field select:focus {
  border-color: var(--primary);
  outline: none;
}
.fh-field:focus-within label,
.fh-field.is-focused label,
.fh-field.is-filled label,
.fh-field.is-autofilled label,
.fh-field input:-webkit-autofill + label,
.fh-field input:autofill + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
}
.fh-field.is-filled input,
.fh-field.is-focused input,
.fh-field.is-autofilled input,
.fh-field input:-webkit-autofill {
  padding-top: 26px;
  padding-bottom: 8px;
}
/* Browser autofill — keep label on border, value below, no blue overlap */
@keyframes fh-autofill-start { from {} to {} }
.fh-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset !important;
  box-shadow: 0 0 0 1000px var(--white) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  animation-name: fh-autofill-start;
  animation-duration: 0.01s;
}
.fh-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset !important;
  box-shadow: 0 0 0 1000px var(--white) inset !important;
}
/* Date fields — label always on border; hide mm/dd/yyyy until focus or value */
.fh-field--date label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
}
.fh-field--date input[type="date"] {
  padding-top: 26px;
  color: transparent;
}
.fh-field--date.is-focused input[type="date"],
.fh-field--date.is-filled input[type="date"] {
  color: var(--text);
}
.fh-field--date input[type="date"]::-webkit-datetime-edit,
.fh-field--date input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.fh-field--date input[type="date"]::-webkit-datetime-edit-text,
.fh-field--date input[type="date"]::-webkit-datetime-edit-month-field,
.fh-field--date input[type="date"]::-webkit-datetime-edit-day-field,
.fh-field--date input[type="date"]::-webkit-datetime-edit-year-field {
  color: transparent;
}
.fh-field--date.is-focused input[type="date"]::-webkit-datetime-edit,
.fh-field--date.is-focused input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.fh-field--date.is-focused input[type="date"]::-webkit-datetime-edit-text,
.fh-field--date.is-focused input[type="date"]::-webkit-datetime-edit-month-field,
.fh-field--date.is-focused input[type="date"]::-webkit-datetime-edit-day-field,
.fh-field--date.is-focused input[type="date"]::-webkit-datetime-edit-year-field,
.fh-field--date.is-filled input[type="date"]::-webkit-datetime-edit,
.fh-field--date.is-filled input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.fh-field--date.is-filled input[type="date"]::-webkit-datetime-edit-text,
.fh-field--date.is-filled input[type="date"]::-webkit-datetime-edit-month-field,
.fh-field--date.is-filled input[type="date"]::-webkit-datetime-edit-day-field,
.fh-field--date.is-filled input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text);
}

/* Password show/hide toggle */
.fh-field--password input { padding-right: 46px; }
.fh-password-wrap { position: relative; }
.fh-password-wrap input { padding-right: 46px; width: 100%; }
.fh-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.fh-field--password .fh-password-toggle { top: 22px; transform: none; }
.fh-password-toggle:hover { color: var(--accent); background: var(--bg-soft); }
.fh-password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fh-password-toggle i { font-size: 1rem; pointer-events: none; }

/* Radio & checkbox — compact, border only on control */
input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  vertical-align: middle;
  background: var(--white);
  transition: border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
input[type="radio"] {
  border: 2px solid var(--border-dark);
  border-radius: 50%;
}
input[type="radio"]:checked {
  border-color: var(--primary);
  background: radial-gradient(circle, var(--primary) 0 35%, transparent 38%);
}
input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[type="checkbox"] {
  border: 2px solid var(--border-dark);
  border-radius: 3px;
}
input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Toast notifications */
.fh-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(45, 68, 34, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.fh-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fh-toast--error { background: var(--error); }
.fh-toast--info { background: var(--text); }

