/**
 * Herbal Cure Life responsive header presentation.
 *
 * Mobile-first:
 * - brand and ecommerce utilities in the top row
 * - prominent full-width search below
 *
 * Desktop:
 * - brand + search + ecommerce utilities in one row
 */

.hcl-header-shell {
border-bottom: 1px solid var(--wp--preset--color--border-soft);
}

.wp-block-group.hcl-header-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
column-gap: var(--wp--preset--spacing--base);
row-gap: var(--wp--preset--spacing--md);
width: 100%;
padding-block: var(--wp--preset--spacing--md);
}

.hcl-header-layout > * {
min-width: 0;
}

.hcl-header-brand {
grid-column: 1;
grid-row: 1;
gap: var(--wp--preset--spacing--md);
min-width: 0;
}

.hcl-header-brand .wp-block-site-logo {
flex: 0 0 auto;
margin: 0;
}

.hcl-header-brand .wp-block-site-logo img {
display: block;
}

.hcl-header-brand .wp-block-site-title {
min-width: 0;
margin: 0;
font-size: var(--wp--preset--font-size--md);
font-weight: 650;
line-height: var(--wp--custom--line-height--compact);
}

.hcl-header-brand .wp-block-site-title a {
color: var(--wp--preset--color--text-primary);
text-decoration: none;
}

.hcl-header-search {
grid-column: 1 / -1;
grid-row: 2;
width: 100%;
min-width: 0;
margin: 0;
}

.hcl-header-utilities {
grid-column: 2;
grid-row: 1;
justify-self: end;
gap: var(--wp--preset--spacing--sm);
margin: 0;
}

.hcl-header-account,
.hcl-header-cart {
flex: 0 0 auto;
margin: 0;
}

.hcl-header-account > a,
.hcl-header-cart > button {
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--wp--custom--control--icon-button-size);
height: var(--wp--custom--control--icon-button-size);
min-width: var(--wp--custom--control--icon-button-size);
min-height: var(--wp--custom--control--icon-button-size);
margin: 0;
padding: 0;
color: var(--wp--preset--color--text-primary);
background: transparent;
border: 0;
border-radius: var(--wp--preset--border-radius--sm);
text-decoration: none;
cursor: pointer;
}

.hcl-header-account > a:hover,
.hcl-header-cart > button:hover {
color: var(--wp--preset--color--brand-deep);
background: var(--wp--preset--color--surface-ivory);
}

.hcl-header-account .wc-block-customer-account__visual > svg,
.hcl-header-cart .wc-block-mini-cart__button .wc-block-mini-cart__icon {
display: block;
width: var(--wp--custom--control--icon-size);
height: var(--wp--custom--control--icon-size);
}

@media (min-width: 64rem) {
.wp-block-group.hcl-header-layout {
grid-template-columns:
auto
minmax(18rem, 1fr)
auto;
column-gap: var(--wp--preset--spacing--lg);
row-gap: 0;
padding-block: var(--wp--preset--spacing--base);
}

.hcl-header-brand {
grid-column: 1;
grid-row: 1;
}

.hcl-header-search {
grid-column: 2;
grid-row: 1;
justify-self: end;
max-width: var(--wp--custom--layout--header-search-max-width);
}

.hcl-header-utilities {
grid-column: 3;
grid-row: 1;
}
}
