﻿/* =============================================
   Hero banner
   ============================================= */

.materials-hero-banner {
    padding: 28px 0 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #ebebeb;
}

.materials-hero-banner__title {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--syd-text-dark, #363e4c);
    line-height: 1.2;
}

.materials-hero-banner__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--syd-text-body, #424242);
    line-height: 1.6;
    max-width: 680px;
}

/* =============================================
   Global search
   ============================================= */

.materials-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 24px 0 24px;
}

.materials-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.materials-search-input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

    .materials-search-input:focus {
        border-color: var(--syd-primary, #0071b9);
        box-shadow: 0 0 0 3px rgba(0, 113, 185, 0.15);
    }

.materials-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
}

    .materials-search-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.materials-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}

.search-result__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--syd-bg-light, #f4f4f4);
    transition: background 0.15s ease;
}

    .search-result__item:last-child {
        border-bottom: none;
    }

    .search-result__item:hover,
    .search-result__item:focus {
        background: #f7f7f7;
        outline: none;
    }

.search-result__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--syd-bg-light, #f4f4f4);
}

.search-result__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.search-result__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-result__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--syd-text-dark, #363e4c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__parent {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__empty {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
}

/* =============================================
   Committed search — tile results
   ============================================= */

.materials-search-tiles {
    margin-top: 28px;
}

.search-tiles__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.search-tiles__count {
    margin: 0;
    font-size: 0.95rem;
    color: var(--syd-text-body, #424242);
}

.search-tiles__clear {
    background: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    color: var(--syd-text-body, #424242);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}

.search-tiles__clear:hover {
    border-color: var(--syd-text-body, #424242);
    color: #222;
}

/* Parent material label shown above the type name in search tile cards */
.material-card__parent {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================
   Module container
   ============================================= */

.materials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--syd-font, 'Barlow Condensed', Arial, sans-serif);
}

.materials-hero,
.material-header,
.variant-header,
.thickness-header {
    margin-bottom: 24px;
}

/* Breadcrumbs moved to shared library: .syd-breadcrumbs in syd-components.css */

/* =============================================
   Materials grid + cards
   ============================================= */

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.material-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .material-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.14);
        transform: translateY(-3px);
    }

.material-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.material-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--syd-bg-light, #f4f4f4);
}

    .material-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .material-card:hover .material-card__image img {
        transform: scale(1.04);
    }

.material-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.material-card__body {
    padding: 18px 20px 20px;
}

.material-card__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--syd-text-dark, #363e4c);
    line-height: 1.3;
}

.material-card__intro {
    margin: 0;
    font-size: 0.9rem;
    color: var(--syd-text-body, #424242);
    line-height: 1.5;
}

/* =============================================
   Material types grid + cards (MaterialView)
   ============================================= */

.material-types-heading {
    margin: 32px 0 16px;
    font-size: 1.4rem;
}

.material-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .type-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.14);
        transform: translateY(-3px);
    }

.type-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.type-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--syd-bg-light, #f4f4f4);
}

    .type-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .type-card:hover .type-card__image img {
        transform: scale(1.04);
    }

.type-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.type-card__body {
    padding: 16px 18px 18px;
}

.type-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--syd-text-dark, #363e4c);
    line-height: 1.3;
}

