/* ===== BASE RESET & TYPOGRAPHY ===== */
.bbp-wrap {
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
}

.bbp-wrap * {
    box-sizing: border-box;
}

/* ===== MAIN TABS (Bloque | Ofertas | Diseño | Ajustes) ===== */
.bbp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 20px;
}

.bbp-tab {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.bbp-tab:hover {
    color: #374151;
}

.bbp-tab.active {
    color: #111827;
    font-weight: 600;
    border-bottom-color: #111827;
}

/* ===== PANELS ===== */
.bbp-panel {
    display: none;
    padding: 24px;
    max-width: 580px; /* Ancho equilibrado */
    margin: 0 auto;
}

.bbp-panel.active {
    display: block;
}

/* ===== CARDS (white boxes with border) ===== */
.bbp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.bbp-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.bbp-card-header .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.bbp-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.bbp-card-link {
    font-size: 13px;
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== FORM ELEMENTS ===== */
.bbp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.bbp-label-sm {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.bbp-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.15s;
}

.bbp-input:focus {
    border-color: #3b82f6;
}

.bbp-input-sm {
    padding: 8px 12px;
    font-size: 13px;
    width: 70px;
}

.bbp-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 10px;
    appearance: none;
    cursor: pointer;
    color: #111827;
}

.bbp-select-sm {
    padding: 8px 12px;
    font-size: 13px;
    width: auto;
    min-width: 100px;
}

/* ===== ROWS & COLUMNS ===== */
.bbp-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bbp-row-center {
    align-items: center;
}

.bbp-col {
    flex: 1;
}

.bbp-col-auto {
    flex: none;
}

/* ===== CHECKBOXES & RADIOS ===== */
.bbp-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 10px;
}

.bbp-check input[type="checkbox"],
.bbp-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.bbp-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== SLIDERS ===== */
.bbp-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bbp-slider {
    flex: 1;
    height: 6px;
    accent-color: #374151;
    cursor: pointer;
}

.bbp-slider-val {
    font-size: 13px;
    color: #374151;
    min-width: 40px;
}

/* ===== TEMPLATES GRID ===== */
.bbp-template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.bbp-template {
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.15s;
}

.bbp-template:hover {
    background: #f3f4f6;
}

.bbp-template.active .bbp-template-box {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.bbp-template-box {
    width: 100%;
    height: 55px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
}

.bbp-template span {
    font-size: 11px;
    color: #6b7280;
}

.bbp-btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1f2937;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.bbp-btn-primary:hover {
    background: #111827;
}

/* ===== OFFER TABS ===== */
.bbp-offer-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bbp-offer-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s;
}

.bbp-offer-tab.active {
    background: #1f2937;
    color: #fff;
}

.bbp-add-offer {
    padding: 10px 16px;
    font-size: 13px;
    background: transparent;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
}

/* ===== COLORS GRID ===== */
.bbp-colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.bbp-color-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.bbp-color-box {
    width: 32px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.bbp-color-item span {
    font-size: 13px;
    color: #374151;
}

/* ===== TYPOGRAPHY GRID ===== */
.bbp-typo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bbp-typo-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.bbp-typo-row {
    display: flex;
    gap: 8px;
}

.bbp-typo-row .bbp-label-sm {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

/* ===== SHORTCODE BOX ===== */
.bbp-shortcode {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fef3c7;
    border-radius: 10px;
}

.bbp-shortcode code {
    flex: 1;
    font-size: 13px;
    color: #92400e;
    font-family: 'Monaco', 'Consolas', monospace;
}

.bbp-shortcode-copy {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #92400e;
}

/* ===== UPLOAD BUTTON ===== */
.bbp-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
}

/* ===== BADGE ===== */
.bbp-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fef3c7;
    color: #d97706;
    border-radius: 4px;
}

/* ===== ACTION BUTTONS ===== */
.bbp-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.bbp-action-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbp-action-btn.blue {
    color: #3b82f6;
    border-color: #3b82f6;
}

.bbp-action-btn.orange {
    color: #f59e0b;
    border-color: #f59e0b;
}

/* ===== DELETE BUTTON ===== */
.bbp-delete {
    background: none;
    border: none;
    color: #fca5a5;
    font-size: 18px;
    cursor: pointer;
}

