:root {
    --bg: #f8f8f6;
    --card: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --primary: #0f766e;
    --primary-strong: #0b5f58;
    --border: #e5e7eb;
    --shadow: 0 15px 60px rgba(0, 0, 0, 0.07);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

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

.container {
    width: min(1100px, 90vw);
    margin: 0 auto;
    padding: 32px 0 64px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, 90vw);
    margin: 0 auto;
    padding: 20px 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.nav a {
    padding: 8px 12px;
    border-radius: 10px;
}

.nav a.active,
.nav a:hover {
    background: rgba(15, 118, 110, 0.12);
}

.hero {
    padding: 32px;
    background: linear-gradient(135deg, #e0f2f1, #f8f8f6);
    border-radius: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-highlight {
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.15);
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--primary-strong);
    font-weight: 600;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 4px;
}

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

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

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.product-image {
    padding-top: 70%;
    background-size: cover;
    background-position: center;
    background-color: #eef2f5;
}

.product-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    background: var(--card);
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.product-detail__image {
    min-height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    background-color: #eef2f5;
}

.product-detail__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.muted {
    color: var(--muted);
}

.price {
    font-weight: 700;
}

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

.breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 12px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0 12px;
}

.trust-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
}

.trust-list.column {
    flex-direction: column;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2f5;
    border: 1px solid var(--border);
    font-weight: 600;
    text-align: center;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    background: #f3f4f6;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
}

.btn.primary:hover {
    background: var(--primary-strong);
}

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

.btn.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.cart-count {
    background: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.filter-meta {
    justify-self: end;
    color: var(--muted);
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.badge-good {
    background: #e0f7ec;
    color: #0f6f48;
}

.badge-warn {
    background: #fff4e6;
    color: #9a5d00;
}

.badge-danger {
    background: #ffe4e6;
    color: #b42318;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-table input[type='number'] {
    width: 70px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cart-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 14px;
}

.checkout-form {
    display: grid;
    gap: 10px;
}

.checkout-form input {
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.cart-main {
    display: grid;
    gap: 12px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-row.small {
    font-size: 14px;
    color: var(--muted);
}

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

.toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #0f766e;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

