/* ==========================================================================
   Griffin Quartz — brand catalog extras
   Part 1 (body.v2): the /quartz-brands directory, on the v2 design (loaded after v2.css).
   Part 2 (body.bc-cat): additions for /brands/{brand}/ and /brands/{brand}/{color}, which
   otherwise reuse the Cambria markup styled by site-v2.css + brand-hub.css / product.css.
   ========================================================================== */

body.v2 .bc-card[hidden] { display: none !important; }

/* ---------- Breadcrumb ---------- */
body.v2 .bc-crumbs { margin-bottom: 40px; }
body.v2 .bc-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
body.v2 .bc-crumbs li {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--v2-gray);
}
body.v2 .bc-crumbs li + li::before {
    content: "\203A";
    margin: 0 10px;
    color: var(--v2-line);
}
body.v2 .bc-crumbs a { color: var(--v2-gray); transition: color .2s ease; }
body.v2 .bc-crumbs a:hover { color: var(--v2-ink); }
body.v2 .bc-crumbs [aria-current] { color: var(--v2-ink); }

/* ---------- Swatch cards ---------- */
body.v2 .bc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px var(--v2-gutter);
}
body.v2 .bc-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
body.v2 .bc-grid--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 16px; }
body.v2 .bc-card { display: block; color: var(--v2-ink); }
body.v2 .bc-card__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--v2-line);
}
body.v2 .bc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
body.v2 .bc-card:hover .bc-card__img img { transform: scale(1.05); }
body.v2 .bc-card__name {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.005em;
}
body.v2 .bc-grid--6 .bc-card__name,
body.v2 .bc-grid--8 .bc-card__name { font-size: 14px; }
body.v2 .bc-card__sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-gray);
}
body.v2 .bc-card:hover .bc-card__name { color: var(--v2-gray); }

/* ---------- /quartz-brands hero ---------- */
body.v2 .bc-hero {
    padding: clamp(64px, 8vw, 120px) 0;
    background: var(--v2-black);
    color: var(--v2-white);
}
body.v2 .bc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px clamp(40px, 6vw, 96px);
    align-items: center;
}
body.v2 .bc-hero .v2-eyebrow { color: var(--v2-on-dark); }
body.v2 .bc-hero .v2-display { color: var(--v2-white); }
body.v2 .bc-hero .v2-lede { color: var(--v2-on-dark); }
body.v2 .bc-hero .v2-link { color: var(--v2-white); }
body.v2 .bc-hero :focus-visible { outline-color: var(--v2-white); }
body.v2 .bc-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--v2-on-dark);
}
body.v2 .bc-hero__sep { width: 16px; height: 1px; background: var(--v2-gold); }
body.v2 .bc-hero__mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
body.v2 .bc-hero__mosaic a { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #1C1B1A; }
body.v2 .bc-hero__mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1), opacity .3s ease; }
body.v2 .bc-hero__mosaic a:hover img { transform: scale(1.05); }
body.v2 .bc-hero__mosaic span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 10px 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-white);
    background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0));
}

/* ---------- Brand directory ---------- */
body.v2 .bc-dir {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px var(--v2-gutter);
}
body.v2 .bc-dir > li { display: flex; }
body.v2 .bc-brand {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--v2-line);
    color: var(--v2-ink);
}
body.v2 a.bc-brand { position: relative; }
body.v2 a.bc-brand::before {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    width: 0; height: 1px;
    background: var(--v2-gold);
    transition: width .4s ease;
}
body.v2 a.bc-brand:hover::before { width: 100%; }
body.v2 .bc-brand__logo {
    display: flex;
    align-items: center;
    height: 70px;
    margin: 0 0 24px;
}
/* Logos vary (padded canvases and tight crops), so fit each one inside the same box */
body.v2 .bc-brand__logo img {
    width: 201px;
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1);
    opacity: .8;
    transition: filter .3s ease, opacity .3s ease;
}
body.v2 a.bc-brand:hover .bc-brand__logo img { filter: none; opacity: 1; }
body.v2 .bc-brand__wordmark {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v2-gray);
}
body.v2 .bc-brand__name { font-size: 22px; line-height: 1.25; }
body.v2 .bc-brand__maker {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v2-gray);
}
body.v2 .bc-brand__text {
    display: block;
    margin: 16px 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--v2-gray);
}
body.v2 .bc-brand__swatches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
}
body.v2 .bc-brand__swatches img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--v2-line); }
body.v2 .bc-brand__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    font-size: 13px;
}
body.v2 .bc-brand__count { color: var(--v2-gray); letter-spacing: 0.02em; }
body.v2 .bc-brand__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
body.v2 a.bc-brand:hover .v2-arrow { transform: translateX(4px); color: var(--v2-ink); }

