/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #dcfce7;
    --green-pale: #f0fdf4;
    --gold: #d97706;
    --gold-light: #fef3c7;
    --silver: #64748b;
    --silver-light: #f1f5f9;
    --bronze: #92400e;
    --bronze-light: #fef9c3;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #fff;
    --bg-soft: #f9fafb;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--green);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.45s ease-out both;
}

/* ===== STICKY HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
}

.header-nav {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 3.5rem;
}

/* Logo with "3" highlighted */
.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}
.logo:hover { text-decoration: none; }

.logo-3 {
    color: var(--green);
    font-size: 1.5rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Nav menu items */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-link {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--green);
    text-decoration: none;
}

/* ===== CATEGORY DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-dropdown-trigger::after {
    content: "▾";
    font-size: 0.7rem;
    color: #9ca3af;
}
.nav-dropdown-trigger:hover {
    color: var(--green);
    text-decoration: none;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 480px;
    z-index: 200;
    columns: 2;
    column-gap: 1.5rem;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-group {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.nav-dropdown-group-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--green-light);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.25rem 0;
    color: var(--text);
    font-size: 0.85rem;
    transition: color 0.15s;
}
.nav-dropdown-content a:hover {
    color: var(--green);
    text-decoration: none;
}

/* ===== HAMBURGER (mobile, CSS-only) ===== */
.nav-toggle-input {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== LAYOUT ===== */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 3rem;
    background: var(--bg-soft);
}

.footer-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}
.footer-col a:hover { color: var(--green); }

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.affiliate-notice {
    font-style: italic;
    color: #9ca3af;
}

.footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: #9ca3af;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

/* ===== HOMEPAGE SECTIONS ===== */

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(160deg, var(--green-pale) 0%, #fff 70%);
    border-radius: 20px;
    border: 1px solid var(--green-light);
    margin-top: -0.25rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "3";
    position: absolute;
    right: -0.5rem;
    top: -1rem;
    font-size: 12rem;
    font-weight: 900;
    color: var(--green-light);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    max-width: 560px;
    margin: 0 auto 0.875rem;
    font-weight: 800;
    color: var(--text);
}

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

