/* =============================================================
   TongaMarket Core CSS  v2.0
   ============================================================= */

:root {
  --tm-red:     #C8102E;   /* Tonga flag red */
  --tm-white:   #FFFFFF;
  --tm-dark:    #1A1A2E;
  --tm-mid:     #16213E;
  --tm-accent:  #E94560;
  --tm-gold:    #F0A500;
  --tm-green:   #27AE60;
  --tm-gray:    #6C757D;
  --tm-light:   #F8F9FA;
  --tm-border:  #E0E0E0;
  --tm-radius:  12px;
  --tm-shadow:  0 4px 24px rgba(0,0,0,0.10);
  --tm-shadow-hover: 0 8px 32px rgba(200,16,46,0.18);
  --tm-font:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --tm-max-w:   1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--tm-font);
  color: var(--tm-dark);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--tm-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.tm-container {
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.tm-btn:hover { text-decoration: none; transform: translateY(-1px); }
.tm-btn-primary  { background: var(--tm-red); color: #fff; }
.tm-btn-primary:hover { background: #a50d25; color: #fff; }
.tm-btn-secondary { background: var(--tm-light); color: var(--tm-dark); border-color: var(--tm-border); }
.tm-btn-secondary:hover { background: var(--tm-border); }
.tm-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.tm-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.tm-btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.tm-btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.tm-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.tm-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tm-dark);
  margin-bottom: 12px;
}
.tm-section-header p {
  color: var(--tm-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.tm-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.tm-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--tm-dark) 0%, #C8102E 60%, #F0A500 100%);
}
.tm-hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tm-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 24px;
  max-width: 800px;
}
.tm-hero-logo { margin-bottom: 24px; }
.tm-hero-logo img {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.tm-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.tm-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: .9;
  margin-bottom: 32px;
  line-height: 1.5;
}
.tm-hero-fx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 14px;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,.2);
}
.tm-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.tm-hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 20px;
  animation: tmBounce 2s infinite;
  cursor: pointer;
}
@keyframes tmBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   QUICK CATEGORIES
   ═══════════════════════════════════════════════════════════ */
.tm-quick-cats {
  background: var(--tm-light);
  padding: 32px 0;
  border-bottom: 1px solid var(--tm-border);
}
.tm-quick-cats-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.tm-quick-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid var(--tm-border);
  color: var(--tm-dark);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
}
.tm-quick-cat:hover {
  border-color: var(--tm-red);
  color: var(--tm-red);
  transform: translateY(-3px);
  box-shadow: var(--tm-shadow);
  text-decoration: none;
}
.tm-quick-cat-icon { font-size: 24px; }

/* ═══════════════════════════════════════════════════════════
   FEATURED STORE
   ═══════════════════════════════════════════════════════════ */
.tm-featured-store {
  padding: 60px 0;
  background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
}
.tm-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
  overflow: hidden;
  border: 1px solid var(--tm-border);
}
@media (max-width: 768px) {
  .tm-featured-card { grid-template-columns: 1fr; }
}
.tm-featured-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.tm-featured-info {
  padding: 40px;
}
.tm-featured-badge {
  display: inline-block;
  background: var(--tm-light);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-gray);
  margin-bottom: 16px;
  border: 1px solid var(--tm-border);
}
.tm-featured-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tm-dark);
  margin-bottom: 16px;
}
.tm-featured-info p {
  color: var(--tm-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.tm-featured-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tm-badge {
  display: inline-block;
  background: var(--tm-light);
  border: 1px solid var(--tm-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tm-dark);
}
.tm-badge-sale {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--tm-red);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   ALL STORES / VENDOR GRID
   ═══════════════════════════════════════════════════════════ */
.tm-all-stores {
  padding: 60px 0;
  background: #fff;
}
.tm-island-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.tm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 24px;
  border: 2px solid var(--tm-border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-gray);
  transition: all .2s;
}
.tm-tab:hover, .tm-tab.active {
  border-color: var(--tm-red);
  color: var(--tm-red);
  background: #fff5f5;
}
.tm-vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.tm-vendor-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-border);
  background: #fff;
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  color: var(--tm-dark);
}
.tm-vendor-card:hover {
  box-shadow: var(--tm-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--tm-red);
  text-decoration: none;
}
.tm-vendor-logo {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--tm-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-vendor-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-vendor-logo-fallback {
  font-size: 48px;
  color: var(--tm-red);
}
.tm-vendor-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tm-vendor-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--tm-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.tm-vendor-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--tm-gray);
  margin-bottom: 12px;
}
.tm-vendor-island { font-weight: 600; }
.tm-vendor-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-red);
}
.tm-vendor-card[data-island] { display: flex; }
.tm-vendor-card.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.tm-how-it-works {
  padding: 60px 0;
  background: var(--tm-dark);
  color: #fff;
}
.tm-how-it-works .tm-section-header h2 { color: #fff; }
.tm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.tm-step {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--tm-radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.tm-step-num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tm-red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-step-icon { font-size: 40px; margin: 12px 0; }
.tm-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.tm-step p { font-size: 13px; opacity: .8; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   VENDOR CTA
   ═══════════════════════════════════════════════════════════ */
.tm-vendor-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  text-align: center;
}
.tm-vendor-cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tm-dark);
  margin-bottom: 16px;
}
.tm-vendor-cta-content p {
  color: var(--tm-gray);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.tm-vendor-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   STORE PAGE
   ═══════════════════════════════════════════════════════════ */
.tm-store-header {
  min-height: 280px;
  background: linear-gradient(135deg, var(--tm-dark) 0%, var(--tm-red) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.tm-store-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 100%);
}
.tm-store-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 32px 40px;
  width: 100%;
  max-width: var(--tm-max-w);
  margin: 0 auto;
}
.tm-store-logo {
  width: 100px; height: 100px;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,.4);
  object-fit: cover;
  background: #fff;
}
.tm-store-name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.tm-store-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tm-badge-island,
.tm-badge-cat,
.tm-badge-phone {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.tm-store-desc { color: rgba(255,255,255,.85); font-size: 14px; max-width: 500px; }

.tm-notice-bar {
  background: #FFF3CD;
  border: 1px solid #FFD700;
  color: #856404;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.tm-store-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: 32px 24px;
}
@media (max-width: 900px) {
  .tm-store-container { grid-template-columns: 1fr; }
  .tm-store-sidebar { order: -1; }
}

.tm-store-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}
.tm-store-sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tm-gray);
  margin-bottom: 12px;
}
.tm-cat-list { list-style: none; }
.tm-cat-list li { margin-bottom: 4px; }
.tm-cat-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--tm-dark);
  transition: all .15s;
}
.tm-cat-link:hover,
.tm-cat-link.active {
  background: #fff5f5;
  color: var(--tm-red);
  font-weight: 600;
}

