.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tg-page {
  background: var(--bg, #f3efe4);
  min-height: 100vh;
}

.tg-page .cart-panel:not(.is-open):not(.is-modal) {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.tg-wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.tg-page .edit-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.tg-page .edit-banner[hidden] {
  display: none;
}

.tg-page .edit-banner p {
  text-align: center;
  white-space: normal;
}

.tg-page .edit-banner-actions {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .tg-page .edit-banner {
    flex-direction: column;
    gap: 0.65rem;
  }

  .tg-page .edit-banner-actions {
    position: static;
    transform: none;
    justify-content: center;
    width: auto;
  }
}

.tg-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal, #004C91);
}

.tg-intro {
  text-align: center;
}

.tg-intro h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
}

.tg-intro p {
  margin: 0 auto 1.5rem;
  color: var(--muted, #5c5348);
  max-width: 36rem;
}

.tg-back {
  text-decoration: none;
  font-size: 0.9rem;
}

.tg-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

#tg-form-fields {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.tg-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tg-form input[type='text'],
.tg-form input[type='email'],
.tg-form input[type='tel'],
.tg-form input[type='date'],
.tg-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-sizing: border-box;
}

.tg-form textarea {
  min-height: 5rem;
  resize: vertical;
}

.tg-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
}

.tg-hours {
  margin: 0 0 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-strong, #d4cbb8);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted, #3f514a);
}

