/* =========================
   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: "â–¶";
    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 DISPLAY
   Professional 3-Part Layout
========================= */


/* ======================================================
   BETHEME THEME INTEGRATION STYLES
   Color Swatches & Parts 2 & 3 Display
====================================================== */

/* Pure Circular Color Swatches - WITH PROPER COLORS */
.ahmed-betheme-swatches {
    display: block;
    margin: 15px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ahmed-betheme-swatches .swatch-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.ahmed-betheme-swatches .swatch-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Pure circle with ACTUAL COLOR from data attribute */
.ahmed-color-circle {
    width: 44px;
    height: 39px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    box-sizing: border-box;
    position: relative;
    /* Ensure color is visible */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ahmed-color-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.ahmed-color-circle.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #2563eb;
    transform: scale(1.1);
}

.ahmed-color-circle.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.ahmed-color-circle.out-of-stock::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 2px;
    background: #dc2626;
    transform: rotate(45deg);
    top: 50%;
    left: -10%;
}
.woocommerce div.product form.cart .quantity .qty {
    text-align: center !important;
}
.selected-color-name {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 8px;
}

/* ======================================================
   PART 1: PRODUCT OVERVIEW WITH ORGANIZED UI
====================================================== */

.ahmed-part1-container {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ahmed-part1-brand {
    margin-bottom: 15px;
}

.ahmed-brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ahmed-part1-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.ahmed-part1-price-stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ahmed-part1-price .ahmed-price-current {
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
}

.ahmed-part1-price .ahmed-price-regular {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 10px;
}

.ahmed-part1-price .ahmed-price-sale {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}

.ahmed-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.ahmed-stock-badge.in-stock {
    background: #dcfce7;
    color: #16a34a;
}

.ahmed-stock-badge.in-stock span {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
}

.ahmed-stock-badge.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.ahmed-stock-badge.out-of-stock span {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
}

.ahmed-part1-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ahmed-part1-meta .ahmed-meta-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.ahmed-part1-meta .ahmed-meta-item span:first-child {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ahmed-part1-meta .ahmed-meta-item span:last-child {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    font-family: monospace;
}



@media print {
    .ahmed-part-2-tab,
    .ahmed-part-3-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
/* ================================
   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;           /* ظ…ظ‡ظ… ط¹ط´ط§ظ† radius ظٹط´طھط؛ظ„ */
    background: #fff;
    box-shadow: 0 10px 26px rgba(15,23,42,.06);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;  /* ظٹط­ظ„ ظ…ط´ظƒظ„ط© ط§ظ„ط£ط¹ظ…ط¯ط© */
  }
  
  /* 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; /* ظٹظ…ظ†ط¹ ط§ظ„طھط±ط§ظƒط¨ */
  }
  .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; /* ط¨ط¯ظ„ طھط±ط§ظƒط¨ ط§ظ„ط£ط¹ظ…ط¯ط© */
      -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; }
  }
    

