/* ToktokPharma Referral Engine V2 — card + search + lang styles */
.ttk2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin: 20px 0;
}
.ttk2-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card, #fff);
    transition: box-shadow .15s ease, transform .15s ease;
}
.ttk2-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.ttk2-img { display: block; background: #f8fafc; }
.ttk2-img img { width: 100%; height: 160px; object-fit: contain; padding: 8px; }
.ttk2-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.ttk2-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground, #64748b); }
.ttk2-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--foreground, #0f172a); }
.ttk2-cat { font-size: 12px; color: var(--accent, #0d9488); text-decoration: none; }
.ttk2-cat:hover { text-decoration: underline; }
.ttk2-price { font-size: 16px; font-weight: 700; color: var(--foreground, #0f172a); }
.ttk2-btn {
    display: inline-block; margin-top: auto; text-align: center;
    background: var(--accent, #0d9488); color: #fff; padding: 9px 12px;
    border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600;
}
.ttk2-btn:hover { filter: brightness(1.05); }
.ttk2-rx { border-color: #f59e0b; }
.ttk2-rx-badge {
    display: inline-block; background: #f59e0b; color: #1f2937;
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    width: fit-content;
}
.ttk2-rx-note { font-size: 12px; color: #b45309; line-height: 1.4; }
.ttk2-empty, .ttk2-results-for { color: var(--muted-foreground, #64748b); }
.ttk2-search { display: flex; gap: 8px; margin: 12px 0; }
.ttk2-search input[type="search"] {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px; font-size: 14px;
}
.ttk2-search button {
    padding: 10px 18px; border: none; border-radius: 8px; cursor: pointer;
    background: var(--accent, #0d9488); color: #fff; font-weight: 600;
}
.ttk2-lang { padding: 8px 10px; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; font-size: 14px; background: var(--card, #fff); }

/* Nav + dropdown */
.ttk2-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ttk2-nav > a, .ttk2-dropbtn {
    text-decoration: none; color: var(--foreground, #0f172a);
    font-weight: 500; font-size: 14px; padding: 4px 0;
}
.ttk2-nav > a:hover, .ttk2-dropbtn:hover { color: var(--accent, #0d9488); }
.ttk2-dropdown { position: relative; display: inline-block; }
.ttk2-dropdown-content {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--card, #fff); border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px; z-index: 100; box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding: 6px 0;
}
.ttk2-dropdown:hover .ttk2-dropdown-content { display: block; }
.ttk2-dropdown-content a {
    display: block; padding: 8px 16px; text-decoration: none;
    color: var(--foreground, #0f172a); font-size: 14px;
}
.ttk2-dropdown-content a:hover { background: var(--accent, #0d9488); color: #fff; }

/* Brands directory */
.ttk2-brands { list-style:none; padding:0; margin:12px 0; columns:2; column-gap:28px; }
.ttk2-brands li { margin-bottom:8px; break-inside:avoid; }
.ttk2-brands a { text-decoration:none; color:var(--foreground, #0f172a); font-size:14px; }
.ttk2-brands a:hover { color:var(--accent, #0d9488); }
.ttk2-bn { color:var(--muted-foreground, #64748b); font-size:12px; }

/* Hero + categories + disclosure */
.ttk2-hero { background:linear-gradient(135deg,#0d5c4d,#0f6e63); color:#fff; border-radius:16px; padding:42px 36px; margin-bottom:26px; }
.ttk2-hero h1 { font-size:30px; margin:0 0 10px; }
.ttk2-hero p { opacity:.92; max-width:640px; margin:0 0 20px; }
.ttk2-cta { display:inline-block; background:#fff; color:#09463b; padding:12px 22px; border-radius:9px; font-weight:700; text-decoration:none; font-size:14.5px; }
.ttk2-cats { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin-bottom:8px; }
.ttk2-cat-tile { background:#fff; border:1px solid var(--border, #e2e8f0); border-radius:12px; padding:15px 13px; text-align:center; text-decoration:none; color:var(--foreground, #0f172a); font-size:13px; font-weight:600; }
.ttk2-cat-tile small { display:block; color:var(--muted-foreground, #64748b); font-weight:400; margin-top:3px; }
.ttk2-cat-tile:hover { border-color:var(--accent, #0d9488); }
.ttk2-disclosure { background:#fff8ea; border:1px solid #eedfae; border-radius:12px; padding:14px 16px; font-size:13px; color:#6b5410; margin-top:30px; }

/* RTL */
[dir="rtl"] .ttk2-body { text-align: right; }
[dir="rtl"] .ttk2-dropdown-content { left: auto; right: 0; }
