.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(221, 232, 220, 0.9);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(16, 55, 27, 0.07);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: grid;
    grid-template-columns: 260px minmax(280px, 390px) minmax(360px, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 78px;
    padding-block: 10px;
}

.header-brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--color-green-800);
}

.brand-mark svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.header-brand .brand-mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}

.header-brand .brand-mark img {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.brand-copy,
.footer-logo span:last-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.brand-name {
    color: var(--color-green-900);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.header-brand .brand-name {
    font-size: 18px;
    font-weight: 800;
}

.brand-tagline {
    overflow: hidden;
    color: #111f14;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-brand .brand-tagline {
    font-size: 13px;
    line-height: 1.3;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr 48px;
    overflow: hidden;
    justify-self: stretch;
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: #f3f5f4;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search:focus-within {
    border-color: rgba(20, 92, 44, 0.28);
    box-shadow: 0 0 0 4px rgba(20, 92, 44, 0.08);
}

.header-search input {
    min-width: 0;
    border: 0;
    padding: 12px 16px;
    color: var(--color-text);
    background: transparent;
}

.header-search button {
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: var(--color-green-800);
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.header-search button:hover {
    background: var(--color-green-900);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #111f14;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link .ui-icon {
    width: 21px;
    height: 21px;
    stroke-width: 1.9;
}

.nav-link:hover {
    color: var(--color-green-800);
    transform: translateY(-1px);
}

.cart-link {
    padding-right: 6px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -5px;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-green-800);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius-control);
    padding: 10px 17px;
    color: #ffffff;
    background: var(--color-green-800);
    box-shadow: 0 10px 20px rgba(20, 92, 44, 0.18);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    background: var(--color-green-900);
    box-shadow: 0 14px 26px rgba(20, 92, 44, 0.25);
}

.login-button .ui-icon {
    width: 19px;
    height: 19px;
}

.site-footer {
    margin-top: 18px;
    border-top: 1px solid var(--color-line);
    background: #ffffff;
    box-shadow: 0 -6px 20px rgba(16, 55, 27, 0.04);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(150px, 0.8fr)) minmax(260px, 1.2fr);
    gap: 34px;
    padding-block: 34px 28px;
}

.footer-brand p,
.newsletter p {
    margin: 15px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: var(--color-green-900);
    background: var(--color-green-50);
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: var(--color-green-800);
}

.footer-column,
.newsletter {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2,
.newsletter h2 {
    margin: 0 0 4px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 900;
}

.footer-column a {
    color: var(--color-muted);
    font-size: 14px;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: var(--color-green-800);
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-control);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 55, 27, 0.06);
}

.newsletter-form input {
    min-width: 0;
    border: 0;
    padding: 13px 15px;
}

.newsletter-form button {
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: var(--color-green-800);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.newsletter-form button:hover {
    background: var(--color-green-900);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--color-line);
    padding-block: 16px;
    color: var(--color-muted);
    font-size: 13px;
}
