/* TCC Store — Classic Navy; responsive width correction. */
.tcc-store {
    --navy:#12356d;
    --ink:#172e50;
    --muted:#627186;
    --line:#dce4ef;
    display:block;
    width:100%;
    min-width:0;
    max-width:1200px;
    box-sizing:border-box;
    grid-column:1 / -1;
    justify-self:stretch;
    flex:1 1 auto;
    color:var(--ink);
    margin:24px auto 60px;
    padding:0 20px;
    font:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.tcc-store *,.tcc-store *::before,.tcc-store *::after {
    box-sizing:border-box;
}
.tcc-store h1 {
    font-size:clamp(24px,3vw,34px);
    line-height:1.2;
    letter-spacing:-.7px;
    margin:6px 0 14px;
}
.tcc-store h2 {
    font-size:20px;
    line-height:1.4;
}
.tcc-store h3 {
    font-size:17px;
}
.tcc-store a {
    color:var(--navy);
}
.st-nav {
    width:100%;
    min-width:0;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:10px;
    padding:18px;
    background:#f1f4f9;
    border:1px solid var(--line);
    border-top:4px solid var(--navy);
    border-radius:0 0 12px 12px;
    margin-bottom:32px;
}
.st-nav a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex:0 1 auto;
    white-space:nowrap;
    padding:11px 18px;
    border:1px solid #d8e1ee;
    border-radius:7px;
    background:white;
    text-decoration:none;
    color:var(--navy);
    font-weight:600;
}
.st-nav a.active,.st-subnav a.active {
    background:var(--navy);
    border-color:var(--navy);
    color:white;
}
.st-nav a:hover:not(.active) {
    background:#e7edf6;
}
.st-nav i {
    margin-right:0;
    flex-shrink:0;
}
.st-heading {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    margin-bottom:28px;
}
.st-heading p {
    margin:0;
    color:var(--muted);
}
.st-eyebrow {
    font-size:11px;
    letter-spacing:1.7px;
    font-weight:750;
    color:var(--navy)!important;
}
.st-filters {
    display:flex;
    align-items:end;
    gap:14px;
    background:#f5f7fa;
    padding:18px;
    border:1px solid var(--line);
    border-radius:10px;
}
.st-grow {
    flex:1;
}
.tcc-store label {
    display:block;
    font-size:14px;
    font-weight:600;
}
.tcc-store input:not([type=checkbox]),.tcc-store select,.tcc-store textarea {
    display:block;
    width:100%;
    font:inherit;
    color:var(--ink);
    background:white;
    border:1px solid #c9d4e3;
    border-radius:6px;
    padding:10px 12px;
    margin:6px 0 12px;
}
.tcc-store input[type=file] {
    font-size:13px;
}
.tcc-store textarea {
    resize:vertical;
    min-height:85px;
}
.st-filters input,.st-filters select {
    margin-bottom:0!important;
}
.tcc-store button,.st-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:10px 17px;
    border:1px solid var(--navy);
    border-radius:6px;
    background:var(--navy);
    color:white!important;
    font:600 14px/1.6 system-ui;
    text-decoration:none!important;
    cursor:pointer;
}
.tcc-store button:hover,.st-button:hover {
    filter:brightness(.93);
}
.tcc-store button.secondary,.st-button.secondary {
    background:white;
    color:var(--navy)!important;
    border-color:#cbd7e8;
}
.tcc-store button:disabled {
    opacity:.5;
    cursor:not-allowed;
}
.tcc-store :focus-visible {
    outline:3px solid #7598cf;
    outline-offset:3px;
}
.st-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}
.st-card {
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    background:white;
    box-shadow:0 4px 18px #102b5106;
    display:flex;
    flex-direction:column;
}
.st-cover {
    display:block;
    background:#edf1f7;
    aspect-ratio:16/10;
    overflow:hidden;
}
.st-cover img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .2s;
}
.st-cover:hover img {
    transform:scale(1.025);
}
.st-card-body {
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}
.st-card h2 {
    margin:12px 0 6px;
}
.st-card h2 a {
    text-decoration:none;
}
.st-card-body>.st-between {
    margin-top:auto;
    padding-top:12px;
}
.st-tag {
    font-size:11px;
    display:inline-block;
    align-self:flex-start;
    letter-spacing:.35px;
    padding:4px 9px;
    border-radius:4px;
    background:#eaf0f8;
    color:#284979;
    font-weight:700;
}
.st-muted,.tcc-store small {
    color:var(--muted);
}
.st-price {
    font-size:24px;
    font-weight:750;
    color:var(--navy);
}
.st-between {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}
.st-actions {
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}
.st-panel {
    background:white;
    border:1px solid var(--line);
    border-radius:10px;
    padding:24px;
    margin:20px 0;
}
.st-panel summary {
    cursor:pointer;
    font-size:17px;
    font-weight:700;
}
.st-panel[open] summary {
    margin-bottom:20px;
}
.st-detail {
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    gap:28px;
    align-items:start;
}
.st-detail aside {
    margin:0;
}
.st-product-image {
    width:100%;
    border-radius:12px;
    border:1px solid var(--line);
}
.st-pre {
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}
.st-form {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px 22px;
}
.st-full {
    grid-column:1/-1;
}
.st-check {
    display:flex!important;
    gap:10px;
    align-items:flex-start;
    margin:16px 0;
    font-weight:400!important;
}
.st-check input {
    margin-top:5px;
    flex-shrink:0;
}
.st-price-box {
    display:flex;
    justify-content:space-between;
    gap:15px;
    background:#edf3fb;
    border-radius:8px;
    padding:18px;
}
.st-price-box strong {
    display:block;
}
.st-stats {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin:20px 0;
}
.st-stats>div {
    border:1px solid var(--line);
    padding:20px;
    border-radius:10px;
}
.st-stats strong {
    display:block;
    font-size:27px;
}
.st-stats span {
    font-size:13px;
    color:var(--muted);
}
.st-alert {
    padding:14px 18px;
    border-radius:7px;
    background:#edf3fb;
    color:#284567;
    border:1px solid #d7e3f3;
    margin:18px 0;
}
.st-error {
    background:#fff1f0;
    color:#9c2525;
    border-color:#edcccc;
}
.st-success {
    background:#edf8f1;
    color:#286445;
    border-color:#cce5d7;
}
.st-empty {
    padding:65px 24px;
    text-align:center;
    border:1px dashed #c5d2e3;
    border-radius:12px;
    background:#fafbfd;
}
.st-pagination {
    display:flex;
    justify-content:center;
    gap:24px;
    margin:28px 0;
}
.st-table {
    overflow-x:auto;
    margin:16px 0;
    border:1px solid var(--line);
    border-radius:8px;
}
.st-table table {
    width:100%;
    border-collapse:collapse;
    min-width:620px;
}
.st-table th {
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    background:#f1f4f9;
    color:#53657e;
}
.st-table td,.st-table th {
    padding:14px 16px;
    text-align:left;
    border-bottom:1px solid var(--line);
    vertical-align:top;
}
.st-table tr:last-child td {
    border:0;
}
.st-review {
    display:grid;
    grid-template-columns:200px 1fr;
    gap:24px;
}
.st-review img {
    width:100%;
    border-radius:8px;
}
.st-subnav {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0;
}
.st-subnav a {
    padding:7px 13px;
    border:1px solid var(--line);
    border-radius:5px;
    text-decoration:none;
}
.tcc-store hr {
    border:0;
    border-top:1px solid var(--line);
    margin:24px 0;
}
@media(max-width:950px) {
    .st-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .st-filters {
        flex-wrap:wrap;
    }
    .st-filters .st-grow {
        flex-basis:100%;
    }
}
@media(max-width:640px) {
    .tcc-store {
        padding:0 12px;
    }
    .st-nav {
        gap:7px;
        padding:10px;
    }
    .st-nav a {
        flex:1 1 160px;
        white-space:normal;
        text-align:center;
        font-size:13px;
        padding:10px;
    }
    .st-heading,.st-between {
        align-items:flex-start;
        flex-direction:column;
    }
    .st-grid,.st-detail,.st-form,.st-stats,.st-review {
        grid-template-columns:1fr;
    }
    .st-price-box {
        flex-wrap:wrap;
    }
    .st-panel {
        padding:18px;
    }
    .st-filters label {
        width:100%;
    }
    .st-actions {
        align-items:stretch;
    }
    .st-review img {
        max-width:260px;
    }
}
/* Prevent content and form controls from forcing narrow/overflowing columns. */
.tcc-store > *, .tcc-store .st-detail > *, .tcc-store .st-form > *,
.tcc-store .st-grid > *, .tcc-store .st-stats > *, .tcc-store .st-review > * {
    min-width:0;
}
.tcc-store .st-alert, .tcc-store .st-panel, .tcc-store .st-empty,
.tcc-store .st-table, .tcc-store .st-filters {
    width:100%;
    max-width:100%;
}
.tcc-store .st-table {
    display:block;
}
.tcc-store .st-card h2, .tcc-store .st-detail h1 {
    overflow-wrap:anywhere;
}
.tcc-store input[type=file] {
    min-width:0;
    max-width:100%;
}
.tcc-store [hidden] {
    display:none !important;
}
@media (prefers-reduced-motion: reduce) {
    .tcc-store .st-cover img {
        transition:none;
    }
}
/* Three-image galleries and seller selections. Scoped to the Store. */
.tcc-store .st-gallery { min-width:0; }
.tcc-store .st-gallery-open { display:block; }
.tcc-store .st-gallery .st-product-image {
    display:block; width:100%; max-width:100%; height:auto;
    aspect-ratio:4/3; object-fit:contain; background:#fff;
}
.tcc-store .st-gallery-thumbs {
    display:flex; flex-wrap:wrap; gap:8px; margin-top:12px;
}
.tcc-store .st-gallery-thumb {
    display:flex; flex-direction:column; align-items:center;
    flex:0 1 96px; min-width:0; padding:5px; border:2px solid var(--line);
    border-radius:7px; background:#fff; text-decoration:none; font-size:12px;
}
.tcc-store .st-gallery-thumb[aria-current=true] {
    border-color:var(--navy); background:#edf3fb; font-weight:700;
}
.tcc-store .st-gallery-thumb img {
    display:block; width:100%; height:56px; object-fit:contain; border-radius:3px;
}
.tcc-store .st-gallery-caption {
    font-size:12px; color:var(--muted); margin:8px 0 0;
}
.tcc-store .st-review { grid-template-columns:minmax(0,280px) minmax(0,1fr); }
.tcc-store .st-image-fields { min-width:0; margin:0; padding:0; border:0; }
.tcc-store .st-image-fields legend { font-size:16px; font-weight:650; margin-bottom:6px; }
.tcc-store .st-image-upload-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.tcc-store .st-image-upload { min-width:0; padding:14px; background:#f8fafd; border:1px solid var(--line); border-radius:8px; }
.tcc-store .st-upload-preview {
    display:flex; align-items:center; justify-content:center; width:100%;
    height:150px; object-fit:contain; border:1px dashed #c5d2e3; border-radius:6px;
    background:#fff; color:var(--muted); font-size:13px;
}
.tcc-store .st-upload-status { font-size:12px; margin:8px 0; overflow-wrap:anywhere; }
.tcc-store .st-upload-error { color:#9c2525; }
@media(max-width:800px) { .tcc-store .st-image-upload-grid { grid-template-columns:1fr; } }
@media(max-width:640px) {
    .tcc-store .st-review { grid-template-columns:1fr; }
    .tcc-store .st-gallery img { max-width:100%; }
}
