/*
Theme Name: Menas dovanoti
Template: twentytwentyfive
Version: 1.2.4
Text Domain: menas-dovanoti
*/
body {
    color: #212a22;
    background: #faf9f5;
    font-family: system-ui, sans-serif;
}
.md-header {
    border-bottom: 1px solid #d9e0d6;
}
.md-header-inner, .md-footer-inner {
    min-height: 4.5rem;
    gap: .75rem 1.5rem;
}
.md-footer {
    border-top: 1px solid #d9e0d6;
    margin-top: 3rem;
}
.md-header .wp-block-site-title a {
    text-decoration: none;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 700;
}
.md-header .wp-block-navigation {
    font-size: .95rem;
}
.md-hero {
    color: #233529;
    background: #e6ede3;
    border-radius: 1.25rem;
    padding: clamp(2rem, 7vw, 6rem);
}
.md-hero h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.65rem, 8vw, 5.75rem);
    line-height: 1.04;
    letter-spacing: -.044em;
    margin: 0;
}
.md-hero p {
    max-width: 40ch;
    font-size: clamp(1rem, 2vw, 1.25rem);
}
.md-hero .wp-block-button__link {
    color: #fff;
    background: #294b37;
    border-radius: .45rem;
}
.md-hero .wp-block-button__link:hover {
    background: #1d3628;
}
.md-section {
    padding-block: clamp(1rem, 4vw, 3rem);
}
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #d9e0d6;
    border-radius: .75rem;
    overflow: hidden;
    padding: .75rem;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .price {
    color: #294b37;
}
.woocommerce ul.products li.product img {
    border-radius: .45rem;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border-radius: .45rem;
}
:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #294b37;
    outline-offset: 3px;
}
@media (max-width: 600px) {
    .md-header-inner { padding-block: .7rem; }
    .md-header .wp-block-navigation__container { gap: .65rem 1rem; }
}

/* Storefront layout */
:root {
    --md-paper: #fbf8f1;
    --md-ink: #23362b;
    --md-border: #d9ded2;
}
body {
    background: var(--md-paper);
    color: var(--md-ink);
}
.md-header, .md-footer {
    border-color: var(--md-border);
}
.md-header .wp-block-site-title a {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
}
.md-header .wp-block-navigation a:hover {
    text-decoration: underline;
    text-underline-offset: .3em;
}
.md-hero.wp-block-columns {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 0;
    margin-block: clamp(1.25rem, 4vw, 3rem) 0;
    padding: 0;
    border-radius: .8rem;
    background: #e8ede4;
    overflow: hidden;
}
.md-hero-copy {
    align-self: center;
    padding: clamp(2rem, 5vw, 4.75rem);
}
.md-hero h1 {
    font-size: clamp(3rem, 6.5vw, 6rem);
    max-width: 9ch;
}
.md-hero .md-hero-copy p {
    color: #33493a;
    line-height: 1.55;
}
.md-hero .wp-block-button__link {
    padding: .85rem 1.1rem;
    font-size: 1rem;
    font-weight: 650;
}
.md-hero-photo {
    height: 100%;
    min-height: 24rem;
    margin: 0;
    background: #bdc7b5;
}
.md-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}
.md-section :is(h1,h2) {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    letter-spacing: -.035em;
}
.md-section .woocommerce {
    margin-block-start: 1.5rem;
}
.woocommerce ul.products li.product {
    background: #fffdf9;
    border-color: var(--md-border);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
}
@media (max-width: 730px) {
    .md-hero.wp-block-columns { grid-template-columns: minmax(0, 1fr); }
    .md-hero-copy { padding: 2rem 1.5rem; }
    .md-hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
    .md-header-inner { min-height: 3.75rem; }
}

/* Dovanų galerija */
body.home .wp-block-post-content > .md-gallery-hero {
    margin-block-start: clamp(.75rem, 2.5vw, 2rem);
}
.md-gallery-hero.wp-block-columns {
    border-radius: 0;
    background: transparent;
    align-items: center !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.md-gallery-hero .md-hero-copy {
    padding: clamp(1.2rem, 5vw, 4.2rem);
}
.md-gallery-hero h1 {
    max-width: none;
    font-size: clamp(2.8rem, 6.1vw, 5.4rem);
}
.md-gallery-hero .md-hero-photo {
    display: block;
    aspect-ratio: 1.24;
    height: auto;
    min-height: 0;
    overflow: hidden;
}
.md-gallery-hero .md-hero-photo img {
    aspect-ratio: 1.24;
    object-position: center 52%;
}
.md-gallery-hero .wp-block-button__link {
    border-radius: .2rem;
}
.md-gallery-section {
    border-top: 1px solid var(--md-border);
}
.md-gallery-section .woocommerce ul.products li.product {
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
}
.md-gallery-section .woocommerce ul.products li.product img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
}
@media (max-width: 730px) {
    .md-gallery-hero.wp-block-columns { grid-template-columns: minmax(0, 1fr); }
    .md-gallery-hero .md-hero-copy { padding: 1.25rem 0 1.5rem; }
    .md-gallery-hero .md-hero-photo,
    .md-gallery-hero .md-hero-photo img { aspect-ratio: 1.45; }
}

.md-catalog .woocommerce ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.8rem, 2vw, 1.75rem);
}
.md-catalog .woocommerce ul.products.columns-4::before,
.md-catalog .woocommerce ul.products.columns-4::after {
    display: none;
}
.md-catalog .woocommerce ul.products.columns-4 li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: clamp(.45rem, 1vw, .75rem);
}
.md-catalog .woocommerce ul.products.columns-4 li.product img {
    aspect-ratio: 1;
    object-fit: cover;
}
@media (max-width: 780px) {
    .md-catalog .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.md-header .md-brand-logo {
    padding-block: .35rem;
}
.md-header .md-brand-logo img {
    display: block;
    width: clamp(78px, 13vw, 112px);
    height: auto;
}

.md-header .md-header-inner {
    align-items: center;
    column-gap: clamp(1.25rem, 4vw, 2.75rem);
    row-gap: .25rem;
}
.md-header .wp-block-navigation__container {
    gap: clamp(.75rem, 2.5vw, 1.5rem);
}
.md-header .wp-block-navigation-item__content {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .15rem;
    color: #28382f;
}
@media (max-width: 560px) {
    .md-header .md-header-inner {
        flex-direction: column;
        justify-content: center;
        padding-block: .35rem .25rem;
    }
    .md-header .wp-block-navigation__container {
        justify-content: center;
    }
}

.menas-inquiry label {
    display: block;
    margin-bottom: .3rem;
    font-weight: 600;
}
.menas-inquiry :is(input, select, textarea) {
    box-sizing: border-box;
    width: 100%;
    padding: .65rem .75rem;
    color: inherit;
    background: #fffdf9;
    border: 1px solid #7b867d;
    font: inherit;
}
.menas-inquiry-action .wp-element-button {
    display: inline-block;
}
