/*
 * Parduotuvės išvaizda pagal pagrindinę svetainę (endobiogenika-webapp
 * resources/css/app.css @theme ir components/site/{header,footer}.blade.php).
 * Tailwind klasės išverstos į paprastą CSS; dydžiai — tie patys px.
 */

:root {
    --endo-font-sans: 'Inter', -apple-system, ui-sans-serif, system-ui, sans-serif;
    --endo-font-serif: 'Gambetta', Georgia, serif;

    /* Brandbook v1.0 */
    --endo-pine: #216855;
    --endo-pine-dark: #184f3f;
    --endo-sage: #6d907c;
    --endo-forest: #1b3a2f;
    --endo-footer: #748f7e;
    --endo-cream: #fcfcf9;
    --endo-linen: #f6f8f1;
    --endo-mist: #e9efe7;
    --endo-line: #e7eae0;
    --endo-line-soft: #eff1e9;
    --endo-line-input: #d6dacb;
    --endo-ink: #1e2b24;
    --endo-moss: #3e4f45;
    --endo-stone: #75847b;
    --endo-gold: #c08a2e;
}

/* ---------- Pagrindas ---------- */

body {
    background-color: var(--endo-cream);
    color: var(--endo-ink);
    font-family: var(--endo-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--endo-font-serif);
    font-weight: 500;
    color: var(--endo-ink);
}

a {
    color: var(--endo-pine);
}

a:hover,
a:focus {
    color: var(--endo-pine-dark);
}

::selection {
    background: var(--endo-mist);
    color: var(--endo-ink);
}

.endo-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--endo-pine);
    color: var(--endo-cream);
}

.endo-skip-link:focus {
    left: 12px;
    color: var(--endo-cream);
}

/* ---------- Antraštė (header.blade.php) ---------- */

.endo-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 50;
    border-bottom: 1px solid var(--endo-line);
    background: var(--endo-cream);
    font-family: var(--endo-font-sans);
}

.endo-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 14px 20px;
}

.endo-header__brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.endo-header__logo {
    width: 56px;
    height: 30px;
    object-fit: contain;
}

.endo-header__name {
    font-size: 20px;
    line-height: 28px;
    color: var(--endo-pine);
}

.endo-header__nav {
    display: none;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

.endo-header .endo-header__link {
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    color: var(--endo-ink);
    text-decoration: none;
}

.endo-header .endo-header__link:hover {
    color: var(--endo-pine);
}

.endo-header .endo-header__link.is-active {
    border-bottom-color: var(--endo-pine);
    color: var(--endo-pine);
}

.endo-header__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
}

/* „Sukurti paskyrą“ mygtuko stilius: bg-sage, hover:bg-pine, rounded-full */
.endo-header .endo-header__cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--endo-sage);
    color: var(--endo-cream);
    font-size: 15px;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.endo-header .endo-header__cart:hover,
.endo-header .endo-header__cart:focus-visible {
    background: var(--endo-pine);
    color: var(--endo-cream);
}

.endo-header__cart-label {
    display: none;
}

.endo-cart-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--endo-cream);
    color: var(--endo-pine);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.endo-cart-count.is-empty {
    background: rgba(252, 252, 249, 0.25);
    color: var(--endo-cream);
}

.endo-header__burger {
    display: flex;
    width: 36px;
    height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.endo-header__burger:hover,
.endo-header__burger:focus {
    background: transparent;
}

.endo-header__burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--endo-ink);
}

.endo-header__mobile {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--endo-line);
    background: #fff;
}

.endo-header__mobile[hidden] {
    display: none;
}

.endo-header__mobile a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--endo-line-soft);
    color: var(--endo-ink);
    font-size: 16px;
    text-decoration: none;
}

.endo-header__mobile a.is-active {
    color: var(--endo-pine);
}

@media (min-width: 640px) {
    .endo-header__bar {
        padding: 18px 48px;
    }
}

/* Pilnas meniu nuo 1280px: parduotuvės meniu turi vienu punktu daugiau
   (Parduotuvė) ir paskyros nuorodą, todėl siauresniuose — burgeris. */
@media (min-width: 1280px) {
    .endo-header__bar {
        gap: 24px;
        padding: 18px 40px;
    }

    .endo-header__nav {
        display: flex;
        min-width: 0;
        gap: 22px;
        line-height: 1.5;
    }

    .endo-header__burger,
    .endo-header__mobile:not([hidden]) {
        display: none;
    }
}

@media (min-width: 1440px) {
    .endo-header__bar {
        gap: 32px;
        padding: 18px 48px;
    }

    .endo-header__nav {
        gap: 28px;
    }
}

