/* ═══════════════════════════════════════════════════════
   SITE BREADCRUMBS – Shared across all pages
   Mobile-first: 0-767px base, 768px+ tablet, 1280px+ desktop
   Uses display:block + inline children (most reliable single-line)
   ═══════════════════════════════════════════════════════ */

/* Override header.css body padding-top (220px) which is only for WP static header.
   Our prototype pages use position:fixed header, so body needs 0 padding-top. */
body:has(.site-breadcrumbs) {
    padding-top: 0 !important;
}
/* Fallback for browsers that don't support :has() */
body.customize-page {
    padding-top: 0 !important;
}

/* Breadcrumbs + customize content: no extra gap needed */
.site-breadcrumbs + .customize-main {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

/* Customize page: breadcrumbs clear fixed header */
.customize-page .site-breadcrumbs {
    margin-top: var(--header-height, 102px);
}

/* Tablet: customize breadcrumbs also clear top bar */
@media (min-width: 768px) and (max-width: 1279px) {
    .customize-page .site-breadcrumbs {
        margin-top: calc(82px + 36px);
    }
}

/* Shop page: heading before breadcrumbs already clears the header */
.shop-category-heading + .site-breadcrumbs {
    margin-top: 0;
}

.site-breadcrumbs {
    display: flex !important;
    align-items: center;
    margin-top: 82px;
    margin-bottom: 0;
    padding: 0 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 90;
    height: 28px;
    box-sizing: border-box;
    white-space: nowrap !important;
    overflow: hidden;
}

/* Back arrow button – inline so it sits on same line */
.breadcrumb-back-btn {
    display: inline-block !important;
    vertical-align: middle;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    margin: 0 6px 0 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}
.breadcrumb-back-btn:hover,
.breadcrumb-back-btn:active {
    background: transparent;
}
.breadcrumb-back-btn svg {
    width: 13px;
    height: 13px;
    stroke: #333;
    display: inline-block;
    vertical-align: middle;
}

/* Breadcrumb trail container – inline so it stays on same line as back button */
.breadcrumb-trail {
    display: inline !important;
    vertical-align: middle;
    line-height: 24px;
    white-space: nowrap !important;
}

/* Links */
.breadcrumb-trail a {
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.2s;
}
.breadcrumb-trail a:hover {
    color: #000;
    text-decoration: underline;
}

/* Separator */
.breadcrumb-sep {
    color: #999;
    font-size: 14px;
    margin: 0 4px;
    -webkit-user-select: none;
    user-select: none;
}

/* Current page (last crumb) */
.breadcrumb-current {
    color: #111;
    font-weight: 700;
    white-space: nowrap;
}

/* ─── Tablet (768px – 1279px) ─── */
@media (min-width: 768px) and (max-width: 1279px) {
    .site-breadcrumbs {
        /* Clear fixed header (82px) + fixed tablet top bar (~36px) */
        margin-top: calc(82px + 36px);
        padding: 6px 20px;
        font-size: 11px;
    }
}

/* ─── Desktop (1280px+) ─── */
@media (min-width: 1280px) {
    .site-breadcrumbs {
        margin-top: calc(var(--header-height, 140px) + 8px);
        padding: 8px 36px;
        font-size: 12px;
    }
    .breadcrumb-back-btn svg {
        width: 14px;
        height: 14px;
    }
}
