    /* Overall modal sizing tweak for this design */
    .cart-modal .modal {
        width: min(100% - 2rem, 760px);
        max-height: min(90vh, 680px);
        border-radius: 18px;
        padding: 0;
        background: #0b1120; /* deep navy */
        color: #e5e7eb;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
      }
      
      /* On very small screens, let it breathe edge-to-edge */
      @media (max-width: 640px) {
        .cart-modal .modal {
          width: 100%;
          height: 100%;
          max-height: 100vh;
          border-radius: 0;
        }
      }
      
      /* Header */
      .cart-modal-header {
        padding: 18px 22px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
        background: radial-gradient(circle at top left, #38bdf8 0, #4f46e5 40%, #020617 100%);
      }
      
      .cart-title-wrap {
        display: flex;
        align-items: center;
        gap: 14px;
      }
      
      .cart-icon-pill {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.65);
        box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
      }
      
      .cart-heading {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #f9fafb;
      }
      
      .cart-subtitle {
        margin: 2px 0 0;
        font-size: 13px;
        color: #cbd5f5;
      }
      
      .cart-close-btn {
        color: #e5e7eb;
        font-size: 26px;
      }
      
      /* Trigger */
      .cart-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-radius: 999px;
        padding-inline: 16px;
      }
      
      .cart-count-pill {
        background: rgba(15, 23, 42, 0.9);
        color: #e0f2fe;
        font-size: 12px;
        padding: 2px 9px;
        border-radius: 999px;
      }
      
      /* Body */
      .cart-modal-body {
        padding: 18px 22px 10px;
        display: grid;
        gap: 18px;
      }
      
      /* Items list */
      .cart-items {
        gap: 10px;
      }
      
      .cart-item {
        background: rgba(15, 23, 42, 0.75);
        border-radius: 12px;
        padding: 12px 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        border: 1px solid rgba(148, 163, 184, 0.28);
      }
      
      .cart-item-main {
        display: flex;
        align-items: flex-start;
        gap: 10px;
      }
      
      .cart-thumb-wrap {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        border-radius: 10px;
        overflow: hidden;
        background: #020617;
      }
      
      .cart-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      
      .cart-item-content {
        min-width: 0;
      }
      
      .cart-item-title {
        margin: 0 0 2px;
        font-size: 14px;
        font-weight: 600;
        color: #e5e7eb;
      }
      
      .cart-item-meta {
        margin: 0 0 8px;
        font-size: 12px;
        color: #9ca3af;
      }
      
      .cart-item-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
      }
      
      .cart-qty-label {
        font-size: 12px;
        color: #9ca3af;
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }
      
      .cart-qty-input {
        width: 52px;
        padding: 3px 6px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.7);
        background: #020617;
        color: #e5e7eb;
        font-size: 12px;
      }
      
      .cart-qty-input:focus {
        outline: none;
        box-shadow: 0 0 0 1px #38bdf8;
        border-color: #38bdf8;
      }
      
      .cart-link {
        padding: 0;
        border: none;
        background: transparent;
        color: #38bdf8;
        font-size: 12px;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 2px;
      }
      
      .cart-link:hover {
        color: #7dd3fc;
      }
      
      .cart-item-price {
        font-weight: 600;
        font-size: 14px;
        color: #f9fafb;
      }
      
      /* On narrow screens, stack price under item */
      @media (max-width: 520px) {
        .cart-item {
          grid-template-columns: minmax(0, 1fr);
          align-items: flex-start;
        }
        .cart-item-price {
          justify-self: flex-end;
        }
      }
      
      /* Summary section */
      .cart-summary {
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px dashed rgba(148, 163, 184, 0.35);
        display: grid;
        gap: 10px;
      }
      
      .summary-row {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: #e5e7eb;
      }
      
      .summary-row-muted {
        color: #9ca3af;
      }
      
      .summary-progress {
        display: grid;
        gap: 6px;
        margin-top: 4px;
      }
      
      .summary-progress-text {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #e0f2fe;
      }
      
      .summary-progress-text span:last-child {
        color: #9ca3af;
      }
      
      .summary-progress-bar {
        position: relative;
        height: 6px;
        border-radius: 999px;
        background: rgba(30, 64, 175, 0.7);
        overflow: hidden;
      }
      
      .summary-progress-fill {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #38bdf8, #a855f7);
      }
      
      .summary-note {
        font-size: 12px;
        color: #9ca3af;
      }
      
      /* Footer buttons */
      .cart-modal-footer {
        padding: 14px 22px 18px;
        border-top: 1px solid rgba(15, 23, 42, 0.9);
        background: radial-gradient(circle at top, rgba(148, 163, 184, 0.25), #020617);
        display: flex;
        justify-content: flex-end;
        gap: 10px;
      }
      
      /* Button skins (minimal) */
      .btn-primary {
        background: linear-gradient(135deg, #38bdf8, #4f46e5);
        border: none;
        color: #f9fafb;
        border-radius: 999px;
        padding: 8px 18px;
        font-weight: 600;
        font-size: 14px;
      }
      
      .btn-primary:hover {
        filter: brightness(1.05);
      }
      
      .btn-ghost {
        background: transparent;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.7);
        color: #e5e7eb;
        padding: 8px 14px;
        font-size: 14px;
      }
      
      .btn-ghost:hover {
        background: rgba(15, 23, 42, 0.6);
      }