/* ============================================================
   TECP Gallery — archive swatches + hover size panel (Phase 1)
   Values marked TUNABLE are first-pass defaults to refine visually.
   ============================================================ */

/* --- thumbnail wrapper (anchors the size panel to the image) --- */
.tecp-loop-media {
    position: relative;
    overflow: hidden;
    display: block;
}

/* --- hover size panel (glassmorphic bar over the image bottom) --- */
.tecp-loop-size-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 11px 10px;
    /* TUNABLE: translucent dark bar reads over any photo; matches modal aesthetic.
       Switch to rgba(255,255,255,0.12) for a lighter glass if preferred. */
    background: rgba(19, 19, 19, 0.45);
    -webkit-backdrop-filter: blur(1.3px);
    backdrop-filter: blur(1.3px);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 2;
}
li.product:hover .tecp-loop-size-panel,
.product:hover .tecp-loop-size-panel {
    opacity: 1;
    transform: translateY(0);
}
.tecp-loop-size {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
}
.tecp-loop-size.oos {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
}

/* --- colour swatch row (under the card, outside the product link) --- */
.tecp-loop-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    /* sit above any theme "clickable card" link overlay */
    position: relative;
    z-index: 5;
}
.tecp-loop-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 0;
    margin: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tecp-loop-swatch:hover {
    transform: scale(1.12);
}
.tecp-loop-swatch.active {
    /* inner white ring + outer dark ring marks the selected colour */
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.65);
}