/* ==========================================
   FIGMA LAYOUT - BUNDLE & SANITARY SINGLE
========================================== */
.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-bundle-card {
    margin: 18px 0 22px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0 8px;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-meta {
    margin-bottom: 10px;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #2f2f2f;
    margin-bottom: 4px;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-meta-label {
    font-weight: 700;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #ececec;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-thumb-link {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    overflow: hidden;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-thumb {
    width: 34px;
    height: 34px;
    object-fit: cover;
    display: block;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-item-title {
    font-size: 20px;
    line-height: 1.35;
    color: #313131;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-item-price {
    text-align: right;
    min-width: 130px;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-old-price {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: #b5b5b5;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.single-product.ahmed-figma-bundle-single .summary .ahmed-figma-new-price {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: #af8a2f;
    font-weight: 700;
}

.single-product.ahmed-figma-bundle-single .summary form.cart {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.single-product.ahmed-figma-bundle-single .summary form.cart .quantity {
    margin: 0 !important;
}

.single-product.ahmed-figma-bundle-single .summary form.cart .single_add_to_cart_button,
.single-product.ahmed-figma-bundle-single .summary form.cart .ahmed-buy-now-btn {
    height: 52px;
    border-radius: 10px;
    font-size: 26px;
    font-weight: 700;
    margin: 0 !important;
}

.single-product.ahmed-figma-bundle-single .summary form.cart .single_add_to_cart_button {
    background: #0c4e76;
    border-color: #0c4e76;
    color: #fff;
}

.single-product.ahmed-figma-bundle-single .summary form.cart .ahmed-buy-now-btn {
    background: #e4e9ee;
    border: 1px solid #d5dde5;
    color: #0c4e76;
}

@media (max-width: 991px) {
    .single-product.ahmed-figma-bundle-single .summary .ahmed-figma-item {
        grid-template-columns: 44px 1fr;
    }

    .single-product.ahmed-figma-bundle-single .summary .ahmed-figma-item-price {
        grid-column: 2;
        text-align: left;
        min-width: 0;
    }

    .single-product.ahmed-figma-bundle-single .summary form.cart {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   USER OVERRIDES - EXACT FIGMA MATCH TUNING
========================================== */
.single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth {
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-product.ahmed-figma-bundle-single .mcb-column-inner.clearfix {
    width: 100%;
}

.single-product.ahmed-figma-bundle-single h1.product_title.entry-title {
    text-align: left;
    font-size: 17px !important;
    border: none !important;
    margin-bottom: 0;
}

.single-product.ahmed-figma-bundle-single .ahmed-single-stock-line.in {
    margin: 0 !important;
    display: flex;
    width: 20%;
    padding: 8px 8px !important;
    border-radius: unset;
}

.single-product.ahmed-figma-bundle-single .entry-summary p.price {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 17px;
}

.single-product.ahmed-figma-bundle-single .ahmed-figma-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.single-product.ahmed-figma-bundle-single li.ahmed-figma-item {
    display: flex;
    border-bottom: 1px solid;
    padding: 10px 0;
}

.single-product.ahmed-figma-bundle-single a.ahmed-part-image-preview.ahmed-figma-thumb-link {
    width: 10%;
    display: flex;
}

.single-product.ahmed-figma-bundle-single .ahmed-figma-item-main {
    width: 80%;
    font-size: 11px;
    padding-left: 13px;
    display: flex;
    align-items: center;
}

.single-product.ahmed-figma-bundle-single .ahmed-figma-item-price {
    width: 11%;
    display: flex;
    font-size: 8px;
    flex-direction: column;
    gap: 0 !important;
    color: purple;
    min-width: unset !important;
    line-height: 1.5;
    justify-content: center;
}

.single-product.ahmed-figma-bundle-single.woocommerce .product.style-default .entry-summary .cart .quantity .input-text,
.single-product.ahmed-figma-bundle-single.woocommerce .product.style-default .entry-summary .cart .button {
    font-size: 13px;
    line-height: 20px;
    padding: 5px 12px !important;
}

/* ==========================================
   ADAPTIVE HEIGHT: LEFT IMAGE = RIGHT SUMMARY
========================================== */
@media (min-width: 960px) {
    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix {
        display: flex;
        align-items: stretch;
        gap: 20px;
    }

    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix > .product_image_wrapper.column.three-fifth,
    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix > .entry-summary.column.two-fifth {
        float: none;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix > .product_image_wrapper.column.three-fifth {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix > .entry-summary.column.two-fifth {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .mcb-column-inner.clearfix,
    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery,
    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery__wrapper,
    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery__image {
        height: 100%;
    }

    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery__wrapper,
    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery__image,
    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery__image > a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .single-product.ahmed-figma-bundle-single .product_image_wrapper.column.three-fifth .woocommerce-product-gallery__image img {
        max-height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 959px) {
    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix {
        display: block;
    }

    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix > .product_image_wrapper.column.three-fifth,
    .single-product.ahmed-figma-bundle-single .product_wrapper.clearfix > .entry-summary.column.two-fifth {
        max-width: 100%;
        width: 100%;
    }
}

/* Normalize the main featured image render box on single product pages only. */
.single-product .product_image_wrapper .woocommerce-product-gallery,
.single-product .product_image_wrapper .flex-viewport {
    width: min(100%, 652px);
    max-width: 652px;
    margin-left: auto;
    margin-right: auto;
}

.single-product .product_image_wrapper .flex-viewport {
    height: min(544px, calc(100vw - 48px)) !important;
}

.single-product .product_image_wrapper .woocommerce-product-gallery__wrapper,
.single-product .product_image_wrapper .woocommerce-product-gallery__image,
.single-product .product_image_wrapper .woocommerce-product-gallery__image > a {
    height: min(544px, calc(100vw - 48px));
}

.single-product .product_image_wrapper .woocommerce-product-gallery__image,
.single-product .product_image_wrapper .woocommerce-product-gallery__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .product_image_wrapper .woocommerce-product-gallery__image img.wp-post-image,
.single-product .product_image_wrapper .woocommerce-product-gallery__image img {
    width: 652px;
    max-width: 100%;
    height: 544px;
    max-height: min(544px, calc(100vw - 48px));
    object-fit: contain;
    object-position: center;
}

/* Disable image hover/fade effects on single product gallery. */
.single-product .product_image_wrapper .woocommerce-product-gallery__image,
.single-product .product_image_wrapper .woocommerce-product-gallery__image > a,
.single-product .product_image_wrapper .woocommerce-product-gallery__image img.wp-post-image,
.single-product .product_image_wrapper .woocommerce-product-gallery__image img,
.single-product .product_image_wrapper .flex-viewport,
.single-product .product_image_wrapper .woocommerce-product-gallery__wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

.single-product .product_image_wrapper .woocommerce-product-gallery__image:hover,
.single-product .product_image_wrapper .woocommerce-product-gallery__image:hover > a,
.single-product .product_image_wrapper .woocommerce-product-gallery__image:hover img.wp-post-image,
.single-product .product_image_wrapper .woocommerce-product-gallery__image:hover img,
.single-product .product_image_wrapper .flex-viewport:hover,
.single-product .product_image_wrapper .woocommerce-product-gallery__wrapper:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

.single-product.elwan-product-title-en .product div.entry-summary .cart .quantity,
.single-product .product_wrapper.clearfix.elwan-product-title-en .entry-summary .cart .quantity {
    margin-right: 10px;
    margin-left: 0;
}

.single-product.elwan-product-title-ar .product div.entry-summary .cart .quantity,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .entry-summary .cart .quantity {
    margin-left: 10px;
    margin-right: 0;
}

@media (max-width: 767px) {
    .single-product .product_image_wrapper .woocommerce-product-gallery,
    .single-product .product_image_wrapper .flex-viewport {
        max-width: 100%;
    }

    .single-product .product_image_wrapper .woocommerce-product-gallery__image img.wp-post-image,
    .single-product .product_image_wrapper .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

/* Language-aware single product layout */
@media (min-width: 960px) {
    .single-product.elwan-product-title-en .product_wrapper.clearfix,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix,
    .single-product .product_wrapper.clearfix.elwan-product-title-en,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar {
        display: flex !important;
        align-items: flex-start !important;
        /* gap: 24px !important; */
    }
    .single-product .product_wrapper.clearfix.elwan-product-title-ar {
        gap: 24px !important;
    }
    .single-product.elwan-product-title-en .product_wrapper.clearfix > .product_image_wrapper,
    .single-product.elwan-product-title-en .product_wrapper.clearfix > .entry-summary,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .product_image_wrapper,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-en > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-en > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .entry-summary {
        float: none !important;
    }

    /* .single-product.elwan-product-title-ar .product_wrapper.clearfix,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar {
        flex-direction: row-reverse !important;
    } */

    .single-product.elwan-product-title-en .product_wrapper.clearfix > .product_image_wrapper,
    .single-product.elwan-product-title-en .product_wrapper.clearfix > .entry-summary,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .product_image_wrapper,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-en > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-en > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .entry-summary {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .single-product.elwan-product-title-en .product_wrapper.clearfix > .product_image_wrapper,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-en > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .product_image_wrapper {
        flex: 0 0 60% !important;
        max-width: 60% !important;
        width: 60% !important;
        order: 1 !important;
    }

    .single-product.elwan-product-title-en .product_wrapper.clearfix > .entry-summary,
    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-en > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .entry-summary {
        flex: 0 0 40% !important;
        max-width: 40% !important;
        width: 40% !important;
        order: 2 !important;
    }

    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .product_image_wrapper,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .product_image_wrapper {
        order: 2 !important;
    }

    .single-product.elwan-product-title-ar .product_wrapper.clearfix > .entry-summary,
    .single-product .product_wrapper.clearfix.elwan-product-title-ar > .entry-summary {
        order: 1 !important;
    }
}

.single-product.elwan-product-title-en .entry-summary,
.single-product.elwan-product-title-en .entry-summary *,
.single-product.elwan-product-title-en .summary,
.single-product.elwan-product-title-en .summary *,
.single-product .product_wrapper.clearfix.elwan-product-title-en .entry-summary,
.single-product .product_wrapper.clearfix.elwan-product-title-en .entry-summary *,
.single-product .product_wrapper.clearfix.elwan-product-title-en .summary,
.single-product .product_wrapper.clearfix.elwan-product-title-en .summary * {
    text-align: left !important;
}

.single-product.elwan-product-title-en .entry-summary,
.single-product.elwan-product-title-en .summary,
.single-product .product_wrapper.clearfix.elwan-product-title-en .entry-summary,
.single-product .product_wrapper.clearfix.elwan-product-title-en .summary {
    direction: ltr !important;
}

.single-product.elwan-product-title-en .entry-summary p.price,
.single-product.elwan-product-title-en .ahmed-part1-price-stock,
.single-product.elwan-product-title-en .ahmed-part1-meta,
.single-product.elwan-product-title-en .ahmed-betheme-swatches,
.single-product.elwan-product-title-en .variations_form,
.single-product.elwan-product-title-en form.cart,
.single-product .product_wrapper.clearfix.elwan-product-title-en .ahmed-part1-price-stock,
.single-product .product_wrapper.clearfix.elwan-product-title-en .ahmed-part1-meta,
.single-product .product_wrapper.clearfix.elwan-product-title-en .ahmed-betheme-swatches,
.single-product .product_wrapper.clearfix.elwan-product-title-en .variations_form,
.single-product .product_wrapper.clearfix.elwan-product-title-en form.cart {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.single-product.elwan-product-title-ar .entry-summary,
.single-product.elwan-product-title-ar .entry-summary *,
.single-product.elwan-product-title-ar .summary,
.single-product.elwan-product-title-ar .summary *,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .entry-summary,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .entry-summary *,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .summary,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .summary * {
    text-align: right !important;
}

.single-product.elwan-product-title-ar .entry-summary,
.single-product.elwan-product-title-ar .summary,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .entry-summary,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .summary {
    direction: rtl !important;
}

.single-product.elwan-product-title-ar .entry-summary p.price,
.single-product.elwan-product-title-ar .ahmed-part1-price-stock,
.single-product.elwan-product-title-ar .ahmed-part1-meta,
.single-product.elwan-product-title-ar .ahmed-betheme-swatches,
.single-product.elwan-product-title-ar .variations_form,
.single-product.elwan-product-title-ar form.cart,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .ahmed-part1-price-stock,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .ahmed-part1-meta,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .ahmed-betheme-swatches,
.single-product .product_wrapper.clearfix.elwan-product-title-ar .variations_form,
.single-product .product_wrapper.clearfix.elwan-product-title-ar form.cart {
    align-items: flex-end !important;
    justify-content: flex-end !important;
    text-align: right !important;
}

.single-product.elwan-product-title-ar .product_meta,
.single-product.elwan-product-title-en .product_meta,
.single-product.elwan-product-title-ar .ahmed-part-2-tab,
.single-product.elwan-product-title-en .ahmed-part-2-tab,
.single-product.elwan-product-title-ar .ahmed-part-3-tab,
.single-product.elwan-product-title-en .ahmed-part-3-tab {
    direction: inherit;
}

.single-product.elwan-product-title-en h1.product_title.entry-title,
.single-product.elwan-product-title-en .product_title,
.single-product.elwan-product-title-en .ahmed-part1-title,
.single-product.elwan-product-title-en .woocommerce-tabs,
.single-product.elwan-product-title-en .product_meta {
    text-align: left !important;
}

.single-product.elwan-product-title-ar h1.product_title.entry-title,
.single-product.elwan-product-title-ar .product_title,
.single-product.elwan-product-title-ar .ahmed-part1-title,
.single-product.elwan-product-title-ar .woocommerce-tabs,
.single-product.elwan-product-title-ar .product_meta {
    text-align: right !important;
}

.single-product.elwan-product-title-ar .ahmed-part-2-tab,
.single-product.elwan-product-title-ar .ahmed-part-2-tab *,
.single-product.elwan-product-title-ar .ahmed-part-3-tab,
.single-product.elwan-product-title-ar .ahmed-part-3-tab *,
.single-product .product.elwan-product-title-ar .ahmed-part-2-tab,
.single-product .product.elwan-product-title-ar .ahmed-part-2-tab *,
.single-product .product.elwan-product-title-ar .ahmed-part-3-tab,
.single-product .product.elwan-product-title-ar .ahmed-part-3-tab *,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part-2-tab,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part-2-tab *,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part-3-tab,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part-3-tab *,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-2-tab,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-2-tab *,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-3-tab,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-3-tab * {
    direction: rtl !important;
    text-align: right !important;
}

.single-product.elwan-product-title-ar .ahmed-part-section-title,
.single-product.elwan-product-title-ar .ahmed-part3-title,
.single-product .product.elwan-product-title-ar .ahmed-part-section-title,
.single-product .product.elwan-product-title-ar .ahmed-part3-title,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part-section-title,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part3-title,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-2-tab .ahmed-part-section-title,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-3-tab .ahmed-part3-title {
    text-align: right !important;
}

.single-product.elwan-product-title-ar .ahmed-part-section-content,
.single-product .product.elwan-product-title-ar .ahmed-part-section-content,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part-section-content,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-2-tab .ahmed-part-section-content {
    text-align: right !important;
}

.single-product.elwan-product-title-ar .ahmed-key-point-item,
.single-product .product.elwan-product-title-ar .ahmed-key-point-item,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-key-point-item,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-2-tab .ahmed-key-point-item {
    /* flex-direction: row-reverse !important; */
    text-align: right !important;
}

.single-product.elwan-product-title-ar .ahmed-key-point-text,
.single-product .product.elwan-product-title-ar .ahmed-key-point-text,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-key-point-text,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-2-tab .ahmed-key-point-text {
    text-align: right !important;
}

.single-product.elwan-product-title-ar .ahmed-part3-card,
.single-product.elwan-product-title-ar .ahmed-part3-label,
.single-product.elwan-product-title-ar .ahmed-part3-value,
.single-product .product.elwan-product-title-ar .ahmed-part3-card,
.single-product .product.elwan-product-title-ar .ahmed-part3-label,
.single-product .product.elwan-product-title-ar .ahmed-part3-value,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part3-card,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part3-label,
.single-product .elwan-product-details-section.elwan-product-title-ar .ahmed-part3-value,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-3-tab .ahmed-part3-card,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-3-tab .ahmed-part3-label,
.single-product .product_wrapper.clearfix.elwan-product-title-ar ~ .ahmed-part-3-tab .ahmed-part3-value {
    text-align: right !important;
}

/* =========================
   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-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: 900px;
    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;
}

.ahmed-export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.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;
}

.swatch-color[data-color-value] {
    background-color: var(--swatch-color-value, transparent);
}

.ahmed-no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}

.ahmed-is-hidden {
    display: none !important;
}

.ahmed-brand-display {
    margin-bottom: 15px;
}

.swatch-label {
    display: block;
    margin-bottom: 12px;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 700;
}

.ahmed-color-swatches-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ahmed-color-circle[data-color-value] {
    background-color: var(--swatch-color-value, transparent);
}

.ahmed-color-circle.is-clickable {
    cursor: pointer;
}

.ahmed-simple-color-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ahmed-simple-color-display .ahmed-color-circle.selected {
    width: 40px;
    height: 40px;
    /* border: 3px solid #2563eb; */
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #2563eb;
}

.selected-color-name {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.ahmed-part1-container,
.ahmed-part-2-tab,
.ahmed-part-3-tab {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ahmed-part1-container {
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ahmed-part1-brand {
    margin-bottom: 15px;
}

.ahmed-brand-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.ahmed-part1-title {
    margin: 0 0 20px;
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.ahmed-part1-price-stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ahmed-price-sale {
    display: inline-block;
    margin-right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #dc2626;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.ahmed-price-current,
.ahmed-price-current .woocommerce-Price-amount {
    color: #2563eb;
    font-size: 28px;
    font-weight: 800;
}

.ahmed-price-regular {
    margin-left: 10px;
    color: #9ca3af;
    font-size: 18px;
    text-decoration: line-through;
}

.ahmed-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.ahmed-stock-badge.in-stock {
    background: #dcfce7;
    color: #16a34a;
}

.ahmed-stock-badge.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.ahmed-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.ahmed-part1-model {
    margin: 8px 0 20px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.ahmed-part1-model-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ahmed-part1-model-value {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.ahmed-summary-model {
    margin: 0;
    display: flex;
    gap: 8px;
    width: fit-content;
    clear: both;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.ahmed-summary-model-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ahmed-summary-model-value {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.ahmed-summary-origin {
    margin: 0 0 20px 0;
    display: flex;
    gap: 8px;
    width: fit-content;
    clear: both;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.ahmed-summary-origin-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ahmed-summary-origin-value {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

#ahmed-color-swatches .swatch-label,
#ahmed-color-swatches .selected-color-name,
#ahmed-color-swatches-simple .swatch-label,
#ahmed-color-swatches-simple .selected-color-name {
    display: none !important;
}

.ahmed-part1-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ahmed-meta-item {
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.ahmed-meta-label {
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahmed-meta-value {
    display: block;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.ahmed-meta-value.is-monospace {
    font-family: monospace;
}

.ahmed-part-section {
    margin-bottom: 25px;
}

.ahmed-part-section.no-margin {
    margin-top: 0;
}

.ahmed-part-section.with-spacing {
    margin-top: 25px;
}

.ahmed-part-section:last-child {
    margin-bottom: 0;
}

.ahmed-part-section-title,
.ahmed-part3-title {
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2563eb;
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
}

.ahmed-part3-title {
    margin-bottom: 20px;
}

.ahmed-part-section-content {
    color: #444;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

.ahmed-key-points-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ahmed-key-point-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    padding: 15px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.ahmed-key-point-index {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ahmed-key-point-text {
    flex: 1;
    padding-top: 4px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.ahmed-part3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.ahmed-part3-card {
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.ahmed-part3-card.is-neutral {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e5e7eb;
    color: #1f2937;
}

.ahmed-part3-card.is-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #166534;
}

.ahmed-part3-card.is-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
    color: #92400e;
}

.ahmed-part3-card.is-indigo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
    color: #3730a3;
}

.ahmed-part3-card.is-pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f9a8d4;
    color: #9d174d;
}

.ahmed-part3-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahmed-part3-value {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ahmed-part3-link {
    color: #db2777;
    text-decoration: none;
}

@media (max-width: 768px) {
    .ahmed-part1-title,
    .ahmed-price-current,
    .ahmed-price-current .woocommerce-Price-amount {
        font-size: 24px;
    }

    .ahmed-part1-price-stock,
    .ahmed-part1-meta,
    .ahmed-part3-grid {
        gap: 12px;
    }
}
