/* ═══════════════════════════════════════════════════════════════
   PRACTICAL ARCHIVE — practical-archive.css
═══════════════════════════════════════════════════════════════ */

.practical-archive {
    max-width: 1400px;
    margin: 0 auto;

    font-family: 'Noah Text', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.pa-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.pa-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pa-count {
    font-size: 14px;
    color: #747971;
    flex-shrink: 0;
}

.pa-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pa-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    color: #111;
    text-decoration: none;
    transition: border-color 0.15s;
}

.pa-chip:hover { border-color: #d35228; }
.pa-chip-x { color: #b0ada8; font-size: 13px; line-height: 1; }
.pa-clear-all { font-size: 11px; font-weight: 700; color: #d35228; text-decoration: none; }

.pa-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pa-sort-form { display: flex; align-items: center; gap: 6px; }
.pa-sort-label { font-size: 14px; color: #747971; }
.pa-sort-select {
    font-size: 14px;
    color: #111;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 5px 10px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.pa-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 0.5px solid rgba(0,0,0,0.14);
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.pa-mobile-filter-btn:hover { background: #f5f2ec; }

/* ── Body layout ─────────────────────────────────────────────── */
.pa-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.pa-sidebar {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.pa-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
}

.pa-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.pa-sidebar-clear {
    font-size: 10px;
    font-weight: 700;
    color: #d35228;
    text-decoration: none;
    transition: opacity 0.15s;
}

.pa-sidebar-clear:hover { opacity: 0.75; }

.pa-filter-group { border-bottom: 0.5px solid rgba(0,0,0,0.06); }
.pa-filter-group:last-of-type { border-bottom: none; }

.pa-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    cursor: pointer;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.pa-filter-toggle:hover {
    background: #000000;
}

.pa-filter-toggle:active, .pa-filter-toggle:focus {
    background: #d35228 !important;
}

.pa-ftog-icon { transition: transform 0.2s; flex-shrink: 0; }
.pa-filter-group.closed .pa-ftog-icon { transform: rotate(-90deg); }

.pa-filter-body {
    padding: 4px 16px 12px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.pa-filter-group.closed .pa-filter-body {
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}

/* Category list */
.pa-f-cats { display: flex; flex-direction: column; gap: 2px; }

.pa-f-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: #111;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: color 0.15s;
}

.pa-f-cat:hover { color: #d35228; }
.pa-f-cat.on { color: #d35228; font-weight: 700; }
.pa-f-cat-count { font-size: 14px; color: #b0ada8; }

/* Colour swatches */
.pa-f-swatches { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }

.pa-f-swatch-wrap { display: inline-block; cursor: pointer; }
.pa-f-swatch-wrap input { display: none; }

.pa-f-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    display: block;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pa-f-swatch:hover { transform: scale(1.1); }
.pa-f-swatch.on { box-shadow: 0 0 0 2.5px #111; transform: scale(1.15); }

/* Size pills */
.pa-f-sizes { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 4px; }

.pa-f-sz-wrap { display: inline-block; cursor: pointer; }
.pa-f-sz-wrap input { display: none; }

.pa-f-sz {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 5px;
    border: 0.5px solid rgba(0,0,0,0.12);
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.pa-f-sz:hover { border-color: #111; }
.pa-f-sz.on { background: #111; color: #fff; border-color: #111; }

/* Filter footer */
.pa-filter-footer { padding: 12px 16px; }

.pa-apply-btn {
    display: block;
    width: 100%;

    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    line-height: 38px;
}

.pa-apply-btn:hover { background: #d35228; color: #fff; }

/* ── Product grid ────────────────────────────────────────────── */
.pa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Product card ────────────────────────────────────────────── */
.pa-card {
    background: #fff;
    border-radius: 10px;
    border: 0.5px solid rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.pa-card:hover { border-color: rgba(0,0,0,0.16); }

.pa-card-img {
    aspect-ratio: 1;
    background: #F2F3F0;
    position: relative;
    overflow: hidden;
}

.pa-card-img > a { display: block; width: 100%; height: 100%; }

.pa-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pa-card:hover .pa-card-photo { transform: scale(1.04); }

/* Price pill */
.pa-price-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(240,237,231,0.92);
    backdrop-filter: blur(4px);
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #111;
}

.pa-price-pill del { color: #b0ada8; font-size: 10px; }
.pa-price-pill ins { text-decoration: none; }

/* Bundle toggle */
.pa-bundle-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    background: rgba(240,237,231,0.92) ;
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.pa-bt-opt {
    padding: 4px 9px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    color: #747971;
    border: none;
    background: transparent;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.pa-bt-opt:hover {
    background: transparent;
    color:#d35228;
}

.pa-bt-opt.on {
    background: #111;
    color: #fff;
    border-radius: 999px;
}

.pa-bt-bundle.on {
    background: #d35228;
    color: #fff;
}

/* Card body */
.pa-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.pa-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    text-decoration: none;
    display: block;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.pa-card-name:hover { color: #d35228; }

.pa-card-swatches { display: flex; gap: 4px; flex-wrap: wrap; }

.pa-card-sw {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    display: block;
    cursor: pointer;
    transition: transform 0.15s;
}

.pa-card-sw:hover { transform: scale(1.15); }
.pa-card-sw.active { box-shadow: 0 0 0 2px #111; }

.pa-card-cta {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: 0.5px solid rgba(0,0,0,0.18);
    border-radius: 7px;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
    margin-top: auto;
    font-family: inherit;
}

.pa-card-cta:hover { background: #111; color: #fff; border-color: #111; }

/* No results */
.pa-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
}

.pa-no-results p { font-size: 14px; color: #747971; margin-bottom: 16px; }

/* Load more */
.pa-load-more-wrap { text-align: center; margin-top: 28px; }

.pa-load-more {
    padding: 10px 28px;
    border: 0.5px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.pa-load-more:hover { background: #111; color: #fff; }
.pa-load-more:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Bundle bottom sheet ──────────────────────────────────────── */
.pa-sheet-ov {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: background 0.28s;
}

.pa-sheet-ov.open {
    background: rgba(0,0,0,0.5);
    pointer-events: all;
}

.pa-sheet {
    background: #fff;
    width: 100%;
    max-width: 540px;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding-bottom: 32px;
}

.pa-sheet-ov.open .pa-sheet { transform: translateY(0); }

.pa-sheet-handle {
    width: 36px;
    height: 4px;
    background: #e0ddd8;
    border-radius: 2px;
    margin: 12px auto 16px;
}

.pa-sheet-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f2ec;
    color: #111;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-sheet-head {
    padding: 0 20px 14px;
    border-bottom: 0.5px solid #f0ede7;
}

.pa-sheet-prod {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.pa-sheet-sub { font-size: 11px; color: #747971; }

.pa-sheet-tiers {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tier card */
.pa-tier {
    border: 0.5px solid rgba(0,0,0,0.09);
    border-radius: 10px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}

.pa-tier:hover { background: #faf9f7; border-color: rgba(0,0,0,0.16); }
.pa-tier.featured { border-color: #d35228; background: rgba(211,82,40,0.04); }
.pa-tier.featured:hover { background: rgba(211,82,40,0.08); }

.pa-tier-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0ada8;
    display: block;
    margin-bottom: 2px;
}

.pa-tier.featured .pa-tier-label { color: #d35228; }

.pa-tier-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 4px;
    font-family: 'Noah Head', 'Helvetica Neue', Arial, sans-serif;
}

.pa-tier-meta { display: flex; align-items: center; gap: 8px; }
.pa-tier-per { font-size: 11px; color: #747971; }
.pa-tier-save { font-size: 11px; font-weight: 700; color: #d35228; }

.pa-tier-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.pa-tier-orig {
    font-size: 10px;
    color: #b0ada8;
    text-decoration: line-through;
    line-height: 1;
}

.pa-tier-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    font-family: 'Noah', 'Helvetica Neue', Arial, sans-serif;
}

.pa-tier-cta {
    padding: 5px 12px;
    border-radius: 6px;
    border: 0.5px solid rgba(0,0,0,0.14);
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    margin-top: 4px;
    font-family: inherit;
}

.pa-tier-cta:hover { background: #111; color: #fff; }
.pa-tier.featured .pa-tier-cta { border-color: #d35228; color: #d35228; }
.pa-tier.featured .pa-tier-cta:hover { background: #d35228; color: #fff; border-color: #d35228; }

/* ── Mobile filter overlay ───────────────────────────────────── */
.pa-mob-filter-ov {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 100001;
    pointer-events: none;
    transition: background 0.25s;
    display: flex;
    align-items: flex-end;
}

.pa-mob-filter-ov.open {
    background: rgba(0,0,0,0.5);
    pointer-events: all;
}

.pa-mob-filter-panel {
    background: #fff;
    width: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.pa-mob-filter-ov.open .pa-mob-filter-panel { transform: translateY(0); }

.pa-mob-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.pa-mob-filter-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f2ec;
    color: #111;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-mob-filter-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 24px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pa-body { grid-template-columns: 180px 1fr; gap: 16px; }
    .pa-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    

    .pa-body { grid-template-columns: 1fr; }
    .pa-sidebar { display: none; }

    .pa-mobile-filter-btn { display: flex; }
    .pa-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .pa-card-img { aspect-ratio: 3 / 4; }

    .pa-bt-opt { font-size: 8px; padding: 3px 7px; }

    .pa-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pa-toolbar-right { width: 100%; justify-content: space-between; }

    .pa-sheet { max-width: 100%; }
    .pa-mob-filter-panel { max-height: 92vh; }
}

@media (max-width: 480px) {
    .pa-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pa-card-name { font-size: 12px; }
    .pa-price-pill { font-size: 11px; padding: 3px 9px; }
}
