/* =========================
   COMMON UTILITY CLASSES
========================= */

.ahmed-sku {
    color: #6b7280;
    font-size: 12px;
}

/* =========================
   PRODUCT IMPORT PAGE UI
========================= */

.wrap h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Card Base */
.ahmed-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

/* Section Titles */
.ahmed-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.ahmed-card h3 {
    margin-top: 25px;
    font-size: 16px;
    font-weight: 600;
}

/* Description */
.ahmed-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Table layout cleanup */
.form-table th {
    width: 220px;
    padding: 15px 10px 15px 0;
    font-weight: 600;
}

.form-table td {
    padding: 15px 0;
}

/* File input */
#import_file {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    width: 100%;
    max-width: 420px;
}

/* Options box */
.ahmed-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Submit button */
.ahmed-submit {
    margin-top: 25px;
}

.ahmed-submit input.button-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.ahmed-submit input.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

/* Instructions */
.ahmed-instructions ul {
    padding-left: 18px;
    margin-top: 10px;
}

.ahmed-instructions li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Code block */
.ahmed-code {
    background: #0f172a;
    color: #e5e7eb;
    padding: 18px;
    border-radius: 10px;
    font-size: 13px;
    overflow-x: auto;
}

/* Category examples */
.ahmed-instructions code {
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 13px;
}

/* =========================
   BUNDLE PRODUCTS PAGE
========================= */

/* Bundle Page Layout */
.ahmed-bundle-page {
    margin-top: 20px;
}

.ahmed-bundle-page .bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.ahmed-bundle-page .bundle-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* Badge Styling */
.ahmed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Bundle Stats Cards */
.ahmed-bundle-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ahmed-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.ahmed-stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.ahmed-stat-card .stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahmed-stat-card.stat-bundles .stat-number {
    color: #f57c00;
}

.ahmed-stat-card.stat-products .stat-number {
    color: #2e7d32;
}


