/* =============================================
   오늘타이어 B2C — Design System
   ============================================= */

:root {
  --tt-primary:   #E10600;
  --tt-primary-d: #A30500;
  --tt-accent:    #E10600;
  --tt-dark:      #0A0A0B;
  --tt-gray:      #64748B;
  --tt-light:     #F8FAFC;
  --tt-border:    #E2E8F0;
  --tt-radius:    12px;
  --tt-shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --tt-shadow-md: 0 4px 24px rgba(0,0,0,.12);

  /* dark theme surfaces (main hero page + shared nav/footer) */
  --tt-surface:    #141416;
  --tt-surface-2:  #101012;
  --tt-border-dk:  rgba(255,255,255,.08);
  --tt-text-1:     #F2F2F0;
  --tt-text-2:     #B4B4B8;
  --tt-text-3:     #83838A;
  --tt-text-4:     #6E6E74;
}

::selection { background: var(--tt-primary); color: #fff; }

/* ── Base ── */
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, sans-serif;
  color: var(--tt-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.tt-navbar {
  background: var(--tt-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.tt-navbar .container {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.tt-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tt-brand span { color: var(--tt-primary); }

.tt-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px 10px;
}

.tt-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.tt-nav-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.tt-nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.tt-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tt-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 0 12px;
  height: 38px;
  gap: 8px;
}

.tt-search:focus-within {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.25);
}

.tt-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: .875rem;
  width: 180px;
}

.tt-search input::placeholder { color: rgba(255,255,255,.35); }

.tt-search button {
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.tt-search button:hover { color: #fff; }

.tt-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all .15s;
}

.tt-cart-btn:hover { color: #fff; background: rgba(255,255,255,.14); }

.tt-cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--tt-accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-dropdown { position: relative; }

.tt-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .15s;
  cursor: pointer;
}

.tt-user-btn:hover { color: #fff; background: rgba(255,255,255,.14); }

.tt-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  background: transparent;
  z-index: 2000;
  min-width: 160px;
}

.tt-dropdown-menu-inner {
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: 10px;
  box-shadow: var(--tt-shadow-md);
  padding: 6px;
}

.tt-dropdown.open .tt-dropdown-menu { display: block; }

.tt-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--tt-dark);
  text-decoration: none;
  font-size: .875rem;
  border-radius: 7px;
  transition: background .1s;
}

.tt-dropdown-menu a:hover { background: var(--tt-light); }
.tt-dropdown-menu hr { border-color: var(--tt-border); margin: 4px 0; }

.tt-btn-login {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all .15s;
}

.tt-btn-login:hover { color: #fff; background: rgba(255,255,255,.08); }

.tt-btn-register {
  font-size: .875rem;
  font-weight: 700;
  background: var(--tt-accent);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background .15s;
}

.tt-btn-register:hover { background: var(--tt-primary-d); }

/* ── Mobile Nav Toggle + Panel ── */
.tt-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.8);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.tt-nav-toggle:hover { color: #fff; background: rgba(255,255,255,.14); }

.tt-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 18px;
  background: var(--tt-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tt-mobile-panel.open { display: flex; }

.tt-mobile-panel .tt-search { width: 100%; height: 44px; margin-bottom: 6px; }
.tt-mobile-panel .tt-search input { width: 100%; font-size: 16px; }

.tt-mobile-links { display: flex; flex-direction: column; }

.tt-mobile-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.tt-mobile-links a:last-child { border-bottom: none; }
.tt-mobile-links a:active { color: #fff; }

@media (max-width: 768px) {
  .tt-nav-toggle { display: flex; }
}

/* ── Marquee Banner ── */
.tt-marquee {
  background: var(--tt-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  white-space: nowrap;
}

.tt-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: tt-marquee-scroll 32s linear infinite;
}

.tt-marquee:hover .tt-marquee-track { animation-play-state: paused; }

.tt-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .2px;
}

.tt-marquee-item i { color: var(--tt-accent); font-size: .9rem; }

.tt-marquee-item .sep { color: rgba(255,255,255,.2); margin-left: 28px; }

@keyframes tt-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tt-marquee-track { animation: none; }
}

/* ── Hero (dark) ── */
.tt-hero {
  background: var(--tt-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--tt-border-dk);
}

.tt-hero::after {
  content: '';
  position: absolute;
  left: -160px;
  top: -200px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(225,6,0,.2) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.tt-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: 560px;
}

.tt-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px 0;
}

