/* ===== Bought Together — bought-together.css v1.1 ===== */

/* ── Fonts ── */
.bt-wrap .bt-title,
.bt-wrap .bt-product-name,
.bt-wrap .bt-atc-btn {
    font-family: 'Brice', 'Georgia', serif !important;
}
.bt-wrap,
.bt-wrap * {
    font-family: 'Galano Grotesque', 'Galano', 'Nunito Sans', sans-serif !important;
    box-sizing: border-box;
}

/* ── Wrapper ── */
.bt-wrap {
    padding: 20px 0 30px;
    width: 100%;
}

/* ── Title ── */
.bt-title {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #1a3a8f !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 18px !important;
}

/* ── List ── */
.bt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Item card ── */
.bt-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,.11);
}

/* ── Product image ── */
.bt-img-wrap {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5ede0;
}
.bt-img-wrap img.bt-product-img,
.bt-img-wrap img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    display: block !important;
}
@media (max-width: 500px) {
    .bt-img-wrap { width: 80px; height: 80px; }
    .bt-img-wrap img { width: 80px !important; height: 80px !important; }
}

/* ── Info block ── */
.bt-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 72px; /* space for ATC button */
}

/* Save badge */
.bt-save-badge {
    display: inline-block;
    background: #e8000d;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    letter-spacing: 0.02em;
    width: fit-content;
    line-height: 1.4;
}
.bt-save-badge .woocommerce-Price-amount,
.bt-save-badge bdi { color: #fff !important; font-weight: 800 !important; }

/* Product name */
.bt-product-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    line-height: 1.3;
}
.bt-product-name a {
    color: inherit !important;
    text-decoration: none !important;
}
.bt-product-name a:hover { color: #1a3a8f !important; }

/* ── Quantity control ── */
.bt-qty-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.bt-qty-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f0f4ff !important;
    color: #1a3a8f !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
    padding: 0 !important;
    line-height: 1;
}
.bt-qty-btn:hover {
    background: #1a3a8f !important;
    color: #fff !important;
    transform: scale(1.08);
}

.bt-qty-display {
    min-width: 90px;
    height: 36px;
    background: #f5f5f7;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 7px;
    padding: 0 14px;
    user-select: none;
}

.bt-qty-val  { font-weight: 800 !important; color: #1a1a2e !important; font-size: 14px !important; }
.bt-qty-unit { font-size: 12px !important; color: #888 !important; font-weight: 500 !important; }

/* Price per unit */
.bt-price-per-unit {
    font-size: 11px !important;
    color: #aaa !important;
    font-weight: 500 !important;
}
.bt-price-per-unit .woocommerce-Price-amount,
.bt-price-per-unit bdi { color: #aaa !important; font-size: 11px !important; }

/* Price */
.bt-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bt-price-cur {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #1a3a8f !important;
}
.bt-price-cur .woocommerce-Price-amount,
.bt-price-cur bdi { font-size: 18px !important; font-weight: 900 !important; color: #1a3a8f !important; }

.bt-price-old {
    font-size: 13px !important;
    color: #bbb !important;
    text-decoration: line-through !important;
}
.bt-price-old .woocommerce-Price-amount,
.bt-price-old bdi { color: #bbb !important; font-size: 13px !important; }

/* ── Add to cart button ── */
.bt-atc-btn {
    position: absolute !important;
    right: 16px;
    bottom: 16px;
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    background: #e85d1a !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 4px 14px rgba(232,93,26,.35);
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.15s, transform 0.15s;
}
.bt-atc-btn:hover    { background: #c94b10 !important; transform: scale(1.06); }
.bt-atc-btn:disabled { background: #f0a070 !important; cursor: not-allowed; transform: none; }
.bt-atc-btn.added    { background: #1abf6f !important; }

/* Custom icon image inside button */
.bt-atc-btn .bt-atc-icon {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Check icon after added */
.bt-atc-btn .bt-check-icon {
    display: none;
}
.bt-atc-btn.added .bt-check-icon {
    display: block;
}
.bt-atc-btn.added .bt-atc-icon {
    display: none;
}

/* Loading spinner */
.bt-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bt-spin 0.8s linear infinite;
}

@keyframes bt-spin { to { transform: rotate(360deg); } }

/* ── View cart link (shown after add) ── */
.bt-view-cart {
    font-size: 12px !important;
    color: #1a3a8f !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    display: none;
    margin-top: 2px;
}
.bt-view-cart.visible { display: inline; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .bt-item { flex-wrap: wrap; padding: 12px; gap: 10px; }
    .bt-info  { padding-right: 0; width: 100%; }
    .bt-atc-btn {
        position: static !important;
        width: 100% !important;
        height: 46px !important;
        border-radius: 10px !important;
        margin-top: 6px;
    }
    .bt-title { font-size: 18px !important; }
    .bt-product-name { font-size: 13px !important; }
    .bt-price-cur bdi,
    .bt-price-cur { font-size: 15px !important; }
}
