@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --bg: #050b18;
    --bg-alt: #0d1629;
    --card: #111c33;
    --card-elevated: #162240;
    --accent: #5dc2ff;
    --accent-strong: #36a6ff;
    --text: #f4f6fb;
    --text-muted: #9bb0d4;
    --danger: #ff6b81;
    --success: #3dd598;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 25px rgba(4, 11, 24, 0.8);
}

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

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #0c1d3d, #020610 70%);
    min-height: 100vh;
    line-height: 1.5;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    backdrop-filter: blur(14px);
    background: rgba(5, 11, 24, 0.7);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.brand span {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--bg);
}

.nav-links,
.utility-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a,
.utility-links a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.utility-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    background: linear-gradient(135deg, rgba(93, 194, 255, 0.12), rgba(16, 32, 60, 0.8));
    border: 1px solid rgba(93, 194, 255, 0.3);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    margin: 2rem 0 2.5rem;
    display: grid;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 8px 20px rgba(93, 194, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
}

.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.toolbar-search {
    flex: 1;
    position: relative;
}

.toolbar-search input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 27, 0.7);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}

.toolbar-search svg {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    fill: var(--text-muted);
}

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

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 194, 255, 0.6);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.product-card img {
    height: 170px;
    object-fit: cover;
    width: 100%;
}

.product-card .content {
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.product-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.product-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    font-size: 1.1rem;
}

.stock {
    font-size: 0.85rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(61, 213, 152, 0.12);
    color: var(--success);
}

.stock.low {
    background: rgba(255, 107, 129, 0.15);
    color: var(--danger);
}

.primary-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.aside-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--card-elevated);
    border: 1px solid var(--border);
}

.aside-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.account-summary {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-cta a {
    color: var(--accent);
    font-weight: 600;
}

.list-compact {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.tag {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.section-title {
    font-size: 1.3rem;
    margin: 0 0 1rem;
}

footer {
    margin: 3rem auto 0;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.accent-link {
    color: var(--accent);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    gap: 0.75rem;
}

.empty-state[hidden] {
    display: none !important;
}

/* Page specific layouts */
.subpage-hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.75rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(93, 194, 255, 0.3);
    background: linear-gradient(135deg, rgba(93, 194, 255, 0.08), rgba(13, 22, 41, 0.8));
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.profile-card h3 {
    margin: 0;
}

.profile-card p {
    margin: 0;
    color: var(--text-muted);
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--bg);
    font-size: 1.2rem;
}

.profile-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.profile-actions--stacked {
    margin-top: 1rem;
}

.profile-actions button {
    flex: 1;
    min-width: 120px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-list strong {
    color: var(--text);
    display: inline-block;
    width: 120px;
}

.contact-methods {
    display: grid;
    gap: 1rem;
}

.contact-method {
    padding: 1.2rem;
    border-radius: 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
}

.contact-method h5 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.contact-method p,
.contact-method small {
    margin: 0;
    color: var(--text-muted);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 14, 27, 0.6);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .utility-links {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hero-actions {
        flex-direction: column;
    }

    .toolbar-search {
        width: 100%;
    }
}