.tt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  font-size: .8rem;
  font-weight: 600;
  color: var(--tt-text-2);
}

.tt-hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--tt-primary);
  flex-shrink: 0;
}

.tt-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--tt-text-1);
  margin-bottom: 0;
}

.tt-hero h1 em {
  font-style: normal;
  color: var(--tt-primary);
}

.tt-hero p {
  color: var(--tt-text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 480px;
}

.tt-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.tt-hero-btn-primary {
  background: var(--tt-primary);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .95rem;
  transition: background .15s;
}

.tt-hero-btn-primary:hover { background: var(--tt-primary-d); color: #fff; }

.tt-hero-btn-outline {
  background: rgba(255,255,255,.06);
  color: var(--tt-text-1);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .95rem;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .15s;
}

.tt-hero-btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }

.tt-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--tt-border-dk);
}

.tt-hero-stats .num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--tt-text-1);
}

.tt-hero-stats .num span { color: var(--tt-primary); }

.tt-hero-stats .lbl {
  font-size: .78rem;
  color: var(--tt-text-3);
  margin-top: 3px;
}

.tt-hero-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 60% 40%, rgba(225,6,0,.14), transparent 65%), var(--tt-surface-2);
}

.tt-hero-visual svg { width: 82%; height: auto; opacity: .9; }

.tt-hero-logo-badge {
  background: #fff;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-hero-logo-badge img { width: 260px; max-width: 100%; height: auto; display: block; }

/* ── Quick Search Card (dark) ── */
.tt-search-card {
  background: var(--tt-surface);
  border-radius: 24px;
  padding: 32px 36px;
  margin: 0;
  position: relative;
  z-index: 10;
  border: 1px solid var(--tt-border-dk);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.tt-search-card .label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tt-text-1);
  text-transform: none;
  letter-spacing: -.3px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-search-card .label i { color: var(--tt-primary); font-size: 1rem; }

.tt-search-card .sub {
  font-size: .85rem;
  color: var(--tt-text-3);
  margin: 0;
}

.tt-select-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}

.tt-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 90px;
}

.tt-select-wrap label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--tt-text-3);
}

.tt-select-wrap select {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 11px 28px 11px 12px;
  font-size: .875rem;
  color: var(--tt-text-1);
  background-color: var(--tt-surface-2);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B4B4B8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .15s;
  cursor: pointer;
}

.tt-select-wrap select:focus { border-color: var(--tt-primary); }

.tt-search-submit {
  background: var(--tt-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 24px;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .15s;
  height: 44px;
  flex-shrink: 0;
}

.tt-search-submit:hover { background: var(--tt-primary-d); }

/* ── Section ── */
.tt-section { padding: 60px 0; }
.tt-section-sm { padding: 40px 0; }

.tt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tt-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0;
  color: var(--tt-dark);
}

.tt-view-all {
  font-size: .82rem;
  font-weight: 600;
  color: var(--tt-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color .15s;
}

.tt-view-all:hover { color: var(--tt-primary); }

/* ── Product Card ── */
.tt-card {
  background: #fff;
  border-radius: var(--tt-radius);
  border: 1.5px solid var(--tt-border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}

.tt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tt-shadow-md);
  border-color: #CBD5E1;
}

.tt-card .img-wrap {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.tt-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s;
}

.tt-card:hover .img-wrap img { transform: scale(1.06); }

