:root {
    --ink: #17202a;
    --muted: #64707d;
    --line: #dfe6ee;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --primary: #0f8b6f;
    --primary-dark: #07604c;
    --accent: #efb84f;
    --dark: #1e2b36;
    --radius: 8px;
    --shadow: 0 18px 42px rgba(23, 32, 42, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--paper);
    line-height: 1.6;
}

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

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

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background:
        linear-gradient(110deg, rgba(23, 32, 42, .94), rgba(15, 139, 111, .80)),
        url('https://images.unsplash.com/photo-1612815154858-60aa4c59eaa6?auto=format&fit=crop&w=1800&q=75') center/cover;
    color: #fff;
}

.site-header.compact {
    background: var(--dark);
}

.nav {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: var(--radius);
    font-weight: 800;
    background: rgba(255, 255, 255, .12);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: end;
    min-height: 520px;
    padding: 74px 0 58px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 13px;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

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

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--dark);
}

.btn.full {
    width: 100%;
}

.hero-panel {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
}

.hero-panel span {
    color: rgba(255, 255, 255, .70);
    font-size: 13px;
    font-weight: 700;
}

.hero-panel strong + span {
    margin-top: 12px;
}

.trust-band {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

.trust-grid div {
    padding: 22px 0;
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid span {
    color: var(--muted);
}

.products-section {
    padding: 62px 0 76px;
}

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

.section-head h2,
.detail-copy h1 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.search-form {
    display: flex;
    gap: 10px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.search-form input {
    min-width: 260px;
}

.category-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 24px;
}

.category-row a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.category-row a.active,
.category-row a:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: #e9f7f3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    color: var(--muted);
}

.result-summary strong {
    color: var(--ink);
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(23, 32, 42, .05);
}

.product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.product-body {
    padding: 20px;
}

.category {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.product-body h3 {
    min-height: 56px;
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.product-body p,
.lead {
    color: var(--muted);
}

.text-link {
    color: var(--primary-dark);
    font-weight: 800;
}

.empty-state {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-btn,
.page-gap {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 800;
}

.page-btn:hover,
.page-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.page-gap {
    border-color: transparent;
}

.detail-page {
    padding: 38px 0 76px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 470px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.detail-image {
    position: sticky;
    top: 22px;
    display: grid;
    place-items: center;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.detail-image img {
    max-height: 390px;
    object-fit: contain;
    padding: 22px;
}

.detail-copy h1 {
    margin-top: 8px;
    font-size: clamp(32px, 5vw, 54px);
}

.detail-copy h2 {
    margin-top: 28px;
    font-size: 22px;
}

.feature-list {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.order-box {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    box-shadow: var(--shadow);
}

.order-box label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 700;
}

.footer {
    background: var(--dark);
    color: #fff;
    padding: 28px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .72);
}

.footer a {
    display: block;
    text-align: right;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero,
    .detail-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 54px 0 36px;
    }

    .section-head,
    .footer-grid {
        display: grid;
    }

    .footer a {
        text-align: left;
    }

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

    .detail-image {
        position: static;
        min-height: 320px;
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(100% - 24px, 1180px);
    }

    .nav,
    .nav-actions,
    .search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form input {
        min-width: 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }
}
