:root {
    --ink: #2b1f18;
    --muted: #7a6a5e;
    --line: #eadfd3;
    --bg: #faf6f1;
    --accent: #a8642e;
    --accent-dark: #85491d;
    --brown: #6a4630;
    --wood: #e1a96b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* top strip */
.topstrip { background: var(--brown); color: #ddd; font-size: .8rem; padding: .35rem 0; }
.topstrip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.topstrip a { margin-left: 1rem; }
.topstrip a:hover { color: #fff; }

/* auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 1.5rem; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2rem 1.75rem; }
.auth-card .site-brand { display: block; text-align: center; margin-bottom: 1.5rem; }
.auth-card label { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; display: block; }
.auth-card .field { margin-bottom: 1rem; position: relative; }
.auth-card input[type=text], .auth-card input[type=password] { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; }
.auth-card .btn-main { width: 100%; }
.auth-card .toggle-pw { position: absolute; right: .8rem; top: 2.45rem; font-size: .8rem; color: var(--muted); cursor: pointer; }
.auth-foot { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-brand { font-weight: 700; letter-spacing: .14em; font-size: 1.25rem; line-height: 1.1; }
.site-brand small { display: block; font-weight: 400; letter-spacing: .08em; font-size: .62rem; color: var(--muted); text-transform: uppercase; }
.site-header .nav-link { color: var(--ink); padding: .5rem 1rem; font-size: .95rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--accent); }
.site-header .nav-muted { color: var(--muted); font-size: .85rem; }

/* sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: 2rem; font-weight: 600; margin: 0 0 .35rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 2rem; }
.page-head { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.page-head h1 { font-size: 2.75rem; font-weight: 600; line-height: 1.15; margin: 0 0 .5rem; }
.page-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* slider */
.hero-slide { position: relative; height: 62vh; min-height: 320px; max-height: 560px; background: #2b2b2b; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.hero-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 2.2rem; color: #fff; }
.hero-caption h2 { font-size: 2rem; font-weight: 600; margin: 0; }
.hero-caption p { margin: .2rem 0 0; opacity: .9; }
#heroSlider .carousel-indicators { margin-bottom: .8rem; }

/* cards */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.item-card { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.item-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); }
.item-card .thumb { background: var(--bg); padding: 1.5rem; display: flex; justify-content: center; }
.item-card .thumb .door { width: 120px; }
.item-card .body { padding: 1rem 1.1rem 1.2rem; }
.item-card h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .25rem; }
.item-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* finishes */
.swatch-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.swatch { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.swatch i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); background: var(--c); display: block; }
.swatch.on i, .swatch:hover i { box-shadow: 0 0 0 2px var(--accent); }
.swatch.on { color: var(--ink); font-weight: 600; }
.collection-block + .collection-block { margin-top: 2.2rem; }
.collection-block h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }

/* buttons */
.btn-main { display: inline-block; background: var(--accent); color: #fff; padding: .7rem 1.5rem; border-radius: 6px; border: 0; font-weight: 600; cursor: pointer; }
.btn-main:hover { background: var(--accent-dark); color: #fff; }
.btn-line { display: inline-block; border: 1px solid var(--ink); padding: .65rem 1.4rem; border-radius: 6px; font-weight: 600; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* door drawing (pure CSS, no images) */
.door {
    --c: #f5f5f2;
    --dark: color-mix(in srgb, var(--c) 78%, #000);
    --light: color-mix(in srgb, var(--c) 70%, #fff);
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--c);
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.18);
}
.door::before, .door::after { content: ""; position: absolute; }
.door-shaker::before { inset: 13%; border: 1px solid var(--dark); background: color-mix(in srgb, var(--c) 94%, #000); box-shadow: inset 2px 2px 4px rgba(0,0,0,.18), inset -1px -1px 0 var(--light); }
.door-slab { background: linear-gradient(135deg, var(--light), var(--c) 45%, var(--dark)); }
.door-raised::before { inset: 12%; border: 1px solid var(--dark); border-radius: 2px; box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 5px var(--dark), 0 0 0 4px var(--light); }
.door-raised::after { inset: 24%; border: 1px solid var(--dark); background: var(--light); box-shadow: 1px 1px 3px rgba(0,0,0,.2); }
.door-mullion::before { inset: 12%; background:
    linear-gradient(var(--dark), var(--dark)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--dark), var(--dark)) 0 33.3% / 100% 2px no-repeat,
    linear-gradient(var(--dark), var(--dark)) 0 66.6% / 100% 2px no-repeat,
    linear-gradient(135deg, #dfeaf0, #b9ccd6); border: 2px solid var(--dark); }
.door-thermofoil { background: linear-gradient(160deg, var(--light), var(--c) 60%); }
.door-thermofoil::before { inset: 9%; border-radius: 2px; box-shadow: inset 1px 1px 2px rgba(0,0,0,.28), 1px 1px 0 var(--light); }

/* product page */
.stage-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.stage { height: 400px; display: flex; align-items: center; justify-content: center; perspective: 1000px; cursor: grab; touch-action: pan-y; user-select: none; }
.stage:active { cursor: grabbing; }
.door-3d { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -18deg)) rotateX(var(--rx, 4deg)); transition: transform .08s linear; }
.door-3d .door { width: 100%; height: 100%; aspect-ratio: auto; }
.door-3d .edge { position: absolute; top: 0; height: 100%; width: 14px; background: var(--edge, #bbb); }
.door-3d .edge-r { left: 100%; transform-origin: left; transform: rotateY(90deg); }
.door-3d .edge-l { right: 100%; transform-origin: right; transform: rotateY(-90deg); }
.view-hint { text-align: center; color: var(--muted); font-size: .8rem; margin: .5rem 0 0; }
.spin-range { width: 100%; }

.opt { margin-bottom: 1.4rem; }
.opt label.lbl { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; }
.size-row { display: flex; gap: .75rem; align-items: center; }
.size-row input, .opt select { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; }
.size-row span { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: .2rem .8rem; font-size: .82rem; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch { position: relative; cursor: pointer; }
.summary { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; font-size: .92rem; margin-bottom: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* simple text pages */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border: 0; }
.container.prose { max-width: none; }
.prose > * { max-width: 680px; }


@media (max-width: 575px) {
    .hero-caption h2 { font-size: 1.5rem; }
    .stage { height: 320px; }
    .section { padding: 2.5rem 0; }
}

/* photo cards (home) */
.photo-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.photo-card { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.photo-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.12); transform: translateY(-3px); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.photo-body { padding: 1rem 1.15rem 1.25rem; }
.photo-body h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .25rem; }
.photo-body p { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.size-tag { display: inline-block; font-size: .78rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 20px; padding: .1rem .65rem; }

.swatch-big { gap: 1.1rem; }
.swatch-big .swatch i { width: 64px; height: 64px; }
.swatch-big .swatch { font-size: .88rem; }

.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step b { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .25rem; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }

.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery-strip img { width: 100%; height: 220px; object-fit: cover; }
@media (max-width: 767px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } .gallery-strip img { height: 150px; } }

/* richer door drawing: lighting + grain so colour changes look real */
.door { background-image: linear-gradient(115deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%, rgba(0,0,0,.14)); background-color: var(--c); }
.door-slab { background-image: linear-gradient(115deg, rgba(255,255,255,.28), rgba(255,255,255,0) 45%, rgba(0,0,0,.18)); }
.door::selection { background: transparent; }
.item-card .thumb { padding: 1.5rem 1rem; }
.item-card .thumb .door { width: 150px; }

/* collection tiles */
.tile-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #2b2b2b; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.tile-label { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: .9rem; color: #fff; display: flex; flex-direction: column; }
.tile-label b { font-size: 1.15rem; font-weight: 600; }
.tile-label small { opacity: .85; }

/* in-drawing editor */
.editor { display: flex; flex-direction: column; align-items: center; }
.editor-row { display: flex; align-items: center; gap: .75rem; width: 100%; }
.editor-row .stage { flex: 1; min-width: 0; }
.dim { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); margin: 0; }
.dim input { width: 82px; padding: .35rem .5rem; border: 1px dashed var(--accent); border-radius: 6px; background: #fff; text-align: center; font-size: .95rem; }
.dim-h { flex-direction: column; }
.dim-w { margin-top: .25rem; }
.swatch-inline { justify-content: center; margin-top: 1rem; }
.swatch-inline .swatch i { width: 34px; height: 34px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* uploaded photo products: colour tint masked to the cut-out's shape */
.door-photo { background: none !important; box-shadow: none; overflow: visible; }
.door-photo img { width: 100%; height: 100%; object-fit: fill; display: block; }
.door-photo .tint { position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply;
    -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }

/* per-colour door photo shown above the drawing */
.photo-panel { margin-bottom: 1rem; }
.photo-panel img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; display: block; background: #eee; }
.photo-panel.empty { padding: .6rem 0 0; }

/* collection option tiles: title on top, angled door corner at the bottom */
.ctile-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ctile { position: relative; display: block; overflow: hidden; min-height: 330px; padding: 1.4rem 1.4rem 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.ctile:hover { box-shadow: 0 10px 26px rgba(0,0,0,.12); transform: translateY(-3px); }
.ctile h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .3rem; }
.ctile p { color: var(--muted); font-size: .88rem; margin: 0; max-width: 90%; }
.ctile .corner { position: absolute; left: auto; right: -12%; bottom: 8%; width: min(85%, 300px); perspective: 700px; pointer-events: none; }
.ctile .corner .door { aspect-ratio: 4 / 3; transform: rotateX(55deg) rotateZ(-22deg); transform-origin: 50% 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 8px 14px 18px rgba(0,0,0,.2); }

.spec-table { border-collapse: collapse; width: 100%; max-width: 560px; font-size: .92rem; }
.spec-table th, .spec-table td { padding: .5rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.spec-card { margin-bottom: 1.2rem; }

/* logo + footer */
.brand-logo { height: 52px; width: auto; display: block; }
.auth-card .brand-logo { height: 90px; margin: 0 auto 1.25rem; }
.site-header .navbar { padding: .35rem 0; }
.site-header .nav-link.active { color: var(--accent); font-weight: 600; }

.site-footer { background: #fff; border-top: 3px solid var(--wood); padding: 2.5rem 0 1rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr .8fr 1.4fr max-content; align-items: start; }
.footer-logo { height: 96px; width: auto; display: block; margin-bottom: .75rem; }
.footer-about { font-size: .88rem; max-width: 280px; margin: 0; }
.site-footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin: 0 0 .8rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.footer-copy { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .brand-logo { height: 44px; } }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; box-shadow: 0 10px 30px rgba(106,70,48,.08); }
.form-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 1.1rem; }
.form-card label { font-size: .82rem; color: var(--muted); margin-bottom: .3rem; display: block; }
.form-input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; background: #fff; font-family: inherit; }
.form-input:focus, .auth-card input:focus { outline: 2px solid var(--wood); border-color: var(--accent); }
.field-error { color: #b3261e; font-size: .8rem; }
.form-done { text-align: center; padding: 1.5rem 0; }
.form-done h2 { font-size: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* admin */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 240px; flex-shrink: 0; background: var(--brown); color: #fff; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.admin-logo { background: #fff; border-radius: 10px; padding: .6rem; display: block; }
.admin-logo img { width: 100%; height: auto; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.admin-nav a { color: #f1e4d6; padding: .55rem .75rem; border-radius: 6px; font-size: .95rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.admin-logout { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: .5rem; cursor: pointer; }
.admin-logout:hover { background: rgba(255,255,255,.12); }
.admin-main { flex: 1; min-width: 0; padding: 2rem; }
.admin-title { font-size: 1.7rem; font-weight: 600; margin: 0 0 1.25rem; }
.admin-sub { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 1rem; }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.25rem; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat b { font-size: 2rem; color: var(--brown); line-height: 1.2; }
.admin-empty { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 1.5rem; color: var(--muted); }
.enq-list { display: grid; gap: .9rem; }
.enq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; }
.enq header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.enq header a { color: var(--accent); margin-left: .75rem; }
.enq time { color: var(--muted); font-size: .8rem; }
.enq-tags { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.enq-tags span { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: .1rem .6rem; }
.enq p { margin: .6rem 0 0; white-space: pre-wrap; }
@media (max-width: 767px) { .admin-shell { flex-direction: column; } .admin-side { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; } .admin-logo { width: 90px; } .admin-nav { flex-direction: row; } .admin-main { padding: 1.25rem; } }

/* bolder home bands */
.section-dark { background: var(--brown); color: #fff; }
.section-dark .section-sub { color: #e6d6c6; }
.quote-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 1.4rem; }
.quote .stars { color: var(--wood); letter-spacing: .15em; margin-bottom: .6rem; }
.quote blockquote { margin: 0 0 1rem; font-size: .98rem; line-height: 1.6; }
.quote figcaption b { display: block; }
.quote figcaption span { color: #e6d6c6; font-size: .85rem; }
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.cta-band h2 { font-size: 2.3rem; font-weight: 600; margin: 0 0 .4rem; }
.cta-band p { opacity: .92; margin: 0 0 1.4rem; }
.btn-light-solid { display: inline-block; background: #fff; color: var(--accent-dark); padding: .7rem 1.5rem; border-radius: 6px; font-weight: 600; }
.btn-light-solid:hover { background: var(--bg); color: var(--accent-dark); }
.btn-light-line { display: inline-block; border: 1px solid #fff; color: #fff; padding: .65rem 1.4rem; border-radius: 6px; font-weight: 600; }
.btn-light-line:hover { background: #fff; color: var(--accent-dark); }
.section-alt { background: #f3e9dd; }
.section-title { color: var(--brown); }
.section-dark .section-title, .cta-band .section-title { color: #fff; }
.hero-caption h2 { font-size: 3rem; }

/* stylish login */
.auth-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; display: flex; align-items: center; padding: 3rem; color: #fff;
    background: linear-gradient(160deg, rgba(74,50,37,.92), rgba(168,100,46,.82)), var(--bg-img) center / cover no-repeat; }
.auth-art-inner { max-width: 440px; }
.auth-art h2 { font-size: 2.6rem; font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
.auth-art p { font-size: 1.05rem; opacity: .92; margin: 0 0 1.5rem; }
.auth-art ul { list-style: none; padding: 0; margin: 0; }
.auth-art li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.auth-art li::before { content: ""; position: absolute; left: 0; top: .75rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--wood); }
.auth-split .auth-wrap { min-height: 0; background: #fff; }
.auth-split .auth-card { border: 0; box-shadow: none; max-width: 380px; padding: 1rem 0; }
.auth-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0; color: var(--brown); }
.auth-lead { text-align: center; color: var(--muted); margin: .2rem 0 1.5rem; }
.auth-card input[type=text], .auth-card input[type=password] { padding: .8rem .9rem; border-radius: 8px; background: var(--bg); }
.auth-card .btn-main { padding: .85rem; font-size: 1rem; border-radius: 8px; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-split .auth-wrap { min-height: 100vh; } }

/* photo + drawing cards */
.duo-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.duo-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.duo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #2b2b2b; box-shadow: 0 6px 18px rgba(74,50,37,.14); }
.duo-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.duo:hover .duo-photo { transform: scale(1.07); }
.duo-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,25,15,.78), rgba(40,25,15,0) 60%); }
.duo-label { position: absolute; left: 1.1rem; right: 38%; bottom: 1rem; color: #fff; display: flex; flex-direction: column; }
.duo-label b { font-size: 1.15rem; font-weight: 600; }
.duo-label small { opacity: .88; font-size: .8rem; line-height: 1.3; }
.duo-drawing { position: absolute; right: 1rem; bottom: 1rem; width: 30%; padding: .5rem; background: rgba(255,255,255,.92); border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .4s ease; }
.duo:hover .duo-drawing { transform: translateY(-6px) rotate(-2deg); }
.duo-drawing .door { display: block; width: 100%; }

.tier-hero { position: relative; color: #fff; padding: 3.5rem 0 3rem; background: linear-gradient(rgba(60,38,24,.72), rgba(60,38,24,.72)), var(--img) center / cover; }
.tier-hero h1 { font-size: 2.8rem; font-weight: 700; margin: 0 0 .3rem; }
.tier-hero p { margin: 0; opacity: .92; }
.tier-hero a { color: #fff; opacity: .85; }

/* years / stats strip */
.stats-strip { background: var(--brown); color: #fff; padding: 1.4rem 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.stat-item b { display: block; font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: var(--wood); }
.stat-item span { font-size: .85rem; color: #f1e4d6; }
.stat-item b span { font-size: inherit; color: inherit; }
.lead-years { font-size: 1.2rem; color: var(--accent); }

/* motion */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.carousel-item.active .hero-slide img { animation: kenburns 9s ease-out both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-caption h2 { animation: riseIn .8s .15s both; }
.hero-caption p { animation: riseIn .8s .35s both; }
@keyframes floaty { 0%, 100% { transform: rotateX(55deg) rotateZ(-22deg) translateY(0); } 50% { transform: rotateX(55deg) rotateZ(-22deg) translateY(-8px); } }
.ctile .corner .door { animation: floaty 5s ease-in-out infinite; }
.ctile:hover .corner .door { animation-play-state: paused; }
.btn-main, .btn-line, .btn-light-solid, .btn-light-line, .chip { transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
.btn-main:hover, .btn-light-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(106,70,48,.25); }
.swatch i { transition: transform .2s ease, box-shadow .2s ease; }
.swatch:hover i { transform: scale(1.12); }
.photo-panel img { transition: opacity .35s ease; }
.door-3d { transition: transform .08s linear; }
.site-header .nav-link { position: relative; }
.site-header .nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* about + contact */
.page-hero { padding: 4.5rem 0 4rem; }
.page-hero h1 { font-size: 3.3rem; }
.page-hero p { font-size: 1.1rem; }
.eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--wood); margin-bottom: .6rem; }
.eyebrow.dark { color: var(--accent); }
.about-text { color: var(--muted); font-size: 1.02rem; max-width: 520px; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px rgba(74,50,37,.22); }
.about-badge { position: absolute; left: -1rem; bottom: -1.2rem; background: var(--accent); color: #fff; border-radius: 14px; padding: .9rem 1.3rem; box-shadow: 0 10px 24px rgba(106,70,48,.35); display: flex; flex-direction: column; line-height: 1.1; }
.about-badge b { font-size: 2rem; }
.about-badge span { font-size: .8rem; opacity: .9; }
.value-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease; }
.value:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(74,50,37,.12); }
.value-icon { display: inline-flex; width: 50px; height: 50px; border-radius: 12px; align-items: center; justify-content: center; background: #f3e9dd; color: var(--accent); margin-bottom: .9rem; }
.value h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .3rem; color: var(--brown); }
.value p { color: var(--muted); font-size: .92rem; margin: 0; }

.contact-panel { background: linear-gradient(160deg, var(--brown), #4a3225); color: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 18px 40px rgba(74,50,37,.25); }
.contact-panel h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 1.2rem; }
.c-row { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.c-row:last-of-type { border-bottom: 0; }
a.c-row:hover { color: var(--wood); }
.c-icon { flex: 0 0 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; color: var(--wood); }
.c-row small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #e6d6c6; }
.form-card { border-top: 4px solid var(--accent); }

/* admin products */
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; }
.flash.ok { background: #e7f3e8; color: #215c2a; border: 1px solid #bfdcc3; }
.flash.bad { background: #fbe9e7; color: #8a2a1f; border: 1px solid #f0c4be; }
.check-row { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--ink) !important; }
.check-row input { margin-top: .25rem; }
.admin-products { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.admin-product { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.admin-product:hover { box-shadow: 0 10px 24px rgba(74,50,37,.12); transform: translateY(-3px); }
.ap-thumb { background: var(--bg); padding: 1rem; display: flex; justify-content: center; align-items: center; min-height: 190px; }
.ap-thumb .door { width: 90px; }
.ap-thumb .thumb-photo { width: 100%; height: 170px; object-fit: contain; }
.ap-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.ap-body small { color: var(--muted); }
.ap-delete { margin-top: .5rem; background: none; border: 1px solid #d9b2ac; color: #a3362a; border-radius: 6px; padding: .25rem .7rem; font-size: .8rem; cursor: pointer; }
.ap-delete:hover { background: #a3362a; color: #fff; }

/* uploaded product photos on public cards */
.item-card .thumb .thumb-photo { width: 100%; max-height: 220px; object-fit: contain; }

/* door profiles gallery */
.profile-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.profile-card { position: relative; padding: 0; border: 0; background: #2b2b2b; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; box-shadow: 0 6px 16px rgba(74,50,37,.14); }
.profile-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.profile-card:hover img { transform: scale(1.08); }
.profile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .75rem; text-align: left; color: #fff; font-weight: 600; background: linear-gradient(to top, rgba(40,25,15,.8), rgba(40,25,15,0)); }
.profile-modal { border: 0; border-radius: 14px; overflow: hidden; position: relative; }
.profile-modal .btn-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: 1; }
.profile-modal img { width: 100%; max-height: 70vh; object-fit: contain; background: #1d1511; display: block; }
.profile-modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; flex-wrap: wrap; }
.style-heading { font-size: 1.3rem; font-weight: 600; color: var(--brown); margin: 1.6rem 0 0; }
.admin-note { color: var(--muted); margin: -.5rem 0 1rem; font-size: .9rem; }

/* header right-hand account button (kept apart from the page tabs) */
.nav-account { display: flex; align-items: center; gap: .5rem; margin-left: 1.25rem; }
.btn-account { display: inline-block; padding: .45rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; border: 1.5px solid var(--accent); color: var(--accent); transition: background .2s, color .2s, transform .2s; }
.btn-account:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-account.solid { background: var(--accent); color: #fff; }
.btn-account.solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
@media (max-width: 991px) { .nav-account { margin: .75rem 0 .25rem 1rem; } }

/* text brand (replaces the logo image in the header and on the login card), original colours */

/* interactive colour picker on Home */
.colour-picker { display: grid; gap: 2rem; grid-template-columns: minmax(180px, 280px) 1fr; align-items: center; }
.colour-preview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; justify-content: center; }
.colour-preview .door { width: 150px; transition: background-color .35s ease; }
.colour-side .btn-main { margin-top: .5rem; }
.colour-chosen { color: var(--muted); margin: 1rem 0 .5rem; }
button.swatch { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
button.swatch:focus-visible i { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .colour-picker { grid-template-columns: 1fr; } }

/* admin sidebar wordmark, drawn from text to echo the logo: wood-grain W with a door stroke,
   WOODLAND in brown serif, spaced tagline between two rules. All centred. */
.admin-brand { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: 14px; padding: 1rem .75rem .9rem; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.mono { position: relative; display: inline-flex; align-items: flex-end; height: 3.6rem; margin-bottom: .45rem; }
.mono-w {
    font-family: Georgia, "Times New Roman", serif; font-weight: 900; font-size: 4rem; line-height: .9;
    background:
        repeating-linear-gradient(100deg, rgba(120,70,25,.35) 0 2px, rgba(120,70,25,0) 2px 6px),
        linear-gradient(180deg, #f1c283 0%, #e0a766 55%, #c9833f 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 #b87333);
}
.mono-door {
    position: relative; width: 1.15rem; height: 3.2rem; margin-left: -.55rem; transform: skewX(-9deg);
    background: linear-gradient(180deg, #c98a4c, #a96a30); border: 1px solid #8f5726; border-radius: 1px;
}
.mono-door::before, .mono-door::after { content: ""; position: absolute; left: 20%; right: 20%; border: 1px solid #e8b886; background: #d9a066; }
.mono-door::before { top: 10%; height: 36%; }
.mono-door::after { bottom: 10%; height: 36%; }
.brand-word { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.55rem; letter-spacing: .08em; line-height: 1; color: var(--brown); }
.brand-tag { display: flex; align-items: center; gap: .4rem; width: 100%; margin-top: .5rem; font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: #9c8570; white-space: nowrap; }
.brand-tag::before, .brand-tag::after { content: ""; flex: 1; height: 1px; background: #cdbca9; }
@media (max-width: 767px) { .admin-brand { padding: .5rem .8rem; } .mono { height: 2.2rem; margin: 0; } .mono-w { font-size: 2.4rem; } .mono-door { height: 2rem; width: .75rem; } .brand-word { font-size: 1rem; } .brand-tag { display: none; } }

/* text logo: the original wide-spaced serif wordmark with a gold tagline */
.site-brand { font-family: "Times New Roman", Times, serif; font-weight: 800; font-size: 34px; letter-spacing: 7px; line-height: 1.1; color: #7b4b2a; text-align: center; white-space: nowrap; }
.site-brand:hover { color: #7b4b2a; }
.site-brand small { display: block; margin-top: 6px; font-family: "Segoe UI", system-ui, Arial, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px; line-height: 1.4; color: #c89b5c; text-transform: uppercase; }
@media (max-width: 991px) { .site-brand { font-size: 30px; letter-spacing: 6px; } .site-brand small { font-size: 9.5px; letter-spacing: 2px; } }
@media (max-width: 575px) { .site-brand { font-size: 25px; letter-spacing: 5px; } .site-brand small { font-size: 8px; letter-spacing: 1.6px; } }
@media (max-width: 380px) { .site-brand { font-size: 22px; letter-spacing: 4px; } .site-brand small { font-size: 7px; letter-spacing: 1.2px; } }

/* admin photo collections */
.pc-new { max-width: 560px; margin-bottom: 1.5rem; }
.pc-new-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.pc-new-form .form-input { flex: 1; min-width: 200px; }
.pc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin-top: 1.5rem; }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pc-head h2 { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--brown); }
.pc-head small { color: var(--muted); }
.pc-actions { display: flex; gap: .5rem; align-items: center; }
.pc-actions form { margin: 0; }
.ap-view { border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; padding: .25rem .8rem; font-size: .8rem; }
.ap-view:hover { background: var(--accent); color: #fff; }
.pc-add { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); align-items: center; }
a.stat-link { display: block; transition: transform .2s, box-shadow .2s; }
a.stat-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(74,50,37,.12); }

/* photo collection viewer */
.viewer { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.viewer img { width: 100%; max-height: 520px; object-fit: cover; display: block; transition: opacity .3s ease, transform .5s ease; }
.viewer img.swap { opacity: .25; transform: scale(1.02); }
.viewer-tag { position: absolute; left: 1rem; bottom: 1rem; background: rgba(60,38,24,.85); color: #fff; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }
.viewer-sub { font-size: 1rem; font-weight: 600; color: var(--brown); margin: 1.4rem 0 .7rem; }
.thumb-strip { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.thumb-btn { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: #ddd; transition: transform .2s, border-color .2s; }
.thumb-btn:hover { transform: translateY(-2px); }
.thumb-btn.on { border-color: var(--accent); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn i { position: absolute; right: 5px; bottom: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.swatch-inline-left { justify-content: flex-start; }
#vSwatches .swatch i { width: 38px; height: 38px; }

/* small screens: top strip, menu touch targets, spacing */
@media (max-width: 575px) {
    .topstrip .container { justify-content: center; }
    .topstrip .container > span:first-child { display: none; }
    .topstrip a { margin: 0 .6rem; }
    .page-head { padding-top: 1.75rem; padding-bottom: 1rem; }
    .page-head h1 { font-size: 2.1rem; }
    .section-title { font-size: 1.7rem; }
    .page-hero { padding: 3rem 0 2.5rem; }
    .page-hero h1 { font-size: 2.3rem; }
    .tier-hero h1 { font-size: 2.1rem; }
    .hero-slide { height: 52vh; }
    .hero-caption h2 { font-size: 1.9rem; }
    .stat-item b { font-size: 1.7rem; }
}
@media (max-width: 767px) {
    .site-header .nav-link { padding: .75rem 1rem; }
    .site-header .nav-link::after { bottom: .4rem; }
    .navbar-collapse { padding-bottom: .5rem; }
}

@media (max-width: 767px) {
    /* photo viewer: one scrolling row of thumbnails instead of a tall grid, so the options stay close */
    .thumb-strip { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .4rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
    .thumb-btn { flex: 0 0 76px; width: 76px; height: 76px; scroll-snap-align: start; }
    .viewer img { max-height: 320px; }
}

@media (max-width: 767px) {
    /* admin: compact top bar (brand + logout), scrolling nav row, 2-up stat cards */
    .admin-side { padding: .75rem 1rem; gap: .6rem; }
    .admin-brand { order: 1; }
    .admin-logout { order: 2; margin-left: auto; padding: .4rem .9rem; font-size: .85rem; }
    .admin-nav { order: 3; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: .25rem; }
    .admin-nav a { white-space: nowrap; padding: .45rem .8rem; font-size: .9rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stat { padding: .75rem 1rem; }
    .stat b { font-size: 1.6rem; }
    .admin-title { font-size: 1.4rem; }
    .enq header { flex-direction: column; gap: .25rem; }
    .enq header a { margin-left: 0; margin-right: .75rem; }
}

/* the menu collapses below 992px (phones and tablets): same touch-friendly rules as phones */
@media (min-width: 768px) and (max-width: 991px) {
    .site-header .nav-link { padding: .75rem 1rem; }
    .site-header .nav-link::after { bottom: .4rem; }
    .navbar-collapse { padding-bottom: .5rem; }
}

/* Colours page */
.finish-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.finish-nav .chip { text-decoration: none; padding: .35rem 1rem; font-size: .9rem; }
.finish-section { margin-bottom: 3rem; scroll-margin-top: 5.5rem; }
.finish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--wood); padding-bottom: .6rem; margin-bottom: 1.25rem; }
.finish-head h2 { font-size: 1.75rem; font-weight: 600; margin: 0; color: var(--brown); }
.finish-count { color: var(--muted); font-size: .85rem; }
.finish-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.finish-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.finish-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(74,50,37,.14); }
.finish-chip { display: block; aspect-ratio: 4 / 3; background: var(--c); border-bottom: 1px solid rgba(0,0,0,.08); }
.finish-name { padding: .7rem .9rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.finish-empty { background: var(--bg); border: 1px dashed #d9c8b4; border-radius: 12px; padding: 1.5rem; color: var(--muted); }
.finish-empty p { margin: 0 0 .4rem; }
.finish-empty a { color: var(--accent); font-weight: 600; }

/* Products: the seven door style categories */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 2.6rem 1.2rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(74,50,37,.14); border-color: var(--wood); }
.cat-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cat-num { position: absolute; top: .9rem; left: 1.2rem; font-size: .8rem; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.cat-name { position: relative; font-size: 1.25rem; font-weight: 600; color: var(--brown); line-height: 1.25; }
.cat-meta { position: relative; margin-top: .3rem; font-size: .82rem; color: var(--muted); }
.cat-card::after { content: "\2192"; position: absolute; right: 1.1rem; top: .8rem; color: var(--accent); transition: transform .2s; }
.cat-card:hover::after { transform: translateX(4px); }

/* Products: specific styles inside a category */
.style-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.style-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.style-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.style-card h3 { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--brown); }
.style-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.style-card .btn-line { margin-top: auto; align-self: flex-start; font-size: .85rem; padding: .45rem 1rem; }
@media (max-width: 575px) {
    .cat-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .cat-card { min-height: 130px; padding: 2.4rem .9rem .9rem; }
    .cat-name { font-size: 1rem; }
    .finish-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Business hours rows (Contact panel) */
.hours-line { display: flex; justify-content: space-between; gap: 1.25rem; font-size: .95rem; }
.hours-line + .hours-line { margin-top: .15rem; }
.c-row > span:last-child { flex: 1; min-width: 0; }
.c-row .hours-line { max-width: 300px; }
.hours-line span:last-child { white-space: nowrap; }

/* Colours: admin-added swatch images, and the admin forms */
.finish-img { width: 100%; object-fit: cover; display: block; }
.admin-swatch { width: 90px; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); }
.color-input { padding: .2rem; height: 44px; max-width: 120px; cursor: pointer; }

/* Style varieties */
.variety-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .4rem; }
.variety-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem .15rem .2rem; color: var(--ink); }
.variety-chip:not(:has(img)) { padding-left: .65rem; }
.variety-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.variety-admin { margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed var(--line); }
.variety-title { display: block; color: var(--muted); margin-bottom: .25rem; }
.variety-row { display: flex; align-items: center; gap: .4rem; margin: .15rem 0; font-size: .82rem; }
.variety-row img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }
.variety-row span { flex: 1; }
.variety-x { border: 0; background: none; color: #a3362a; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.variety-add summary { cursor: pointer; color: var(--accent); font-size: .82rem; margin-top: .3rem; }
.variety-add form { display: grid; gap: .4rem; margin-top: .4rem; }
.variety-add .form-input { padding: .35rem .5rem; font-size: .85rem; }
.variety-add .btn-main { padding: .4rem .8rem; font-size: .85rem; }

/* Custom sizes */
.size-showcase { margin-top: 0; }
.size-showcase .chip { text-decoration: none; }
.size-admin-form { display: grid; gap: .75rem; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
.size-admin-list { display: grid; gap: .4rem; }
.size-admin-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.size-admin-row form { margin: 0; }
@media (max-width: 767px) { .size-admin-form { grid-template-columns: 1fr 1fr; } .size-admin-form > :first-child, .size-admin-form > button { grid-column: 1 / -1; } }

@media (max-width: 480px) {
    .hours-line { font-size: .86rem; gap: .5rem; }
    .hours-line span:first-child { white-space: nowrap; }
    .contact-panel { padding: 1.5rem 1.25rem; }
}


/* Products page: image-based category cards (the plain .cat-card on Home is unchanged) */
.cat-grid--img { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.cat-card--img { flex: 0 0 calc((100% - 4.5rem) / 4); display: block; padding: 0; min-height: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(74,50,37,.12); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.cat-card--img::after { content: none; }
.cat-card--img:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(74,50,37,.24); border-color: var(--wood); }
.cat-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(150deg, #7b4b2a, #a8642e); }
.cat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.cat-card--img:hover .cat-photo img { transform: scale(1.07); }
.cat-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(35,22,14,.9) 0%, rgba(35,22,14,.45) 36%, rgba(35,22,14,0) 64%); }
.cat-card--img .cat-num { position: absolute; top: .8rem; left: .8rem; background: rgba(35,22,14,.72); color: #fff; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; letter-spacing: .12em; font-weight: 700; }
.cat-arrow { position: absolute; top: .7rem; right: .8rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease; }
.cat-card--img:hover .cat-arrow, .cat-card--img:focus-visible .cat-arrow { opacity: 1; transform: none; }
.cat-title { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; display: flex; flex-direction: column; gap: .3rem; color: #fff; }
.cat-card--img .cat-name { position: static; color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1.2; padding: 0; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.cat-card--img .cat-meta { position: static; margin: 0; color: rgba(255,255,255,.9); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.cat-photo.no-img { background: linear-gradient(150deg, #7b4b2a, #a8642e); }
@media (max-width: 1199px) { .cat-card--img { flex-basis: calc((100% - 3rem) / 3); } }
@media (max-width: 767px) {
    .cat-grid--img { gap: .75rem; }
    .cat-card--img { flex-basis: calc((100% - .75rem) / 2); }
    .cat-photo { aspect-ratio: 1 / 1.15; }
    .cat-card--img .cat-name { font-size: 1.08rem; }
    .cat-title { left: .8rem; right: .8rem; bottom: .8rem; }
    .cat-card--img .cat-meta { font-size: .7rem; }
    .cat-arrow { opacity: 1; transform: none; width: 1.8rem; height: 1.8rem; }
}

/* Category pages: banner and sample cards */
.cat-hero { background-color: #5a3a26; padding: 4rem 0 3.2rem; }
.cat-hero h1 { font-size: 3rem; }
.sample-note { background: var(--bg); border: 1px dashed #d9c8b4; border-radius: 12px; padding: .9rem 1.1rem; color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.sample-note b { color: var(--brown); }
.style-card--sample { position: relative; }
.style-card--sample img { aspect-ratio: 4 / 3; }
.sample-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: rgba(35,22,14,.78); color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
@media (max-width: 575px) { .cat-hero { padding: 2.6rem 0 2.2rem; } .cat-hero h1 { font-size: 2.1rem; } }

/* Footer hours: each day stays on one line (the Hours column sizes to its text, or spans the row on small screens) */
.footer-hours li { white-space: nowrap; }

/* Category cards entrance: slide in from the side the card is on, with a short glow (set by site.js).
   Uses a backwards-filled animation so the normal hover effects work again afterwards. */
.js .cat-anim:not(.in) { opacity: 0; }
.cat-anim.in { animation: catIn .9s cubic-bezier(.2, .75, .2, 1) var(--d, 0ms) backwards; }
.cat-anim.in .cat-photo img { animation: catImgSettle 1.4s cubic-bezier(.2, .75, .2, 1) var(--d, 0ms) backwards; }
.cat-anim.in .cat-title { animation: catTitleUp .8s ease-out calc(var(--d, 0ms) + 350ms) backwards; }
@keyframes catIn {
    0%   { opacity: 0; transform: translateX(var(--from, -90px)) scale(.94); filter: brightness(1.5); }
    55%  { opacity: 1; filter: brightness(1.18); }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes catImgSettle { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes catTitleUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* a soft light sweep across the picture on hover */
.cat-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s ease; pointer-events: none; }
.cat-card--img:hover .cat-photo::after { transform: translateX(120%); }

/* The card entrance slides in from beyond the screen edge: clip it so the page never grows sideways.
   (clip, unlike hidden, creates no scroll area and leaves vertical shadows alone.) */
main { overflow-x: clip; }

/* Style detail page: breadcrumb, gallery, options, lightbox and the enquiry preview modal. */
.style-card-link { display: block; height: 100%; }
.style-card-link .style-card { height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.style-card-link:hover .style-card { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(60,38,24,.14); }
.style-card h3 a:hover { color: var(--accent); }
.style-card .body > a.btn-main { align-self: flex-start; font-size: .85rem; padding: .45rem 1rem; margin-top: .4rem; }
.style-card .body > a.btn-main + .btn-line { margin-top: .35rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: 1.25rem 0 .25rem; font-size: .85rem; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .6; }
.crumbs b { color: var(--brown); font-weight: 600; }

.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; padding-top: 1.25rem; padding-bottom: 3.5rem; align-items: start; }
.pd-gallery { position: sticky; top: 1rem; }
.pd-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); cursor: zoom-in; box-shadow: 0 10px 30px rgba(60,38,24,.1); }
.pd-main img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .5s ease; }
.pd-main:hover img { transform: scale(1.04); }
.pd-zoom { position: absolute; right: .8rem; bottom: .8rem; background: rgba(35,22,14,.75); color: #fff; font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .04em; }
.pd-thumbs { display: flex; gap: .7rem; margin-top: .8rem; flex-wrap: wrap; }
.pd-thumb { width: 84px; height: 84px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: pointer; transition: border-color .2s, transform .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.on { border-color: var(--accent); }

.pd-cat { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pd-info h1 { font-size: 2.6rem; font-weight: 600; line-height: 1.15; color: var(--brown); margin: .35rem 0 .8rem; }
.pd-short { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; }
.pd-options { margin: 0 0 1.75rem; border-top: 1px solid var(--line); }
.pd-options > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pd-options dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .5rem; font-weight: 600; }
.pd-options dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.pd-swatches { display: inline-flex; gap: .4rem; }
.pd-swatches i, .pd-colour i { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pd-more, .pd-link { color: var(--accent); font-weight: 600; font-size: .85rem; }
.pd-more:hover, .pd-link:hover { text-decoration: underline; }
.pd-options .chip { cursor: default; }
.pd-options .chip:hover { border-color: var(--line); color: inherit; }
.pd-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.pd-btn { padding: .9rem 1.9rem; font-size: 1rem; }
.pd-cta .btn-main { box-shadow: 0 8px 20px rgba(168,100,46,.3); }
.pd-cta .btn-line { background: transparent; }
.pd-note { color: var(--muted); font-size: .82rem; margin: .9rem 0 0; }

.pd-sections { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.pd-block p { color: var(--ink); margin: .75rem 0 0; }
.pd-block .pd-muted { color: var(--muted); font-size: .85rem; }
.pd-features { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pd-features li { position: relative; padding-left: 1.6rem; }
.pd-features li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--wood); }

.pd-colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.pd-colour { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; }
.pd-colour i { flex-shrink: 0; width: 34px; height: 34px; }
.pd-finish-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 1.5rem; }
.pd-finish { padding: 1rem 1.1rem; background: var(--bg); border-radius: 10px; border-left: 3px solid var(--wood); display: flex; flex-direction: column; gap: .15rem; }
.pd-finish b { color: var(--brown); }
.pd-finish span { color: var(--muted); font-size: .85rem; }

.lb { position: fixed; inset: 0; z-index: 1100; background: rgba(20,12,8,.92); display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; animation: lbIn .25s ease; }
.lb[hidden], .eq[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb.single .lb-nav { display: none; }

.eq { position: fixed; inset: 0; z-index: 1100; background: rgba(35,22,14,.6); display: flex; padding: 1rem; overflow-y: auto; animation: lbIn .25s ease; }
.eq-card { position: relative; margin: auto; width: 100%; max-width: 620px; background: #fff; border-radius: 16px; padding: 2rem 2rem 1.75rem; border-top: 4px solid var(--wood); box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: eqUp .3s ease; }
.eq-card h2 { font-size: 1.7rem; font-weight: 600; color: var(--brown); margin: 0 0 .25rem; }
.eq-card label { font-size: .82rem; color: var(--muted); margin-bottom: .3rem; display: block; }
.eq-for { color: var(--muted); margin: 0 0 1.25rem; font-size: .92rem; }
.eq-close { position: absolute; top: .7rem; right: .9rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.eq-close:hover { color: var(--ink); }
.eq-status { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 8px; background: #fff6e8; border: 1px solid var(--wood); font-size: .86rem; color: var(--ink); }
.eq-status a { color: var(--accent); font-weight: 600; text-decoration: underline; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes eqUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
    .pd { grid-template-columns: 1fr; gap: 1.75rem; }
    .pd-gallery { position: static; }
    .pd-info h1 { font-size: 2.2rem; }
    .pd-sections { grid-template-columns: 1fr; gap: 2rem; }
    .pd-finish-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .pd { padding-bottom: 2.25rem; }
    .pd-info h1 { font-size: 1.9rem; }
    .pd-thumb { width: 68px; height: 68px; }
    .pd-cta .pd-btn { flex: 1 1 100%; text-align: center; }
    .pd-finish-row { grid-template-columns: 1fr; }
    .eq-card { padding: 1.5rem 1.15rem 1.25rem; }
    .lb { padding: 3.5rem .5rem; }
    .lb-nav { top: auto; bottom: .8rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lb, .eq, .eq-card { animation: none; }
    .pd-main img, .style-card-link .style-card { transition: none; }
}

/* Gallery portfolio: collection card text, photo grid and lightbox caption. */
.cat-desc { font-size: .85rem; line-height: 1.35; color: rgba(255,255,255,.88); }
.g-note { margin: 1.5rem 0 0; text-align: center; color: var(--muted); font-size: .82rem; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 1rem; }
.g-item { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--bg); cursor: zoom-in; box-shadow: 0 4px 14px rgba(60,38,24,.1); transition: transform .3s ease, box-shadow .3s ease; }
.g-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60,38,24,.2); }
.g-item:hover img { transform: scale(1.06); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; text-align: left; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(30,18,10,.75)); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.lb-fig img { max-height: calc(100vh - 9rem); }
.lb-fig figcaption { color: rgba(255,255,255,.88); font-size: .9rem; display: flex; gap: 1rem; align-items: baseline; text-align: center; }
.lb-fig figcaption b { font-weight: 600; opacity: .7; font-size: .8rem; white-space: nowrap; }
@media (max-width: 767px) {
    .g-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: .6rem; }
    .g-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .g-cap { display: none; }
    .lb-fig img { max-height: calc(100vh - 12rem); }
}
@media (prefers-reduced-motion: reduce) { .g-item, .g-item img, .g-cap { transition: none; } }
@media (min-width: 768px) and (max-width: 1199px) { .g-four .cat-card--img { flex-basis: calc((100% - 1.5rem) / 2); } }

/* Custom door selection page and shared loading/validation states. */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pd-main.is-loading { background: linear-gradient(100deg, #f3ece3 30%, #fbf8f3 50%, #f3ece3 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
#selMainImg { aspect-ratio: 5 / 4; object-fit: contain; background: var(--bg); }

.sel-block { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.sel-block:first-of-type { margin-top: 1.2rem; }
.sel-h { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 600; color: var(--brown); margin: 0 0 .8rem; }
.sel-h span { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .82rem; }
.sel-h b { color: var(--ink); font-weight: 600; }

.sel-styles { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sel-style { display: flex; flex-direction: column; gap: .55rem; text-align: left; padding: .6rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sel-style img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 8px; background: var(--bg); }
.sel-style b { display: block; color: var(--brown); font-size: 1rem; }
.sel-style small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; margin-top: .1rem; }
.sel-style:hover { transform: translateY(-2px); border-color: var(--wood); }
.sel-style.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,100,46,.18); }
.sel-style.on b::after { content: " \2713"; color: var(--accent); }

.sel-swatches { display: flex; flex-wrap: wrap; gap: .7rem; }
.sel-swatch { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 82px; padding: .55rem .3rem; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; font: inherit; font-size: .8rem; color: var(--muted); transition: border-color .2s, background .2s; }
.sel-swatch i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sel-swatch:hover { background: var(--bg); }
.eq-pick { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.eq-pick input[type=color] { width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.eq-pick label { margin: 0; font-size: .85rem; color: var(--muted); }
.sel-custom { position: relative; }
.sel-custom input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sel-custom .sel-custom-dot { background: conic-gradient(#e5484d, #f5a524, #f2e34a, #46a758, #3e9bd8, #8e4ec6, #e5484d); }
.sel-custom:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sel-swatch.on { border-color: var(--accent); background: #fff; color: var(--ink); font-weight: 600; }
.sel-swatch.on i { box-shadow: 0 0 0 2px var(--accent); }

.sel-size { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: start; }
.sel-size label { font-size: .82rem; color: var(--muted); margin-bottom: .3rem; display: block; }
.sel-x { color: var(--muted); font-size: 1.2rem; padding-top: 2.25rem; }
.sel-hint { color: var(--muted); font-size: .82rem; margin: .55rem 0 .2rem; }
.sel-err { color: #b3261e; font-size: .82rem; margin: .3rem 0 0; min-height: 0; }
.sel-err:empty { display: none; }
.sel-err--block { margin: .8rem 0 0; font-weight: 600; }
.form-input.is-invalid { border-color: #b3261e; outline-color: #b3261e; background: #fff8f7; }
.form-input.is-locked { background: var(--bg); color: var(--brown); font-weight: 600; cursor: default; }
#selPresets .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#selPresets .chip { cursor: pointer; }

.sel-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.sel-qty button { width: 46px; border: 0; background: var(--bg); font-size: 1.4rem; line-height: 1; color: var(--brown); cursor: pointer; transition: background .2s; }
.sel-qty button:hover { background: var(--wood); color: #fff; }
.sel-qty input { width: 76px; border: 0; text-align: center; font-size: 1.1rem; font-weight: 600; padding: .6rem 0; color: var(--ink); }
.sel-qty input:focus { outline: 2px solid var(--wood); outline-offset: -2px; }

.sel-sum { margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--wood); border-radius: 12px; }
.sel-sum > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.sel-sum > div:last-child { border-bottom: 0; }
.sel-sum dt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.sel-sum dd { margin: 0; font-weight: 600; color: var(--brown); text-align: right; }

.eq-card--wide { max-width: 700px; }
.eq-card input[type=file] { padding: .45rem .6rem; }
.pd-gallery .g-note.text-start { text-align: left; margin-top: .8rem; }

@media (max-width: 575px) {
    .sel-styles { gap: .55rem; }
    .sel-swatch { width: calc((100% - 1.4rem) / 3); }
    .sel-size { gap: .4rem; }
    .sel-qty button { width: 52px; }
}
@media (prefers-reduced-motion: reduce) { .pd-main.is-loading { animation: none; } }

/* Admin: categories and products management. */
.am-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.admin-back { margin: 0 0 .5rem; font-size: .9rem; }
.admin-back a { color: var(--accent); }
.am-sub { font-weight: 400; color: var(--muted); font-size: 1.1rem; }
.am-list { display: grid; gap: .8rem; }
.am-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.am-row.off { opacity: .62; }
.am-thumb { width: 96px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .72rem; text-align: center; }
.am-thumb img { width: 100%; height: 100%; object-fit: cover; }
.am-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.am-main b { color: var(--brown); overflow-wrap: anywhere; }
.am-main small { color: var(--muted); }
.am-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; }
.am-inline { display: inline-flex; gap: .3rem; margin: 0; align-items: center; }
.am-del { margin-top: 0; }
.am-badge { display: inline-block; background: var(--wood); color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 999px; font-weight: 700; vertical-align: middle; }
.am-icon { width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--brown); cursor: pointer; font-size: 1rem; line-height: 1; }
.am-icon:hover { background: var(--bg); border-color: var(--accent); }
.am-switch { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .7rem .2rem .25rem; font-size: .8rem; color: var(--muted); cursor: pointer; }
.am-switch span { width: 2rem; height: 1.1rem; border-radius: 999px; background: #cfc4b8; position: relative; transition: background .2s; }
.am-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.1rem - 4px); height: calc(1.1rem - 4px); border-radius: 50%; background: #fff; transition: transform .2s; }
.am-switch.on { color: #215c2a; border-color: #bfdcc3; }
.am-switch.on span { background: #4f9a5a; }
.am-switch.on span::after { transform: translateX(.9rem); }
.am-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 1rem; }
.am-filter .form-input { width: auto; min-width: 150px; }
.am-clear { color: var(--accent); font-size: .9rem; }
.am-avail .form-input { padding: .25rem .5rem; font-size: .82rem; width: auto; margin-top: .3rem; }
.am-form { max-width: 880px; }
.am-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.am-check { display: flex !important; align-items: center; gap: .5rem; font-size: .95rem !important; color: var(--ink) !important; }
.am-buttons { display: flex; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.am-preview { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: start; }
.am-preview img { width: 120px; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.am-preview img[hidden] { display: block; visibility: hidden; }
.am-picks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.am-picks img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.am-colour-group { margin: .4rem 0 .8rem; }
.am-colour-group small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.am-colours { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.am-colour { display: inline-flex !important; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem .2rem .3rem; font-size: .85rem !important; color: var(--ink) !important; cursor: pointer; margin: 0 !important; background: #fff; }
.am-colour i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: block; }
.am-colour:has(input:checked) { border-color: var(--accent); background: #fff6ea; }
.am-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.am-img { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; }
.am-img.main { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(168,100,46,.15); }
.am-img-pic { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg); }
.am-img-pic img { width: 100%; height: 100%; object-fit: cover; }
.am-img-pic .am-badge { position: absolute; top: .5rem; left: .5rem; }
.am-caption { display: flex; gap: .3rem; margin: 0; }
.am-caption .form-input { padding: .3rem .5rem; font-size: .85rem; }
.am-img-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.am-replace { display: flex; flex-direction: column; gap: .35rem; border-top: 1px dashed var(--line); padding-top: .6rem; margin: 0; }
.am-replace label { font-size: .75rem; color: var(--muted); margin: 0; }
.am-replace .form-input { font-size: .8rem; padding: .3rem; }
.am-replace .btn-line { padding: .3rem .8rem; font-size: .85rem; align-self: flex-start; }
.am-add-images { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; }
.am-add-images label { margin: 0; font-weight: 600; color: var(--brown); }
.am-add-images .form-input { width: auto; flex: 1; min-width: 200px; }
@media (max-width: 767px) {
    .am-row { grid-template-columns: 72px 1fr; }
    .am-thumb { width: 72px; height: 64px; }
    .am-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .am-preview { grid-template-columns: 1fr; }
    .am-filter .form-input { width: 100%; }
}

/* Admin: colours and finish types. */
.am-row--text { grid-template-columns: 1fr auto; }
.am-row--colour { grid-template-columns: 64px 1fr auto; }
.am-swatch { width: 64px; height: 64px; border-radius: 50%; padding: 0; background: #fff; border: 1px solid var(--line); }
.am-swatch img { border-radius: 50%; }
.am-swatch-fill { display: block; width: 100%; height: 100%; }
.am-buttons--top { margin-top: 0; }
.am-preview--small { grid-template-columns: 84px 1fr; }
.am-preview--small img { width: 84px; height: 84px; border-radius: 50%; }
@media (max-width: 767px) {
    .am-row--text { grid-template-columns: 1fr; }
    .am-row--colour { grid-template-columns: 56px 1fr; }
    .am-swatch { width: 56px; height: 56px; }
}

/* Admin: gallery and banners. */
.am-row--banner { grid-template-columns: 160px 1fr auto; }
.am-thumb--wide { width: 160px; height: 70px; }
.am-preview--wide { grid-template-columns: 240px 1fr; }
.am-preview--wide img { width: 240px; height: 100px; border-radius: 8px; }
.am-img.off { opacity: .6; }
.am-badge--hidden { background: #7a6a5e; left: auto !important; right: .5rem; }
@media (max-width: 767px) {
    .am-row--banner { grid-template-columns: 96px 1fr; }
    .am-thumb--wide { width: 96px; height: 56px; }
    .am-preview--wide { grid-template-columns: 1fr; }
    .am-preview--wide img { width: 100%; height: auto; max-height: 140px; }
}

.am-sub-link { margin-left: .8rem; font-size: .8rem; vertical-align: middle; }

/* Admin: enquiries. */
.am-status-tabs { margin: 0 0 1rem; }
.am-status-tabs .chip b { margin-left: .3rem; font-weight: 600; opacity: .75; }
.am-status { display: inline-block; margin-left: .4rem; padding: .1rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; background: #eee; color: #555; }
.st-new { background: #fde8d2; color: #8a4a12; }
.st-contacted { background: #dfeaf7; color: #1f4a7a; }
.st-quoted { background: #ece2f6; color: #5a3a82; }
.st-closed { background: #e0eee2; color: #2d5e35; }
.am-enq .enq-tags { margin: .35rem 0 .2rem; }
.am-snippet { color: var(--ink) !important; }
.am-status-select { width: auto; padding: .25rem .5rem; font-size: .82rem; }
.am-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.2rem 0; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.am-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
.am-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; }
.am-dl > div { min-width: 0; }
.am-dl dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.am-dl dd { margin: 0; overflow-wrap: anywhere; }
.am-message { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: .8rem 1rem; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 991px) { .am-detail { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .am-dl { grid-template-columns: 1fr; } }

/* Change password page. */
.am-narrow { max-width: 460px; }
.pw-field { position: relative; }
.pw-field .form-input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent); font-size: .8rem; font-weight: 600; cursor: pointer; padding: .3rem .5rem; }
.pw-rules { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--muted); }
.pw-rules li::before { content: "\25CB"; margin-right: .35rem; }
.pw-rules li.ok { color: #215c2a; }
.pw-rules li.ok::before { content: "\2713"; }
.admin-pw { color: #f1e4d6; text-align: center; padding: .45rem .75rem; border-radius: 6px; font-size: .9rem; border: 1px solid transparent; }
.admin-pw:hover, .admin-pw.active { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 767px) { .admin-pw { order: 2; padding: .4rem .7rem; font-size: .85rem; } }