.tt-card .img-empty {
  font-size: 2.5rem;
  color: #CBD5E1;
}

.tt-card-body { padding: 14px 16px 16px; }

.tt-card-brand {
  font-size: .72rem;
  font-weight: 700;
  color: var(--tt-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.tt-card-model {
  font-size: .92rem;
  font-weight: 700;
  color: var(--tt-dark);
  text-decoration: none;
  display: block;
  line-height: 1.3;
  margin-bottom: 3px;
}

.tt-card-model:hover { color: var(--tt-primary); }

.tt-card-size {
  font-size: .78rem;
  color: var(--tt-gray);
  margin-bottom: 12px;
}

.tt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tt-dark);
  line-height: 1;
}

.tt-card-price small {
  font-size: .75rem;
  font-weight: 500;
  color: var(--tt-gray);
}

.tt-btn-cart {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--tt-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}

.tt-btn-cart:hover { background: var(--tt-primary-d); }
.tt-btn-cart:active { transform: scale(.88); }

/* ── Feature Cards ── */
.tt-feature {
  background: var(--tt-light);
  border: 1.5px solid var(--tt-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  transition: box-shadow .2s, border-color .2s;
}

.tt-feature:hover { border-color: #CBD5E1; box-shadow: var(--tt-shadow); }

.tt-feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}

.tt-feature h5 {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tt-dark);
}

.tt-feature p {
  font-size: .82rem;
  color: var(--tt-gray);
  margin: 0;
  line-height: 1.6;
}

/* ── Brand Pills ── */
.tt-pill {
  display: inline-flex;
  padding: 7px 18px;
  border: 1.5px solid var(--tt-border);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--tt-dark);
  text-decoration: none;
  background: #fff;
  transition: all .15s;
}

.tt-pill:hover {
  border-color: var(--tt-primary);
  color: var(--tt-primary);
  background: #FEF2F2;
}

/* ── CTA Banner ── */
.tt-cta {
  background: linear-gradient(135deg, var(--tt-primary-d), var(--tt-primary));
  border-radius: 16px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tt-cta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -.4px;
}

.tt-cta p { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; }

.tt-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ── */
.tt-footer {
  background: var(--tt-dark);
  padding: 56px 0 0;
  margin-top: 80px;
}

.tt-footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.tt-footer-logo span { color: var(--tt-primary); }

.tt-footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}

.tt-footer-partner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  opacity: .85;
}

.tt-footer-partner img {
  height: 22px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: 2px 5px;
}

.tt-footer-partner span {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}

.tt-footer-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.38);
  line-height: 1.65;
}

.tt-footer h6 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.tt-footer ul { list-style: none; padding: 0; margin: 0; }

.tt-footer ul li { margin-bottom: 9px; }

.tt-footer ul a {
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}

.tt-footer ul a:hover { color: rgba(255,255,255,.9); }

.tt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
  margin-top: 40px;
}

.tt-biz-info p {
  font-size: .76rem;
  color: rgba(255,255,255,.28);
  margin: 0 0 2px;
  line-height: 1.6;
}

.tt-copy {
  font-size: .76rem;
  color: rgba(255,255,255,.22);
  text-align: right;
  margin: 0;
}

/* ── Home Dark Zone (main page only: category/product/feature/brand sections) ── */
.tt-home-dark {
  background: var(--tt-dark);
  padding-bottom: 8px;
}

.tt-home-dark .tt-section-title,
.tt-home-dark .tt-search-card .label { color: var(--tt-text-1); }

.tt-home-dark .tt-view-all { color: var(--tt-text-3); }
.tt-home-dark .tt-view-all:hover { color: var(--tt-primary); }

/* product cards inside the dark zone */
.tt-home-dark .tt-card {
  background: var(--tt-surface);
  border-color: var(--tt-border-dk);
}

.tt-home-dark .tt-card:hover { border-color: rgba(255,255,255,.18); }

