/*
Theme Name: Euskal Haziak Storefront
Template: storefront
Version: 1.1.0
Text Domain: euskalhaziak-storefront
*/

:root {
    --eh-green: #39b54a;
    --eh-dark-green: #0b7a38;
    --eh-forest: #1f4f2f;
    --eh-cream: #fbf7ef;
    --eh-line: #e6e1d2;
    --eh-ink: #1c2a1d;
    --eh-soft: #f4efe2;
    --eh-shadow: 0 16px 42px rgba(16, 44, 23, 0.12);
}

body {
    background: #fff;
    color: var(--eh-ink);
}

body.home .site-content,
body.home .content-area,
body.home .site-main,
body.home.right-sidebar .content-area,
body.home.left-sidebar .content-area,
body.home.page-template-template-fullwidth-php .content-area {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.home .entry-header,
body.home .page-title,
.storefront-breadcrumb,
.site-search .widget_product_search label {
    display: none;
}

.col-full,
.eh-shell {
    width: min(1240px, calc(100% - 30px));
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 0;
    padding: 0;
    margin-bottom: 0;
}

.eh-topbar {
    display: grid;
    grid-template-columns: 280px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 24px 0 18px;
}

.eh-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--eh-ink);
    text-decoration: none;
}

.eh-brand img {
    width: 104px;
    height: 104px;
    display: block;
}

.eh-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eh-brand__copy strong {
    color: var(--eh-dark-green);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.96;
}

.eh-brand__copy small {
    color: #536154;
    max-width: 150px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.eh-search .site-search,
.eh-search .woocommerce-product-search {
    margin: 0;
}

.eh-search .woocommerce-product-search {
    display: grid;
    grid-template-columns: 1fr 56px;
}

.eh-search input[type='search'] {
    border: 1px solid #d8d8d8;
    border-right: 0;
    min-height: 46px;
    padding: 0 16px;
    background: #fff;
}

.eh-search button,
.eh-search input[type='submit'] {
    border: 0;
    min-height: 46px;
    background: var(--eh-green);
    color: #fff;
    font-size: 0;
    position: relative;
}

.eh-search button::before,
.eh-search input[type='submit']::before {
    content: 'Q';
    font-size: 20px;
    font-weight: 700;
}

.eh-utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.eh-utility a,
.eh-language-switcher a {
    color: var(--eh-ink);
    text-decoration: none;
}

.eh-language-switcher {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.eh-language {
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
}

.eh-language.is-current {
    border-color: var(--eh-dark-green);
    color: var(--eh-dark-green);
    font-weight: 700;
}

.eh-nav-bar {
    background: var(--eh-green);
}

.eh-nav-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
}

.eh-nav-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eh-primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.eh-primary-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 16px 20px;
    display: inline-flex;
}

.eh-primary-nav a:hover,
.eh-primary-nav a:focus {
    background: var(--eh-dark-green);
}

.eh-home {
    padding-bottom: 20px;
}

.eh-home-hero {
    padding: 38px 0 10px;
}

.eh-home-hero__heading {
    text-align: center;
}

.eh-home-hero__heading h1,
.eh-home-heading h2,
.eh-home-cta__inner h2 {
    color: var(--eh-green);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: uppercase;
}

.eh-home-heading h2,
.eh-home-cta__inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.eh-home-hero__line {
    width: 100%;
    max-width: 920px;
    height: 16px;
    background: var(--eh-dark-green);
    margin: 18px auto 22px;
}

.eh-home-hero__heading h2 {
    color: var(--eh-forest);
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    line-height: 1.35;
    margin: 0 0 22px;
}

.eh-home-hero__image img {
    width: 100%;
    height: clamp(300px, 42vw, 520px);
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: var(--eh-shadow);
}

.eh-home-hero__intro {
    max-width: 920px;
    text-align: center;
    padding-top: 24px;
}

.eh-home-hero__intro p,
.eh-home-heading p,
.eh-home-cta__inner p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #445444;
}

.eh-home-families,
.eh-home-products,
.eh-home-cta {
    padding-top: 44px;
}

.eh-home-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 24px;
}

.eh-family-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.eh-family-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 380px;
    border-radius: 6px;
    box-shadow: var(--eh-shadow);
    color: #fff;
}

