/* =====================================================
   Biottek Product Card — Styles
   File: widget/product-card.css
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Card ───────────────────────────────────────────── */
.bk-product-card {
    background: #fff;
    border: 1.5px solid #C8D8E8;
    border-radius: 18px;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100%;
    box-sizing: border-box;
}

.bk-product-card:hover {
    border-color: #4F91E0;
    box-shadow: 0 6px 28px rgba(13, 46, 110, .09);
}

/* ── Header row ─────────────────────────────────────── */
.bk-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.bk-product-header__text {
    flex: 1;
    min-width: 0;
}

.bk-product-header__badge {
    flex-shrink: 0;
}

/* ── Title ──────────────────────────────────────────── */
.bk-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A2733;
    line-height: 1.3;
    margin: 0 0 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── SKU ────────────────────────────────────────────── */
.bk-product-sku {
    font-size: 10px;
    color: #9AAAB8;
    font-family: monospace;
    margin-top: 2px;
}

/* ── Badge ──────────────────────────────────────────── */
.bk-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.4;
}

.bk-badge--yellow { background: #FFF8E1; color: #8A6200; }
.bk-badge--green  { background: #E6F9F1; color: #007A45; }
.bk-badge--blue   { background: #E6EEFF; color: #185FA5; }

/* ── Description ────────────────────────────────────── */
.bk-product-desc {
    font-size: 13px;
    color: #6B7B8E;
    line-height: 1.65;
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Meta tags ──────────────────────────────────────── */
.bk-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bk-meta-tag {
    background: #F4F9FF;
    border: 1px solid #C8D8E8;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    color: #6B7B8E;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

/* ── Footer (price + button) ────────────────────────── */
.bk-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #E8EFF5;
    margin-top: auto;
    gap: 10px;
}

/* ── Price ──────────────────────────────────────────── */
.bk-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.bk-product-price .woocommerce-Price-amount {
    font-size: 26px;
    font-weight: 800;
    color: #0D2E6E;
    letter-spacing: -1px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
}

.bk-product-price .woocommerce-Price-currencySymbol {
    font-size: 16px;
    vertical-align: super;
    font-weight: 700;
}

.bk-product-price del .woocommerce-Price-amount {
    font-size: 12px;
    color: #9AAAB8;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: line-through;
}

.bk-product-price ins {
    text-decoration: none;
}

/* ── Button ─────────────────────────────────────────── */
.bk-add-btn {
    background: #0D2E6E;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .2s, transform .15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.bk-add-btn:hover {
    background: #1A4FA0;
    color: #fff;
    transform: translateY(-1px);
}

.bk-add-btn:active {
    transform: translateY(0);
}

.bk-add-btn i,
.bk-add-btn svg {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

/* ── Loading state (WooCommerce AJAX) ───────────────── */
.bk-add-btn.loading {
    opacity: .7;
    pointer-events: none;
    position: relative;
    padding-right: 36px;
}

.bk-add-btn.loading::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin .6s linear infinite;
}

.bk-add-btn.added {
    background: #009A57;
}

@keyframes bk-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Grid layout helper (use in Elementor Loop Grid) ── */
.bk-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
}
