/* Analog & Digital Devices (ADD) - addblr.com
   Clean, light, modern high-tech theme with NO dark navy backgrounds.
   Uses the official logo tripartite accents:
   Tech Indigo (#3e4095), Scarlet Red (#ec3237), and Electric Cyan (#0098db) on crisp white and soft slate surfaces. */

:root {
    /* Brand Accents from Logo */
    --indigo-brand: #3e4095;
    --indigo-hover: #313377;
    --indigo-subtle: #f0f2fa;
    --indigo-border: #d4d7eb;

    --red-brand: #ec3237;
    --red-hover: #d6252a;
    --red-dark: #b91c1c;
    --red-light: #ff5257;
    --red-subtle: #fef2f2;
    --red-border: #fecaca;

    --cyan-brand: #0098db;
    --cyan-hover: #0284c7;
    --cyan-dark: #0369a1;
    --cyan-light: #38bdf8;
    --cyan-subtle: #f0f9ff;
    --cyan-border: #bae6fd;

    /* Status & Supporting Colors */
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --amber-dark: #b45309;

    /* Neutrals & Surfaces */
    --text: #0f172a;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-card: #ffffff;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --success: #047857;
    --success-bg: #ecfdf5;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.04);

    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-body);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface-alt);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

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

a {
    color: var(--indigo-brand);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--cyan-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--text-heading);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 3px solid var(--cyan-light);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--red-brand);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
}

.skip-link:focus {
    left: 16px;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.9em; }
.req { color: var(--red-brand); }

/* ---------- Badges & Highlights ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-iso {
    background: var(--amber-light);
    color: var(--amber-dark);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-featured {
    background: var(--red-subtle);
    color: var(--red-brand);
    border: 1px solid var(--red-border);
}

.badge-category {
    background: var(--cyan-subtle);
    color: var(--cyan-dark);
    border: 1px solid var(--cyan-border);
}

.badge-published {
    background: var(--success-bg);
    color: var(--success);
}

.badge-hidden {
    background: #f1f5f9;
    color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.3;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-brand) 0%, #d6252a 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(236, 50, 55, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d6252a 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(236, 50, 55, 0.35);
    transform: translateY(-1px);
}

.btn-light {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border-dark);
}

.btn-light:hover {
    background: #f8fafc;
    border-color: var(--indigo-brand);
    color: var(--indigo-brand);
}

.btn-outline {
    background: #ffffff;
    color: var(--indigo-brand);
    border: 1px solid var(--border-dark);
}

.btn-outline:hover {
    background: var(--indigo-subtle);
    border-color: var(--indigo-brand);
    color: var(--indigo-hover);
}

.btn-outline-light {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline-light:hover {
    background: #f1f5f9;
    color: var(--indigo-brand);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(185, 28, 28, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: #ffffff;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--cyan-dark);
}

.text-link:hover {
    color: var(--cyan-hover);
    text-decoration: underline;
}

/* ---------- Header & Navigation (Light & Crisp with Red Accent) ---------- */

