/*
Theme Name: Thunderbird Base
Theme URI: https://thunderbird.gr
Author: MyGlitch
Description: Lightweight WooCommerce theme for Thunderbird staging.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.2
Text Domain: thunderbird-base
*/

:root {
    --tb-ink: #171719;
    --tb-muted: #5d6269;
    --tb-line: #dedbd4;
    --tb-paper: #f7f5f0;
    --tb-surface: #ffffff;
    --tb-accent: #9b4d2b;
    --tb-accent-strong: #6f321e;
    --tb-green: #1f6f57;
    --tb-shadow: 0 18px 48px rgba(23, 23, 25, .08);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--tb-paper);
    color: var(--tb-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.tb-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.tb-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 245, 240, .92);
    border-bottom: 1px solid var(--tb-line);
    backdrop-filter: blur(12px);
}

.tb-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.tb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
}

.tb-brand__mark {
    width: 34px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    background: var(--tb-ink);
    color: var(--tb-paper);
    border-radius: 4px;
    font-size: 18px;
}

.tb-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tb-muted);
}

.tb-nav a:hover,
.tb-nav .current-menu-item > a {
    color: var(--tb-ink);
}

.tb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-button,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--tb-ink);
    border-radius: 4px;
    background: var(--tb-ink);
    color: var(--tb-surface);
    font-weight: 800;
    cursor: pointer;
}

.tb-button--ghost {
    background: transparent;
    color: var(--tb-ink);
}

.tb-hero {
    min-height: clamp(520px, 74vh, 760px);
    display: grid;
    align-items: center;
    padding: 70px 0 52px;
    border-bottom: 1px solid var(--tb-line);
}

.tb-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 44px;
    align-items: center;
}

.tb-eyebrow {
    color: var(--tb-accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tb-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(44px, 7vw, 92px);
    line-height: .92;
    letter-spacing: 0;
}

.tb-hero p {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--tb-muted);
    font-size: 19px;
}

.tb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.tb-hero__visual {
    min-height: 430px;
    display: grid;
    grid-template-rows: 1fr auto;
    border: 1px solid var(--tb-line);
    background: #ebe7df;
    box-shadow: var(--tb-shadow);
    overflow: hidden;
}

.tb-hero__image {
    display: grid;
    place-items: center;
    padding: 28px;
}

.tb-hero__image img {
    width: min(360px, 100%);
    max-height: 360px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.tb-hero__placeholder {
    display: grid;
    place-items: center;
    width: min(320px, 80%);
    aspect-ratio: 1;
    border: 2px solid var(--tb-ink);
    color: var(--tb-ink);
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 900;
}

.tb-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--tb-line);
    background: var(--tb-surface);
}

.tb-hero__meta span {
    padding: 18px;
    border-right: 1px solid var(--tb-line);
    color: var(--tb-muted);
    font-size: 13px;
    font-weight: 800;
}

.tb-hero__meta span:last-child {
    border-right: 0;
}

.tb-section {
    padding: 56px 0;
}

.tb-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.tb-section h2,
.woocommerce-products-header__title,
.product_title {
    margin: 0;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1;
    letter-spacing: 0;
}

.tb-section__head p {
    max-width: 460px;
    margin: 0;
    color: var(--tb-muted);
}

.tb-category-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tb-category {
    min-height: 120px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--tb-line);
    background: var(--tb-surface);
    border-radius: 6px;
}

.tb-category strong {
    font-size: 18px;
}

.tb-category span {
    color: var(--tb-muted);
    font-size: 13px;
    font-weight: 700;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--tb-line);
    border-radius: 6px;
    background: var(--tb-surface);
}

.woocommerce ul.products li.product a img {
    aspect-ratio: 1;
    object-fit: contain;
    background: #f1eee8;
    border-radius: 4px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
    padding: 10px 0 4px;
    color: var(--tb-ink);
    font-size: 15px;
    line-height: 1.25;
}

.woocommerce ul.products li.product .price {
    color: var(--tb-accent-strong);
    font-size: 17px;
    font-weight: 900;
}

.woocommerce ul.products li.product .button {
    width: 100%;
    margin-top: 12px;
}

.tb-footer {
    padding: 34px 0;
    border-top: 1px solid var(--tb-line);
    color: var(--tb-muted);
}

.tb-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb {
    margin: 26px 0;
    color: var(--tb-muted);
}

.woocommerce div.product {
    padding-bottom: 60px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .tb-header__inner {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .tb-nav,
    .tb-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .tb-hero__grid {
        grid-template-columns: 1fr;
    }

    .tb-hero {
        min-height: auto;
        padding-top: 48px;
    }

    .tb-category-row,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tb-shell {
        width: min(100% - 24px, 1180px);
    }

    .tb-hero h1 {
        font-size: 44px;
    }

    .tb-hero__visual {
        min-height: 330px;
    }

    .tb-hero__meta {
        grid-template-columns: 1fr;
    }

    .tb-hero__meta span {
        border-right: 0;
        border-bottom: 1px solid var(--tb-line);
    }

    .tb-category-row,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .tb-footer__inner,
    .tb-section__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