.eh-family-card img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.eh-family-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 122, 56, 0.1) 0%, rgba(11, 26, 12, 0.72) 100%);
}

.eh-family-card__copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.eh-family-card__copy h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    color: #fff;
}

.eh-family-card__copy p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.eh-home-products {
    background: linear-gradient(180deg, #fff 0%, var(--eh-soft) 100%);
    padding-bottom: 38px;
    margin-top: 48px;
}

ul.products li.product,
.single-product div.product {
    background: #fff;
}

body ul.products li.product {
    border: 1px solid var(--eh-line);
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(16, 44, 23, 0.08);
}

body ul.products li.product .button,
.single-product .single_add_to_cart_button.button,
.woocommerce-pagination .page-numbers li .page-numbers.current,
.woocommerce-pagination .page-numbers li a.page-numbers:hover {
    background: var(--eh-green);
    color: #fff;
}

body ul.products li.product .price,
.single-product div.product p.price {
    color: var(--eh-dark-green);
    font-weight: 700;
}

.storefront-full-width-content .woocommerce-products-header,
.woocommerce-products-header {
    padding-top: 28px;
    text-align: center;
}

.single-product div.product .summary,
.woocommerce-tabs,
.related.products {
    background: #fff;
}

.eh-home-cta__inner {
    background: var(--eh-dark-green);
    color: #fff;
    padding: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 6px;
}

.eh-home-cta__inner h2,
.eh-home-cta__inner p {
    color: #fff;
    margin-top: 0;
}

.eh-home-cta__button,
body.home .site .button.alt.eh-home-cta__button {
    background: #fff;
    color: var(--eh-dark-green);
    font-weight: 700;
    border-radius: 0;
}

.site-footer {
    background: var(--eh-forest);
    color: #eef6ef;
    padding: 42px 0;
}

.eh-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.9fr 0.95fr;
    gap: 24px;
}

.eh-footer-grid > div {
    min-width: 0;
}

.eh-footer-grid::before,
.eh-footer-grid::after {
    content: none;
    display: none;
}

.eh-footer-grid h3,
.eh-footer-grid a,
.eh-footer-grid p,
.eh-footer-grid li {
    color: #eef6ef;
}

.site-footer .eh-footer-grid h3 {
    color: #ffffff;
}

.site-footer .eh-footer-grid a:not(.button):not(.components-button),
.site-footer .eh-footer-grid a:not(.button):not(.components-button):visited,
.site-footer .eh-language-switcher a,
.site-footer .eh-language-switcher a:visited {
    color: rgba(255, 255, 255, 0.88) !important;
}

.site-footer .eh-footer-grid a:not(.button):not(.components-button):hover,
.site-footer .eh-footer-grid a:not(.button):not(.components-button):focus,
.site-footer .eh-language-switcher a:hover,
.site-footer .eh-language-switcher a:focus {
    color: #ffffff !important;
}

.site-footer .eh-language {
    border-color: rgba(255, 255, 255, 0.24);
}

.site-footer .eh-language.is-current {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.eh-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.eh-footer-logo {
    display: inline-flex;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
}

.eh-footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eh-footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-area,
.site-info {
    display: none;
}


@media (max-width: 820px) {
    .eh-topbar {
        grid-template-columns: 1fr;
    }

    .eh-brand,
    .eh-search,
    .eh-utility {
        justify-content: center;
    }

    .eh-nav-inner,
    .eh-home-cta__inner {
        grid-template-columns: 1fr;
        display: grid;
    }

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

@media (max-width: 680px) {
    .col-full,
    .eh-shell {
        width: min(100% - 18px, 1240px);
    }

    .eh-brand {
        flex-direction: column;
        text-align: center;
    }

    .eh-brand img {
        width: 86px;
        height: 86px;
    }

    .eh-utility,
    .eh-primary-nav {
        justify-content: center;
    }

    .eh-family-grid {
        grid-template-columns: 1fr;
    }

    .eh-primary-nav a {
        width: 100%;
        justify-content: center;
    }

    .eh-home-cta__button {
        width: 100%;
        text-align: center;
    }
}

.storefront-handheld-footer-bar { display: none; }