.tm-sidebar-fx {
  margin-top: 24px;
  padding: 16px;
  background: var(--tm-light);
  border-radius: 10px;
  border: 1px solid var(--tm-border);
}
.tm-sidebar-fx h4 { font-size: 13px; margin-bottom: 8px; color: var(--tm-gray); }

.tm-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tm-border);
}
.tm-product-count { font-size: 14px; color: var(--tm-gray); }
.tm-sort select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--tm-border);
  font-size: 13px;
  cursor: pointer;
}

/* ── Product Cards ─────────────────────────────────────────── */
.tm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.tm-product-card {
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-border);
  background: #fff;
  overflow: hidden;
  transition: all .22s;
  display: flex;
  flex-direction: column;
}
.tm-product-card:hover {
  box-shadow: var(--tm-shadow-hover);
  transform: translateY(-3px);
  border-color: #f0c0c8;
}
.tm-product-img-wrap {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--tm-light);
}
.tm-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.tm-product-card:hover .tm-product-img { transform: scale(1.04); }
.tm-product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 48px;
}
.tm-product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.tm-product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.tm-product-title a { color: var(--tm-dark); }
.tm-product-title a:hover { color: var(--tm-red); text-decoration: none; }
.tm-product-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tm-prod-cat {
  font-size: 10px;
  background: var(--tm-light);
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  padding: 2px 8px;
  color: var(--tm-gray);
}
.tm-product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--tm-red);
  margin-bottom: 12px;
}
.tm-product-price .woocommerce-Price-amount { color: var(--tm-red); }
.tm-product-price del .woocommerce-Price-amount { color: var(--tm-gray); font-size: 12px; }
.tm-product-actions { margin-top: auto; }

.tm-atc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--tm-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.tm-atc-btn:hover { background: #a50d25; transform: scale(1.02); }
.tm-atc-btn.loading { opacity: .7; pointer-events: none; }
.tm-atc-btn.success { background: var(--tm-green); }

.tm-out-stock {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--tm-light);
  border-radius: 8px;
  font-size: 12px;
  color: var(--tm-gray);
  border: 1px solid var(--tm-border);
}

.tm-no-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
}
.tm-empty-icon { font-size: 64px; margin-bottom: 16px; }
.tm-no-products h3 { font-size: 1.4rem; margin-bottom: 12px; }

/* ── Pagination ─────────────────────────────────────────── */
.tm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.tm-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--tm-border);
  font-weight: 600;
  font-size: 14px;
  color: var(--tm-dark);
  transition: all .15s;
}
.tm-pagination .current, .tm-pagination .page-numbers:hover {
  background: var(--tm-red);
  color: #fff;
  border-color: var(--tm-red);
}

/* ── Trust bar ─────────────────────────────────────────── */
.tm-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  background: var(--tm-dark);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
}
.tm-trust-item { display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════
   FLOATING CART
   ═══════════════════════════════════════════════════════════ */
#tm-cart-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
#tm-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--tm-red);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(200,16,46,.4);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  position: relative;
}
#tm-cart-icon:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(200,16,46,.5); }
#tm-cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--tm-gold);
  color: var(--tm-dark);
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  transition: all .3s;
}
#tm-cart-bubble:not(.has-items) #tm-cart-count { opacity: 0; transform: scale(0); }

