/* Discount Blinds Fabric Colours: hub and colour pages. Same tokens as the product pages. */
.dbfc { --ink: #434b48; --text: #565d5a; --muted: #7d8481; --line: #dfe7e2; --tint: #eef6f2; --green: #4f8a72; --green-text: #4f8a72; color: var(--text); }
.dbfc *, .dbfc *::before, .dbfc *::after { box-sizing: border-box; }

/* Colour links */
.dbfc-nav { margin: 8px 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dbfc-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dbfc-nav li { margin: 0; }
.dbfc-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; background: #ffffff; border: 1px solid #d7dfda; border-radius: 8px; color: #434b48; font-size: 14px; text-decoration: none; }
.dbfc-nav a span { color: var(--muted); font-size: 12px; }
.dbfc-nav a:hover { border-color: var(--green); }
.dbfc-nav a[aria-current="page"] { background: #eef6f2; border-color: var(--green); color: var(--green-text); }

/* Hub with a sidebar: colour groups down the side on wide screens, a row of chips on phones */
.dbfc-group { scroll-margin-top: 100px; }
.dbfc-side { margin: 0 0 24px; }
.dbfc-side__title { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dbfc-side ul { margin: 0; padding: 0; list-style: none; }
.dbfc-side li { margin: 0; }
.dbfc-side a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: #434b48; font-size: 14px; line-height: 1.3; text-decoration: none; }
.dbfc-side a:hover { background: var(--tint); }
.dbfc-side a[aria-current] { background: #eef6f2; border-color: var(--green); color: var(--green-text); }
.dbfc-side__bar { display: flex; height: 26px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; }
.dbfc-side__bar span { flex: 1 1 0; }
.dbfc-side__n { font-size: 12px; color: var(--muted); }
@media ( min-width: 1024px ) {
    .dbfc--side { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
    .dbfc--side .dbfc-side { position: sticky; top: 100px; margin: 0; padding: 4px 0; }
    .dbfc--side .dbfc-side ul { display: flex; flex-direction: column; gap: 2px; }
    .dbfc--side .dbfc-samples { grid-column: 2; }
}
@media ( max-width: 1023px ) {
    .dbfc--side .dbfc-side { position: sticky; top: 0; z-index: 5; margin: 0 -15px 20px; padding: 10px 15px; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
    .dbfc--side .dbfc-side__title { display: none; }
    .dbfc--side .dbfc-side ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .dbfc--side .dbfc-side ul::-webkit-scrollbar { display: none; }
    .dbfc--side .dbfc-side li { flex: 0 0 auto; }
    .dbfc--side .dbfc-side a { grid-template-columns: 22px auto auto; gap: 7px; padding: 6px 12px 6px 8px; background: #ffffff; border-color: #d7dfda; }
    .dbfc--side .dbfc-side__bar { height: 22px; border-radius: 50%; }
}

/* Groups */
.dbfc-group { margin: 0 0 44px; }
.dbfc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; }
.dbfc-group h2 { margin: 0; font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--ink); text-transform: none; letter-spacing: 0; }
.dbfc-group h2 a { color: inherit; text-decoration: none; }
.dbfc-group h2 a:hover { color: var(--green-text); text-decoration: underline; text-underline-offset: 4px; }
.dbfc-group h2.dbfc-sub { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.dbfc-count { font-size: 14px; color: var(--muted); }

/* Tiles */
.dbfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dbfc-tile { margin: 0; }
.dbfc-tile a { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.dbfc-tile a:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(31, 42, 38, 0.08); }
.dbfc-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.dbfc-pics img, .dbfc-hex { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; }
.dbfc-hex { display: flex; align-items: flex-end; padding: 6px 7px; border: 1px solid rgba(0, 0, 0, 0.08); font-size: 11px; letter-spacing: 0.02em; color: rgba(0, 0, 0, 0.55); font-variant-numeric: tabular-nums; }
.dbfc-hex.is-dark { color: rgba(255, 255, 255, 0.75); }
.dbfc-tile .dbfc-name { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--ink); text-transform: none; letter-spacing: 0; }
.dbfc-tile .dbfc-colour { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--green-text); }
.dbfc-tile .dbfc-price { margin: auto 0 0; padding-top: 8px; font-size: 13px; color: var(--muted); }
.dbfc-samples { margin: 8px 0 0; font-size: 15px; }
.dbfc-samples a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }

/* Link from the category pages */
.dbfc-cta { margin: 4px 0 18px; }
.dbfc-cta a { display: inline-flex; align-items: center; padding: 10px 16px; background: #eef6f2; border: 1px solid #4f8a72; border-radius: 8px; color: #4f8a72; font-size: 15px; text-decoration: none; }
.dbfc-cta a:hover { background: #e3f1ea; }

@media ( max-width: 549px ) {
    .dbfc-nav ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px; padding: 0 15px 4px; }
    .dbfc-nav li { flex: 0 0 auto; }
    .dbfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dbfc-tile a { padding: 8px 8px 12px; }
    .dbfc-group h2 { font-size: 20px; }
    .dbfc-tile .dbfc-name { font-size: 15px; }
}

/* /colours/: a section per type of blind, a card per range with slices of real fabric photos */
.dbfc-find { --ink: #434b48; --text: #565d5a; --muted: #7d8481; --line: #dfe7e2; --green: #4f8a72; --green-text: #4f8a72; margin: 0 0 48px; color: var(--text); }
.dbfc-find *, .dbfc-find *::before, .dbfc-find *::after { box-sizing: border-box; }
.dbfc-find ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.dbfc-find li { margin: 0 !important; }
.dbfc-find__jump { margin: 18px 0 8px; }
.dbfc-find__jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.dbfc-find__jump a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; background: #ffffff; border: 1px solid #d7dfda; border-radius: 999px; color: #434b48; font-size: 14px; text-decoration: none; }
.dbfc-find__jump a:hover { border-color: var(--green); color: var(--green-text); }
.dbfc-type { padding: 34px 0 0; scroll-margin-top: 90px; }
.dbfc-type__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.dbfc-type__head h2 { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.25; color: var(--ink); text-transform: none; letter-spacing: 0; }
.dbfc-type__head span { font-size: 14px; color: var(--muted); }
.dbfc-ranges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dbfc-range a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.dbfc-range a:hover { border-color: var(--green); box-shadow: 0 8px 22px rgba(31, 42, 38, 0.1); transform: translateY(-2px); }
.dbfc-range__slices { display: flex; height: 150px; background: #f3f5f4; }
.dbfc-range__slices > span { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.dbfc-range__slices > span + span::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(255, 255, 255, 0.55); }
/* Zoom into the middle of each photo, past the sample's pinked edges and any label */
.dbfc-range__slices img { position: absolute; top: 50%; left: 50%; width: 150% !important; max-width: none !important; height: 150% !important; margin: 0; object-fit: cover; border-radius: 0; transform: translate(-50%, -50%); }
.dbfc-range__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.dbfc-range .dbfc-range__name { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.25; color: var(--ink); text-transform: none; letter-spacing: 0; }
.dbfc-range__meta { margin-top: 3px; font-size: 13px; color: var(--muted); }
.dbfc-range__blurb { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.dbfc-range__go { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--green-text); }
.dbfc-range__go span { display: inline-block; transition: transform 0.15s; }
.dbfc-range a:hover .dbfc-range__go span { transform: translateX(3px); }
@media ( max-width: 1099px ) { .dbfc-ranges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media ( max-width: 849px ) { .dbfc-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media ( max-width: 549px ) {
    .dbfc-find__jump ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px !important; padding: 0 15px 4px !important; scrollbar-width: none; }
    .dbfc-find__jump li { flex: 0 0 auto; }
    .dbfc-type { padding-top: 26px; }
    .dbfc-type__head h2 { font-size: 22px; }
    .dbfc-ranges { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .dbfc-range a { flex-direction: row; }
    .dbfc-range__slices { flex: 0 0 38%; height: auto; min-height: 132px; }
    .dbfc-range__slices > span:nth-child(2), .dbfc-range__slices > span:nth-child(4), .dbfc-range__slices > span:nth-child(6) { display: none; } /* five wider slices, still light to dark */
    .dbfc-range__body { padding: 12px 14px 14px; }
    .dbfc-range .dbfc-range__name { font-size: 18px; }
    .dbfc-range__blurb { margin-top: 6px; font-size: 14px; }
    .dbfc-range__go { padding-top: 8px; }
}

/* Page header: breadcrumb and the H1 (the theme's default page template has no title) */
.dbfc-header { margin: 0 0 14px; }
.dbfc-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 12px; font-size: 13px; color: #7d8481; }
.dbfc-crumbs a { color: #7d8481; text-decoration: none; }
.dbfc-crumbs a:hover { color: #4f8a72; text-decoration: underline; }
.dbfc-crumbs__sep { color: #b5bdb8; }
.dbfc-title { margin: 0; font-size: 34px; font-weight: 400; line-height: 1.2; color: #434b48; text-transform: none; letter-spacing: 0; }
.dbfc-header + p, .dbfc-header + .wp-block-paragraph { max-width: 820px; margin: 0 0 6px; font-size: 18px; line-height: 1.6; color: #434b48; }
@media ( max-width: 549px ) {
    .dbfc-title { font-size: 28px; }
    .dbfc-header + p, .dbfc-header + .wp-block-paragraph { font-size: 16px; }
}

/* The theme indents lists (ul and li margins); reset them inside the charts */
.dbfc ul, .dbfc-index { margin-left: 0 !important; padding-left: 0 !important; }
.dbfc li, .dbfc-index li { margin-left: 0 !important; margin-bottom: 0 !important; }