.site-header {
    background: #ffffff;
    color: var(--text);
    border-top: 3px solid var(--red-brand);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(236, 50, 55, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand-logo {
    height: 48px;
    width: auto;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 2px;
    border: 1px solid var(--border);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--indigo-brand);
}

.brand-text small {
    font-size: 0.75rem;
    color: var(--cyan-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    color: #334155;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--indigo-brand);
    background: var(--indigo-subtle);
}

.site-nav a[aria-current="page"] {
    color: var(--red-brand);
    background: linear-gradient(135deg, rgba(236, 50, 55, 0.12) 0%, rgba(236, 50, 55, 0.04) 100%);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    margin: 5px 0;
    transition: var(--transition);
}

/* ---------- Flash Messages ---------- */

.flash-container {
    padding-top: 16px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(4, 120, 87, 0.25);
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(236, 50, 55, 0.25);
}

.flash-info {
    background: var(--cyan-subtle);
    color: var(--cyan-dark);
    border: 1px solid var(--cyan-border);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ---------- Hero Section (Light with Elegant Red Fade) ---------- */

.hero {
    background: radial-gradient(circle at 85% 15%, rgba(236, 50, 55, 0.16), transparent 50%),
                radial-gradient(circle at 12% 85%, rgba(0, 152, 219, 0.08), transparent 45%),
                linear-gradient(135deg, #fff5f5 0%, #ffffff 45%, #f8fafc 100%);
    color: var(--text);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #fee2e2;
}

.hero-inner {
    max-width: 900px;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cyan-dark);
    margin-bottom: 16px;
}

.hero h1 {
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Stats Strip ---------- */

.stats-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--indigo-brand);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- Sections ---------- */

.section {
    padding: 64px 0;
}

.section-alt {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.highlights li {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid var(--red-brand);
}

.highlights li:nth-child(2) {
    border-left-color: var(--indigo-brand);
}

.highlights li:nth-child(3) {
    border-left-color: var(--cyan-brand);
}

.highlights li strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.highlights li span {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ---------- Product Grid & Cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(236, 50, 55, 0.1), 0 2px 6px rgba(15, 23, 42, 0.04);
    border-color: #fca5a5;
    transform: translateY(-3px);
}

.product-image {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-image img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cyan-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: #0f172a;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* ---------- Category Cards ---------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    border-color: var(--indigo-brand);
    box-shadow: 0 8px 24px rgba(62, 64, 149, 0.1);
    transform: translateY(-2px);
    color: inherit;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex: 1;
}

.category-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--indigo-brand);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- Filter Bar ---------- */

.filter-bar {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.grow {
    flex: 1 1 260px;
}

.field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.field input,
.field select,
.field textarea {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--text);
    transition: var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--cyan-brand);
    box-shadow: 0 0 0 3px rgba(0, 152, 219, 0.18);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---------- Product Detail ---------- */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--indigo-brand);
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 48px;
}

.detail-image {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.detail-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-sku {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.detail-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
    color: #334155;
}

.detail-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
}

.specs-title {
    font-size: 1.15rem;
    margin-top: 12px;
    margin-bottom: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.specs-table th,
.specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.specs-table th {
    width: 35%;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
}

.specs-table td {
    color: var(--text);
}

/* ---------- Contact & Lab Enquiry (Light Page Banner) ---------- */

.page-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #f0f7ff 100%);
    color: #0f172a;
    padding: 48px 0;
    border-bottom: 2px solid #fee2e2;
}

.page-banner h1 {
    color: #0f172a;
    margin-bottom: 8px;
}

.page-banner p {
    color: #475569;
    margin: 0;
    font-size: 1.1rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 36px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.info-row p {
    margin: 0;
    font-size: 0.95rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.categories-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #0f172a;
    cursor: pointer;
    line-height: 1.35;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--red-brand);
}

/* ---------- CTA Band (Light & Inviting) ---------- */

.cta-band {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #f0f7ff 100%);
    color: #0f172a;
    padding: 56px 0;
    border-top: 1px solid #fee2e2;
    border-bottom: 1px solid #fee2e2;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.cta-inner h2 {
    color: #0f172a;
    margin: 0 0 8px;
}

.cta-inner p {
    color: #475569;
    margin: 0;
    font-size: 1.05rem;
}

/* ---------- Footer (Clean, Crisp Light Footer with Red Accent) ---------- */

.site-footer {
    background: linear-gradient(180deg, #ffffff 0%, #fffcfc 100%);
    color: #64748b;
    padding: 64px 0 32px;
    border-top: 2px solid #fee2e2;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--indigo-brand);
    margin-bottom: 12px;
}

.footer-muted {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #64748b;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--cyan-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Admin Styles (Clean Light Admin) ---------- */

.admin-body {
    background: #f8fafc;
}

.admin-header {
    background: #ffffff;
    color: var(--text);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-nav {
    display: flex;
    gap: 12px;
}

.admin-nav a {
    color: #334155;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    color: var(--indigo-brand);
    background: var(--indigo-subtle);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-main {
    padding: 36px 0 64px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-head h1 {
    margin: 0 0 4px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat strong {
    font-size: 2rem;
    font-family: var(--font-display);
    color: #0f172a;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.table th,
.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #f8fafc;
}

.table .thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.actions-col {
    text-align: right;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    height: 72px;
    width: auto;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 4px;
    border: 1px solid var(--border);
}

.password-field {
    display: flex;
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 60px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cyan-dark);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px;
}

/* ---------- Responsive ---------- */

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.catalog-sidebar {
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 90px;
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
    }
    .intro {
        grid-template-columns: 1fr;
    }
    .detail {
        grid-template-columns: 1fr;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 2px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    .site-nav.is-open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
