/**
 * File: assets/css/frontend/header/main-row.css
 * Purpose: Styles the large logo, dominant marketplace search and four labelled account/commerce actions.
 * Scope: Header main-row grid and branding only; search and action internals belong to dedicated files.
 * Related PHP: src/Frontend/Header/HeaderRenderer.php, src/Frontend/Header/Components/Branding.php
 * Related CSS: assets/css/frontend/header/search.css, assets/css/frontend/header/actions.css
 * Related JS: None
 * Package: HyperDAF Pro
 */

.hdf-site-header__main-row {
    height: var(--hdf-header-main-height, 5.75rem);
    min-height: var(--hdf-header-main-height, 5.75rem);
    background: var(--hdf-component-header-surface);
}

.hdf-site-header__main-grid {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(13.5rem, 15rem) minmax(30rem, 1fr) minmax(18rem, auto);
    grid-template-areas: "brand search actions";
    align-items: center;
    gap: clamp(1.15rem, 1.8vw, 2rem);
    padding-block: .35rem;
}

.hdf-site-header__brand-zone { grid-area: brand; justify-self: start; min-width: 0; }
.hdf-site-header__search-zone { grid-area: search; width: 100%; min-width: 0; }
.hdf-site-header__actions-zone { grid-area: actions; justify-self: end; min-width: 0; }

.hdf-header-brand {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: .7rem;
    padding: .2rem .15rem;
    border-radius: var(--hdf-radius-lg);
    color: var(--hdf-color-text-primary);
    text-decoration: none;
    transition: opacity 180ms ease, transform 180ms ease;
}
.hdf-header-brand:hover { color: var(--hdf-color-text-primary); opacity: .92; transform: translateY(-1px); }
.hdf-header-brand picture { display: block; line-height: 0; }
.hdf-header-brand__logo { display: block; width: auto; max-width: min(13.5rem, 100%); height: auto; max-height: 3rem; object-fit: contain; }

.hdf-header-brand__icon,
.hdf-header-brand__fallback {
    width: var(--hdf-header-brand-icon-size, 2.75rem);
    height: var(--hdf-header-brand-icon-size, 2.75rem);
    flex: 0 0 auto;
    border-radius: var(--hdf-radius-md);
}
.hdf-header-brand__icon { object-fit: contain; }
.hdf-header-brand__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hdf-color-primary);
    color: var(--hdf-color-on-primary);
    font-size: var(--hdf-typography-size-lg);
    font-weight: var(--hdf-typography-weight-bold);
    line-height: 1;
}
.hdf-header-brand__name {
    min-width: 0;
    overflow: hidden;
    color: var(--hdf-color-text-primary);
    font-size: clamp(1.45rem, 1.75vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