.hero-text {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Steps */
.steps-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.steps-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 560px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.step-number {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}

.step h3 {
    font-size: 0.975rem;
    font-weight: 600;
}

.steps-tagline {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Category grid */
.categories-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.categories-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s, background 0.18s;
    font-size: 0.85rem;
    text-align: center;
    min-height: 5rem;
}
.category-tile:hover {
    border-color: var(--green);
    box-shadow: 0 4px 14px rgba(22,163,74,0.14);
    transform: translateY(-2px);
    background: var(--green-pale);
    text-decoration: none;
}

.category-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.category-name {
    font-weight: 600;
    line-height: 1.3;
}

/* Goals */
.goals-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.goals-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.goal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.goal-tag {
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: var(--green-pale);
    border: 1px solid var(--green-light);
    color: var(--green-dark);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.goal-tag:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(22,163,74,0.25);
}

/* Articles */
.articles-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.articles-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-list {
    list-style: none;
}

.article-list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-list li::before {
    content: "→";
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.article-list a:hover {
    color: var(--green);
}

/* Trust */
.trust-section {
    background: linear-gradient(135deg, var(--green-pale), #fff);
    border-radius: var(--radius);
    border: 1px solid var(--green-light);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.trust-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.trust-section p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Trust numbers */
.trust-numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.trust-number {
    text-align: center;
}

.trust-number strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
}

.trust-number span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* All categories grouped */
.all-categories-section {
    margin-bottom: 2rem;
}

.all-categories-section > h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.category-group {
    margin-bottom: 1.75rem;
}

.category-group h3 {
    font-size: 0.7rem;
    color: var(--green);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.category-group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.category-group-list a {
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.83rem;
    transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.category-group-list a:hover {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--green); }

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: color 0.15s;
    font-weight: 500;
}
.back-link:hover {
    color: var(--green);
    text-decoration: none;
}

/* ===== CATEGORY PAGE LAYOUT ===== */
.category-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-main { flex: 1; min-width: 0; }

.category-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== PRODUCT BADGES ===== */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 1;
}

.badge-top {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid #fde68a;
}

.badge-value {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid #bbf7d0;
}

.badge-premium {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

/* ===== PRODUCT LIST (category page) ===== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-card-large {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
    background: #fff;
}
.product-card-large:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Rank indicator - distinct for each position */
.product-rank {
    position: absolute;
    top: -0.875rem;
    left: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.product-rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.product-rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}
.product-rank-3 {
    background: linear-gradient(135deg, #b45309, #92400e);
    color: #fff;
}

.product-card-large img {
    border-radius: 10px;
    margin-bottom: 1rem;
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}

.product-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.product-info p {
    color: var(--text-muted);
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Other products (details/summary) */
.other-products {
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.other-products summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-soft);
    transition: background 0.2s;
    list-style: none;
}
.other-products summary::-webkit-details-marker { display: none; }
.other-products summary::before {
    content: "▸ ";
    color: #9ca3af;
    transition: transform 0.2s;
    display: inline-block;
}
.other-products[open] summary::before { content: "▾ "; }
.other-products summary:hover { background: #f3f4f6; }

.product-list-other { padding: 1.25rem; }
.product-card-other { border-color: #f3f4f6; box-shadow: none; }

/* ===== UPDATE DATE ===== */
.update-date {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.update-date::before { content: "↻"; color: var(--green); }

/* ===== SIBLING PRODUCTS ===== */
.sibling-products {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
}

.sibling-products h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sibling-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.sibling-card {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.sibling-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--green);
    text-decoration: none;
}

.sibling-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sibling-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: center;
}

.sibling-info strong { font-size: 0.9rem; }
.sibling-info .rating { font-size: 0.78rem; }
.sibling-info .price { font-size: 0.875rem; }

/* ===== RELATED CATEGORIES (sidebar / aside) ===== */
.category-sidebar {
    padding: 1.25rem;
    background: var(--green-pale);
    border-radius: var(--radius);
    border: 1px solid var(--green-light);
}

.related-categories { margin-top: 1.25rem; }

.related-categories h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.related-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.related-pill {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--green-light);
    border-radius: 100px;
    color: var(--green-dark);
    font-size: 0.8rem;
    background: #fff;
    transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.related-pill:hover {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-img {
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.product-description {
    margin: 1rem 0;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta-mobile {
    display: none;
}

/* ===== RATING & PRICE ===== */
.rating {
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.rating-large { font-size: 1.05rem; }

.price {
    font-weight: 800;
    color: var(--text);
    font-size: 1.15rem;
}

.price-large { font-size: 1.6rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    text-align: center;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover {
    background: var(--bg-soft);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: #d1d5db;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* ===== PRODUCT GRID (homepage) ===== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: block;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.product-card img {
    border-radius: 6px;
    margin-bottom: 0.75rem;
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* ===== SEO CONTENT ===== */
.seo-content .content { line-height: 1.8; }
.seo-content .content h2 { margin-top: 2rem; margin-bottom: 0.5rem; }
.seo-content .content p { margin-bottom: 1rem; }

/* ===== ADMIN ===== */
.admin-layout header,
.admin-layout .site-header {
    background: #1e293b;
    border-bottom: none;
}
.admin-layout .logo { color: #fff; }
.admin-layout .logo-3 { color: #4ade80; }
.admin-layout .tagline { color: #94a3b8; }
.admin-nav { display: flex; gap: 1rem; margin-left: auto; }
.admin-nav a { color: #cbd5e1; font-size: 0.875rem; }

.login-form {
    max-width: 320px;
    margin: 4rem auto;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Admin tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-cell { text-align: center; }

/* ===== RESPONSIVE ===== */

/* Mobile: show hamburger, hide nav-menu by default */
@media (max-width: 639px) {
    .tagline { display: none; }

    .nav-toggle-label { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid #f3f4f6;
    }

    .nav-toggle-input:checked ~ .nav-menu { display: flex; }

    .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 5px);
    }
    .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }

    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: auto;
        columns: 1;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .nav-dropdown-trigger::after { content: ""; }
    .nav-link { padding: 0.5rem 0; }

    /* Sticky CTA on mobile */
    .sticky-cta-mobile {
        display: block;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid var(--border);
        z-index: 50;
    }

    .sticky-cta-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.875rem;
        font-size: 1rem;
    }

    .desktop-cta { display: none; }

    /* Mobile hero */
    .hero h1 { font-size: 1.65rem; }
    .hero::before { font-size: 8rem; right: -0.25rem; top: -0.5rem; }

    /* Larger tap targets on mobile */
    .goal-tag { padding: 0.625rem 1.25rem; }
    .category-group-list a { padding: 0.5rem 1rem; font-size: 0.875rem; }
}

@media (min-width: 640px) {
    .hero h1 { font-size: 2.5rem; }

    .steps { grid-template-columns: repeat(3, 1fr); }
    .step { flex-direction: column; text-align: center; }

    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-tile { min-height: 6rem; }

    .footer-grid { grid-template-columns: repeat(3, 1fr); }

    .product-grid { grid-template-columns: repeat(3, 1fr); }

    .product-card-large {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }
    .product-card-large img {
        margin-bottom: 0;
        height: 100%;
        aspect-ratio: auto;
        align-self: stretch;
    }
    .product-rank {
        top: 1rem;
        left: -0.875rem;
    }
    .product-badge {
        grid-column: 2;
        position: static;
        justify-self: start;
        margin-bottom: -0.75rem;
    }

    .product-detail { flex-direction: row; }
    .product-detail-img { width: 380px; flex-shrink: 0; }

    .category-layout { flex-direction: row; }
    .category-sidebar {
        width: 220px;
        flex-shrink: 0;
        position: sticky;
        top: 5rem;
        align-self: flex-start;
    }

    .sibling-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-numbers { gap: 3rem; }
}

@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== CATEGORY TILE WITH IMAGE ===== */
.category-tile-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .category-tile-img {
        height: 100px;
    }
}