.bbp-delete:hover {
    color: #ef4444;
}

/* ===== SECTION HEADER ===== */
.bbp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bbp-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== BUNDLES GALLERY ===== */
.bbp-bundles-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bbp-bundle-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.bbp-bundle-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.bbp-bundle-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.bbp-bundle-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    margin-bottom: 16px;
}

.bbp-bundle-tag.purple {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
}

.bbp-bundle-offers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bbp-bundle-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbp-bundle-offer:not(.selected):hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.bbp-bundle-offer.selected {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.bbp-bundle-offer.popular {
    border-color: #8b5cf6;
}

.bbp-popular-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    background: #8b5cf6;
    color: #fff;
    border-radius: 6px;
    text-transform: uppercase;
}

.bbp-offer-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
}

.bbp-bundle-offer.selected .bbp-offer-radio {
    border-color: #8b5cf6;
    border-width: 6px;
}

.bbp-offer-info {
    flex: 1;
}

.bbp-offer-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.bbp-offer-sub {
    font-size: 13px;
    color: #6b7280;
}

.bbp-offer-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 4px;
    margin-left: 8px;
}

.bbp-offer-price {
    text-align: right;
}

.bbp-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.bbp-price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.bbp-bundle-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin-bottom: 12px;
}

.bbp-choose-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.bbp-choose-btn:hover {
    background: #111827;
}

/* ===== HEADER ===== */
.bbp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.bbp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bbp-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bbp-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.bbp-pro-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    background: #f3e8ff;
    color: #7c3aed;
    border-radius: 6px;
    margin-left: 10px;
}

.bbp-save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.2s;
}

.bbp-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* ===== VARIABLE PRODUCT BUNDLES ===== */
.bbp-var-select {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.bbp-var-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.bbp-var-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bbp-var-num {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    width: 24px;
}

.bbp-var-dropdown {
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
}

/* Color Swatches */
.bbp-color-swatches {
    display: flex;
    gap: 4px;
}

/* Variable Item Row - Size + Color */
.bbp-var-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bbp-size-select {
    padding: 8px 28px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    cursor: pointer;
    color: #111827;
    min-width: 55px;
}

.bbp-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s;
}