#tm-mini-cart {
  display: none;
  position: absolute;
  bottom: 70px; right: 0;
  width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  border: 1px solid var(--tm-border);
  overflow: hidden;
}
#tm-cart-bubble:hover #tm-mini-cart,
#tm-mini-cart:hover { display: block; }
.tm-mini-cart-inner {
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
}
.tm-mini-cart-footer {
  padding: 12px;
  border-top: 1px solid var(--tm-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tm-mini-cart-footer .tm-clear-cart-link { grid-column: 1/-1; }

/* ── WooCommerce mini-cart reset ────────────────────────── */
.tm-mini-cart-inner .woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tm-border);
  font-size: 13px;
}
.tm-mini-cart-inner img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.tm-mini-cart-inner .mini_cart_item a { color: var(--tm-dark); font-weight: 600; }
.tm-mini-cart-inner .quantity { color: var(--tm-gray); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ═══════════════════════════════════════════════════════════ */
#tm-lang-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#tm-lang-toggle button {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 12px 8px;
  border: none;
  background: rgba(200,16,46,.08);
  color: var(--tm-red);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  transition: all .2s;
  border-left: 3px solid transparent;
}
#tm-lang-toggle button.active {
  background: var(--tm-red);
  color: #fff;
  border-left-color: var(--tm-red);
}
#tm-lang-toggle button:hover { background: var(--tm-red); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   MEGA MENU
   ═══════════════════════════════════════════════════════════ */
.tm-mega-menu-wrapper {
  position: relative;
}
.tm-mega-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 96vw;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0,0,0,.16);
  border-radius: 0 0 14px 14px;
  border: 1px solid var(--tm-border);
  border-top: 3px solid var(--tm-red);
  z-index: 9998;
  padding: 28px;
}
.tm-mega-menu-wrapper:hover .tm-mega-drop { display: grid; }
.tm-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tm-mega-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tm-red);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tm-light);
}
.tm-mega-col ul { list-style: none; }
.tm-mega-col ul li { margin-bottom: 6px; }
.tm-mega-col ul li a {
  color: var(--tm-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color .15s;
}
.tm-mega-col ul li a:hover { color: var(--tm-red); text-decoration: none; }
.tm-store-badge-new {
  background: var(--tm-green);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   FX BAR
   ═══════════════════════════════════════════════════════════ */
.tm-fx-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.tm-fx-rates { display: flex; gap: 12px; flex-wrap: wrap; }
.tm-fx-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.tm-fx-mini .tm-fx-item {
  background: var(--tm-light);
  color: var(--tm-dark);
  border: 1px solid var(--tm-border);
}

/* ═══════════════════════════════════════════════════════════
   CONFLICT MODAL
   ═══════════════════════════════════════════════════════════ */
#tm-conflict-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
#tm-conflict-modal.show { display: flex; }
.tm-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: tmModalIn .25s ease;
}
@keyframes tmModalIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.tm-modal-icon { font-size: 48px; margin-bottom: 16px; }
.tm-modal-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--tm-dark); }
.tm-modal-box p { color: var(--tm-gray); margin-bottom: 24px; line-height: 1.6; font-size: 14px; }
.tm-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tm-hero-actions { flex-direction: column; align-items: center; }
  .tm-product-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-vendor-grid  { grid-template-columns: repeat(2, 1fr); }
  .tm-mega-grid    { grid-template-columns: 1fr; }
  .tm-steps        { grid-template-columns: 1fr 1fr; }
  .tm-store-header-inner { padding: 20px; flex-direction: column; align-items: flex-start; }
  .tm-store-logo { width: 70px; height: 70px; }
  #tm-lang-toggle { top: auto; bottom: 100px; }
  #tm-mini-cart { width: calc(100vw - 48px); right: 0; }
}

@media (max-width: 480px) {
  .tm-product-grid { grid-template-columns: 1fr; }
  .tm-vendor-grid  { grid-template-columns: 1fr; }
  .tm-steps        { grid-template-columns: 1fr; }
  .tm-featured-info { padding: 24px; }
  .tm-featured-info h3 { font-size: 1.4rem; }
}

/* ── WooCommerce overrides ──────────────────────────────── */
.woocommerce-notices-wrapper { max-width: var(--tm-max-w); margin: 0 auto; }
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 10px;
  margin: 16px 24px;
}
.woocommerce-error { border-top-color: var(--tm-red); background: #fff5f5; }
.woocommerce-message { border-top-color: var(--tm-green); background: #f0fff4; }

/* ── Checkout currency note ─────────────────────────────── */
.woocommerce-checkout .tm-checkout-note {
  background: #f0f9ff;
  border: 1px solid #bae3ff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #0369a1;
  margin-bottom: 20px;
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  #tm-cart-bubble, #tm-lang-toggle, .tm-hero { display: none; }
}
