

  :root {
    --showcase-accent: #ff8b00;
  }

  .custom-showcase-section {
    padding: 60px 20px;
    background-color: #f8f9fc;
    font-family: var(--font-body--family), Inter, Figtree, sans-serif;
  }

  .custom-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .custom-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
  }

  .custom-showcase-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0;
  }

  .custom-showcase-view-all {
    color: var(--showcase-accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .custom-showcase-view-all:hover {
    text-decoration: underline;
  }

  /* ── Grid ── */
  .custom-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  @media (max-width: 1024px) { .custom-showcase-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 768px)  { .custom-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
  @media (max-width: 480px)  { .custom-showcase-grid { grid-template-columns: 1fr; } }

  /* ── Card ── */
  .custom-product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .custom-product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  }

  .custom-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 16px 16px;
    min-width: 0;
  }

  .custom-product-card__footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* ── Image ── */
  .custom-product-image-wrap {
    position: relative;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
    margin-bottom: 14px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
  }

  .custom-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
  }

  .custom-product-card:hover .custom-product-image { transform: scale(1.05); }

  /* ── Badges ── */
  .custom-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    pointer-events: none;
  }

  .badge-sale { background-color: var(--showcase-accent); }
  .badge-new  { background-color: #2ed573; }
  .badge-tag  {
    left: auto;
    right: 12px;
    background-color: #111827;
    border-radius: 8px;
    text-transform: capitalize;
  }

  /* ── Quick-Add Cart Button (replaces wishlist heart) ── */
  .custom-quick-add-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: none;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    color: #6b7280;
  }

  .custom-quick-add-btn:hover {
    background: var(--showcase-accent);
    color: #fff;
    transform: scale(1.12);
  }

  .custom-quick-add-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  .custom-quick-add-btn.loading { pointer-events: none; opacity: 0.7; }
  .custom-quick-add-btn.added   { background: #059669; color: #fff; }

  /* ── Meta ── */
  .custom-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .custom-product-type {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .custom-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
  }

  /* ── Title ── */
  .custom-product-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
  }

  .custom-product-title:hover { color: var(--showcase-accent); }

  /* ── Specs ── */
  .custom-product-specs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
  }

  .custom-spec-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
  }

  /* ── Color Swatches ── */
  .custom-color-swatches {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .custom-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    cursor: default;
    title: attr(data-color);
  }

  /* ── Pricing ── */
  .custom-price-wrapper {
    margin-top: auto;
    margin-bottom: 14px;
  }

  .custom-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .custom-price-compare {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    display: inline-block;
  }

  .custom-price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--showcase-accent);
    line-height: 1;
  }

  /* ── Delivery Tag ── */
  .custom-delivery-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin-bottom: 14px;
  }

  .custom-delivery-tag svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* ── Add to Cart Button ── */
  .product-form {
    width: 100%;
    margin: 0;
  }

  .custom-product-card__footer .product-form {
    margin-bottom: 0;
  }

  .custom-add-to-cart {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: var(--showcase-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    font-family: inherit;
  }

  .product-form .custom-add-to-cart {
    margin-bottom: 0;
  }

  .custom-product-card__footer .custom-add-to-cart {
    width: 100%;
  }

  .custom-add-to-cart svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .custom-add-to-cart:hover {
    filter: brightness(1.05);
    background-color: var(--showcase-accent);
  }

  .custom-add-to-cart:active { transform: scale(0.98); }

  .custom-add-to-cart:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    filter: none;
  }

  .custom-product-sold {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
  }

  .custom-product-sold__star {
    color: var(--showcase-accent);
    line-height: 1;
  }

  .custom-product-sold__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .custom-product-sold__dot {
    color: #cbd5e1;
    font-weight: 700;
  }

  /* ── Compare Checkbox ── */
  .custom-compare-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid #eef0f3;
  }

  .custom-compare-wrap input[type="checkbox"] {
    appearance: none;
    width: 16px; height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }

  .custom-compare-wrap input[type="checkbox"]:checked {
    background-color: var(--showcase-accent);
    border-color: var(--showcase-accent);
  }

  .custom-compare-wrap input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }

  .custom-compare-label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
  }

  /* ════════════════════════════════════
     COMPARE MODAL
  ════════════════════════════════════ */
  .cmp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
    align-items: flex-end;
    justify-content: center;
  }

  .cmp-overlay.open { display: flex; }

  .cmp-modal {
    background: #fff;
    width: 100%;
    max-width: 960px;
    border-radius: 20px 20px 0 0;
    padding: 32px 28px 28px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .cmp-close {
    position: absolute;
    top: 16px; right: 20px;
    background: #f3f4f6;
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #374151;
    transition: background 0.15s;
  }

  .cmp-close:hover { background: #e5e7eb; }

  .cmp-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
  }

  /* Search bar inside modal */
  .cmp-search-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
  }

  .cmp-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
  }

  .cmp-search-input:focus { border-color: var(--showcase-accent); }

  .cmp-search-btn {
    padding: 10px 20px;
    background: var(--showcase-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
  }

  /* Side-by-side skeleton */
  .cmp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  @media (max-width: 640px) { .cmp-columns { grid-template-columns: 1fr; } }

  .cmp-col {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
  }

  .cmp-col-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
  }

  /* Selected product in compare col */
  .cmp-col-product { display: none; }
  .cmp-col.has-product .cmp-col-empty   { display: none; }
  .cmp-col.has-product .cmp-col-product { display: block; }

  .cmp-col-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #d1d5db;
    gap: 10px;
    font-size: 13px;
    text-align: center;
  }

  .cmp-col-empty svg { width: 40px; height: 40px; stroke: #d1d5db; fill: none; stroke-width: 1.5; }

  .cmp-product-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }

  .cmp-product-img-placeholder img {
    width: 100%; height: 100%; object-fit: contain; padding: 12px;
  }

  .cmp-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
  }

  .cmp-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--showcase-accent);
    margin-bottom: 12px;
  }

  .cmp-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
  }

  .cmp-spec-row span:first-child { color: #9ca3af; font-weight: 500; }
  .cmp-spec-row span:last-child  { font-weight: 600; }

  .cmp-remove-btn {
    margin-top: 16px;
    padding: 8px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: none;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.15s, color 0.15s;
    width: 100%;
  }

  .cmp-remove-btn:hover { border-color: #ff4757; color: #ff4757; }

  /* Add to Cart button in compare column */
  .cmp-add-to-cart {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--showcase-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
  }
  .cmp-add-to-cart:hover { filter: brightness(1.1); }
  .cmp-add-to-cart:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
  }
  .cmp-add-to-cart.added {
    background-color: #059669;
  }

  /* Search results dropdown inside modal */
  .cmp-search-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-top: -16px;
    margin-bottom: 20px;
    display: none;
  }
  .cmp-search-results.visible { display: block; }

  .cmp-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Poppins', sans-serif;
  }
  .cmp-search-result-item:last-child { border-bottom: none; }
  .cmp-search-result-item:hover { background: #f8f9fa; }

  .cmp-search-result-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: #f3f4f6;
    flex-shrink: 0;
  }

  .cmp-search-result-info { flex: 1; min-width: 0; }

  .cmp-search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cmp-search-result-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--showcase-accent);
  }

  .cmp-search-result-specs {
    font-size: 11px;
    color: #9ca3af;
  }

  .cmp-no-results {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
  }

  /* Compare floating bar */
  .cmp-bar {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f2e;
    color: #fff;
    border-radius: 50px;
    padding: 12px 24px;
    gap: 16px;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .cmp-bar.visible { display: flex; }

  .cmp-bar-count {
    background: var(--showcase-accent);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 13px;
  }

  .cmp-bar-btn {
    background: var(--showcase-accent);
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: filter 0.15s;
  }

  .cmp-bar-btn:hover { filter: brightness(1.1); }

  .cmp-bar-clear {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
  }