.bbp-swatch.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Cards Grid Bundle */
.bbp-cards-bundle {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}
.bbp-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}
.bbp-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
}
.bbp-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.bbp-pack-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.bbp-pack-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.bbp-pack-card:not(.selected):hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.bbp-pack-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.bbp-pack-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.bbp-pack-sub {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.bbp-pack-badge {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.bbp-pack-price {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.bbp-pack-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 6px;
}

.bbp-pack-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Gift Row */
.bbp-gift-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ede9fe;
    border-radius: 0 0 10px 10px;
    margin: 12px -20px -20px;
}

.bbp-gift-img {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bbp-gift-info {
    flex: 1;
}

.bbp-gift-label {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
}

/* Combo Offers (Frequently Bought Together) */
.bbp-combo-offers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbp-combo-offer {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
}

.bbp-combo-offer.selected {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.bbp-combo-offer:not(.selected):hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
}

.bbp-combo-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bbp-radio-inner {
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    display: none;
}

.bbp-combo-offer.selected .bbp-combo-radio {
    border-color: #8b5cf6;
}

.bbp-combo-offer.selected .bbp-radio-inner {
    display: block;
}

.bbp-combo-info {
    flex: 1;
}

.bbp-combo-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.bbp-combo-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.bbp-combo-price {
    text-align: right;
    flex-shrink: 0;
}

.bbp-combo-current {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.bbp-combo-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Combo Products Box */
.bbp-combo-products {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: start; /* Changed from center to allow custom alignment */
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
    border: 1px solid #e9d5ff;
    border-radius: 12px;
}

.bbp-combo-product {
    text-align: center;
    padding: 8px;
}

.bbp-combo-product-img {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bbp-combo-product-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.bbp-combo-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.bbp-combo-product-old {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}

.bbp-combo-plus {
    width: 26px;
    height: 26px;
    background: #fff;
    border: 2px solid #e9d5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #8b5cf6;
    margin-top: 20px; /* Aligns with the vertical center of 48px images */
}

/* BOGO Cards */
.bbp-bogo-offers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbp-bogo-offer {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px;
    margin-bottom: 0 !important;
    transition: all 0.2s ease;
}

.bbp-bogo-offer.selected {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.bbp-bogo-offer:not(.selected):hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
}

.bbp-bogo-radio {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bbp-radio-inner {
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    display: none;
}

.bbp-bogo-offer.selected .bbp-bogo-radio {
    border-color: #8b5cf6;
}

.bbp-bogo-offer.selected .bbp-radio-inner {
    display: block;
}

.bbp-bogo-img {
    display: flex;
    justify-content: flex-start; /* so they start from the left instead of centering */
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    flex-shrink: 0;
    width: fit-content !important;
    min-width: 44px !important;
}

.bbp-bogo-img img {
    width: 35px; /* explicit width */
    max-width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0; /* do not compress images, expand the container */
}

/* Product Thumbs (BOGO & Combo) */
.bbp-product-thumbs {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.bbp-thumb-item {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bbp-bogo-info {
    flex: 1;
}

.bbp-bogo-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.bbp-bogo-sub {
    font-size: 13px;
    color: #6b7280;
}

.bbp-bogo-price {
    text-align: right;
}

.bbp-bogo-current {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.bbp-bogo-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.bbp-most-popular {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #8b5cf6;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.bbp-best-value {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

.bbp-save-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.bbp-bogo-color {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.bbp-color-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.bbp-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bbp-color-select {
    padding: 6px 24px 6px 10px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 6px center;
    appearance: none;
    cursor: pointer;
}

.bbp-gift-banner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #ddd6fe;
    position: relative;
    overflow: hidden;
}

.bbp-gift-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.bbp-gift-thumb {
    width: 24px;
    height: 24px;
    background: #bfdbfe;
    border-radius: 4px;
}

.bbp-gift-label {
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
}

.bbp-pill-img {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bbp-pill {
    width: 12px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

/* Fix for mobile/responsive */
@media (max-width: 640px) {
    .bbp-cards-bundle:not(.bbp-grid-3):not(.bbp-grid-4) {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- DYNAMIC PACK SHAPE V2 (PREMIUM) --- */
.bbp-bundle-card.bbp-frontend-render {
    padding-top: var(--bb-spacing-top, 10px) !important;
    padding-bottom: var(--bb-spacing-bottom, 10px) !important;
}

.bbp-bundle-card.bbp-frontend-render .bbp-bundle-offer,
.bbp-bundle-card.bbp-frontend-render .bbp-bogo-offer,
.bbp-bundle-card.bbp-frontend-render .bbp-pack-card,
.bbp-bundle-card.bbp-frontend-render .bbp-combo-offer {
    border-radius: var(--bb-radius, 12px) !important;
    border-width: var(--bb-border-width, 2px) !important;
}

/* --- SELECTED STATE DYNAMIC BORDER --- */
.bbp-bundle-card.bbp-frontend-render .bbp-bundle-offer.selected,
.bbp-bundle-card.bbp-frontend-render .bbp-bogo-offer.selected,
.bbp-bundle-card.bbp-frontend-render .bbp-pack-card.selected,
.bbp-bundle-card.bbp-frontend-render .bbp-combo-offer.selected {
    border-width: var(--bb-border-width-selected, 2px) !important;
}

/* === FORCE DYNAMIC DESIGN PERSISTENCE V2 === */
.bbp-bundle-card.bbp-frontend-render .selected,
.bbp-bundle-card.bbp-frontend-render .bbp-bundle-offer.selected,
.bbp-bundle-card.bbp-frontend-render .bbp-bogo-offer.selected,
.bbp-bundle-card.bbp-frontend-render .bbp-pack-card.selected,
.bbp-bundle-card.bbp-frontend-render .bbp-combo-offer.selected {
    border-width: var(--bb-border-width-selected, 2px) !important;
    border-style: solid !important;
    transition: border-width 0.15s ease-in-out !important;
}

/* Fix for standard designs that might not use variables yet */
.bbp-bundle-card.bbp-frontend-render .bbp-bundle-offer {
    border-width: var(--bb-border-width, 2px) !important;
}