.tt-home-dark .tt-card .img-wrap { background: #fff; }

.tt-home-dark .tt-card .img-empty { color: #CBD5E1; }

.tt-home-dark .tt-card-brand { color: var(--tt-primary); }
.tt-home-dark .tt-card-model { color: var(--tt-text-1); }
.tt-home-dark .tt-card-model:hover { color: var(--tt-primary); }
.tt-home-dark .tt-card-size { color: var(--tt-text-3); }
.tt-home-dark .tt-card-price { color: var(--tt-text-1); }
.tt-home-dark .tt-card-price small { color: var(--tt-text-3); }

/* category cards */
.tt-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tt-category-card {
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border-dk);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}

.tt-category-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }

.tt-category-card .emoji { font-size: 26px; }

.tt-category-card .name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tt-text-1);
}

.tt-category-card .desc {
  font-size: .82rem;
  color: var(--tt-text-3);
}

/* feature cards inside dark zone */
.tt-home-dark .tt-feature {
  background: var(--tt-surface);
  border-color: var(--tt-border-dk);
}

.tt-home-dark .tt-feature:hover { border-color: rgba(255,255,255,.18); box-shadow: none; }
.tt-home-dark .tt-feature h5 { color: var(--tt-text-1); }
.tt-home-dark .tt-feature p { color: var(--tt-text-3); }

/* brand pills inside dark zone */
.tt-home-dark .tt-pill {
  background: var(--tt-surface);
  border-color: var(--tt-border-dk);
  color: var(--tt-text-2);
}

.tt-home-dark .tt-pill:hover {
  border-color: var(--tt-primary);
  color: #fff;
  background: var(--tt-primary);
}

/* CTA banner border to blend with dark page */
.tt-home-dark .tt-cta { border: 1px solid var(--tt-border-dk); }

/* demo video box */
.tt-home-dark .tt-video-box {
  border: 1px solid var(--tt-border-dk) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.5) !important;
}

/* ── Toast ── */
#tt-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-toast {
  min-width: 260px;
  padding: 13px 18px;
  border-radius: 10px;
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  animation: toastIn .25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.tt-toast.success { background: #16A34A; }
.tt-toast.danger  { background: #DC2626; }
.tt-toast.warning { background: #D97706; }
.tt-toast.info    { background: var(--tt-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile Standardization (site-wide, all pages) ── */
@media (max-width: 768px) {
  /* iOS Safari는 입력 폰트가 16px 미만이면 포커스 시 자동 확대함 — 전 페이지 폼 통일 */
  .form-control, .form-select,
  .form-control-sm, .form-select-sm,
  .tt-select-wrap select {
    font-size: 16px;
  }

  /* 터치 탭 영역 표준화 */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; }
  .tt-btn-cart { width: 38px; height: 38px; }

  /* 토스트를 화면 폭에 맞춰 표시 */
  #tt-toast-container { left: 12px; right: 12px; bottom: 16px; }
  .tt-toast { min-width: 0; width: 100%; }

  /* 컨테이너 좌우 여백 축소로 좁은 화면 공간 확보 */
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .tt-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .tt-hero-visual { min-height: 260px; order: -1; }
  .tt-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tt-hero h1 { font-size: 1.9rem; letter-spacing: -1px; }
  .tt-hero-copy { padding: 36px 0; gap: 16px; }
  .tt-hero-stats { gap: 24px; }
  .tt-search-card { padding: 24px 20px; flex-direction: column; align-items: stretch; }
  .tt-select-group { flex-direction: column; min-width: unset; }
  .tt-select-wrap { min-width: unset; }
  .tt-nav-links, .tt-search { display: none; }
  .tt-cta { flex-direction: column; padding: 28px 24px; }
  .tt-footer-bottom .tt-copy { text-align: left; }
  .tt-category-grid { grid-template-columns: 1fr 1fr; }
}
