/* =====================================================
   Al Fakher Bundle Plugin — Frontend Styles v11
   Brand: #ab2328 / #121212 / #ffffff
   ===================================================== */

/* ── Cart page alert ── */
.af-bundle-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff8f8;
    border: 1px solid rgba(171,35,40,0.25);
    border-left: 3px solid #ab2328;
    color: #1a1a1a;
    padding: 13px 18px;
    margin-bottom: 0;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.01em;
}
.af-bundle-alert-icon { display: flex; align-items: center; flex-shrink: 0; color: #ab2328; }
.af-bundle-alert strong { color: #1a1a1a; font-weight: 700; }

/* ── Mini cart — quantity lines ── */
.af-bundle-mini-quantity { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.af-bundle-mini-line { display: flex; align-items: center; gap: 6px; line-height: 1.4; font-size: 13px; }
.af-bundle-price { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }

.af-bundle-price del,
.af-bundle-price del *,
.af-bundle-price del .woocommerce-Price-amount,
.af-bundle-price del .woocommerce-Price-amount bdi,
.af-bundle-price del .woocommerce-Price-currencySymbol {
    color: #999999 !important;
    text-decoration-color: #999999 !important;
    opacity: 0.9 !important;
}
.af-bundle-price ins { color: #ab2328; font-weight: 700; text-decoration: none; background: transparent; }
.af-bundle-price ins .amount,
.af-bundle-price ins .woocommerce-Price-amount { color: #ab2328 !important; }

.af-bundle-save-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #C11626 0%, #8f0f1c 100%); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    padding: 4px 10px 4px 8px; border-radius: 999px;
    letter-spacing: 0.09em; text-transform: uppercase;
    vertical-align: middle; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(193,22,38,0.35);
}
.af-bundle-save-badge svg { width: 12px; height: 12px; flex: none; }
.af-bundle-regular-extra { color: #888; font-size: 0.88em; }

/* ── Mini cart summary ── */
.af-mini-bundle-summary { border-top: 1px solid #e8e8e8; margin: 14px 0 6px; padding-top: 14px; }
.af-mini-bundle-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.af-mini-label { display: flex; align-items: center; color: #555; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.af-mini-discount-value { color: #ab2328; font-size: 13px; font-weight: 700; }
.af-mini-bundle-total { border-top: 1px solid #e8e8e8; padding-top: 10px; margin-top: 4px; }
.af-mini-bundle-total .af-mini-label { color: #1a1a1a; font-size: 14px; font-weight: 700; }
.af-mini-total-value { color: #1a1a1a; font-size: 15px; font-weight: 800; }

/* =====================================================
   Bundle Box Widget
   ===================================================== */
.af-bb-wrap {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 28px 24px 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Header */
.af-bb-header { margin-bottom: 24px; text-align: center; }
.af-bb-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #C11626 0%, #8f0f1c 100%); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0.09em; text-transform: uppercase;
    padding: 4px 10px 4px 8px; border-radius: 999px; margin-bottom: 12px;
    vertical-align: middle; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(193,22,38,0.35);
}
.af-bb-badge svg { width: 12px; height: 12px; flex: none; }
.af-bb-title { color: #121212; font-size: 21px; font-weight: 800; margin: 0 0 5px; line-height: 1.2; letter-spacing: -0.01em; }
.af-bb-sub { color: #777; font-size: 13px; margin: 0; line-height: 1.5; }

/* Steps */
.af-bb-step { margin-bottom: 14px; }
.af-bb-step-label { display: flex; align-items: center; gap: 8px; color: #444; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; }
.af-bb-step-num { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #ab2328; color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; line-height: 1; }

/* Select */
.af-bb-select-wrap { position: relative; }
.af-bb-select {
    width: 100%; appearance: none; -webkit-appearance: none;
    background: #f8f8f8; border: 1px solid #ddd; border-radius: 8px;
    color: #121212; font-size: 14px; padding: 12px 40px 12px 13px;
    cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none; font-family: inherit;
}
.af-bb-select:focus, .af-bb-select:hover { border-color: #ab2328; box-shadow: 0 0 0 3px rgba(171,35,40,0.1); background: #fff; }
.af-bb-select option { background: #ffffff; color: #121212; }
.af-bb-chevron { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; display: flex; align-items: center; }

/* Divider */
.af-bb-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.af-bb-divider-line { flex: 1; border: none; border-top: 2px dashed #e0e0e0; }
.af-bb-plus { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #e0e0e0; background: #f9f9f9; color: #ab2328; font-size: 18px; font-weight: 700; flex-shrink: 0; }

/* Price summary */
.af-bb-price-summary { background: #fafafa; border: 1px solid #e8e8e8; border-radius: 8px; padding: 13px 15px; margin: 18px 0; }
.af-bb-price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.af-bb-price-row + .af-bb-price-row { border-top: 1px solid #ebebeb; margin-top: 6px; padding-top: 9px; }
.af-bb-price-label { color: #666; font-size: 13px; display: flex; align-items: center; gap: 7px; font-family: inherit; }
.af-bb-saving-note { font-style: normal; background: #ab2328; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }

.af-bb-old-price,
.af-bb-old-price *,
.af-bb-old-price .amount,
.af-bb-old-price .woocommerce-Price-amount,
.af-bb-old-price .woocommerce-Price-amount bdi,
.af-bb-old-price .woocommerce-Price-currencySymbol {
    color: #999999 !important; text-decoration-color: #999999 !important;
    opacity: 0.9 !important; font-size: 14px; text-decoration: line-through;
}
.af-bb-new-price { color: #121212; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.af-bb-price-row--highlight .af-bb-price-label { color: #333; font-weight: 600; }

/* CTA Button */
#af_bb_add_btn,
.af-bb-btn {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 10px !important; width: 100% !important;
    background: #ab2328 !important; color: #ffffff !important;
    border: none !important; border-radius: 8px !important;
    padding: 15px 20px !important; font-size: 14px !important;
    font-weight: 700 !important; letter-spacing: 0.06em !important;
    text-transform: uppercase !important; cursor: pointer !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 3px 14px rgba(171,35,40,0.3) !important;
    font-family: inherit !important; box-sizing: border-box !important;
}
[id^="af_bb_add_btn"]:hover:not(:disabled),
.af-bb-btn:hover:not(:disabled) { background: #c4282e !important; box-shadow: 0 5px 20px rgba(171,35,40,0.45) !important; transform: translateY(-1px) !important; }
[id^="af_bb_add_btn"]:active:not(:disabled),
.af-bb-btn:active:not(:disabled) { transform: translateY(0) !important; }
[id^="af_bb_add_btn"]:disabled,
.af-bb-btn:disabled { background: #eeeeee !important; color: #555555 !important; border: 1px solid #d5d5d5 !important; cursor: not-allowed !important; box-shadow: none !important; border-radius: 8px !important; }
.af-bb-btn.af-bb-loading,
[id^="af_bb_add_btn"].af-bb-loading { pointer-events: none !important; opacity: 0.75 !important; }

.af-bb-btn.af-bb-success,
[id^="af_bb_add_btn"].af-bb-success {
    background: #1e6b38 !important; color: #ffffff !important;
    box-shadow: 0 3px 14px rgba(30,107,56,0.35) !important;
}
.af-bb-btn.af-bb-success span,
[id^="af_bb_add_btn"].af-bb-success span { color: #ffffff !important; }

/* Hide WC view cart link */
a.added_to_cart.wc-forward { display: none !important; }

/* Error */
.af-bb-notice { text-align: center; font-size: 13px; color: #c0392b; margin: 10px 0 0; }