/* Discount Form */
.ahmed-discount-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ahmed-discount-form input[type="number"] {
    width: 60px !important;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.ahmed-discount-form .button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* Bundle Items Toggle */
.ahmed-bundle-toggle {
    cursor: pointer;
    color: #1565c0;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.ahmed-bundle-toggle:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.ahmed-bundle-toggle::before {
    content: "\25B6";
    font-size: 10px;
    transition: transform 0.2s;
}

.ahmed-bundle-toggle.ahmed-expanded::before {
    transform: rotate(90deg);
}

/* Bundle Items Container */
.ahmed-bundle-items-container {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.ahmed-bundle-items-container.ahmed-visible {
    display: block;
    animation: ahmed-fade-in 0.3s ease;
}

@keyframes ahmed-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ahmed-bundle-items-container h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Bundle Items Grid */


/* Bundle Item Card */
.ahmed-bundle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ahmed-bundle-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ahmed-bundle-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ahmed-bundle-item-details {
    flex: 1;
    min-width: 0;
}

.ahmed-bundle-item-details a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
}

.ahmed-bundle-item-details a:hover {
    color: #2563eb;
}

.ahmed-bundle-item-details .ahmed-sku {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.ahmed-bundle-item .ahmed-remove-btn {
    background: transparent;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ahmed-bundle-item .ahmed-remove-btn:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* Sidebar Actions */
.ahmed-bundle-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ahmed-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.ahmed-sidebar-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Clear All Button */
.ahmed-clear-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ahmed-clear-btn:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* Help Section */
.ahmed-help-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.ahmed-help-section p {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.ahmed-help-section pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    font-size: 11px;
    overflow-x: auto;
    margin: 10px 0;
}

/* Table Improvements */
.ahmed-bundle-table {
    margin-bottom: 0;
}

.ahmed-bundle-table .wp-list-table th,
.ahmed-bundle-table .wp-list-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.ahmed-bundle-table .wp-list-table tbody tr:hover {
    background: #f9fafb;
}

/* Empty State */
.ahmed-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.ahmed-empty-state p {
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .ahmed-bundle-page .ahmed-grid-2fr-1fr {
        grid-template-columns: 1fr;
    }
    
    .ahmed-bundle-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .ahmed-bundle-sidebar {
        grid-template-columns: 1fr;
    }
    
    .ahmed-bundle-items {
        grid-template-columns: 1fr;
    }
}

/*========================
create a new bundle
=========================*/
/* =========================================================
   Bundle Builder - Professional UI (uses your existing classes)
   ========================================================= */

   .ahmed-sidebar-card.bundle-builder-card{
    --bg: #ffffff;
    --surface: #ffffff;
    --muted: #6b7280;
    --text: #0f172a;
    --border: #e5e7eb;
    --border-2: #eef2f7;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-2: 0 6px 18px rgba(15, 23, 42, .10);
    --radius: 18px;
    --radius-sm: 12px;
    --ring: 0 0 0 4px rgba(59,130,246,.14);
  
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  
  /* Remove the inline full width if possible:
     style="grid-column: 1 / -1;" -> move to CSS */
  .ahmed-sidebar-card.bundle-builder-card{ grid-column: 1 / -1; }
  
  /* ---------- Header ---------- */
  .bundle-builder-header{
    padding: 18px 18px;
    border-bottom: 1px solid var(--border);
    background:
      radial-gradient(900px 260px at 0% 0%, rgba(59,130,246,.12), transparent 60%),
      radial-gradient(900px 260px at 100% 0%, rgba(16,185,129,.10), transparent 60%),
      linear-gradient(180deg, #ffffff, #fbfdff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  
  .bundle-builder-header-content{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  
  .bundle-builder-icon{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #0f172a;
    box-shadow: 0 10px 18px rgba(15,23,42,.18);
  }
  
  .bundle-builder-icon .dashicons{
    color: #fff;
    font-size: 22px;
    width: 22px;
    height: 22px;
  }
  
  .bundle-builder-header-text h3{
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: .2px;
  }
  
  .bundle-builder-subtitle{
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
    max-width: 68ch;
  }
  
  .bundle-builder-chip{
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
  }
  
  /* ---------- Form Base ---------- */
  .bundle-builder-form{
    padding: 18px;
  }
  
  .bundle-builder-form *{
    box-sizing: border-box;
  }
  
  .bundle-builder-form label{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 7px;
  }
  
  .bundle-builder-form label .dashicons{
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #334155;
  }
  
  /* ---------- Price Summary ---------- */
  .bundle-price-summary{
    margin-bottom: 16px;
  }
  
  .bundle-price-card{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    background: #0b1220;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(2,6,23,.22);
  }
  
  .bundle-price-item{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 12px 12px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
  
  .bundle-price-label{
    font-size: 11.5px;
    color: rgba(255,255,255,.72);
  }
  
  .bundle-price-value{
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .2px;
  }
  
  .bundle-price-discount .bundle-price-value{
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .bundle-price-final{
    background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(16,185,129,.18));
    border-color: rgba(255,255,255,.18);
  }
  
  .bundle-discount-input{
    width: 86px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0 10px;
    outline: none;
  }
  
  .bundle-discount-input:focus{
    box-shadow: 0 0 0 4px rgba(59,130,246,.18);
    border-color: rgba(59,130,246,.55);
  }
  
  /* ---------- Main Grid ---------- */
  .bundle-builder-main-grid{
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    align-items: start;
  }
  
  /* ---------- Sections ---------- */
  .bundle-builder-section{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 0 rgba(15,23,42,.02);
  }
  
  .bundle-builder-section + .bundle-builder-section{
    margin-top: 14px;
  }
  
  .bundle-builder-section h4{
    margin: 4px 0 14px;
    font-size: 14.5px;
    color: var(--text);
  }
  
  .bundle-section-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
  }
  
  .bundle-section-badge-success{
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #065f46;
  }
  
  /* ---------- Fields ---------- */
  .bundle-field{ margin-bottom: 14px; }
  .bundle-field-large{ margin-bottom: 16px; }
  
  .bundle-input,
  .bundle-select,
  .bundle-textarea{
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
  }
  
  .bundle-textarea{ padding: 12px; resize: vertical; min-height: 92px; }
  
  .bundle-input::placeholder,
  .bundle-textarea::placeholder{ color: #9ca3af; }
  
  .bundle-input:focus,
  .bundle-select:focus,
  .bundle-textarea:focus{
    border-color: rgba(59,130,246,.55);
    box-shadow: var(--ring);
  }
  
  .bundle-input-large{
    height: 44px;
    font-size: 13.5px;
  }
  
  .bundle-field-row-3{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
  
  .bundle-field-row-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  /* ---------- Image Upload ---------- */
  .bundle-image-upload{
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
  }
  
  .bundle-image-preview{
    height: 110px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background:
      linear-gradient(180deg, #ffffff, #f8fafc);
    display: grid;
    place-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px;
    color: #334155;
  }
  
  .bundle-image-preview .dashicons{
    font-size: 26px;
    width: 26px;
    height: 26px;
    opacity: .9;
  }
  
  .bundle-image-placeholder-text{
    font-size: 12px;
    font-weight: 700;
  }
  
  .bundle-image-input{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  
  /* ---------- Right side (items) ---------- */
  .bundle-section-items-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
  }
  
  .bundle-items-actions{
    display: inline-flex;
    gap: 8px;
  }
  
  /* Search + filters */
  .bundle-search-section{
    margin-top: 12px;
    display: grid;
    gap: 12px;
  }
  
  .bundle-search-input-group{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  
  .bundle-filters-row{
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
  }
  
  .bundle-filter-select{ height: 42px; }
  
  .bundle-paste-skus{
    border: 1px solid var(--border);
    background: #fbfdff;
    border-radius: 16px;
    padding: 12px;
  }
  
  .bundle-paste-header{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 12px;
    color: #0f172a;
    margin-bottom: 10px;
  }
  
  .bundle-paste-input-group{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  
  /* Results box */
  .bundle-search-results{
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    min-height: 72px;
    box-shadow: 0 1px 0 rgba(15,23,42,.02);
  }
  
  /* ---------- Selected Preview ---------- */
  .bundle-selected-preview{
    margin-top: 14px;
    background: #0b1220;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    padding: 14px;
    box-shadow: 0 16px 34px rgba(2,6,23,.25);
  }
  
  .bundle-selected-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .bundle-selected-title{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
  }
  
  .bundle-selected-title h4{
    margin: 0;
    font-size: 14px;
    color: #fff;
  }
  
  .bundle-selected-title .dashicons{
    color: #fff;
    opacity: .92;
  }
  
  .bundle-selected-count{
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 6px 10px;
  }
  
  .bundle-items-grid{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 12px;
    min-height: 140px;
  }

  .bundle-item-card{
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    margin-bottom: 8px;
  }

  .bundle-item-card:last-child{
    margin-bottom: 0;
  }

  .bundle-item-meta strong{
    display:block;
    color:#fff;
    font-size: 13px;
  }

  .bundle-item-meta span{
    display:block;
    font-size: 11px;
    color: rgba(255,255,255,.65);
    margin-top: 2px;
  }

  .bundle-item-controls{
    display:flex;
    align-items:center;
    gap: 8px;
  }

  .bundle-item-qty{
    width: 70px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(15,23,42,.6);
    color: #fff;
    padding: 0 8px;
  }

  .bundle-item-remove{
    background: rgba(248,113,113,.15) !important;
    color: #fee2e2 !important;
    border-color: rgba(248,113,113,.35) !important;
  }

  .bundle-results-grid{
    display:grid;
    gap: 8px;
  }

  .bundle-result-card{
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
  }

  .bundle-result-card strong{
    display:block;
    font-size: 13px;
    color:#0f172a;
  }

  .bundle-result-card span{
    display:block;
    font-size: 11px;
    color: #64748b;
  }
  
  .bundle-empty-state{
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    color: rgba(255,255,255,.78);
  }
  
  .bundle-empty-state .dashicons{
    font-size: 26px;
    width: 26px;
    height: 26px;
    opacity: .9;
  }
  
  /* ---------- Footer ---------- */
  .bundle-builder-footer{
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .bundle-checkbox{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
  }
  
  .bundle-checkbox input{ display:none; }
  
  .bundle-checkbox-mark{
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    position: relative;
    box-shadow: inset 0 0 0 0 rgba(59,130,246,.18);
  }
  
  .bundle-checkbox input:checked + .bundle-checkbox-mark{
    border-color: rgba(59,130,246,.55);
    box-shadow: 0 0 0 4px rgba(59,130,246,.14);
    background: #eff6ff;
  }
  
  .bundle-checkbox input:checked + .bundle-checkbox-mark::after{
    content: "";
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: 2px solid #2563eb;
    border-top: 0; border-left: 0;
    transform: rotate(45deg);
  }
  
  .bundle-checkbox-text strong{
    display:block;
    font-size: 12.5px;
    color: #0f172a;
  }
  
  .bundle-checkbox-text small{
    display:block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
  }
  
  /* ---------- Buttons (WordPress-like but premium) ---------- */
  .bundle-builder-form .button{
    border-radius: 14px !important;
    padding: 9px 12px !important;
    height: auto !important;
    line-height: 1.2 !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 0 rgba(15,23,42,.03) !important;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 700;
  }
  
  .bundle-builder-form .button:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-2) !important;
    border-color: #d7dde7 !important;
  }
  
  .bundle-builder-form .button:active{
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(15,23,42,.04) !important;
  }
  
  .bundle-builder-form .button-primary.bundle-create-btn{
    border: 0 !important;
    background: linear-gradient(135deg, #2563eb, #16a34a) !important;
    color: #fff !important;
    padding: 10px 14px !important;
    box-shadow: 0 16px 30px rgba(37,99,235,.22) !important;
  }
  
  .bundle-builder-form .button-primary.bundle-create-btn:hover{
    box-shadow: 0 18px 34px rgba(37,99,235,.26) !important;
  }
  
  .bundle-upload-btn{
    background: #0f172a !important;
    color: #fff !important;
    border-color: rgba(15,23,42,.25) !important;
  }
  
  .bundle-clear-all-btn{
    background: #fff !important;
  }
  
  .bundle-reset-btn{
    background: #fff !important;
  }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 1100px){
    .bundle-builder-main-grid{ grid-template-columns: 1fr; }
    .bundle-price-card{ grid-template-columns: 1fr 1fr; }
    .bundle-image-upload{ grid-template-columns: 1fr; }
  }
  
  @media (max-width: 640px){
    .bundle-price-card{ grid-template-columns: 1fr; }
    .bundle-field-row-3{ grid-template-columns: 1fr; }
    .bundle-field-row-2{ grid-template-columns: 1fr; }
    .bundle-filters-row{ grid-template-columns: 1fr; }
  }
  
/* =========================
   Single product page styles moved to assets/css/single-product.css
========================= */

/* =========================
   Extracted Inline Styles
========================= */

.ahmed-toolbar-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ahmed-inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ahmed-inline-form-add {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.ahmed-mt-6 {
    margin-top: 6px;
}

.ahmed-mt-12 {
    margin-top: 12px;
}

.ahmed-input-min-200 {
    min-width: 200px;
}

.ahmed-input-w-110 {
    width: 110px;
}

.ahmed-input-flex-grow {
    flex: 1;
    min-width: 220px;
}

.ahmed-text-muted-xs {
    color: #6b7280;
    font-size: 12px;
}

.ahmed-bundle-items-row.is-hidden {
    display: none;
}

.ahmed-bundle-items-cell {
    padding: 0 !important;
    border: none !important;
}

.ahmed-bundle-items-empty {
    margin-top: 0;
    color: #6b7280;
}

.ahmed-bundle-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.bundle-search-empty {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.ahmed-bundle-builder-help-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ahmed-bundle-builder-help-pre {
    margin: 10px 0;
    padding: 12px;
    overflow-x: auto;
    border-radius: 8px;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 11px;
}

.ahmed-bundle-builder-help-note {
    margin-top: 12px;
    color: #6b7280;
    font-size: 12px;
}

.ahmed-clear-bundles-note {
    margin-top: 12px;
    color: #6b7280;
    font-size: 12px;
}

.bundle-item-notice {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
}

.bundle-item-notice p {
    margin: 0;
}

.bundle-item-notice .bundle-item-notice-actions {
    margin-top: 10px;
}

.bundle-item-notice.is-locked p {
    color: #e65100;
}

.bundle-item-notice.is-available {
    background: #e8f5e9;
    border-color: #66bb6a;
}

.bundle-item-notice.is-available p {
    color: #2e7d32;
}

.ahmed-sanitary-section-title {
    margin: 18px 0 12px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
}

.ahmed-sanitary-choice-options {
    display: grid;
    gap: 12px;
}

.ahmed-sanitary-choice-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ahmed-sanitary-choice-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ahmed-sanitary-choice-option.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.ahmed-sanitary-choice-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ahmed-sanitary-choice-main {
    display: grid;
    gap: 4px;
}

.ahmed-sanitary-choice-name {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.ahmed-sanitary-choice-price {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

#ahmed-part-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

#ahmed-part-image-close {
    position: absolute;
    top: 14%;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
}

#ahmed-part-image-full {
    max-width: min(96vw, 1000px);
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.bundle-brand-filter {
    margin-bottom: 15px;
}

.product-bundles-wrapper {
    display: grid;
    gap: 20px;
}

.product-bundles-wrapper.cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.product-bundles-wrapper.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-bundles-wrapper.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-bundles-wrapper.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-bundles-wrapper.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.product-bundles-wrapper.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.product-bundle-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.product-bundle-item-title {
    margin: 10px 0;
    font-size: 16px;
}

.product-bundle-item-title a {
    text-decoration: none;
}

.bundle-items-count {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.bundle-pricing {
    margin-bottom: 10px;
}

.bundle-pricing .bundle-price {
    color: #2e7d32;
    font-size: 18px;
    font-weight: bold;
}

.bundle-pricing .bundle-regular-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.bundle-pricing .bundle-savings-inline {
    color: #c62828;
    font-size: 12px;
}

.bundle-products-list {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.bundle-products-list strong {
    color: #666;
    font-size: 12px;
}

.bundle-products-list ul {
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
}

.bundle-products-list li {
    padding: 2px 0;
    font-size: 12px;
}

.bundle-products-list .bundle-item-qty {
    color: #999;
}

.bundle-contents-wrapper {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.bundle-contents-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.bundle-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bundle-items-list .bundle-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.bundle-content-thumb {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: cover;
}

.bundle-item-link {
    font-weight: 500;
    text-decoration: none;
}

.bundle-item-meta-sm {
    color: #666;
    font-size: 12px;
}

.bundle-item-meta-price {
    color: #666;
    font-size: 14px;
}

.ahmed-export-card {
    max-width: 1300px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ahmed-export-search-row,
.ahmed-export-group {
    margin-bottom: 20px;
}

.ahmed-export-search-row {
    margin-bottom: 15px;
}

.ahmed-export-search-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.ahmed-export-search-clear {
    display: none;
    margin-left: 5px;
}

.ahmed-export-search-count {
    margin-left: 10px;
    color: #666;
    font-size: 13px;
}

.ahmed-export-scroll-box {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ahmed-export-label-block {
    display: block;
    margin-bottom: 5px;
}

.ahmed-export-label-block.is-main {
    padding-right: 5px;
}

.ahmed-export-label-block.is-sub {
    padding-right: 30px;
    color: #555;
}

.ahmed-export-label-block.padded {
    margin-bottom: 10px;
}

.ahmed-export-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.ahmed-export-empty {
    color: #666;
}

.ahmed-export-section-title {
    margin-bottom: 10px;
    color: #1d2327;
    font-size: 14px;
}
button#ahmed-toggle-brands-panel {
    padding: 20px;
    font-size: 20px;
    font-weight: 800;
}
.ahmed-export-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.ahmed-export-group.ahmed-export-group-2 {
    position: fixed;
    top: 555px;
    left: 12px;
    width: 285px;
    background: #fff;
    padding: 10px 36px;
    border-radius: 9px;
    z-index: 999;
    border: 1px solid;
}
.ahmed-export-group.ahmed-export-group-2 input#submit {
    width: 150px;
    height: 59px;
    font-size: 17px;
    font-weight: 800;
    padding: 1px;
    border: 1px solid #31323c;
    border-radius: 8px;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}
.ahmed-export-option {
    display: block;
    padding: 8px;
    border-radius: 4px;
    background: #f9f9f9;
}

.ahmed-export-option.is-bundle {
    background: #fff3e0;
}

.ahmed-export-option.is-arabic {
    background: #e8f5e9;
}

.ahmed-export-option.is-other {
    background: #f0f0f1;
}

.ahmed-export-format-primary {
    display: block;
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #4caf50;
    border-radius: 8px;
    background: #e8f5e9;
}

.ahmed-export-format-secondary {
    display: block;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 4px;
    background: #f9f9f9;
}

.ahmed-export-format-description {
    display: block;
    margin-top: 5px;
    margin-left: 20px;
}

.ahmed-export-warning {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #ff9800;
    border-radius: 4px;
    background: #fff3e0;
}

.ahmed-export-warning p {
    margin: 0;
    color: #e65100;
    font-size: 13px;
}

.ahmed-export-instructions {
    max-width: 900px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #f0f0f1;
}

.ahmed-export-list {
    padding-left: 20px;
    list-style: disc;
}


/* =========================
   Product detail blocks, swatches, and imported data sections moved to assets/css/single-product.css
========================= */


/* =========================
   Bundle products admin table styles
========================= */
/* ================================
   Bundle Products Table - Pro Admin UI
   targets: .wp-list-table.ahmed-bundle-table
   ================================ */

   .wp-list-table.ahmed-bundle-table{
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;           /* Keep border radius visible */
    background: #fff;
    box-shadow: 0 10px 26px rgba(15,23,42,.06);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;  /* Prevent column layout issues */
  }
  
  /* Header */
  .wp-list-table.ahmed-bundle-table thead th{
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
    font-weight: 800;
    font-size: 12.5px;
    padding: 12px 12px;
    vertical-align: middle;
    white-space: nowrap;
  }
  
  /* Cells */
  .wp-list-table.ahmed-bundle-table td{
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    font-size: 13px;
    color: #0f172a;
  }
  
  /* Zebra but nicer */
  .wp-list-table.ahmed-bundle-table tbody tr:nth-child(odd) td{
    background: #ffffff;
  }
  .wp-list-table.ahmed-bundle-table tbody tr:nth-child(even) td{
    background: #fbfdff;
  }
  
  /* Hover */
  .wp-list-table.ahmed-bundle-table tbody tr:hover td{
    background: #f8fafc;
  }
  
  /* Column sizing (avoid inline widths issues) */
  .wp-list-table.ahmed-bundle-table th:first-child,
  .wp-list-table.ahmed-bundle-table td:first-child{
    width: 44px;
    text-align: center;
  }
  .wp-list-table.ahmed-bundle-table th:nth-child(2),
  .wp-list-table.ahmed-bundle-table td:nth-child(2){
    width: 70px;
    color: #334155;
    font-weight: 700;
  }
  .wp-list-table.ahmed-bundle-table th:nth-child(4),
  .wp-list-table.ahmed-bundle-table td:nth-child(4){
    width: 200px;
  }
  .wp-list-table.ahmed-bundle-table th:nth-child(5),
  .wp-list-table.ahmed-bundle-table td:nth-child(5){
    width: 160px;
  }
  .wp-list-table.ahmed-bundle-table th:nth-child(6),
  .wp-list-table.ahmed-bundle-table td:nth-child(6){
    width: 170px;
  }
  .wp-list-table.ahmed-bundle-table th:nth-child(7),
  .wp-list-table.ahmed-bundle-table td:nth-child(7){
    width: 190px;
  }
  
  /* Bundle Product cell typography */
  .wp-list-table.ahmed-bundle-table td:nth-child(3) strong{
    font-size: 13.5px;
    line-height: 1.35;
  }
  .wp-list-table.ahmed-bundle-table td:nth-child(3) a{
    color: #0f172a;
    text-decoration: none;
  }
  .wp-list-table.ahmed-bundle-table td:nth-child(3) a:hover{
    text-decoration: underline;
  }
  
  /* SKU badge */
  .wp-list-table.ahmed-bundle-table .ahmed-sku{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
  }
  
  /* Forms inside table: prevent them from stretching columns */
  .wp-list-table.ahmed-bundle-table td form{
    max-width: 100%;
  }
  
  /* Type form layout */
  .wp-list-table.ahmed-bundle-table td:nth-child(4) form{
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: wrap; /* Prevent overlap */
  }
  .wp-list-table.ahmed-bundle-table td:nth-child(4) select{
    min-width: 140px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 10px;
  }
  
  /* Discount form layout */
  .wp-list-table.ahmed-bundle-table .ahmed-discount-form{
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .wp-list-table.ahmed-bundle-table .ahmed-discount-form input[type="number"]{
    width: 88px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 10px;
  }
  
  /* Buttons premium look */
  .wp-list-table.ahmed-bundle-table .button.button-small{
    border-radius: 12px !important;
    padding: 6px 10px !important;
    height: auto !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 0 rgba(15,23,42,.03) !important;
  }
  
  .wp-list-table.ahmed-bundle-table .button.button-small:hover{
    border-color: #d7dde7 !important;
    box-shadow: 0 10px 18px rgba(15,23,42,.10) !important;
    transform: translateY(-1px);
  }
  
  /* Actions cell: stack nicely */
  .wp-list-table.ahmed-bundle-table td:nth-child(7){
    white-space: nowrap;
  }
  .wp-list-table.ahmed-bundle-table td:nth-child(7) .button{
    width: 100%;
    justify-content: center;
  }
  .wp-list-table.ahmed-bundle-table td:nth-child(7) form{
    margin-top: 8px !important;
  }
  .wp-list-table.ahmed-bundle-table td:nth-child(7) form button{
    width: 100%;
  }
  
  /* Show Items link as pill */
  .wp-list-table.ahmed-bundle-table .ahmed-bundle-toggle{
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
    font-size: 12px;
  }
  .wp-list-table.ahmed-bundle-table .ahmed-bundle-toggle:hover{
    background: #dbeafe;
  }
  
  /* Items count chip */
  .wp-list-table.ahmed-bundle-table .ahmed-items-count{
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    font-weight: 900;
    font-size: 12px;
  }
  
  /* ===== Expanded row (Bundle items panel) ===== */
  .wp-list-table.ahmed-bundle-table tr.ahmed-bundle-items-row td{
    background: transparent !important;
    border-bottom: none;
  }
  
  .ahmed-bundle-items-container{
    border-top: 1px solid #eef2f7;
    background:
      radial-gradient(900px 240px at 0% 0%, rgba(59,130,246,.10), transparent 55%),
      linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 14px 14px 16px;
    border-radius: 0 0 16px 16px;
  }
  
  .ahmed-bundle-items-container h4{
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
  }
  
  /* Bundle items list */
  
  
  .ahmed-bundle-item{
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(15,23,42,.06);
  }
  
  .ahmed-bundle-item-details a{
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
  }
  .ahmed-bundle-item-details a:hover{
    text-decoration: underline;
  }
  
  .ahmed-remove-btn{
    margin-top: 10px;
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
    font-weight: 900;
    cursor: pointer;
  }
  .ahmed-remove-btn:hover{
    background: #ffe4e6;
  }
  
  /* Add SKUs inside items panel */
  .ahmed-bundle-items-container form[method="post"] input[type="text"]{
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 10px;
  }
  
  /* Responsive: keep columns readable */
  @media (max-width: 1200px){
    .wp-list-table.ahmed-bundle-table th:nth-child(7),
    .wp-list-table.ahmed-bundle-table td:nth-child(7){
      width: 170px;
    }
  }
  
  @media (max-width: 980px){
    .wp-list-table.ahmed-bundle-table{
      display: block;
      overflow-x: auto; /* Prevent columns from overlapping */
      -webkit-overflow-scrolling: touch;
    }
    .wp-list-table.ahmed-bundle-table thead th{
      position: sticky;
      top: 0;
      z-index: 1;
    }
  }
/* 3 items per row */
.ahmed-bundle-items{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2vw;
    align-items: stretch;
  }
  
  /* make each card fill its cell nicely */
  .ahmed-bundle-item{
    width: 100%;
    margin: 0 !important;
  }
  
  .ahmed-bundle-item-details{
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* keep the Remove button at the bottom */
  .ahmed-bundle-item-details form{
    margin-top: auto;
  }
  
  /* responsive */
  @media (max-width: 1200px){
    .ahmed-bundle-items{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 800px){
    .ahmed-bundle-items{ grid-template-columns: 1fr; }
  }
    

