.tc-container {
    width: min(100% - (2 * var(--tc-gutter)), var(--tc-container));
    margin-inline: auto;
}

.tc-main { min-height: 50vh; }
.tc-content-stack { display: grid; gap: 2rem; padding-block: 2.5rem 5rem; }
.tc-prose { padding-block: 3rem 5rem; }
.tc-prose > * { max-width: 780px; }
.tc-prose > .alignwide { max-width: var(--tc-container); }
.tc-prose > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }

/* Keeps legacy Elementor pages usable while they are progressively rebuilt. */
.elementor-page .tc-prose { padding: 0; }
.elementor-page .tc-prose > * { max-width: none; }

.tc-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--tc-border);
    background: rgb(255 255 255 / 97%);
}
.tc-header--dark {
    border-bottom-color: rgb(255 255 255 / 12%);
    background: var(--tc-brand);
    color: #fff;
}
.tc-header--dark .tc-site-title,
.tc-header--dark .tc-menu a,
.tc-header--dark .tc-commerce-tool { color: #fff; }
.tc-header--dark .tc-menu .sub-menu {
    background: var(--tc-brand);
    border-color: rgb(255 255 255 / 14%);
}
.tc-header--dark .tc-menu .sub-menu a:hover { background: rgb(255 255 255 / 7%); }
.tc-header--dark .tc-nav-toggle {
    border-color: rgb(255 255 255 / 28%);
    color: #fff;
}
.tc-header--dark .tc-cart-count {
    background: var(--tc-accent);
    color: var(--tc-brand);
}
.tc-header--full .tc-header__inner {
    width: calc(100% - (2 * var(--tc-gutter)));
    max-width: none;
}
.tc-header__inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2vw, 2.5rem);
    align-items: center;
}
.tc-branding { min-width: var(--tc-logo-width); }
.tc-branding .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.tc-branding img {
    display: block;
    width: var(--tc-logo-width);
    max-width: 100%;
    max-height: 74px;
    object-fit: contain;
}
.tc-site-title { font-size: 1.1rem; font-weight: 720; text-decoration: none; letter-spacing: .01em; }
.tc-primary-nav { justify-self: center; min-width: 0; }
.tc-menu, .tc-footer-menu { margin: 0; padding: 0; list-style: none; }
.tc-menu { display: flex; gap: clamp(.7rem, 1.4vw, 1.35rem); align-items: center; }
.tc-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #242220;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.tc-menu > li > a { border-bottom: 1px solid transparent; }
.tc-menu > li.current-menu-item > a,
.tc-menu > li.current-menu-ancestor > a,
.tc-menu > li > a:hover,
.tc-menu > li > a:focus-visible { border-bottom-color: var(--tc-accent); }
.tc-menu .menu-item-has-children { position: relative; }
.tc-menu .sub-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: .65rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease;
}
.tc-menu .menu-item-has-children:hover > .sub-menu,
.tc-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.tc-menu .sub-menu a { display: flex; min-height: 0; padding: .55rem .7rem; white-space: normal; }
.tc-menu .sub-menu a:hover { background: var(--tc-soft); }
.tc-commerce-tools { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.tc-commerce-tool {
    position: relative;
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--tc-text);
    font-size: .78rem;
    text-decoration: none;
}
.tc-commerce-tool:hover { color: var(--tc-accent); }
.tc-commerce-tool__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}
.tc-commerce-tools--icons .tc-commerce-tool--cart { margin-right: .15rem; }
.tc-cart-count {
    display: inline-grid;
    min-width: 1.35rem;
    min-height: 1.35rem;
    place-items: center;
    margin-left: .16rem;
    padding-inline: .28rem;
    border-radius: 999px;
    background: var(--tc-brand);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
}
.tc-commerce-tools--icons .tc-cart-count {
    position: absolute;
    top: 1px;
    right: -4px;
    min-width: 1rem;
    min-height: 1rem;
    padding-inline: .2rem;
    font-size: .58rem;
}
.tc-nav-toggle {
    display: none;
    min-height: 42px;
    border: 1px solid var(--tc-border);
    background: transparent;
    color: var(--tc-brand);
}

