:root {
  --tfi-blue: #07345d;
  --tfi-blue-mid: #174f7a;
  --tfi-orange: #ef6c22;
  --tfi-gold: #d6aa3c;
  --tfi-ink: #172333;
}

.tfi-store-shell {
  margin: 2rem auto 0;
  max-width: 1180px;
}

.tfi-store-bar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: .9rem 0;
}

.tfi-store-bar p {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

.tfi-cart-button,
.tfi-product-button,
.tfi-checkout-button,
.tfi-social-link {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-family: Oswald, Arial, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .06em;
  min-height: 44px;
  text-decoration: none;
  text-transform: uppercase;
}

.tfi-cart-button {
  background: var(--tfi-gold);
  color: var(--tfi-blue);
  padding: .7rem 1rem;
}

.tfi-product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tfi-product-card {
  background: #fff;
  border-top: 4px solid var(--tfi-orange);
  color: var(--tfi-ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
}

.tfi-product-visual {
  align-items: center;
  background: linear-gradient(145deg, #0a416f, var(--tfi-blue));
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: Oswald, Arial, sans-serif;
  height: 170px;
  justify-content: center;
  letter-spacing: .08em;
  margin: -1rem -1rem 1rem;
  text-align: center;
}

.tfi-product-visual strong {
  color: var(--tfi-gold);
  font-size: 1.7rem;
  line-height: 1;
}

.tfi-product-visual span {
  font-size: .75rem;
  margin-top: .35rem;
}

.tfi-product-card h3 {
  color: var(--tfi-blue);
  font-family: Oswald, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}

.tfi-product-card p {
  font-size: .95rem;
  line-height: 1.45;
  margin: 0 0 .8rem;
}

.tfi-product-meta {
  color: #40546a;
  font-size: .82rem;
  margin-bottom: .85rem;
}

.tfi-swatches {
  display: flex;
  gap: .45rem;
  margin: .15rem 0 1rem;
}

.tfi-swatch {
  border: 1px solid #9aa5ae;
  border-radius: 50%;
  height: 20px;
  width: 20px;
}

.tfi-product-button {
  background: var(--tfi-orange);
  color: #fff;
  margin-top: auto;
  padding: .7rem .8rem;
  width: 100%;
}

.tfi-product-button:hover,
.tfi-product-button:focus-visible {
  background: #cf5412;
}

.tfi-store-note {
  color: rgba(255, 255, 255, .82);
  font-size: .86rem;
  margin: 1rem 0 0;
  text-align: center;
}

.tfi-cart-panel {
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .32);
  color: var(--tfi-ink);
  display: none;
  inset: auto 1rem 1rem auto;
  max-height: min(620px, calc(100vh - 2rem));
  max-width: 390px;
  overflow: auto;
  padding: 1.25rem;
  position: fixed;
  width: calc(100% - 2rem);
  z-index: 1000;
}

.tfi-cart-panel[data-open="true"] { display: block; }

.tfi-cart-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .8rem;
}

.tfi-cart-heading h3 {
  color: var(--tfi-blue);
  font-family: Oswald, Arial, sans-serif;
  font-size: 1.5rem;
  margin: 0;
}

.tfi-cart-close {
  background: transparent;
  border: 0;
  color: var(--tfi-blue);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
}

.tfi-cart-item {
  align-items: center;
  border-bottom: 1px solid #dbe0e5;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .75rem 0;
}

.tfi-cart-remove {
  background: transparent;
  border: 0;
  color: #9a3515;
  cursor: pointer;
  min-height: 44px;
  padding: .4rem;
  text-decoration: underline;
}

.tfi-checkout-button {
  background: var(--tfi-gold);
  color: var(--tfi-blue);
  margin-top: 1rem;
  padding: .85rem 1rem;
  width: 100%;
}

.tfi-checkout-status {
  background: #eef4f8;
  border-left: 4px solid var(--tfi-orange);
  display: none;
  font-size: .9rem;
  line-height: 1.45;
  margin-top: .75rem;
  padding: .8rem;
}

.tfi-checkout-status[data-visible="true"] { display: block; }

.tfi-social {
  background: #f2f5f7;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.tfi-social h2 {
  color: var(--tfi-blue);
  font-family: Oswald, Arial, sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}

.tfi-social p {
  color: var(--tfi-ink);
  font-size: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 680px;
}

.tfi-social-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 900px;
}

.tfi-social-link {
  background: var(--tfi-blue);
  color: #fff;
  cursor: default;
  flex-direction: column;
  padding: .85rem .55rem;
}

.tfi-social-link span {
  color: var(--tfi-gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .03em;
  margin-top: .15rem;
  text-transform: none;
}

@media (max-width: 920px) {
  .tfi-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .tfi-product-grid,
  .tfi-social-grid { grid-template-columns: 1fr; }
  .tfi-store-bar { align-items: stretch; flex-direction: column; }
  .tfi-cart-button { width: 100%; }
  .tfi-social h2 { font-size: 2rem; }
}
