:root {
  --tg-primary: #6dbb2f;
  --tg-secondary: #0d86c6;
  --tg-loader-bg: #202020;
  --tg-bg: #e9edf3;
  --tg-surface: #ffffff;
  --tg-dark: #222222;
  --tg-muted: #6b7280;
  --tg-border: #dfe3ea;
  --tg-green: #78b82a;
  --tg-blue: #0073ae;
  --tg-yellow: #ffb800;
  --tg-shadow: 0 14px 38px rgba(20, 25, 38, .11);
  --tg-container: 1180px;
  --tg-wide: 1510px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--tg-bg);
  color: var(--tg-dark);
  line-height: 1.5;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font: inherit; }
.screen-reader-text { position: absolute; left: -9999px; }
.tg-container { width: min(100% - 32px, var(--tg-container)); margin-inline: auto; }
.tg-container-wide { width: min(100% - 28px, var(--tg-wide)); margin-inline: auto; }
.tg-narrow { width: min(100% - 32px, 860px); margin-inline: auto; }

/* Loader */
.tg-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--tg-loader-bg);
  display: grid;
  place-items: center;
  animation: tgLoaderOut .4s ease forwards;
  animation-delay: .55s;
}
.tg-loader-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.2);
  border-top-color: var(--tg-green);
  animation: tgSpin .8s linear infinite;
}
@keyframes tgSpin { to { transform: rotate(360deg); } }
@keyframes tgLoaderOut { to { opacity: 0; visibility: hidden; } }