.tg-hours a,
.tg-hours a:visited {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.tg-hours a:hover {
  color: var(--ink, #1c2824);
}

.tg-row {
  display: grid;
  gap: 0.75rem;
}

.tg-row--2 {
  grid-template-columns: 1fr 1fr;
}

.tg-span-2 {
  grid-column: 1 / -1;
}

.tg-full {
  width: 100%;
}

.tg-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1rem;
  align-items: stretch;
}

.tg-section {
  margin: 2.5rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink, #2a241c);
}

.tg-section--major {
  margin-top: 2.75rem;
  margin-bottom: 0.65rem;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tg-products > .tg-section:first-child {
  margin-top: 0;
}

.tg-section--note,
.tg-section-note {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line-strong, #d4cbb8);
  margin: 0;
  color: var(--ink, #2a241c);
}

.tg-section-note--alert {
  color: #8c2e28;
  background: #fdeceb;
  border-color: #e8c4c0;
  font-weight: 650;
}

.tg-section-note--info {
  color: #00356a;
  background: #e6eef6;
  border-color: #c5d4e8;
  font-weight: 650;
}

.tg-hint {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted, #5c5348);
  text-transform: none;
  font-weight: 400;
}

.tg-choices {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 12px;
  background: #fff;
}

.tg-choices-title {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink, #1c2824);
}

.tg-choices .tg-hint {
  margin: 0;
}

.tg-choice-grid {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.tg-choice-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.tg-form label.tg-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 10px;
  background: #fffaf3;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  cursor: pointer;
}

.tg-form label.tg-choice:has(input:checked) {
  border-color: var(--teal, #1a6b62);
  background: #eef6f4;
}

.tg-form .tg-choice input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.tg-choice-mark {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #2a241c;
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
}

.tg-form label.tg-choice:has(input:checked) .tg-choice-mark {
  border-color: var(--teal, #1a6b62);
  background: radial-gradient(circle, var(--teal, #1a6b62) 0 0.32rem, #fff 0.35rem 100%);
}

.tg-choice-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  min-width: 0;
}

.tg-choice-price {
  color: var(--muted, #5c5348);
  font-weight: 600;
}

.tg-product {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(42, 36, 28, 0.04);
  overflow: hidden;
}

.tg-product.has-photo {
  padding-top: 0;
}

.tg-form label.tg-addon {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-strong, #d4cbb8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tg-addon-select {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-sizing: border-box;
}

.tg-product-photo {
  position: relative;
  margin: 0 -0.95rem 0.5rem;
  aspect-ratio: 4 / 3;
  background: #ebe4d6;
  overflow: hidden;
}

.tg-product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-product.has-photo .tg-product-head {
  padding-top: 0.15rem;
}

.tg-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.65rem;
}

.tg-product-name {
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.tg-allergens,
.tg-tag-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.1rem 0 0.15rem;
  padding: 0;
  list-style: none;
}

.tg-allergen {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.28rem 0.55rem 0.28rem 0.38rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 999px;
  background: #f7f3ea;
  color: var(--ink, #1c2824);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.tg-allergen-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal, #004C91);
  flex: none;
}

.tg-allergen-icon svg {
  display: block;
}

.tg-tag-edit .tg-allergen {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.45;
  background: #fff;
  color: var(--muted, #5c5348);
}

.tg-tag-edit .tg-allergen.is-on {
  opacity: 1;
  color: var(--ink, #1c2824);
  background: #f7f3ea;
}

.tg-edit-mode .tg-allergens {
  display: none;
}

.tg-product-price {
  flex: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal, #1a6b62);
}

.tg-qty-stepper {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tg-qty-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5c5348);
}

.tg-stepper {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.tg-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--bg, #f3efe4);
  color: var(--ink, #2a241c);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.tg-step:hover {
  background: #e8e0d0;
}

.tg-step:active {
  background: var(--teal, #1a6b62);
  color: #fff;
}

.tg-step--dec {
  border-right: 1px solid var(--line-strong, #d4cbb8);
}

.tg-step--inc {
  border-left: 1px solid var(--line-strong, #d4cbb8);
}

.tg-qty-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.35rem 0.25rem;
  border: none;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  box-sizing: border-box;
}

.tg-qty-input::-webkit-outer-spin-button,
.tg-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tg-form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line-strong, #d4cbb8);
}

.tg-submit-note {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted, #3f514a);
}

.tg-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--danger, #a33);
}

.tg-submit {
  min-width: 11rem;
}

.tg-credit {
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted, #3f514a);
}

.tg-credit a {
  color: inherit;
  text-decoration: none;
}

.tg-credit a:hover {
  color: var(--teal, #004C91);
  text-decoration: underline;
}

.tg-credit .out-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.tg-credit .out-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tg-thanks-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 0% -10%, rgba(0, 76, 145, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(224, 122, 61, 0.12), transparent 50%),
    var(--paper, #f3efe4);
}

.tg-thanks {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.tg-thanks-card {
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 2.75rem 2rem 2.15rem;
  background: var(--card, #fffdf8);
  border: 1px solid var(--line, rgba(28, 40, 36, 0.12));
  border-radius: 20px;
  box-shadow: var(--shadow, 0 14px 36px rgba(28, 40, 36, 0.08));
  text-align: center;
}

.tg-thanks-mark {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto 1.15rem;
}

.tg-thanks-card .tg-kicker {
  margin: 0 0 0.55rem;
}

.tg-thanks-card h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2.1rem, 6vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tg-thanks-card > p {
  margin: 0 auto 1.6rem;
  max-width: 28rem;
  color: var(--muted, #3f514a);
  font-size: 1.08rem;
  line-height: 1.5;
}

.tg-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tg-thanks a.btn-primary,
.tg-thanks-actions a.btn-primary,
.tg-thanks-actions a.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  text-decoration: none;
}

@media (max-width: 680px) {
  .tg-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tg-contact,
  .tg-products,
  .tg-choice-grid--2 {
    grid-template-columns: 1fr;
  }

  .tg-row--2 {
    grid-template-columns: 1fr;
  }
}

.tg-load-status {
  color: var(--muted, #5c5348);
  text-align: center;
}

.tg-edit-mode .tg-form-footer .tg-submit {
  display: none;
}

.tg-edit-fields {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tg-edit-fields label {
  font-size: 0.72rem;
}

.tg-edit-fields input {
  min-height: 38px;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 0;
  padding: 0.35rem 0.5rem;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.tg-product-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  margin: 0 -0.95rem 0.5rem;
  background: #ebe4d6;
}

.tg-photo-actions {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.tg-photo-edit,
.tg-photo-remove {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong, #d4cbb8);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.95);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.tg-photo-remove {
  color: var(--danger, #8c2e28);
}

.tg-product-photo--empty .tg-photo-edit {
  position: static;
}

.tg-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tg-modal[hidden] {
  display: none;
}

.tg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.45);
}

.tg-modal-panel {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-strong, #d4cbb8);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-strong, #d4cbb8);
}

.tg-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.tg-modal-item {
  margin: 0;
  padding: 0.5rem 1rem 0;
  font-size: 0.9rem;
  color: var(--muted, #5c5348);
}

.tg-modal-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line-strong, #d4cbb8);
}

.tg-modal-upload .portal-muted {
  flex: 1 1 100%;
  margin: 0;
}

.tg-upload-btn {
  cursor: pointer;
}

.tg-gallery {
  flex: 1 1 auto;
  min-height: 320px;
  overflow: auto;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 140px;
  gap: 0.55rem;
  align-content: start;
}

.tg-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  margin: 0;
  padding: 0;
  border: 2px solid #d4cbb8;
  border-radius: 0;
  background: #f5f0e6;
  cursor: pointer;
  overflow: hidden;
}

.tg-gallery-item.is-selected {
  border-color: var(--teal, #1a6b62);
  box-shadow: inset 0 0 0 2px var(--teal, #1a6b62);
}

.tg-gallery-item img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.tg-gallery-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line-strong, #d4cbb8);
}

.tg-gallery-page {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .tg-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 110px;
  }

  .tg-gallery-item,
  .tg-gallery-item img {
    height: 110px;
  }
}

.contact-wrap {
  max-width: 52rem;
}

.contact-intro h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin-bottom: 1rem;
}

.contact-intro p {
  max-width: 38rem;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  color: var(--teal, #004C91);
  font-weight: 600;
}

.contact-intro p + p {
  color: var(--muted, #3f514a);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

.contact-form {
  gap: 0.85rem;
}

.contact-form-footer {
  align-items: center;
  gap: 0;
  padding-top: 0;
  border-top: none;
}

.contact-reach {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 2px dashed var(--teal, #004C91);
  text-align: center;
}

.contact-reach h2 {
  margin: 0 0 1.75rem;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 600;
  color: var(--teal, #004C91);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  text-align: left;
}

.contact-split h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-split p {
  margin: 0 0 0.45rem;
  color: var(--muted, #3f514a);
}

.contact-split a {
  color: var(--teal, #004C91);
  font-weight: 600;
}

@media (max-width: 680px) {
  .contact-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
