/* ToysfromChina Plugin Styles */
:root {
  --tfc-red: #FF3B3B; --tfc-orange: #FF7A00; --tfc-yellow: #FFD600;
  --tfc-green: #00C853; --tfc-sky: #29B6F6; --tfc-purple: #7C4DFF;
  --tfc-dark: #1A1A2E; --tfc-white: #FFFDF7;
  --tfc-font-display: 'Fredoka One', cursive;
  --tfc-font-body: 'Nunito', sans-serif;
  --tfc-radius: 18px;
}

/* ── CATALOG SECTION ── */
.tfc-wrap { font-family: var(--tfc-font-body); color: var(--tfc-dark); }

.tfc-section-label {
  display: inline-block; font-weight: 800; font-size: .8rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: .3rem 1rem; border-radius: 20px; margin-bottom: .8rem;
}
.tfc-section-title {
  font-family: var(--tfc-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .4rem;
}
.tfc-section-sub { color: #666; font-size: 1rem; font-weight: 600; margin-bottom: 2rem; }

/* Controls */
.tfc-controls {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center; margin-bottom: 2rem;
}
.tfc-search-wrap { position: relative; flex: 1; min-width: 200px; }
.tfc-search-wrap input {
  width: 100%; padding: .75rem 1rem .75rem 2.6rem;
  border: 2.5px solid #eee; border-radius: 30px;
  font-size: .93rem; font-family: var(--tfc-font-body);
  font-weight: 600; outline: none; background: #fff;
  color: var(--tfc-dark); transition: border-color .2s;
}
.tfc-search-wrap input:focus { border-color: var(--tfc-orange); }
.tfc-search-icon {
  position: absolute; left: .9rem; top: 50%;
  transform: translateY(-50%); font-size: .95rem; pointer-events: none;
}
.tfc-filter-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.tfc-filter-btn {
  padding: .45rem 1rem; border-radius: 24px; border: 2.5px solid #ddd;
  background: #fff; font-family: var(--tfc-font-body); font-weight: 700;
  font-size: .8rem; cursor: pointer; transition: all .18s; color: #555;
}
.tfc-filter-btn:hover, .tfc-filter-btn.active {
  background: var(--tfc-red); border-color: var(--tfc-red); color: #fff;
}
.tfc-meta { font-size: .85rem; font-weight: 700; color: #888; margin-bottom: 1.2rem; }
.tfc-meta span { color: var(--tfc-red); }

/* Product Grid */
.tfc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.3rem;
}
.tfc-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s; border: 2px solid transparent;
  display: flex; flex-direction: column;
}
.tfc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0,0,0,.13);
  border-color: var(--tfc-yellow);
}
.tfc-card.tfc-hidden { display: none; }
.tfc-card-img {
  height: 145px; display: flex; align-items: center;
  justify-content: center; font-size: 4.2rem;
}
.tfc-card-body { padding: .9rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.tfc-cat-badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  padding: .2rem .7rem; border-radius: 20px; margin-bottom: .5rem; width: fit-content;
}
.tfc-card-name { font-weight: 800; font-size: .93rem; margin-bottom: .3rem; line-height: 1.3; }
.tfc-card-desc { font-size: .79rem; color: #777; font-weight: 600; line-height: 1.45; margin-bottom: .8rem; flex: 1; }
.tfc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tfc-price { font-family: var(--tfc-font-display); font-size: 1.2rem; color: var(--tfc-red); }
.tfc-inquire-btn {
  background: var(--tfc-red); color: #fff; border: none;
  border-radius: 20px; padding: .4rem 1rem; font-size: .78rem;
  font-weight: 800; cursor: pointer; font-family: var(--tfc-font-body);
  transition: background .15s, transform .15s;
}
.tfc-inquire-btn:hover { background: var(--tfc-orange); transform: scale(1.06); }

.tfc-no-results { text-align: center; padding: 3rem 1rem; display: none; }
.tfc-no-results.show { display: block; }
.tfc-no-results p { font-size: 1rem; font-weight: 700; color: #888; margin-top: .5rem; }

/* ── CATEGORIES ── */
.tfc-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem;
}
.tfc-cat-card {
  background: var(--tfc-white); border-radius: var(--tfc-radius);
  padding: 1.5rem 1rem; text-align: center; cursor: pointer;
  border: 3px solid transparent; transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: var(--tfc-dark);
  position: relative; overflow: hidden;
}
.tfc-cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .2s;
}
.tfc-cat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.tfc-cat-card:hover::before { opacity: 1; }
.tfc-cat-card.c1 { border-color: var(--tfc-red); }     .tfc-cat-card.c1::before { background: linear-gradient(135deg,#FFF0F0,#FFE0E0); }
.tfc-cat-card.c2 { border-color: var(--tfc-orange); }  .tfc-cat-card.c2::before { background: linear-gradient(135deg,#FFF5E6,#FFE5C8); }
.tfc-cat-card.c3 { border-color: var(--tfc-yellow); }  .tfc-cat-card.c3::before { background: linear-gradient(135deg,#FFFDE6,#FFF3C0); }
.tfc-cat-card.c4 { border-color: var(--tfc-green); }   .tfc-cat-card.c4::before { background: linear-gradient(135deg,#E8FFE8,#C8F5C8); }
.tfc-cat-card.c5 { border-color: var(--tfc-sky); }     .tfc-cat-card.c5::before { background: linear-gradient(135deg,#E6F9FF,#C8EEFF); }
.tfc-cat-card.c6 { border-color: var(--tfc-purple); }  .tfc-cat-card.c6::before { background: linear-gradient(135deg,#F5EEFF,#E5D5FF); }
.tfc-cat-icon { font-size: 2.6rem; margin-bottom: .5rem; position: relative; display: block; }
.tfc-cat-name { font-family: var(--tfc-font-display); font-size: 1.05rem; position: relative; }
.tfc-cat-count { font-size: .75rem; color: #888; font-weight: 600; position: relative; margin-top: .2rem; }

/* ── CONTACT FORM ── */
.tfc-contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.2rem; margin-bottom: 2.5rem;
}
.tfc-contact-card { border-radius: 18px; padding: 1.5rem; border: 3px solid transparent; text-align: center; }
.tfc-contact-card.cc1 { background: #FFF0F0; border-color: var(--tfc-red); }
.tfc-contact-card.cc2 { background: #E8F5E9; border-color: var(--tfc-green); }
.tfc-contact-card.cc3 { background: #E3F2FD; border-color: var(--tfc-sky); }
.tfc-contact-card-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.tfc-contact-card-title { font-family: var(--tfc-font-display); font-size: 1.1rem; margin-bottom: .3rem; }
.tfc-contact-card-val { font-size: .88rem; font-weight: 700; color: #555; }
.tfc-contact-form { max-width: 560px; display: flex; flex-direction: column; gap: .85rem; }
.tfc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.tfc-contact-form input, .tfc-contact-form textarea {
  width: 100%; padding: .8rem 1.1rem; border: 2px solid #eee; border-radius: 12px;
  font-size: .93rem; font-family: var(--tfc-font-body); font-weight: 600;
  outline: none; transition: border-color .2s; color: var(--tfc-dark); background: #fff;
}
.tfc-contact-form input:focus, .tfc-contact-form textarea:focus { border-color: var(--tfc-orange); }
.tfc-contact-form textarea { resize: vertical; min-height: 110px; }
.tfc-submit-btn {
  background: linear-gradient(135deg, var(--tfc-red), var(--tfc-orange));
  color: #fff; border: none; padding: .9rem; border-radius: 36px;
  font-size: .95rem; font-weight: 800; font-family: var(--tfc-font-body);
  cursor: pointer; box-shadow: 4px 4px 0 #b32222; transition: transform .15s, box-shadow .15s;
}
.tfc-submit-btn:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 #b32222; }

/* ── MODAL ── */
.tfc-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.tfc-modal-overlay.open { opacity: 1; pointer-events: all; }
.tfc-modal {
  background: #fff; border-radius: 24px; padding: 2rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .25s; position: relative;
}
.tfc-modal-overlay.open .tfc-modal { transform: translateY(0); }
.tfc-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #aaa;
}
.tfc-modal-close:hover { color: var(--tfc-red); }
.tfc-modal-emoji { font-size: 3.2rem; text-align: center; margin-bottom: .4rem; }
.tfc-modal-title { font-family: var(--tfc-font-display); font-size: 1.3rem; text-align: center; margin-bottom: .3rem; }
.tfc-modal-price { color: var(--tfc-red); font-family: var(--tfc-font-display); font-size: 1.1rem; text-align: center; margin-bottom: 1.2rem; }
.tfc-modal form { display: flex; flex-direction: column; gap: .75rem; }
.tfc-modal input, .tfc-modal textarea {
  width: 100%; padding: .72rem 1rem; border: 2px solid #eee; border-radius: 10px;
  font-size: .9rem; font-family: var(--tfc-font-body); font-weight: 600;
  outline: none; transition: border-color .2s; color: var(--tfc-dark);
}
.tfc-modal input:focus, .tfc-modal textarea:focus { border-color: var(--tfc-orange); }
.tfc-modal textarea { resize: vertical; min-height: 75px; }
.tfc-modal-submit {
  background: linear-gradient(135deg, var(--tfc-red), var(--tfc-orange));
  color: #fff; border: none; padding: .8rem; border-radius: 28px;
  font-size: .92rem; font-weight: 800; font-family: var(--tfc-font-body);
  cursor: pointer; box-shadow: 3px 3px 0 #b32222; transition: transform .15s;
}
.tfc-modal-submit:hover { transform: translateY(-2px); }

@media (max-width: 600px) {
  .tfc-form-row { grid-template-columns: 1fr; }
  .tfc-controls { flex-direction: column; align-items: stretch; }
}