/* ---------- Explore by style ---------- */
body.v2 .bc-stylenav { margin: -16px 0 16px; }
body.v2 .bc-stylenav ul { display: flex; flex-wrap: wrap; gap: 10px; }
body.v2 .bc-stylenav a {
    display: inline-block;
    padding: 9px 16px;
    font-size: 13px;
    border: 1px solid var(--v2-line);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
body.v2 .bc-stylenav a:hover { border-color: var(--v2-ink); background: var(--v2-ink); color: var(--v2-white); }
body.v2 .bc-style { padding: 48px 0 8px; }
body.v2 .bc-style + .bc-style { border-top: 1px solid var(--v2-line); margin-top: 40px; }
body.v2 .bc-style__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 48px;
    margin-bottom: 28px;
}
body.v2 .bc-style__title { font-size: 24px; line-height: 1.25; }
body.v2 .bc-style__line { max-width: 34em; font-size: 15px; color: var(--v2-gray); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    body.v2 .bc-grid--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.v2 .bc-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.v2 .bc-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    body.v2 .bc-hero__grid { grid-template-columns: 1fr; }
    body.v2 .bc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body.v2 .bc-crumbs { margin-bottom: 28px; }
    body.v2 .bc-grid,
    body.v2 .bc-grid--6,
    body.v2 .bc-grid--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
    body.v2 .bc-dir { grid-template-columns: 1fr; gap: 48px; }
    body.v2 .bc-style { padding-top: 36px; }
    body.v2 .bc-style__title { font-size: 21px; }
}

/* ==========================================================================
   Part 2: brand hubs and color pages (body.bc-cat, Cambria page pattern)
   Tokens come from site-v2.css (body.v2site).
   ========================================================================== */
body.bc-cat .mini-design-card[hidden],
body.bc-cat .bc-filters[hidden],
body.bc-cat .bc-reset[hidden],
body.bc-cat .bc-empty[hidden] { display: none !important; }
html.bc-lock, html.bc-lock body { overflow: hidden; }

/* Hub: logo above the "Why choose" heading, warranty line under the cards */
body.bc-cat .bc-hub-logo { width: 200px; margin: -24px auto 8px; }
body.bc-cat .bc-hub-logo img { width: 100%; height: auto; }
body.bc-cat .bc-hub-note {
    max-width: 760px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: var(--v2-gray);
}
body.bc-cat .bc-hub-note a { margin-left: 6px; color: var(--v2-ink); border-bottom: 1px solid var(--v2-gold); }
body.bc-cat .why-card p { margin: 0; }

/* Hub: collections + filters above the all-designs grid */
body.bc-cat .bc-colls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}
body.bc-cat .bc-colls li { padding-top: 20px; border-top: 1px solid var(--v2-line); }
body.bc-cat .bc-colls h3 { margin: 0 0 8px; font-size: 18px; }
body.bc-cat .bc-colls p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; color: var(--v2-gray); }
body.bc-cat .bc-colls a { font-size: 13px; font-weight: 500; color: var(--v2-ink); border-bottom: 1px solid var(--v2-gold); }
body.bc-cat .bc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 32px;
    margin: 0 0 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--v2-line);
}
body.bc-cat .bc-filter { display: flex; flex-direction: column; gap: 6px; min-width: 180px; margin: 0; }
body.bc-cat .bc-filter > span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v2-gray);
}
body.bc-cat .bc-filter select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    padding: 0 28px 0 0;
    font-family: inherit;
    font-size: 15px;
    color: var(--v2-ink);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23151515' stroke-width='1'%3E%3Cpath d='M2 4.5l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 2px center;
    border: 0;
    border-bottom: 1px solid var(--v2-ink);
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}
body.bc-cat .bc-filters__status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-size: 13px;
    color: var(--v2-gray);
}
body.bc-cat .bc-filters__status p { margin: 0; }
body.bc-cat .bc-reset {
    padding: 0 0 2px;
    font-family: inherit;
    font-size: 13px;
    color: var(--v2-ink);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--v2-gold);
    cursor: pointer;
}
body.bc-cat .bc-empty { margin-top: 24px; text-align: center; font-size: 15px; color: var(--v2-gray); }