@media (min-width: 1536px) {
    .endo-header__cart-label {
        display: inline;
    }
}

/* ---------- Poraštė (footer.blade.php) ---------- */

.endo-footer {
    background: var(--endo-footer);
    color: rgba(252, 252, 249, 0.85);
    font-family: var(--endo-font-sans);
}

.endo-footer__grid {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 40px;
}

.endo-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.endo-footer__brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.endo-footer__logo {
    width: 52px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.endo-footer__name {
    font-size: 19px;
    color: var(--endo-cream);
}

.endo-footer__tagline {
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.375;
}

.endo-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.endo-footer .endo-footer__social a {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(252, 252, 249, 0.35);
    border-radius: 999px;
    color: rgba(252, 252, 249, 0.85);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.endo-footer .endo-footer__social a:hover {
    border-color: #fff;
    color: #fff;
}

.endo-footer__social svg {
    width: 18px;
    height: 18px;
}

.endo-footer__col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14.5px;
    line-height: 1.375;
}

.endo-footer__title {
    margin: 0 0 4px;
    color: var(--endo-cream);
    font-weight: 500;
}

.endo-footer .endo-footer__col a {
    color: rgba(252, 252, 249, 0.85);
    text-decoration: none;
}

.endo-footer .endo-footer__col a:hover {
    color: #fff;
}

.endo-footer__bottom {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 20px 36px;
    border-top: 1px solid rgba(252, 252, 249, 0.25);
    color: rgba(252, 252, 249, 0.7);
    font-size: 13px;
}

@media (min-width: 640px) {
    .endo-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 48px;
        padding-right: 48px;
    }

    .endo-footer__bottom {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (min-width: 1024px) {
    .endo-footer__grid {
        grid-template-columns: 1.3fr 0.8fr 1.4fr 1fr;
        gap: 48px;
        padding-top: 64px;
    }
}

/* ---------- WooCommerce: mygtukai ir laukai kaip pagrindinėje svetainėje ---------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce-page a.button,
.woocommerce-page button.button,
.wc-block-components-button:not(.is-link),
.wp-element-button {
    border: 0;
    border-radius: 999px;
    background-color: var(--endo-sage);
    color: var(--endo-cream);
    font-family: var(--endo-font-sans);
    font-weight: 400;
    transition: background-color 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-element-button:hover {
    background-color: var(--endo-pine);
    color: var(--endo-cream);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty,
.wc-block-components-text-input input,
.wc-block-components-textarea {
    border: 1px solid var(--endo-line-input);
    border-radius: 12px;
    background: #fff;
    color: var(--endo-ink);
    font-family: var(--endo-font-sans);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wc-block-components-text-input input:focus {
    border-color: var(--endo-pine);
    outline: 2px solid rgba(33, 104, 85, 0.15);
    outline-offset: 0;
}

.woocommerce span.onsale {
    background-color: var(--endo-gold);
    color: #fff;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-top-color: var(--endo-pine);
    background: var(--endo-linen);
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: var(--endo-pine);
}

/* ---------- Elementor Pro WooCommerce valdiklių numatytasis Roboto → Inter ---------- */
/* Selektoriai sugeneruoti iš uploads/elementor/css/custom-pro-widget-*.min.css; „body “ — didesnis specifiškumas. */
body .e-woo-select2-wrapper .select2-results__option,
body .elementor-widget-video-playlist .e-tabs-header .e-tabs-title,
body .elementor-widget-woocommerce-cart .woocommerce,
body .elementor-widget-woocommerce-checkout-page,
body .elementor-widget-woocommerce-my-account,
body .elementor-widget-woocommerce-purchase-summary {
    font-family: var(--endo-font-sans);
}

/* ---------- Produktų archyvo antraštė („Parduotuvė“, kategorijos) ----------
   Kaip krepšelio / apmokėjimo antraštė (checkout.css): Gambetta, pine, centre. */
.elementor-widget-theme-archive-title .elementor-heading-title {
    margin: 40px 0 8px;
    color: var(--endo-pine);
    font-family: var(--endo-font-serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.elementor-widget-woocommerce-archive-description .term-description,
.elementor-widget-woocommerce-archive-description .page-description {
    max-width: 640px;
    margin: 0 auto;
    color: var(--endo-moss);
    font-size: 15px;
    font-weight: 300;
    text-align: center;
}

@media (min-width: 640px) {
    .elementor-widget-theme-archive-title .elementor-heading-title {
        margin-top: 56px;
        font-size: 40px;
    }
}
