/* BlabTown Product Page */

/* ── Color swatches (standard tab) ── */
.bt-color-selector {
    margin-bottom: 20px;
}
.bt-option-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.bt-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bt-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.bt-color-swatch:hover  { transform: scale(1.15); }
.bt-color-swatch.active { border-color: #1a1a1a; transform: scale(1.1); }

/* ── Cross-sell ── */
.bt-cross-sell {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    clear: both;
}
.bt-cross-sell h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}
.bt-cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.bt-cross-sell-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: transform 0.2s;
}
.bt-cross-sell-card:hover { transform: translateY(-2px); }
.bt-cross-sell-card img   { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.bt-cross-sell-card div   { padding: 5px 7px; font-size: 11px; text-align: center; }

/* ── Hide default WC variation dropdown (replaced by swatches) ── */
.woocommerce div.product form.cart .variations { display: none !important; }

/* ── Hide WooCommerce native thumbnail strip (we use color swatches to switch images) ── */
.woocommerce div.product div.images .flex-control-thumbs { display: none !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) { display: none !important; }

/* ── Technique badge (Embroidery, DTG etc) ── */
.bt-technique-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.bt-embroidery-badge {
    background: #fdf4ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* ── Customize Placement bar (button + placement pills) ── */
.bt-customize-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.bt-customize-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    white-space: nowrap;
}
.bt-customize-btn:hover { background: #e63946; }

.bt-placement-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.bt-placement-bar .bt-placement-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ── Configurator image (inside placement tab) ── */
.bt-configurator-image {
    width: 100%;
    max-width: 480px;
    display: block;
    margin: 0 auto 16px;
    border-radius: 10px;
}

/* ── Model Image Gallery Strip ── */
.bt-model-gallery {
    margin-bottom: 18px;
}

.bt-model-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bt-model-thumb-btn {
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 82px;
    text-align: center;
}

.bt-model-thumb-btn img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.bt-model-thumb-btn span {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    padding: 4px 6px 5px;
    letter-spacing: 0.02em;
}

.bt-model-thumb-btn:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.bt-model-thumb-btn.active {
    border-color: var(--bt-brand, #4A6FA5);
    box-shadow: 0 0 0 1px var(--bt-brand, #4A6FA5);
}

.bt-model-thumb-btn.active span {
    color: var(--bt-brand, #4A6FA5);
}

@media (max-width: 600px) {
    .bt-model-thumb-btn,
    .bt-model-thumb-btn img {
        width: 68px;
        height: 68px;
    }
}
