/* ─── Fonts (self-hosted so rendering never depends on Google Fonts) ────────── */

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans.ttf') format('truetype-variations');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* ─── Variables ────────────────────────────────────────────────────────────── */

:root {
    /* Brand */
    --color-brand:      hsla(31, 100%, 50%, 1);   /* #FF8400 orange */
    --color-brand-dark: #D55803;                  /* burnt orange — gradient top */
    --color-accent:     #E47200;                  /* darker orange — headings */
    --color-dark:       hsla(227, 9%, 29%, 1);    /* dark — footer bg */
    --color-grey:       #7E7E7E;                  /* muted text and labels */
    --color-text:       hsla(0, 0%, 34%, 1);      /* dark grey body text */

    /* Typography */
    --font-body:        'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;

    /* Layout */
    --max-width:         393px;   /* mobile content width */
    --max-width-desktop: 1440px;  /* desktop content width */
    --header-height:     84px;
    --field-width:       340px;
}

/* ─── Base ─────────────────────────────────────────────────────────────────── */

body {
    font-family: var(--font-body) !important;
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Form controls don't inherit font-family, and Storefront sets Source Sans Pro
   on them — force DM Sans so inputs/buttons match the rest of the UI. */
button,
input,
select,
textarea {
    font-family: var(--font-body) !important;
}

.site-main {
    margin: 0 !important;
}

/* ─── Page title toggle ────────────────────────────────────────────────────── */

.hide-page-title .entry-header {
    display: none;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.button,
.woocommerce a.button,
.woocommerce button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 25px !important;
    opacity: 1;
    padding: 10px 50px !important;
    background: linear-gradient(0deg, #4F4E4E 0%, #4F4E4E 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), #8495A3 !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    font-size: 16px !important;
    letter-spacing: 0.16px !important;
}

@media (min-width: 768px) {
    .button,
    .woocommerce a.button,
    .woocommerce button.button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 25px !important;
        opacity: 1;
        padding: 10px 50px !important;
        background: linear-gradient(0deg, #4F4E4E 0%, #4F4E4E 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), #8495A3 !important;
        color: white !important;
        border: none !important;
        cursor: pointer;
        font-size: 20px !important;
        letter-spacing: 0.2px !important;
    }
}

/* ─── Form field ───────────────────────────────────────────────────────────── */

.bc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bc-field label {
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 2.1px;
    text-transform: uppercase;
    color: var(--color-grey);
}

.bc-field input,
.bc-field select {
    width: var(--field-width);
    height: 40px;
    border-radius: 2px;
    border: none;
    background: linear-gradient(0deg, #F4F4F4 0%, #F4F4F4 100%), #D9D9D9 !important;
    padding: 11px !important;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 16px !important;
    box-shadow: none !important;
}

.bc-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237E7E7E' stroke-width='1.75'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ─── Step bar (cart / checkout) ───────────────────────────────────────────── */

.bc-steps {
    display: flex;
    max-width: var(--max-width-desktop);
    margin: 0 auto;
    border-bottom: 1px solid hsla(0, 0%, 92%, 1);
}

.bc-steps__item {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-grey);
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
}

.bc-steps__item + .bc-steps__item {
    border-left: 1px solid hsla(0, 0%, 88%, 1);
}

.bc-steps__item.is-visited {
    border-bottom-color: hsla(240, 5%, 79%, 1);
}

.bc-steps__item.is-active {
    color: black;
    font-weight: 700;
    border-bottom-color: black;
}

.bc-steps__item.is-disabled {
    pointer-events: none;
}

/* ─── Add-to-cart toast ────────────────────────────────────────────────────── */

/* Hide WooCommerce's injected "View cart" link — we show a toast instead. */
.added_to_cart {
    display: none !important;
}

.bc-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    z-index: 9999;
    max-width: calc(100vw - 40px);
    padding: 12px 20px;
    border-radius: 6px;
    background: hsla(0, 0%, 15%, 0.95);
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.bc-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bc-toast--error {
    background: hsla(4, 74%, 46%, 0.97);
    color: white;
}

/* ─── Storefront layout — full width, no sidebar ───────────────────────────── */

#secondary.widget-area {
    display: none !important;
}

#primary.content-area {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}