.type-card__intro {
    margin: 0;
    font-size: 0.875rem;
    color: var(--syd-text-body, #424242);
    line-height: 1.5;
}

.type-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.type-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--syd-bg-light, #f4f4f4);
    color: var(--syd-text-body, #424242);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---- Variant View hero ---- */

.variant-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.variant-hero__image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
}

.variant-hero__image img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.variant-hero__meta {
    flex: 1;
    min-width: 0;
}

.variant-hero__title {
    margin: 0 0 10px;
    font-size: 1.75rem;
    line-height: 1.2;
}

.variant-hero__intro {
    margin: 0 0 14px;
    color: var(--syd-text-body, #424242);
    line-height: 1.6;
}

/* Specs panel: grain direction, default edging */
.variant-specs {
    margin: 14px 0 0;
    padding: 10px 14px;
    background: var(--syd-bg-light, #f4f4f4);
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.variant-specs__item {
    display: flex;
    gap: 5px;
    align-items: center;
}

.variant-specs__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    flex-shrink: 0;
}

.variant-specs__label::after {
    content: ":";
}

.variant-specs__value {
    font-size: 0.875rem;
    color: var(--syd-text-body, #424242);
    font-weight: 500;
}

/* Variant long description */
.variant-body-copy {
    margin: 0 0 32px;
    line-height: 1.7;
    color: var(--syd-text-body, #424242);
}

.thickness-parent,
.variant-parent {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.875rem;
}

/* ---- Thickness section ---- */

.thickness-section-heading {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.thickness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

/* Modern thickness card */
.thickness-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.thickness-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #bbb;
}

.thickness-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.thickness-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.thickness-card__link {
    text-decoration: none;
    color: inherit;
}

.thickness-card__link:hover {
    text-decoration: underline;
}

.thickness-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}

.thickness-card__badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 12px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thickness-card__badge--cts {
    background: #e8f5e9;
    color: #2e7d32;
}

.thickness-card__badge--cnc {
    background: #e3f2fd;
    color: #1565c0;
}

.thickness-card__badge--eb {
    background: #fff3e0;
    color: #e65100;
}

/* Allow dims section to stack when there are multiple rows */
.thickness-card__dims {
    flex-direction: column;
    align-items: stretch;
}

.thickness-card__dims > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.thickness-card__dims {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px 10px;
    background: var(--syd-bg-light, #f4f4f4);
    border-radius: 4px;
}

.thickness-card__dims > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.thickness-card__dims-label {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.thickness-card__dims-value {
    font-size: 0.875rem;
    color: var(--syd-text-body, #424242);
    font-weight: 600;
    text-align: right;
}

/* ── Material Structure trigger & modal ─────────────────────────────── */

.variant-structure {
    margin-top: 14px;
}

.variant-structure__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 35px 16px;
    border: 1px solid #c5a96a;
    border-radius: 8px;
    background: #fff9f0;
    color: #5a3e0e;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.variant-structure__name,
.variant-structure__hint {
    text-decoration: none;
}

.variant-structure__trigger:hover {
    background: #f5e8c5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.variant-structure__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #b8934a;
}

.variant-structure__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.variant-structure__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a3008;
    line-height: 1.3;
}

.variant-structure__hint {
    font-size: 0.75rem;
    color: #9a7a3a;
    font-weight: 400;
}

.variant-structure__arrow {
    flex-shrink: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: #c5a96a;
}

.structure-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
}

.structure-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.structure-modal__card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 520px;
    width: calc(100% - 40px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
}

.structure-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.structure-modal__close:hover {
    color: #000;
}

.structure-modal__title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--syd-text-dark, #363e4c);
}

.structure-modal__img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 6px;
}

.structure-modal__desc {
    font-size: 1rem;
    color: var(--syd-text-body, #424242);
    line-height: 1.5;
    margin: 0;
}

/* ── Add to Cut List button (on thickness cards) ────────────────────── */

.thickness-card__cutlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--syd-primary, #0071b9);
    border-radius: 6px;
    background: #d5e8f0;
    color: var(--syd-primary, #0071b9);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.thickness-card__cutlist-btn:hover {
    background: #c0dde8;
    box-shadow: 0 2px 6px rgba(0, 113, 185, 0.15);
    text-decoration: none;
    color: var(--syd-dark-blue, #2d4c72);
}

/* ── Add to Cut List popup modal ─────────────────────────────────────── */

.cutlist-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
}

.cutlist-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cutlist-modal__card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    padding: 32px 36px;
    max-width: 460px;
    width: calc(100% - 40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cutlist-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.cutlist-modal__close:hover {
    color: #000;
}

.cutlist-modal__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--syd-text-dark, #363e4c);
}

.cutlist-modal__intro {
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: var(--syd-text-body, #424242);
    line-height: 1.5;
}

.cutlist-modal__card .form-row {
    margin-bottom: 14px;
}

.cutlist-modal__card .form-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--syd-text-body, #424242);
    margin-bottom: 4px;
}

.cutlist-modal__card .form-row input[type="text"],
.cutlist-modal__card .form-row input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.cutlist-modal__card .form-row input:focus {
    outline: none;
    border-color: var(--syd-primary, #0071b9);
    box-shadow: 0 0 0 3px rgba(0, 113, 185, 0.15);
}

.cutlist-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.cutlist-modal__btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background 0.15s ease;
}

.cutlist-modal__btn--primary {
    background: var(--syd-primary, #0071b9);
    color: #fff;
}

.cutlist-modal__btn--primary:hover {
    background: var(--syd-dark-blue, #2d4c72);
}

.cutlist-modal__btn--secondary {
    background: none;
    color: #666;
    border: 1px solid #ddd;
    font-weight: 400;
}

.cutlist-modal__btn--secondary:hover {
    background: var(--syd-bg-light, #f4f4f4);
    color: var(--syd-text-body, #424242);
}

/* ── Settings page ───────────────────────────────────────────────────── */

.settings-saved-banner {
    padding: 8px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 16px;
    display: inline-block;
}

.settings-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 28px 0;
}

/* Misc legacy helpers */
.material-body-copy {
    margin-top: 16px;
}

/* Responsive: stack hero on mobile */
@media (max-width: 768px) {
    .variant-hero {
        flex-direction: column;
    }

    .variant-hero__image {
        max-width: 100%;
    }

    .variant-specs__item {
        flex-direction: column;
        gap: 2px;
    }

    .variant-specs__label {
        min-width: unset;
    }
}

/* ── Inline admin bar ────────────────────────────────────────────────── */
.materials-inline-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 28px;
}

.materials-inline-admin a {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    background: var(--syd-bg-light, #f4f4f4);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: var(--syd-text-body, #424242);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.materials-inline-admin a:hover {
    background: #e4e4e4;
    border-color: #b8b8b8;
    color: var(--syd-text-dark, #363e4c);
    text-decoration: none;
}

/* =============================================
   Thickness View — hero
   ============================================= */

.thickness-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.thickness-hero__image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
}

.thickness-hero__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.thickness-hero__meta {
    flex: 1;
    min-width: 0;
}

.thickness-hero__title {
    margin: 0 0 10px;
    font-size: 1.75rem;
    line-height: 1.2;
}

.thickness-hero__intro {
    margin: 0 0 14px;
    color: var(--syd-text-body, #424242);
    line-height: 1.6;
}

/* Badges row (reuses thickness-card__badge classes for colours) */
.thickness-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}

.thickness-hero__badges .thickness-card__badge {
    font-size: 0.78rem;
    padding: 4px 12px;
}

/* Action buttons row */
.thickness-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* Add to Cut List — larger/more prominent than the card version */
.thickness-hero__cutlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    border: 1px solid var(--syd-primary, #0071b9);
    border-radius: 7px;
    background: var(--syd-primary, #0071b9);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.thickness-hero__cutlist-btn:hover {
    background: var(--syd-dark-blue, #2d4c72);
    border-color: var(--syd-dark-blue, #2d4c72);
    box-shadow: 0 3px 10px rgba(0, 113, 185, 0.25);
    text-decoration: none;
    color: #fff;
}

/* Technical datasheet download button */
.thickness-hero__datasheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 7px;
    background: #fff;
    color: var(--syd-text-body, #424242);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.thickness-hero__datasheet-btn:hover {
    background: var(--syd-bg-light, #f4f4f4);
    border-color: #aaa;
    text-decoration: none;
    color: #111;
}

/* =============================================
   Thickness View — specs grid
   ============================================= */

.thickness-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}

.thickness-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
}

.thickness-spec__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
}

.thickness-spec__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--syd-text-dark, #363e4c);
}

/* =============================================
   Thickness View — other thicknesses nav
   ============================================= */

.thickness-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 20px;
    background: var(--syd-bg-light, #f4f4f4);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 28px;
}

.thickness-nav__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    flex-shrink: 0;
}

.thickness-nav__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.thickness-nav__pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: var(--syd-text-body, #424242);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.thickness-nav__pill:hover {
    background: var(--syd-bg-light, #f4f4f4);
    border-color: #aaa;
    text-decoration: none;
    color: #111;
}

.thickness-nav__pill--active {
    background: var(--syd-primary, #0071b9);
    border-color: var(--syd-primary, #0071b9);
    color: #fff;
    cursor: default;
    font-weight: 600;
}

/* =============================================
   Thickness View — edge banding section
   ============================================= */

.thickness-edging {
    padding: 20px 24px;
    background: #fff9f0;
    border: 1px solid #c5a96a;
    border-radius: 8px;
    margin-bottom: 28px;
}

.thickness-edging__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.thickness-edging__icon {
    flex-shrink: 0;
    color: #b8934a;
}

.thickness-edging__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #4a3008;
}

.thickness-edging__intro {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: #6b4c1e;
    line-height: 1.6;
}

.thickness-edging__default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: #fff3e0;
    border: 1px solid #e0b870;
    border-radius: 6px;
}

.thickness-edging__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a7a3a;
    flex-shrink: 0;
}

.thickness-edging__label::after {
    content: ":";
}

.thickness-edging__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a3008;
}

/* =============================================
   Thickness View — responsive
   ============================================= */

@media (max-width: 768px) {
    .thickness-hero {
        flex-direction: column;
    }

    .thickness-hero__image {
        max-width: 100%;
    }

    .thickness-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thickness-hero__actions {
        flex-direction: column;
    }

    .thickness-hero__cutlist-btn,
    .thickness-hero__datasheet-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   Recut trims indicator
   Appears in VariantView (below Structure) and
   ThicknessView (below capability badges).
   ============================================= */

.recut-trims {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 6px 12px 6px 9px;
    background: #f0f7f0;
    border: 1px solid #b8ddb8;
    border-radius: 6px;
    color: #2d6a2d;
    font-size: 0.88rem;
    line-height: 1;
}

.recut-trims__icon {
    flex-shrink: 0;
    color: #3a8a3a;
}

.recut-trims__label {
    font-weight: 500;
}

.recut-trims__value {
    margin-left: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a4a1a;
    letter-spacing: -0.01em;
}

.recut-trims__unit {
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: 1px;
}

/* =============================================
   Accessibility: prefers-reduced-motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    .material-card,
    .type-card,
    .thickness-card,
    .materials-search-input,
    .search-tiles__clear,
    .syd-breadcrumbs li:not([aria-current]) > a,
    .thickness-card__cutlist-btn,
    .thickness-hero__cutlist-btn,
    .thickness-hero__datasheet-btn,
    .thickness-nav__pill {
        transition: none !important;
    }

    .material-card:hover .material-card__image img,
    .type-card:hover .type-card__image img {
        transform: none;
    }
}

/* =============================================
   Accessibility: prefers-color-scheme
   ============================================= */

@media (prefers-color-scheme: dark) {
    /* Dark mode support — variables will be overridden if dark mode palette defined */
    .materials {
        /* Dark theme colors can be implemented here */
    }
}