.tc-footer {
    margin-top: clamp(3rem, 7vw, 6rem);
    background: var(--tc-brand);
    color: #f8f7f5;
}
.tc-footer__inner { display: grid; gap: 1.8rem; padding-block: clamp(2.8rem, 6vw, 4.8rem); }
.tc-footer__brand .custom-logo-link { display: inline-flex; align-items: center; }
.tc-footer__brand .custom-logo {
    display: block;
    width: auto;
    max-width: min(180px, 55vw);
    max-height: 72px;
    object-fit: contain;
}
.tc-footer-menu { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; }
.tc-footer-menu a { color: #fff; font-size: .9rem; text-decoration: none; }
.tc-footer-menu a:hover { color: var(--tc-accent); }
.tc-footer__legal { margin: 0; color: rgb(255 255 255 / 62%); font-size: .78rem; }

@media (max-width: 1050px) {
    .tc-header__inner { grid-template-columns: 1fr auto auto; }
    .tc-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .tc-primary-nav {
        display: none;
        grid-column: 1 / -1;
        justify-self: stretch;
        padding-bottom: 1rem;
    }
    .tc-primary-nav.is-open { display: block; }
    .tc-menu { display: grid; gap: 0; }
    .tc-menu a { display: flex; min-height: 44px; padding: .5rem 0; white-space: normal; }
    .tc-menu > li > a { border-bottom: 1px solid var(--tc-border); }
    .tc-menu .sub-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 1px solid var(--tc-border);
        margin: 0 0 .4rem .5rem;
        padding: 0 0 0 1rem;
    }
}

@media (max-width: 620px) {
    .tc-header--full .tc-header__inner { width: calc(100% - 2rem); }
    .tc-header__inner { min-height: 70px; grid-template-columns: 1fr auto auto; gap: .5rem; }
    .tc-branding img { width: min(var(--tc-logo-width), 104px); max-height: 58px; }
    .tc-commerce-tools--icons { grid-column: auto; justify-content: flex-end; padding-bottom: 0; }
    .tc-commerce-tools--text { grid-column: 1 / -1; justify-content: flex-end; padding-bottom: .65rem; }
    .tc-commerce-tools--icons .tc-commerce-tool { min-width: 34px; min-height: 38px; }
    .tc-prose { padding-block: 2rem 3.5rem; }
}

/* 0.2.19 — Shared editorial page layout.
   Regular pages use one consistent full-width hero and a readable content
   column. The page featured image overrides the global fallback selected in
   TikiCore — Pages. Cart / checkout / account keep their dedicated layouts. */
.tc-page--editorial .tc-page-hero {
    position: relative;
    display: grid;
    min-height: clamp(280px, 29vw, 390px);
    place-items: end stretch;
    overflow: hidden;
    background-color: var(--tc-brand);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.tc-page--editorial .tc-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(15 15 16 / 12%) 0%, rgb(15 15 16 / 64%) 100%);
}

.tc-page--editorial .tc-page-hero--plain::before {
    background: linear-gradient(135deg, #252426 0%, var(--tc-brand) 72%);
}

.tc-page--editorial .tc-page-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(2rem, 5vw, 4.25rem);
}

.tc-page--editorial .tc-page-hero__title {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgb(0 0 0 / 22%);
}

.tc-page--editorial .tc-page-content {
    width: min(100% - (2 * var(--tc-gutter)), 1120px);
    padding-block: clamp(3.2rem, 6vw, 5.5rem);
}

.tc-page--editorial .tc-page-content > :first-child {
    margin-top: 0;
}

.tc-page--editorial .tc-page-content > :last-child {
    margin-bottom: 0;
}

.tc-page--editorial .tc-page-content p,
.tc-page--editorial .tc-page-content li,
.tc-page--editorial .tc-page-content dd,
.tc-page--editorial .tc-page-content dt,
.tc-page--editorial .tc-page-content td,
.tc-page--editorial .tc-page-content th {
    color: #3f3a35;
    font-size: 1rem;
    line-height: 1.78;
}

.tc-page--editorial .tc-page-content p {
    margin-block: 0 1.15rem;
}

.tc-page--editorial .tc-page-content h2,
.tc-page--editorial .tc-page-content h3,
.tc-page--editorial .tc-page-content h4 {
    color: var(--tc-brand);
    line-height: 1.14;
    letter-spacing: -.025em;
}

.tc-page--editorial .tc-page-content h2 {
    margin: clamp(2.5rem, 5vw, 4rem) 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.tc-page--editorial .tc-page-content h3 {
    margin: 2.2rem 0 .8rem;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.tc-page--editorial .tc-page-content h4 {
    margin: 1.75rem 0 .65rem;
    font-size: 1.15rem;
}

.tc-page--editorial .tc-page-content a {
    color: #8b6538;
}

.tc-page--editorial .tc-page-content strong,
.tc-page--editorial .tc-page-content b {
    color: var(--tc-brand);
}

.tc-page--editorial .tc-page-content ul,
.tc-page--editorial .tc-page-content ol {
    padding-left: 1.3rem;
}

@media (max-width: 700px) {
    .tc-page--editorial .tc-page-hero {
        min-height: 235px;
    }

    .tc-page--editorial .tc-page-hero__inner {
        padding-block: 2.2rem;
    }

    .tc-page--editorial .tc-page-content {
        padding-block: 2.6rem 4rem;
    }
}