/* Hub: link columns before the closing CTA */
body.bc-cat .bc-explore { padding: 72px 0; background: var(--v2-white); }
body.bc-cat .bc-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}
body.bc-cat .bc-links > div { padding-top: 24px; border-top: 1px solid var(--v2-line); }
body.bc-cat .bc-links__title {
    margin: 0 0 16px;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--v2-gray);
}
body.bc-cat .bc-links ul { margin: 0; padding: 0; list-style: none; }
body.bc-cat .bc-links li + li { margin-top: 10px; }
body.bc-cat .bc-links a { font-size: 15px; color: var(--v2-ink); }
body.bc-cat .bc-links a:hover { text-decoration: underline; text-decoration-color: var(--v2-gold); text-underline-offset: 4px; }

/* Color page: swatch frame never enlarges a small swatch past its natural size */
body.bc-cat .main-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #111;
    cursor: zoom-in;
}
body.bc-cat .main-swatch img { width: 100%; height: 100%; object-fit: cover; }
body.bc-cat .bc-swatch-hint {
    position: absolute;
    left: 12px; top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,.55);
}
body.bc-cat .bc-maker-link { margin-top: 20px; font-size: 14px; }
body.bc-cat .bc-maker-link a { color: var(--v2-gray); border-bottom: 1px solid var(--v2-line); }
body.bc-cat .bc-maker-link a:hover { color: var(--v2-ink); border-color: var(--v2-ink); }
body.bc-cat .specs-table a { color: inherit; border-bottom: 1px solid var(--v2-gold); }
body.bc-cat .bc-note-box { margin-top: 2rem; padding: 1.5rem; background: var(--color-light, #FAF9F7); border-radius: 8px; }
body.bc-cat .bc-note-box h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--color-primary, #000); }
body.bc-cat .bc-note-box p { margin: 0 0 1rem; font-size: .9375rem; line-height: 1.6; color: var(--color-gray, #6B6660); }
body.bc-cat .bc-style-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.bc-cat .bc-style-links a {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--v2-ink);
    border: 1px solid var(--v2-line);
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
body.bc-cat .bc-style-links a:hover { border-color: var(--v2-ink); background: var(--v2-ink); color: #fff; }
body.bc-cat .related-header a { color: var(--v2-ink); border-bottom: 1px solid var(--v2-gold); }
body.bc-cat .bc-related-alt { background: var(--v2-paper); }
body.bc-cat .bc-related-6 { grid-template-columns: repeat(6, 1fr); }
body.bc-cat .bc-related-brand {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-gray);
}

/* Lightbox */
body.bc-cat .bc-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,.94);
    color: #fff;
}
body.bc-cat .bc-lightbox[open] { display: flex; flex-direction: column; }
body.bc-cat .bc-lightbox::backdrop { background: rgba(0,0,0,.6); }
body.bc-cat .bc-lightbox__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: 64px;
    flex: none;
    border-bottom: 1px solid var(--v2-line-dark);
}
body.bc-cat .bc-lightbox__bar p { margin: 0; font-size: 13px; letter-spacing: 0.02em; color: var(--v2-on-dark); }
body.bc-cat .bc-lightbox__bar > div { display: flex; align-items: center; gap: 8px; }
body.bc-cat .bc-lightbox__btn {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}
body.bc-cat .bc-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
body.bc-cat .bc-lightbox__stage { flex: 1; overflow: auto; display: flex; padding: 24px; }
body.bc-cat .bc-lightbox__stage img {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}
body.bc-cat .bc-lightbox.is-zoomed .bc-lightbox__stage img { max-width: none; max-height: none; margin: 0; cursor: zoom-out; }

@media (max-width: 1024px) {
    body.bc-cat .bc-related-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    body.bc-cat .bc-links { grid-template-columns: 1fr; }
    body.bc-cat .bc-filter { min-width: 0; flex: 1 1 100%; }
    body.bc-cat .bc-filters__status { margin-left: 0; }
    body.bc-cat .bc-related-6 { grid-template-columns: repeat(2, 1fr); }
    body.bc-cat .bc-hub-logo { width: 160px; }
}