/* Header: CodeCanyon-style, rebranded */
.tg-top-header {
  background: #262626;
  color: #d6d6d6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.28);
}
.tg-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.tg-brand-dark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}
.tg-brand-dark .custom-logo { max-width: 190px; max-height: 48px; width: auto; height: auto; }
.tg-brand-leaf { color: #7ec63f; font-size: 24px; line-height: 1; }
.tg-brand-dark small { color: #c9c9c9; font-size: 16px; font-weight: 600; }
.tg-main-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.tg-main-tabs::-webkit-scrollbar { display: none; }
.tg-main-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #c0c0c0;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tg-main-tabs a:hover,
.tg-main-tabs a.active { color: #fff; border-bottom-color: #fff; }
.tg-main-tabs .asset-link { color: #e9ff89; }
.tg-top-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  font-size: 14px;
  margin-left: auto;
}
.tg-top-actions a { color: #e7e7e7; }
.tg-top-actions a:hover { color: #fff; }
.tg-signin {
  background: rgba(255,255,255,.06);
  padding: 18px 20px;
}
.tg-category-bar { background: #fff; border-bottom: 1px solid var(--tg-border); }
.tg-category-scroll {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tg-category-scroll::-webkit-scrollbar { display: none; }
.tg-category-scroll a {
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tg-category-scroll a:hover { color: var(--tg-blue); }
.tg-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }

/* Hero */
.site-main { min-height: 60vh; }
.tg-cc-hero {
  background: #f3f5f9;
  min-height: 465px;
  border-bottom: 1px solid var(--tg-border);
}
.tg-hero-inner {
  min-height: 465px;
  display: grid;
  grid-template-columns: minmax(320px, 650px) 1fr;
  align-items: center;
  gap: 60px;
}
.tg-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #1d1d1d;
  max-width: 590px;
}
.tg-hero-copy p {
  color: #374151;
  margin: 0 0 48px;
  max-width: 590px;
  font-size: 16px;
}
.tg-code-search {
  width: min(100%, 650px);
  height: 58px;
  background: #fff;
  border: 1px solid #d9dee9;
  border-radius: 5px;
  box-shadow: 0 15px 30px rgba(42, 52, 70, .12);
  padding: 9px 9px 9px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tg-code-search input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  color: #111827;
}
.tg-code-search button,
.tg-green-btn {
  border: 0;
  border-radius: 4px;
  background: var(--tg-green);
  color: #fff;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.tg-green-btn { display: inline-flex; align-items: center; justify-content: center; }
.tg-hero-products {
  min-height: 260px;
  position: relative;
  display: grid;
  place-items: center;
}
.tg-hero-products:before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(221,229,241,.55));
  inset: 30px auto auto 80px;
}
.tg-mini-product {
  position: absolute;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 24px 50px rgba(40, 48, 70, .23);
  overflow: hidden;
  isolation: isolate;
  padding: 22px;
  font-weight: 900;
}
.tg-mini-product:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.34), transparent 20%), linear-gradient(135deg, rgba(255,255,255,.12), transparent);
  z-index: -1;
}
.tg-mini-product span { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; opacity: .9; }
.tg-mini-1 { width: 315px; height: 117px; top: 5px; right: 90px; background: linear-gradient(135deg, #ff9f2c, #ff5c45); }
.tg-mini-2 { width: 340px; height: 155px; top: 145px; left: 40px; background: linear-gradient(135deg, #6827dc, #00a6ff); }
.tg-mini-3 { width: 210px; height: 140px; top: 225px; right: 80px; background: linear-gradient(135deg, #101827, #00c4e8); }

/* Stock banner */
.tg-asset-strip { padding: 34px 0 48px; background: #e9edf3; }
.tg-stock-banner {
  min-height: 250px;
  border-radius: 14px;
  background: #222;
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: 60px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.tg-stock-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.tg-stock-copy { position: relative; z-index: 1; }
.tg-stock-copy h2 {
  margin: 0;
  max-width: 630px;
  font-size: clamp(25px, 2.4vw, 37px);
  line-height: 1.02;
  color: #fff;
}
.tg-stock-copy h2::first-line { color: #75ff43; }
.tg-stock-copy p { color: rgba(255,255,255,.86); font-weight: 700; }
.tg-stock-copy a {
  display: inline-flex;
  background: #6fc72a;
  color: #111;
  padding: 13px 21px;
  border-radius: 4px;
  font-weight: 900;
  margin-top: 12px;
}
.tg-stock-fan {
  position: relative;
  min-height: 210px;
  z-index: 1;
}
.tg-stock-fan span {
  position: absolute;
  bottom: -45px;
  left: 20%;
  width: 145px;
  height: 210px;
  border-radius: 12px;
  padding: 17px;
  font-size: 17px;
  color: #fff;
  font-weight: 900;
  transform-origin: bottom center;
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.tg-stock-fan span:nth-child(1) { background: linear-gradient(135deg, #0066ff, #00e0ff); transform: rotate(-35deg); left: 18%; }
.tg-stock-fan span:nth-child(2) { background: linear-gradient(135deg, #d63500, #ffc400); transform: rotate(-16deg); left: 34%; }
.tg-stock-fan span:nth-child(3) { background: linear-gradient(135deg, #121212, #efb642); transform: rotate(5deg); left: 50%; }
.tg-stock-fan span:nth-child(4) { background: linear-gradient(135deg, #775bff, #f54ea2); transform: rotate(20deg); left: 66%; }
.tg-stock-fan span:nth-child(5) { background: linear-gradient(135deg, #773100, #ff8d00); transform: rotate(35deg); left: 82%; }

/* Categories */
.tg-home-categories { padding: 40px 0 34px; background: #e9edf3; }
.tg-category-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.tg-cc-category-card {
  height: 330px;
  background: #f9fbff;
  border-radius: 8px;
  border: 1px solid #e1e6ee;
  text-align: center;
  overflow: hidden;
  padding: 38px 38px 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.tg-cc-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(24, 35, 55, .12);
  border-color: #d2d9e5;
}
.tg-cc-category-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #202020;
}
.tg-cc-category-card p {
  margin: 13px 0 7px;
  font-size: 12px;
  color: #253044;
}
.tg-cat-links { display: flex; justify-content: center; gap: 18px; color: #0a76b9; font-size: 12px; font-weight: 700; }
.tg-cat-preview {
  width: 88%;
  height: 136px;
  margin: 88px auto 0;
  border-radius: 6px 6px 0 0;
  position: relative;
  overflow: visible;
  box-shadow: 0 -20px 38px rgba(29, 43, 68, .14);
}
.tg-cat-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px 6px 0 0;
  opacity: .94;
}
.tg-cat-preview::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18px;
  height: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.tg-cat-icon {
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 7px solid rgba(177, 223, 232, .86);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #2c3a48;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .14);
  z-index: 3;
}
.tg-cat-browser {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 18px;
  height: 74px;
  border-radius: 5px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
  z-index: 2;
  overflow: hidden;
}
.tg-cat-browser-top {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 9px;
  background: rgba(15,23,42,.08);
}
.tg-cat-browser-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15,23,42,.26);
}
.tg-cat-main-line,
.tg-cat-sub-line {
  display: block;
  height: 8px;
  margin: 12px auto 0;
  border-radius: 20px;
  background: rgba(15,23,42,.16);
}
.tg-cat-main-line { width: 62%; }
.tg-cat-sub-line { width: 42%; margin-top: 7px; }
.tg-cat-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 9px 13px 0;
}
.tg-cat-panels i { height: 12px; border-radius: 3px; background: rgba(15,23,42,.12); }
.tg-cat-preview-0::before { background: linear-gradient(135deg, #5520b8 0%, #8f4cff 56%, #171345 100%); }
.tg-cat-preview-1::before { background: linear-gradient(135deg, #fff7f5 0%, #f7d4d2 46%, #83d8ff 100%); }
.tg-cat-preview-2::before { background: linear-gradient(135deg, #f8fbff 0%, #d7eaff 44%, #229bd5 100%); }
.tg-cat-preview-3::before { background: linear-gradient(135deg, #101827 0%, #126a88 45%, #22c8ff 100%); }
.tg-cat-preview-4::before { background: linear-gradient(135deg, #f3dc3f 0%, #9dcf58 45%, #0cb197 100%); }
.tg-cat-preview-5::before { background: linear-gradient(135deg, #f7fdff 0%, #a2efff 46%, #1d3e80 100%); }
.tg-cat-preview-1 .tg-cat-browser,
.tg-cat-preview-2 .tg-cat-browser,
.tg-cat-preview-5 .tg-cat-browser { background: rgba(255,255,255,.88); }

/* Product cards */
.tg-market-item,
.tg-card,
.tg-content-card,
.tg-post-card,
.tg-product-buybox,
.tg-dashboard-side,
.tg-stat-card {
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  overflow: hidden;
}
.tg-market-item { min-width: 0; }
.tg-market-thumb {
  height: 183px;
  background: #eef2f7;
  display: block;
  position: relative;
  overflow: hidden;
}
.tg-featured-grid .tg-market-thumb { height: 250px; }
.tg-market-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-thumb-art {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 25px;
  color: #fff;
  position: relative;
  isolation: isolate;
}
.tg-thumb-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 12%, rgba(255,255,255,.36), transparent 16%), radial-gradient(circle at 20% 75%, rgba(255,255,255,.19), transparent 23%);
  z-index: -1;
}
.tg-thumb-art em { font-style: normal; font-size: 13px; font-weight: 900; opacity: .85; }
.tg-thumb-art strong { font-size: 26px; line-height: 1.05; max-width: 88%; }
.tg-thumb-art-0 { background: linear-gradient(135deg, #f229be, #ff7e33); }
.tg-thumb-art-1 { background: linear-gradient(135deg, #080b25, #6a2dff 48%, #0ea5e9); }
.tg-thumb-art-2 { background: linear-gradient(135deg, #050816, #1536ff 52%, #9b4dff); }
.tg-thumb-art-3 { background: linear-gradient(135deg, #111827, #f97316 52%, #facc15); }
.tg-thumb-art-4 { background: linear-gradient(135deg, #06133c, #0ea5e9, #22c55e); }
.tg-thumb-art-5 { background: linear-gradient(135deg, #6d28d9, #ef4444, #f59e0b); }
.tg-featured-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #6dbb2f;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}
.tg-market-body { padding: 20px 23px 22px; min-width: 0; }
.tg-market-body h3 {
  margin: 0 0 5px;
  color: #2c3440;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tg-market-body h3 a:hover { color: #0073ae; }
.tg-byline { margin: 0 0 23px; color: #7b8493; font-size: 13px; }
.tg-price-row strong { display: block; font-size: 24px; color: #2c3440; margin-bottom: 8px; }
.tg-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.tg-rating-sales { display: grid; gap: 1px; min-width: 0; flex: 1 1 82px; }
.tg-stars { color: var(--tg-yellow); letter-spacing: 1px; font-size: 17px; line-height: 1; }
.tg-rating-count { color: #7b8493; font-size: 12px; margin-left: 4px; }
.tg-rating-sales small { color: #8a93a4; font-size: 12px; }
.tg-card-buttons { display: flex; gap: 8px; align-items: center; flex: 0 1 auto; max-width: 100%; margin-left: auto; }
.tg-cart-btn,
.tg-preview-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7c0cb;
  color: #4b5563;
  background: #fff;
  border-radius: 0;
  font-weight: 900;
}
.tg-cart-btn { width: 46px; font-size: 17px; }
.tg-preview-btn { padding: 0 14px; color: #0073ae; border-color: #0073ae; font-size: 13px; white-space: nowrap; min-width: 120px; }
.tg-preview-btn:hover { background: #0073ae; color: #fff; }


/* Prevent action buttons from being clipped on archive product cards */
@media (max-width: 1340px) {
  .tg-product-grid .tg-card-bottom { align-items: flex-start; }
  .tg-product-grid .tg-card-buttons { width: 100%; margin-left: 0; }
  .tg-product-grid .tg-preview-btn { flex: 1; min-width: 0; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .tg-featured-grid .tg-card-buttons { width: 100%; margin-left: 0; }
  .tg-featured-grid .tg-preview-btn { flex: 1; min-width: 0; }
}

/* Featured section */
.tg-featured-code { padding: 85px 0 110px; background: #e9edf3; }
.tg-featured-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 34px;
  align-items: stretch;
}
.tg-featured-intro {
  background: rgba(255,255,255,.72);
  border-radius: 10px;
  min-height: 760px;
  border: 1px dashed #79bf38;
  display: grid;
  align-items: center;
  padding: 75px 80px;
}
.tg-featured-intro h2 { margin: 0 0 26px; font-size: 42px; font-weight: 400; letter-spacing: -.05em; }
.tg-featured-intro p { color: #4b5563; font-size: 20px; line-height: 1.55; margin: 0 0 52px; }
.tg-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

/* Trust */
.tg-trust-section { padding: 105px 0; background: #e9edf3; border-top: 1px solid #e8edf5; }
.tg-trust-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: 80px;
}
.tg-trust-mosaic {
  min-height: 340px;
  background: rgba(255,255,255,.65);
  border: 1px dashed #78bf37;
  border-radius: 10px;
  position: relative;
  padding: 40px;
}
.tg-mosaic-item {
  position: absolute;
  width: 42%;
  height: 130px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(20, 25, 38, .18);
}
.tg-mosaic-1 { background: linear-gradient(135deg, #0f172a, #4ade80); left: 50px; top: 35px; }
.tg-mosaic-2 { background: linear-gradient(135deg, #0f172a, #f59e0b); right: 35px; top: 40px; }
.tg-mosaic-3 { background: linear-gradient(135deg, #1d0064, #8b5cf6); left: 45px; bottom: 35px; }
.tg-mosaic-4 { background: linear-gradient(135deg, #ffd43b, #f97316); right: 35px; bottom: 35px; color: #1f2937; }
.tg-trust-content h2 {
  margin: 0 0 54px;
  text-align: center;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.04em;
}
.tg-trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.tg-trust-cards div {
  background: #fff;
  min-height: 180px;
  border-radius: 8px;
  padding: 38px 30px;
  box-shadow: 0 19px 36px rgba(20, 25, 38, .08);
}
.tg-trust-cards span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff4fb;
  margin-bottom: 26px;
  font-size: 25px;
}
.tg-trust-cards div:nth-child(1) span { background: #ffe5c8; }
.tg-trust-cards div:nth-child(3) span { background: #e8e3ff; }
.tg-trust-cards p { margin: 0; color: #555; font-size: 16px; }

/* Newest */
.tg-newest-code { padding: 70px 0 95px; background: #e9edf3; border-top: 2px solid #79bf38; }
.tg-newest-head { text-align: center; max-width: 980px; margin: 0 auto 55px; }
.tg-newest-head h2 { margin: 0 0 20px; font-size: 36px; font-weight: 400; letter-spacing: -.04em; }
.tg-newest-head p { margin: 0; color: #4b5563; font-size: 17px; }
.tg-filter-pills {
  width: min(100%, 1220px);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.tg-filter-pills a {
  height: 43px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}
.tg-filter-pills a.active { border-color: #79bf38; color: #222; }
.tg-new-grid,
.tg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.tg-center-btn { text-align: center; margin-top: 62px; }
.tg-newest-code .tg-container-wide {
  width: min(100% - 20px, 1220px);
}
.tg-new-grid .tg-market-item {
  min-height: 0;
}
.tg-new-grid .tg-market-thumb {
  height: 142px;
}
.tg-new-grid .tg-market-body {
  padding: 18px 18px 16px;
}
.tg-new-grid .tg-market-body h3 {
  font-size: 15px;
  min-height: 38px;
}
.tg-new-grid .tg-byline {
  font-size: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tg-new-grid .tg-price-row strong {
  font-size: 18px;
  margin-bottom: 10px;
}
.tg-new-grid .tg-stars {
  font-size: 13px;
}
.tg-new-grid .tg-cart-btn,
.tg-new-grid .tg-preview-btn {
  min-height: 36px;
}
.tg-new-grid .tg-cart-btn {
  width: 36px;
  font-size: 14px;
}
.tg-new-grid .tg-preview-btn {
  min-width: 92px;
  padding: 0 12px;
  font-size: 12px;
}


/* Generic buttons/classes used across templates */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid var(--tg-green);
  background: var(--tg-green);
  color: #fff;
  padding: 12px 19px;
  font-weight: 900;
  cursor: pointer;
}
.tg-btn-soft { background: #fff; color: var(--tg-blue); border-color: var(--tg-blue); }
.tg-btn-light { background: #fff; color: #111827; border-color: #fff; }
.tg-btn-small { padding: 9px 13px; font-size: 13px; }
.tg-empty { background: #fff; padding: 25px; border-radius: 8px; border: 1px solid var(--tg-border); }
.tg-eyebrow { display: inline-flex; color: var(--tg-green); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.tg-section { padding: 70px 0; }
.tg-soft-section { background: #eef2f7; }
.tg-section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.tg-section-head h2 { margin: 8px 0 8px; font-size: 34px; letter-spacing: -.04em; }
.tg-section-head p { color: var(--tg-muted); margin: 0; }

/* Archives and inner pages */
.tg-page-hero,
.tg-archive-hero,
.tg-dashboard-hero,
.tg-product-hero,
.tg-cta {
  background: #f3f5f9;
  padding: 70px 0;
  border-bottom: 1px solid var(--tg-border);
}
.tg-page-hero h1,
.tg-archive-hero h1,
.tg-product-hero h1,
.tg-dashboard-hero h1 { margin: 0 0 10px; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.05em; line-height: 1.06; }
.tg-page-hero p,
.tg-archive-hero p,
.tg-product-hero p,
.tg-dashboard-hero p { margin: 0; color: var(--tg-muted); font-size: 17px; }
.tg-archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.tg-archive-toolbar h2 { margin: 0; font-size: 27px; }
.tg-archive-search { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px; border: 1px solid var(--tg-border); border-radius: 6px; }
.tg-archive-search input { border: 0; outline: 0; padding: 8px; min-width: 260px; }
.tg-archive-search button { border: 0; background: var(--tg-green); color: #fff; border-radius: 4px; padding: 9px 14px; font-weight: 900; }
.tg-pagination { margin-top: 44px; display: flex; justify-content: center; gap: 8px; }
.tg-pagination .page-numbers { background: #fff; border: 1px solid var(--tg-border); padding: 10px 14px; border-radius: 4px; font-weight: 800; }
.tg-pagination .current { background: var(--tg-green); color: #fff; border-color: var(--tg-green); }

.tg-product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.tg-product-gallery img { width: 100%; border-radius: 8px; box-shadow: var(--tg-shadow); }
.tg-product-placeholder { min-height: 420px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #1f2937, #6366f1); color: #fff; font-size: 42px; font-weight: 900; }
.tg-product-tabs { margin-top: 28px; background: #fff; border: 1px solid var(--tg-border); border-radius: 4px; padding: 28px; }
.tg-product-tabs h2 { margin-top: 0; }
.tg-product-buybox { padding: 26px; position: sticky; top: 112px; }
.tg-buy-price { font-size: 40px; font-weight: 900; margin-bottom: 16px; }
.tg-buy-meta { display: grid; gap: 12px; margin: 22px 0; color: #4b5563; }
.tg-buy-meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--tg-border); padding-bottom: 10px; }
.tg-buy-actions { display: grid; gap: 10px; }
.tg-license-note { color: var(--tg-muted); font-size: 13px; margin-top: 18px; }

.tg-dashboard-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.tg-dashboard-side { padding: 22px; position: sticky; top: 112px; }
.tg-user-card { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--tg-border); }
.tg-avatar { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 900; background: linear-gradient(135deg, var(--tg-green), var(--tg-blue)); }
.tg-user-card h2 { margin: 0; }
.tg-user-card p { color: var(--tg-muted); margin: 3px 0 0; word-break: break-word; }
.tg-dashboard-nav { display: grid; gap: 8px; margin-top: 20px; }
.tg-dashboard-nav a { padding: 11px 12px; border-radius: 4px; font-weight: 800; color: #344054; }
.tg-dashboard-nav a:hover { background: #eef2f7; color: var(--tg-blue); }
.tg-dashboard-main { display: grid; gap: 24px; }
.tg-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tg-stat-card { padding: 24px; }
.tg-stat-card span { font-size: 36px; font-weight: 900; letter-spacing: -.05em; }
.tg-stat-card p { color: var(--tg-muted); margin: 0; font-weight: 800; }
.tg-content-card { padding: 28px; }
.tg-content-card h2 { margin-top: 0; }
.tg-table-wrap { overflow-x: auto; }
.tg-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.tg-table th,
.tg-table td { padding: 14px 12px; border-bottom: 1px solid var(--tg-border); text-align: left; }
.tg-table th { color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tg-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #ecfff8; color: #08754f; font-weight: 900; font-size: 12px; }
.tg-mini-list { display: grid; gap: 12px; }
.tg-mini-item { display: flex; justify-content: space-between; gap: 18px; padding: 14px; border-radius: 6px; background: #f7f8fc; }
.tg-mini-item span { display: block; color: var(--tg-muted); font-size: 12px; text-transform: capitalize; }
.tg-mini-item a { color: var(--tg-blue); font-weight: 900; }

.tg-auth-section { min-height: calc(100vh - 96px); display: grid; place-items: center; padding: 70px 16px; background: #eef2f7; }
.tg-auth-card { width: min(100%, 470px); padding: 34px; background: #fff; border: 1px solid var(--tg-border); border-radius: 8px; box-shadow: var(--tg-shadow); }
.tg-auth-card h1 { margin: 14px 0 24px; letter-spacing: -.045em; }
.tg-auth-card label { display: block; font-weight: 800; margin-bottom: 8px; }
.tg-auth-card input[type="text"],
.tg-auth-card input[type="email"],
.tg-auth-card input[type="tel"],
.tg-auth-card input[type="password"],
.tg-auth-card select { width: 100%; border: 1px solid var(--tg-border); border-radius: 4px; padding: 13px 14px; margin: 8px 0 14px; outline: none; background: #fff; }
.tg-auth-card input:focus,
.tg-submit-form input:focus,
.tg-submit-form textarea:focus,
.tg-submit-form select:focus { border-color: var(--tg-blue); box-shadow: 0 0 0 4px rgba(0,115,174,.1); }
.tg-auth-card input[type="submit"],
.tg-auth-submit { width: 100%; border: 0; border-radius: 4px; padding: 14px 18px; background: var(--tg-green); color: #fff; font-weight: 900; cursor: pointer; justify-content: center; }
.tg-auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.tg-auth-links a { color: var(--tg-blue); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.tg-register-card { width: min(100%, 640px); }
.tg-register-form { display: grid; gap: 4px; }
.tg-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tg-auth-card label .tg-svg-icon { color: var(--tg-green); margin-right: 5px; }
.tg-register-section { padding-top: 74px; }

.tg-submit-form { display: grid; gap: 18px; }
.tg-submit-form label { display: grid; gap: 8px; font-weight: 900; }
.tg-submit-form input,
.tg-submit-form textarea,
.tg-submit-form select { width: 100%; border: 1px solid var(--tg-border); border-radius: 4px; padding: 13px 14px; outline: none; background: #fff; }
.tg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tg-post-grid { display: grid; gap: 24px; }
.tg-post-card { display: grid; grid-template-columns: 280px 1fr; }
.tg-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-post-body { padding: 26px; }
.tg-post-body h2 { margin: 10px 0; }
.tg-link-more { color: var(--tg-blue); font-weight: 900; }
.tg-single-thumb img { width: 100%; border-radius: 8px; box-shadow: var(--tg-shadow); margin-bottom: 24px; }

/* Footer */
.tg-footer { background: #202020; color: #fff; padding: 60px 0 24px; }
.tg-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.tg-footer-brand { display: inline-flex; gap: 6px; align-items: center; color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.tg-footer-brand span { color: var(--tg-green); }
.tg-footer p,
.tg-footer a { color: rgba(255,255,255,.68); }
.tg-footer h3 { margin: 0 0 14px; }
.tg-footer a { display: block; margin: 8px 0; }
.tg-footer a:hover { color: #fff; }
.tg-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); }

/* Compatibility aliases for old homepage/templates */
.tg-hero, .tg-cta-box { background: #f3f5f9; }
.tg-hero-grid, .tg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tg-category-grid, .tg-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tg-category-card, .tg-feature-card { background: #fff; border: 1px solid var(--tg-border); padding: 24px; border-radius: 8px; }

@media (max-width: 1100px) {
  .tg-top-actions a:not(.tg-signin) { display: none; }
  .tg-hero-inner { grid-template-columns: 1fr 520px; gap: 20px; }
  .tg-featured-layout { grid-template-columns: 360px 1fr; }
  .tg-featured-intro { padding: 55px 45px; }
  .tg-new-grid, .tg-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-trust-layout { gap: 40px; }
  .tg-trust-cards { gap: 18px; }
}

@media (max-width: 1024px) {
  .tg-topbar { gap: 12px; }
  .tg-menu-toggle { display: inline-flex; margin-left: auto; }
  .tg-main-tabs, .tg-top-actions { display: none; }
  .tg-top-header.tg-menu-open .tg-main-tabs,
  .tg-top-header.tg-menu-open .tg-top-actions {
    display: grid;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    height: auto;
    background: #2d2d2d;
    padding: 14px;
    z-index: 20;
    border-radius: 0 0 8px 8px;
    gap: 0;
  }
  .tg-top-header.tg-menu-open .tg-main-tabs a { height: auto; padding: 13px 10px; font-size: 14px; }
  .tg-top-header.tg-menu-open .tg-top-actions { top: 338px; }
  .tg-signin { margin: 0; }
  .tg-hero-inner,
  .tg-stock-banner,
  .tg-featured-layout,
  .tg-trust-layout,
  .tg-product-layout,
  .tg-dashboard-grid,
  .tg-hero-grid,
  .tg-split { grid-template-columns: 1fr; }
  .tg-hero-products { min-height: 350px; }
  .tg-cc-hero, .tg-hero-inner { min-height: auto; }
  .tg-cc-hero { padding: 80px 0 45px; }
  .tg-stock-banner { padding: 44px; }
  .tg-category-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-featured-intro { min-height: auto; }
  .tg-featured-grid, .tg-new-grid, .tg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-trust-cards { grid-template-columns: 1fr; }
  .tg-filter-pills { grid-template-columns: repeat(4, 1fr); }
  .tg-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-product-buybox, .tg-dashboard-side { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 13px; }
  .tg-container, .tg-container-wide { width: min(100% - 22px, var(--tg-container)); }
  .tg-category-scroll { gap: 14px; }
  .tg-hero-copy h1 { font-size: 32px; }
  .tg-hero-copy p { margin-bottom: 28px; font-size: 15px; }
  .tg-code-search { height: auto; display: grid; padding: 12px; }
  .tg-code-search button { width: 100%; }
  .tg-hero-products { display: none; }
  .tg-stock-banner { padding: 28px; min-height: auto; }
  .tg-stock-banner { grid-template-columns: 1fr; }
  .tg-stock-fan { display: none; }
  .tg-category-showcase, .tg-featured-grid, .tg-new-grid, .tg-product-grid, .tg-filter-pills, .tg-stat-grid, .tg-form-grid, .tg-auth-grid, .tg-category-grid, .tg-feature-grid { grid-template-columns: 1fr; }
  .tg-cc-category-card { height: 315px; padding: 32px 24px 0; }
  .tg-cat-preview { margin-top: 70px; height: 126px; }
  .tg-featured-code { padding: 45px 0 60px; }
  .tg-featured-intro { padding: 32px 26px; }
  .tg-featured-intro h2 { font-size: 32px; }
  .tg-featured-intro p { font-size: 16px; }
  .tg-market-thumb, .tg-featured-grid .tg-market-thumb { height: 190px; }
  .tg-card-bottom { align-items: flex-start; flex-direction: column; }
  .tg-card-buttons { width: 100%; }
  .tg-preview-btn { flex: 1; }
  .tg-trust-section { padding: 55px 0; }
  .tg-trust-mosaic { display: none; }
  .tg-trust-content h2, .tg-newest-head h2 { font-size: 30px; }
  .tg-archive-toolbar { display: grid; }
  .tg-archive-search { width: 100%; }
  .tg-archive-search input { min-width: 0; width: 100%; }
  .tg-post-card { grid-template-columns: 1fr; }
  .tg-footer-grid { grid-template-columns: 1fr; }
  .tg-footer-bottom { flex-direction: column; }
}

/* Archive without sidebar */
.tg-archive-layout-full {
  display: block;
}
.tg-archive-layout-full .tg-archive-main {
  width: 100%;
}


/* CodeCanyon-style featured section fix */
.tg-featured-layout {
  width: min(100% - 64px, 1220px);
  max-width: 1220px;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 28px;
}
.tg-featured-intro {
  min-height: 694px;
  padding: 72px 58px;
}
.tg-featured-intro h2 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.tg-featured-intro p {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.tg-featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.tg-featured-grid .tg-market-item {
  min-height: 333px;
}
.tg-featured-grid .tg-market-thumb {
  height: 196px;
}
.tg-featured-grid .tg-market-body {
  padding: 16px 18px 16px;
}
.tg-featured-grid .tg-market-body h3 {
  font-size: 15px;
  min-height: 38px;
}
.tg-featured-grid .tg-byline {
  font-size: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tg-featured-grid .tg-price-row strong {
  font-size: 18px;
  margin-bottom: 8px;
}
.tg-featured-grid .tg-stars {
  font-size: 13px;
}
.tg-featured-grid .tg-cart-btn,
.tg-featured-grid .tg-preview-btn {
  min-height: 36px;
}
.tg-featured-grid .tg-cart-btn {
  width: 36px;
  font-size: 14px;
}
.tg-featured-grid .tg-preview-btn {
  min-width: 92px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .tg-featured-layout {
    width: min(100% - 32px, 940px);
    grid-template-columns: 1fr;
  }
  .tg-featured-intro {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .tg-featured-layout {
    width: min(100% - 22px, 100%);
  }
  .tg-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.tg-contact-hero { background: linear-gradient(180deg, #f5f7fb 0%, #e9edf3 100%); }
.tg-contact-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.tg-contact-info,
.tg-contact-form-card {
  border-radius: 8px;
  box-shadow: var(--tg-shadow);
}
.tg-contact-info h2,
.tg-contact-form-card h2 {
  margin: 8px 0 14px;
  font-size: 30px;
  letter-spacing: -.04em;
}
.tg-contact-info p { color: var(--tg-muted); margin: 0 0 24px; }
.tg-contact-points { display: grid; gap: 14px; }
.tg-contact-points div {
  background: #f7f9fc;
  border: 1px solid var(--tg-border);
  border-radius: 6px;
  padding: 15px;
}
.tg-contact-points strong { display: block; margin-bottom: 4px; color: #1f2937; }
.tg-contact-points span { color: var(--tg-muted); font-size: 13px; }
.tg-contact-form .tg-btn { width: fit-content; min-width: 155px; }
.tg-alert {
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 800;
}
.tg-alert-success { background: #ecfff8; color: #08754f; border: 1px solid #b7f2d8; }
.tg-alert-error { background: #fff1f1; color: #b42318; border: 1px solid #ffd2d2; }
.tg-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .tg-contact-layout { grid-template-columns: 1fr; }
}

/* ThemeGO SVG icon system */
.tg-svg-icon {
  width: 1.08em;
  height: 1.08em;
  display: inline-block;
  vertical-align: -0.18em;
  flex: 0 0 auto;
}
.tg-brand-leaf,
.tg-footer-brand span,
.tg-signin,
.tg-code-search button,
.tg-stock-copy a,
.tg-cart-btn,
.tg-dashboard-nav a,
.tg-product-stats span,
.tg-contact-points strong,
.tg-btn,
.tg-green-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tg-brand-leaf .tg-svg-icon,
.tg-footer-brand .tg-svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}
.tg-menu-toggle .tg-svg-icon {
  width: 30px;
  height: 30px;
}
.tg-signin .tg-svg-icon {
  width: 16px;
  height: 16px;
}
.tg-code-search button .tg-svg-icon,
.tg-stock-copy a .tg-svg-icon,
.tg-green-btn .tg-svg-icon,
.tg-btn .tg-svg-icon {
  width: 16px;
  height: 16px;
}
.tg-cart-btn .tg-svg-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.tg-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--tg-yellow);
  line-height: 1;
  letter-spacing: 0;
}
.tg-stars .tg-star-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
}
.tg-new-grid .tg-stars .tg-star-icon,
.tg-featured-grid .tg-stars .tg-star-icon {
  width: 12px;
  height: 12px;
}
.tg-cat-icon .tg-svg-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}
.tg-cat-icon .tg-icon-php,
.tg-cat-icon .tg-icon-javascript,
.tg-cat-icon .tg-icon-html5 {
  width: 38px;
  height: 38px;
}
.tg-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 13px 0 18px;
  color: #4b5563;
  font-weight: 800;
}
.tg-product-stats .tg-svg-icon {
  color: var(--tg-yellow);
  width: 17px;
  height: 17px;
}
.tg-product-stats .tg-icon-download {
  color: var(--tg-blue);
}
.tg-contact-points strong .tg-svg-icon,
.tg-dashboard-nav .tg-svg-icon {
  width: 17px;
  height: 17px;
  color: var(--tg-blue);
}
.tg-dashboard-nav a {
  display: flex;
}
.tg-contact-points strong {
  gap: 8px;
}

/* Purchase / checkout section */
.tg-price-large {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  margin: 14px 0 12px;
}
.tg-product-buybox .tg-product-info {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #475467;
}
.tg-product-buybox .tg-product-info li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--tg-border);
  padding-top: 10px;
}
.tg-btn-purchase {
  background: #18a67a;
  border-color: #18a67a;
  color: #fff;
}
.tg-btn-purchase:hover { background: #12946c; border-color: #12946c; }
.tg-checkout-section {
  background: #eef2f7;
  padding: 34px 0 74px;
}
.tg-checkout-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tg-checkout-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}
.tg-checkout-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #867bff, #4d7df3);
}
.tg-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px;
  align-items: start;
}
.tg-checkout-card {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(18, 34, 64, .05);
}
.tg-checkout-card h3 {
  margin: 8px 0 14px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tg-summary-box,
.tg-payment-box {
  border: 1px solid #dce3ed;
  border-radius: 22px;
  padding: 16px;
  background: #fbfcfe;
}
.tg-summary-thumb {
  border-radius: 16px;
  overflow: hidden;
  background: #eef3f7;
  min-height: 270px;
  display: grid;
  place-items: center;
}
.tg-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-summary-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e9f1fb;
  color: #1d64d6;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
}
.tg-summary-box h4 {
  margin: 12px 0 8px;
  font-size: 34px;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.tg-summary-box p {
  margin: 0 0 18px;
  color: #667085;
  line-height: 1.6;
}
.tg-summary-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tg-summary-meta-grid div {
  background: #f3f6fa;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 13px 14px;
}
.tg-summary-meta-grid span {
  display: block;
  color: #778195;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.tg-summary-meta-grid strong {
  display: block;
  font-size: 15px;
  color: #25324b;
}
.tg-summary-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 14px;
  padding-top: 16px;
  border-top: 1px solid #e0e6ef;
}
.tg-summary-stock {
  color: #475467;
  font-weight: 700;
}
.tg-summary-price {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}
.tg-summary-buy,
.tg-payment-submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: 16px;
  border-radius: 12px;
}
.tg-payment-accounts {
  border: 1px dashed #b9d8ff;
  border-radius: 18px;
  padding: 14px;
  background: #f7fbff;
  margin-bottom: 16px;
}
.tg-pay-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #e5edf7;
}
.tg-pay-line:last-child { border-bottom: 0; }
.tg-pay-line strong {
  font-size: 13px;
  color: #1e293b;
}
.tg-pay-line span {
  font-weight: 700;
  color: #101828;
  word-break: break-word;
}
.tg-copy-btn {
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #0073ae;
  border-radius: 10px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.tg-payment-form {
  display: grid;
  gap: 10px;
}
.tg-payment-form label {
  font-size: 13px;
  font-weight: 800;
  color: #344054;
}
.tg-payment-form input[type="text"],
.tg-payment-form input[type="file"],
.tg-payment-form select {
  width: 100%;
  border: 1px solid #d3dbe7;
  border-radius: 14px;
  min-height: 48px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}
.tg-payment-form input[type="file"] {
  padding: 11px 14px;
}
.tg-help-text {
  color: #98a2b3;
  font-size: 12px;
  margin-top: -4px;
}
.tg-check-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  background: #f3f7fb;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  padding: 14px;
}
.tg-check-agree input {
  margin-top: 3px;
}
.tg-check-agree span {
  font-weight: 700;
  line-height: 1.5;
  color: #344054;
}
@media (max-width: 1000px) {
  .tg-checkout-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .tg-checkout-card {
    padding: 14px;
    border-radius: 18px;
  }
  .tg-summary-thumb {
    min-height: 190px;
  }
  .tg-summary-meta-grid {
    grid-template-columns: 1fr;
  }
  .tg-pay-line {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Envato-like single item layout */
.tg-single-item-page {
  background: #f3f5f8;
  padding: 26px 0 56px;
}
.tg-item-topbar {
  margin-bottom: 24px;
}
.tg-item-title-wrap {
  max-width: 900px;
}
.tg-item-page-title {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.tg-item-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #667085;
  font-weight: 700;
}
.tg-item-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tg-item-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.tg-item-main {
  min-width: 0;
}
.tg-item-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}
.tg-item-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tg-qa-box {
  background: #fff;
  border: 1px solid var(--tg-border);
  border-radius: 6px;
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-weight: 800;
  color: #4b5563;
}
.tg-qa-box .tg-svg-icon {
  width: 28px;
  height: 28px;
  color: #101828;
}
.tg-item-intro-text {
  margin: 30px 0 24px;
  font-size: 18px;
  line-height: 1.75;
  color: #4b5563;
}
.tg-item-intro-text p { margin: 0; }
.tg-item-offer-banner {
  margin: 0 0 24px;
  min-height: 160px;
  border-radius: 18px;
  padding: 30px 34px;
  background: linear-gradient(135deg, #2d2dff 0%, #1f1fe4 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(45,45,255,.18);
}
.tg-item-offer-banner strong,
.tg-item-offer-banner span,
.tg-item-offer-banner small {
  display: block;
}
.tg-item-offer-banner strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
}
.tg-item-offer-banner span {
  font-size: 24px;
  margin-top: 8px;
  font-weight: 900;
}
.tg-item-offer-banner small {
  opacity: .9;
  margin-top: 14px;
  font-size: 14px;
}
.tg-item-offer-banner em {
  font-style: normal;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}
.tg-direct-demo-note {
  color: #667085;
  font-size: 15px;
  margin: 0 0 18px;
}
.tg-direct-demo-note a {
  color: var(--tg-blue);
  font-weight: 800;
}
.tg-item-showcase {
  background: #111318;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 26px;
}
.tg-item-showcase img {
  width: 100%;
  display: block;
}
.tg-item-content-block,
.tg-related-items-block,
.tg-item-details-card,
.tg-author-card,
.tg-item-side-note,
.tg-item-buy-card {
  background: #fff;
  border: 1px solid var(--tg-border);
  border-radius: 6px;
  box-shadow: none;
}
.tg-item-entry-content {
  color: #344054;
  line-height: 1.8;
}
.tg-item-entry-content > :first-child { margin-top: 0; }
.tg-item-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.tg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tg-item-ad-card {
  background: #121416;
  color: #fff;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.06);
}
.tg-item-ad-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}
.tg-item-ad-card p {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.tg-item-ad-card .tg-btn-light {
  background: #85e35c;
  color: #101828;
  border-color: #85e35c;
  width: 100%;
  justify-content: center;
}
.tg-item-side-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.tg-item-side-note p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}
.tg-side-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e6f5fb;
  color: #51a9ce;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tg-side-badge-orange {
  background: #fff1e7;
  color: #e57a23;
}
.tg-author-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.tg-author-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.tg-author-head p {
  margin: 0;
  color: #667085;
}
.tg-author-avatar {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  background: #3841ff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
}
.tg-author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.tg-author-badges span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f7fb;
  color: #5f6b7a;
}
.tg-author-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid #d0d6de;
  border-radius: 4px;
  color: #344054;
  font-weight: 800;
}
.tg-item-details-card h3,
.tg-item-buy-card h3,
.tg-author-card h3 {
  margin-top: 0;
}
.tg-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
  color: #667085;
}
.tg-detail-row:last-child { border-bottom: 0; }
.tg-detail-row strong {
  color: #101828;
}
.tg-item-buy-card {
  padding: 22px;
}
.tg-item-buy-price {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}
.tg-item-buy-actions {
  display: grid;
  gap: 10px;
}
.tg-item-buy-actions .tg-btn {
  justify-content: center;
}
@media (max-width: 1100px) {
  .tg-item-main-layout {
    grid-template-columns: 1fr;
  }
  .tg-item-sidebar {
    position: static;
  }
}
@media (max-width: 800px) {
  .tg-item-quick-actions,
  .tg-related-grid {
    grid-template-columns: 1fr;
  }
  .tg-item-offer-banner {
    padding: 22px;
    min-height: auto;
  }
  .tg-item-offer-banner strong {
    font-size: 24px;
  }
  .tg-item-offer-banner span {
    font-size: 18px;
  }
  .tg-item-offer-banner em {
    font-size: 38px;
  }
}


/* Square post/product card system */
.tg-new-grid .tg-market-item,
.tg-product-grid .tg-market-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tg-new-grid .tg-market-thumb,
.tg-product-grid .tg-market-thumb {
  height: auto;
  aspect-ratio: 1 / 1;
}
.tg-new-grid .tg-market-thumb img,
.tg-product-grid .tg-market-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-new-grid .tg-thumb-art,
.tg-product-grid .tg-thumb-art {
  padding: 22px;
}
.tg-new-grid .tg-thumb-art strong,
.tg-product-grid .tg-thumb-art strong {
  font-size: 18px;
  line-height: 1.08;
  max-width: 100%;
}
.tg-new-grid .tg-market-body,
.tg-product-grid .tg-market-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.tg-new-grid .tg-price-row,
.tg-product-grid .tg-price-row {
  margin-top: auto;
}
.tg-new-grid .tg-card-bottom,
.tg-product-grid .tg-card-bottom {
  margin-top: auto;
}
@media (max-width: 720px) {
  .tg-new-grid .tg-market-thumb,
  .tg-product-grid .tg-market-thumb {
    aspect-ratio: 1 / 1;
  }
}

/* CodeCanyon-style landscape product card system - override square cards */
.tg-new-grid,
.tg-product-grid {
  grid-template-columns: repeat(4, minmax(260px, 1fr)) !important;
  gap: 34px !important;
  align-items: stretch;
}

.tg-new-grid .tg-market-item,
.tg-product-grid .tg-market-item {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 4px !important;
}

.tg-new-grid .tg-market-thumb,
.tg-product-grid .tg-market-thumb {
  aspect-ratio: auto !important;
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  width: 100% !important;
}

.tg-new-grid .tg-market-thumb img,
.tg-product-grid .tg-market-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.tg-new-grid .tg-thumb-art,
.tg-product-grid .tg-thumb-art {
  height: 100% !important;
  padding: 22px 24px !important;
  align-content: start !important;
}

.tg-new-grid .tg-thumb-art em,
.tg-product-grid .tg-thumb-art em {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.tg-new-grid .tg-thumb-art strong,
.tg-product-grid .tg-thumb-art strong {
  font-size: 25px !important;
  line-height: 1.04 !important;
  max-width: 92% !important;
}

.tg-new-grid .tg-market-body,
.tg-product-grid .tg-market-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 18px 20px 18px !important;
}

.tg-new-grid .tg-market-body h3,
.tg-product-grid .tg-market-body h3 {
  font-size: 16px !important;
  line-height: 1.22 !important;
  min-height: 40px !important;
  margin-bottom: 6px !important;
}

.tg-new-grid .tg-byline,
.tg-product-grid .tg-byline {
  font-size: 13px !important;
  margin-bottom: 18px !important;
}

.tg-new-grid .tg-price-row,
.tg-product-grid .tg-price-row {
  margin-top: auto !important;
}

.tg-new-grid .tg-price-row strong,
.tg-product-grid .tg-price-row strong {
  font-size: 22px !important;
  margin-bottom: 12px !important;
}

.tg-new-grid .tg-card-bottom,
.tg-product-grid .tg-card-bottom {
  margin-top: 0 !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
}

.tg-new-grid .tg-card-buttons,
.tg-product-grid .tg-card-buttons {
  width: auto !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

.tg-new-grid .tg-cart-btn,
.tg-product-grid .tg-cart-btn {
  width: 42px !important;
  min-height: 42px !important;
}

.tg-new-grid .tg-preview-btn,
.tg-product-grid .tg-preview-btn {
  min-width: 126px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
}

@media (max-width: 1180px) {
  .tg-new-grid,
  .tg-product-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .tg-new-grid,
  .tg-product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .tg-new-grid,
  .tg-product-grid {
    grid-template-columns: 1fr !important;
  }
  .tg-new-grid .tg-market-thumb,
  .tg-product-grid .tg-market-thumb {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
  }
  .tg-new-grid .tg-card-bottom,
  .tg-product-grid .tg-card-bottom {
    flex-wrap: wrap !important;
  }
  .tg-new-grid .tg-card-buttons,
  .tg-product-grid .tg-card-buttons {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .tg-new-grid .tg-preview-btn,
  .tg-product-grid .tg-preview-btn {
    flex: 1 !important;
  }
}

/* Hide WordPress admin bar spacing for frontend normal users */
body:not(.admin-bar) {
  margin-top: 0 !important;
}

/* Become an Author application */
.tg-author-apply-section {
  place-items: stretch;
}
.tg-author-apply-wrap {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .75fr);
  gap: 34px;
  align-items: start;
}
.tg-author-apply-info {
  background: #101418;
  color: #fff;
  border-radius: 14px;
  padding: 42px;
  min-height: 560px;
  box-shadow: var(--tg-shadow);
}
.tg-author-apply-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.tg-author-apply-info p {
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 32px;
}
.tg-author-steps {
  display: grid;
  gap: 16px;
}
.tg-author-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 10px;
}
.tg-author-steps .tg-svg-icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--tg-green);
}
.tg-author-steps strong {
  display: block;
  color: #fff;
}
.tg-author-steps span {
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.tg-author-form-card {
  width: 100%;
}
.tg-author-form-card textarea {
  width: 100%;
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  padding: 13px 14px;
  margin: 8px 0 14px;
  outline: none;
  resize: vertical;
}
.tg-seller-status-card .tg-btn {
  margin-top: 8px;
}
@media (max-width: 980px) {
  .tg-author-apply-wrap {
    grid-template-columns: 1fr;
  }
  .tg-author-apply-info {
    min-height: auto;
  }
}

/* Item Tags system */
.tg-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tg-item-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d7e9ff;
  color: #0073ae;
  font-weight: 800;
  font-size: 13px;
}
.tg-item-tags a:hover {
  background: #0073ae;
  color: #fff;
}
.tg-detail-row-tags span {
  text-align: right;
  line-height: 1.5;
}
.tg-submit-form .tg-help-text,
.tg-auth-form .tg-help-text {
  display: block;
  margin: -8px 0 14px;
  color: #8a93a4;
  font-size: 12px;
}

/* Theme ZIP upload system */
.tg-submit-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  padding: 13px 14px;
  background: #fff;
  outline: none;
  margin: 8px 0 14px;
}

/* API payment + seller wallet */
.tg-api-payment-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--tg-border);
}
.tg-api-payment-box h4 {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tg-api-payment-box p {
  margin: 0 0 14px;
  color: #667085;
}
.tg-api-buttons {
  display: grid;
  gap: 10px;
}
.tg-api-buttons .tg-btn {
  justify-content: center;
  width: 100%;
}
.tg-seller-balance-box {
  padding: 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #101418, #1f2937);
  color: #fff;
  margin-bottom: 22px;
}
.tg-seller-balance-box span,
.tg-seller-balance-box small {
  display: block;
  color: rgba(255,255,255,.7);
}
.tg-seller-balance-box strong {
  display: block;
  font-size: 42px;
  line-height: 1.1;
  margin: 8px 0;
}
.tg-withdraw-form {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.tg-withdraw-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.tg-withdraw-form input,
.tg-withdraw-form select,
.tg-withdraw-form textarea {
  width: 100%;
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
}

/* Submit item extended fields */
.tg-submit-form > label,
.tg-submit-form .tg-form-grid label {
  display: block;
  font-weight: 800;
  margin: 14px 0 8px;
}
.tg-submit-form .tg-form-grid p {
  margin: 0;
}
.tg-submit-form input[type="text"],
.tg-submit-form input[type="url"],
.tg-submit-form input[type="number"],
.tg-submit-form textarea,
.tg-submit-form select {
  width: 100%;
}

/* Live synced status badges */
.tg-status-approved {
  background: #dcfce7 !important;
  color: #047857 !important;
}
.tg-status-rejected {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.tg-status-pending,
.tg-status-api_pending {
  background: #ecfdf3 !important;
  color: #027a48 !important;
}


/* Separate Checkout Page */
.tg-separate-checkout {
  min-height: 72vh;
}
.tg-checkout-page-title {
  margin-bottom: 22px;
}
.tg-checkout-page-title .tg-checkout-head {
  margin-top: 12px;
}
.tg-checkout-page-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.05em;
}
.tg-checkout-page-title p {
  margin: 10px 0 0;
  max-width: 650px;
  color: #667085;
  font-size: 16px;
}
.tg-back-link {
  display: inline-flex;
  color: var(--tg-blue);
  font-weight: 800;
  margin-bottom: 8px;
}

/* Uploaded homepage images */
.tg-hero-products-image {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-hero-products-image:before {
  width: 430px;
  height: 430px;
  inset: 0 auto auto 40px;
}
.tg-hero-products-image img {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(35, 45, 70, .22));
}
.tg-stock-fan-real {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-stock-fan-real img {
  width: min(100%, 760px);
  max-height: 345px;
  object-fit: contain;
  transform: translateY(16px);
  filter: drop-shadow(0 24px 26px rgba(0,0,0,.32));
}
.tg-stock-fan-real span {
  display: none !important;
}
.tg-ai-home-assets {
  background: #e9edf3;
  padding: 0 0 50px;
}
.tg-ai-assets-card {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(360px, 1.2fr);
  gap: 28px;
  align-items: center;
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 34px 40px;
  overflow: hidden;
  box-shadow: var(--tg-shadow);
}
.tg-ai-assets-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(27px, 3vw, 45px);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #fff;
}
.tg-ai-assets-card p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
}
.tg-ai-assets-card img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.42));
}
.tg-cat-preview-image {
  background: transparent !important;
  box-shadow: none;
  border-radius: 8px;
  overflow: visible;
}
.tg-cat-preview-image img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  object-position: center bottom;
}
.tg-cat-preview-image .tg-cat-icon {
  z-index: 2;
  background: #fff;
}
.tg-demo-market-item .tg-market-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1000px) {
  .tg-ai-assets-card {
    grid-template-columns: 1fr;
  }
  .tg-hero-products-image img {
    max-height: 300px;
  }
}
@media (max-width: 760px) {
  .tg-ai-assets-card {
    padding: 24px;
  }
  .tg-stock-banner {
    grid-template-columns: 1fr;
  }
  .tg-stock-fan-real {
    min-height: 180px;
  }
  .tg-stock-fan-real img {
    transform: none;
  }
  .tg-cat-preview-image img {
    height: 145px;
  }
}


/* Working navigation + modern animation layer */
body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
body.tg-page-ready {
  opacity: 1;
  transform: translateY(0);
}
body.tg-page-leaving {
  opacity: 0;
  transform: translateY(-8px);
}
.tg-top-header {
  transition: box-shadow .28s ease, background-color .28s ease, transform .28s ease;
}
body.tg-has-scrolled .tg-top-header {
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
}
.tg-main-tabs a,
.tg-category-scroll a {
  position: relative;
  transition: color .22s ease, background-color .22s ease, transform .22s ease;
}
.tg-main-tabs a:before,
.tg-category-scroll a:before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  opacity: .85;
}
.tg-main-tabs a:hover:before,
.tg-main-tabs a.active:before,
.tg-category-scroll a:hover:before,
.tg-category-scroll a.active:before {
  transform: scaleX(1);
}
.tg-main-tabs a:hover,
.tg-category-scroll a:hover {
  transform: translateY(-1px);
}
.tg-category-scroll a.active {
  color: var(--tg-blue);
  font-weight: 800;
}
.tg-start-anim {
  animation: tgSlideDown .55s ease both;
}
@keyframes tgSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
.tg-hero-copy h1 {
  animation: tgHeroTitle .72s cubic-bezier(.2,.8,.2,1) both;
}
.tg-hero-copy p {
  animation: tgHeroTitle .72s cubic-bezier(.2,.8,.2,1) .08s both;
}
.tg-code-search {
  animation: tgHeroTitle .72s cubic-bezier(.2,.8,.2,1) .16s both;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.tg-code-search:hover,
.tg-code-search.tg-form-focused {
  transform: translateY(-2px);
  border-color: rgba(0,115,174,.35);
  box-shadow: 0 20px 42px rgba(42, 52, 70, .17);
}
@keyframes tgHeroTitle {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.tg-hero-products-image img,
.tg-stock-fan-real img,
.tg-ai-assets-card img {
  animation: tgFloatSoft 5.5s ease-in-out infinite;
}
@keyframes tgFloatSoft {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(.6deg); }
}
.tg-stock-fan-real img {
  animation-name: tgFloatFan;
}
@keyframes tgFloatFan {
  0%,100% { transform: translateY(16px) rotate(0deg); }
  50% { transform: translateY(4px) rotate(-1deg); }
}
.tg-reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(8px);
  transition:
    opacity .72s cubic-bezier(.2,.8,.2,1) var(--tg-reveal-delay, 0ms),
    transform .72s cubic-bezier(.2,.8,.2,1) var(--tg-reveal-delay, 0ms),
    filter .72s cubic-bezier(.2,.8,.2,1) var(--tg-reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.tg-reveal.tg-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.tg-market-item,
.tg-cc-category-card,
.tg-content-card,
.tg-checkout-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, filter .28s ease;
}
.tg-market-item:hover,
.tg-cc-category-card:hover,
.tg-content-card:hover,
.tg-checkout-card:hover {
  transform: translate3d(var(--tg-move-x, 0), calc(var(--tg-move-y, 0) - 6px), 0);
  box-shadow: 0 22px 52px rgba(20, 25, 38, .16);
}
.tg-market-thumb {
  overflow: hidden;
}
.tg-market-thumb img,
.tg-cat-preview-image img,
.tg-summary-thumb img {
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.tg-market-item:hover .tg-market-thumb img,
.tg-cc-category-card:hover .tg-cat-preview-image img,
.tg-summary-thumb:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}
.tg-btn,
.tg-green-btn,
.tg-preview-btn,
.tg-cart-btn,
.tg-copy-btn {
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}
.tg-btn:hover,
.tg-green-btn:hover,
.tg-preview-btn:hover,
.tg-cart-btn:hover,
.tg-copy-btn:hover {
  transform: translate3d(var(--tg-move-x, 0), calc(var(--tg-move-y, 0) - 2px), 0);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.tg-filter-pills a {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.tg-filter-pills a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,25,38,.1);
}
.tg-featured-badge,
.tg-summary-pill,
.tg-status {
  animation: tgBadgePop .55s ease both;
}
@keyframes tgBadgePop {
  from { opacity: 0; transform: scale(.75); }
  to { opacity: 1; transform: scale(1); }
}
.tg-loader {
  animation: tgLoaderOut .52s ease forwards;
  animation-delay: .55s;
}
.tg-loader-orb {
  box-shadow: 0 0 0 0 rgba(120,184,42,.45);
  animation: tgSpin .8s linear infinite, tgPulseRing 1.4s ease-in-out infinite;
}
@keyframes tgPulseRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(120,184,42,.4); }
  50% { box-shadow: 0 0 0 18px rgba(120,184,42,0); }
}
.tg-payment-form input,
.tg-payment-form select,
.tg-submit-form input,
.tg-submit-form select,
.tg-submit-form textarea,
.tg-auth-form input,
.tg-auth-form select,
.tg-auth-form textarea {
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.tg-payment-form input:focus,
.tg-payment-form select:focus,
.tg-submit-form input:focus,
.tg-submit-form select:focus,
.tg-submit-form textarea:focus,
.tg-auth-form input:focus,
.tg-auth-form select:focus,
.tg-auth-form textarea:focus {
  border-color: rgba(0,115,174,.55) !important;
  box-shadow: 0 0 0 4px rgba(0,115,174,.10);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  body,
  .tg-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* Category image clarity + smoother scroll fixes */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

/* Remove old mock-browser overlays from real uploaded category images */
.tg-cat-preview-image::before,
.tg-cat-preview-image::after {
  display: none !important;
  content: none !important;
}

.tg-cc-category-card {
  height: 345px;
  padding-bottom: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.tg-cat-preview-image {
  width: 86%;
  height: 164px;
  margin: 62px auto 0;
  border-radius: 7px 7px 0 0;
  overflow: hidden !important;
  background: #f7fafc !important;
  box-shadow: 0 -18px 34px rgba(29, 43, 68, .10) !important;
}

.tg-cat-preview-image img {
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: none !important;
  transform: translateZ(0);
}

.tg-cat-preview-image .tg-cat-icon {
  top: -32px;
  width: 66px;
  height: 66px;
  border-width: 6px;
  z-index: 5;
  box-shadow: 0 12px 26px rgba(15,23,42,.16);
}

.tg-cc-category-card:hover .tg-cat-preview-image img {
  transform: scale(1.035) translateZ(0);
  filter: saturate(1.06) contrast(1.03) !important;
}

/* Lighter reveal so scroll feels smoother and does not jump */
.tg-reveal {
  transform: translateY(18px) scale(.995) !important;
  filter: none !important;
  transition:
    opacity .55s cubic-bezier(.22,.72,.22,1) var(--tg-reveal-delay, 0ms),
    transform .55s cubic-bezier(.22,.72,.22,1) var(--tg-reveal-delay, 0ms) !important;
}

.tg-reveal.tg-visible {
  transform: translateY(0) scale(1) !important;
  filter: none !important;
}

/* Stop heavy hover movement on category cards */
.tg-cc-category-card:hover {
  transform: translateY(-4px) !important;
}

.tg-market-item:hover,
.tg-content-card:hover,
.tg-checkout-card:hover {
  transform: translateY(-5px) !important;
}

/* Browser-composited smoothness */
.tg-market-item,
.tg-cc-category-card,
.tg-content-card,
.tg-checkout-card,
.tg-cat-preview-image,
.tg-market-thumb img {
  will-change: transform;
}

/* Hide any old mock line/browser pieces when real category image exists */
.tg-cat-preview-image .tg-cat-browser,
.tg-cat-preview-image .tg-cat-browser-top,
.tg-cat-preview-image .tg-cat-main-line,
.tg-cat-preview-image .tg-cat-sub-line,
.tg-cat-preview-image .tg-cat-panels {
  display: none !important;
}

@media (max-width: 760px) {
  .tg-cc-category-card {
    height: 315px;
  }
  .tg-cat-preview-image {
    width: 90%;
    height: 138px;
    margin-top: 54px;
  }
}


/* Performance + anti-lag patch */
html {
  scroll-behavior: auto !important;
}

/* Remove expensive whole-page opacity/transform transitions */
body {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.tg-page-ready,
body.tg-page-leaving {
  opacity: 1 !important;
  transform: none !important;
}

/* Make reveal animation lightweight */
.tg-reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  will-change: auto !important;
}
.tg-reveal.tg-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Disable infinite image animations that cause scroll jank */
.tg-hero-products-image img,
.tg-stock-fan-real img,
.tg-ai-assets-card img {
  animation: none !important;
  transform: none !important;
}

/* Remove heavy magnetic transform dependency */
.tg-market-item:hover,
.tg-cc-category-card:hover,
.tg-content-card:hover,
.tg-checkout-card:hover,
.tg-btn:hover,
.tg-green-btn:hover,
.tg-preview-btn:hover,
.tg-cart-btn:hover,
.tg-copy-btn:hover {
  transform: translateY(-2px) !important;
}

/* Reduce costly shadows while scrolling/hovering */
.tg-market-item:hover,
.tg-cc-category-card:hover,
.tg-content-card:hover,
.tg-checkout-card:hover {
  box-shadow: 0 10px 24px rgba(20, 25, 38, .10) !important;
}

/* Avoid too many permanent GPU layers */
.tg-market-item,
.tg-cc-category-card,
.tg-content-card,
.tg-checkout-card,
.tg-cat-preview-image,
.tg-market-thumb img {
  will-change: auto !important;
}

/* Category card icon clipping/overlap fix */
.tg-cc-category-card {
  overflow: visible !important;
  contain: layout paint;
}
.tg-cat-preview-image {
  overflow: visible !important;
  margin-top: 70px !important;
}
.tg-cat-preview-image img {
  border-radius: 7px 7px 0 0;
  overflow: hidden;
}
.tg-cat-preview-image .tg-cat-icon {
  top: -34px !important;
  z-index: 8 !important;
}

/* Use native scrolling and better scroll performance */
* {
  -webkit-overflow-scrolling: touch;
}


/* Square post/product card shape */
.tg-new-grid,
.tg-product-grid,
.tg-related-grid {
  align-items: stretch;
}

.tg-market-item,
.tg-card,
.tg-post-card {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.tg-market-thumb {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 0.58 !important;
  flex: 0 0 auto !important;
}

.tg-market-thumb img,
.tg-market-thumb .tg-thumb-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.tg-market-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 16px !important;
  min-height: 0 !important;
}

.tg-market-body h3 {
  font-size: 15px !important;
  line-height: 1.22 !important;
  margin: 0 0 6px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  overflow: hidden !important;
}

.tg-byline {
  margin-bottom: 8px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  max-height: 34px !important;
  overflow: hidden !important;
}

.tg-price-row {
  margin-top: auto !important;
}

.tg-price-row strong {
  font-size: 20px !important;
}

.tg-card-bottom {
  margin-top: 8px !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

.tg-rating-sales {
  min-width: 72px !important;
}

.tg-rating-sales small,
.tg-rating-count {
  font-size: 11px !important;
}

.tg-card-buttons {
  gap: 6px !important;
}

.tg-cart-btn {
  width: 38px !important;
  min-height: 38px !important;
}

.tg-preview-btn {
  min-height: 38px !important;
  min-width: 108px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

@media (max-width: 720px) {
  .tg-market-item,
  .tg-card,
  .tg-post-card {
    aspect-ratio: auto !important;
  }

  .tg-market-thumb {
    aspect-ratio: 1 / .62 !important;
  }
}


/* Mobile responsive publish-ready patch */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tg-container,
.tg-container-wide,
.tg-narrow {
  max-width: 100%;
}

.site-main,
.tg-cc-hero,
.tg-home-categories,
.tg-featured-code,
.tg-newest-code,
.tg-asset-strip,
.tg-ai-home-assets {
  overflow-x: clip;
}

/* Fix bottom black banner image clipping */
.tg-asset-strip {
  padding: 34px 0 36px;
}
.tg-stock-banner {
  overflow: hidden;
}
.tg-stock-fan-real {
  min-width: 0;
}
.tg-stock-fan-real img {
  width: min(100%, 640px) !important;
  max-height: 250px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Product/card clipping and price spacing */
.tg-market-item {
  min-width: 0;
}
.tg-market-body {
  min-width: 0;
}
.tg-market-body h3,
.tg-byline {
  overflow-wrap: anywhere;
}
.tg-price-row {
  padding-bottom: 2px;
}
.tg-price-row strong {
  line-height: 1.2;
  display: inline-block;
}
.tg-card-bottom {
  min-height: 40px;
}

/* Better card grids */
.tg-new-grid,
.tg-product-grid,
.tg-featured-grid,
.tg-related-grid {
  max-width: 100%;
}

/* Mobile header rebuild */
@media (max-width: 1024px) {
  body.tg-mobile-menu-active {
    overflow: hidden;
  }

  .tg-top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .tg-topbar {
    height: 62px;
    gap: 10px;
  }

  .tg-brand-dark {
    font-size: 17px;
    max-width: calc(100vw - 95px);
    overflow: hidden;
  }

  .tg-brand-dark small {
    font-size: 13px;
  }

  .tg-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
  }

  .tg-main-tabs,
  .tg-top-actions {
    display: none !important;
  }

  .tg-top-header.tg-menu-open .tg-main-tabs,
  .tg-top-header.tg-menu-open .tg-top-actions {
    display: grid !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: #262626 !important;
    z-index: 1001 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: 0 22px 46px rgba(0,0,0,.24);
  }

  .tg-top-header.tg-menu-open .tg-main-tabs {
    top: 62px !important;
    max-height: calc(100vh - 142px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    grid-template-columns: 1fr !important;
    padding: 10px 16px 12px !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  .tg-top-header.tg-menu-open .tg-main-tabs a {
    width: 100% !important;
    min-height: 44px !important;
    padding: 12px 8px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    justify-content: flex-start !important;
    font-size: 14px !important;
  }

  .tg-top-header.tg-menu-open .tg-top-actions {
    bottom: 0 !important;
    top: auto !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .tg-top-header.tg-menu-open .tg-top-actions a {
    display: flex !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
  }

  .tg-signin {
    padding: 10px 12px !important;
    margin: 0 !important;
  }

  .tg-category-bar {
    position: sticky;
    top: 62px;
    z-index: 990;
  }

  .tg-category-scroll {
    min-height: 44px;
    gap: 0 !important;
    padding-inline: 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tg-category-scroll a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    font-size: 12px;
    scroll-snap-align: start;
  }
}

/* Tablet layout */
@media (max-width: 900px) {
  .tg-cc-hero {
    min-height: auto;
    padding: 46px 0 32px;
  }

  .tg-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr !important;
    gap: 26px;
  }

  .tg-hero-products-image {
    min-height: auto;
  }

  .tg-hero-products-image:before {
    width: 300px;
    height: 300px;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
  }

  .tg-hero-products-image img {
    max-height: 260px;
  }

  .tg-ai-assets-card {
    grid-template-columns: 1fr !important;
  }

  .tg-featured-layout,
  .tg-item-main-layout,
  .tg-checkout-grid,
  .tg-author-apply-wrap {
    grid-template-columns: 1fr !important;
    width: min(100% - 24px, var(--tg-container)) !important;
  }

  .tg-item-sidebar {
    position: static !important;
  }

  .tg-featured-intro {
    min-height: auto !important;
  }
}

/* Phone layout */
@media (max-width: 640px) {
  .tg-container,
  .tg-container-wide,
  .tg-narrow {
    width: min(100% - 20px, var(--tg-container)) !important;
  }

  .tg-hero-copy h1 {
    font-size: 30px !important;
    line-height: 1.08;
  }

  .tg-hero-copy p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .tg-code-search {
    width: 100%;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr;
    padding: 12px !important;
  }

  .tg-code-search button {
    width: 100%;
  }

  .tg-home-categories {
    padding-top: 26px;
  }

  .tg-category-showcase {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .tg-cc-category-card {
    height: auto !important;
    min-height: 300px;
    padding: 28px 18px 0 !important;
    overflow: hidden !important;
  }

  .tg-cat-preview-image {
    width: 100% !important;
    max-width: 310px;
    height: 135px !important;
    margin: 58px auto 0 !important;
    overflow: visible !important;
  }

  .tg-cat-preview-image .tg-cat-icon {
    width: 58px !important;
    height: 58px !important;
    top: -30px !important;
  }

  .tg-featured-layout,
  .tg-new-grid,
  .tg-product-grid,
  .tg-featured-grid,
  .tg-related-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .tg-market-item,
  .tg-card,
  .tg-post-card {
    aspect-ratio: auto !important;
    min-height: 0 !important;
  }

  .tg-market-thumb {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }

  .tg-market-body h3 {
    min-height: auto !important;
    max-height: none !important;
  }

  .tg-card-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tg-card-buttons {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
  }

  .tg-preview-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .tg-ai-home-assets {
    padding-bottom: 28px;
  }

  .tg-ai-assets-card {
    padding: 24px 18px !important;
    border-radius: 12px;
  }

  .tg-ai-assets-card h2,
  .tg-stock-copy h2,
  .tg-featured-intro h2,
  .tg-newest-head h2 {
    font-size: 26px !important;
  }

  .tg-asset-strip {
    padding: 22px 0 28px !important;
  }

  .tg-stock-banner {
    grid-template-columns: 1fr !important;
    padding: 26px 18px !important;
    border-radius: 10px !important;
    min-height: auto !important;
  }

  .tg-stock-copy h2 {
    line-height: 1.12;
  }

  .tg-stock-fan-real {
    display: flex !important;
    min-height: 150px !important;
    margin-top: 14px;
  }

  .tg-stock-fan-real img {
    max-height: 145px !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  .tg-item-page-title {
    font-size: 28px !important;
  }

  .tg-item-quick-actions,
  .tg-summary-meta-grid,
  .tg-form-grid,
  .tg-stat-grid,
  .tg-filter-pills {
    grid-template-columns: 1fr !important;
  }

  .tg-checkout-card,
  .tg-content-card,
  .tg-auth-card {
    padding: 20px !important;
  }

  .tg-footer-grid {
    grid-template-columns: 1fr !important;
  }

  .tg-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .tg-brand-dark {
    font-size: 15px;
  }

  .tg-category-scroll a {
    font-size: 11px;
    padding-inline: 9px;
  }

  .tg-hero-copy h1 {
    font-size: 27px !important;
  }

  .tg-market-body {
    padding: 12px !important;
  }
}

/* Print/SEO clean */
@media print {
  .tg-top-header,
  .tg-category-bar,
  .tg-loader,
  .tg-footer {
    display: none !important;
  }
}


/* Final marketplace product card design - reference style */
.tg-new-grid,
.tg-product-grid,
.tg-featured-grid,
.tg-related-grid {
  align-items: stretch;
}

.tg-market-item,
.tg-card,
.tg-post-card {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 485px !important;
  background: #fff !important;
  border: 1px solid #d9e1eb !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease !important;
}

.tg-market-item:hover,
.tg-card:hover,
.tg-post-card:hover {
  transform: translateY(-3px) !important;
  border-color: #c8d3df !important;
  box-shadow: 0 12px 28px rgba(18, 28, 45, .10) !important;
}

.tg-market-thumb {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #eef3f8 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

.tg-market-thumb img,
.tg-market-thumb .tg-thumb-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transform: none !important;
  filter: none !important;
}

.tg-market-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px 20px 18px !important;
  background: #fff !important;
  min-height: 0 !important;
}

.tg-market-body h3 {
  margin: 0 0 7px !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #172033 !important;
  min-height: 45px !important;
  max-height: 45px !important;
  overflow: hidden !important;
  letter-spacing: -.01em;
}

.tg-market-body h3 a {
  color: #172033 !important;
}

.tg-market-body h3 a:hover {
  color: #0073ae !important;
}

.tg-byline {
  margin: 0 0 18px !important;
  color: #728197 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  max-height: 42px !important;
  overflow: hidden !important;
}

.tg-price-row {
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.tg-price-row strong {
  display: block !important;
  font-size: 24px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  color: #152033 !important;
}

.tg-card-bottom {
  margin-top: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
  min-height: 0 !important;
}

.tg-rating-sales {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  color: #718096 !important;
}

.tg-rating-sales .tg-stars,
.tg-rating-stars,
.tg-stars {
  color: #ffb000 !important;
}

.tg-rating-sales svg,
.tg-stars svg {
  width: 16px !important;
  height: 16px !important;
  fill: #ffb000 !important;
  color: #ffb000 !important;
}

.tg-rating-count {
  display: inline-block !important;
  margin-left: 4px !important;
  color: #718096 !important;
  font-size: 13px !important;
}

.tg-rating-sales small {
  display: block !important;
  margin-top: 3px !important;
  color: #718096 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.tg-card-buttons {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: center !important;
}

.tg-cart-btn {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #b9c7d6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #4d5b6c !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tg-cart-btn:hover {
  border-color: #0073ae !important;
  color: #0073ae !important;
  background: #f4fbff !important;
}

.tg-preview-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 2px solid #0073ae !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #0073ae !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-align: center !important;
}

.tg-preview-btn:hover {
  background: #0073ae !important;
  color: #fff !important;
}

.tg-preview-btn svg,
.tg-cart-btn svg {
  width: 17px !important;
  height: 17px !important;
}

/* Featured cards follow the same marketplace shape */
.tg-featured-grid .tg-market-item {
  min-height: 485px !important;
}

.tg-featured-grid .tg-market-thumb {
  aspect-ratio: 16 / 9 !important;
}

/* Mobile product card refinement */
@media (max-width: 640px) {
  .tg-market-item,
  .tg-card,
  .tg-post-card {
    min-height: 0 !important;
    border-radius: 6px !important;
  }

  .tg-market-body {
    padding: 16px 18px !important;
  }

  .tg-market-body h3 {
    font-size: 17px !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .tg-byline {
    font-size: 13px !important;
    margin-bottom: 14px !important;
  }

  .tg-price-row strong {
    font-size: 23px !important;
  }

  .tg-card-buttons {
    grid-template-columns: 42px 1fr !important;
    gap: 10px !important;
  }

  .tg-cart-btn,
  .tg-preview-btn {
    height: 42px !important;
    min-height: 42px !important;
  }
}


/* Search box right-end button fix */
.tg-code-search {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

.tg-code-search input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.tg-code-search button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  height: 40px !important;
  padding: 0 18px !important;
}

/* Override old mobile full-width/centered search rule */
@media (max-width: 640px) {
  .tg-code-search {
    display: flex !important;
    grid-template-columns: none !important;
    height: 54px !important;
    padding: 8px 8px 8px 14px !important;
  }

  .tg-code-search button {
    width: auto !important;
    min-width: 94px !important;
    height: 38px !important;
    margin-left: auto !important;
    padding: 0 14px !important;
  }
}

@media (max-width: 380px) {
  .tg-code-search {
    gap: 6px !important;
    padding-left: 10px !important;
  }

  .tg-code-search button {
    min-width: 82px !important;
    padding: 0 10px !important;
  }
}


/* Hard fix: search button pinned to right end */
.tg-code-search {
  position: relative !important;
  display: block !important;
  width: min(100%, 650px) !important;
  height: 58px !important;
  padding: 0 116px 0 20px !important;
  overflow: hidden !important;
}

.tg-code-search input {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tg-code-search button {
  position: absolute !important;
  top: 50% !important;
  right: 9px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  z-index: 2 !important;
}

.tg-code-search button:hover {
  transform: translateY(-50%) !important;
}

@media (max-width: 640px) {
  .tg-code-search {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    height: 54px !important;
    padding: 0 104px 0 14px !important;
  }

  .tg-code-search button {
    right: 8px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 38px !important;
    padding: 0 10px !important;
  }
}

@media (max-width: 380px) {
  .tg-code-search {
    padding-right: 92px !important;
    padding-left: 10px !important;
  }

  .tg-code-search button {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    font-size: 12px !important;
  }
}


/* Search box visual style refinement to match reference */
.tg-code-search {
  position: relative !important;
  display: block !important;
  width: min(100%, 1080px) !important;
  height: 50px !important;
  padding: 0 116px 0 16px !important;
  background: #ffffff !important;
  border: 1px solid #d9dee7 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.tg-code-search input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2d3748 !important;
  font-size: 15px !important;
  line-height: 50px !important;
}

.tg-code-search input::placeholder {
  color: #7a8698 !important;
  opacity: 1 !important;
}

.tg-code-search button {
  position: absolute !important;
  top: 7px !important;
  right: 8px !important;
  left: auto !important;
  transform: none !important;
  width: 95px !important;
  min-width: 95px !important;
  max-width: 95px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #7fba27 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  z-index: 3 !important;
}

.tg-code-search button:hover,
.tg-code-search button:focus {
  transform: none !important;
  background: #72aa22 !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .tg-code-search {
    width: 100% !important;
    height: 48px !important;
    padding: 0 104px 0 14px !important;
  }

  .tg-code-search input {
    font-size: 14px !important;
    line-height: 48px !important;
  }

  .tg-code-search button {
    top: 6px !important;
    right: 6px !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
}


/* Exact search form child fix - keep submit button at the far right */
.tg-cc-hero .tg-code-search {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 1080px !important;
  min-height: 50px !important;
  height: 50px !important;
  padding: 0 116px 0 16px !important;
  background: #fff !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.tg-cc-hero .tg-code-search > input[type="search"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  color: #2d3748 !important;
  box-sizing: border-box !important;
}

.tg-cc-hero .tg-code-search > input[type="hidden"] {
  display: none !important;
}

.tg-cc-hero .tg-code-search > button[type="submit"] {
  position: absolute !important;
  top: 7px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  width: 95px !important;
  min-width: 95px !important;
  max-width: 95px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #7fba27 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-shadow: none !important;
  z-index: 5 !important;
  cursor: pointer !important;
}

.tg-cc-hero .tg-code-search > button[type="submit"]:hover,
.tg-cc-hero .tg-code-search > button[type="submit"]:focus {
  transform: none !important;
  background: #75ae22 !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .tg-cc-hero .tg-code-search {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 104px 0 14px !important;
  }

  .tg-cc-hero .tg-code-search > input[type="search"] {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 14px !important;
  }

  .tg-cc-hero .tg-code-search > button[type="submit"] {
    top: 6px !important;
    right: 6px !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
}


/* Final search box match to uploaded reference */
.tg-cc-hero .tg-code-search {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 1062px !important;
  min-height: 49px !important;
  height: 49px !important;
  margin: 0 !important;
  padding: 0 116px 0 16px !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.tg-cc-hero .tg-code-search > input[type="search"] {
  display: block !important;
  width: 100% !important;
  height: 47px !important;
  line-height: 47px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4a5568 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-sizing: border-box !important;
}

.tg-cc-hero .tg-code-search > input[type="search"]::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.tg-cc-hero .tg-code-search > input[type="hidden"] {
  display: none !important;
}

.tg-cc-hero .tg-code-search > button[type="submit"] {
  position: absolute !important;
  top: 7px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  height: 35px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #88bc2f !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  z-index: 5 !important;
  cursor: pointer !important;
}

.tg-cc-hero .tg-code-search > button[type="submit"]:hover,
.tg-cc-hero .tg-code-search > button[type="submit"]:focus {
  transform: none !important;
  background: #7fb128 !important;
  color: #fff !important;
}

.tg-cc-hero .tg-code-search > button[type="submit"] svg {
  width: 14px !important;
  height: 14px !important;
}

@media (max-width: 640px) {
  .tg-cc-hero .tg-code-search {
    max-width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 104px 0 14px !important;
  }

  .tg-cc-hero .tg-code-search > input[type="search"] {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 14px !important;
  }

  .tg-cc-hero .tg-code-search > button[type="submit"] {
    top: 6px !important;
    right: 6px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
}


/* Archive/category search box match to uploaded reference */
.tg-archive-hero .tg-search.tg-archive-search,
.tg-archive-hero .tg-archive-search {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 1028px !important;
  min-height: 50px !important;
  height: 50px !important;
  margin: 14px 0 0 !important;
  padding: 0 116px 0 16px !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: none !important;
  gap: 0 !important;
}

.tg-archive-hero .tg-search.tg-archive-search > input[type="search"],
.tg-archive-hero .tg-archive-search > input[type="search"] {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4a5568 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.tg-archive-hero .tg-search.tg-archive-search > input[type="search"]::placeholder,
.tg-archive-hero .tg-archive-search > input[type="search"]::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.tg-archive-hero .tg-search.tg-archive-search > input[type="hidden"],
.tg-archive-hero .tg-archive-search > input[type="hidden"] {
  display: none !important;
}

.tg-archive-hero .tg-search.tg-archive-search > button[type="submit"],
.tg-archive-hero .tg-archive-search > button[type="submit"] {
  position: absolute !important;
  top: 7px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  height: 35px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #88bc2f !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  z-index: 4 !important;
  cursor: pointer !important;
}

.tg-archive-hero .tg-search.tg-archive-search > button[type="submit"]:hover,
.tg-archive-hero .tg-search.tg-archive-search > button[type="submit"]:focus,
.tg-archive-hero .tg-archive-search > button[type="submit"]:hover,
.tg-archive-hero .tg-archive-search > button[type="submit"]:focus {
  background: #7fb128 !important;
  color: #fff !important;
  transform: none !important;
}

.tg-archive-hero .tg-search.tg-archive-search > button[type="submit"] svg,
.tg-archive-hero .tg-archive-search > button[type="submit"] svg {
  width: 14px !important;
  height: 14px !important;
}

@media (max-width: 640px) {
  .tg-archive-hero .tg-search.tg-archive-search,
  .tg-archive-hero .tg-archive-search {
    max-width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 104px 0 14px !important;
  }

  .tg-archive-hero .tg-search.tg-archive-search > input[type="search"],
  .tg-archive-hero .tg-archive-search > input[type="search"] {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 14px !important;
  }

  .tg-archive-hero .tg-search.tg-archive-search > button[type="submit"],
  .tg-archive-hero .tg-archive-search > button[type="submit"] {
    top: 6px !important;
    right: 6px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
}


/* Final search box layout fix to match the 2nd reference image */
.tg-code-search,
.tg-search.tg-archive-search,
.tg-archive-search {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 1065px !important;
  min-height: 49px !important;
  height: 49px !important;
  margin: 0 !important;
  padding: 7px 10px 7px 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: none !important;
  position: relative !important;
}

.tg-code-search > input[type="search"],
.tg-search.tg-archive-search > input[type="search"],
.tg-archive-search > input[type="search"] {
  flex: 1 1 auto !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 35px !important;
  line-height: 35px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4a5568 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-sizing: border-box !important;
}

.tg-code-search > input[type="search"]::placeholder,
.tg-search.tg-archive-search > input[type="search"]::placeholder,
.tg-archive-search > input[type="search"]::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.tg-code-search > input[type="hidden"],
.tg-search.tg-archive-search > input[type="hidden"],
.tg-archive-search > input[type="hidden"] {
  display: none !important;
}

.tg-code-search > button[type="submit"],
.tg-search.tg-archive-search > button[type="submit"],
.tg-archive-search > button[type="submit"] {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  height: 35px !important;
  margin: 0 0 0 auto !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #88bc2f !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-shadow: none !important;
  cursor: pointer !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
}

.tg-code-search > button[type="submit"]:hover,
.tg-code-search > button[type="submit"]:focus,
.tg-search.tg-archive-search > button[type="submit"]:hover,
.tg-search.tg-archive-search > button[type="submit"]:focus,
.tg-archive-search > button[type="submit"]:hover,
.tg-archive-search > button[type="submit"]:focus {
  background: #7fb128 !important;
  color: #fff !important;
  transform: none !important;
}

.tg-code-search > button[type="submit"] svg,
.tg-search.tg-archive-search > button[type="submit"] svg,
.tg-archive-search > button[type="submit"] svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto !important;
}

@media (max-width: 640px) {
  .tg-code-search,
  .tg-search.tg-archive-search,
  .tg-archive-search {
    max-width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 6px 8px 6px 12px !important;
  }

  .tg-code-search > input[type="search"],
  .tg-search.tg-archive-search > input[type="search"],
  .tg-archive-search > input[type="search"] {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 14px !important;
  }

  .tg-code-search > button[type="submit"],
  .tg-search.tg-archive-search > button[type="submit"],
  .tg-archive-search > button[type="submit"] {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
}


/* Post/product card style matched closer to latest uploaded reference */
.tg-market-item,
.tg-card,
.tg-post-card {
  background: #ffffff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.tg-market-item:hover,
.tg-card:hover,
.tg-post-card:hover {
  transform: none !important;
  box-shadow: 0 6px 18px rgba(28, 39, 54, .06) !important;
  border-color: #d2dae3 !important;
}

.tg-market-thumb {
  width: 100% !important;
  aspect-ratio: 280 / 164 !important;
  background: #eef2f7 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

.tg-market-thumb img,
.tg-market-thumb .tg-thumb-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.tg-market-body {
  padding: 14px 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: #fff !important;
  flex: 1 1 auto !important;
}

.tg-market-body h3 {
  margin: 0 0 6px !important;
  min-height: 0 !important;
  max-height: none !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #18222f !important;
  letter-spacing: 0 !important;
}

.tg-market-body h3 a {
  color: #18222f !important;
}

.tg-market-body h3 a:hover {
  color: #0a74b9 !important;
}

.tg-byline {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #8b97a8 !important;
}

.tg-byline a,
.tg-byline em,
.tg-byline span {
  color: #8b97a8 !important;
}

.tg-price-row {
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.tg-price-row strong {
  display: block !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: #1a2431 !important;
}

.tg-card-bottom {
  margin-top: auto !important;
  display: block !important;
}

.tg-rating-sales,
.tg-rating-stars,
.tg-stars,
.tg-rating-count,
.tg-rating-sales small {
  display: none !important;
}

.tg-card-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.tg-cart-btn {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 39px !important;
  min-height: 39px !important;
  padding: 0 !important;
  border: 1px solid #c9d3de !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #687789 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.tg-cart-btn:hover {
  border-color: #0a74b9 !important;
  color: #0a74b9 !important;
  background: #ffffff !important;
}

.tg-preview-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 88px !important;
  max-width: 100% !important;
  height: 39px !important;
  min-height: 39px !important;
  padding: 0 16px !important;
  border: 1px solid #0a74b9 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #0a74b9 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: none !important;
}

.tg-preview-btn:hover {
  background: #f8fcff !important;
  color: #0a74b9 !important;
  border-color: #0a74b9 !important;
}

.tg-preview-btn svg,
.tg-cart-btn svg {
  width: 15px !important;
  height: 15px !important;
}

@media (max-width: 640px) {
  .tg-market-body {
    padding: 12px !important;
  }

  .tg-market-body h3 {
    font-size: 15px !important;
  }

  .tg-byline {
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }

  .tg-price-row {
    margin-bottom: 12px !important;
  }

  .tg-price-row strong {
    font-size: 16px !important;
  }

  .tg-card-buttons {
    gap: 8px !important;
  }

  .tg-preview-btn {
    min-width: 84px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
}


/* Hide product/post tags on frontend */
.single-themego_item .tg-item-tags,
.single-themego_item .tg-detail-row-tags,
.tg-item-tags,
.tg-detail-row-tags {
  display: none !important;
}


/* ThemeGO full business homepage */
.tg-business-hero {
  background:
    radial-gradient(circle at 95% 25%, rgba(44, 89, 164, .25), transparent 30%),
    radial-gradient(circle at 5% 30%, rgba(109, 187, 47, .13), transparent 26%),
    linear-gradient(135deg, #071327 0%, #061122 52%, #06162d 100%);
  color: #fff;
  padding: 58px 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
}
.tg-business-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .18;
  pointer-events: none;
}
.tg-business-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(460px, 1.08fr);
  gap: 34px;
  align-items: center;
}
.tg-business-hero-copy h1 {
  margin: 0 0 17px;
  color: #fff;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 900;
}
.tg-business-hero-copy h1 span,
.tg-business-sell-card h2 span {
  color: var(--tg-green);
}
.tg-business-hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.84);
  font-size: 17px;
  line-height: 1.6;
}
.tg-business-search {
  max-width: 560px !important;
  margin-bottom: 14px !important;
}
.tg-popular-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  align-items: center;
  margin: 10px 0 24px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
}
.tg-popular-keywords a {
  color: rgba(255,255,255,.78);
}
.tg-popular-keywords a:hover { color: #fff; }
.tg-business-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  max-width: 680px;
}
.tg-business-trust-row div {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.tg-business-trust-row svg { width: 20px; height: 20px; color: var(--tg-green); }
.tg-business-trust-row span { display: grid; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; }
.tg-business-trust-row small { color: rgba(255,255,255,.65); font-size: 10px; font-weight: 600; }

.tg-business-dashboard-mock {
  min-height: 440px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.16);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}
.tg-business-dashboard-mock aside {
  background: #071327;
  color: #fff;
  padding: 20px 15px;
  display: grid;
  align-content: start;
  gap: 13px;
}
.tg-business-dashboard-mock aside strong {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.tg-business-dashboard-mock aside span {
  color: rgba(255,255,255,.78);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tg-business-dashboard-mock aside svg { width: 15px; height: 15px; color: var(--tg-green); }
.tg-business-dashboard-mock main { padding: 24px; color: #172033; }
.tg-mock-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.tg-mock-top h3 { margin: 0 0 4px; font-size: 18px; }
.tg-mock-top p { margin: 0; color: #7b8795; font-size: 12px; }
.tg-mock-top button { border: 1px solid #e5eaf0; background: #fff; border-radius: 6px; padding: 8px 10px; color: #667085; }
.tg-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.tg-mock-stats div { border: 1px solid #e7edf4; border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.tg-mock-stats span { color: #7b8795; font-size: 11px; }
.tg-mock-stats strong { font-size: 20px; }
.tg-mock-stats em { color: #14a55b; font-size: 11px; font-style: normal; font-weight: 800; }
.tg-mock-chart { height: 150px; border: 1px solid #e7edf4; border-radius: 10px; display: flex; align-items: end; gap: 18px; padding: 20px; background: linear-gradient(180deg, #fff, #f7fbff); }
.tg-mock-chart span { flex: 1; border-radius: 999px; background: linear-gradient(180deg, #3b82f6, #9fd3ff); }
.tg-mock-chart span:nth-child(1){height:36%}.tg-mock-chart span:nth-child(2){height:58%}.tg-mock-chart span:nth-child(3){height:42%}.tg-mock-chart span:nth-child(4){height:74%}.tg-mock-chart span:nth-child(5){height:62%}
.tg-mock-products { margin-top: 14px; display: grid; gap: 7px; }
.tg-mock-products p { margin: 0; display: flex; justify-content: space-between; font-size: 12px; color: #667085; }
.tg-mock-products i { width: 8px; height: 8px; background: var(--tg-green); display: inline-block; border-radius: 50%; margin-right: 5px; }

.tg-business-categories,
.tg-business-featured,
.tg-business-why,
.tg-business-testimonials {
  background: #fff;
  padding: 28px 0 18px;
}
.tg-business-categories h2,
.tg-business-why h2,
.tg-business-testimonials h2 {
  text-align: center;
  margin: 0 0 20px;
  font-size: 28px;
  letter-spacing: -.035em;
}
.tg-business-category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.tg-business-cat-card {
  min-height: 132px;
  border: 1px solid #e4eaf1;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px 10px;
  box-shadow: 0 8px 22px rgba(20,30,46,.04);
}
.tg-business-cat-card span {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: #eef6ff;
  color: #2563eb;
}
.tg-business-cat-card:nth-child(2n) span { background: #f1eaff; color: #7c3aed; }
.tg-business-cat-card:nth-child(3n) span { background: #eafbf1; color: #16a34a; }
.tg-business-cat-card:nth-child(4n) span { background: #fff1e8; color: #f97316; }
.tg-business-cat-card svg { width: 28px; height: 28px; }
.tg-business-cat-card strong { color: #172033; font-size: 14px; }
.tg-business-cat-card small { color: #7b8795; font-size: 12px; }

.tg-business-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.tg-business-section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.035em;
}
.tg-business-section-head a { color: var(--tg-blue); font-weight: 800; }
.tg-business-product-grid,
.tg-business-fallback-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tg-business-fallback-card .tg-market-thumb { aspect-ratio: 16/9 !important; }

.tg-business-stats { background: #fff; padding: 10px 0 20px; }
.tg-business-stats-bar {
  background: linear-gradient(135deg, #071327, #06162f);
  border-radius: 10px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 25px 24px;
  box-shadow: 0 12px 28px rgba(7,19,39,.18);
}
.tg-business-stats-bar div {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.tg-business-stats-bar div:last-child { border-right: 0; }
.tg-business-stats-bar svg { grid-row: span 2; color: #a78bfa; width: 31px; height: 31px; }
.tg-business-stats-bar strong { font-size: 27px; line-height: 1; }
.tg-business-stats-bar span { color: rgba(255,255,255,.72); font-size: 13px; }

.tg-business-why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.tg-business-why-grid div {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  min-height: 112px;
}
.tg-business-why-grid svg { color: #2563eb; width: 25px; height: 25px; margin-bottom: 10px; }
.tg-business-why-grid strong { display: block; color: #172033; margin-bottom: 5px; }
.tg-business-why-grid span { color: #7b8795; font-size: 12px; line-height: 1.45; }

.tg-business-sell { background: #fff; padding: 14px 0 24px; }
.tg-business-sell-card {
  background: linear-gradient(135deg, #071327, #061a35);
  color: #fff;
  border-radius: 12px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 30px;
  align-items: center;
}
.tg-sell-illustration {
  height: 150px;
  display: grid;
  place-items: center;
  position: relative;
}
.tg-sell-illustration span {
  width: 130px; height: 90px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6dbb2f, #18a46f);
  box-shadow: 0 18px 45px rgba(109,187,47,.22);
}
.tg-sell-illustration svg { width: 50px; height: 50px; color: #fff; }
.tg-business-sell-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.035em; }
.tg-business-sell-card p { margin: 0 0 18px; color: rgba(255,255,255,.75); }
.tg-sell-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tg-business-sell-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; border-left: 1px solid rgba(255,255,255,.18); padding-left: 26px; }
.tg-business-sell-card li { display: flex; gap: 8px; align-items: center; font-weight: 800; color: rgba(255,255,255,.86); }
.tg-business-sell-card li svg { color: var(--tg-green); width: 18px; height: 18px; }

.tg-business-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tg-business-testimonial-grid div {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}
.tg-business-testimonial-grid p { margin: 0 0 14px; color: #667085; }
.tg-business-testimonial-grid strong { color: #172033; }
.tg-business-testimonial-grid span { float: right; color: #ffb000; font-weight: 900; }

.tg-business-newsletter {
  background: linear-gradient(135deg, #071327, #06162f);
  padding: 28px 0;
  color: #fff;
}
.tg-business-newsletter .tg-container-wide {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: 30px;
  align-items: center;
}
.tg-business-newsletter h2 { margin: 0 0 5px; color: #fff; }
.tg-business-newsletter p { margin: 0; color: rgba(255,255,255,.72); }
.tg-business-newsletter form {
  display: grid;
  grid-template-columns: 1fr 160px;
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
}
.tg-business-newsletter input { border: 0; padding: 0 18px; min-height: 52px; outline: 0; }
.tg-business-newsletter button { border: 0; background: var(--tg-green); color: #fff; font-weight: 900; cursor: pointer; }

@media (max-width: 1200px) {
  .tg-business-hero-grid { grid-template-columns: 1fr; }
  .tg-business-dashboard-mock { max-width: 780px; }
  .tg-business-category-grid { grid-template-columns: repeat(4, 1fr); }
  .tg-business-product-grid, .tg-business-fallback-grid { grid-template-columns: repeat(3, 1fr); }
  .tg-business-why-grid { grid-template-columns: repeat(3, 1fr); }
  .tg-business-sell-card { grid-template-columns: 1fr; }
  .tg-business-sell-card ul { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .tg-business-hero { padding: 38px 0 26px; }
  .tg-business-hero-copy h1 { font-size: 34px; }
  .tg-business-trust-row { grid-template-columns: 1fr 1fr; }
  .tg-business-dashboard-mock { grid-template-columns: 1fr; transform: none; min-height: auto; }
  .tg-business-dashboard-mock aside { display: none; }
  .tg-mock-stats { grid-template-columns: 1fr; }
  .tg-business-category-grid,
  .tg-business-product-grid,
  .tg-business-fallback-grid,
  .tg-business-why-grid,
  .tg-business-testimonial-grid,
  .tg-business-stats-bar,
  .tg-business-newsletter .tg-container-wide { grid-template-columns: 1fr; }
  .tg-business-stats-bar div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 12px 0; }
  .tg-business-stats-bar div:last-child { border-bottom: 0; }
  .tg-business-newsletter form { grid-template-columns: 1fr; }
  .tg-business-newsletter button { min-height: 48px; }
}


/* Homepage hero image replacement + enhanced animations */
.tg-business-hero-grid {
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr);
}

.tg-business-hero-copy {
  animation: tgFadeUp .8s ease both;
}

.tg-business-hero-showcase {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.tg-hero-showcase-shape {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,109,133,.92), rgba(255,131,160,.72));
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
  filter: blur(0);
  opacity: .95;
}

.tg-business-hero-showcase img {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .24);
  animation: tgSoftFloat 6s ease-in-out infinite;
}

.tg-float-in {
  animation: tgFadeRight .95s ease .15s both;
}

.tg-animate-section {
  animation: tgFadeUp .8s ease both;
}

.tg-animate-card {
  animation: tgFadeUp .75s ease both;
}

.tg-business-category-grid .tg-business-cat-card,
.tg-business-fallback-grid .tg-business-fallback-card,
.tg-business-why-grid > div,
.tg-business-testimonial-grid > div {
  opacity: 0;
  transform: translateY(24px);
  animation: tgFadeUp .65s ease forwards;
}

.tg-business-category-grid .tg-business-cat-card:nth-child(1),
.tg-business-fallback-grid .tg-business-fallback-card:nth-child(1),
.tg-business-why-grid > div:nth-child(1),
.tg-business-testimonial-grid > div:nth-child(1) { animation-delay: .05s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(2),
.tg-business-fallback-grid .tg-business-fallback-card:nth-child(2),
.tg-business-why-grid > div:nth-child(2),
.tg-business-testimonial-grid > div:nth-child(2) { animation-delay: .1s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(3),
.tg-business-fallback-grid .tg-business-fallback-card:nth-child(3),
.tg-business-why-grid > div:nth-child(3),
.tg-business-testimonial-grid > div:nth-child(3) { animation-delay: .15s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(4),
.tg-business-fallback-grid .tg-business-fallback-card:nth-child(4),
.tg-business-why-grid > div:nth-child(4) { animation-delay: .2s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(5),
.tg-business-fallback-grid .tg-business-fallback-card:nth-child(5),
.tg-business-why-grid > div:nth-child(5) { animation-delay: .25s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(6),
.tg-business-fallback-grid .tg-business-fallback-card:nth-child(6),
.tg-business-why-grid > div:nth-child(6) { animation-delay: .3s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(7) { animation-delay: .35s; }
.tg-business-category-grid .tg-business-cat-card:nth-child(8) { animation-delay: .4s; }

.tg-business-featured .tg-product-grid .tg-market-item {
  opacity: 0;
  transform: translateY(22px);
  animation: tgFadeUp .65s ease forwards;
}
.tg-business-featured .tg-product-grid .tg-market-item:nth-child(1) { animation-delay: .05s; }
.tg-business-featured .tg-product-grid .tg-market-item:nth-child(2) { animation-delay: .1s; }
.tg-business-featured .tg-product-grid .tg-market-item:nth-child(3) { animation-delay: .15s; }
.tg-business-featured .tg-product-grid .tg-market-item:nth-child(4) { animation-delay: .2s; }
.tg-business-featured .tg-product-grid .tg-market-item:nth-child(5) { animation-delay: .25s; }
.tg-business-featured .tg-product-grid .tg-market-item:nth-child(6) { animation-delay: .3s; }

.tg-business-sell-card,
.tg-business-stats-bar,
.tg-business-newsletter .tg-container-wide {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tg-business-sell-card:hover,
.tg-business-stats-bar:hover {
  transform: translateY(-4px);
}

.tg-business-cat-card,
.tg-business-why-grid div,
.tg-business-testimonial-grid div,
.tg-market-item {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tg-business-cat-card:hover,
.tg-business-why-grid div:hover,
.tg-business-testimonial-grid div:hover,
.tg-market-item:hover {
  transform: translateY(-6px);
}

@keyframes tgFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tgFadeRight {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tgSoftFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .tg-business-hero-copy,
  .tg-business-hero-showcase img,
  .tg-float-in,
  .tg-animate-section,
  .tg-animate-card,
  .tg-business-category-grid .tg-business-cat-card,
  .tg-business-fallback-grid .tg-business-fallback-card,
  .tg-business-featured .tg-product-grid .tg-market-item,
  .tg-business-why-grid > div,
  .tg-business-testimonial-grid > div {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1200px) {
  .tg-business-hero-showcase {
    min-height: 360px;
  }
  .tg-hero-showcase-shape {
    width: 320px;
    height: 320px;
    left: 6%;
  }
}

@media (max-width: 760px) {
  .tg-business-hero-showcase {
    min-height: 260px;
    margin-top: 10px;
  }
  .tg-hero-showcase-shape {
    width: 220px;
    height: 220px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .tg-business-hero-showcase img {
    border-radius: 12px;
  }
}


/* v1.6.2 - white first section, no floating hero image, no image border */
.tg-business-hero {
  background: #ffffff !important;
  color: #172033 !important;
  border-bottom: 1px solid #e6ebf2 !important;
}
.tg-business-hero:before {
  opacity: 0 !important;
  background: none !important;
}
.tg-business-hero-copy h1,
.tg-business-hero-copy h1 span {
  color: #172033 !important;
}
.tg-business-hero-copy p {
  color: #5f6b7a !important;
}
.tg-popular-keywords {
  color: #667085 !important;
}
.tg-popular-keywords a {
  color: #334155 !important;
}
.tg-popular-keywords a:hover {
  color: #111827 !important;
}
.tg-business-trust-row div {
  background: #ffffff !important;
  border: 1px solid #e6ebf2 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.tg-business-trust-row span {
  color: #172033 !important;
}
.tg-business-trust-row small {
  color: #667085 !important;
}
.tg-business-hero-showcase img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}
.tg-float-in {
  animation: tgFadeRight .95s ease .15s both;
}
@media (prefers-reduced-motion: reduce) {
  .tg-business-hero-showcase img {
    animation: none !important;
  }
}


/* Footer legal links */
.tg-footer-grid {
  grid-template-columns: 1.4fr repeat(4, minmax(140px, 1fr));
}

.tg-footer-legal a,
.tg-footer-bottom-links a {
  color: inherit;
}

.tg-footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tg-footer-bottom-links a {
  opacity: .82;
  font-weight: 700;
}

.tg-footer-bottom-links a:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .tg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tg-footer-grid {
    grid-template-columns: 1fr;
  }

  .tg-footer-bottom-links {
    justify-content: center;
  }
}
