/*
Theme Name: Merry Christmas From Heaven
Theme URI: https://www.merrychristmasfromheaven.com/
Description: Standalone replacement theme for the Merry Christmas From Heaven catalog and remembrance site.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: merry-christmas-from-heaven
*/

:root {
    --paper: #f7f4ed;
    --white: #fffdf9;
    --ink: #282521;
    --green: #17382c;
    --green-dark: #112a21;
    --red: #802531;
    --gold: #e1c687;
    --line: #e6dccc;
    --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-wrap: break-word;
}
a { color: var(--red); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ba791f; outline-offset: 4px; }
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
svg { max-width: 100%; }
input, select, button, textarea { font: inherit; }
button, input[type=submit] { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.16; color: var(--green); font-family: Georgia, serif; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.3rem; }
.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed;
    z-index: 99999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: .75rem 1rem;
    clip-path: none;
    background: var(--white);
}
.site-header { background: #f8f8f8; }
.top-bar, .site-footer { background: var(--green-dark); color: var(--white); }
.top-bar-inner, .utility-links { display: flex; align-items: center; gap: 1.2rem; }
.top-bar-inner { min-height: 42px; justify-content: space-between; font-size: .875rem; }
.top-bar a, .site-footer a { color: var(--white); }
.branding { display: grid; place-items: center; padding-block: 1.05rem; }
.branding img { display: block; width: min(100%, 936px); }
.site-navigation { background: var(--green); border-bottom: 3px solid var(--gold); }
.site-navigation ul { list-style: none; margin: 0; padding: 0; }
.site-navigation #primary-menu > ul { display: flex; justify-content: center; flex-wrap: wrap; }
.site-navigation li { position: relative; }
.site-navigation a, .menu-toggle {
    display: block;
    padding: .77rem .94rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}
.site-navigation a:hover, .site-navigation a:focus-visible, .site-navigation a[aria-current=page] {
    background: var(--green-dark);
    color: var(--gold);
}
.site-navigation .sub-menu {
    position: absolute;
    display: none;
    z-index: 20;
    min-width: 13rem;
    inset-inline-start: 0;
    top: 100%;
    background: var(--green);
    border: 1px solid #50695d;
}
.site-navigation .sub-menu .sub-menu { inset-inline-start: 100%; top: 0; }
.site-navigation li:hover > .sub-menu, .site-navigation li:focus-within > .sub-menu { display: block; }
.menu-toggle { background: transparent; border: 1px solid #6c897b; border-radius: 5px; margin-block: .55rem; }

.hero { margin-top: 1.45rem; }
.hero-frame { position: relative; background: var(--green-dark); border-radius: var(--radius); overflow: hidden; }
.hero-slide img { display: block; width: 100%; aspect-ratio: 13 / 3; object-fit: cover; }
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 49px;
    color: var(--white);
}
.hero-controls button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #7f998b;
    border-radius: 6px;
    color: var(--white);
    background: var(--green);
    font-size: 1.5rem;
    line-height: 1;
}
.hero-controls button:hover { background: var(--red); }
.hero-position { font-size: .82rem; font-variant-numeric: tabular-nums; }
.content-layout, .store-content { margin-block: clamp(1.4rem, 4vw, 3.25rem); }
.content-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); gap: clamp(1rem, 3vw, 2.1rem); }
.main-column { min-width: 0; }
.content-card, .contact-card, .contact-sidebar > .widget {
    background: var(--white);
    border: 1px solid var(--line);
    padding: clamp(1rem, 3.1vw, 2rem);
    border-radius: var(--radius);
}
.content-card + .content-card, .contact-sidebar > .widget { margin-top: 1rem; }
.page-title, .content-card > h2:first-child, .contact-card h2, .widget-title { margin-top: 0; }
.home .page-title { margin-bottom: 1rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; }
.theme-button {
    display: inline-block;
    border: 1px solid var(--red);
    border-radius: 6px;
    padding: .55rem .95rem;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-weight: 650;
}
.theme-button.secondary { color: var(--red); background: var(--white); }
.contact-card { border-top: 4px solid var(--red); padding: 1.35rem; }
.contact-phone { font-size: 1.15rem; font-weight: 700; }
.contact-email { display: block; font-size: .89rem; }
.contact-card .wpcf7 { margin-top: 1rem; }
.contact-card input:not([type=submit]), .contact-card textarea { width: 100%; }
.contact-card .wpcf7 p { margin-block: .65rem; }
.entry-content { min-width: 0; }
.entry-content p:first-child:empty { display: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content table { max-width: 100%; border-collapse: collapse; }
.entry-content :is(td,th) { padding: .45rem; }
.entry-content .table-scroll { max-width: 100%; overflow-x: auto; }
.entry-content figure, .wp-caption, .featured-image { max-width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1rem; }
.entry-content::after { content: ""; display: block; clear: both; }
.wp-caption-text, figcaption { font-size: .875rem; color: #574e43; }
.site-footer { border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; padding-block: 2.25rem; }
.site-footer h2 { color: var(--gold); margin: 0 0 .7rem; }
.site-footer p { margin: 0 0 .7rem; }
.site-footer address { font-style: normal; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .65rem 1.25rem;
    border-top: 1px solid #567063;
    padding-block: 1.1rem;
    font-size: .85rem;
}
.woocommerce ul.products li.product .price { color: var(--green); }
.woocommerce :is(a.button, button.button, input.button, #respond input#submit):not(.disabled),
.wc-block-cart__submit-button { background: var(--red); color: white; }
.woocommerce :is(a.button, button.button, input.button, #respond input#submit):not(.disabled):hover { background: var(--green); color: white; }

@media (max-width: 760px) {
    .wrap { width: calc(100% - 2rem); }
    .branding { padding-block: .55rem; }
    .site-navigation #primary-menu > ul { display: block; }
    .site-navigation a { padding-inline: .45rem; }
    .site-navigation .sub-menu { position: static; display: block; border: 0; margin-inline-start: 1rem; }
    .content-layout.has-sidebar, .footer-grid { grid-template-columns: 1fr; }
    .hero { margin-top: .85rem; }
    .shop-catalog .content-card { padding-inline: .75rem; }
}

.shop-catalog .elementor-widget-text-editor table,
.shop-catalog .elementor-widget-text-editor td {
    height: auto !important;
}
.shop-catalog .elementor-widget-text-editor table {
    width: min(100%, 680px) !important;
}
.shop-catalog .elementor-widget-text-editor td {
    padding: 1.15rem .65rem;
    border-bottom: 1px solid var(--line);
}
